web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

LedgerJournalCheckPost R3 and R2 code comparison

(0) ShareShare
ReportReport
Posted on by 451

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)
  • Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Could you provide some more details about your requirement (or) exactly what you are looking for such that we can help you better.

    Thanks,

    Chaitanya Golla

  • André Arnaud de Calavon Profile Picture
    304,193 Super User 2026 Season 1 on at

    Hi Aman,

    The exact reason is not published, so we don't know it. When I look at the comments, I do think that it solves a requirement where the offset ledger account defined on the journal name/table should be merged with dimension values. This is not done within the single method used in R2.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans