RECEIVABLEPAYMENTDIRECTDEBIT

Gives the direct debit information associated with a given payment.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DIRECTDEBITRESULTCODE nvarchar(10) Default = '' The result code from a direct debit return file.
ISREJECTED bit Default = 0 Indicates that the direct debit payment was rejected by the financial institution.
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.
CONSTITUENTACCOUNTID uniqueidentifier yes CONSTITUENTACCOUNT.ID Link to constituent account information.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_RECEIVABLEPAYMENTDIRECTDEBIT_DATEADDED DATEADDED yes
IX_RECEIVABLEPAYMENTDIRECTDEBIT_DATECHANGED DATECHANGED
PK_RECEIVABLEPAYMENTDIRECTDEBIT ID yes yes

Triggers

Trigger Name Description
TR_RECEIVABLEPAYMENTDIRECTDEBIT_RECEIVABLEPAYMENTTYPECORRECT
TR_RECEIVABLEPAYMENTDIRECTDEBIT_AUDIT_UPDATE
TR_RECEIVABLEPAYMENTDIRECTDEBIT_AUDIT_DELETE