Search Results arp_discounts_api
Overview
ARP_DISCOUNTS_API is a PL/SQL package in the Oracle Receivables (AR) module of Oracle E-Business Suite, delivered under the APPS schema. Its purpose is to calculate early payment discounts and the resulting remaining balances for invoices and receipts during the application process. The package encapsulates the business rules that determine how much discount a customer has earned when a payment is applied against an invoice, based on payment terms, grace days, and customer profile settings. As a public API, it exposes callable procedures so that Oracle Receivables forms, concurrent processes, and external or custom code can reuse the same discount logic rather than reimplementing it.
Key Procedures and Functions
- GET_DISCOUNT — The core procedure. It calculates the discount allowed on a payment and derives the remaining amount on the invoice after the applied amount and any earned discount are accounted for. It considers the payment schedule identifier, the application date, the amount being applied, and a grace-day flag that determines whether configured grace days are honored during the calculation. It returns the discount available and the remaining amounts. Its behavior is influenced by customer profile options and payment term definitions. This is the procedure users most commonly target when they search for get_discount.
- GET_MAX_DISCOUNT — Returns the maximum discount that could be earned for a given invoice or payment schedule, typically used to present the best available discount available to a user before application.
- GET_AVAILABLE_DISC_ON_INV — Reports the discount currently available on a specific invoice, supporting lookups and validation prior to applying receipts.
These three documented procedures share the package's internal discount-calculation logic and profile-driven configuration.
Tables Accessed
- AR_PAYMENT_SCHEDULES — Supplies the payment schedule record for the invoice or receipt, including amounts, terms, and related identifiers used in the discount computation.
- HZ_CUSTOMER_PROFILES — Provides customer and site-level profile settings, including grace day and cash application behavior flags used when site-level values are absent.
- RA_CUST_TRX_TYPES — Identifies the transaction type attributes relevant to the transaction being evaluated.
- RA_TERMS — Supplies payment term definitions that govern discount percentages, discount periods, and due dates.
Usage Notes
ARP_DISCOUNTS_API is an API-classified package intended for programmatic invocation rather than direct end-user interaction. It is referenced by three other packages within Oracle Receivables and is typically invoked from receipt application forms, the AutoCash and cash application workflows, and concurrent programs that post or distribute payments. Because the discount calculation depends on customer profile and term configuration, callers must pass a valid payment schedule identifier and an appropriate application date. The grace-days flag allows callers to control whether grace periods are applied. Custom extensions should call the documented procedures rather than query underlying tables directly, ensuring consistency with Oracle's shipped discount logic across EBS 12.1.1 and 12.2.2.
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_DISCOUNTS_API, status:VALID,
-
PACKAGE: APPS.ARP_DISCOUNTS_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_DISCOUNTS_API, status:VALID,
-
PACKAGE: APPS.ARP_DISCOUNTS_API
12.1.1
-
PACKAGE: APPS.ARP_DISCOUNTS_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_DISCOUNTS_API, status:VALID,
-
PACKAGE: APPS.ARP_DISCOUNTS_API
12.2.2
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_DISCOUNTS_API, status:VALID,
-
PACKAGE: APPS.ARP_CALCULATE_DISCOUNT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_CALCULATE_DISCOUNT, status:VALID,
-
PACKAGE: APPS.ARP_CALCULATE_DISCOUNT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_CALCULATE_DISCOUNT, status:VALID,
-
PACKAGE BODY: APPS.AR_IREC_APPLY_CREDITS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_IREC_APPLY_CREDITS, status:VALID,
-
PACKAGE: APPS.AR_RECEIPT_LIB_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AR_RECEIPT_LIB_PVT, status:VALID,
-
PACKAGE BODY: APPS.AR_IREC_APPLY_CREDITS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_IREC_APPLY_CREDITS, status:VALID,
-
VIEW: APPS.AR_TRX_DISCOUNTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_TRX_DISCOUNTS_V, object_name:AR_TRX_DISCOUNTS_V, status:VALID,
-
VIEW: APPS.AR_TRX_DISCOUNTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_TRX_DISCOUNTS_V, object_name:AR_TRX_DISCOUNTS_V, status:VALID,
-
PACKAGE BODY: APPS.AR_IREC_PAYMENTS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_IREC_PAYMENTS, status:VALID,
-
PACKAGE BODY: APPS.FUN_NET_ARAP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FUN_NET_ARAP_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_IREC_PAYMENTS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_IREC_PAYMENTS, status:VALID,
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
SYNONYM: APPS.RA_TERMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS, status:VALID,
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
SYNONYM: APPS.HZ_CUSTOMER_PROFILES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUSTOMER_PROFILES, status:VALID,
-
SYNONYM: APPS.HZ_CUSTOMER_PROFILES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUSTOMER_PROFILES, status:VALID,
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.1.1
-
PACKAGE: APPS.ARP_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_UTIL, status:VALID,
-
PACKAGE: APPS.ARP_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_UTIL, status:VALID,
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.2.2
-
APPS.AR_IREC_PAYMENTS dependencies on ARP_DISCOUNTS_API
12.2.2
-
SYNONYM: APPS.RA_CUST_TRX_TYPES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_CUST_TRX_TYPES, status:VALID,
-
APPS.AR_IREC_PAYMENTS dependencies on ARP_DISCOUNTS_API
12.1.1
-
APPS.ARP_DISCOUNTS_API dependencies on ARP_DISCOUNTS_API
12.2.2
-
APPS.AR_IREC_APPLY_CREDITS dependencies on ARP_DISCOUNTS_API
12.2.2
-
APPS.ARP_DISCOUNTS_API dependencies on ARP_DISCOUNTS_API
12.1.1
-
APPS.AR_IREC_APPLY_CREDITS dependencies on ARP_DISCOUNTS_API
12.1.1
-
APPS.FUN_NET_ARAP_PKG dependencies on ARP_DISCOUNTS_API
12.2.2
-
PACKAGE: APPS.ARP_STANDARD
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_STANDARD, status:VALID,
-
PACKAGE: APPS.ARP_STANDARD
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_STANDARD, status:VALID,
-
APPS.ARP_DISCOUNTS_API dependencies on AR_PAYMENT_SCHEDULES
12.1.1
-
APPS.ARP_DISCOUNTS_API dependencies on AR_PAYMENT_SCHEDULES
12.2.2
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,