SALESORDERDISCOUNTLIMITOVERRIDE (4.0SP14)

Stores information for manual override of discount limit.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SALESORDERID

uniqueidentifier

false

FK to SALESORDER

DISCOUNTID

uniqueidentifier

false

FK to DISCOUNT

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NUMBEROFDISCOUNTSPERORDER

int

false

1

The maximum number of instances for this discount per order.

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_SALESORDERDISCOUNTLIMITOVERRIDE_DATEADDED

DATEADDED

False

False

True

IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATECHANGED

DATECHANGED

False

False

False

PK_SALESORDERDISCOUNTLIMITOVERRIDE

ID

True

True

False

UIX_SALESORDERDISCOUNTLIMITOVERRIDE_SALESORDERID_DISCOUNTID

SALESORDERID

DISCOUNTID

True

False

False

Triggers
Trigger Name Description

TR_SALESORDERDISCOUNTLIMITOVERRIDE_AUDIT_UPDATE

TR_SALESORDERDISCOUNTLIMITOVERRIDE_AUDIT_DELETE