Search Results ra_terms_lines_discounts
Overview
The RA_TERMS_LINES_DISCOUNTS table is a core data structure within the Oracle E-Business Suite Receivables (AR) module, specifically for versions 12.1.1 and 12.2.2. It serves as the primary repository for storing discount rules associated with payment terms. When a payment term is defined in the system, this table holds the detailed conditions under which a customer may take an early payment discount, including the discount percentage and the number of days from the invoice date within which the discount is valid. Its role is critical for automating the calculation of available discounts on transactions, directly impacting cash flow management and customer settlement behavior.
Key Information Stored
The table's primary purpose is to define the discount component of a payment term schedule. While the full column list is not detailed in the provided metadata, the structure is logically inferred from its purpose and key relationships. The primary key, TERMS_LINES_DISCOUNT_ID, uniquely identifies each discount rule. The foreign key column, TERM_ID, links the discount line to its parent payment term definition in the RA_TERMS_B table. Essential data columns typically include DISCOUNT_PERCENT (the offered discount rate), DISCOUNT_DAYS (the period from the invoice date eligible for the discount), and a SEQUENCE_NUM to order multiple discount lines. It also stores creation and last update dates, along with corresponding user IDs for auditing.
Common Use Cases and Queries
This table is central to any process involving payment term analysis or discount validation. A common reporting use case is to list all payment terms that offer a discount and their specific conditions. For system support, queries often join to RA_TERMS_B and its descriptive RA_TERMS_TL table to troubleshoot why a specific discount was not applied to a transaction. A typical SQL pattern retrieves the discount rules for a given term name:
- SELECT rtlb.name TERM_NAME, rtld.discount_percent, rtld.discount_days
- FROM ra_terms_lines_discounts rtld,
- ra_terms_b rtb,
- ra_terms_tl rtlb
- WHERE rtld.term_id = rtb.term_id
- AND rtb.term_id = rtlb.term_id
- AND rtlb.name = '&TERM_NAME'
- AND rtlb.language = USERENV('LANG');
This data is also vital for month-end closing procedures to validate outstanding discount liabilities.
Related Objects
The RA_TERMS_LINES_DISCOUNTS table has a direct and essential relationship within the Payment Terms data model, as documented by the provided foreign key metadata.
- RA_TERMS_B: This is the primary parent table. The foreign key RA_TERMS_LINES_DISCOUNTS.TERM_ID references RA_TERMS_B.TERM_ID. Every discount line must be associated with a valid payment term header defined in this base table.
- RA_TERMS_TL: While not a direct foreign key relationship, this is the translated descriptions table for RA_TERMS_B. For any user-facing report or query, a join from RA_TERMS_LINES_DISCOUNTS to RA_TERMS_B and then to RA_TERMS_TL (on TERM_ID and LANGUAGE) is standard to retrieve the term name.
- RA_TERMS_LINES: In a complete terms structure, payment terms consist of both due date lines (stored in RA_TERMS_LINES) and discount lines (stored in RA_TERMS_LINES_DISCOUNTS). These child tables are siblings, both linked to the RA_TERMS_B parent.
-
Table: RA_TERMS_LINES_DISCOUNTS
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERMS_LINES_DISCOUNTS, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID, product: AR - Receivables , description: Discount information for Payment Terms , implementation_dba_data: AR.RA_TERMS_LINES_DISCOUNTS ,
-
Table: RA_TERMS_LINES_DISCOUNTS
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERMS_LINES_DISCOUNTS, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID, product: AR - Receivables , description: Discount information for Payment Terms , implementation_dba_data: AR.RA_TERMS_LINES_DISCOUNTS ,
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.FUN_NET_ARAP_PKG dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.FII_AR_FACTS_AGING_PKG dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.ARP_ETAX_UTIL dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on RA_TERMS_LINES_DISCOUNTS
12.1.1
-
APPS.ARP_ETAX_UTIL dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on RA_TERMS_LINES_DISCOUNTS
12.2.2
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on RA_CUSTOMER_TRX
12.2.2
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on RA_CUSTOMER_TRX
12.1.1
-
VIEW: AR.RA_TERMS_LINES_DISCOUNTS#
12.2.2
owner:AR, object_type:VIEW, object_name:RA_TERMS_LINES_DISCOUNTS#, status:VALID,
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS_LINES
12.1.1
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS_LINES
12.2.2
-
VIEW: APPS.RA_TERMS_LINES_DISCOUNTS_DFV
12.1.1
-
VIEW: APPS.RA_TERMS_LINES_DISCOUNTS_DFV
12.2.2
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS
12.1.1
-
APPS.ECE_AR_TRANSACTION dependencies on RA_TERMS
12.2.2
-
SYNONYM: APPS.RA_TERMS_LINES_DISCOUNTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID,
-
SYNONYM: APPS.RA_TERMS_LINES_DISCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID,
-
TRIGGER: APPS.RA_TERMS_LINES_DISCOUNTS+
12.2.2
owner:APPS, object_type:TRIGGER, object_name:RA_TERMS_LINES_DISCOUNTS+, status:VALID,
-
TRIGGER: APPS.RA_TERMS_LINES_DISCOUNTS+
12.2.2
-
VIEW: AR.RA_TERMS_LINES_DISCOUNTS#
12.2.2
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS_LINES
12.1.1
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS_LINES
12.2.2
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on RA_TERMS
12.2.2
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS
12.2.2
-
APPS.ECE_CDMO_UTIL dependencies on RA_TERMS
12.1.1
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on RA_TERMS
12.1.1
-
VIEW: APPS.AR_TRX_DISCOUNTS_V
12.2.2
-
FUNCTION: APPS.RA_TERMS_LINES_DISCOUNTS=
12.2.2
-
TABLE: AR.RA_TERMS_LINES_DISCOUNTS
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERMS_LINES_DISCOUNTS, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID,
-
VIEW: APPS.AR_TRX_DISCOUNTS_V
12.1.1
-
TABLE: AR.RA_TERMS_LINES_DISCOUNTS
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_TERMS_LINES_DISCOUNTS, object_name:RA_TERMS_LINES_DISCOUNTS, status:VALID,
-
FUNCTION: APPS.RA_TERMS_LINES_DISCOUNTS=
12.2.2
owner:APPS, object_type:FUNCTION, object_name:RA_TERMS_LINES_DISCOUNTS=, status:VALID,
-
VIEW: APPS.RA_TERMS_LINES_DISCOUNTS_DFV
12.2.2
owner:APPS, object_type:VIEW, object_name:RA_TERMS_LINES_DISCOUNTS_DFV, status:VALID,
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_CALCULATE_DISCOUNT, status:VALID,
-
VIEW: APPS.RA_TERMS_LINES_DISCOUNTS_DFV
12.1.1
owner:APPS, object_type:VIEW, object_name:RA_TERMS_LINES_DISCOUNTS_DFV, status:VALID,
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on AR_PAYMENT_SCHEDULES
12.2.2
-
PACKAGE BODY: APPS.ECE_CDMO_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ECE_CDMO_UTIL, status:VALID,
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_CALCULATE_DISCOUNT, status:VALID,
-
PACKAGE BODY: APPS.ECE_CDMO_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ECE_CDMO_UTIL, status:VALID,
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on AR_PAYMENT_SCHEDULES_ALL
12.1.1
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on AR_PAYMENT_SCHEDULES
12.1.1
-
APPS.JL_BR_AR_REMIT_COLL_OCCUR dependencies on AR_PAYMENT_SCHEDULES_ALL
12.2.2