RECEIVABLEPAYMENTCHECK

Gives the check information attached to a given payment.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CHECKDATE UDT_FUZZYDATE Default = '00000000' The date on the check used for this payment.
CHECKNUMBER nvarchar(20) Default = '' The number on the check used for this payment.
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 RECEIVABLEPAYMENT.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_RECEIVABLEPAYMENTCHECK_DATEADDED DATEADDED yes
IX_RECEIVABLEPAYMENTCHECK_DATECHANGED DATECHANGED
PK_RECEIVABLEPAYMENTCHECK ID yes yes

Triggers

Trigger Name Description
TR_RECEIVABLEPAYMENTCHECK_RECEIVABLEPAYMENTTYPECORRECT
TR_RECEIVABLEPAYMENTCHECK_AUDIT_UPDATE
TR_RECEIVABLEPAYMENTCHECK_AUDIT_DELETE