CONTROLACCOUNT (2.93)

This table stores details about the control accounts for all subsidiary ledgers.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SYSTEMID

uniqueidentifier

false

Defines the system for this control account

DATAELEMENT1ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT2ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT3ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT4ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT5ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT6ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT7ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT8ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT9ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT10ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT11ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT12ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT13ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT14ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT15ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT16ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT17ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT18ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT19ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT20ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT21ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT22ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT23ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT24ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT25ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT26ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT27ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT28ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT29ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

DATAELEMENT30ID

uniqueidentifier

true

FK to PDACCOUNTSEGMENTVALUE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

ALLOWEDIT

bit

false

0

Allow accounts to be edited on transactions.

ALLOWOTHERSUBSIDIARY

bit

false

0

Allow accounts to be used as primary account on other subsidiary ledgers.

ALLOWJOURNALENTRY

bit

false

0

Allow accounts to be used in Journal Entry.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

ACCOUNTTYPECODE

tinyint

false

1

Indicates the purpose of this control account

ACCOUNTTYPE

nvarchar(17) (Computed)

true

Provides a translation for the 'ACCOUNTTYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CONTROLACCOUNT_DATEADDED

DATEADDED

False

False

True

IX_CONTROLACCOUNT_DATECHANGED

DATECHANGED

False

False

False

PK_CONTROLACCOUNT

ID

True

True

False

Triggers
Trigger Name Description

TR_CONTROLACCOUNT_INSUPD

TR_CONTROLACCOUNT_AUDIT_UPDATE

TR_CONTROLACCOUNT_AUDIT_DELETE

Referenced by
Referenced by Field

CONTROLACCOUNTELEMENT

CONTROLACCOUNTID

CONTROLACCOUNTTREASURY

ID