PAY Payroll to GL Reconciliation

Description

Categories
Enginatics
Repository
GitHub
Payroll costs against the general ledger for the period close: for the costing processes dated between Costing Effective Date From and To, one row per payroll run, costing date and GL account with the costed amounts, the amounts the Transfer to GL process transferred, the amounts of the Payroll journals and the status of the account.

GL Account is built from the cost allocation flexfield through the GL flexfield map of the payroll, as Transfer to GL builds it; a GL segment without a mapping stays empty. Journal lines of the ledger of the payroll and GL interface rows are matched by the references Transfer to GL writes (transfer process, payroll run and costing account), which Journal Import keeps on the journal line when it imports in detail. Payroll costs transferred through Subledger Accounting are not covered.

Status: Not costed (completed assignments of a payroll run that no costing process has processed, counted in Uncosted Assignments; a balance adjustment counts only when it is flagged as costed), Not transferred, Transfer difference (the transferred amount differs from the costs flagged for transfer), Not imported (still in the GL interface), Journal difference, Unposted, Reconciled, and Nothing to transfer (costs of element links without the Transfer to GL flag, shown in Costed No GL Transfer). Suspense Account marks costs on the suspense account of the payroll.

Not Transferred, Not in Journals and Unposted are net amounts, debit less credit, per account.

SQL 532 lines

Parameters 10

ParameterTypeList of values SQL
Business GroupLOV
ppa.business_group_id in (select pbg.business_group_id from per_business_groups pbg where pbg.name=:business_group)
PayrollLOV
z.payroll=:payroll
Consolidation SetLOV
ppa.consolidation_set_id in (select pcs.consolidation_set_id from pay_consolidation_sets pcs where pcs.consolidation_set_name=:consolidation_set)
Costing Effective Date FromDate
Costing Effective Date ToDate
LedgerLOV
z.ledger=:ledger
StatusLOV
z.status=:status
Differences OnlyLOV
z.status not in ('Reconciled','Nothing to transfer')
Suspense Account OnlyLOV
z.suspense_account is not null
Detail LevelLOV