private AdvanceIncomeCashDistributionDocument CreateAdvanceIncomeCashDistributionDocument(AdvanceReport advanceReport, Income income, OrganisationCashMovementOperation operation) { return(new AdvanceIncomeCashDistributionDocument { AdvanceReport = advanceReport, Income = income, Author = advanceReport.Casher, CreationDate = DateTime.Now, Organisation = advanceReport.Organisation, LastEditor = advanceReport.Casher, LastEditedTime = DateTime.Now, OrganisationCashMovementOperation = operation, Amount = operation.Amount }); }
private void DistributeIncomeCashRemainingAmount(IUnitOfWork uow, RouteList routeList, Income income, decimal amount) { var operation = new OrganisationCashMovementOperation { OperationTime = DateTime.Now, Organisation = cashDistributionCommonOrganisationProvider.GetCommonOrganisation(uow), Amount = amount }; var address = routeList.Addresses.First(x => x.TotalCash > 0); var document = CreateRouteListItemCashDistributionDocument(operation, address, income); Save(uow, operation, document); }
private void UpdateOrganisationCashMovementOperation(OrganisationCashMovementOperation operation, Income income) { operation.Amount = income.Money; operation.OperationTime = DateTime.Now; }
private void UpdateIncomeCashDistributionDocument(IncomeCashDistributionDocument doc, Income income, Employee editor) { doc.LastEditor = editor; doc.LastEditedTime = DateTime.Now; doc.Amount = income.Money; }
private OrganisationCashMovementOperation CreateOrganisationCashMovementOperation(Income income, Organization org) { return(new OrganisationCashMovementOperation { Organisation = org, OperationTime = DateTime.Now, Amount = income.Money }); }
public void UpdateRecords(IUnitOfWork uow, IncomeCashDistributionDocument document, Income income, Employee editor) { UpdateIncomeCashDistributionDocument(document, income, editor); UpdateOrganisationCashMovementOperation(document.OrganisationCashMovementOperation, income); Save(document.OrganisationCashMovementOperation, document, uow); }
public AdvanceClosing(Expense advanceExpense, Income income, decimal sum) { this.advanceExpense = advanceExpense; this.income = income; this.money = sum; }