WORKSTATIONCASHDRAWERPAYMENTMETHOD (4.0SP17)

Holds payment methods which cause the cash drawer on a workstation to open.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

WORKSTATIONID

uniqueidentifier

false

FK to WORKSTATION

OTHERPAYMENTMETHODCODEID

uniqueidentifier

true

The other payment method specified.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

PAYMENTTYPECODE

tinyint

false

0

The type of payments used in a sales type.

PAYMENTTYPE

nvarchar(11) (Computed)

true

Provides a translation for the 'PAYMENTTYPECODE' field.

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_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATEADDED

DATEADDED

False

False

True

IX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_DATECHANGED

DATECHANGED

False

False

False

PK_WORKSTATIONCASHDRAWERPAYMENTMETHOD

ID

True

True

False

UIX_WORKSTATIONCASHDRAWERPAYMENTMETHOD_PAYMENTTYPECODE_WORKSTATIONID_OTHERPAYMENTMETHODCODEID

PAYMENTTYPECODE

WORKSTATIONID

OTHERPAYMENTMETHODCODEID

True

False

False

Triggers
Trigger Name Description

TR_WORKSTATIONCASHDRAWERPAYMENTMETHOD_AUDIT_UPDATE

TR_WORKSTATIONCASHDRAWERPAYMENTMETHOD_AUDIT_DELETE