Here is the code to find the company currency code in AX 2012
Method 1:
currencyCode = Ledger::accountingCurrency(CompanyInfo::current());
Method 2:
currencyCode = Ledger::accountingCurrency(CompanyInfo::Find().recid);
Method 3:
currencyCode = CompanyInfo::standardCurrency();
Method 1:
currencyCode = Ledger::accountingCurrency(CompanyInfo::current());
Method 2:
currencyCode = Ledger::accountingCurrency(CompanyInfo::Find().recid);
Method 3:
currencyCode = CompanyInfo::standardCurrency();
No comments:
Post a Comment