RECURRINGGIFTINSTALLMENT

Stores expected payment information for recurring gifts.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
AMOUNT money Default = 0
DATE date
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.
ORGANIZATIONAMOUNT money Default = 0 The amount of the installment in organization currency.
TRANSACTIONAMOUNT money Default = 0 The amount of the installment in transaction currency.
STATUSCODE tinyint Default = 0
STATUS nvarchar(9) (Computed) yes CASE [STATUSCODE] WHEN 0 THEN N'Expected' WHEN 1 THEN N'Past due' WHEN 2 THEN N'Paid' WHEN 3 THEN N'Skipped' WHEN 4 THEN N'Write-off' END
PASTDUEDATE datetime yes

Foreign Keys

Foreign Key Field Type Null Notes Description
REVENUEID uniqueidentifier FINANCIALTRANSACTION.ID FK to REVENUE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this installment.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from amount to organization amount.
TRANSACTIONCURRENCYID uniqueidentifier yes CURRENCY.ID The transaction currency associated with this installment.
BASEEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from transaction amount to amount.

Indexes

Index Name Fields Unique Primary Clustered
IX_RECURRINGGIFTINSTALLMENT_BASECURRENCYID BASECURRENCYID
IX_RECURRINGGIFTINSTALLMENT_BASEEXCHANGERATEID BASEEXCHANGERATEID
IX_RECURRINGGIFTINSTALLMENT_DATEADDED DATEADDED yes
IX_RECURRINGGIFTINSTALLMENT_DATECHANGED DATECHANGED
IX_RECURRINGGIFTINSTALLMENT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
IX_RECURRINGGIFTINSTALLMENT_REVENUEID_DATE REVENUEID, DATE
IX_RECURRINGGIFTINSTALLMENT_TRANSACTIONCURRENCYID TRANSACTIONCURRENCYID
PK_RECURRINGGIFTINSTALLMENT ID yes yes

Triggers

Trigger Name Description
TR_RECURRINGGIFTINSTALLMENT_AUDIT_ETLDELETEDID
TR_RECURRINGGIFTINSTALLMENT_AUDIT_UPDATE
TR_RECURRINGGIFTINSTALLMENT_AUDIT_DELETE
TR_RECURRINGGIFTINSTALLMENT_INSERTUPDATE_CURRENCY

Referenced by

Referenced by Field
RECURRINGGIFTINSTALLMENTEVENT RECURRINGGIFTINSTALLMENTID
RECURRINGGIFTINSTALLMENTPAYMENT RECURRINGGIFTINSTALLMENTID
RECURRINGGIFTINSTALLMENTWRITEOFF RECURRINGGIFTINSTALLMENTID