REVENUESPLITBUSINESSUNIT (4.0SP4)

Stores busienss units associated with revenue splits.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

REVENUESPLITID

uniqueidentifier

false

FK to REVENUESPLIT

BUSINESSUNITCODEID

uniqueidentifier

false

FK to BUSINESSUNITCODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this revenue split.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from amount to organization amount.

Fields
Field Field Type Null Notes Description

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.

AMOUNT

money

false

0

Amount of money given to this business unit.

ORGANIZATIONAMOUNT

money

false

0

The amount of the revenue split in organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_REVENUESPLITBUSINESSUNIT_DATEADDED

DATEADDED

False

False

True

IX_REVENUESPLITBUSINESSUNIT_DATECHANGED

DATECHANGED

False

False

False

PK_REVENUESPLITBUSINESSUNIT

ID

True

True

False

UIX_REVENUESPLITBUSINESSUNIT_REVENUESPLITID_BUSINESSUNITCODEID

REVENUESPLITID

BUSINESSUNITCODEID

True

False

False

Triggers
Trigger Name Description

TR_REVENUESPLITBUSINESSUNIT_INSERTUPDATE_CURRENCY

TR_REVENUESPLITBUSINESSUNIT_AUDIT_UPDATE

TR_REVENUESPLITBUSINESSUNIT_AUDIT_DELETE