RECURRINGGIFTACTIVITY
Records payments and skipped transactions for recurring gifts.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TYPECODE |
tinyint |
|
Default = 0 |
The type of the activity. |
AMOUNT |
money |
|
Default = 0 |
Amount of payment |
SCHEDULEDATE |
datetime |
yes |
|
|
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. |
TYPE |
nvarchar(8) (Computed) |
yes |
CASE [TYPECODE] WHEN 0 THEN N'Payment' WHEN 1 THEN N'Skipped' WHEN 2 THEN N'Rollback' END |
Provides a translation for the 'TYPECODE' field. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
SOURCEREVENUEID |
uniqueidentifier |
yes |
FINANCIALTRANSACTION.ID
|
Points to the recurring gift template |
PAYMENTREVENUEID |
uniqueidentifier |
yes |
FINANCIALTRANSACTIONLINEITEM.ID
|
Points to the payment revenue |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
APPLICATIONCURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The currency associated with this record's amount, which matches the transaction currency of the payment split. |
APPLICATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert the transaction amount of the payment to the transaction amount of the payment split. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_RECURRINGGIFTACTIVITY_APPLICATIONCURRENCYID |
APPLICATIONCURRENCYID |
|
|
|
IX_RECURRINGGIFTACTIVITY_APPLICATIONEXCHANGERATEID |
APPLICATIONEXCHANGERATEID |
|
|
|
IX_RECURRINGGIFTACTIVITY_DATEADDED |
DATEADDED |
|
|
yes |
IX_RECURRINGGIFTACTIVITY_DATECHANGED |
DATECHANGED |
|
|
|
IX_RECURRINGGIFTACTIVITY_PAYMENTREVENUEID |
PAYMENTREVENUEID |
|
|
|
IX_RECURRINGGIFTACTIVITY_SOURCEREVENUEID |
SOURCEREVENUEID |
|
|
|
PK_RECURRINGGIFTACTIVITY |
ID |
yes |
yes |
|
Triggers