LedgerConsolidate.createErrorTransaction Method [AX 2012]

Creates an adjustment to the error account if the consolidated amount for a date does not balance.

private void createErrorTransaction(
    LedgerConsolidateHist _ledgerConsolidateHist, 
    BalanceProfitLoss _balanceProfitLoss, 
    CompanyId _companyId, 
    List _offsetAmounts, 
    TransDate _lastTransactionDate, 
    FiscalPeriodType _lastFiscalPeriodType, 
    RecId _lastLocalSummaryTransactionId, 
    TmpLedgerConsDimensionValueItem _consolidationDimensionValueItem, 
    LedgerPostingGeneralJournalController _generalJournalController)

Run On

Called

Parameters

_ledgerConsolidateHist
Type: LedgerConsolidateHist Table
The consolidation tracking buffer to update.
_balanceProfitLoss
Type: BalanceProfitLoss Enumeration
The error account to retrieve.
_companyId
Type: CompanyId Extended Data Type
The company ID of the company in which the data originated.
_offsetAmounts
Type: List Class
A list of containers that contain the posting layer, accounting currency amount, and the reporting currency amount.
_lastTransactionDate
Type: TransDate Extended Data Type
The transaction date on the last temporary record that was processed.
_lastFiscalPeriodType
Type: FiscalPeriodType Enumeration
The fiscal period type of the last temporary record that was processed.
_lastLocalSummaryTransactionId
Type: RecId Extended Data Type
The local record ID of the last temporary record that was processed.
_consolidationDimensionValueItem
Type: TmpLedgerConsDimensionValueItem Table
The table that holds the dimension value detail records.
_generalJournalController
Type: LedgerPostingGeneralJournalController Class
The general journal controller used to transfer the result of the consolidation.

ExceptionCondition
Error

No account was defined.

Community Additions

ADD
Show: