CHARITYCLAIMREFERENCENUMBER

Stores charity claim information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
REFERENCENUMBER nvarchar(20) Default = '' The reference number for this record.
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.
CLASSIFICATIONCODE tinyint Default = 0 The tax classification for this record.
WAITINGPERIOD smallint Default = ((30)) The waiting period for this record.
CLASSIFICATION nvarchar(7) (Computed) yes CASE [CLASSIFICATIONCODE] WHEN 0 THEN N'Trust' WHEN 1 THEN N'Company' END Provides a translation for the 'CLASSIFICATIONCODE' field.
DESCRIPTION nvarchar(50) Default = '' Description for this record.

Foreign Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_CHARITYCLAIMREFERENCENUMBER_DATEADDED DATEADDED yes
IX_CHARITYCLAIMREFERENCENUMBER_DATECHANGED DATECHANGED
PK_CHARITYCLAIMREFERENCENUMBER ID yes yes
UC_CHARITYCLAIMREFERENCENUMBER_REFERENCENUMBER REFERENCENUMBER yes

Triggers

Trigger Name Description
TR_CHARITYCLAIMREFERENCENUMBER_AUDIT_UPDATE
TR_CHARITYCLAIMREFERENCENUMBER_AUDIT_DELETE

Referenced by

Referenced by Field
BATCHCONSTITUENTTAXDECLARATION CHARITYCLAIMREFERENCENUMBERID
BATCHREVENUETAXDECLARATION CHARITYCLAIMREFERENCENUMBERID
CHARITYCLAIMREFERENCENUMBERSITE CHARITYCLAIMREFERENCENUMBERID
R68ONLINESUBMISSIONSETTINGS CCRNID
TAXDECLARATION CHARITYCLAIMREFERENCENUMBERID