REVENUETRIBUTETAXCLAIMAMOUNT

Table to store the tax claim amount for tributes.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
TAXCLAIMAMOUNT money Default = 0 Tax claim amount
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.
ORGANIZATIONTAXCLAIMAMOUNT money Default = 0 The tax claim amount of the revenue tribute in organization currency.

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier REVENUETRIBUTE.LOCALID 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 record.
ORGANIZATIONEXCHANGERATEID uniqueidentifier yes CURRENCYEXCHANGERATE.ID The exchange rate used to convert from amount to organization amount.

Indexes

Index Name Fields Unique Primary Clustered
IX_REVENUETRIBUTETAXCLAIMAMOUNT_DATEADDED DATEADDED yes
IX_REVENUETRIBUTETAXCLAIMAMOUNT_DATECHANGED DATECHANGED
PK_REVENUETRIBUTETAXCLAIMAMOUNT ID yes yes

Triggers

Trigger Name Description
TR_REVENUETRIBUTETAXCLAIMAMOUNT_INSERTUPDATE_CURRENCY
TR_REVENUETRIBUTETAXCLAIMAMOUNT_AUDIT_UPDATE
TR_REVENUETRIBUTETAXCLAIMAMOUNT_AUDIT_DELETE