Hi,
I found a code in AX 2012 R3 which is a modified when compared to R2. Can anyone please explain why this change has been done?
Class - LedgerJournalCheckPost , method - interCompanyTransferToCustPayment()
The first line in red in R2 code which has been replaced with the blue code in R3.
newLedgerJournalTrans.OffsetLedgerDimension = newLedgerJournalTable.parmOffsetLedgerDimension();
if (newLedgerJournalTable.OffsetAccountType == LedgerJournalACType::Ledger)
{
// if type is ledger need to create ledger account structure by merging the main
// account and the dimensions for the main account with the currently entered values
newLedgerJournalTrans.setOffsetLedgerDimension(newLedgerJournalTable,
newLedgerJournalTable.OffsetAccountType,
newLedgerJournalTrans.getOffsetLedgerDimensionForLedgerType(
newLedgerJournalTable.OffsetLedgerDimension,
newLedgerJournalTrans.getOffsetCompany()));
}
this.OffsetLedgerDimension =
DimensionDefaultingService::serviceMergeLedgerDimensions(
this.OffsetLedgerDimension,
this.getOffsetLedgerDimensionForLedgerType(
_ledgerJournalTable.parmOffsetLedgerDimension(),
this.getOffsetCompany()));
else
{
newLedgerJournalTrans.OffsetLedgerDimension = newLedgerJournalTable.parmOffsetLedgerDimension();
}
Thanks
*This post is locked for comments
I have the same question (0)