ADJUSTMENTHISTORYSTOCKSNAPSHOT (4.0SP17)

Stores a snapshot of relevant stock detail 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.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this adjustment.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The transaction currency associated with this adjustment.

Fields
Field Field Type Null Notes Description

SALEAMOUNT

money

false

0

The sale amount for the stock sell before the adjustment.

BROKERFEE

money

false

0

The fees for the stock sell 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

NUMBEROFUNITS

decimal(20, 3)

false

0

The number of stock units sold.

PAYMENTNUMBEROFUNITS

decimal(20, 3)

false

0

The payment's number of units received.

PAYMENTMEDIANPRICE

decimal(19, 4)

false

0

The payment's median price per share.

TRANSACTIONSALEAMOUNT

money

false

0

The sale amount for the stock sell in transaction currency before the adjustment.

TRANSACTIONBROKERFEE

money

false

0

The fees for the stock sell in transaction currency before the adjustment.

TRANSACTIONPAYMENTMEDIANPRICE

decimal(19, 4)

false

0

The payment's median price per share in transaction currency.

ORGANIZATIONSALEAMOUNT

money

false

0

The sale amount for the stock sell in organization currency before the adjustment.

ORGANIZATIONBROKERFEE

money

false

0

The fees for the stock sell in organization currency before the adjustment.

ORGANIZATIONPAYMENTMEDIANPRICE

decimal(19, 4)

false

0

The payment's median price per share 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_ADJUSTMENTHISTORYSTOCKSNAPSHOT_DATEADDED

DATEADDED

False

False

True

IX_ADJUSTMENTHISTORYSTOCKSNAPSHOT_DATECHANGED

DATECHANGED

False

False

False

PK_ADJUSTMENTHISTORYSTOCKSNAPSHOT

ID

True

True

False

Triggers
Trigger Name Description

TR_ADJUSTMENTHISTORYSTOCKSNAPSHOT_AUDIT_UPDATE

TR_ADJUSTMENTHISTORYSTOCKSNAPSHOT_AUDIT_DELETE