ADJUSTMENTHISTORYWRITEOFFDISTRIBUTIONSNAPSHOT
Stores a snapshot of the GL distributions for a write-off at the time of an adjustment.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
TRANSACTIONTYPECODE |
tinyint |
|
Default = 0 |
The transaction type (debit or credit) for the record |
TRANSACTIONTYPE |
nvarchar(6) (Computed) |
yes |
CASE [TRANSACTIONTYPECODE] WHEN 0 THEN N'Debit' WHEN 1 THEN N'Credit' END |
Provides a translation for the 'TRANSACTIONTYPECODE' field. |
ACCOUNT |
nvarchar(100) |
|
Default = '' |
Indicates the account for this distribution. |
PROJECT |
nvarchar(100) |
|
Default = '' |
Indicates the project for this distribution. |
REFERENCE |
nvarchar(255) |
|
Default = '' |
Indicates the reference for this distribution. |
AMOUNT |
money |
|
Default = 0 |
Indicates the amount for this distribution. |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
TRANSACTIONAMOUNT |
money |
|
Default = 0 |
Indicates the amount for this distribution in transaction currency. |
ORGANIZATIONAMOUNT |
money |
|
Default = 0 |
Indicates the amount for this distribution in organization currency. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADJUSTMENTHISTORYWRITEOFFID |
uniqueidentifier |
|
ADJUSTMENTHISTORYWRITEOFF.ID
|
Indicates the adjustment history item to which this distribution applies. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this distribution. |
TRANSACTIONCURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The transaction currency associated with this distribution. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ADJUSTMENTHISTORYWRITEOFFDISTRIBUTIONSNAPSHOT_DATEADDED |
DATEADDED |
|
|
yes |
IX_ADJUSTMENTHISTORYWRITEOFFDISTRIBUTIONSNAPSHOT_DATECHANGED |
DATECHANGED |
|
|
|
PK_ADJUSTMENTHISTORYWRITEOFFDISTRIBUTIONSNAPSHOT |
ID |
yes |
yes |
|
Triggers