Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- _exchRateForInterCompany
Type: ExchRate Extended Data Type
The exchange rate that will be used to create intercompany transactions.
- _exchRateSecondaryForInterCompany
Type: ExchrateSecondary Extended Data Type
The secondary exchange rate that will be used to create intercompany transactions.
- _euroTriangulationForInterCompany
Type: EUROTriangulation Extended Data Type
The euro triangulation value that will be used to create intercompany transactions.
- _ledgerInterCompany
Type: LedgerInterCompany Table
The intercompany posting setup record for the given ledger journal transaction.
- _currentCompany
Type: CompanyId Extended Data Type
The company from which posting was initiated.
- _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.