Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
money | Default = 0 | Stock sale amount prior to adjustment | |
![]() |
datetime | ![]() |
The date of the adjustment to the stock sale record. | |
![]() |
datetime | ![]() |
The date to use when posting the adjustment to the stock sale record. | |
![]() |
tinyint | Default = 1 | Flag used to indicate if the adjustment has been posted. | |
![]() |
nvarchar(300) | Default = '' | Gives further details for why this adjustment was made. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was added. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
![]() |
timestamp | Timestamp. | ||
![]() |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
![]() |
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. |
![]() |
money | Default = 0 | The price at which the stock was sold in the organization currency. | |
![]() |
money | Default = 0 | The price at which the stock was sold in the transaction currency. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | FINANCIALTRANSACTION.ID | FK to STOCKSALE | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | ![]() |
ADJUSTMENTREASONCODE.ID | Indicates the reason this adjustment was made. |
![]() |
uniqueidentifier | ![]() |
CURRENCY.ID | The base currency associated with this record. |
![]() |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to calculate the organization amount. |
![]() |
uniqueidentifier | ![]() |
CURRENCY.ID | The transaction currency associated with this record. |
![]() |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to calculate the base amount. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
BASECURRENCYID | |||
![]() |
BASEEXCHANGERATEID | |||
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
ORGANIZATIONEXCHANGERATEID | |||
![]() |
STOCKSALEID | |||
![]() |
TRANSACTIONCURRENCYID | |||
![]() |
ID | ![]() |
![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |
|
![]() |
Referenced by | Field |
---|---|
![]() |
STOCKSALEADJUSTMENTID |