Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNTTOTAX money   Default = 0 Amount subject to value added tax in base currency.
 VATAMOUNT money   Default = 0 Amount of value added tax in base currency.
 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.
 ORGANIZATIONAMOUNTTOTAX money   Default = 0 Amount subject to value added tax in organization currency.
 ORGANIZATIONVATAMOUNT money   Default = 0 Amount of value added tax in organization currency.
 TRANSACTIONAMOUNTTOTAX money   Default = 0 Amount subject to value added tax in transaction currency.
 TRANSACTIONVATAMOUNT money   Default = 0 Amount of value added tax in transaction currency.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   FINANCIALTRANSACTION.ID Primary Key.
 VATTAXRATEID uniqueidentifier VATTAXRATE.ID Value added tax rate to used.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this revenue.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert to organization amount.
 TRANSACTIONCURRENCYID uniqueidentifier CURRENCY.ID The transaction currency associated with this revenue.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert from transaction amount to base amount.

Index Name Field(s) Unique Primary Clustered
 IX_REVENUEVAT_DATEADDED DATEADDED    
 IX_REVENUEVAT_DATECHANGED DATECHANGED      
 IX_REVENUEVAT_VATTAXRATEID VATTAXRATEID      
 PK_REVENUEVAT ID  

Trigger Name Description
 TR_REVENUEVAT_AUDIT_UPDATE
 TR_REVENUEVAT_AUDIT_DELETE
 TR_REVENUEVAT_INSERTUPDATE_CURRENCY

Entity-Relationship diagram of this table