mandag den 26. marts 2012

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

2 kommentarer:

  1. Better you use

    Ledger::accountingCurrency()

    which encapsulates your call and adds the result to the global object cache for performance reasons.

    SvarSlet
  2. Why not use CompanyInfo::standardCurrency() ?

    SvarSlet