1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Pledge
</base>
5 <name>civicrm_pledge
</name>
10 <uniqueName>pledge_id
</uniqueName>
11 <title>Pledge ID
</title>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>Pledge ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>contact_id
</name>
24 <uniqueName>pledge_contact_id
</uniqueName>
25 <title>Contact ID
</title>
27 <type>int unsigned
</type>
28 <required>true
</required>
29 <comment>Foreign key to civicrm_contact.id .
</comment>
32 <type>Autocomplete-Select
</type>
36 <name>contact_id
</name>
37 <table>civicrm_contact
</table>
40 <onDelete>CASCADE
</onDelete>
43 <name>contribution_type_id
</name>
44 <uniqueName>pledge_contribution_type_id
</uniqueName>
45 <export>false
</export>
46 <type>int unsigned
</type>
47 <comment>FK to Contribution Type. This is propagated to contribution record when pledge payments are made.
</comment>
52 <name>contribution_type_id
</name>
53 <table>civicrm_contribution_type
</table>
57 <onDelete>SET NULL
</onDelete>
60 <name>financial_type_id
</name>
62 <uniqueName>pledge_financial_type_id
</uniqueName>
63 <type>int unsigned
</type>
64 <comment>FK to Financial Type
</comment>
71 <name>financial_type_id
</name>
72 <table>civicrm_financial_type
</table>
77 <name>contribution_page_id
</name>
78 <uniqueName>pledge_contribution_page_id
</uniqueName>
79 <title>Pledge Contribution Page
</title>
80 <type>int unsigned
</type>
81 <comment>The Contribution Page which triggered this contribution
</comment>
85 <name>contribution_page_id
</name>
86 <table>civicrm_contribution_page
</table>
88 <onDelete>SET NULL
</onDelete>
92 <uniqueName>pledge_amount
</uniqueName>
93 <title>Total Pledged
</title>
95 <required>true
</required>
97 <comment>Total pledged amount.
</comment>
104 <name>original_installment_amount
</name>
105 <uniqueName>pledge_original_installment_amount
</uniqueName>
106 <title>Original Installment Amount
</title>
108 <required>true
</required>
109 <comment>Original amount for each of the installments.
</comment>
116 <name>currency
</name>
118 <title>Pledge Currency
</title>
120 <default>NULL
</default>
121 <comment>3 character string, value from config setting or input via user.
</comment>
124 <table>civicrm_currency
</table>
125 <keyColumn>name
</keyColumn>
126 <labelColumn>full_name
</labelColumn>
127 <nameColumn>numeric_code
</nameColumn>
134 <name>frequency_unit
</name>
135 <uniqueName>pledge_frequency_unit
</uniqueName>
136 <title>Pledge Frequency Unit
</title>
139 <default>'month'
</default>
140 <comment>Time units for recurrence of pledge payments.
</comment>
142 <optionGroupName>recur_frequency_units
</optionGroupName>
143 <keyColumn>name
</keyColumn>
151 <name>frequency_interval
</name>
152 <uniqueName>pledge_frequency_interval
</uniqueName>
153 <title>Pledge Frequency Interval
</title>
154 <type>int unsigned
</type>
155 <required>true
</required>
157 <comment>Number of time units for recurrence of pledge payments.
</comment>
164 <name>frequency_day
</name>
165 <type>int unsigned
</type>
166 <title>Pledge day
</title>
168 <required>true
</required>
169 <comment>Day in the period when the pledge payment is due e.g.
1st of month,
15th etc. Use this to set the scheduled dates for pledge payments.
</comment>
176 <name>installments
</name>
177 <type>int unsigned
</type>
178 <title>Pledge Number of Installments
</title>
180 <comment>Total number of payments to be made.
</comment>
187 <name>start_date
</name>
188 <type>datetime
</type>
189 <title>Pledge Start Date
</title>
190 <required>true
</required>
191 <comment>The date the first scheduled pledge occurs.
</comment>
194 <type>Select Date
</type>
198 <name>create_date
</name>
199 <type>datetime
</type>
200 <uniqueName>pledge_create_date
</uniqueName>
201 <title>Pledge Made
</title>
202 <required>true
</required>
203 <import>true
</import>
204 <comment>When this pledge record was created.
</comment>
207 <type>Select Date
</type>
211 <name>acknowledge_date
</name>
212 <type>datetime
</type>
213 <title>Pledge Acknowledged
</title>
214 <comment>When a pledge acknowledgement message was sent to the contributor.
</comment>
217 <type>Select Date
</type>
221 <name>modified_date
</name>
222 <type>datetime
</type>
223 <title>Pledge Modified Date
</title>
224 <comment>Last updated date for this pledge record.
</comment>
228 <name>cancel_date
</name>
229 <type>datetime
</type>
230 <title>Pledge Cancelled Date
</title>
231 <comment>Date this pledge was cancelled by contributor.
</comment>
234 <type>Select Date
</type>
238 <name>end_date
</name>
239 <type>datetime
</type>
240 <title>Pledge End Date
</title>
241 <comment>Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).
</comment>
244 <type>Select Date
</type>
248 <name>max_reminders
</name>
249 <title>Maximum Number of Reminders
</title>
250 <type>int unsigned
</type>
252 <comment>The maximum number of payment reminders to send for any given payment.
</comment>
259 <name>initial_reminder_day
</name>
260 <title>Initial Reminder Day
</title>
261 <type>int unsigned
</type>
263 <comment>Send initial reminder this many days prior to the payment due date.
</comment>
270 <name>additional_reminder_day
</name>
271 <title>Additional Reminder Days
</title>
272 <type>int unsigned
</type>
274 <comment>Send additional reminder this many days after last one sent, up to maximum number of reminders.
</comment>
281 <name>status_id
</name>
282 <title>Pledge Status Id
</title>
283 <uniqueName>pledge_status_id
</uniqueName>
284 <import>true
</import>
285 <export>false
</export>
286 <type>int unsigned
</type>
287 <comment>Implicit foreign key to civicrm_option_values in the contribution_status option group.
</comment>
291 <name>index_status
</name>
292 <fieldName>status_id
</fieldName>
297 <uniqueName>pledge_is_test
</uniqueName>
298 <import>true
</import>
303 <type>CheckBox
</type>
307 <name>campaign_id
</name>
308 <uniqueName>pledge_campaign_id
</uniqueName>
309 <type>int unsigned
</type>
310 <title>Campaign
</title>
311 <import>true
</import>
312 <comment>The campaign for which this pledge has been initiated.
</comment>
314 <table>civicrm_campaign
</table>
315 <keyColumn>id
</keyColumn>
316 <labelColumn>title
</labelColumn>
324 <name>campaign_id
</name>
325 <table>civicrm_campaign
</table>
327 <onDelete>SET NULL
</onDelete>