ADJUSTMENTHISTORYGIFTINKIND

Stores information on historic adjustments to sold gift-in-kind information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GIFTINKINDPAYMENTMETHODDETAILIDENTIFIER nvarchar(36) Default = '' Used to group adjustment histories by gift-in-kind detail 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.
REVENUEDATE datetime Indicates the date on the revenue item which was adjusted.
ADJUSTMENTDATE datetime yes Indicates the date the adjustment was made.
ADJUSTMENTPOSTDATE datetime yes Indicates 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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Keys

Foreign Key Field Type Null Notes Description
GIFTINKINDSALEADJUSTMENTID uniqueidentifier yes GIFTINKINDSALEADJUSTMENT.ID Indicates the adjustment to which this historic information applies.
ADJUSTMENTREASONCODEID uniqueidentifier yes ADJUSTMENTREASONCODE.ID Indicates the reason this adjustment was made.
GLTRANSACTIONID uniqueidentifier yes JOURNALENTRY.ID Indicates any reversal attached to this adjustment (but only for deletions).
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_ADJUSTMENTHISTORYGIFTINKIND_DATEADDED DATEADDED yes
IX_ADJUSTMENTHISTORYGIFTINKIND_DATECHANGED DATECHANGED
IX_ADJUSTMENTHISTORYGIFTINKIND_GIFTINKINDSALEADJUSTMENTID GIFTINKINDSALEADJUSTMENTID
IX_ADJUSTMENTHISTORYGIFTINKIND_GLTRANSACTIONID GLTRANSACTIONID
PK_ADJUSTMENTHISTORYGIFTINKIND ID yes yes

Triggers

Trigger Name Description
TR_ADJUSTMENTHISTORYGIFTINKIND_AUDIT_UPDATE
TR_ADJUSTMENTHISTORYGIFTINKIND_AUDIT_DELETE

Referenced by

Referenced by Field
ADJUSTMENTHISTORYGIFTINKINDDISTRIBUTION ADJUSTMENTHISTORYGIFTINKINDID
ADJUSTMENTHISTORYGIFTINKINDDISTRIBUTIONSNAPSHOT ADJUSTMENTHISTORYGIFTINKINDID
ADJUSTMENTHISTORYGIFTINKINDPAYMENTMETHODDETAIL ADJUSTMENTHISTORYGIFTINKINDID