SALESDEPOSITPROCESS

Contains parameter information for the Sales Deposit business process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the parameter set.
DESCRIPTION nvarchar(255) Default = '' The description of the parameter set.
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.
ISRECONCILEDPROCESS bit Default = 0 Indicates whether this is the reconciled payments process.
GROUPBYDATE bit Default = 0 Indicates whether this process will have separate deposits by day when multiple days are being processed.
DEPOSITDATEOPTIONCODE tinyint Default = 0
DEPOSITDATEOPTION nvarchar(12) (Computed) yes CASE [DEPOSITDATEOPTIONCODE] WHEN 0 THEN N'Sales date' WHEN 1 THEN N'Today' WHEN 2 THEN N'Yesterday' WHEN 3 THEN N'Specific day' END
DEPOSITDATE date yes
PAYMENTDATEOPTIONCODE tinyint Default = 1
PAYMENTDATEOPTION nvarchar(12) (Computed) yes CASE [PAYMENTDATEOPTIONCODE] WHEN 0 THEN N'Today' WHEN 1 THEN N'Yesterday' WHEN 2 THEN N'Specific day' END
PAYMENTDATE date yes

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
PDACCOUNTSYSTEMID uniqueidentifier yes PDACCOUNTSYSTEM.ID

Indexes

Index Name Fields Unique Primary Clustered
IX_SALESDEPOSITPROCESS_DATEADDED DATEADDED yes
IX_SALESDEPOSITPROCESS_DATECHANGED DATECHANGED
PK_SALESDEPOSITPROCESS ID yes yes
UC_SALESDEPOSITPROCESS_NAME NAME yes

Triggers

Trigger Name Description
TR_SALESDEPOSITPROCESS_AUDIT_UPDATE
TR_SALESDEPOSITPROCESS_AUDIT_DELETE

Referenced by

Referenced by Field
SALESDEPOSITPROCESSEXPORTFORMAT PARAMETERSETID
SALESDEPOSITPROCESSSTATUS PARAMETERSETID
SALESDEPOSITTEMPLATE SALESDEPOSITPROCESSID