GLREVERSAL
Stores schedule details for a revenue detail record.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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 |
yes |
|
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 |
Indicates 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
WRITEOFFID |
uniqueidentifier |
yes |
|
Logical foreign key to the WRITEOFF table. Indicates the write-off record to which this reversal applies. |
POSTSTATUS |
nvarchar(10) (Computed) |
yes |
CASE [POSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not Posted' END |
Provides a translation for the 'POSTSTATUSCODE' field. |
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_GLREVERSAL_DATEADDED |
DATEADDED |
|
|
yes |
IX_GLREVERSAL_DATECHANGED |
DATECHANGED |
|
|
|
IX_GLREVERSAL_GLPAYMENTMETHODREVENUETYPEMAPPINGID |
GLPAYMENTMETHODREVENUETYPEMAPPINGID |
|
|
|
IX_GLREVERSAL_REVENUEID |
REVENUEID |
|
|
|
PK_GLREVERSAL |
ID |
yes |
yes |
|
Triggers