Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
datetime | ![]() |
The date of the order transaction. | |
![]() |
tinyint | Default = 0 | Status of the condition of the order. | |
![]() |
nvarchar(1000) | Default = '' | Remarks about this sales order. | |
![]() |
nvarchar(100) | Default = '' | User-definable custom identifier. | |
![]() |
int | Identity column used to increment the default lookupid. | ||
![]() |
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 sales method. | |
![]() |
bit | Default = 0 | Determines if delivery information is same as patron information | |
![]() |
nvarchar(13) (Computed) | ![]() |
CASE [SALESMETHODTYPECODE] WHEN 0 THEN N'Daily Sales' WHEN 1 THEN N'Advance Sales' WHEN 2 THEN N'Online Sales' WHEN 3 THEN N'Group Sales' END | Provides a translation for the 'SALESMETHODTYPECODE' field. |
![]() |
nvarchar(100) (Computed) | ![]() |
(CASE LEN(CUSTOMIDENTIFIER) WHEN 0 THEN '8-' + CAST(SEQUENCEID AS nvarchar(20)) ELSE CUSTOMIDENTIFIER END) | Unique identifer that supports user defined values as well as system generated values. |
![]() |
datetimeoffset | ![]() |
The date of the order transaction. | |
![]() |
datetime | ![]() |
The date of the last recalculation of taxes, fees, and discounts. | |
![]() |
nvarchar(10) (Computed) | ![]() |
CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Complete' WHEN 2 THEN N'Tentative' WHEN 3 THEN N'Confirmed' WHEN 4 THEN N'Finalized' WHEN 5 THEN N'Cancelled' WHEN 6 THEN N'Reserved' WHEN 7 THEN N'Unresolved' END | Provides a translation for the 'STATUSCODE' field. |
![]() |
int (Computed) | ![]() |
dbo.UFN_SALESORDER_GETREFUNDSTATUS(ID) | |
![]() |
money (Computed) | ![]() |
dbo.UFN_SALESORDER_TOTAL(ID) |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | ![]() |
CONSTITUENT.LOCALID | The constituent linked to the order. |
![]() |
uniqueidentifier | ![]() |
FINANCIALTRANSACTION.ID | The revenue item linked to the order. |
![]() |
uniqueidentifier | ![]() |
DELIVERYMETHOD.ID | The delivery method used to deliver the tickets in this order |
![]() |
uniqueidentifier | ![]() |
CONSTITUENT.LOCALID | The constituent to recieve the order; contact in group sales |
![]() |
uniqueidentifier | ![]() |
ADDRESS.LOCALID | The address used to deliver the order |
![]() |
uniqueidentifier | ![]() |
PHONE.LOCALID | The phone number for the recipient |
![]() |
uniqueidentifier | ![]() |
EMAILADDRESS.ID | The email address for the recipient |
![]() |
uniqueidentifier | ![]() |
APPUSER.ID | The application user who entered the order |
![]() |
uniqueidentifier | ![]() |
RELATIONSHIP.ID |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
ADDRESSID | |||
![]() |
APPUSERID | |||
![]() |
CONSTITUENTID | |||
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
RECIPIENTID | |||
![]() |
REVENUEID | |||
![]() |
TRANSACTIONDATE (DESC) | |||
![]() |
ID | ![]() |
![]() |
|
![]() |
LOOKUPID | ![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |
|
![]() |
Referenced by | Field |
---|---|
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
ID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
ID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
ID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
SALESORDERID |
![]() |
APPLIEDTOMEMBERSHIPSALESORDERID |
Entity-Relationship diagram of this table (SALESORDERDISCOUNTLIMITOVERRIDE-TICKET)