Search Results okl_billing_util_pvt
Overview
OKL_BILLING_UTIL_PVT is a private PL/SQL package body in the APPS schema that supports the Oracle Lease and Finance Management (OKL) billing and invoicing subsystem within Oracle E-Business Suite 12.1.1 and 12.2.2. Its role is to provide the arithmetic and inquiry utilities required to determine, for a given contract, stream, or invoice, how much has been billed, applied, credited, and remains outstanding. The package is classified as a PVT (private) API, meaning it is intended for internal consumption by other ETRM packages rather than as a published integration point. The metadata confirms that OKL_BILLING_UTIL_PVT is not referenced by any database object directly, but it is referenced by twenty-nine other packages, which confirms its position as a shared, low-level utility layer beneath the public lease billing APIs.
Key Procedures and Functions
The package exposes thirty-five documented procedures and functions, predominantly scalar query helpers that return amounts, dates, or identifiers. They fall into several logical families.
- Invoice-level amount utilities: INVOICE_AMOUNT_ORIG, INVOICE_AMOUNT_APPLIED, INVOICE_AMOUNT_CREDITED, and INVOICE_AMOUNT_REMAINING return the original, applied, credited, and open balances for an invoice.
- Invoice-line amount utilities: INVOICE_LINE_AMOUNT_ORIG, INVOICE_LINE_AMOUNT_APPLIED, INVOICE_LINE_AMOUNT_CREDITED, and INVOICE_LINE_AMOUNT_REMAINING perform the equivalent calculations at the invoice line level.
- Line identification: LINE_ID_APPLIED and LINE_NUMBER_APPLIED resolve the transaction line against which an application was recorded.
- Transaction-line-detail (TLD) utilities: GET_TLD_AMOUNT_ORIG, GET_TLD_AMOUNT_APPLIED, GET_TLD_AMOUNT_CREDITED, GET_TLD_AMOUNT_REMAINING, and GET_TLD_BALANCE aggregate receivable activity at the transaction-line-detail grain.
- Contract-level balance: GET_CONTRACT_INVOICE_BALANCE returns the aggregate invoice balance for a contract.
- Ancillary helpers: LAST_INVOICE_DATE, INVOICE_AMOUNT_FOR_STREAM, INVOICE_LINE_TAX_AMOUNT, and CHECK_PREUPGRADE_DATA support date retrieval, stream-specific invoicing, tax extraction, and data validation during upgrade.
Tables Accessed
Consistent with its calculation role, the package reads and writes a broad set of Oracle Receivables and OKL tables. On the Receivables side it touches AR_ADJUSTMENTS_ALL, AR_DISTRIBUTIONS_ALL, AR_PAYMENT_SCHEDULES_ALL, AR_RECEIVABLE_APPLICATIONS_ALL, RA_CUSTOMER_TRX_ALL, and RA_CUSTOMER_TRX_LINES_ALL to derive applied, adjusted, and credited amounts. On the OKL side it references the billing consolidation tables OKL_CNSLD_AR_HDRS_B, OKL_CNSLD_AR_LINES_B, and OKL_CNSLD_AR_STRMS_B; the invoice and line tables OKL_TRX_AR_INVOICES_B, OKL_TXL_AR_INV_LNS_B, and OKL_TXD_AR_LN_DTLS_B; the contract tables OKC_K_HEADERS_B and OKL_K_HEADERS; the stream type table OKL_STRM_TYPE_B; the selling-invoice tables OKL_EXT_SELL_INVS_B, OKL_XTL_SELL_INVS_B, and OKL_XTL_SELL_INVS_TL; and the governance table OKC_GOVERNANCES. FND_LOG_MESSAGES is used for diagnostic output via FND_LOG and OKL_DEBUG_PUB.
Usage Notes
OKL_BILLING_UTIL_PVT is invoked internally by the ETRM billing and invoicing flow, including the public OKL_API, OKL_DEBUG_PUB, and the twenty-nine dependent packages that call its helpers when assembling invoice balances, adjusting receivables, or reporting remaining amounts. Custom code should generally call the public OKL APIs rather than this private package, but developers extending lease billing logic may reference these utilities when the standard APIs do not expose a required balance. The package is marked VALID in the documented environment and relies on standard dependencies such as FND_API, APP_EXCEPTION, FND_FILE, and FND_PROFILE.
-
PACKAGE BODY: APPS.OKL_BILLING_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_BILLING_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_BILLING_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_BILLING_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_BILLING_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKL_BILLING_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.OKL_BILLING_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKL_BILLING_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.OKL_XTL_SELL_INVS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_XTL_SELL_INVS_B, status:VALID,
-
SYNONYM: APPS.OKL_XTL_SELL_INVS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_XTL_SELL_INVS_TL, status:VALID,
-
SYNONYM: APPS.OKL_XTL_SELL_INVS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_XTL_SELL_INVS_TL, status:VALID,
-
SYNONYM: APPS.OKL_XTL_SELL_INVS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_XTL_SELL_INVS_B, status:VALID,
-
SYNONYM: APPS.OKL_EXT_SELL_INVS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_EXT_SELL_INVS_B, status:VALID,
-
VIEW: APPS.IEX_AVAIL_CONTRACTS_V2
12.1.1
owner:APPS, object_type:VIEW, object_name:IEX_AVAIL_CONTRACTS_V2, status:VALID,
-
VIEW: APPS.OKL_CS_DEPRECN_SCHEDULES_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_DEPRECN_SCHEDULES_UV, object_name:OKL_CS_DEPRECN_SCHEDULES_UV, status:VALID,
-
SYNONYM: APPS.OKL_EXT_SELL_INVS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_EXT_SELL_INVS_B, status:VALID,
-
VIEW: APPS.OKL_CS_VAT_SCHEDULES_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_VAT_SCHEDULES_UV, object_name:OKL_CS_VAT_SCHEDULES_UV, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_LINES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_LINES_B, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_LINES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_LINES_B, status:VALID,
-
VIEW: APPS.OKL_CS_DEPRECN_SCHEDULES_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_DEPRECN_SCHEDULES_UV, object_name:OKL_CS_DEPRECN_SCHEDULES_UV, status:VALID,
-
PACKAGE BODY: APPS.OKL_RECEIPTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_RECEIPTS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_RECEIPTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_RECEIPTS_PVT, status:VALID,
-
VIEW: APPS.OKL_CS_VAT_SCHEDULES_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CS_VAT_SCHEDULES_UV, object_name:OKL_CS_VAT_SCHEDULES_UV, status:VALID,
-
VIEW: APPS.IEX_AVAIL_CONTRACTS_V2
12.2.2
owner:APPS, object_type:VIEW, object_name:IEX_AVAIL_CONTRACTS_V2, status:VALID,
-
PACKAGE BODY: APPS.OKL_LTE_CHRG_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_LTE_CHRG_PVT, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_HDRS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_HDRS_B, status:VALID,
-
VIEW: APPS.OKL_BPD_AR_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_BPD_AR_LINES_V, object_name:OKL_BPD_AR_LINES_V, status:VALID,
-
SYNONYM: APPS.OKL_TXL_AR_INV_LNS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_AR_INV_LNS_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_CNTRCT_FIN_EXTRACT_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CNTRCT_FIN_EXTRACT_PVT, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_STRMS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_STRMS_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_CNTRCT_FIN_EXTRACT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CNTRCT_FIN_EXTRACT_PVT, status:VALID,
-
SYNONYM: APPS.OKC_GOVERNANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_GOVERNANCES, status:VALID,
-
SYNONYM: APPS.OKL_TXL_AR_INV_LNS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXL_AR_INV_LNS_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_LTE_CHRG_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_LTE_CHRG_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CS_TRANSACTIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CS_TRANSACTIONS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKL_CS_TRANSACTIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_CS_TRANSACTIONS_PVT, status:VALID,
-
VIEW: APPS.OKL_BPD_AR_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_BPD_AR_LINES_V, object_name:OKL_BPD_AR_LINES_V, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_HDRS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_HDRS_B, status:VALID,
-
SYNONYM: APPS.AR_DISTRIBUTIONS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_DISTRIBUTIONS_ALL, status:VALID,
-
VIEW: APPS.OKL_CURE_CONTRACT_UV
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CURE_CONTRACT_UV, object_name:OKL_CURE_CONTRACT_UV, status:VALID,
-
VIEW: APPS.OKL_CURE_CONTRACT_UV
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_CURE_CONTRACT_UV, object_name:OKL_CURE_CONTRACT_UV, status:VALID,
-
VIEW: APPS.OKL_BPD_CONTRACT_INVOICES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_BPD_CONTRACT_INVOICES_V, object_name:OKL_BPD_CONTRACT_INVOICES_V, status:VALID,
-
VIEW: APPS.IEX_WRITTENOFF_INVOICES_V2
12.1.1
owner:APPS, object_type:VIEW, object_name:IEX_WRITTENOFF_INVOICES_V2, status:VALID,
-
VIEW: APPS.OKL_BPD_CONTRACT_INVOICES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKL.OKL_BPD_CONTRACT_INVOICES_V, object_name:OKL_BPD_CONTRACT_INVOICES_V, status:VALID,
-
VIEW: APPS.IEX_WRITTENOFF_INVOICES_V2
12.2.2
owner:APPS, object_type:VIEW, object_name:IEX_WRITTENOFF_INVOICES_V2, status:VALID,
-
SYNONYM: APPS.OKL_TXD_AR_LN_DTLS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKL_TXD_AR_LN_DTLS_B, status:VALID,
-
PACKAGE BODY: APPS.OKL_REBOOK_CM_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKL_REBOOK_CM_PVT, status:VALID,
-
VIEW: APPS.OKL_CS_ACCOUNT_CONT_INV_UV
12.1.1
owner:APPS, object_type:VIEW, object_name:OKL_CS_ACCOUNT_CONT_INV_UV, status:VALID,
-
VIEW: APPS.OKL_CS_ACCOUNT_CONT_INV_UV
12.2.2
owner:APPS, object_type:VIEW, object_name:OKL_CS_ACCOUNT_CONT_INV_UV, status:VALID,
-
SYNONYM: APPS.OKL_CNSLD_AR_STRMS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_CNSLD_AR_STRMS_B, status:VALID,
-
SYNONYM: APPS.AR_ADJUSTMENTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_ADJUSTMENTS_ALL, status:VALID,
-
SYNONYM: APPS.OKL_TRX_AR_INVOICES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TRX_AR_INVOICES_B, status:VALID,
-
SYNONYM: APPS.AR_ADJUSTMENTS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_ADJUSTMENTS_ALL, status:VALID,
-
SYNONYM: APPS.OKL_TXD_AR_LN_DTLS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKL_TXD_AR_LN_DTLS_B, status:VALID,