CML_TOPT_CHARGE_HISTORY
Landed Cost Trade Operation Template Charges History Table - This table is used to store the history of changes done to the CML_TOPT_CHARGES table. Whenever any attribute value is modified and the template has been used to create a Trade Operation, a new record needs to be created in the history table in order to be able to keep track of each version used to create a Trade Operation.
Details
-
Schema: FUSION
-
Object owner: CML
-
Object type: TABLE
-
Tablespace: Default
Primary Key
Name | Columns |
---|---|
CML_TOPT_CHARGE_HISTORY_PK |
TOPT_CHARGE_HISTORY_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
TOPT_CHARGE_HISTORY_ID | NUMBER | 18 | Yes | The trade operation template charge history id that has been used to create this charge line. | |
TOPT_CHARGE_ID | NUMBER | 18 | Yes | Foreign key to CML_TOPT_CHARGES | |
VERSION_NUMBER | NUMBER | 9 | Yes | Everytime any change is made to any of the charge line attributes, we need to create a new version row for the charge if latest version has been used to create a trade operation. This column would be a system generated unique version number starting from 1. | |
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_LINE_NUMBER | NUMBER | 9 | Yes | System generated unique charge line number for the charge line entered in a Trade Operation Template | |
CHARGE_ID | NUMBER | 18 | Yes | Show all charge names which belong to the same set as the Trade Operation procurement business unit or to the common set. | |
CHARGE_BU_ID | NUMBER | 18 | Yes | Surrogate key that identifies a charge BU. | |
CHARGE_BASIS_CODE | VARCHAR2 | 30 | Defines the basis by which the charge amount is captured and applied to PO schedules. LCM will pre-seed the following charge basis: Aggregate Level, Percentage of Item Price, Per Unit, Per Unit(Variable), Percentage of Item Price( Variable), Percentage of other charges. | ||
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 line location identifier. | ||
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 | Amount in charge entered currency | |||
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. | |||
CURRENCY_CONVERSION_TYPE | VARCHAR2 | 30 | Yes | Defaulted from the Trade Operation Template Header level. Users will have an option of overriding the conversion type for each charge line in a trade operation template | |
ALLOCATION_BASIS_CODE | VARCHAR2 | 30 | Applicable only if the charge basis is aggregate | ||
ALLOCATION_BASIS_BASE_UOM_CODE | VARCHAR2 | 30 | 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 | 30 | Track missing invoices flag defaulted from Charge | ||
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. | ||
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. |
Foreign Keys
Table | Foreign Table | Foreign Key Column |
---|---|---|
CML_TOPT_CHARGE_HISTORY | cml_topt_charges | TOPT_CHARGE_ID |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
CML_TOPT_CHARGE_HISTORY_PK | Unique | Default | TOPT_CHARGE_HISTORY_ID |