AP Prepayments Status

Description

Categories
Enginatics, R12 only
Repository
GitHub
Prepayments with an unapplied amount and the open, that is unpaid or partially paid, invoices, credit and debit memos of the suppliers holding such a prepayment, one row per invoice.

Equivalent to the Oracle standard Prepayments Status Report (APXINPSR). Amount Remaining is in the invoice currency: for a prepayment the amount not yet applied, for other invoices the unpaid payment schedule amount converted at the payment cross rate. Net Amount Remaining nets paid temporary prepayments (negative) against open invoices and permanent prepayments; an unpaid prepayment counts as zero.

Show Prepayment Lines adds one row per item line of a paid prepayment that still has an amount available to apply, with its purchase order and receipt.

SQL 146 lines

Parameters 10

ParameterTypeList of values SQL
LedgerLOV
gl.name=:ledger
Operating UnitLOV
haouv.name=:operating_unit
SupplierLOV
aps.vendor_name=:supplier
Supplier TypeLOV
aps.vendor_type_lookup_code=xxen_util.lookup_code(:supplier_type,'VENDOR TYPE',201)
Prepayment TypeLOV
aia.earliest_settlement_date is not null
Include InvoicesLOV Oracle
aia.invoice_type_lookup_code in ('CREDIT','DEBIT')
Include Credit/Debit MemosLOV Oracle
aia.invoice_type_lookup_code not in ('CREDIT','DEBIT')
Invoice Date FromDate
aia.invoice_date>=:invoice_date_from
Invoice Date ToDate
aia.invoice_date<:invoice_date_to+1
Show Prepayment LinesLOV