FINANCIALTRANSACTIONAPPLICATION
Applies a financial transaction to the schedule of another
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| AMOUNT |
money |
|
Default = 0 |
Amount of the application |
| STATUSCODE |
tinyint |
|
Default = 0 |
Status of this application |
| STATUS |
nvarchar(7) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Active' WHEN 2 THEN N'Deleted' END |
Provides a translation for the 'STATUSCODE' field. |
| TYPECODE |
tinyint |
|
Default = 0 |
Type of application |
| TYPE |
nvarchar(8) (Computed) |
yes |
CASE [TYPECODE] WHEN 0 THEN N'Regular' WHEN 1 THEN N'Discount' END |
Provides a translation for the 'TYPECODE' field. |
| 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 |
| FINANCIALTRANSACTIONSCHEDULEID |
uniqueidentifier |
|
FINANCIALTRANSACTIONSCHEDULE.ID
|
Foreign key to the financial transaction schedule that this application is for. |
| FINANCIALTRANSACTIONID |
uniqueidentifier |
yes |
FINANCIALTRANSACTION.ID
|
Foreign key to the financial transaction that pays/applies the amount to the financial transaction schedule |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_FINANCIALTRANSACTIONAPPLICATION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_FINANCIALTRANSACTIONAPPLICATION_DATECHANGED |
DATECHANGED |
|
|
|
| IX_FINANCIALTRANSACTIONAPPLICATION_FINANCIALTRANSACTIONID |
FINANCIALTRANSACTIONID |
|
|
|
| IX_FINANCIALTRANSACTIONAPPLICATION_FINANCIALTRANSACTIONSCHEDULEID |
FINANCIALTRANSACTIONSCHEDULEID |
|
|
|
| PK_FINANCIALTRANSACTIONAPPLICATION |
ID |
yes |
yes |
|
Triggers
Referenced by