ADJUSTMENTHISTORYREVENUETRANSACTION (4.0SP20)

Stores a snapshot of relevant revenue information at the time of an adjustment.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

The total amount of the revenue item before the adjustment.

PAYMENTMETHODCODE

tinyint

false

0

Indicates the payment method of the revenue item before the adjustment.

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.

CONSTITUENTIDENTIFIER

uniqueidentifier

true

Indicates the ID of the constituent before the adjustment

TRANSACTIONAMOUNT

money

false

0

The total amount of the revenue item before the adjustment in transaction currency.

ORGANIZATIONAMOUNT

money

false

0

The total amount of the revenue item before the adjustment in organization currency.

BASERATE

decimal(20, 8)

false

0

The rate to used to convert to the base amount.

ORGANIZATIONRATE

decimal(20, 8)

false

0

The rate to used to convert to the organization amount.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_ADJUSTMENTHISTORYREVENUETRANSACTION_DATEADDED

DATEADDED

False

False

True

IX_ADJUSTMENTHISTORYREVENUETRANSACTION_DATECHANGED

DATECHANGED

False

False

False

PK_ADJUSTMENTHISTORYREVENUETRANSACTION

ID

True

True

False

Triggers
Trigger Name Description

TR_ADJUSTMENTHISTORYREVENUETRANSACTION_AUDIT_UPDATE

TR_ADJUSTMENTHISTORYREVENUETRANSACTION_AUDIT_DELETE