Search Results pa_billing_amount
Overview
PA_BILLING_AMOUNT is a PL/SQL package owned by the APPS schema in Oracle E-Business Suite, classified under the ETRM object registry as an "OTHER" API. It forms part of the Project Billing module's calculation engine, providing the core amount-derivation logic used when Oracle Projects determines billable values on project contracts, agreements, and funding arrangements. The package encapsulates the arithmetic and lookup rules that convert raw project transactions — expenditures, events, and revenue distributions — into the monetary figures consumed by the billing generation process.
Rather than exposing a single entry point, the package serves as a library of computation routines invoked by higher-level billing programs. Its dependent objects confirm this role: PA_BILLING, PA_BILLING_PUB, PA_BILL_PCT, and PA_BILLING_AMOUNT itself (internal recursive calls) all reference it. The package is reported as VALID in ETRM, and its only external dependency at the schema level is SYS.STANDARD, indicating that all application-level dependencies are resolved through APPS synonyms rather than direct schema references.
Key Procedures and Functions
ETRM documents seven procedures and functions within the package. Their names indicate the amount categories they compute:
- COSTAMOUNT — Derives the cost-based amount associated with billing, typically aggregating expenditure items for use as the basis of a bill line or funding limit check.
- REVENUEAMOUNT — Calculates revenue-related amounts, drawn from revenue distribution data, for comparison against or inclusion in billing calculations.
- POTEVENTAMOUNT — Computes the potential (unbilled or not-yet-invoiced) event amount, supporting event-based billing where billable milestones generate invoice lines.
- INVOICEAMOUNT — Returns the amount already invoiced, allowing callers to determine remaining billable value.
- LOWESTAMOUNTLEFT — Identifies the smallest remaining billable amount across the candidate basis, a common requirement when a funding limit or contract ceiling restricts the amount that may still be billed.
- RDL_AMOUNT — Computes an amount from revenue distribution lines (RDL), the revenue counterpart used in billing-to-revenue reconciliation logic.
- GET_BASELINE_BUDGET — Retrieves the baseline budget amount for a project or task, supporting budget-versus-actual comparisons that feed billing limits or percentage-complete calculations.
Parameter lists are not exposed in the ETRM extract; callers should obtain signatures from the package specification in the APPS schema.
Tables Accessed
The package reads from and writes to fifteen documented PA tables through APPS synonyms, spanning the billing, revenue, costing, and budgeting sub-models:
- Billing and invoicing: PA_BILLING_ASSIGNMENTS, PA_BILLING_EXTENSIONS, PA_DRAFT_INVOICE_ITEMS, PA_AGREEMENTS_ALL — supplying the billing rules, extension attributes, draft invoice lines, and agreement terms that govern how amounts are derived.
- Revenue: PA_DRAFT_REVENUE_ITEMS, PA_CUST_REV_DIST_LINES, PA_CUST_EVENT_REV_DIST_LINES — the source of revenue-basis amounts used by REVENUEAMOUNT and RDL_AMOUNT.
- Costing: PA_EXPENDITURE_ITEMS_ALL, PA_COST_DISTRIBUTION_LINES_ALL — the cost-basis transactions consumed by COSTAMOUNT.
- Events: PA_EVENTS, PA_EVENT_TYPES — defining billable events and their classification for POTEVENTAMOUNT.
- Budgets and structure: PA_BUDGET_VERSIONS, PA_PERIODS, PA_PROJECTS, PA_PROJECTS_ALL — providing baseline budget figures, period context, and project attributes necessary for all calculations.
Usage Notes
PA_BILLING_AMOUNT is not intended for direct end-user invocation. It is called programmatically by Oracle Projects billing forms, by concurrent programs that generate draft invoices and revenue, and by the public billing APIs. The three packages documented as referencing it — PA_BILLING, PA_BILLING_PUB, and PA_BILL_PCT — perform the orchestration, validation, and persistence work around these amount computations. Custom extensions should follow the same pattern: call the documented routines for amount derivation rather than reimplementing billing arithmetic, since funding-limit, ceiling, and agreement logic is centralized here. Because the package is maintained by Oracle and its specification may change between releases, custom code should avoid depending on undocumented elements and should be regression-tested across EBS 12.1.1 and 12.2.2 upgrades.
-
PACKAGE: APPS.PA_BILLING_AMOUNT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING_AMOUNT, status:VALID,
-
PACKAGE: APPS.PA_BILLING_AMOUNT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING_AMOUNT, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING_AMOUNT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING_AMOUNT, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING_AMOUNT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING_AMOUNT, status:VALID,
-
SYNONYM: APPS.PA_BILLING_ASSIGNMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_BILLING_ASSIGNMENTS, status:VALID,
-
SYNONYM: APPS.PA_DRAFT_REVENUE_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_DRAFT_REVENUE_ITEMS, status:VALID,
-
SYNONYM: APPS.PA_CUST_EVENT_REV_DIST_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_CUST_EVENT_REV_DIST_LINES, status:VALID,
-
PACKAGE: APPS.PA_BILLING_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING_PUB, status:VALID,
-
SYNONYM: APPS.PA_BILLING_EXTENSIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_BILLING_EXTENSIONS, status:VALID,
-
SYNONYM: APPS.PA_BILLING_EXTENSIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_BILLING_EXTENSIONS, status:VALID,
-
SYNONYM: APPS.PA_SUMMARY_PROJECT_FUNDINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_SUMMARY_PROJECT_FUNDINGS, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING, status:VALID,
-
SYNONYM: APPS.PA_BILLING_ASSIGNMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_BILLING_ASSIGNMENTS, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING_PUB, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING, status:VALID,
-
SYNONYM: APPS.PA_CUST_EVENT_REV_DIST_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_CUST_EVENT_REV_DIST_LINES, status:VALID,
-
PACKAGE: APPS.PA_BILLING_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING_PUB, status:VALID,
-
SYNONYM: APPS.PA_DRAFT_REVENUE_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_DRAFT_REVENUE_ITEMS, status:VALID,
-
PACKAGE: APPS.PA_BILLING
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING, status:VALID,
-
PACKAGE: APPS.PA_BUDGET_UTILS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_BUDGET_UTILS, status:VALID,
-
PACKAGE: APPS.PA_BUDGET_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_BUDGET_UTILS, status:VALID,
-
PACKAGE: APPS.PA_MULTI_CURRENCY_BILLING
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_MULTI_CURRENCY_BILLING, status:VALID,
-
PACKAGE: APPS.PA_BILLING
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_BILLING, status:VALID,
-
PACKAGE: APPS.PA_MCB_INVOICE_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_MCB_INVOICE_PKG, status:VALID,
-
SYNONYM: APPS.PA_SUMMARY_PROJECT_FUNDINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_SUMMARY_PROJECT_FUNDINGS, status:VALID,
-
SYNONYM: APPS.PA_CUST_REV_DIST_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_CUST_REV_DIST_LINES, status:VALID,
-
PACKAGE BODY: APPS.PA_BILLING_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILLING_PUB, status:VALID,
-
PACKAGE: APPS.PA_MCB_INVOICE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_MCB_INVOICE_PKG, status:VALID,
-
PACKAGE BODY: APPS.PA_BILL_PCT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILL_PCT, status:VALID,
-
PACKAGE BODY: APPS.PA_BILL_PCT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PA_BILL_PCT, status:VALID,
-
SYNONYM: APPS.PA_TXN_ACCUM
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_TXN_ACCUM, status:VALID,
-
SYNONYM: APPS.PA_TXN_ACCUM
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_TXN_ACCUM, status:VALID,
-
SYNONYM: APPS.PA_CUST_REV_DIST_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_CUST_REV_DIST_LINES, status:VALID,
-
PACKAGE: APPS.PA_MULTI_CURRENCY_BILLING
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_MULTI_CURRENCY_BILLING, status:VALID,
-
PACKAGE: APPS.PA_BILLING_AMOUNT
12.1.1
-
PACKAGE: APPS.PA_BILLING_AMOUNT
12.2.2
-
SYNONYM: APPS.PA_EVENT_TYPES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_EVENT_TYPES, status:VALID,
-
SYNONYM: APPS.PA_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_EVENTS, status:VALID,
-
SYNONYM: APPS.PA_EVENT_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_EVENT_TYPES, status:VALID,
-
SYNONYM: APPS.PA_AGREEMENTS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_AGREEMENTS_ALL, status:VALID,
-
SYNONYM: APPS.PA_PROJECT_CUSTOMERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_PROJECT_CUSTOMERS, status:VALID,
-
SYNONYM: APPS.PA_EVENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_EVENTS, status:VALID,
-
SYNONYM: APPS.PA_AGREEMENTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_AGREEMENTS_ALL, status:VALID,
-
SYNONYM: APPS.PA_PERIODS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_PERIODS, status:VALID,
-
SYNONYM: APPS.PA_PERIODS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_PERIODS, status:VALID,
-
SYNONYM: APPS.PA_DRAFT_INVOICE_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_DRAFT_INVOICE_ITEMS, status:VALID,
-
PACKAGE: APPS.PA_MULTI_CURRENCY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_MULTI_CURRENCY, status:VALID,
-
PACKAGE: APPS.PA_MULTI_CURRENCY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_MULTI_CURRENCY, status:VALID,
-
SYNONYM: APPS.PA_DRAFT_INVOICE_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_DRAFT_INVOICE_ITEMS, status:VALID,
-
SYNONYM: APPS.PA_PROJECT_CUSTOMERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_PROJECT_CUSTOMERS, status:VALID,