GLBATCH (4.0SP20)

Stores information pertaining to GL batches.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

POSTPROCESSSTATUSID

uniqueidentifier

true

FK to BUSINESSPROCESSSTATUS

Fields
Field Field Type Null Notes Description

POSTDATE

datetime

true

The post date of the batch.

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.

CUSTOMIDENTIFIER

nvarchar(100)

false

''

User-definable custom identifier.

SEQUENCEID

int

false

Identity column used to increment the default lookupid.

POSTPROCESSTYPECODE

tinyint

false

255

0=LegacyGL, 1=BasicGL, 255=Unknown

POSTPROCESSTYPE

nvarchar(8) (Computed)

true

Provides a translation for the 'POSTPROCESSTYPECODE' field.

LOOKUPID

nvarchar(100) (Computed)

true

Unique identifer that supports user defined values as well as system generated values.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_GLBATCH_DATEADDED

DATEADDED

False

False

True

IX_GLBATCH_DATECHANGED

DATECHANGED

False

False

False

IX_GLBATCH_POSTPROCESSSTATUSID

POSTPROCESSSTATUSID

False

False

False

PK_GLBATCH

ID

True

True

False

UC_GLBATCH_LOOKUPID

LOOKUPID

True

False

False

Triggers
Trigger Name Description

TR_GLBATCH_AUDIT_UPDATE

TR_GLBATCH_AUDIT_DELETE

Referenced by
Referenced by Field

JOURNALENTRY_EXT

BATCHID

REVENUEPOSTEDDETAIL

GLBATCHID