private void CommitPercents(ORMLibrary.Deposit deposit) { decimal percentAmount = deposit.Amount * (decimal)(deposit.PlanOfDeposit.Percent / 100 / BankService.YearLength); TransactionService.CommitTransaction(AccountService.GetDevelopmentFundAccount(), deposit.PercentAccount, percentAmount); }
private void HoldMoneyOnDeposit(ORMLibrary.Deposit deposit) { TransactionService.CommitCashDeskDebitTransaction(deposit.Amount); TransactionService.CommitTransaction(AccountService.GetCashDeskAccount(), deposit.MainAccount, deposit.Amount); TransactionService.CommitTransaction(deposit.MainAccount, AccountService.GetDevelopmentFundAccount(), deposit.Amount); }
public ORMLibrary.Deposit CreateAccountsForDeposit(ORMLibrary.Deposit deposit) { deposit.MainAccount = CreateAccount(deposit.PlanOfDeposit.MainPlanOfAccount, deposit.ClientId); deposit.PercentAccount = CreateAccount(deposit.PlanOfDeposit.PercentPlanOfAccount, deposit.ClientId); return(deposit); }