ADJUSTMENTHISTORYWRITEOFF
Stores historic information on posted write-off deletions.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
WRITEOFFIDENTIFIER |
nvarchar(36) |
|
Default = '' |
Used to group adjustment histories by write-off records. Do not join using this field. |
REVENUETYPE |
nvarchar(30) |
|
Default = '' |
Used to indicate the type of the revenue the write-off applied to. |
CONSTITUENTNAME |
nvarchar(255) |
|
Default = '' |
Indicates the constituent who owned the write-off which was deleted. |
DATE |
datetime |
|
|
Indicates the date on the write-off item which was adjusted. |
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. |
WRITEOFFADJUSTMENTID |
uniqueidentifier |
yes |
|
Indicates the adjustment to which this historic information applies. |
ADJUSTMENTIDENTIFIER |
nvarchar(36) |
|
Default = '' |
Used to group adjustment histories by adjustments. Do not join using this field. |
ADJUSTMENTDATE |
datetime |
yes |
|
Indicates the date the adjustment was made. |
ADJUSTMENTPOSTDATE |
datetime |
yes |
|
Indicates the date the post date of the adjustment. |
ADJUSTMENTREASON |
nvarchar(300) |
|
Default = '' |
Gives further details for why this adjustment was made. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
GLTRANSACTIONID |
uniqueidentifier |
yes |
JOURNALENTRY.ID
|
Indicates any reversal attached to this adjustment (but only for deletions). |
ADJUSTMENTREASONCODEID |
uniqueidentifier |
yes |
ADJUSTMENTREASONCODE.ID
|
Indicates the reason this adjustment was made. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ADJUSTMENTHISTORYWRITEOFF_DATEADDED |
DATEADDED |
|
|
yes |
IX_ADJUSTMENTHISTORYWRITEOFF_DATECHANGED |
DATECHANGED |
|
|
|
IX_ADJUSTMENTHISTORYWRITEOFF_GLTRANSACTIONID |
GLTRANSACTIONID |
|
|
|
PK_ADJUSTMENTHISTORYWRITEOFF |
ID |
yes |
yes |
|
Triggers
Referenced by