← Back to Cases
PA Draft Invoice Item Amounts Incorrect
Case Number00035296
Oracle ModuleProject Accounting (PA)
EBS VersionR12
Functional AreaProject Billing / Draft Invoices
Related PatchesNone

Symptoms

Root Cause

The draft invoice item amounts in PA_DRAFT_INVOICE_ITEMS_ALL were incorrectly calculated or overridden, resulting in mismatched values across the billing amount, functional currency amount, project currency amount, and funding currency amount fields. Rounding fields were populated with non-zero values that should be zero. The fix corrects all affected amount columns to the proper billing value.

Resolution

Step 1 – Create backup table

Run data_fix.sql. The script creates a backup of the affected draft invoice item row:

CREATE TABLE rsi_pa_draft_inv_items AS
SELECT * FROM pa_draft_invoice_items_all
 WHERE project_id = <project_id>
   AND draft_invoice_num = <invoice_num>
   AND line_num = <line_num>;
Step 2 – Update draft invoice item amounts

Update PA_DRAFT_INVOICE_ITEMS_ALL for the affected project/invoice/line combination to set:

Step 3 – Commit and validate

Issue COMMIT. Verify the draft invoice now shows the correct amounts and can be approved and transferred to AR.


Script Inventory

FileDescription
data_fix.sqlCreates backup; corrects billing amount, unbilled receivable DR, functional/project/funding currency amounts, and clears rounding amounts on PA_DRAFT_INVOICE_ITEMS_ALL.

Key Tables Affected

TableAction
PA_DRAFT_INVOICE_ITEMS_ALLUpdate amount, unbilled_receivable_dr, inv_amount, acct_amount, rounding fields, currency billing amounts