LedgerJournalCheckPost.updateInterCompanyJournal Method [AX 2012]

Creates or updates intercompany journals, vouchers, and transactions for the given intercompany ledger journal transaction.

Syntax

protected void updateInterCompanyJournal(
    LedgerJournalTrans _ledgerJournalTrans, 
    ExchRate _exchRateForInterCompany, 
    ExchrateSecondary _exchRateSecondaryForInterCompany, 
    EUROTriangulation _euroTriangulationForInterCompany, 
    LedgerInterCompany _ledgerInterCompany, 
    CompanyId _currentCompany, 
    boolean _retrieveExchangeRates)

Run On

Server

Parameters

  • _ledgerJournalTrans
    Type: LedgerJournalTrans Table
    The ledger journal transaction for which to create or update intercompany journals, vouchers, and transactions.
  • _ledgerInterCompany
    Type: LedgerInterCompany Table
    The intercompany posting setup record for the given ledger journal transaction.
  • _retrieveExchangeRates
    Type: boolean
    true when exchange rates must be retrieved; otherwise, false.

Exceptions

Exception Condition
Error

The intercompany posting setup is missing.

-or-

The intercompany posting journal name is missing.

Remarks

This method assumes that the intercompany part of the ledger journal transaction is the primary account.

See Also

Reference

LedgerJournalCheckPost Class