GIFTFEESTRUCTURE

This table contains fee structures for gift fees

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
FROMAMOUNT money Default = 0.00 If this value is true the gift fees will be calculated and used.
FEE decimal(6, 2) Default = 0
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.
ORGANIZATIONFROMAMOUNT money Default = 0 From amount in organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from amount to organization amount.
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this gift fee structure.

Indexes

Index Name Fields Unique Primary Clustered
IX_GIFTFEESTRUCTURE_BASECURRENCYID BASECURRENCYID
IX_GIFTFEESTRUCTURE_DATEADDED DATEADDED yes
IX_GIFTFEESTRUCTURE_DATECHANGED DATECHANGED
IX_GIFTFEESTRUCTURE_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
PK_GIFTFEESTRUCTURE ID yes yes
UIX_GIFTFEESTRUCTURE_FROMAMOUNT FROMAMOUNT yes

Triggers

Trigger Name Description
TR_GIFTFEESTRUCTURE_AUDIT_UPDATE
TR_GIFTFEESTRUCTURE_AUDIT_DELETE
TR_GIFTFEESTRUCTURE_INSERTUPDATE_CURRENCY