Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DEFAULTPAYMENTDATE datetime Default payment date
 DEFAULTPAYMENTAMOUNT decimal(19, 4)   Default = 0 Default payment amount
 DEFAULTALLOWEDPAYMENTMETHODS int   Default = 43 Default allowed payment method
 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.
 STATUSCODE tinyint   Default = 1 Bank account status
 PROJECTEDAMOUNT decimal(19, 4)   Default = 0 Projected amount
 PROJECTEDNUMBEROFPAYMENTS int   Default = 0 Projected number of payments that will be included in this deposit
 DEFAULTPAYMENTMETHODCODE tinyint   Default = 2 Default payment method
 NUMBEROFPAYMENTS int (Computed) dbo.UFN_BANKACCOUNTDEPOSIT_NUMBEROFPAYMENTS(ID) Number of payments included in this deposit
 DEFAULTPAYMENTMETHOD nvarchar(11) (Computed) CASE [DEFAULTPAYMENTMETHODCODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Check' WHEN 2 THEN N'Cash' WHEN 8 THEN N'Credit card' WHEN 32 THEN N'Other' END Provides a translation for the 'DEFAULTPAYMENTMETHODCODE' field.
 STATUS nvarchar(8) (Computed) CASE [STATUSCODE] WHEN 0 THEN N'Locked' WHEN 1 THEN N'Unlocked' END Provides a translation for the 'STATUSCODE' field.
 TOTALPAYMENTAMOUNT money   Default = 0 The total amount of the payments in their transaction currency.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   FINANCIALTRANSACTION.ID Primary Key.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 OTHERPAYMENTMETHODCODEID uniqueidentifier OTHERPAYMENTMETHODCODE.ID The other type of payment method used.
 CREDITTYPECODEID uniqueidentifier CREDITTYPECODE.ID The type of credit card used when making a credit card payment.
 TRANSACTIONCURRENCYID uniqueidentifier CURRENCY.ID The deposit and payment currency
 TRANSACTIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert from payment currency to deposit currency.
 SALESDEPOSITTEMPLATEID uniqueidentifier SALESDEPOSITTEMPLATE.ID

Index Name Field(s) Unique Primary Clustered
 IX_BANKACCOUNTDEPOSIT_DATEADDED DATEADDED    
 IX_BANKACCOUNTDEPOSIT_DATECHANGED DATECHANGED      
 PK_BANKACCOUNTDEPOSIT ID  

Trigger Name Description
 TR_BANKACCOUNTDEPOSIT_VALIDATE
 TR_BANKACCOUNTDEPOSIT_ADD_DEFAULT
 TR_BANKACCOUNTDEPOSIT_DELETE_POSTED
 TR_BANKACCOUNTDEPOSIT_AUDIT_UPDATE
 TR_BANKACCOUNTDEPOSIT_AUDIT_DELETE

Referenced by Field
 BANKACCOUNTDEPOSITATTACHMENT DEPOSITID
 BANKACCOUNTDEPOSITCREDITPAYMENT DEPOSITID
 BANKACCOUNTDEPOSITMEDIALINK DEPOSITID
 BANKACCOUNTDEPOSITNOTE DEPOSITID
 BANKACCOUNTDEPOSITPAYMENT DEPOSITID
 DEPOSITGLDISTRIBUTIONLINK DEPOSITID

Entity-Relationship diagram of this table