PO Procure to Pay Tracker

Description

Categories
Enginatics, R12 only
Repository
GitHub
One row per purchase order shipment, and per requisition line not yet on a purchase order, with the date of each step from requisition to payment and the accounting and GL posting of the invoice.

Requisition columns are those of the first requisition line placed on the shipment. Invoice columns are those of the first invoice matched to the shipment; Invoiced Amount sums its matched item lines. Validation Status reads as in the invoice workbench, Hold Name lists the invoice's unreleased holds, and Amount Remaining is shown on the invoice's first row only, so it can be summed. Paid Date is the latest payment date once the invoice is fully paid.

Accounted Date is when final accounting was created for the invoice, GL Posted Date when its journal was posted. Cancelled shipments and requisition lines are left out.

SQL 320 lines

Parameters 8

ParameterTypeList of values SQL
Operating UnitLOV
haouv.name=:operating_unit
SupplierLOV
aps.vendor_name=:supplier_name
BuyerLOV
ppx.full_name=:buyer
PO NumberLOV
pha.segment1=:po_number
Requisition NumberLOV
plla.line_location_id in (
select
prla.line_location_id
from
po_requisition_headers_all prha,
po_requisition_lines_all prla
where
prha.segment1=:req_number and
prha.requisition_header_id=prla.requisition_header_id
)
Creation Date FromDate
plla.creation_date>=:creation_date_from
Creation Date ToDate
plla.creation_date<:creation_date_to+1
Open OnlyLOV
(
nvl(plla.closed_code,'OPEN') not in ('CLOSED','FINALLY CLOSED') or
plla.line_location_id in (
select
aila.po_line_location_id
from
ap_invoice_lines_all aila,
ap_payment_schedules_all apsa
where
aila.invoice_id=apsa.invoice_id and
apsa.amount_remaining<>0
)
)