Results for “condition_rule”

22 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

AR_GTA_RULE_TRX_TYPES_ALL is an Oracle Receivables (AR) transaction table that stores the transaction-type-level detail of a Global Tax Accounting (GTA) transfer rule. Each row associates a Receivables transaction type with a transfer rule header, effectively defining which document types are subject to a given tax transfer/accounting rule. The _ALL suffix indicates the table is partitioned by operating unit through the ORG_ID column, so the same logical rule configuration can exist independently across multiple organizations in a multi-org deployment.

In Oracle EBS 12.1.1 and 12.2.2 the object is documented as VALID under the AR schema, with a primary key AR_GTA_RULE_TRX_TYPES_PK on RULE_LINE_ID. Its metadata defines a Data Vault classification (heuristic, mined from the FK structure) of link. This is a modeling suggestion only: the table resolves a many-to-many relationship between rule headers and transaction types, and therefore behaves as an associative or link entity rather than a descriptive hub or satellite. No descriptive measures or date-stamped history attributes are carried beyond standard audit columns.

Key Information Stored

The table is a thin associative structure. The most important columns are:

  • RULE_LINE_ID — surrogate primary key, enforced by AR_GTA_RULE_TRX_TYPES_PK. Unique, system-generated identifier for each rule-line row.
  • RULE_HEADER_ID — foreign key to AR_GTA_RULE_HEADERS_ALL, identifying the parent transfer rule header. Part of the alternate unique key.
  • CUST_TRX_TYPE_ID — foreign key to RA_CUST_TRX_TYPES_ALL, identifying the Receivables transaction type to which the rule applies. Part of the alternate unique key.
  • ORG_ID — operating unit that owns the row in the multi-org model.
  • CONDITION_RULE — the conditional expression or rule criterion governing when the transfer rule is applied to the transaction type.
  • DESCRIPTION — free-text description of the rule line.
  • LAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, CREATED_BY, LAST_UPDATE_LOGIN — standard EBS audit columns recording who created and last modified the row and when.

Two unique indexes are documented: AR_GTA_RULE_TRX_TYPES_U1 on RULE_LINE_ID (the surrogate key) and AR_GTA_RULE_TRX_TYPES_U2 on the composite (RULE_HEADER_ID, CUST_TRX_TYPE_ID), which is the true business-key candidate and prevents the same transaction type from being assigned twice to a single rule header.

Common Use Cases and Queries

Typical uses include auditing which transaction types a transfer rule covers, resolving rule conflicts across operating units, and reporting on tax accounting configuration before period close.

SELECT t.rule_line_id, h.rule_header_id, t.cust_trx_type_id,
       t.org_id, t.condition_rule, t.description
FROM   ar_gta_rule_trx_types_all t,
       ar_gta_rule_headers_all   h
WHERE  t.rule_header_id = h.rule_header_id
AND    t.org_id = :org_id;

A second pattern joins to transaction types to obtain human-readable names:

SELECT t.rule_header_id, c.name trx_type_name, c.type trx_class
FROM   ar_gta_rule_trx_types_all t,
       ra_cust_trx_types_all     c
WHERE  t.cust_trx_type_id = c.cust_trx_type_id
AND    t.org_id = c.org_id
AND    t.rule_header_id = :rule_header_id;

Reporting scenarios include verifying that no duplicate transaction type is attached to a rule (guaranteed by AR_GTA_RULE_TRX_TYPES_U2), enumerating all rules affected by a given transaction type, and delta reports using the audit columns to track recent configuration changes.

Related Objects

The FK/PK metadata identifies the following principal relationships:

  • AR_GTA_RULE_HEADERS_ALL — parent table; joined on RULE_HEADER_ID. Supplies the transfer rule definition.
  • RA_CUST_TRX_TYPES_ALL — referenced table; joined on CUST_TRX_TYPE_ID. Provides transaction type names and classes.
  • AR_GTA_RULE_TRX_TYPES_PK — primary key index on RULE_LINE_ID.
  • AR_GTA_RULE_TRX_TYPES_U2 — unique composite index on (RULE_HEADER_ID, CUST_TRX_TYPE_ID), the business-key candidate.

Downstream configuration and GTA processing logic that resolves transfer rules consumes these rows alongside the header table, so any change to this table directly alters which transaction types are captured by a given tax transfer rule.