WORKSTATIONCASHDRAWEROPEN (4.0SP17)

Holds information for when a cash drawer was manually opened

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

APPUSERID

uniqueidentifier

false

Application user that opened the cash drawer

WORKSTATIONID

uniqueidentifier

true

Workstation from which the cash drawer was opened

WORKSTATIONCASHDRAWEROPENREASONCODEID

uniqueidentifier

false

Reason for opening the cash drawer

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

COMMENTS

nvarchar(255)

false

''

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_WORKSTATIONCASHDRAWEROPEN_DATEADDED

DATEADDED

False

False

True

IX_WORKSTATIONCASHDRAWEROPEN_DATECHANGED

DATECHANGED

False

False

False

PK_WORKSTATIONCASHDRAWEROPEN

ID

True

True

False

Triggers
Trigger Name Description

TR_WORKSTATIONCASHDRAWEROPEN_AUDIT_UPDATE

TR_WORKSTATIONCASHDRAWEROPEN_AUDIT_DELETE