Results for “tradein_amount”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKL_LA_TRADEIN_UV is a reporting view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the OKL (Lease and Finance Management) product family. Its documented description is "Trade-in Details View." The view consolidates trade-in asset attributes captured against lease and finance contract lines, exposing the trade-in amount, the associated asset cost, and the descriptive details of the leased or financed asset. It is registered as a VALID object at ETRM 12.2.2 and remains available in the 12.1.1 code line, since the underlying OKC and OKL contract-line schema is common to both releases.
The view is read-only by design. It does not store data; it projects and joins contract-line data maintained by the Oracle Contracts (OKC) core tables and the Lease Management extension table. Because the view joins translation and status tables, it returns only active, non-terminated lines and is suitable for inquiry, concurrent-program extracts, XML Publisher report sources, and ad hoc operational reporting. It is not intended as a transactional interface, and no programmatic DML should be attempted against it.
Underlying Base Objects
The view is defined over five referenced objects, all resolved through APPS synonyms:
- OKC_K_LINES_B — the base contract line table, supplying the line identifier and header (DNZ_CHR_ID) context.
- OKC_K_LINES_TL — the translated contract line name table, filtered to the session language.
- OKC_LINE_STYLES_B — the line style definition, used to restrict the view to the FREE_FORM1 line style.
- OKC_STATUSES_B — the status code definition, used to exclude HOLD, EXPIRED, and CANCELLED lines.
- OKL_K_LINES — the Lease and Finance Management extension table holding the trade-in amount and asset cost values.
The join keys are KLE.ID = CLE.ID for both the base and translated line tables, CLE.LSE_ID = LSE.ID for the line style, CLE.STS_CODE = STS.CODE for the status, and CLET.LANGUAGE = USERENV('LANG') for language resolution. The FK between OKC_K_LINES_B and OKL_K_LINES is a one-to-one line extension relationship keyed on the contract line ID.
Key Columns
- ID — the contract line identifier, aliased from KLE.ID, serving as the primary row key.
- DNZ_CHR_ID — the contract header identifier from the base line, linking the trade-in back to the contract.
- ASSET_NUMBER — the asset number or line name, sourced from the translated line table.
- TRADEIN_AMOUNT — a character representation of KLE.TRADEIN_AMOUNT produced by TO_CHAR; note the datatype conversion when ordering or arithmetic is required.
- ASSET_ID — the same identifier as ID, exposed under an asset-oriented alias.
- DESCRIPTION — the item description of the asset, from CLET.ITEM_DESCRIPTION.
- ASSET_COST — the asset cost value sourced from KLE.OEC. This is the column most frequently targeted by users searching for "asset_cost," and it represents the recorded cost basis of the trade-in asset rather than the trade-in credit.
- AMOUNT — the trade-in amount, aliased from KLE.TRADEIN_AMOUNT and returned in numeric form.
Common Use Cases and Queries
Typical uses include trade-in valuation reporting, reconciliation of trade-in credit against asset cost, and feeds into leasing profitability extracts. All queries should be issued as the APPS schema or an account with APPS privileges.
- List trade-ins with cost and credit above a threshold:
SELECT id, asset_number, asset_cost, amount FROM apps.okl_la_tradein_uv WHERE asset_cost IS NOT NULL ORDER BY asset_cost DESC; - Aggregate trade-in value per contract header:
SELECT dnz_chr_id, SUM(amount) FROM apps.okl_la_tradein_uv GROUP BY dnz_chr_id; - Compare cost to credit:
SELECT asset_number, asset_cost, amount, (asset_cost - amount) variance FROM apps.okl_la_tradein_uv; - Search by a specific asset:
SELECT id, dnz_chr_id, asset_number, description FROM apps.okl_la_tradein_uv WHERE asset_number = :p_asset;
Because TRADEIN_AMOUNT is a character column while ASSET_COST and AMOUNT are numeric, comparisons and sorting should reference AMOUNT rather than TRADEIN_AMOUNT to avoid implicit conversion and to ensure correct numeric ordering.
-
View: OKL_LA_TRADEIN_UV 12.2.2
Trade-in Details View
APPS.OKL_LA_TRADEIN_UV·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKC_LINE_STYLES_B·Explore OKL module →
-
History table for OKL_K_HEADERS
-
Oracle Lease Management shadow table for Oracle Contracts Core line tables, OKC_K_LINES_B and OKC_K_LINES_TL. OKL_K_LINES contains attributes that relate to contracts created in OKL and do not fit into the standard lines tables OKC_K_LINES_
-
View: OKL_LA_TRADEIN_UV 12.1.1
Trade-in Details View
APPS.OKL_LA_TRADEIN_UV·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKC_LINE_STYLES_B·Explore OKL module →
-
View: OKL_ASSET_ADJUST_UV 12.2.2
User interface view used for Asset Adjustment screen
APPS.OKL_ASSET_ADJUST_UV·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKC_LINE_STYLES_B·Explore OKL module →
-
View: OKL_ASSET_ADJUST_UV 12.1.1
User interface view used for Asset Adjustment screen
APPS.OKL_ASSET_ADJUST_UV·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKC_LINE_STYLES_B·Explore OKL module →
-
View: OKL_K_HEADERS_V 12.1.1
Oracle Lease Management shadow table for Oracle Contracts Core header tables, OKC_K_HEADERS_B and OKC_K_HEADERS_TL. OKL_K_HEADERS contains attributes that relate to contracts created in OKL and do not fit into the standard header tables O
-
View: OKL_K_LINES_V 12.1.1
Oracle Lease Management shadow table for Oracle Contracts Core line tables, OKC_K_LINES_B and OKC_K_LINES_TL. OKL_K_LINES contains attributes that relate to contracts created in OKL and do not fit into the standard lines tables OKC_K_LINES_
-
View: OKL_K_LINES_V 12.2.2
Oracle Lease Management shadow table for Oracle Contracts Core line tables, OKC_K_LINES_B and OKC_K_LINES_TL. OKL_K_LINES contains attributes that relate to contracts created in OKL and do not fit into the standard lines tables OKC_K_LINES_
-
View: OKL_K_LINES_FULL_V 12.2.2
OKL_K_LINES_FULL_V is the full view on tables OKC_K_LINES_B and OKL_K_LINES. It combines the attributes of contracts core and lease management contract line tables.
APPS.OKL_K_LINES_FULL_V·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKL_K_LINES·Explore OKL module →
-
View: OKL_K_LINES_FULL_V 12.1.1
OKL_K_LINES_FULL_V is the full view on tables OKC_K_LINES_B and OKL_K_LINES. It combines the attributes of contracts core and lease management contract line tables.
APPS.OKL_K_LINES_FULL_V·↳ OKC_K_LINES_B·↳ OKC_K_LINES_TL·↳ OKL_K_LINES·Explore OKL module →
-
Oracle Lease Management shadow table for Oracle Contracts Core header tables, OKC_K_HEADERS_B and OKC_K_HEADERS_TL. OKL_K_HEADERS contains attributes that relate to contracts created in OKL and do not fit into the standard header tables O
-
Oracle Lease Management shadow table for Oracle Contracts Core header tables, OKC_K_HEADERS_B and OKC_K_HEADERS_TL. OKL_K_HEADERS contains attributes that relate to contracts created in OKL and do not fit into the standard header tables O
-
View: OKL_K_HEADERS_V 12.2.2
Oracle Lease Management shadow table for Oracle Contracts Core header tables, OKC_K_HEADERS_B and OKC_K_HEADERS_TL. OKL_K_HEADERS contains attributes that relate to contracts created in OKL and do not fit into the standard header tables O
-
View: OKL_K_HEADERS_FULL_V 12.2.2
OKL_K_HEADERS_FULL_V is fulll View on tables OKC_K_HEADERS_B OKL_K_HEADERS. This combines the contracts core and lease managment header attributes into one view.
APPS.OKL_K_HEADERS_FULL_V·↳ OKC_K_HEADERS_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
View: OKL_K_HEADERS_FULL_UV 12.1.1
APPS.OKL_K_HEADERS_FULL_UV·↳ OKC_K_HEADERS_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
Oracle Lease Management shadow table for Oracle Contracts Core line tables, OKC_K_LINES_B and OKC_K_LINES_TL. OKL_K_LINES contains attributes that relate to contracts created in OKL and do not fit into the standard lines tables OKC_K_LINES_
-
OKL_K_HEADERS_FULL_V is fulll View on tables OKC_K_HEADERS_B OKL_K_HEADERS. This combines the contracts core and lease managment header attributes into one view.
APPS.OKL_K_HEADERS_FULL_ALL_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
OKL_K_HEADERS_FULL_V is fulll View on tables OKC_K_HEADERS_B OKL_K_HEADERS. This combines the contracts core and lease managment header attributes into one view.
APPS.OKL_K_HEADERS_FULL_ALL_V·↳ OKC_K_HEADERS_ALL_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
History Table for table OKL_K_LINES_B
-
History table for OKL_K_HEADERS
-
View: OKL_K_HEADERS_FULL_V 12.1.1
OKL_K_HEADERS_FULL_V is fulll View on tables OKC_K_HEADERS_B OKL_K_HEADERS. This combines the contracts core and lease managment header attributes into one view.
APPS.OKL_K_HEADERS_FULL_V·↳ OKC_K_HEADERS_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
View: OKL_K_HEADERS_FULL_UV 12.2.2
APPS.OKL_K_HEADERS_FULL_UV·↳ OKC_K_HEADERS_B·↳ OKC_K_HEADERS_TL·↳ OKC_UTIL·Explore OKL module →
-
History Table for table OKL_K_LINES_B
-
VIEW: OKL.OKL_K_HEADERS# 12.2.2
-
VIEW: APPS.OKL_LA_TRADEIN_UV 12.2.2
-
VIEW: APPS.OKL_LA_TRADEIN_UV 12.1.1
-
VIEW: OKL.OKL_K_HEADERS_H# 12.2.2
-
VIEW: OKL.OKL_K_LINES# 12.2.2
-
VIEW: OKL.OKL_K_LINES_H# 12.2.2
-
VIEW: APPS.OKL_LA_TRADEIN_UV 12.1.1
-
VIEW: APPS.OKL_LA_TRADEIN_UV 12.2.2
-
VIEW: OKL.OKL_K_HEADERS# 12.2.2
-
VIEW: OKL.OKL_K_HEADERS_H# 12.2.2
-
VIEW: APPS.OKL_K_HEADERS_V 12.1.1
-
VIEW: OKL.OKL_K_LINES# 12.2.2
-
VIEW: APPS.OKL_K_HEADERS_V 12.2.2
-
VIEW: OKL.OKL_K_LINES_H# 12.2.2
-
VIEW: APPS.OKL_K_LINES_V 12.1.1
-
VIEW: APPS.OKL_K_LINES_V 12.2.2
-
TABLE: OKL.OKL_K_HEADERS_H 12.2.2
-
TABLE: OKL.OKL_K_HEADERS 12.2.2