Search Results ota_tfl_api_business_rules2
Overview
APPS.OTA_TFL_API_BUSINESS_RULES2 is a PL/SQL package body in the Oracle E-Business Suite Training and Event Management (OTM) module. Within Oracle EBS 12.1.1 and 12.2.2, it forms part of the "TFL" (Training Finance Lines) application programming interface, a family of packages that governs the financial processing of training and event bookings. The package encapsulates the business rules that determine how amounts are calculated, updated, cancelled, and copied across finance records.
Its central role is to serve as a shared rules engine called by lower-level DML packages such as OTA_TFL_API_INS and OTA_TFL_API_UPD. Rather than embedding calculations in individual insert or update routines, Oracle centralizes the logic in OTA_TFL_API_BUSINESS_RULES2 so that pricing, finance header/line maintenance, cancellations, and header duplication follow consistent rules. The package is documented as valid against the APPS schema and is referenced by six other database objects, confirming it is an invoked dependency rather than an entry point.
Key Procedures and Functions
The ETRM metadata documents seven procedures and functions in this package body:
- SET_ALL_AMOUNTS — Derives and applies monetary amounts on finance records, typically recalculating totals from price lists, price list entries, and associated booking details.
- COPY_LINES_TO_NEW_HEADER — Duplicates existing finance lines onto a newly created finance header, supporting rebooking, transfers, and header restructuring.
- SET_CANCEL_FLAG_FOR_HEADER — Sets the cancellation indicator at the finance header level, cascading rule outcomes to the associated lines.
- CANCEL_FINANCE_LINE — Applies the cancellation logic to an individual finance line, updating its status flag and related amounts.
- RECANCEL_FINANCE_LINE — Handles reactivation or re-cancellation of a finance line, reversing or reapplying a prior cancellation state.
- CHANGE_LINE_FOR_HEADER — Adjusts a finance line in the context of its parent header, commonly when the header attributes change.
The package relies on HR_API, HR_UTILITY, FND_MESSAGE, and FND_CURRENCIES for currency handling, validation, and error messaging, and calls OTA_TFL_API_INS and OTA_TFL_API_UPD for persistence.
Tables Accessed
The package reads and writes the core finance and event structures of OTM:
- OTA_FINANCE_HEADERS and OTA_FINANCE_LINES — the primary targets, holding header-level and line-level financial data.
- OTA_PRICE_LISTS and OTA_PRICE_LIST_ENTRIES — sources for pricing when amounts are set.
- OTA_BOOKING_DEALS, OTA_DELEGATE_BOOKINGS, OTA_RESOURCE_BOOKINGS, and OTA_RESOURCE_ALLOCATIONS — booking and allocation context that drives line calculations.
- OTA_EVENTS — event definition used to resolve applicable financial rules.
- OTA_ACT_CAT_INCLUSIONS — activity category inclusions affecting what is charged.
- OTA_VENDOR_SUPPLIES — supplier-side data relevant to cost and pricing.
- FND_CURRENCIES — currency attributes applied during amount derivation.
Usage Notes
OTA_TFL_API_BUSINESS_RULES2 is not intended to be called directly from end-user forms. It is invoked by the TFL insert and update APIs, which in turn are called from OTM booking and finance forms, concurrent programs that process finance lines, and custom extensions. Because it is referenced by six other packages, changes to its logic affect the entire TFL processing chain. Developers extending OTM finance behavior should treat this package as the authoritative location for amount and cancellation rules, and should not bypass it when inserting or updating finance headers and lines.
-
PACKAGE BODY: APPS.OTA_TFL_API_BUSINESS_RULES2
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFL_API_BUSINESS_RULES2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFL_API_BUSINESS_RULES2, status:VALID,
-
SYNONYM: APPS.OTA_PRICE_LIST_ENTRIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_PRICE_LIST_ENTRIES, status:VALID,
-
SYNONYM: APPS.OTA_VENDOR_SUPPLIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_VENDOR_SUPPLIES, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_ALLOCATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_ALLOCATIONS, status:VALID,
-
SYNONYM: APPS.OTA_PRICE_LIST_ENTRIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_PRICE_LIST_ENTRIES, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_ALLOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_ALLOCATIONS, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_INS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_INS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFL_API_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFL_API_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_FINANCE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_FINANCE, status:VALID,
-
SYNONYM: APPS.OTA_VENDOR_SUPPLIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_VENDOR_SUPPLIES, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_INS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_INS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES2
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES2, status:VALID,
-
PACKAGE BODY: APPS.OTA_RESOURCE_BOOKING
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_RESOURCE_BOOKING, status:VALID,
-
PACKAGE BODY: APPS.OTA_RESOURCE_BOOKING
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_RESOURCE_BOOKING, status:VALID,
-
SYNONYM: APPS.OTA_ACT_CAT_INCLUSIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_ACT_CAT_INCLUSIONS, status:VALID,
-
SYNONYM: APPS.OTA_BOOKING_DEALS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_BOOKING_DEALS, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_UPD
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_UPD, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFL_API_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFL_API_BUS, status:VALID,
-
PACKAGE BODY: APPS.OTA_RESOURCE_BOOKING_SWI
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_RESOURCE_BOOKING_SWI, status:VALID,
-
PACKAGE BODY: APPS.OTA_FINANCE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_FINANCE, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_UPD
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OTA_TFL_API_UPD, status:VALID,
-
PACKAGE BODY: APPS.OTA_RESOURCE_BOOKING_SWI
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_RESOURCE_BOOKING_SWI, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
SYNONYM: APPS.OTA_PRICE_LISTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_PRICE_LISTS, status:VALID,
-
SYNONYM: APPS.OTA_PRICE_LISTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_PRICE_LISTS, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_BOOKINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_BOOKINGS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OTA_TFH_API_BUSINESS_RULES, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.2.2
-
SYNONYM: APPS.OTA_ACT_CAT_INCLUSIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_ACT_CAT_INCLUSIONS, status:VALID,
-
SYNONYM: APPS.OTA_BOOKING_DEALS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_BOOKING_DEALS, status:VALID,
-
PACKAGE: APPS.OTA_TFL_API_BUSINESS_RULES2
12.1.1
-
SYNONYM: APPS.OTA_FINANCE_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_HEADERS, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_LINES, status:VALID,
-
SYNONYM: APPS.OTA_RESOURCE_BOOKINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_RESOURCE_BOOKINGS, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_HEADERS, status:VALID,
-
SYNONYM: APPS.OTA_FINANCE_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_FINANCE_LINES, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES2
12.1.1
-
PACKAGE BODY: APPS.OTA_TFH_API_BUSINESS_RULES2
12.2.2
-
SYNONYM: APPS.OTA_DELEGATE_BOOKINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_DELEGATE_BOOKINGS, status:VALID,
-
SYNONYM: APPS.OTA_DELEGATE_BOOKINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_DELEGATE_BOOKINGS, status:VALID,
-
SYNONYM: APPS.OTA_EVENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OTA_EVENTS, status:VALID,
-
SYNONYM: APPS.OTA_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OTA_EVENTS, status:VALID,
-
PACKAGE BODY: APPS.OTA_TFL_API_BUS
12.1.1
-
PACKAGE BODY: APPS.OTA_TFL_API_BUS
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2