Search Results ar_trx_discounts_v
Overview
AR_TRX_DISCOUNTS_V is a Receivables (AR) view owned by the APPS schema that exposes the early-payment discount information attached to a transaction's payment schedule. Its embedded purpose comment states explicitly that it "is used to get discount information for LOV in applications window," identifying it as a supporting object for Oracle Forms list-of-values and related inquiry logic rather than a core transaction-processing entity. The view joins payment schedule rows to the terms and terms-line-discounts tables so that users can see, for a given installment, the applicable discount percent, the computed discount date, and the flags that govern how the discount behaves.
The ETRM metadata designates AR_TRX_DISCOUNTS_V as Release 11.5-only documentation, and the object is recorded as VALID under the APPS schema in both 12.1.1 and 12.2.2. Its presence in later releases reflects a narrow purpose: it is a residual convenience view from the 11.5 windowed LOV design. It remains available for ad-hoc queries and diagnostics, but customers should treat it as a documented legacy artifact rather than a supported extension point.
Underlying Base Objects
The view text selects from three base objects, all catalogued as synonyms in the documented metadata:
- AR_PAYMENT_SCHEDULES (PS) — supplies the payment schedule identifier, transaction identifier and number, remaining amount due, currency, customer, and site-use identifiers, along with transaction date and class.
- RA_TERMS (T) — supplies term header attributes, including DUE_CUTOFF_DAY, CALC_DISCOUNT_ON_LINES_FLAG, and PARTIAL_DISCOUNT_FLAG.
- RA_TERMS_LINES_DISCOUNTS (TLD) — supplies the discount percent, discount days, discount date, discount months forward, and discount day of month used in the date derivation.
Joins are enforced on T.TERM_ID = TLD.TERM_ID and PS.TERM_ID = T.TERM_ID, with the additional correlation PS.TERMS_SEQUENCE_NUMBER = TLD.SEQUENCE_NUM. The view also filters out schedules whose class is 'PMT' or 'GUAR', restricting output to invoice-type installments.
Key Columns
- PAYMENT_SCHEDULE_ID / CUSTOMER_TRX_ID / TRX_NUMBER — the schedule and transaction identifiers and the user-facing transaction number.
- DISCOUNT_PERCENT — the discount rate taken directly from the terms line discount record.
- DISCOUNT_DATE — a TRUNC'd date derived from DISCOUNT_DAYS when populated, otherwise from DISCOUNT_DATE or a month-forward calculation using DISCOUNT_MONTHS_FORWARD, DISCOUNT_DAY_OF_MONTH, and the terms' DUE_CUTOFF_DAY.
- CALC_DISCOUNT_ON_LINES_FLAG — indicates whether discounts are calculated at line level.
- PARTIAL_DISCOUNT_FLAG — indicates whether partial discounts are permitted for the term, which is central to the user's search term.
- AMOUNT_DUE_REMAINING, INVOICE_CURRENCY_CODE, CUSTOMER_ID, CUSTOMER_SITE_USE_ID — the remaining balance and party/currency context of the installment.
Common Use Cases and Queries
Typical usage is inquiry-driven: identifying discount-eligible installments for a transaction, validating the computed discount date against a term setup, or surfacing the partial discount flag during troubleshooting. A representative query filtering on the search term is:
SELECT trx_number, discount_percent, discount_date, partial_discount_flag, amount_due_remaining FROM apps.ar_trx_discounts_v WHERE partial_discount_flag = 'Y' AND customer_trx_id = :p_trx_id;
A second pattern retrieves all discount terms for a transaction's schedules:
SELECT trx_number, payment_schedule_id, discount_percent, discount_date, calc_discount_on_lines_flag FROM apps.ar_trx_discounts_v WHERE trx_number = :p_trx_number ORDER BY discount_date;
Because the view is documented as 11.5-only, reports should generally be built against RA_TERMS and RA_TERMS_LINES_DISCOUNTS directly when a supported, forward-compatible definition is required.
-
View: 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, product: AR - Receivables , description: (Release 11.5 Only) , implementation_dba_data: APPS.AR_TRX_DISCOUNTS_V ,
-
View: 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, product: AR - Receivables , description: (Release 11.5 Only) , implementation_dba_data: APPS.AR_TRX_DISCOUNTS_V ,
-
VIEW: APPS.AR_XML_PAYMENT_TERMS_V
12.2.2
-
VIEW: APPS.AR_XML_PAYMENT_TERMS_V
12.1.1
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_CALCULATE_DISCOUNT, status:VALID,
-
View: AR_XML_PAYMENT_TERMS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_PAYMENT_TERMS_V, object_name:AR_XML_PAYMENT_TERMS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_XML_PAYMENT_TERMS_V ,
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_DISCOUNTS_API, status:VALID,
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_DISCOUNTS_API, status:VALID,
-
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,
-
View: AR_XML_PAYMENT_TERMS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_PAYMENT_TERMS_V, object_name:AR_XML_PAYMENT_TERMS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_XML_PAYMENT_TERMS_V ,
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARP_CALCULATE_DISCOUNT, 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,
-
VIEW: APPS.AR_XML_PAYMENT_TERMS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_PAYMENT_TERMS_V, object_name:AR_XML_PAYMENT_TERMS_V, status:VALID,
-
VIEW: APPS.AR_XML_PAYMENT_TERMS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_PAYMENT_TERMS_V, object_name:AR_XML_PAYMENT_TERMS_V, status:VALID,
-
APPS.ARP_DISCOUNTS_API SQL Statements
12.1.1
-
APPS.ARP_DISCOUNTS_API SQL Statements
12.2.2
-
SYNONYM: APPS.RA_TERMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS, status:VALID,
-
SYNONYM: APPS.RA_TERMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
APPS.ARP_CALCULATE_DISCOUNT SQL Statements
12.1.1
-
APPS.ARP_DISCOUNTS_API dependencies on AR_TRX_DISCOUNTS_V
12.1.1
-
APPS.ARP_DISCOUNTS_API dependencies on AR_TRX_DISCOUNTS_V
12.2.2
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on AR_TRX_DISCOUNTS_V
12.2.2
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
APPS.ARP_CALCULATE_DISCOUNT SQL Statements
12.2.2
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
APPS.ARP_CALCULATE_DISCOUNT dependencies on AR_TRX_DISCOUNTS_V
12.1.1
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.1.1
-
PACKAGE BODY: APPS.ARP_DISCOUNTS_API
12.2.2
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.1.1
-
PACKAGE BODY: APPS.ARP_CALCULATE_DISCOUNT
12.2.2
-
12.2.2 DBA Data
12.2.2
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
12.1.1 DBA Data
12.1.1
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,