AUCTIONPURCHASEADJUSTMENT (4.0SP4)

Stores adjustments made to posted auction purchases.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

REVENUEID

uniqueidentifier

false

FK to REVENUE

REASONCODEID

uniqueidentifier

true

Indicates the reason this adjustment was made.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

TRANSACTIONCURRENCYID

uniqueidentifier

true

BASEEXCHANGERATEID

uniqueidentifier

true

Fields
Field Field Type Null Notes Description

PREVIOUSAMOUNT

money

false

0

Amount of purchase 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.

POSTSTATUS

nvarchar(11) (Computed)

true

Provides a translation for the 'POSTSTATUSCODE' field.

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.

ORGANIZATIONPREVIOUSAMOUNT

money

false

0

TRANSACTIONPREVIOUSAMOUNT

money

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_AUCTIONPURCHASEADJUSTMENT_DATEADDED

DATEADDED

False

False

True

IX_AUCTIONPURCHASEADJUSTMENT_DATECHANGED

DATECHANGED

False

False

False

IX_AUCTIONPURCHASEADJUSTMENT_REVENUEID

REVENUEID

False

False

False

PK_AUCTIONPURCHASEADJUSTMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_AUCTIONPURCHASEADJUSTMENT_AUDIT_UPDATE

TR_AUCTIONPURCHASEADJUSTMENT_AUDIT_DELETE

TR_AUCTIONPURCHASEADJUSTMENT_INSERTUPDATE_CURRENCY