Getting accounting currency

Hi

i am doing a report, RDP based i have purchtable in my query and another customized table

how do i fetch “AccountingCurrency” field from Ledger table

path is general ledger->setup->ledger

as far i checked there is no relation from purchtable to ledger table

If you want to fetch it from Ledger table, you can do like this

Ledger::accountingCurrency();