Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DEBITACCOUNT nvarchar(100)   Default = '' Debit account
 CREDITACCOUNT nvarchar(100)   Default = '' Credit account
 PROJECT nvarchar(100)   Default = '' Project field
 REFERENCE nvarchar(255)   Default = '' Reference field
 AMOUNT money   Default = 0 Amount
 POSTDATE datetime The date to use when posting the reversal.
 POSTSTATUSCODE tinyint   Default = 1 Flag used to indicate if the reversal has been posted.
 ISDELETE bit   Default = 0 Indicaes if reversal is part of a delete.
 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.
 WRITEOFFID uniqueidentifier Logical foreign key to the WRITEOFF table. Indicates the write-off record to which this reveral applies.
 POSTSTATUS nvarchar(10) (Computed) CASE [POSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not Posted' END Provides a translation for the 'POSTSTATUSCODE' field.

Foreign Key Field Type Null Notes Description
 REVENUEID uniqueidentifier FINANCIALTRANSACTION.ID Indicates the revenue record to which this reversal applies.
 GLPAYMENTMETHODREVENUETYPEMAPPINGID uniqueidentifier   GLPAYMENTMETHODREVENUETYPEMAPPING.ID Foreign key to GLPaymentMethodRevenueTypeMapping table
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_GLREVERSAL_DATEADDED DATEADDED    
 IX_GLREVERSAL_DATECHANGED DATECHANGED      
 IX_GLREVERSAL_GLPAYMENTMETHODREVENUETYPEMAPPINGID GLPAYMENTMETHODREVENUETYPEMAPPINGID      
 IX_GLREVERSAL_REVENUEID REVENUEID      
 PK_GLREVERSAL ID  

Trigger Name Description
 TR_GLREVERSAL_AUDIT_UPDATE
 TR_GLREVERSAL_AUDIT_DELETE

Entity-Relationship diagram of this table