BATCHREVENUEINSTALLMENT

Stores installments for batch rows.

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.
INSTALLMENTID uniqueidentifier yes FK to INSTALLMENT
RECEIPTAMOUNT money Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
BATCHREVENUEID uniqueidentifier BATCHREVENUE.ID Indicates the batch row this installment applies to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHREVENUEINSTALLMENT_BATCHREVENUEID BATCHREVENUEID
IX_BATCHREVENUEINSTALLMENT_DATEADDED DATEADDED yes
IX_BATCHREVENUEINSTALLMENT_DATECHANGED DATECHANGED
PK_BATCHREVENUEINSTALLMENT ID yes yes

Triggers

Trigger Name Description
TR_BATCHREVENUEINSTALLMENT_AUDIT_UPDATE
TR_BATCHREVENUEINSTALLMENT_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHREVENUEINSTALLMENTSPLIT BATCHREVENUEINSTALLMENTID