GLREVERSAL (4.0SP17)

Stores schedule details for a revenue detail record.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

REVENUEID

uniqueidentifier

true

Indicates the revenue record to which this reversal applies.

GLPAYMENTMETHODREVENUETYPEMAPPINGID

uniqueidentifier

false

Foreign key to GLPaymentMethodRevenueTypeMapping table

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DEBITACCOUNT

nvarchar(100)

false

''

Debit account

CREDITACCOUNT

nvarchar(100)

false

''

Credit account

PROJECT

nvarchar(100)

false

''

Project field

REFERENCE

nvarchar(255)

false

''

Reference field

AMOUNT

money

false

0

Amount

POSTDATE

datetime

true

The date to use when posting the reversal.

POSTSTATUSCODE

tinyint

false

1

Flag used to indicate if the reversal has been posted.

ISDELETE

bit

false

0

Indicaes if reversal is part of a delete.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

WRITEOFFID

uniqueidentifier

true

Logical foreign key to the WRITEOFF table. Indicates the write-off record to which this reveral applies.

POSTSTATUS

nvarchar(10) (Computed)

true

Provides a translation for the 'POSTSTATUSCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_GLREVERSAL_DATEADDED

DATEADDED

False

False

True

IX_GLREVERSAL_DATECHANGED

DATECHANGED

False

False

False

IX_GLREVERSAL_GLPAYMENTMETHODREVENUETYPEMAPPINGID

GLPAYMENTMETHODREVENUETYPEMAPPINGID

False

False

False

IX_GLREVERSAL_REVENUEID

REVENUEID

False

False

False

PK_GLREVERSAL

ID

True

True

False

Triggers
Trigger Name Description

TR_GLREVERSAL_AUDIT_UPDATE

TR_GLREVERSAL_AUDIT_DELETE