Exemplo n.º 1
0
        public void TransferEntry(GeneralLedgerEntry generalLedgerEntry)
        {
            generalLedgerEntry.MustBeInBalance();
            generalLedgerEntry.MustBePosted();

            ProfitAndLoss.Transfer(generalLedgerEntry);
            TrialBalance.Transfer(generalLedgerEntry);
            TrialBalance.MustBeInBalance();
            _generalLedgerEntryIdentifiers.Remove(generalLedgerEntry.Identifier);
        }
Exemplo n.º 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);
        }