How to get Accounting Currency value for Company in Ax 2012

To get Accounting Currency value for Company in Ax 2012, you can try below code in the display method of the table.

 public display CurrencyCode AccountingCurrency()  
 {  
   Ledger ledger;  
   select ledger  
     where ledger.RecId == CompanyInfo::find().RecId;  
   return ledger.AccountingCurrency;  
 }  

No comments: