Search Results credit_process_flag
Overview
PA_DRAFT_INV_ITEMS_AR is an Oracle Projects (PA) archive table that stores historical copies of rows from the PA_DRAFT_INV_ITEMS transactional table. Its documented purpose is explicit: it exists for Archive/Purge operations, and the columns mirror the structure of the main draft invoice items table so that purged or archived billing lines can be removed from the live table while remaining available for audit, retention, or reporting. The table is owned by the PA schema and is valid in both Oracle EBS 12.1.1 and 12.2.2. In the documented 12.2.2 schema the table carries 65 columns, preserving the full drafting context of each invoice line together with the purge metadata used to tie rows back to a specific archival run.
The ETRM metadata classifies this object, by heuristic Data Vault analysis of its foreign key structure, as standalone. In modeling terms, this suggests the table does not behave as a classic hub or link with a hard network of enforced parent references; it is a copy-and-retain store keyed primarily by purge context. The only documented foreign key is PURGE_BATCH_ID referencing PA_PURGE_BATCHES_ALL. Because the archive copy preserves the same business identities as the source table (project, draft invoice number, line number) but intentionally relaxes the live transactional relationships, it is best treated as a persistence/retention construct rather than a normalized dimension in a reporting star schema.
Key Information Stored
The table preserves both the drafted billing content and the purge bookkeeping. The most significant columns are:
- PURGE_BATCH_ID — the documented foreign key to
PA_PURGE_BATCHES_ALL; identifies the archive/purge run that moved the row. - PURGE_RELEASE, PURGE_PROJECT_ID — release and project context for the purge operation.
- PROJECT_ID, TASK_ID, EVENT_TASK_ID, EVENT_NUM — the project, task, event task, and event that the invoice line originated from.
- DRAFT_INVOICE_NUM, LINE_NUM — the natural business identifiers of the draft invoice and line; together these form the strongest business-key candidate on the live table.
- DRAFT_INV_LINE_NUM_CREDITED — identifies the line being credited, preserving credit/rebill relationships.
- INVOICE_LINE_TYPE — the type of draft invoice line.
- AMOUNT, INV_AMOUNT, ACCT_AMOUNT, ROUNDING_AMOUNT — billed, invoiced, accounted, and rounding amounts.
- UNEARNED_REVENUE_CR, UNBILLED_RECEIVABLE_DR, UNBILLED_ROUNDING_AMOUNT_DR, UNEARNED_ROUNDING_AMOUNT_CR — the revenue and receivable accounting components of the line.
- CC_REV_CODE_COMBINATION_ID, CC_PROJECT_ID, CC_TAX_TASK_ID — credit/chargeback context.
- PROJFUNC_BILL_AMOUNT, PROJECT_BILL_AMOUNT, FUNDING_BILL_AMOUNT, BILL_TRANS_BILL_AMOUNT — amounts in project functional, project, funding, and billing transaction currencies, with corresponding currency codes.
- RETN_* columns and RETAINED_AMOUNT — retention billing method, percentage, cycle, rule, and retained values.
- OUTPUT_TAX_* columns — tax identifiers, exemption flags/reasons/numbers, and tax classification code.
- LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN — standard Who columns retained from the source row.
- REQUEST_ID, PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE — concurrent program audit context.
No surrogate primary key column is documented separately; the table is keyed by purge batch plus the inherited invoice line identity.
Common Use Cases and Queries
The principal use case is retention reporting: after a purge run removes draft invoice detail from the live table, historical reporting must still reconcile previously drafted or credited lines. A typical query joins the archive to the purge batch to isolate one run:
SELECT i.draft_invoice_num, i.line_num, i.amount, i.invoice_line_type FROM pa.pa_draft_inv_items_ar i WHERE i.purge_batch_id = :batch_id ORDER BY i.draft_invoice_num, i.line_num;- Project-level history:
SELECT project_id, SUM(amount) FROM pa.pa_draft_inv_items_ar WHERE purge_project_id = :project_id GROUP BY project_id; - Retention exposure:
SELECT draft_invoice_num, line_num, retn_billing_method, retn_total_retention, retained_amount FROM pa.pa_draft_inv_items_ar WHERE retention_rule_id IS NOT NULL; - Tax reconciliation:
SELECT output_vat_tax_id, output_tax_classification_code, SUM(acct_amount) FROM pa.pa_draft_inv_items_ar GROUP BY output_vat_tax_id, output_tax_classification_code;
Because the table holds archive copies, queries should always filter by PURGE_BATCH_ID or PURGE_PROJECT_ID to avoid scanning unrelated purge history.
Related Objects
The documented relationship data is deliberately thin, so the most significant dependencies are the source and purge-control objects:
- PA_PURGE_BATCHES_ALL — the only documented foreign key target; join on
PA_DRAFT_INV_ITEMS_AR.PURGE_BATCH_ID = PA_PURGE_BATCHES_ALL.PURGE_BATCH_IDto obtain batch status, dates, and run attributes. - PA_DRAFT_INV_ITEMS — the live source table from which archived rows are copied; column comments are inherited per the documented description.
- PA_DRAFT_INVOICES_ALL / PA_DRAFT_INVOICES — draft invoice headers associated through DRAFT_INVOICE_NUM for header-level reconciliation.
- PA_PROJECTS_ALL — PROJECT_ID and PURGE_PROJECT_ID resolve to project definitions.
- PA_TASKS — TASK_ID and EVENT_TASK_ID resolve to project task structure.
- PA_PROJECT_EVENTS — EVENT_NUM and EVENT_TASK_ID tie archived billing lines to the originating events.
- GL_CODE_COMBINATIONS — CC_REV_CODE_COMBINATION_ID resolves credit revenue accounts.
These joins allow the archive table to be used for historical project billing reconciliation without querying the live transactional table.
-
Table: PA_DRAFT_INV_ITEMS_AR
12.2.2
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INV_ITEMS_AR, object_name:PA_DRAFT_INV_ITEMS_AR, status:VALID, product: PA - Projects , description: Pa_Draft_Invoice_Items_ar is a table for Archive/Purge. Refer to comments on the columns in the main table , implementation_dba_data: PA.PA_DRAFT_INV_ITEMS_AR ,
-
Table: PA_DRAFT_INV_ITEMS_AR
12.1.1
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INV_ITEMS_AR, object_name:PA_DRAFT_INV_ITEMS_AR, status:VALID, product: PA - Projects , description: Pa_Draft_Invoice_Items_ar is a table for Archive/Purge. Refer to comments on the columns in the main table , implementation_dba_data: PA.PA_DRAFT_INV_ITEMS_AR ,
-
Table: PA_DRAFT_INVOICE_ITEMS
12.1.1
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INVOICE_ITEMS, object_name:PA_DRAFT_INVOICE_ITEMS, status:VALID, product: PA - Projects , description: Draft invoice lines , implementation_dba_data: PA.PA_DRAFT_INVOICE_ITEMS ,
-
Table: PA_DRAFT_INVOICE_ITEMS
12.2.2
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INVOICE_ITEMS, object_name:PA_DRAFT_INVOICE_ITEMS, status:VALID, product: PA - Projects , description: Draft invoice lines , implementation_dba_data: PA.PA_DRAFT_INVOICE_ITEMS ,
-
View: PA_CRDL_REVERSAL_RATE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_CRDL_REVERSAL_RATE_V, object_name:PA_CRDL_REVERSAL_RATE_V, status:VALID, product: PA - Projects , implementation_dba_data: APPS.PA_CRDL_REVERSAL_RATE_V ,
-
View: PA_DRAFT_INVOICE_ITEMS_MRC_V
12.1.1
product: PA - Projects , description: Single currency view , implementation_dba_data: Not implemented in this database ,
-
View: PA_DRAFT_INVOICE_ITEMS_MRC_V
12.2.2
product: PA - Projects , description: Single currency view , implementation_dba_data: Not implemented in this database ,
-
View: PA_DRAFT_INVOICE_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_DRAFT_INVOICE_LINES_V, object_name:PA_DRAFT_INVOICE_LINES_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_DRAFT_INVOICE_LINES_V ,
-
View: PA_DRAFT_INVOICE_LINES_ALL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_DRAFT_INVOICE_LINES_ALL_V, object_name:PA_DRAFT_INVOICE_LINES_ALL_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_DRAFT_INVOICE_LINES_ALL_V ,
-
View: PA_DRAFT_INVOICE_LINES_ALL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_DRAFT_INVOICE_LINES_ALL_V, object_name:PA_DRAFT_INVOICE_LINES_ALL_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_DRAFT_INVOICE_LINES_ALL_V ,
-
View: PA_DRAFT_INVOICE_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_DRAFT_INVOICE_LINES_V, object_name:PA_DRAFT_INVOICE_LINES_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_DRAFT_INVOICE_LINES_V ,