BATCHREVENUESPLIT (4.0SP17)

Stores batch info

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHREVENUEID

uniqueidentifier

false

FK to BATCHREVENUE

DESIGNATIONID

uniqueidentifier

false

FK to DESIGNATION

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

REVENUESPLITBUSINESSUNITOVERRIDECODEID

uniqueidentifier

true

Stores the reason for overriding business units on this revenue split record.

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

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.

TYPECODE

tinyint

false

0

The type of revenue split.

APPLICATIONCODE

tinyint

false

0

What the revenue item is applied to.

DECLINESGIFTAID

bit

false

0

Indicates whether Gift Aid is declined for this split.

ISGIFTAIDSPONSORSHIP

bit

false

0

Indicates whether this split is a Gift Aid sponsorship.

REVENUESPLITID

uniqueidentifier

true

Split id for revenue update batch.

APPLICATION

nvarchar(18) (Computed)

true

Provides a translation for the 'APPLICATIONCODE' field.

OVERRIDEBUSINESSUNITS

bit

false

0

Boolean value to tell whether business units attached to the application/payment were overriden

TYPE

nvarchar(27) (Computed)

true

Provides a translation for the 'TYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHREVENUESPLIT_BATCHREVENUEID

BATCHREVENUEID

False

False

False

IX_BATCHREVENUESPLIT_DATEADDED

DATEADDED

False

False

True

IX_BATCHREVENUESPLIT_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHREVENUESPLIT

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHREVENUESPLIT_AUDIT_UPDATE

TR_BATCHREVENUESPLIT_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHREVENUESPLITBUSINESSUNIT

BATCHREVENUESPLITID

BATCHREVENUESPLITCAMPAIGN

BATCHREVENUESPLITID