CML_TRADE_OPERATION_CHARGES
This table stores the landed cost charges in a trade operation for allocating to PO schedules and receipts.
Details
-
Schema: FUSION
-
Object owner: CML
-
Object type: TABLE
-
Tablespace: Default
Primary Key
| Name | Columns |
|---|---|
|
CML_TRADE_OPERATION_CHARGES_PK |
TRADE_OPERATION_CHARGE_ID |
Columns
| Name | Datatype | Length | Precision | Not-null | Comments |
|---|---|---|---|---|---|
| TRADE_OPERATION_CHARGE_ID | NUMBER | 18 | Yes | Surrogate key that identifies a trade operation charge | |
| TRADE_OPERATION_ID | NUMBER | 18 | Yes | Foreign key reference to table CML_TRADE_OPERATIONS. | |
| CHARGE_LINE_NUMBER | NUMBER | 9 | Yes | System generated unique charge line number for the charge line entered in a trade operation | |
| TOPT_CHARGE_HISTORY_ID | NUMBER | 18 | The trade operation template charge history id that has been used to create this charge line. | ||
| OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
| CHARGE_ID | NUMBER | 18 | Foreign key to the CML_CHARGES_B table | ||
| REQ_BU_ID | NUMBER | 18 | The requisitioning business unit that incurs the charge | ||
| CHARGE_BASIS_CODE | VARCHAR2 | 30 | Defines the basis by which the charge amount is captured. Lookup from CML_CHARGE_BASIS lookup type | ||
| CHARGE_BASIS_UOM_CODE | VARCHAR2 | 3 | Users will be able to specify a UOM for which the charge per unit is applicable | ||
| SERVICE_PO_FLAG | VARCHAR2 | 1 | Indicated if the charge amount will be derived from a service PO. | ||
| PO_HEADER_ID | NUMBER | 18 | The service Purchase order header identifier. | ||
| PO_LINE_ID | NUMBER | 18 | The service Purchase order line identifier. | ||
| CMR_PO_LINE_LOCATION_ID | NUMBER | 18 | The service Purchase order line location identifier. | ||
| EVENT_DATE | TIMESTAMP | Date when the event in the EVENT_TYPE happened for the PO. | |||
| REJECT_EVENT_DATE | TIMESTAMP | Event Date on which the Data Updates from PO is rejected. | |||
| VENDOR_ID | NUMBER | 18 | The supplier rendering the service. | ||
| VENDOR_SITE_ID | NUMBER | 18 | The supplier site rendering the service. | ||
| ENTERED_CURRENCY_CODE | VARCHAR2 | 15 | The user entered currency or the transaction currency in which the charge is entered. | ||
| ENTERED_AMOUNT | NUMBER | The charge amount on trade operation charge line. | |||
| NONRECOVERABLE_TAX | NUMBER | The non recoverable tax amount for the charge. | |||
| RATE | NUMBER | Rate defined in case the charge basis is Per Unit or Percentage of Item Price. | |||
| REQ_BU_CURRENCY_CODE | VARCHAR2 | 15 | Derived from the currency of the primary ledger of the charge requisitioning business unit. | ||
| CURRENCY_CONVERSION_TYPE | VARCHAR2 | 30 | Yes | Defaulted from the Trade Operation Header level. Users will have an option of overriding the conversion type for each charge line in a trade operation | |
| CURRENCY_CONVERSION_DATE | DATE | Yes | Currency conversion date would default to the sys date on which the charge line is entered in a Trade operation. This date can be overridden by the user | ||
| CHARGE_REQ_BU_CURR_CONV_RATE | NUMBER | Currency conversion rate to convert from Charge entered currency to charge requisitioning BU functional currency. | |||
| TROP_DOC_CURRENCY_CONV_RATE | NUMBER | Currency conversion rate to convert from Charge entered currency to Trade Operation document currency | |||
| ACT_TROP_DOC_CURR_CONV_RATE | NUMBER | Currency conversion rate from invoice functional currency to trade operation document currency. | |||
| ALLOCATION_BASIS_CODE | VARCHAR2 | 30 | Used during allocation process.Applicable only if the charge basis is aggregate. | ||
| ALLOCATION_BASIS_BASE_UOM_CODE | VARCHAR2 | 3 | Applicable only when the allocation basis selected is Weight and Volume. | ||
| ACCRUAL_OPTION | VARCHAR2 | 30 | In V2, LCM will only support accrual option of along with material receipt | ||
| TRACK_MISSING_INVOICES_FLAG | VARCHAR2 | 1 | Track missing invoices flag defaulted from Charge. | ||
| TENTATIVE_FLAG | VARCHAR2 | 1 | Indicates whether a charge line is in tentative status i.e not eligible for feeding into receipt and inventory value. | ||
| ESTIMATE_ALLOCATED_FLAG | VARCHAR2 | 1 | Flag to indicate if the estimate is allocated to the receipts. | ||
| ACTUAL_ALLOCATED_FLAG | VARCHAR2 | 1 | Flag to indicate if the actual is allocated to the receipts. | ||
| LINE_STATUS_CODE | VARCHAR2 | 30 | Charge Line Status. Lookup based on CML_CHARGE_LINE_STATUS | ||
| ESTMT_ALLOC_STATUS_CODE | VARCHAR2 | 30 | Yes | Estimate allocation status. Since estimates can run even after invoices are associated we need another column to identify estimate allocation status. This column will not be shown in the UI. | |
| REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID of the job that created or last updated the row. | ||
| RUN_CONTROL | VARCHAR2 | 30 | The latest Run Control which picked up this charge for allocation. | ||
| CANCEL_PROCESSED_FLAG | VARCHAR2 | 1 | This field indicate whether the charge line has been processed by allocation engine. Null value indicates processed, 'N' indicates not processed. | ||
| INCLUDE_PURCHASE_VALUE_FLAG | VARCHAR2 | 1 | Indicates if purchase value needs to be included for the purpose of deriving the charge amount | ||
| PERCENTAGE_OF_PURCHASE_VALUE | NUMBER | Percentage of the purchase value | |||
| ALLOW_OVERRIDE_FLAG | VARCHAR2 | 1 | Indicates if the charge line attributes defaulted to the trade operation can be overridden. | ||
| ASSOCIATION_PROCESSED_FLAG | VARCHAR2 | 1 | Flag to identify whether association process has been run on this record. | ||
| TAX_TYPE | VARCHAR2 | 30 | Indicates whether a charge is a tax in itself or whether additional tax will be calculated on top of charge. | ||
| TAX_APPLICABLE_FLAG | VARCHAR2 | 1 | This field indicates whether tax is applicable on the charge line. Defaulted from charge name setup. | ||
| AUTO_TAX_CALCULATION | VARCHAR2 | 1 | Indicates if the charge needs to be considered for automatic calculation of tax. | ||
| TAX_LINE_TYPE | VARCHAR2 | 30 | Read-only attribute with value always equaling 'SERVICES' where tax type is 'Tax on charge'. | ||
| TAX_DOCUMENT_TYPE | VARCHAR2 | 30 | Read only field with Static value as ???CHARGE_ESTIMATE'. . | ||
| LINE_TAX_STATUS_CODE | VARCHAR2 | 30 | Indicates Tax Calculation Status on a charge line. Can have the following values:- ???PENDING???:- Default status. When tax processing on charge line is not performed or requires re-processing. All Charge line tax update events will flip this status to pending. ???SUCCESS???:- When tax processing on charge line is successfully performed. ???ERROR???:- When tax processing on charge line ends in error. | ||
| TAX_DEFAULT_TAXATION_COUNTRY | VARCHAR2 | 2 | Taxation Country. Used for restricting the LOVs for trx_business_category etc. | ||
| TAX_FIRST_PTY_REG_ID | NUMBER | 18 | First Party Tax Registration ID for the transaction | ||
| TAX_THIRD_PTY_REG_ID | NUMBER | 18 | Third Party Tax Registration ID for the transaction | ||
| TAX_DOC_FISC_CLASS | VARCHAR2 | 30 | Document fiscal classification. | ||
| TAX_TRX_BUSINESS_CATEGORY | VARCHAR2 | 240 | Used for deriving transaction classification for tax authority, to categorize a transaction for tax. | ||
| TAX_USER_DEFINED_FISC_CLASS | VARCHAR2 | 30 | User defined fiscal classification | ||
| TAX_FINAL_DISCGE_LOCATION_ID | NUMBER | 18 | Surrogate key that identifies the tax final discharge location. | ||
| TAX_PROD_FC_CATEG_ID | NUMBER | 18 | Product fiscal classification Identifier. Inventory item category if inventory is installed. Can also be defined in Oracle Fusion Tax. LOV is provided by Oracle Fusion Tax in any case. | ||
| TAX_PRODUCT_CATEGORY | VARCHAR2 | 240 | Product related fiscal classification defined in Oracle Fusion Tax. | ||
| TAX_PRODUCT_TYPE | VARCHAR2 | 40 | Read-only attribute with value always equaling ???SERVICES???. | ||
| TAX_INTENDED_USE_CLASSIF_ID | NUMBER | 18 | Intended Use Identifier.The purpose for which a product may be used. Selected from a LOV based on setup for inventory items. | ||
| TAX_INPUT_TAX_CLASS_CODE | VARCHAR2 | 30 | Code indicating the input tax classification. | ||
| TAX_REQUEST_ID | NUMBER | 18 | Enterprise Service Scheduler: indicates the request ID or the run id of the tax call that last processed this charge line. | ||
| TAX_RUN_CONTROL | VARCHAR2 | 30 | The latest Run Control which picked up this charge for tax calculation. | ||
| CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
| CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
| LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
| LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
| LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
| CREATION_SOURCE | VARCHAR2 | 11 | Source which created the record | ||
| LAST_UPDATION_SOURCE | VARCHAR2 | 11 | Source which last updated the record |
Foreign Keys
| Table | Foreign Table | Foreign Key Column |
|---|---|---|
| CML_TRADE_OPERATION_CHARGES | cml_trade_operations | TRADE_OPERATION_ID |
| cml_trop_charge_po_schedules | cml_trade_operation_charges | TRADE_OPERATION_CHARGE_ID |
| cml_trop_charge_ref_values | cml_trade_operation_charges | TRADE_OPERATION_CHARGE_ID |
| cml_trop_charge_estimates | cml_trade_operation_charges | TRADE_OPERATION_CHARGE_ID |
Indexes
| Index | Uniqueness | Tablespace | Columns |
|---|---|---|---|
| CML_TRADE_OP_CHARGES_PK | Unique | Default | TRADE_OPERATION_CHARGE_ID |
| CML_TRADE_OP_CHARGES_U1 | Unique | Default | TRADE_OPERATION_ID, CHARGE_LINE_NUMBER |
| CML_TROP_CHARGES_N1 | Non Unique | Default | TRADE_OPERATION_ID, VENDOR_ID, VENDOR_SITE_ID |
| CML_TROP_CHARGES_N2 | Non Unique | Default | SERVICE_PO_FLAG, CMR_PO_LINE_LOCATION_ID |
| CML_TROP_CHARGES_N3 | Non Unique | Default | LINE_STATUS_CODE |