Beispiel #1
0
        private void CommitPercents(ORMLibrary.Deposit deposit)
        {
            decimal percentAmount = deposit.Amount * (decimal)(deposit.PlanOfDeposit.Percent / 100 / SystemInformationService.CountDaysInYear);

            TransactionService.CommitTransaction(
                AccountService.GetDevelopmentFundAccount(),
                deposit.PercentAccount,
                percentAmount
                );
        }
Beispiel #2
0
        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
                );
        }