RECURRINGGIFTACTIVITY (4.0SP17)

Records payments and skipped transactions for recurring gifts.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SOURCEREVENUEID

uniqueidentifier

true

Points to the recurring gift template

PAYMENTREVENUEID

uniqueidentifier

true

Points to the payment revenue

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

APPLICATIONCURRENCYID

uniqueidentifier

true

The currency associated with this record's amount, which matches the transaction currency of the payment split.

APPLICATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert the transaction amount of the payment to the transaction amount of the payment split.

Fields
Field Field Type Null Notes Description

TYPECODE

tinyint

false

0

The type of the activity.

AMOUNT

money

false

0

Amount of payment

SCHEDULEDATE

datetime

true

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

TYPE

nvarchar(8) (Computed)

true

Provides a translation for the 'TYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_RECURRINGGIFTACTIVITY_APPLICATIONCURRENCYID

APPLICATIONCURRENCYID

False

False

False

IX_RECURRINGGIFTACTIVITY_APPLICATIONEXCHANGERATEID

APPLICATIONEXCHANGERATEID

False

False

False

IX_RECURRINGGIFTACTIVITY_DATEADDED

DATEADDED

False

False

True

IX_RECURRINGGIFTACTIVITY_DATECHANGED

DATECHANGED

False

False

False

IX_RECURRINGGIFTACTIVITY_PAYMENTREVENUEID

PAYMENTREVENUEID

False

False

False

IX_RECURRINGGIFTACTIVITY_SOURCEREVENUEID

SOURCEREVENUEID

False

False

False

PK_RECURRINGGIFTACTIVITY

ID

True

True

False

Triggers
Trigger Name Description

TR_RECURRINGGIFTACTIVITY_INSERTUPDATE_CURRENCY

TR_RECURRINGGIFTACTIVITY_AUDIT_UPDATE

TR_RECURRINGGIFTACTIVITY_AUDIT_DELETE