DISBURSEMENTHISTORY
History of actions taken on a disbursement record.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| ACTIONCODE |
tinyint |
|
Default = 0 |
Action taken on a disbursement record. |
| ACTION |
nvarchar(10) (Computed) |
yes |
CASE [ACTIONCODE] WHEN 0 THEN N'Created' WHEN 1 THEN N'Voided' WHEN 2 THEN N'Purged' WHEN 3 THEN N'Reprinted' WHEN 4 THEN N'Renumbered' WHEN 5 THEN N'Committed' END |
Provides a translation for the 'ACTIONCODE' field. |
| ORIGINALNUMBER |
int |
|
Default = 0 |
The original transaction number for the check. |
| CHANGEDNUMBER |
int |
|
Default = 0 |
The number that the disbursement was changed to. |
| 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. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| FINANCIALTRANSACTIONID |
uniqueidentifier |
|
FINANCIALTRANSACTION.ID
|
Parent financial transaction record. |
| FUTUREFINANCIALTRANSACTIONID |
uniqueidentifier |
yes |
FINANCIALTRANSACTION.ID
|
The future financial transaction record that this record is for (ex. If void and reprint then this should not be null) |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_DISBURSEMENTHISTORY_DATEADDED |
DATEADDED |
|
|
yes |
| IX_DISBURSEMENTHISTORY_DATECHANGED |
DATECHANGED |
|
|
|
| IX_DISBURSEMENTHISTORY_FINANCIALTRANSACTIONID |
FINANCIALTRANSACTIONID |
|
|
|
| IX_DISBURSEMENTHISTORY_FUTUREFINANCIALTRANSACTIONID |
FUTUREFINANCIALTRANSACTIONID |
|
|
|
| PK_DISBURSEMENTHISTORY |
ID |
yes |
yes |
|
Triggers