AP Suppliers Revenue by Period

Description

Categories
Enginatics
Repository
GitHub
AP invoice amount per supplier and invoice currency, with one column per GL period from Period From to Period To.

An invoice is counted in the period of its invoice GL date. Periods are taken from the ledger's accounting calendar, excluding adjustment periods, and each column is named after the month the period falls in.

SQL 40 lines

Parameters 7

ParameterTypeList of values SQL
LedgerLOV
gl.name=:ledger and
hou.organization_id in (select xroa.id from xxen_report_org_access xroa where xroa.access_type='OU')
Operating UnitLOV
hou.name=:operating_unit
SupplierLOV
aps.vendor_name=:supplier_name
Supplier NumberLOV
aps.segment1=:supplier_number
Period FromLOV
aia.gl_date>=(select gp0.start_date from gl_periods gp0 where gl.period_set_name=gp0.period_set_name and gl.accounted_period_type=gp0.period_type and gp0.period_name=:period_from)
Period ToLOV
aia.gl_date<(select gp0.end_date+1 from gl_periods gp0 where gl.period_set_name=gp0.period_set_name and gl.accounted_period_type=gp0.period_type and gp0.period_name=:period_to)
Summary LevelLOV
x.ledger,