RECONCILIATION
Contains reconciliation information.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| STARTINGCASH |
money |
|
Default = 0 |
|
| ACTUALCASH |
money |
|
Default = 0 |
|
| STATUSCODE |
tinyint |
|
Default = 0 |
The status of the reconciliation. |
| STATUS |
nvarchar(9) (Computed) |
yes |
CASE [STATUSCODE] WHEN 0 THEN N'Open' WHEN 1 THEN N'Submitted' WHEN 2 THEN N'Approved' WHEN 3 THEN N'Deposited' END |
Provides a translation for the 'STATUSCODE' field. |
| COMMENT |
nvarchar(max) |
|
Default = '' |
The comment. |
| 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. |
| RECONCILIATIONDATE |
datetime |
yes |
|
The date and time when the reconciliation is submitted. |
| APPROVALDATE |
datetime |
yes |
|
Date and time the reconciliation was approved |
| ORIGINALSUBMISSIONDATE |
datetime |
yes |
|
The date and time the reconciliation was originally submitted. Should not account for edits made after submission. |
| CASHOVERSHORTSALESMETHODCODE |
tinyint |
|
Default = 0 |
|
| CHECKOVERSHORTSALESMETHODCODE |
tinyint |
|
Default = 3 |
|
| CASHOVERSHORTDEPOSITED |
bit |
|
Default = 0 |
|
| CHECKOVERSHORTDEPOSITED |
bit |
|
Default = 0 |
|
| CASHOVERSHORTSALESMETHOD |
nvarchar(13) (Computed) |
yes |
CASE [CASHOVERSHORTSALESMETHODCODE] WHEN 0 THEN N'Daily Sales' WHEN 1 THEN N'Advance Sales' WHEN 2 THEN N'Online Sales' WHEN 3 THEN N'Group Sales' END |
|
| CHECKOVERSHORTSALESMETHOD |
nvarchar(13) (Computed) |
yes |
CASE [CHECKOVERSHORTSALESMETHODCODE] WHEN 0 THEN N'Daily Sales' WHEN 1 THEN N'Advance Sales' WHEN 2 THEN N'Online Sales' WHEN 3 THEN N'Group Sales' END |
|
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| APPUSERID |
uniqueidentifier |
|
APPUSER.ID
|
The application user who adds the record |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| APPROVEDBYID |
uniqueidentifier |
yes |
APPUSER.ID
|
The application user who approved the reconciliation |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_RECONCILIATION_APPUSERID |
APPUSERID |
|
|
|
| IX_RECONCILIATION_DATEADDED |
DATEADDED |
|
|
yes |
| IX_RECONCILIATION_DATECHANGED |
DATECHANGED |
|
|
|
| IX_RECONCILIATION_RECONCILIATIONDATE |
RECONCILIATIONDATE (DESC) |
|
|
|
| PK_RECONCILIATION |
ID |
yes |
yes |
|
Triggers
Referenced by