GLFISCALYEAR (4.0SP20)

General ledger fiscal year table

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SITEID

uniqueidentifier

true

Site using this Fiscal Year

PREVIOUSYEARID

uniqueidentifier

true

The ID of the previous Fiscal Year

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

YEARID

nvarchar(12)

false

''

User defined year identifier

DESCRIPTION

nvarchar(60)

false

''

Year description

STATUSCODE

tinyint

false

1

Fiscal status of year

SUMMARIZED

bit

false

0

Has the year's details been summarized?

FISCALPERIODSINYEAR

tinyint

false

12

YEARSEQUENCE

tinyint

false

0

NUMBERADJUSTMENTPERIODS

tinyint

false

0

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.

STATUS

nvarchar(10) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_GLFISCALYEAR_DATEADDED

DATEADDED

False

False

True

IX_GLFISCALYEAR_DATECHANGED

DATECHANGED

False

False

False

PK_GLFISCALYEAR

ID

True

True

False

UC_GLFISCALYEAR_DESCRIPTION

DESCRIPTION

True

False

False

UC_GLFISCALYEAR_YEARID

YEARID

True

False

False

Triggers
Trigger Name Description

TR_GLFISCALYEAR_INS

TR_GLFISCALYEAR_AUDIT_UPDATE

TR_GLFISCALYEAR_AUDIT_DELETE

Referenced by
Referenced by Field

GLFISCALPERIOD

GLFISCALYEARID