Example #1
0
 private void Save(OrganisationCashMovementOperation operation, IncomeCashDistributionDocument document, IUnitOfWork uow)
 {
     uow.Save(operation);
     uow.Save(document);
 }
Example #2
0
 private void UpdateIncomeCashDistributionDocument(IncomeCashDistributionDocument doc, Income income, Employee editor)
 {
     doc.LastEditor     = editor;
     doc.LastEditedTime = DateTime.Now;
     doc.Amount         = income.Money;
 }
Example #3
0
 public void UpdateRecords(IUnitOfWork uow, IncomeCashDistributionDocument document, Income income, Employee editor)
 {
     UpdateIncomeCashDistributionDocument(document, income, editor);
     UpdateOrganisationCashMovementOperation(document.OrganisationCashMovementOperation, income);
     Save(document.OrganisationCashMovementOperation, document, uow);
 }