Monday, January 21, 2013

How to find company currency through x++ code in Ax


Q: How to find company currency through x++ code in Ax
You can use the following code
CompanyInfo::standardCurrency() or
Ledger::accountingCurrency(CompanyInfo::current());
How we make new company in Ax 2012
1) Go to the organization administration module
2) Setup à Legal Entites

AX2009:
this.Currency = CompanyInfo::find().CurrencyCode;
AX2012:
this.Currency = Ledger::findByLegalEntity(this.legalEntity()).AccountingCurrency;

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...