Exemple #1
0
        public void TransferEntry(GeneralLedgerEntry generalLedgerEntry)
        {
            generalLedgerEntry.MustBeInBalance();
            generalLedgerEntry.MustBePosted();

            ProfitAndLoss.Transfer(generalLedgerEntry);
            TrialBalance.Transfer(generalLedgerEntry);
            TrialBalance.MustBeInBalance();
            _generalLedgerEntryIdentifiers.Remove(generalLedgerEntry.Identifier);
        }
Exemple #2
0
        public void TransferEntry(GeneralLedgerEntry generalLedgerEntry)
        {
            if (!_periodClosing)
            {
                throw new PeriodClosingInProcessException(_period);
            }

            generalLedgerEntry.MustBeInBalance();
            generalLedgerEntry.MustBePosted();

            _trialBalance.Transfer(generalLedgerEntry);
            _profitAndLoss.Transfer(generalLedgerEntry);
            _untransferredEntryIdentifiers.Remove(generalLedgerEntry.Identifier);
        }