BATCHREVENUEBENEFITPCT (4.0SP14)

Stores percentage benefits for batch rows.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHREVENUEID

uniqueidentifier

false

Indicates the batch row this benefit applies to.

BENEFITID

uniqueidentifier

false

Benefit

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

PERCENTAPPLICABLEAMOUNT

money

false

0

This is the amount used to determine the value for percentage based benefits

VALUEPERCENT

decimal(20, 4)

false

0

This is the percentage used to determine the value for percentage based benefits

DETAILS

nvarchar(255)

false

''

Details

SEQUENCE

int

false

0

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

REVENUEBENEFITID

uniqueidentifier

true

The benefit record id that's updated in revenueu update batch.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHREVENUEBENEFITPCT_BATCHREVENUEID

BATCHREVENUEID

False

False

False

IX_BATCHREVENUEBENEFITPCT_DATEADDED

DATEADDED

False

False

True

IX_BATCHREVENUEBENEFITPCT_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHREVENUEBENEFITPCT

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHREVENUEBENEFITPCT_AUDIT_UPDATE

TR_BATCHREVENUEBENEFITPCT_AUDIT_DELETE