Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 TRANSACTIONTYPECODE tinyint   Default = 0 The transaction type (debit or credit) for the record.
 ACCOUNT nvarchar(100)   Default = '' The account string for the record.
 AMOUNT money   Default = 0 The amount of the transaction.
 PROJECT nvarchar(100)   Default = '' The project of the transaction.
 REFERENCE nvarchar(255)   Default = '' The reference used for the transaction.
 JOURNAL nvarchar(255)   Default = '' The journal used for the transaction.
 POSTSTATUSCODE tinyint   Default = 1 Flag used to indicate if the transaction has been posted.
 POSTDATE datetime The post date of the transaction.
 REVERSEDATE datetime The date the transaction was reversed.
 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.
 TRANSACTIONTYPE nvarchar(6) (Computed) CASE [TRANSACTIONTYPECODE] WHEN 0 THEN N'Debit' WHEN 1 THEN N'Credit' END Provides a translation for the 'TRANSACTIONTYPECODE' field.
 POSTSTATUS nvarchar(11) (Computed) CASE [POSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not posted' WHEN 2 THEN N'Do not post' END Provides a translation for the 'POSTSTATUSCODE' field.
 ORGANIZATIONAMOUNT money   Default = 0 The amount of the transaction in organization currency.
 TRANSACTIONAMOUNT money   Default = 0 The amount of the transaction in transaction currency.
 SYSTEMDISTRIBUTION bit   Default = 0 The GL distribution has been generated by the system and should not be editable by the user

Foreign Key Field Type Null Notes Description
 REVERSEDGLTRANSACTIONID uniqueidentifier GLTRANSACTION.ID Foreign key to the GLTRANSACTION table which represents the ID of the original transaction that has been reversed.
 BATCHID uniqueidentifier GLBATCH.ID The batch ID of the GL transaction.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 GLACCOUNTID uniqueidentifier GLACCOUNT.ID Foreign key to the GLACCOUNT table which represents the ID of the account.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this GL transaction.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert to organization amount.
 TRANSACTIONCURRENCYID uniqueidentifier CURRENCY.ID The transaction currency associated with this GL transaction.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert from transaction amount to amount.

Index Name Field(s) Unique Primary Clustered
 IX_GLTRANSACTION_DATEADDED DATEADDED    
 IX_GLTRANSACTION_DATECHANGED DATECHANGED      
 IX_GLTRANSACTION_POSTSTATUSCODE POSTSTATUSCODE      
 IX_GLTRANSACTION_REVERSEDGLTRANSACTIONID REVERSEDGLTRANSACTIONID      
 PK_GLTRANSACTION ID  

Trigger Name Description
 TR_GLTRANSACTION_UPDATE
 TR_GLTRANSACTION_INSERT
 TR_GLTRANSACTION_INSERTUPDATE_CURRENCY
 TR_GLTRANSACTION_AUDIT_UPDATE
 TR_GLTRANSACTION_AUDIT_DELETE

Referenced by Field
 ADJUSTMENTHISTORY GLTRANSACTIONID
 ADJUSTMENTHISTORYPROPERTY GLTRANSACTIONID
 ADJUSTMENTHISTORYSTOCK GLTRANSACTIONID
 ADJUSTMENTHISTORYWRITEOFF GLTRANSACTIONID
 AUCTIONPURCHASEGLDISTRIBUTION GLTRANSACTIONID
 BANKACCOUNTDEPOSITCORRECTIONGLDISTRIBUTION GLTRANSACTIONID
 BANKACCOUNTTRANSACTIONGLDISTRIBUTION GLTRANSACTIONID
 BENEFITGLDISTRIBUTION GLTRANSACTIONID
 CREDITGLDISTRIBUTION GLTRANSACTIONID
 DEPOSITGLDISTRIBUTIONLINK ID
 GIFTAIDGLDISTRIBUTION GLTRANSACTIONID
 GIFTFEEGLDISTRIBUTION GLTRANSACTIONID
 GLREVERSAL GLTRANSACTIONID
 PLANNEDGIFTPAYOUTGLDISTRIBUTION GLTRANSACTIONID
 PROPERTYDETAILGLDISTRIBUTION GLTRANSACTIONID
 REVENUEGLDISTRIBUTION GLTRANSACTIONID
 STOCKSALEGLDISTRIBUTION GLTRANSACTIONID
 UNREALIZEDGAINLOSSGLDISTRIBUTION GLTRANSACTIONID
 WRITEOFFGLDISTRIBUTION GLTRANSACTIONID

Entity-Relationship diagram of this table (ADJUSTMENTHISTORY-REVENUEGLDISTRIBUTION)
Entity-Relationship diagram of this table (STOCKSALEGLDISTRIBUTION-WRITEOFFGLDISTRIBUTION)