Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
nvarchar(100) | Default = '' | Name of promotion at time of sale. | |
![]() |
money | Default = 0 | Amount of the promotion | |
![]() |
datetime | Default = getdate() | Indicates the date this record was added. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
![]() |
timestamp | Timestamp. | ||
![]() |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
![]() |
tinyint | Default = 0 | The type of term extension: 0 - Day, 1 - Month | |
![]() |
nvarchar(12) (Computed) | ![]() |
CASE [EXTENSIONCALCULATIONTYPECODE] WHEN 0 THEN N'Days added' WHEN 1 THEN N'Months added' END | Provides a translation for the 'EXTENSIONCALCULATIONTYPECODE' field. |
![]() |
int | Default = 0 | The number of days/months to extend the term by. | |
![]() |
money | Default = 0 | Amount of promotion in organization currency. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | SALESORDERITEM.ID | Sales order item with item promotion | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | ![]() |
MEMBERSHIPPROMO.ID | Promotion being used |
![]() |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert from amount to organization amount. |
![]() |
uniqueidentifier | ![]() |
CURRENCY.ID | The base currency associated with this item membership promotion. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
BASECURRENCYID | |||
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
ORGANIZATIONEXCHANGERATEID | |||
![]() |
SALESORDERITEMID | |||
![]() |
ID | ![]() |
![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |
|
![]() |
Referenced by | Field |
---|---|
![]() |
SALESORDERITEMMEMBERSHIPITEMPROMOTIONID |
![]() |
SALESORDERITEMMEMBERSHIPITEMPROMOTIONID |
![]() |
SALESORDERITEMMEMBERSHIPITEMPROMOTIONID |