| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
PREVIOUSAMOUNT |
money | Default = 0 | Amount of purchase prior to adjustment | |
DATE |
datetime | ![]() |
The date of the adjustment to the revenue record. | |
POSTDATE |
datetime | ![]() |
The date to use when posting the adjustment to the revenue record. | |
POSTSTATUSCODE |
tinyint | Default = 1 | Flag used to indicate if the adjustment has been posted. | |
POSTSTATUS |
nvarchar(11) (Computed) | ![]() |
CASE [POSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not Posted' WHEN 2 THEN N'Do Not Post' END | Provides a translation for the 'POSTSTATUSCODE' field. |
REASON |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
ORGANIZATIONPREVIOUSAMOUNT |
money | Default = 0 | ||
TRANSACTIONPREVIOUSAMOUNT |
money | Default = 0 |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
REVENUEID |
uniqueidentifier | FINANCIALTRANSACTION.ID | FK to REVENUE | |
REASONCODEID |
uniqueidentifier | ![]() |
ADJUSTMENTREASONCODE.ID | Indicates the reason this adjustment was made. |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
BASECURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | |
TRANSACTIONCURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | |
BASEEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_AUCTIONPURCHASEADJUSTMENT_DATEADDED |
DATEADDED | ![]() |
||
IX_AUCTIONPURCHASEADJUSTMENT_DATECHANGED |
DATECHANGED | |||
IX_AUCTIONPURCHASEADJUSTMENT_REVENUEID |
REVENUEID | |||
PK_AUCTIONPURCHASEADJUSTMENT |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_AUCTIONPURCHASEADJUSTMENT_INSERTUPDATE_CURRENCY |
|
TR_AUCTIONPURCHASEADJUSTMENT_AUDIT_UPDATE |
|
TR_AUCTIONPURCHASEADJUSTMENT_AUDIT_DELETE |

ID
PREVIOUSAMOUNT
POSTSTATUS
REVENUEID
IX_AUCTIONPURCHASEADJUSTMENT_DATEADDED
IX_AUCTIONPURCHASEADJUSTMENT_DATECHANGED