SALESORDERITEMREVENUESCHEDULE (4.0SP17)

Schedule information for pledges and recurring gifts to be created as part of a sales order.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CREDITTYPECODEID

uniqueidentifier

true

The type of credit card used when making a credit card payment.

CONSTITUENTACCOUNTID

uniqueidentifier

true

FK to CONSTITUENTACCOUNT

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

AMOUNT

money

false

0

The installment amount for the commitment.

FREQUENCYCODE

tinyint

false

0

0=Annually, 1=Semi-annually, 2=Quarterly, 3=Monthly, 4=Irregular, 5=Single Installment, 6=Bimonthly, 7=Semi-Monthly, 8=Biweekly, 9=Weekly

FREQUENCY

nvarchar(18) (Computed)

true

Provides a translation for the 'FREQUENCYCODE' field.

SCHEDULESTARTDATE

date

false

AUTOPAY

bit

false

0

PAYMENTMETHODCODE

tinyint

false

2

2=Credit card, 3=Direct debit

PAYMENTMETHOD

nvarchar(12) (Computed)

true

Provides a translation for the 'PAYMENTMETHODCODE' field.

CARDHOLDERNAME

nvarchar(255)

false

''

The name on the credit card.

CREDITCARDPARTIALNUMBER

nvarchar(4)

false

''

Stores the last four digits of a credit card number

EXPIRESON

UDT_FUZZYDATE

false

'00000000'

The expiration date of the credit card.

CREDITCARDTOKEN

uniqueidentifier

true

The token used to identify the card on the BBPS service.

REFERENCEDATE

UDT_FUZZYDATE

false

'00000000'

The date that the reference was made.

REFERENCENUMBER

nvarchar(20)

false

''

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SALESORDERITEMREVENUESCHEDULE_DATEADDED

DATEADDED

False

False

True

IX_SALESORDERITEMREVENUESCHEDULE_DATECHANGED

DATECHANGED

False

False

False

PK_SALESORDERITEMREVENUESCHEDULE

ID

True

True

False

Triggers
Trigger Name Description

TR_SALESORDERITEMREVENUESCHEDULE_AUDIT_UPDATE

TR_SALESORDERITEMREVENUESCHEDULE_AUDIT_DELETE