| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
NUMBEROFDISCOUNTSPERORDER |
int | Default = 1 | The maximum number of instances for this discount per order. | |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
SALESORDERID |
uniqueidentifier | SALESORDER.ID | FK to SALESORDER | |
DISCOUNTID |
uniqueidentifier | DISCOUNT.ID | FK to DISCOUNT | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATEADDED |
DATEADDED | ![]() |
||
IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATECHANGED |
DATECHANGED | |||
PK_SALESORDERDISCOUNTLIMITOVERRIDE |
ID | ![]() |
![]() |
|
UIX_SALESORDERDISCOUNTLIMITOVERRIDE_SALESORDERID_DISCOUNTID |
SALESORDERID, DISCOUNTID | ![]() |
| Trigger Name | Description |
|---|---|
TR_SALESORDERDISCOUNTLIMITOVERRIDE_AUDIT_UPDATE |
|
TR_SALESORDERDISCOUNTLIMITOVERRIDE_AUDIT_DELETE |

ID
NUMBEROFDISCOUNTSPERORDER
TSLONG
SALESORDERID
IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATEADDED
IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATECHANGED