Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PURCHASEORDERID nvarchar(20)   Default = '' User defined purchase order number
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 ZEROBALANCE bit   Default = 0 True when the invoice is paid
 TYPE int (Computed)   102 The Financial Transaction Type
 BALANCE money (Computed) dbo.UFN_CREDITMEMO_GETBALANCE(ID)

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   FINANCIALTRANSACTION.ID Primary Key.
 BANKACCOUNTID uniqueidentifier BANKACCOUNT.ID Foreign Key to the BankAccount table
 REMITADDRESSID uniqueidentifier ADDRESS.LOCALID Foreign Key to the Address Table
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 DISBURSEMENTPROCESSID uniqueidentifier DISBURSEMENTPROCESS.ID Link to the current disbursement process selecting this credit memo

Index Name Field(s) Unique Primary Clustered
 IX_CREDITMEMO_BANKACCOUNTID BANKACCOUNTID      
 IX_CREDITMEMO_DATEADDED DATEADDED    
 IX_CREDITMEMO_DATECHANGED DATECHANGED      
 IX_CREDITMEMO_DISBURSEMENTPROCESSID DISBURSEMENTPROCESSID      
 IX_CREDITMEMO_PURCHASEORDERID PURCHASEORDERID      
 IX_CREDITMEMO_REMITADDRESSID REMITADDRESSID      
 PK_CREDITMEMO ID  

Trigger Name Description
 TR_CREDITMEMO_INSERT_UPDATE
 TR_CREDITMEMO_DELETE
 TR_CREDITMEMO_AUDIT_UPDATE
 TR_CREDITMEMO_AUDIT_DELETE

Entity-Relationship diagram of this table