CREDITITEMITEMDISCOUNT
Stores sales order item item discounts associated with a credit item.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| AMOUNT |
money |
|
Default = 0 |
Amount refunded from discount. |
| 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
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_CREDITITEMITEMDISCOUNT_CREDITITEMID_SALESORDERITEMITEMDISCOUNTID |
CREDITITEMID, SALESORDERITEMITEMDISCOUNTID |
|
|
|
| IX_CREDITITEMITEMDISCOUNT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_CREDITITEMITEMDISCOUNT_DATECHANGED |
DATECHANGED |
|
|
|
| IX_CREDITITEMITEMDISCOUNT_SALESORDERITEMITEMDISCOUNTID |
SALESORDERITEMITEMDISCOUNTID |
|
|
|
| PK_CREDITITEMITEMDISCOUNT |
ID |
yes |
yes |
|
Triggers