SALESORDERDISCOUNTLIMITOVERRIDE
Stores information for manual override of discount limit.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
| 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. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_SALESORDERDISCOUNTLIMITOVERRIDE_DATECHANGED |
DATECHANGED |
|
|
|
| PK_SALESORDERDISCOUNTLIMITOVERRIDE |
ID |
yes |
yes |
|
| UIX_SALESORDERDISCOUNTLIMITOVERRIDE_SALESORDERID_DISCOUNTID |
SALESORDERID, DISCOUNTID |
yes |
|
|
Triggers