1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
3 <base>CRM/Pledge
</base>
5 <name>civicrm_pledge
</name>
8 <icon>fa-paper-plane
</icon>
11 <uniqueName>pledge_id
</uniqueName>
12 <title>Pledge ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Pledge ID
</comment>
21 <autoincrement>true
</autoincrement>
24 <name>contact_id
</name>
25 <uniqueName>pledge_contact_id
</uniqueName>
26 <title>Contact ID
</title>
28 <type>int unsigned
</type>
29 <required>true
</required>
30 <comment>Foreign key to civicrm_contact.id .
</comment>
33 <type>EntityRef
</type>
37 <name>contact_id
</name>
38 <table>civicrm_contact
</table>
41 <onDelete>CASCADE
</onDelete>
44 <name>contribution_type_id
</name>
45 <uniqueName>pledge_contribution_type_id
</uniqueName>
46 <export>false
</export>
47 <type>int unsigned
</type>
48 <comment>FK to Contribution Type. This is propagated to contribution record when pledge payments are made.
</comment>
53 <name>contribution_type_id
</name>
54 <table>civicrm_contribution_type
</table>
58 <onDelete>SET NULL
</onDelete>
61 <name>financial_type_id
</name>
63 <uniqueName>pledge_financial_type_id
</uniqueName>
64 <type>int unsigned
</type>
65 <comment>FK to Financial Type
</comment>
67 <table>civicrm_financial_type
</table>
68 <keyColumn>id
</keyColumn>
69 <labelColumn>name
</labelColumn>
77 <name>financial_type_id
</name>
78 <table>civicrm_financial_type
</table>
83 <name>contribution_page_id
</name>
84 <uniqueName>pledge_contribution_page_id
</uniqueName>
85 <title>Pledge Contribution Page
</title>
86 <type>int unsigned
</type>
87 <comment>The Contribution Page which triggered this contribution
</comment>
91 <name>contribution_page_id
</name>
92 <table>civicrm_contribution_page
</table>
94 <onDelete>SET NULL
</onDelete>
98 <uniqueName>pledge_amount
</uniqueName>
99 <title>Total Pledged
</title>
101 <required>true
</required>
102 <import>true
</import>
103 <comment>Total pledged amount.
</comment>
110 <name>original_installment_amount
</name>
111 <uniqueName>pledge_original_installment_amount
</uniqueName>
112 <title>Original Installment Amount
</title>
114 <required>true
</required>
115 <comment>Original amount for each of the installments.
</comment>
120 <export>true
</export>
123 <name>currency
</name>
125 <title>Pledge Currency
</title>
127 <default>NULL
</default>
128 <comment>3 character string, value from config setting or input via user.
</comment>
131 <table>civicrm_currency
</table>
132 <keyColumn>name
</keyColumn>
133 <labelColumn>full_name
</labelColumn>
134 <nameColumn>name
</nameColumn>
135 <abbrColumn>symbol
</abbrColumn>
142 <name>frequency_unit
</name>
143 <uniqueName>pledge_frequency_unit
</uniqueName>
144 <title>Pledge Frequency Unit
</title>
147 <default>'month'
</default>
148 <comment>Time units for recurrence of pledge payments.
</comment>
150 <optionGroupName>recur_frequency_units
</optionGroupName>
151 <keyColumn>name
</keyColumn>
159 <name>frequency_interval
</name>
160 <uniqueName>pledge_frequency_interval
</uniqueName>
161 <title>Pledge Frequency Interval
</title>
162 <type>int unsigned
</type>
163 <required>true
</required>
165 <comment>Number of time units for recurrence of pledge payments.
</comment>
172 <name>frequency_day
</name>
173 <type>int unsigned
</type>
174 <title>Pledge day
</title>
176 <required>true
</required>
177 <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>
184 <name>installments
</name>
185 <type>int unsigned
</type>
186 <title>Pledge Number of Installments
</title>
188 <comment>Total number of payments to be made.
</comment>
193 <export>true
</export>
196 <name>start_date
</name>
197 <type>datetime
</type>
198 <title>Pledge Start Date
</title>
199 <required>true
</required>
200 <export>true
</export>
201 <comment>The date the first scheduled pledge occurs.
</comment>
204 <type>Select Date
</type>
206 <uniqueName>pledge_start_date
</uniqueName>
207 <uniqueTitle>Payments Start Date
</uniqueTitle>
210 <name>create_date
</name>
211 <type>datetime
</type>
212 <uniqueName>pledge_create_date
</uniqueName>
213 <title>Pledge Made
</title>
214 <required>true
</required>
215 <import>true
</import>
216 <export>true
</export>
217 <comment>When this pledge record was created.
</comment>
220 <type>Select Date
</type>
224 <name>acknowledge_date
</name>
225 <type>datetime
</type>
226 <title>Pledge Acknowledged
</title>
227 <comment>When a pledge acknowledgement message was sent to the contributor.
</comment>
230 <type>Select Date
</type>
234 <name>modified_date
</name>
235 <type>datetime
</type>
236 <title>Pledge Modified Date
</title>
237 <comment>Last updated date for this pledge record.
</comment>
241 <name>cancel_date
</name>
242 <type>datetime
</type>
243 <title>Pledge Cancelled Date
</title>
244 <comment>Date this pledge was cancelled by contributor.
</comment>
247 <type>Select Date
</type>
251 <name>end_date
</name>
252 <type>datetime
</type>
253 <title>Pledge End Date
</title>
254 <export>true
</export>
255 <comment>Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).
</comment>
258 <type>Select Date
</type>
260 <uniqueName>pledge_end_date
</uniqueName>
261 <uniqueTitle>Payments Ended Date
</uniqueTitle>
264 <name>max_reminders
</name>
265 <title>Maximum Number of Reminders
</title>
266 <type>int unsigned
</type>
268 <comment>The maximum number of payment reminders to send for any given payment.
</comment>
275 <name>initial_reminder_day
</name>
276 <title>Initial Reminder Day
</title>
277 <type>int unsigned
</type>
279 <comment>Send initial reminder this many days prior to the payment due date.
</comment>
286 <name>additional_reminder_day
</name>
287 <title>Additional Reminder Days
</title>
288 <type>int unsigned
</type>
290 <comment>Send additional reminder this many days after last one sent, up to maximum number of reminders.
</comment>
297 <name>status_id
</name>
298 <title>Pledge Status Id
</title>
299 <uniqueName>pledge_status_id
</uniqueName>
300 <import>true
</import>
301 <export>false
</export>
302 <type>int unsigned
</type>
307 <optionGroupName>pledge_status
</optionGroupName>
309 <comment>Implicit foreign key to civicrm_option_values in the pledge_status option group.
</comment>
313 <name>index_status
</name>
314 <fieldName>status_id
</fieldName>
319 <uniqueName>pledge_is_test
</uniqueName>
320 <import>true
</import>
325 <type>CheckBox
</type>
329 <name>campaign_id
</name>
330 <uniqueName>pledge_campaign_id
</uniqueName>
331 <type>int unsigned
</type>
332 <title>Campaign
</title>
333 <import>true
</import>
334 <comment>The campaign for which this pledge has been initiated.
</comment>
336 <table>civicrm_campaign
</table>
337 <keyColumn>id
</keyColumn>
338 <labelColumn>title
</labelColumn>
346 <name>campaign_id
</name>
347 <table>civicrm_campaign
</table>
349 <onDelete>SET NULL
</onDelete>