SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM (4.0SP20)

Stores the sales order items that are applied to a membership promotion

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SALESORDERITEMMEMBERSHIPITEMPROMOTIONID

uniqueidentifier

false

Applied sales order item for promotion

APPLIEDSALESORDERITEMID

uniqueidentifier

false

Sales order item that is applied

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

QUANTITY

int

false

0

Number of items to apply

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM_DATEADDED

DATEADDED

False

False

True

IX_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM_DATECHANGED

DATECHANGED

False

False

False

PK_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM

ID

True

True

False

UIX_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM_SALESORDERITEMMEMBERSHIPITEMPROMOTIONID_APPLIEDSALESORDERITEMID

SALESORDERITEMMEMBERSHIPITEMPROMOTIONID

APPLIEDSALESORDERITEMID

True

False

False

Triggers
Trigger Name Description

TR_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM_AUDIT_UPDATE

TR_SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEM_AUDIT_DELETE

Referenced by
Referenced by Field

SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEMTICKET

SALESORDERITEMMEMBERSHIPITEMPROMOTIONAPPLIEDITEMID