| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
NAME |
nvarchar(100) | Default = '' | Template name | |
POSTSTATUSCODE |
tinyint | Default = 1 | Post status | |
REFERENCECODE |
tinyint | Default = 0 | Transaction reference | |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
REFERENCE |
nvarchar(36) (Computed) | ![]() |
CASE [REFERENCECODE] WHEN 0 THEN N'Deposit template name' WHEN 1 THEN N'Process name' WHEN 2 THEN N'Process name + Deposit template name' END | Provides a translation for the 'REFERENCECODE' field. |
POSTSTATUS |
nvarchar(14) (Computed) | ![]() |
CASE [POSTSTATUSCODE] WHEN 1 THEN N'Not yet posted' WHEN 2 THEN N'Do not post' END | Provides a translation for the 'POSTSTATUSCODE' field. |
SALESCHANNELOPTIONCODE |
tinyint | Default = 0 | ||
PAYMENTMETHODOPTIONCODE |
tinyint | Default = 0 | ||
PAYMENTMETHODOPTION |
nvarchar(24) (Computed) | ![]() |
CASE [PAYMENTMETHODOPTIONCODE] WHEN 0 THEN N'All payment methods' WHEN 1 THEN N'Specific payment methods' END | |
INCLUDEINPROCESS |
bit | Default = 0 | ||
SALESCHANNELOPTION |
nvarchar(24) (Computed) | ![]() |
CASE [SALESCHANNELOPTIONCODE] WHEN 0 THEN N'All revenue sources' WHEN 1 THEN N'Specific revenue sources' END | |
CURRENCYOPTIONCODE |
tinyint | Default = 0 | ||
CURRENCYOPTION |
nvarchar(19) (Computed) | ![]() |
CASE [CURRENCYOPTIONCODE] WHEN 0 THEN N'All currencies' WHEN 1 THEN N'Specific currencies' END |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
SALESDEPOSITPROCESSID |
uniqueidentifier | ![]() |
SALESDEPOSITPROCESS.ID | FK to SALESDESPOSITPROCESS table. |
BANKACCOUNTID |
uniqueidentifier | BANKACCOUNT.ID | FK to BANKACCOUNT table. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_SALESDEPOSITTEMPLATE_DATEADDED |
DATEADDED | ![]() |
||
IX_SALESDEPOSITTEMPLATE_DATECHANGED |
DATECHANGED | |||
PK_SALESDEPOSITTEMPLATE |
ID | ![]() |
![]() |
|
UIX_SALESDEPOSITTEMPLATE_NAME_SALESDEPOSITPROCESSID |
NAME, SALESDEPOSITPROCESSID | ![]() |
| Trigger Name | Description |
|---|---|
TR_SALESDEPOSITTEMPLATE_INSERTUPDATE_VALIDBANKACCOUNT |
|
TR_SALESDEPOSITTEMPLATE_AUDIT_UPDATE |
|
TR_SALESDEPOSITTEMPLATE_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
BANKACCOUNTDEPOSIT |
SALESDEPOSITTEMPLATEID |
POSTTOGLPROCESSDEPOSITTEMPLATESFILTER |
SALESDEPOSITTEMPLATEID |
SALESDEPOSITTEMPLATECURRENCY |
SALESDEPOSITTEMPLATEID |
SALESDEPOSITTEMPLATEPAYMENTMETHOD |
SALESDEPOSITTEMPLATEID |
SALESDEPOSITTEMPLATESALESCHANNEL |
SALESDEPOSITTEMPLATEID |

ID
NAME
TSLONG
SALESDEPOSITPROCESSID
IX_SALESDEPOSITTEMPLATE_DATEADDED
IX_SALESDEPOSITTEMPLATE_DATECHANGED