ADJUSTMENTHISTORYSPLIT

Stores a snapshot of relevant split information for a revenue item at the time of an adjustment.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
REVENUEIDENTIFIER nvarchar(36) Default = '' Indicates the detail this split applied to. Do not join on this field.
TYPE nvarchar(30) Default = '' Indicates the type of the detail this split applied to.
DESIGNATIONIDENTIFIER nvarchar(36) Default = '' Indicates the designation for this split. Do not join on this field.
DESIGNATIONNAME nvarchar(512) Default = '' Indicates the name for the designation for this split.
AMOUNT money Default = 0 Indicates the amount for this split.
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.
TRANSACTIONAMOUNT money Default = 0 Indicates the amount for this split.
ORGANIZATIONAMOUNT money Default = 0 Indicates the amount for this split.

Foreign Keys

Foreign Key Field Type Null Notes Description
ADJUSTMENTHISTORYID uniqueidentifier ADJUSTMENTHISTORY.ID Indicates the adjustment history item that this snapshot applies to.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ADJUSTMENTHISTORYSPLIT_DATEADDED DATEADDED yes
IX_ADJUSTMENTHISTORYSPLIT_DATECHANGED DATECHANGED
PK_ADJUSTMENTHISTORYSPLIT ID yes yes

Triggers

Trigger Name Description
TR_ADJUSTMENTHISTORYSPLIT_AUDIT_UPDATE
TR_ADJUSTMENTHISTORYSPLIT_AUDIT_DELETE