OTHERPAYMENTMETHODDETAIL

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

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.
OTHERPAYMENTMETHODCODEID uniqueidentifier yes OTHERPAYMENTMETHODCODE.ID The other type of payment method used.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_OTHERPAYMENTMETHODDETAIL_DATEADDED DATEADDED yes
IX_OTHERPAYMENTMETHODDETAIL_DATECHANGED DATECHANGED
PK_OTHERPAYMENTMETHODDETAIL ID yes yes

Triggers

Trigger Name Description
TR_OTHERPAYMENTMETHODDETAIL_AUDIT_UPDATE
TR_OTHERPAYMENTMETHODDETAIL_AUDIT_DELETE