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;
this.Currency = CompanyInfo::find().CurrencyCode;
AX2012:
this.Currency = Ledger::findByLegalEntity(this.legalEntity()).AccountingCurrency;
this.Currency = Ledger::findByLegalEntity(this.legalEntity()).AccountingCurrency;
No comments:
Post a Comment