CML_CHARGE_INVOICE_ASSOCS

This table stores the trade operation charge-invoice line associations.

Details

  • Schema: FUSION

  • Object owner: CML

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

CML_CHARGE_INVOICE_ASSOCS_PK

CHARGE_INVOICE_ASSOC_ID

Columns

Name Datatype Length Precision Not-null Comments
CHARGE_INVOICE_ASSOC_ID NUMBER 18 Yes Surrogate identifying the charge and invoice association.
TRADE_OPERATION_CHARGE_ID NUMBER 18 Yes Foreign Key from CML_TRADE_OPERATION_CHARGES
INVOICE_ID NUMBER 18 Yes The invoice Id of the invoice associated to the Trade Operation.
INVOICE_LINE_NUMBER NUMBER 18 Yes The invoice line number associated to the Trade Operation
ENTERED_DATE TIMESTAMP Yes The sysdate on which the actual are established/ cancelled.
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.
INVOICE_AMOUNT NUMBER Yes The charge invoice amount in invoice currency coming from AP
INVOICE_TAX NUMBER The tax amount in invoice currency
FUNC_CURRENCY_CODE VARCHAR2 15 Functional currency coming from AP.
FUNC_CURRENCY_AMOUNT NUMBER The charge invoice amount in Functional currency in AP
FUNC_CURRENCY_TAX NUMBER The tax amount in functional currency
ASSOCIATION_MODE VARCHAR2 3 Yes Indicates whether the Invoice line is automatic or manual associated
ASSOCIATION_STATUS VARCHAR2 3 Yes Indicates the match status.(Associated/Needs Review/Deleted/Rejected/Associated)
RANK NUMBER 18 Column to indicate the Rank of potential matches
INVOICE_CURRENCY_CODE VARCHAR2 15 Yes Currency code in which invoice is created.
TROP_DOC_CURR_CONV_RATE NUMBER Currency conversion rate to convert to Trade operation document currency from the invoice currency
USER_COMMENTS VARCHAR2 2000 Column to persist user comments
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.
EXTERNAL_SYSTEM_REFERENCE VARCHAR2 60 Identifier of the source system that owns the invoice entity.
ACTIVE_FLAG VARCHAR2 1 Yes Indicates whether there is more recent information for this charge invoice asscoation. Only the most recent record will have this flag set to Y.

Foreign Keys

Table Foreign Table Foreign Key Column
cml_charge_invoice_assoc_dtls cml_charge_invoice_assocs CHARGE_INVOICE_ASSOC_DTLS_ID

Indexes

Index Uniqueness Tablespace Columns
CML_CHARGE_INVOICE_ASSOCS_N1 Non Unique Default TRADE_OPERATION_CHARGE_ID, INVOICE_ID, INVOICE_LINE_NUMBER
CML_CHARGE_INVOICE_ASSOCS_N2 Non Unique Default INVOICE_ID, INVOICE_LINE_NUMBER, ASSOCIATION_STATUS
CML_CHARGE_INVOICE_ASSOCS_N3 Non Unique Default TRADE_OPERATION_CHARGE_ID, ASSOCIATION_STATUS, ACTIVE_FLAG
CML_CHARGE_INVOICE_ASSOCS_PK Unique Default CHARGE_INVOICE_ASSOC_ID