RECEIPTSTACKINFO
Defines Receipt Stack
Primary Key
Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Fields
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
NAME | nvarchar(100) | Default = '' | Receipt Stack Name. | |
SHORTNAME | nvarchar(10) | Default = '' | Receipt Stack Prefix. | |
NEXTRECEIPTNUMBER | int | Default = 0 | Next receipt number | |
ISACTIVE | bit | Default = 1 | Active Inactive. | |
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. |
ISDEFAULT | bit | Default = 0 | Indicates the default receipt stack. |
Foreign Keys
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
RECEIPTSTACKCODEID | uniqueidentifier | yes | RECEIPTSTACKCODE.ID | Receipt Stack Code. |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Indexes
Index Name | Fields | Unique | Primary | Clustered |
---|---|---|---|---|
IX_RECEIPTSTACKINFO_DATEADDED | DATEADDED | yes | ||
IX_RECEIPTSTACKINFO_DATECHANGED | DATECHANGED | |||
PK_RECEIPTSTACKINFO | ID | yes | yes | |
UC_RECEIPTSTACKINFO_NAME | NAME | yes |
Triggers
Trigger Name | Description |
---|---|
TR_RECEIPTSTACKINFO_AUDIT_UPDATE | |
TR_RECEIPTSTACKINFO_AUDIT_DELETE |
Referenced by
Referenced by | Field |
---|---|
RECEIPTINGPROCESS | RECEIPTSTACKINFOID |
REVENUERECEIPT | RECEIPTSTACKINFOID |