BudgetAnalyser.Engine.Services.ReconciliationService.CreateBalanceAdjustment C# (CSharp) Метод

CreateBalanceAdjustment() публичный Метод

public CreateBalanceAdjustment ( LedgerEntryLine entryLine, decimal amount, string narrative, Account account ) : LedgerTransaction
entryLine BudgetAnalyser.Engine.Ledger.LedgerEntryLine
amount decimal
narrative string
account BudgetAnalyser.Engine.BankAccount.Account
Результат BudgetAnalyser.Engine.Ledger.LedgerTransaction
        public LedgerTransaction CreateBalanceAdjustment(LedgerEntryLine entryLine, decimal amount, string narrative,
                                                         Account account)
        {
            if (entryLine == null)
            {
                throw new ArgumentNullException(nameof(entryLine));
            }

            if (narrative == null)
            {
                throw new ArgumentNullException(nameof(narrative));
            }

            if (account == null)
            {
                throw new ArgumentNullException(nameof(account));
            }

            var adjustmentTransaction = entryLine.BalanceAdjustment(amount, narrative, account);
            adjustmentTransaction.Date = entryLine.Date;
            return adjustmentTransaction;
        }