Search Results discount_amount_taken
Overview
IBY_PAYMENTS_SEC_V is a security-enabled view in the Oracle Payments (IBY) module of Oracle E-Business Suite, owned by the APPS schema and validated across release levels 12.1.1 and 12.2.2. It exposes payment records drawn from the IBY_PAYMENTS_ALL synonym while enforcing row-level access control, so that a user querying the view sees only those payments they are authorized to view under their assigned security profile and payment function privileges.
The view is the preferred read interface for reporting, integrations, and custom extensions that require payment data without bypassing Payments security. Rather than granting direct access to IBY_PAYMENTS_ALL, implementers query IBY_PAYMENTS_SEC_V to inherit operating unit, user, and function-based restrictions automatically. This makes it central to disbursement analysis, treasury reporting, bank instruction validation, and stop/void audit extracts. The metadata also indicates that the view surfaces a broad set of payment columns, including several relevant to discount and remittance processing; note that the column DISCOUNT_AMOUNT_TAKEN is not among the columns enumerated in the documented view text, and is instead sourced from the underlying payments table when full payment detail is required.
Underlying Base Objects
The documented referenced base objects establish both the data source and the security mechanism:
- IBY_PAYMENTS_ALL (SYNONYM) — the underlying payments entity from which all payment attributes are selected.
- IBY_USER_PAY_FUNS_SEC_V (VIEW) — resolves the set of payment functions accessible to the current user, forming a core filter predicate.
- CE_SECURITY_PROFILES_V (VIEW) — supplies cash management security profile context used to restrict bank account and payment visibility.
- FND_GLOBAL and FND_PROFILE (PACKAGES) — provide session values such as user ID, responsibility, and profile option settings used within the view's WHERE clause.
- FND_ACCESS_CONTROL_UTIL (PACKAGE) — supplies access control helper logic applied to restrict the returned rows.
- MO_GLOBAL (PACKAGE) — enforces multi-org / operating unit access, ensuring only payments belonging to accessible organizations are returned.
- XTR_USER_ACCESS (PACKAGE) — provides treasury user access checks that further narrow the result set.
Key Columns
The view exposes the principal payment attributes, including:
- PAPER_DOCUMENT_NUMBER, BANK_ASSIGNED_REF_CODE, DOCUMENT_SEQUENCE_VALUE, DOCUMENT_SEQUENCE_ID, DOCUMENT_CATEGORY_CODE — document identification and numbering.
- UNIQUE_REMITTANCE_IDENTIFIER and URI_CHECK_DIGIT — ISO remittance matching references.
- BANK_INSTRUCTION1_CODE and BANK_INSTRUCTION2_CODE — payment bank instruction identifiers.
- PAYMENT_TEXT_MESSAGE1 through 3 — remittance text delivered with the payment.
- BILL_PAYABLE_FLAG, MATURITY_DATE, PAYMENT_DUE_DATE — scheduling and maturity data.
- STOP_REQUEST_*, STOP_RELEASE_*, STOP_CONFIRM_* — the full payment-stop lifecycle, including flags, reasons, actors, dates, and references.
- VOID_REASON, VOIDED_BY, VOID_DATE — void audit attributes.
- ATTRIBUTE_CATEGORY and ATTRIBUTE1 through ATTRIBUTE4 — the flexible descriptive flexfield columns.
- REMIT_TO_LOCATION_ID, EXTERNAL_BANK_ACCOUNT_ID — supplier site and bank account references.
Because discount-related fields such as DISCOUNT_AMOUNT_TAKEN are not explicitly listed in the documented column set, they should be obtained by joining to IBY_PAYMENTS_ALL when both security filtering and discount analysis are required.
Common Use Cases and Queries
Typical applications include payment status dashboards, stop-payment audit reports, remittance advice validation, and integration extracts feeding treasury or bank reconciliation systems.
Listing payment documents and stop status for the current user:
SELECT paper_document_number, payment_due_date, stop_request_placed_flag, stop_request_reason FROM iby_payments_sec_v WHERE stop_request_placed_flag = 'Y';
Joining to the base table to include discount amounts alongside secured payment data:
SELECT s.paper_document_number, s.payment_due_date, p.discount_amount_taken FROM iby_payments_sec_v s, iby_payments_all p WHERE s.payment_id = p.payment_id AND p.discount_amount_taken > 0;
Extracting voided payments for audit purposes:
SELECT paper_document_number, void_reason, voided_by, void_date FROM iby_payments_sec_v WHERE void_date IS NOT NULL;
-
View: IBY_PAYMENTS_SEC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_PAYMENTS_SEC_V, object_name:IBY_PAYMENTS_SEC_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_PAYMENTS_SEC_V ,
-
View: IBY_PAYMENTS_SEC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_PAYMENTS_SEC_V, object_name:IBY_PAYMENTS_SEC_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_PAYMENTS_SEC_V ,
-
View: IBY_FD_PAYMENTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_PAYMENTS_V, object_name:IBY_FD_PAYMENTS_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_FD_PAYMENTS_V ,
-
View: IBY_EXT_FD_PMT_1_0_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_PMT_1_0_V, object_name:IBY_EXT_FD_PMT_1_0_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_EXT_FD_PMT_1_0_V ,
-
View: IBY_FD_PAYMENTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_PAYMENTS_V, object_name:IBY_FD_PAYMENTS_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_FD_PAYMENTS_V ,
-
View: IBY_EXT_FD_PMT_1_0_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_PMT_1_0_V, object_name:IBY_EXT_FD_PMT_1_0_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_EXT_FD_PMT_1_0_V ,