REVENUESPLITGIFTFEE

Contains revenue detail split gift fee information.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
FEE money Default = 0 The amount for given revenue detail split.
WAIVED bit 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.
ORGANIZATIONAMOUNT money Default = 0 The amount of the fee in organization currency.
TRANSACTIONAMOUNT money Default = 0 The amount of the fee in transaction currency.

Foreign Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUESPLITGIFTFEE_BASECURRENCYID BASECURRENCYID
IX_REVENUESPLITGIFTFEE_BASEEXCHANGERATEID BASEEXCHANGERATEID
IX_REVENUESPLITGIFTFEE_DATEADDED DATEADDED yes
IX_REVENUESPLITGIFTFEE_DATECHANGED DATECHANGED
IX_REVENUESPLITGIFTFEE_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID
IX_REVENUESPLITGIFTFEE_TRANSACTIONCURRENCYID TRANSACTIONCURRENCYID
PK_REVENUESPLITGIFTFEE ID yes yes

Triggers

Trigger Name Description
TR_REVENUESPLITGIFTFEE_AUDIT_UPDATE
TR_REVENUESPLITGIFTFEE_AUDIT_DELETE
TR_REVENUESPLITGIFTFEE_INSERTUPDATE_CURRENCY
TR_REVENUESPLITGIFTFEE_D