BATCHREVENUEADDITIONALAPPLICATIONS (2.93)

Stores additional applications info for batch

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

OTHERTYPECODEID

uniqueidentifier

true

FK to REVENUEOTHERTYPECODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

OPPORTUNITYID

uniqueidentifier

true

FK to OPPORTUNITY

SPONSORSHIPID

uniqueidentifier

true

FK to SPONSORSHIP

REVENUESPLITBUSINESSUNITOVERRIDECODEID

uniqueidentifier

true

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

GLREVENUECATEGORYMAPPINGID

uniqueidentifier

true

Foreign key to the GLREVENUECATEGORYMAPPING table.

Fields
Field Field Type Null Notes Description

TYPECODE

tinyint

false

0

The type of application.

APPLIED

money

false

0

DECLINESGIFTAID

bit

false

0

Indicates whether Gift Aid is declined for this application.

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.

TYPE

nvarchar(31) (Computed)

true

Provides a translation for the 'TYPECODE' field.

ISGIFTAIDSPONSORSHIP

bit

false

0

Indicates whether this application is a Gift Aid sponsorship.

REVENUESPLITID

uniqueidentifier

true

Split id for revenue update batch.

OVERRIDEBUSINESSUNITS

bit

false

0

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

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BATCHREVENUEADDITIONALAPPLICATIONS_BATCHREVENUEID

BATCHREVENUEID

False

False

False

IX_BATCHREVENUEADDITIONALAPPLICATIONS_DATEADDED

DATEADDED

False

False

True

IX_BATCHREVENUEADDITIONALAPPLICATIONS_DATECHANGED

DATECHANGED

False

False

False

PK_BATCHREVENUEADDITIONALAPPLICATIONS

ID

True

True

False

Triggers
Trigger Name Description

TR_BATCHREVENUEADDITIONALAPPLICATIONS_AUDIT_UPDATE

TR_BATCHREVENUEADDITIONALAPPLICATIONS_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHREVENUEADDITIONALAPPLICATIONBUSINESSUNIT

BATCHREVENUEADDITIONALAPPLICATIONID

BATCHREVENUEADDITIONALAPPLICATIONCAMPAIGN

BATCHREVENUEADDITIONALAPPLICATIONSID