GL Balance by Entered Currency Copy link

Description

Categories
Lists GL account balances for a ledger or ledger set and an accounting period, showing the functional currency balance alongside one separate column per entered (transaction) currency.

The entered currency columns are generated dynamically at runtime from the currencies actually found in GL_BALANCES for the selected ledger scope and period, so no currency list is hard coded. Selecting a ledger set produces the union of the currencies of all its assigned ledgers.

A ledger and period with no foreign entered currencies completes normally and returns a single empty placeholder column, rather than failing on an empty PIVOT list.

Balances are actual end balances (opening balance plus period net movement) of detail accounts. The functional currency balance is the account's total ledger currency balance; the entered currency columns show the amounts entered in each foreign currency (gl_balances rows with translated_flag='R'). Summary account, statistical (STAT) and translated balances are excluded.

SQL 43 lines

Parameters 2

ParameterTypeList of values SQL
LedgerLOV
PeriodLOV