INSTALLMENTSPLITPAYMENT
Contains installment split payment information for a given pledge payment record.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
AMOUNT |
money |
|
Default = 0 |
The amount of this application, expressed in the transaction currency of the installment. |
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. |
OVERPAYMENTAPPLICATIONTYPECODE |
tinyint |
|
Default = 1 |
Indicates the overpayment selection made for this payment. |
OVERPAYMENTAPPLICATIONTYPE |
nvarchar(16) (Computed) |
yes |
CASE [OVERPAYMENTAPPLICATIONTYPECODE] WHEN 0 THEN N'Pledge balance' WHEN 1 THEN N'Next installment' WHEN 255 THEN N'Unknown' END |
Provides a translation for the 'OVERPAYMENTAPPLICATIONTYPECODE' field. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
PAYMENTID |
uniqueidentifier |
|
FINANCIALTRANSACTIONLINEITEM.ID
|
FK to REVENUESPLIT |
PLEDGEID |
uniqueidentifier |
|
FINANCIALTRANSACTION.ID
|
FK to REVENUE |
INSTALLMENTSPLITID |
uniqueidentifier |
|
INSTALLMENTSPLIT.ID
|
FK to INSTALLMENTPAYMENT table. |
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 installment. |
APPLICATIONEXCHANGERATEID |
uniqueidentifier |
yes |
CURRENCYEXCHANGERATE.ID
|
The exchange rate used to convert the transaction amount of the payment to the transaction amount of the installment. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_INSTALLMENTSPLITPAYMENT_APPLICATIONCURRENCYID |
APPLICATIONCURRENCYID |
|
|
|
IX_INSTALLMENTSPLITPAYMENT_APPLICATIONEXCHANGERATEID |
APPLICATIONEXCHANGERATEID |
|
|
|
IX_INSTALLMENTSPLITPAYMENT_DATEADDED |
DATEADDED |
|
|
yes |
IX_INSTALLMENTSPLITPAYMENT_DATECHANGED |
DATECHANGED |
|
|
|
IX_INSTALLMENTSPLITPAYMENT_INSTALLMENTSPLITID |
INSTALLMENTSPLITID |
|
|
|
IX_INSTALLMENTSPLITPAYMENT_PAYMENTID |
PAYMENTID |
|
|
|
IX_INSTALLMENTSPLITPAYMENT_PLEDGEID |
PLEDGEID |
|
|
|
PK_INSTALLMENTSPLITPAYMENT |
ID |
yes |
yes |
|
Triggers