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>EntityRef
</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>
66 <table>civicrm_financial_type
</table>
67 <keyColumn>id
</keyColumn>
68 <labelColumn>name
</labelColumn>
76 <name>financial_type_id
</name>
77 <table>civicrm_financial_type
</table>
82 <name>contribution_page_id
</name>
83 <uniqueName>pledge_contribution_page_id
</uniqueName>
84 <title>Pledge Contribution Page
</title>
85 <type>int unsigned
</type>
86 <comment>The Contribution Page which triggered this contribution
</comment>
90 <name>contribution_page_id
</name>
91 <table>civicrm_contribution_page
</table>
93 <onDelete>SET NULL
</onDelete>
97 <uniqueName>pledge_amount
</uniqueName>
98 <title>Total Pledged
</title>
100 <required>true
</required>
101 <import>true
</import>
102 <comment>Total pledged amount.
</comment>
109 <name>original_installment_amount
</name>
110 <uniqueName>pledge_original_installment_amount
</uniqueName>
111 <title>Original Installment Amount
</title>
113 <required>true
</required>
114 <comment>Original amount for each of the installments.
</comment>
119 <export>true
</export>
122 <name>currency
</name>
124 <title>Pledge Currency
</title>
126 <default>NULL
</default>
127 <comment>3 character string, value from config setting or input via user.
</comment>
130 <table>civicrm_currency
</table>
131 <keyColumn>name
</keyColumn>
132 <labelColumn>full_name
</labelColumn>
133 <nameColumn>name
</nameColumn>
140 <name>frequency_unit
</name>
141 <uniqueName>pledge_frequency_unit
</uniqueName>
142 <title>Pledge Frequency Unit
</title>
145 <default>'month'
</default>
146 <comment>Time units for recurrence of pledge payments.
</comment>
148 <optionGroupName>recur_frequency_units
</optionGroupName>
149 <keyColumn>name
</keyColumn>
157 <name>frequency_interval
</name>
158 <uniqueName>pledge_frequency_interval
</uniqueName>
159 <title>Pledge Frequency Interval
</title>
160 <type>int unsigned
</type>
161 <required>true
</required>
163 <comment>Number of time units for recurrence of pledge payments.
</comment>
170 <name>frequency_day
</name>
171 <type>int unsigned
</type>
172 <title>Pledge day
</title>
174 <required>true
</required>
175 <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>
182 <name>installments
</name>
183 <type>int unsigned
</type>
184 <title>Pledge Number of Installments
</title>
186 <comment>Total number of payments to be made.
</comment>
191 <export>true
</export>
194 <name>start_date
</name>
195 <type>datetime
</type>
196 <title>Pledge Start Date
</title>
197 <required>true
</required>
198 <comment>The date the first scheduled pledge occurs.
</comment>
201 <type>Select Date
</type>
205 <name>create_date
</name>
206 <type>datetime
</type>
207 <uniqueName>pledge_create_date
</uniqueName>
208 <title>Pledge Made
</title>
209 <required>true
</required>
210 <import>true
</import>
211 <comment>When this pledge record was created.
</comment>
214 <type>Select Date
</type>
218 <name>acknowledge_date
</name>
219 <type>datetime
</type>
220 <title>Pledge Acknowledged
</title>
221 <comment>When a pledge acknowledgement message was sent to the contributor.
</comment>
224 <type>Select Date
</type>
228 <name>modified_date
</name>
229 <type>datetime
</type>
230 <title>Pledge Modified Date
</title>
231 <comment>Last updated date for this pledge record.
</comment>
235 <name>cancel_date
</name>
236 <type>datetime
</type>
237 <title>Pledge Cancelled Date
</title>
238 <comment>Date this pledge was cancelled by contributor.
</comment>
241 <type>Select Date
</type>
245 <name>end_date
</name>
246 <type>datetime
</type>
247 <title>Pledge End Date
</title>
248 <comment>Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).
</comment>
251 <type>Select Date
</type>
255 <name>max_reminders
</name>
256 <title>Maximum Number of Reminders
</title>
257 <type>int unsigned
</type>
259 <comment>The maximum number of payment reminders to send for any given payment.
</comment>
266 <name>initial_reminder_day
</name>
267 <title>Initial Reminder Day
</title>
268 <type>int unsigned
</type>
270 <comment>Send initial reminder this many days prior to the payment due date.
</comment>
277 <name>additional_reminder_day
</name>
278 <title>Additional Reminder Days
</title>
279 <type>int unsigned
</type>
281 <comment>Send additional reminder this many days after last one sent, up to maximum number of reminders.
</comment>
288 <name>status_id
</name>
289 <title>Pledge Status Id
</title>
290 <uniqueName>pledge_status_id
</uniqueName>
291 <import>true
</import>
292 <export>false
</export>
293 <type>int unsigned
</type>
295 <optionGroupName>pledge_status
</optionGroupName>
297 <comment>Implicit foreign key to civicrm_option_values in the pledge_status option group.
</comment>
301 <name>index_status
</name>
302 <fieldName>status_id
</fieldName>
307 <uniqueName>pledge_is_test
</uniqueName>
308 <import>true
</import>
313 <type>CheckBox
</type>
317 <name>campaign_id
</name>
318 <uniqueName>pledge_campaign_id
</uniqueName>
319 <type>int unsigned
</type>
320 <title>Campaign
</title>
321 <import>true
</import>
322 <comment>The campaign for which this pledge has been initiated.
</comment>
324 <table>civicrm_campaign
</table>
325 <keyColumn>id
</keyColumn>
326 <labelColumn>title
</labelColumn>
334 <name>campaign_id
</name>
335 <table>civicrm_campaign
</table>
337 <onDelete>SET NULL
</onDelete>