| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
LETTERTYPECODE |
tinyint | Default = 0 | Indicates whether the letter is a revenue letter or a tribute letter. | |
LETTERTYPE |
nvarchar(7) (Computed) | ![]() |
CASE [LETTERTYPECODE] WHEN 0 THEN N'Revenue' WHEN 1 THEN N'Tribute' END | Provides a translation for the 'LETTERTYPECODE' field. |
PROCESSDATE |
datetime | ![]() |
||
ACKNOWLEDGEDATE |
datetime | ![]() |
||
LETTERCODEID |
uniqueidentifier | ![]() |
||
ACKNOWLEDGEEID |
uniqueidentifier | FK to CONSTITUENT | ||
REVENUELETTERID |
uniqueidentifier | ![]() |
Used by update revenue batch | |
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. |
OUTOFDATE |
bit | Default = 0 | ||
CLEARDATES |
bit | Default = 0 |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
BATCHREVENUEID |
uniqueidentifier | BATCHREVENUE.ID | FK to BATCHREVENUE | |
TRIBUTEID |
uniqueidentifier | ![]() |
TRIBUTE.LOCALID | FK to TRIBUTE |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_BATCHREVENUELETTER_ACKNOWLEDGEEID |
ACKNOWLEDGEEID | |||
IX_BATCHREVENUELETTER_DATEADDED |
DATEADDED | ![]() |
||
IX_BATCHREVENUELETTER_DATECHANGED |
DATECHANGED | |||
PK_BATCHREVENUELETTER |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_BATCHREVENUELETTER_AUDIT_UPDATE |
|
TR_BATCHREVENUELETTER_AUDIT_DELETE |

ID
LETTERTYPECODE
LETTERTYPE
BATCHREVENUEID
IX_BATCHREVENUELETTER_ACKNOWLEDGEEID
IX_BATCHREVENUELETTER_DATEADDED