Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
tinyint | Default = 0 | The type of sales document | |
![]() |
nvarchar(26) (Computed) | ![]() |
CASE [TYPECODE] WHEN 0 THEN N'Ticket' WHEN 1 THEN N'Itemized Receipt' WHEN 2 THEN N'Credit Card Receipt' WHEN 3 THEN N'Mailing Header' WHEN 4 THEN N'Will Call Header' WHEN 5 THEN N'Refund Itemized Receipt' WHEN 6 THEN N'Refund Credit Card Receipt' END | Provides a translation for the 'TYPECODE' field. |
![]() |
uniqueidentifier | ![]() |
||
![]() |
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. |
![]() |
datetimeoffset | ![]() |
Holds date and time document was printed |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | ![]() |
SALESORDER.ID | Sales order that generated the sales document |
![]() |
uniqueidentifier | APPUSER.ID | Application user that printed the sales document | |
![]() |
uniqueidentifier | ![]() |
WORKSTATION.ID | Workstation the sales document was printed from |
![]() |
uniqueidentifier | ![]() |
CREDITCARDPAYMENTMETHODDETAIL.ID | FK to CREDITCARDPAYMENTMETHODDETAIL |
![]() |
uniqueidentifier | ![]() |
FINANCIALTRANSACTION.ID | FK to CREDIT |
![]() |
uniqueidentifier | ![]() |
CREDITPAYMENT.ID | FK to CREDITPAYMENT |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
CREDITID | |||
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
ID | ![]() |
![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |