Esempio n. 1
0
 public static void AssignNumber(SimpleDocument document, DocumentMapper mapper)
 {
     if (document.IsNew && !document.Number.SkipAutonumbering)
     {
         document.Number.ComputedSeriesValue = mapper.ComputeSeries(document);
         document.Number.FullNumber          = mapper.ComputeFullDocumentNumber(document, null);
     }
     if (String.IsNullOrEmpty(document.Number.FullNumber))
     {
         throw new ClientException(ClientExceptionId.EmptyDocumentNumberError);
     }
 }