SALESORDERITEMREVENUESCHEDULE
Schedule information for pledges and recurring gifts to be created as part of a sales order.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
AMOUNT |
money |
|
Default = 0 |
The installment amount for the commitment. |
FREQUENCYCODE |
tinyint |
|
Default = 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) |
yes |
CASE [FREQUENCYCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semi-annually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' WHEN 4 THEN N'Irregular' WHEN 5 THEN N'Single Installment' WHEN 6 THEN N'Bimonthly' WHEN 7 THEN N'Semi-Monthly' WHEN 8 THEN N'Biweekly' WHEN 9 THEN N'Weekly' END |
Provides a translation for the 'FREQUENCYCODE' field. |
SCHEDULESTARTDATE |
date |
|
|
|
AUTOPAY |
bit |
|
Default = 0 |
|
PAYMENTMETHODCODE |
tinyint |
|
Default = 2 |
2=Credit card, 3=Direct debit |
PAYMENTMETHOD |
nvarchar(12) (Computed) |
yes |
CASE [PAYMENTMETHODCODE] WHEN 2 THEN N'Credit card' WHEN 3 THEN N'Direct debit' END |
Provides a translation for the 'PAYMENTMETHODCODE' field. |
CARDHOLDERNAME |
nvarchar(255) |
|
Default = '' |
The name on the credit card. |
CREDITCARDPARTIALNUMBER |
nvarchar(4) |
|
Default = '' |
Stores the last four digits of a credit card number |
EXPIRESON |
UDT_FUZZYDATE |
|
Default = '00000000' |
The expiration date of the credit card. |
CREDITCARDTOKEN |
uniqueidentifier |
yes |
|
The token used to identify the card on the BBPS service. |
REFERENCEDATE |
UDT_FUZZYDATE |
|
Default = '00000000' |
The date that the reference was made. |
REFERENCENUMBER |
nvarchar(20) |
|
Default = '' |
|
DATEADDED |
datetime |
|
Default = getdate() |
Indicates the date this record was added. |
DATECHANGED |
datetime |
|
Default = getdate() |
Indicates the date this record was last changed. |
TS |
timestamp |
|
|
Timestamp. |
TSLONG |
bigint (Computed) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ID |
uniqueidentifier |
|
SALESORDERITEM.ID
|
Primary Key. |
CREDITTYPECODEID |
uniqueidentifier |
yes |
CREDITTYPECODE.ID
|
The type of credit card used when making a credit card payment. |
CONSTITUENTACCOUNTID |
uniqueidentifier |
yes |
CONSTITUENTACCOUNT.ID
|
FK to CONSTITUENTACCOUNT |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SALESORDERITEMREVENUESCHEDULE_DATEADDED |
DATEADDED |
|
|
yes |
IX_SALESORDERITEMREVENUESCHEDULE_DATECHANGED |
DATECHANGED |
|
|
|
PK_SALESORDERITEMREVENUESCHEDULE |
ID |
yes |
yes |
|
Triggers