| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
REVENUEIDENTIFIER |
nvarchar(36) | Default = '' | Used to group adjustment histories by revenue records. Do not join using this field. | |
ADJUSTMENTIDENTIFIER |
nvarchar(36) | Default = '' | Used to group adjustment histories by adjustments. Do not join using this field. | |
CONSTITUENTNAME |
nvarchar(255) | Default = '' | Indicates the constituent who owned the revenue which was adjusted. | |
REVENUETYPE |
nvarchar(25) | Default = '' | Indicates the type of revenue which was adjusted. | |
REVENUEDATE |
datetime | Indicates the date on the revenue item which was adjusted. | ||
ADJUSTMENTDATE |
datetime | ![]() |
Indicates the date the adjustment was made. | |
ADJUSTMENTPOSTDATE |
datetime | ![]() |
Indicates the date the post date of the adjustment. | |
ADJUSTMENTREASON |
nvarchar(300) | Default = '' | Gives further details for why this adjustment was made. | |
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. |
ISNEWREVENUE |
bit | Default = 0 | Indicates that this adjustment was used to add new revenue to a transaction. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
ADJUSTMENTID |
uniqueidentifier | ![]() |
ADJUSTMENT.ID | Indicates the adjustment to which this historic information applies. |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
GLTRANSACTIONID |
uniqueidentifier | ![]() |
JOURNALENTRY.ID | Indicates any reversal attached to this adjustment (but only for deletions). |
ADJUSTMENTREASONCODEID |
uniqueidentifier | ![]() |
ADJUSTMENTREASONCODE.ID | Indicates the reason this adjustment was made. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_ADJUSTMENTHISTORY_ADJUSTMENTID |
ADJUSTMENTID | |||
IX_ADJUSTMENTHISTORY_DATEADDED |
DATEADDED | ![]() |
||
IX_ADJUSTMENTHISTORY_DATECHANGED |
DATECHANGED | |||
IX_ADJUSTMENTHISTORY_GLTRANSACTIONID |
GLTRANSACTIONID | |||
PK_ADJUSTMENTHISTORY |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_ADJUSTMENTHISTORY_AUDIT_UPDATE |
|
TR_ADJUSTMENTHISTORY_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
ADJUSTMENTHISTORYDETAIL |
ADJUSTMENTHISTORYID |
ADJUSTMENTHISTORYDISTRIBUTION |
ADJUSTMENTHISTORYID |
ADJUSTMENTHISTORYDISTRIBUTIONSNAPSHOT |
ADJUSTMENTHISTORYID |
ADJUSTMENTHISTORYREVENUE |
ADJUSTMENTHISTORYID |
ADJUSTMENTHISTORYREVENUETRANSACTION |
ID |
ADJUSTMENTHISTORYSPLIT |
ADJUSTMENTHISTORYID |

ID
REVENUEIDENTIFIER
TSLONG
ADJUSTMENTID
IX_ADJUSTMENTHISTORY_ADJUSTMENTID
IX_ADJUSTMENTHISTORY_DATEADDED