INSTALLMENT
Stores installment information for each pledge, MG pledge, or recurring gift.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| AMOUNT |
money |
|
Default = 0 |
|
| DATE |
datetime |
|
|
|
| SEQUENCE |
int |
|
Default = 0 |
|
| 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. |
| RECEIPTAMOUNT |
money |
|
Default = 0 |
|
| ORGANIZATIONRECEIPTAMOUNT |
money |
|
Default = 0 |
|
| TRANSACTIONRECEIPTAMOUNT |
money |
|
Default = 0 |
|
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_INSTALLMENT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_INSTALLMENT_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
| IX_INSTALLMENT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_INSTALLMENT_DATECHANGED |
DATECHANGED |
|
|
|
| IX_INSTALLMENT_ID |
ID |
|
|
|
| IX_INSTALLMENT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| IX_INSTALLMENT_REVENUEID_DATE |
REVENUEID, DATE |
|
|
|
| IX_INSTALLMENT_TRANSACTIONCURRENCYID |
TRANSACTIONCURRENCYID |
|
|
|
| PK_INSTALLMENT |
ID |
yes |
yes |
|
Triggers
Referenced by