ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT (4.0)

Stores a snapshot of the GL distributions for a sold property item at the time of an adjustment.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADJUSTMENTHISTORYPROPERTYID

uniqueidentifier

false

Indicates the history item to which this detail belongs.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this distribution.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The base currency associated with this distribution.

Fields
Field Field Type Null Notes Description

PROJECT

nvarchar(100)

false

''

Indicates the project for this distribution.

REFERENCE

nvarchar(255)

false

''

Indicates the reference for this distribution.

AMOUNT

money

false

0

Indicates the amount for this distribution.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ACCOUNT

nvarchar(100)

false

''

Indicates the account for this distribution.

TRANSACTIONTYPECODE

tinyint

false

0

The transaction type (debit or credit) for the record

TRANSACTIONTYPE

nvarchar(6) (Computed)

true

Provides a translation for the 'TRANSACTIONTYPECODE' field.

TRANSACTIONAMOUNT

money

false

0

Indicates the amount for this distribution in transaction currency.

ORGANIZATIONAMOUNT

money

false

0

Indicates the amount for this distribution in organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT_DATEADDED

DATEADDED

False

False

True

IX_ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT_DATECHANGED

DATECHANGED

False

False

False

PK_ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT

ID

True

True

False

Triggers
Trigger Name Description

TR_ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT_AUDIT_UPDATE

TR_ADJUSTMENTHISTORYPROPERTYDISTRIBUTIONSNAPSHOT_AUDIT_DELETE