コード例 #1
0
ファイル: TicketType.cs プロジェクト: haridave01/POS
        public string GetNextDocumentNumber(IGeneralConfigValuesRepository repository)
        {
            var boletaPrefix = repository.SearchFor(x => x.Name == "GrupoFactura").Single().Value;
            var nroBoleta    = Convert.ToInt32(repository.SearchFor(x => x.Name == "UlitmoNroFactura").Single().Value);

            return(string.Format("{0}-{1}", boletaPrefix, nroBoleta.ToString("0000000")));
        }
コード例 #2
0
ファイル: TicketType.cs プロジェクト: haridave01/POS
 public string GetNextDocumentNumber(IGeneralConfigValuesRepository repository)
 {
     return(null);
 }