RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY

For recurring gifts, where development functions may be represented by edits, the history of development function-related fields.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
SEQUENCE int Default = 0
TRANSACTIONDATE date
AMOUNT money Default = 0 The recurring gift amount.
FREQUENCYCODE tinyint Default = 0 The recurring gift installment frequency.
FREQUENCY nvarchar(13) (Computed) yes CASE [FREQUENCYCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semi-annually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' WHEN 6 THEN N'Bimonthly' WHEN 7 THEN N'Semi-Monthly' WHEN 8 THEN N'Biweekly' WHEN 9 THEN N'Weekly' END Provides a translation for the 'FREQUENCYCODE' field.
PREVIOUSAMOUNT money Default = 0 The previous recurring gift amount.
PREVIOUSFREQUENCYCODE tinyint Default = 0 The previous recurring gift installment frequency.
PREVIOUSFREQUENCY nvarchar(13) (Computed) yes CASE [PREVIOUSFREQUENCYCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semi-annually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' WHEN 6 THEN N'Bimonthly' WHEN 7 THEN N'Semi-Monthly' WHEN 8 THEN N'Biweekly' WHEN 9 THEN N'Weekly' END Provides a translation for the 'PREVIOUSFREQUENCYCODE' field.
AMOUNTCHANGE money (Computed) yes case when SEQUENCE > 0 and FREQUENCYCODE = PREVIOUSFREQUENCYCODE then AMOUNT-PREVIOUSAMOUNT end The change in recurring gift amount, if the frequency is unchanged.
SOURCECODE nvarchar(50) Default = '' The direct marketing source code on the recurring gift.
FINDERNUMBER bigint Default = ((0)) The direct marketing finder number on the recurring gift.
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 recurring gift in organization currency.
PREVIOUSORGANIZATIONAMOUNT money Default = 0 The previous amount of the recurring gift in organization currency.
TRANSACTIONAMOUNT money Default = 0 The amount of the recurring gift in transaction currency.
PREVIOUSTRANSACTIONAMOUNT money Default = 0 The previous amount of the recurring gift in transaction currency.
ORGANIZATIONAMOUNTCHANGE money (Computed) yes case when SEQUENCE > 0 and FREQUENCYCODE = PREVIOUSFREQUENCYCODE then ORGANIZATIONAMOUNT-PREVIOUSORGANIZATIONAMOUNT end The change in recurring gift organization amount, if the frequency is unchanged.
TRANSACTIONAMOUNTCHANGE money (Computed) yes case when SEQUENCE > 0 and FREQUENCYCODE = PREVIOUSFREQUENCYCODE then TRANSACTIONAMOUNT-PREVIOUSTRANSACTIONAMOUNT end The change in recurring gift transaction amount, if the frequency is unchanged.

Foreign Keys

Foreign Key Field Type Null Notes Description
REVENUEID uniqueidentifier FINANCIALTRANSACTION.ID FK to REVENUE
REVENUEDEVELOPMENTFUNCTIONID uniqueidentifier yes REVENUEDEVELOPMENTFUNCTION.ID FK to REVENUEDEVELOPMENTFUNCTION
APPEALID uniqueidentifier yes APPEAL.LOCALID The appeal on the recurring gift.
MAILINGID uniqueidentifier yes MKTSEGMENTATION.ID The mailing on the recurring gift.
CHANNELCODEID uniqueidentifier yes CHANNELCODE.ID The channel on the recurring gift.
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 recurring gift.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the organization amount.
PREVIOUSORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the previous organization amount.
TRANSACTIONCURRENCYID uniqueidentifier yes CURRENCY.ID The transaction currency associated with this recurring gift.
BASEEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the base amount.
PREVIOUSBASEEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the previous base amount.

Indexes

Index Name Fields Unique Primary Clustered
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_APPEALID APPEALID
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_CHANNELCODEID CHANNELCODEID
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_DATEADDED DATEADDED yes
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_DATECHANGED DATECHANGED
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_MAILINGID MAILINGID
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_REVENUEID REVENUEID
IX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_SOURCECODE SOURCECODE
PK_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY ID yes yes
UIX_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_REVENUEDEVELOPMENTFUNCTIONID REVENUEDEVELOPMENTFUNCTIONID yes

Triggers

Trigger Name Description
TR_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_INSERTUPDATE_CURRENCY
TR_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_AUDIT_ETLDELETEDID
TR_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_AUDIT_UPDATE
TR_RECURRINGGIFTDEVELOPMENTFUNCTIONHISTORY_AUDIT_DELETE