Results for “pa_draft_invoice_items_u1”

12 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

PA.PA_DRAFT_INVOICE_ITEMS is a transactional table in the Oracle E-Business Suite Projects (PA) schema that stores the individual lines of a draft invoice. When the Generate Draft Invoice process executes, it creates one invoice line for each billing event and one line for each grouping of expenditure items, with the groupings determined by the invoice formats defined on the project. Each row therefore represents a billable line item awaiting transfer to Oracle Receivables.

The table is owned by the PA schema and resides in the APPS_TS_TX_DATA tablespace with a PCT Free of 10. Its primary key is PA_DRAFT_INVOICE_ITEMS_PK, defined on the composite of PROJECT_ID, DRAFT_INVOICE_NUM, and LINE_NUM. Under the heuristic Data Vault classification mined from the foreign key structure, this object is best modeled as a satellite: it carries descriptive, non-key attributes (amounts, tax attributes, retention details, currency conversion columns, and who-columns) that hang off the transactional parent PA_DRAFT_INVOICES_ALL rather than acting as a pure hub or link.

Key Information Stored

The physical schema documents 98 columns. The most significant are:

Common Use Cases and Queries

Typical reporting and reconciliation scenarios include reviewing all lines attached to a draft invoice before it is released to Receivables, tracing a line back to its originating event or task, and auditing retention and multi-currency bill amounts. A representative query joining the invoice header to its lines is:

SELECT i.draft_invoice_num, it.line_num, it.invoice_line_type,
       it.task_id, it.event_num, it.amount, it.inv_amount
FROM   pa.pa_draft_invoices_all i,
       pa.pa_draft_invoice_items it
WHERE  it.project_id = i.project_id
AND    it.draft_invoice_num = i.draft_invoice_num
AND    it.project_id = :project_id
ORDER BY it.line_num;

Because the concurrent request columns are present, a frequent diagnostic pattern filters on REQUEST_ID and PROGRAM_ID to isolate the rows produced by a specific Generate Draft Invoice run, which is useful when a billing run must be explained or reprocessed. Index PA_DRAFT_INVOICE_ITEMS_N3 (PROJECT_ID, REQUEST_ID) supports this access path directly.

Related Objects

The table participates in a dense network of foreign keys. The most operationally significant relationships are:

These relationships make PA_DRAFT_INVOICE_ITEMS the central line-level record bridging project billing activity to the invoice generation and revenue distribution processes.