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"))); }
public string GetNextDocumentNumber(IGeneralConfigValuesRepository repository) { return(null); }