Mental note to self:
In Dynamics AX releases prior to 2012 to get the company currency you could do:
CompanyInfo::find().CurrencyCode;
In 2012 however you would do:
Ledger::findByLegalEntity(CompanyInfo::find().RecId).AccountingCurrency
In Dynamics AX releases prior to 2012 to get the company currency you could do:
CompanyInfo::find().CurrencyCode;
In 2012 however you would do:
Ledger::findByLegalEntity(CompanyInfo::find().RecId).AccountingCurrency
Better you use
ReplyDeleteLedger::accountingCurrency()
which encapsulates your call and adds the result to the global object cache for performance reasons.
Why not use CompanyInfo::standardCurrency() ?
ReplyDelete