RECONCILIATIONDETAIL
Contains reconciliation detail information.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
PAYMENTMETHODCODE |
tinyint |
|
Default = 0 |
The method of payment in which the revenue was received. |
PAYMENTMETHOD |
nvarchar(11) (Computed) |
yes |
CASE [PAYMENTMETHODCODE] WHEN 0 THEN N'Cash' WHEN 1 THEN N'Check' WHEN 2 THEN N'Credit card' WHEN 10 THEN N'Other' END |
Provides a translation for the 'PAYMENTMETHODCODE' field. |
QUANTITY |
int |
|
Default = 0 |
Quantity of receipt |
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. |
AMOUNT |
money |
|
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
RECONCILIATIONID |
uniqueidentifier |
|
RECONCILIATION.ID
|
FK to RECONCILIATION table. |
CREDITTYPECODEID |
uniqueidentifier |
yes |
CREDITTYPECODE.ID
|
FK to CREDITTYPECODE table. |
OTHERPAYMENTMETHODCODEID |
uniqueidentifier |
yes |
OTHERPAYMENTMETHODCODE.ID
|
FK to OTHERPAYMENTMETHODCODE table. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_RECONCILIATIONDETAIL_DATEADDED |
DATEADDED |
|
|
yes |
IX_RECONCILIATIONDETAIL_DATECHANGED |
DATECHANGED |
|
|
|
PK_RECONCILIATIONDETAIL |
ID |
yes |
yes |
|
UIX_RECONCILIATIONDETAIL_RECONCILIATIONID_CREDITTYPECODEID_OTHERPAYMENTMETHODCODEID |
RECONCILIATIONID, CREDITTYPECODEID, OTHERPAYMENTMETHODCODEID |
yes |
|
|
Triggers