| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
QUANTITY |
int | Default = 0 | Number of benefits | |
UNITVALUE |
money | Default = 0 | Cost or percentage of the benefit | |
DETAILS |
nvarchar(255) | Default = '' | Comments | |
SEQUENCE |
int | 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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
SENDBENEFIT |
tinyint | Default = 2 | Designates when to create distribution for benefit (0-Committed, 1-Fully Paid, 2-no distribution). | |
PERCENTAPPLICABLEAMOUNT |
money | Default = 0 | This is the amount used to determine the value for percentage based benefits | |
VALUEPERCENT |
decimal(20, 4) | Default = 0 | This is the percentage used to determine the value for percentage based benefits | |
TRANSACTIONTOTALVALUE |
money | Default = 0 | The total value in the transaction currency of the revenue. | |
ORGANIZATIONTOTALVALUE |
money | Default = 0 | The total value in the organization currency. | |
TOTALVALUE |
money (Computed) | ![]() |
cast((QUANTITY * UNITVALUE) + (PERCENTAPPLICABLEAMOUNT * VALUEPERCENT/100) as money) |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
REVENUEID |
uniqueidentifier | REVENUE.LOCALID | FK to REVENUE table. | |
BENEFITID |
uniqueidentifier | BENEFIT.ID | The benefit for this row. | |
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 benefit total amount. |
TRANSACTIONCURRENCYID |
uniqueidentifier | ![]() |
CURRENCY.ID | The transaction currency associated with this revenue benefit total amount. |
BASEEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert to the base amount. |
ORGANIZATIONEXCHANGERATEID |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert to the organization amount. |
REVENUESPLITID |
uniqueidentifier | ![]() |
REVENUESPLIT.LOCALID | The revenue split from which the benefit originated. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_REVENUEBENEFIT_BASECURRENCYID |
BASECURRENCYID | |||
IX_REVENUEBENEFIT_BASEEXCHANGERATEID |
BASEEXCHANGERATEID | |||
IX_REVENUEBENEFIT_BENEFITID |
BENEFITID | |||
IX_REVENUEBENEFIT_DATEADDED |
DATEADDED | ![]() |
||
IX_REVENUEBENEFIT_DATECHANGED |
DATECHANGED | |||
IX_REVENUEBENEFIT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID | |||
IX_REVENUEBENEFIT_REVENUEID |
REVENUEID | |||
IX_REVENUEBENEFIT_TRANSACTIONCURRENCYID |
TRANSACTIONCURRENCYID | |||
PK_REVENUEBENEFIT |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_REVENUEBENEFIT_AUDIT_UPDATE |
|
TR_REVENUEBENEFIT_AUDIT_DELETE |
|
TR_REVENUEBENEFIT_T2BDELETE |
|
TR_REVENUEBENEFIT_INSERTUPDATE_CURRENCY |
| Referenced by | Field |
|---|---|
BENEFITGLDISTRIBUTION |
REVENUEBENEFITID |

ID
QUANTITY
TSLONG
REVENUEID
IX_REVENUEBENEFIT_BASECURRENCYID
IX_REVENUEBENEFIT_DATEADDED