Search Results get_cash_defaults




Overview

APPS.AR_RECEIPT_LIB_PVT is the private implementation body of the Oracle Receivables receipt library. It supplies the core PL/SQL routines that the public Receipt API (AR_RECEIPT_API_PUB) and related Receivables interfaces rely on to construct, default, validate, and persist cash receipt information. The package is classified as PVT in the ETRM documentation, meaning it is an internal support package and is not intended as a directly callable public API. Its logic encapsulates the defaulting rules that determine how receipt attributes are populated from customer, transaction, bank, and receipt method sources when a user enters a receipt in the Receivables window or when receipt data is imported through the AutoLockbox, receipt migration, or Receipt API processes.

The header reflects a long-lived code line (ARXPRELB.pls, version 120.92.12020000.6, dated 2013), and the body contains extensive global cache declarations and record types, such as Site_Use_Cache_Rec_Type and Exchange_Rate_Cache, indicating a memory-caching design intended to reduce repeated lookups of customer sites, currencies, exchange rates, receipt methods, tax codes, and remittance references during high-volume receipt entry. This caching is particularly important for performance when processing large receipt batches.

Key Procedures and Functions

The documented procedures and functions divide into several functional groups that together implement receipt defaulting, ID derivation, and validation:

Tables Accessed

The package reads and writes the principal Receivables and shared reference tables that supply defaulting and validation data. AR_CASH_RECEIPTS stores the receipt records; AR_PAYMENT_SCHEDULES holds installment and application information; AR_RECEIPT_CLASSES and AR_RECEIPT_METHODS define valid receipt classifications and payment methods, with AR_RECEIPT_METHOD_ACCOUNTS_ALL supplying method-to-account mappings. CE_BANK_ACCOUNTS provides bank account data, while HZ_CUST_ACCOUNTS, HZ_CUST_SITE_USES, HZ_PARTIES, and HZ_PARTY_SITES (the TCA uptake objects, referenced in the Site_Use_Cache_Rec_Type record) supply customer, party, and site-use information. FND_CURRENCIES and GL_DAILY_CONVERSION_TYPES provide currency and exchange rate definitions, and RA_CUSTOMER_TRX supplies transaction data for deriving customer information. AP_INVOICES and AP_CHECKS are referenced to support integration scenarios involving payments and refunds. The ETRM metadata records APPS synonyms for these objects, confirming standard operating unit and multi-org access through the APPS schema.

Usage Notes

AR_RECEIPT_LIB_PVT is invoked indirectly rather than directly. The Receivables Receipts window (ARXRWMAI), the AutoLockbox concurrent program, and the public AR_RECEIPT_API_PUB package all delegate defaulting and derivation logic to this package when a receipt is created, applied, unapplied, reversed, or updated. The ETRM metadata notes that it is referenced by 11 other packages, confirming its role as a foundational dependency within the Receivables receipt code family.

Because the package is marked PVT and is not documented as a public API, customizations and extensions should generally avoid calling it directly; supported integration should use AR_RECEIPT_API_PUB or the documented Receipt API instead. When diagnosing defaulting issues — such as why a miscellaneous receipt defaulted a particular receipt method, activity, or customer — the routines GET_MISC_DEFAULTS and DEFAULT_MISC_IDS are the relevant entry points in the cached defaulting flow. Performance tuning considerations include the package's 1,000-entry cache declarations, which persist for the duration of a session and can materially affect throughput during bulk receipt processing. The package is delivered identically in EBS 12.1.1 and 12.2.2, with the 12.2 online patching edition retaining the same ARXPRELB.pls lineage.