AP Vendor Financing Batch Creation Inquiry Report
An inquiry into vendor-financing (supply-chain finance) batches — which approved invoices were offered for early payment or financing, the discount taken, and the financed amount by supplier and bank.
Sample build of the AP Vendor Financing Batch Creation Inquiry Report — reconciled, and rendered tool-neutral so it runs in Power BI, ThoughtSpot, or Tableau.
| Supplier | Invoice | Original Due | Financed Amount | Discount | Settlement Date |
|---|---|---|---|---|---|
| Acme Industrial | Sample | Sample | $1,240,500.00 | Sample | 2026-04-30 |
| Northwind Trading | — | — | $842,150.75 | — | 2026-03-31 |
| Globex Holdings | Sample | Sample | $96,400.00 | Sample | 2026-02-28 |
| Initech LLC | — | — | $1,005,233.10 | — | 2026-01-31 |
| Umbrella Corp | Sample | Sample | $58,720.40 | Sample | 2025-12-31 |
| Acme Industrial | Sample | Sample | $1,240,500.00 | Sample | 2026-04-30 |
The report reads financed invoices and their settlement against AP payments, by supplier and bank.
A block of invoices was financed at a discount rate higher than the company's cost of capital — the financing cost more than holding the cash would have.
Set the financing-discount threshold to the cost of capital so the program only finances invoices where early payment actually pays.
This is the report's BI Publisher data model — the SQL data set BI Publisher runs against Oracle tables to produce the output. The same SQL becomes a dbt model in your warehouse, so one definition drives both the formatted report and the analytics layer.
Data sources
Show / hide SQL
SELECT KEY KEY,
'SFTP' TEMPLATE,
'en-us' LOCALE,
'CSV' OUTPUT_FORMAT,
'BOAMAP-'||SYSDATE OUTPUT_NAME,
'EMAIL' DEL_CHANNEL,
'' parameter1, --TO
--'' parameter2, --CC
'' parameter3,--FROM
'CUSTOM AP Vendor Financing' parameter4, --SUBJECT
'true' parameter6
FROM
(SELECT distinct '1' KEY,AIA.INVOICE_NUM INVOICE_NUMBER
,AIA.INVOICE_CURRENCY_CODE CURRENCY_CODE
,AIA.INVOICE_AMOUNT invoice_amount
,to_char(ACA.CHECK_DATE,'YYYYMMDD') MATURITY_DATE
,POZ.SEGMENT1 SUPPLIER_NUMBER
,POZ.VENDOR_NAME SUPPLIER_NAME
,' CUSTOM Asia Pacific Sourcing Limited' BUYER_NAME
,HAOU.NAME PAYING_AGENT
FROM AP_INVOICES_ALL AIA
,AP_INVOICE_PAYMENTS_ALL AIPA
,AP_CHECKS_ALL ACA
,POZ_SUPPLIERS_V POZ
--,POZ_SUPPLIER_SITES_ALL_M PSSA
,HR_ALL_ORGANIZATION_UNITS HAOU
WHERE AIA.INVOICE_ID = AIPA.INVOICE_ID
AND AIPA.CHECK_ID = ACA.CHECK_ID
--AND POZ.VENDOR_iD = PSSA.VENDOR_ID
--AND PSSA.PAY_GROUP_LOOKUP_CODE = 'BOADIRECT'
AND (HAOU.NAME IN (:P_BUSINESS_UNIT) OR 'All' IN ('All'||:P_BUSINESS_UNIT))
AND (POZ.VENDOR_NAME IN (:P_SUPPLIER_NAME) OR 'All' IN ('All'||:P_SUPPLIER_NAME))
AND (AIA.INVOICE_CURRENCY_CODE IN (:P_CURRENCY) OR 'All' IN ('All'||:P_CURRENCY))
AND POZ.VENDOR_ID = AIA.VENDOR_ID
AND HAOU.ORGANIZATION_ID = AIA.ORG_ID
ORDER BY POZ.VENDOR_NAME,AIA.INVOICE_NUM)
UNION
SELECT KEY KEY,
'SFTP' TEMPLATE,
'en-us' LOCALE,
'CSV' OUTPUT_FORMAT,
'AP Vendor Financing For:- '||SUPPLIER_NAME OUTPUT_NAME,
'EMAIL' DEL_CHANNEL,
'' parameter1, --TO
--'' parameter2, --CC
'' parameter3,--FROM
'CUSTOM AP Vendor Financing' parameter4, --SUBJECT
'true' parameter6
FROM
(SELECT distinct '1' KEY,AIA.INVOICE_NUM INVOICE_NUMBER
,AIA.INVOICE_CURRENCY_CODE CURRENCY_CODE
,AIA.INVOICE_AMOUNT invoice_amount
,to_char(ACA.CHECK_DATE,'YYYYMMDD') MATURITY_DATE
,POZ.SEGMENT1 SUPPLIER_NUMBER
,POZ.VENDOR_NAME SUPPLIER_NAME
,' CUSTOM Asia Pacific Sourcing Limited' BUYER_NAME
,HAOU.NAME PAYING_AGENT
FROM AP_INVOICES_ALL AIA
,AP_INVOICE_PAYMENTS_ALL AIPA
,AP_CHECKS_ALL ACA
,POZ_SUPPLIERS_V POZ
--,POZ_SUPPLIER_SITES_ALL_M PSSA
,HR_ALL_ORGANIZATION_UNITS HAOU
WHERE AIA.INVOICE_ID = AIPA.INVOICE_ID
AND AIPA.CHECK_ID = ACA.CHECK_ID
--AND POZ.VENDOR_iD = PSSA.VENDOR_ID
--AND PSSA.PAY_GROUP_LOOKUP_CODE = 'BOADIRECT'
AND (HAOU.NAME IN (:P_BUSINESS_UNIT) OR 'All' IN ('All'||:P_BUSINESS_UNIT))
AND (POZ.VENDOR_NAME IN (:P_SUPPLIER_NAME) OR 'All' IN ('All'||:P_SUPPLIER_NAME))
AND (AIA.INVOICE_CURRENCY_CODE IN (:P_CURRENCY) OR 'All' IN ('All'||:P_CURRENCY))
AND POZ.VENDOR_ID = AIA.VENDOR_ID
AND HAOU.ORGANIZATION_ID = AIA.ORG_ID
ORDER BY POZ.VENDOR_NAME,AIA.INVOICE_NUM)The data-warehouse model — one fact surrounded by conformed dimensions (what you slice by) and measures (what you aggregate), expressed as dbt so it migrates with you. Grain: one row per source transaction.
| Element | Type | Definition |
|---|---|---|
| AP_INVOICE_PAYMENTS_ALL | dimension | dimension |
| AP_CHECKS_ALL | dimension | dimension |
| POZ_SUPPLIERS_V | dimension | dimension |
| POZ_SUPPLIER_SITES_ALL_M | dimension | dimension |
| Financed Amount | measure | measure |
Every source object behind this report. Each linked table has its own page with full column descriptions, drawn from the Oracle BICC lineage and articulated for practitioners.
| Table | Reporting columns | Subject areas |
|---|---|---|
| AP_INVOICES_ALL | 63 | 15 |
| AP_INVOICE_PAYMENTS_ALL | 22 | 2 |
| AP_CHECKS_ALL | 44 | 6 |
| POZ_SUPPLIERS_V | 2 | 24 |
| POZ_SUPPLIER_SITES_ALL_M | 179 | 56 |