AR Aging to GL Reconciliation

Description

Categories
Enginatics, R12 only
Repository
GitHub
Reconciles the receivable accounts at the end of a GL period three ways: the GL balance, the Receivables subledger accounting and the AR open balance as of the period end date, which equals the AR Aging total with Show On Account set to Age (open transactions, unapplied, on-account, unidentified and claim receipts; receipts at risk and bills receivable are not included).

AR to GL Reconciliation checks the activity of one period, whether its Receivables accounting reached GL. This report explains the balance: why the receivable accounts of the trial balance differ from the aging, per account and per customer.

The reconciliation is a roll-forward from the start of Period From to the end of Period. The opening balances are as of the day before Period From starts, and Opening Difference is the difference already present then. Set Period From to the first period of Receivables in the ledger to show every manual or other source journal since then in the columns.

Receivables Journals, Manual Journals and Other Source Journals split the posted GL movement on the account by journal source; other sources include revaluation.

Subledger Accounting is the final Receivables accounting dated in the range. Not Transferred to GL and Not Posted in GL are the part of it missing from the GL balance, the latter including journals still in the GL interface. Subledger Manual Entries change GL but not AR. Not Accounted is AR activity in the range without final accounting.

GL to Subledger Difference is the posted Receivables journals less the subledger accounting posted, for example a journal imported twice. AR to Subledger Difference is the AR movement the subledger accounting does not explain, for example a credit memo whose revenue line was accounted to the receivable account.

Closing Difference equals Opening Difference plus Manual Journals, Other Source Journals, Subledger Manual Entries and GL to Subledger Difference, less Not Transferred to GL, Not Posted in GL, Not Accounted and AR to Subledger Difference.

The accounts are all combinations of the natural accounts that carry open receivables at either date, or of the natural account range of Account From and Account To. The AR balances include every operating unit of the ledger: like the GL balances, they are secured by ledger access.

Show Customers gives a row per account and customer, with subledger accounting attributed as in the aging: transactions to the bill-to customer, unapplied cash to the receipt's customer. The GL columns stay on the account row. Template Customer Differences lists the customers whose AR movement differs from the subledger accounting, and Show Monthly Movement adds the subledger accounting per period.

SQL 478 lines

Parameters 9

ParameterTypeList of values SQL
LedgerLOV
PeriodLOV
Period FromLOV
Account FromLOV
Account ToLOV
Show CustomersLOV
CustomerLOV
hp.party_name=:customer
Differences OnlyLOV
(y.gl_subledger_difference<>0 or y.ar_subledger_difference<>0)
Show Monthly MovementLOV
select
'sum(decode(z.period_name,'''||gp.period_name||''',z.subledger_accounting)) "'||gp.period_name||'",' text
from
gl_ledgers gl,
gl_periods gp0,
gl_periods gp1,
gl_periods gp
where
gl.name=:ledger and
gl.period_set_name=gp0.period_set_name and
gl.accounted_period_type=gp0.period_type and
gp0.period_name=:period_from and
gl.period_set_name=gp1.period_set_name and
gl.accounted_period_type=gp1.period_type and
gp1.period_name=:period and
gl.period_set_name=gp.period_set_name and
gl.accounted_period_type=gp.period_type and
gp.period_year*10000+gp.period_num between gp0.period_year*10000+gp0.period_num and gp1.period_year*10000+gp1.period_num
order by
gp.period_year,
gp.period_num