GIFTFEEGLDISTRIBUTIONTEMP

Table to store the GL distribution of gift fees entered by user to override the system-generated distribution. For other gift fee records this table will store the system-generated entries after post.

Fields

Field Field Type Null Notes Description
ID uniqueidentifier Default = (newid()) Primary Key.
REVENUESPLITGIFTFEEID uniqueidentifier yes ForeignKey to REVENUESPLITGIFTFEE table
GLPAYMENTMETHODREVENUETYPEMAPPINGID uniqueidentifier Foreign key to GLPaymentMethodRevenueTypeMapping table
REFERENCE nvarchar(255) Default = '' Reference field
AMOUNT money Default = 0 Amount
ACCOUNT nvarchar(100) Default = '' Account
TRANSACTIONTYPECODE tinyint Default = 0 The transaction type (debit or credit) for the record
TRANSACTIONTYPE nvarchar(6) (Computed) yes CASE [TRANSACTIONTYPECODE] WHEN 0 THEN N'Debit' WHEN 1 THEN N'Credit' END Provides a translation for the 'TRANSACTIONTYPECODE' field.
GLTRANSACTIONID uniqueidentifier yes Foreign key to the GLTRANSACTION table.
OUTDATED bit Default = 0 Specifies whether or not this distribution is outdated.
REVENUEID uniqueidentifier yes Logical foreign key to REVENUE table.
ADDEDBYID uniqueidentifier FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier FK to CHANGEAGENT.
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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
TRANSACTIONAMOUNT money Default = 0 Transaction amount
ORGANIZATIONAMOUNT money Default = 0 Organization amount
TRANSACTIONCURRENCYID uniqueidentifier yes The transaction currency associated with this gift fee GL distribution.
BASECURRENCYID uniqueidentifier yes The base currency associated with this gift fee GL distribution.
BASEEXCHANGERATEID uniqueidentifier yes The exchange rate used to calculate the base amount.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes The exchange rate used to calculate the organization amount.

Indexes

Index Name Fields Unique Primary Clustered
IX_GIFTFEEGLDISTRIBUTION_DATEADDED DATEADDED yes

Triggers

Trigger Name Description
TR_GIFTFEEGLDISTRIBUTION_INSERTUPDATE_CURRENCY
TR_GIFTFEEGLDISTRIBUTION_DELETE_GLTRANSACTION
TR_GIFTFEEGLDISTRIBUTION_UPDATE_GLTRANSACTION
TR_GIFTFEEGLDISTRIBUTION_AUDIT_UPDATE
TR_GIFTFEEGLDISTRIBUTION_AUDIT_DELETE
TR_GIFTFEEGLDISTRIBUTION_T2BDELETE