ORDERPAYMENTSPLIT

Stores payment split links for an order

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
SALESORDERITEMID uniqueidentifier SALESORDERITEM.ID The order item for this payment.
PAYMENTID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID The payment record for this order item.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ORDERPAYMENTSPLIT_DATEADDED DATEADDED yes
IX_ORDERPAYMENTSPLIT_DATECHANGED DATECHANGED
IX_ORDERPAYMENTSPLIT_PAYMENTID PAYMENTID
PK_ORDERPAYMENTSPLIT ID yes yes

Triggers

Trigger Name Description
TR_ORDERPAYMENTSPLIT_AUDIT_UPDATE
TR_ORDERPAYMENTSPLIT_AUDIT_DELETE