CASHPAYMENTMETHODDETAIL

Stores cash detail information for a revenue record when the payment method is cash.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
REFERENCEDATE UDT_FUZZYDATE Default = '00000000' The date that the reference was made.
REFERENCENUMBER nvarchar(20) Default = ''
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier REVENUEPAYMENTMETHOD.ID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CASHPAYMENTMETHODDETAIL_DATEADDED DATEADDED yes
IX_CASHPAYMENTMETHODDETAIL_DATECHANGED DATECHANGED
PK_CASHPAYMENTMETHODDETAIL ID yes yes

Triggers

Trigger Name Description
TR_CASHPAYMENTMETHODDETAIL_AUDIT_UPDATE
TR_CASHPAYMENTMETHODDETAIL_AUDIT_DELETE