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>
138 <values>day,week,month,year
</values>
139 <default>'month'
</default>
140 <comment>Time units for recurrence of pledge payments.
</comment>
147 <name>frequency_interval
</name>
148 <uniqueName>pledge_frequency_interval
</uniqueName>
149 <title>Pledge Frequency Interval
</title>
150 <type>int unsigned
</type>
151 <required>true
</required>
153 <comment>Number of time units for recurrence of pledge payments.
</comment>
160 <name>frequency_day
</name>
161 <type>int unsigned
</type>
162 <title>Pledge day
</title>
164 <required>true
</required>
165 <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>
172 <name>installments
</name>
173 <type>int unsigned
</type>
174 <title>Pledge Number of Installments
</title>
176 <comment>Total number of payments to be made.
</comment>
183 <name>start_date
</name>
184 <type>datetime
</type>
185 <title>Pledge Start Date
</title>
186 <required>true
</required>
187 <comment>The date the first scheduled pledge occurs.
</comment>
190 <type>Select Date
</type>
194 <name>create_date
</name>
195 <type>datetime
</type>
196 <uniqueName>pledge_create_date
</uniqueName>
197 <title>Pledge Made
</title>
198 <required>true
</required>
199 <import>true
</import>
200 <comment>When this pledge record was created.
</comment>
203 <type>Select Date
</type>
207 <name>acknowledge_date
</name>
208 <type>datetime
</type>
209 <title>Pledge Acknowledged
</title>
210 <comment>When a pledge acknowledgement message was sent to the contributor.
</comment>
213 <type>Select Date
</type>
217 <name>modified_date
</name>
218 <type>datetime
</type>
219 <title>Pledge Modified Date
</title>
220 <comment>Last updated date for this pledge record.
</comment>
224 <name>cancel_date
</name>
225 <type>datetime
</type>
226 <title>Pledge Cancelled Date
</title>
227 <comment>Date this pledge was cancelled by contributor.
</comment>
230 <type>Select Date
</type>
234 <name>end_date
</name>
235 <type>datetime
</type>
236 <title>Pledge End Date
</title>
237 <comment>Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).
</comment>
240 <type>Select Date
</type>
244 <name>honor_contact_id
</name>
245 <type>int unsigned
</type>
246 <title>Pledge Honor Contact
</title>
247 <comment>FK to contact ID. Used when pledge is made in honor of another contact. This is propagated to contribution records when pledge payments are made.
</comment>
250 <type>Autocomplete-Select
</type>
254 <name>honor_contact_id
</name>
255 <table>civicrm_contact
</table>
258 <onDelete>SET NULL
</onDelete>
261 <name>honor_type_id
</name>
262 <title>Honor Type
</title>
263 <type>int unsigned
</type>
264 <comment>Implicit FK to civicrm_option_value.
</comment>
266 <onDelete>SET NULL
</onDelete>
268 <optionGroupName>honor_type
</optionGroupName>
275 <name>max_reminders
</name>
276 <title>Maximum Number of Reminders
</title>
277 <type>int unsigned
</type>
279 <comment>The maximum number of payment reminders to send for any given payment.
</comment>
286 <name>initial_reminder_day
</name>
287 <title>Initial Reminder Day
</title>
288 <type>int unsigned
</type>
290 <comment>Send initial reminder this many days prior to the payment due date.
</comment>
297 <name>additional_reminder_day
</name>
298 <title>Additional Reminder Days
</title>
299 <type>int unsigned
</type>
301 <comment>Send additional reminder this many days after last one sent, up to maximum number of reminders.
</comment>
308 <name>status_id
</name>
309 <title>Pledge Status Id
</title>
310 <uniqueName>pledge_status_id
</uniqueName>
311 <import>true
</import>
312 <export>false
</export>
313 <type>int unsigned
</type>
314 <comment>Implicit foreign key to civicrm_option_values in the contribution_status option group.
</comment>
318 <name>index_status
</name>
319 <fieldName>status_id
</fieldName>
324 <uniqueName>pledge_is_test
</uniqueName>
325 <import>true
</import>
330 <type>CheckBox
</type>
334 <name>campaign_id
</name>
335 <uniqueName>pledge_campaign_id
</uniqueName>
336 <type>int unsigned
</type>
337 <title>Campaign ID
</title>
338 <import>true
</import>
339 <comment>The campaign for which this pledge has been initiated.
</comment>
346 <name>campaign_id
</name>
347 <table>civicrm_campaign
</table>
349 <onDelete>SET NULL
</onDelete>