| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
REQUIRETOBALANCE |
bit | Default = 0 | Reuqire to balance? | |
ACCOUNTREQUIREMENTSCODE |
tinyint | Default = 0 | List of account requirements | |
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. |
ACCOUNTREQUIREMENTS |
nvarchar(25) (Computed) | ![]() |
CASE [ACCOUNTREQUIREMENTSCODE] WHEN 0 THEN N'' WHEN 1 THEN N'Do not require' WHEN 2 THEN N'Income statement accounts' WHEN 3 THEN N'All accounts' END | Provides a translation for the 'ACCOUNTREQUIREMENTSCODE' field. |
PRESERVEDETAILSDURINGCLOSING |
bit | Default = 0 | Should we prevent details during closing? |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CLOSINGREQUIREMENTID |
uniqueidentifier | CLOSINGREQUIREMENT.ID | Refers to the closing requirement this belongs to. | |
ACCOUNTSTRUCTUREID |
uniqueidentifier | PDACCOUNTSTRUCTURE.ID | Refers to the accounting element this represents. | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_CLOSINGREQUIREMENTDETAIL_DATEADDED |
DATEADDED | ![]() |
||
IX_CLOSINGREQUIREMENTDETAIL_DATECHANGED |
DATECHANGED | |||
PK_CLOSINGREQUIREMENTDETAIL |
ID | ![]() |
![]() |
|
UIX_CLOSINGREQUIREMENTDETAIL_CLOSINGREQUIREMENTID_ACCOUNTSTRUCTUREID |
CLOSINGREQUIREMENTID, ACCOUNTSTRUCTUREID | ![]() |
| Trigger Name | Description |
|---|---|
TR_CLOSINGREQUIREMENTDETAIL_AUDIT_UPDATE |
|
TR_CLOSINGREQUIREMENTDETAIL_AUDIT_DELETE |

ID
REQUIRETOBALANCE
TSLONG
CLOSINGREQUIREMENTID
IX_CLOSINGREQUIREMENTDETAIL_DATEADDED
IX_CLOSINGREQUIREMENTDETAIL_DATECHANGED