PROPERTYDETAILADJUSTMENT (4.0SP20)

Stores adjustments made to posted sold property detail.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

PROPERTYDETAILID

uniqueidentifier

false

FK to PROPERTYDETAIL

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

REASONCODEID

uniqueidentifier

true

Indicates the reason this adjustment was made.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this adjustment.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert to organization amount.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The transaction currency associated with this adjustment.

BASEEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from transaction amount to amount.

Fields
Field Field Type Null Notes Description

PREVIOUSAMOUNT

money

false

0

Amount of gift prior to adjustment

DATE

datetime

true

The date of the adjustment to the revenue record.

POSTDATE

datetime

true

The date to use when posting the adjustment to the revenue record.

POSTSTATUSCODE

tinyint

false

1

Flag used to indicate if the adjustment has been posted.

REASON

nvarchar(300)

false

''

Gives further details for why this adjustment was made.

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.

POSTSTATUS

nvarchar(11) (Computed)

true

Provides a translation for the 'POSTSTATUSCODE' field.

ORGANIZATIONPREVIOUSAMOUNT

money

false

0

Amount of gift prior to adjustment in organization currency.

TRANSACTIONPREVIOUSAMOUNT

money

false

0

Amount of gift prior to adjustment in transaction currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PROPERTYDETAILADJUSTMENT_DATEADDED

DATEADDED

False

False

True

IX_PROPERTYDETAILADJUSTMENT_DATECHANGED

DATECHANGED

False

False

False

IX_PROPERTYDETAILADJUSTMENT_PROPERTYDETAILID

PROPERTYDETAILID

False

False

False

PK_PROPERTYDETAILADJUSTMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_PROPERTYDETAILADJUSTMENT_AUDIT_UPDATE

TR_PROPERTYDETAILADJUSTMENT_AUDIT_DELETE

TR_PROPERTYDETAILADJUSTMENT_INSERTUPDATE_CURRENCY

Referenced by
Referenced by Field

ADJUSTMENTHISTORYPROPERTY

PROPERTYDETAILADJUSTMENTID