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>
9 <component>CiviPledge
</component>
12 <uniqueName>pledge_id
</uniqueName>
13 <title>Pledge ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
16 <comment>Pledge ID
</comment>
22 <autoincrement>true
</autoincrement>
25 <name>contact_id
</name>
26 <uniqueName>pledge_contact_id
</uniqueName>
27 <title>Contact ID
</title>
29 <type>int unsigned
</type>
30 <required>true
</required>
31 <comment>Foreign key to civicrm_contact.id .
</comment>
34 <type>EntityRef
</type>
38 <name>contact_id
</name>
39 <table>civicrm_contact
</table>
42 <onDelete>CASCADE
</onDelete>
45 <name>financial_type_id
</name>
47 <uniqueName>pledge_financial_type_id
</uniqueName>
48 <type>int unsigned
</type>
49 <comment>FK to Financial Type
</comment>
51 <table>civicrm_financial_type
</table>
52 <keyColumn>id
</keyColumn>
53 <labelColumn>name
</labelColumn>
61 <name>financial_type_id
</name>
62 <table>civicrm_financial_type
</table>
67 <name>contribution_page_id
</name>
68 <uniqueName>pledge_contribution_page_id
</uniqueName>
69 <title>Pledge Contribution Page
</title>
70 <type>int unsigned
</type>
71 <comment>The Contribution Page which triggered this contribution
</comment>
75 <name>contribution_page_id
</name>
76 <table>civicrm_contribution_page
</table>
78 <onDelete>SET NULL
</onDelete>
82 <uniqueName>pledge_amount
</uniqueName>
83 <title>Total Pledged
</title>
85 <required>true
</required>
87 <comment>Total pledged amount.
</comment>
94 <name>original_installment_amount
</name>
95 <uniqueName>pledge_original_installment_amount
</uniqueName>
96 <title>Original Installment Amount
</title>
98 <required>true
</required>
99 <comment>Original amount for each of the installments.
</comment>
104 <export>true
</export>
107 <name>currency
</name>
109 <title>Pledge Currency
</title>
111 <default>NULL
</default>
112 <comment>3 character string, value from config setting or input via user.
</comment>
115 <table>civicrm_currency
</table>
116 <keyColumn>name
</keyColumn>
117 <labelColumn>full_name
</labelColumn>
118 <nameColumn>name
</nameColumn>
119 <abbrColumn>symbol
</abbrColumn>
126 <name>frequency_unit
</name>
127 <uniqueName>pledge_frequency_unit
</uniqueName>
128 <title>Pledge Frequency Unit
</title>
131 <default>'month'
</default>
132 <comment>Time units for recurrence of pledge payments.
</comment>
134 <optionGroupName>recur_frequency_units
</optionGroupName>
135 <keyColumn>name
</keyColumn>
143 <name>frequency_interval
</name>
144 <uniqueName>pledge_frequency_interval
</uniqueName>
145 <title>Pledge Frequency Interval
</title>
146 <type>int unsigned
</type>
147 <required>true
</required>
149 <comment>Number of time units for recurrence of pledge payments.
</comment>
156 <name>frequency_day
</name>
157 <type>int unsigned
</type>
158 <title>Pledge day
</title>
160 <required>true
</required>
161 <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>
168 <name>installments
</name>
169 <type>int unsigned
</type>
170 <title>Pledge Number of Installments
</title>
172 <comment>Total number of payments to be made.
</comment>
177 <export>true
</export>
180 <name>start_date
</name>
181 <type>datetime
</type>
182 <title>Pledge Start Date
</title>
183 <required>true
</required>
184 <export>true
</export>
185 <comment>The date the first scheduled pledge occurs.
</comment>
188 <type>Select Date
</type>
189 <formatType>activityDate
</formatType>
191 <uniqueName>pledge_start_date
</uniqueName>
192 <uniqueTitle>Payments Start Date
</uniqueTitle>
195 <name>create_date
</name>
196 <type>datetime
</type>
197 <uniqueName>pledge_create_date
</uniqueName>
198 <title>Pledge Made
</title>
199 <required>true
</required>
200 <import>true
</import>
201 <export>true
</export>
202 <comment>When this pledge record was created.
</comment>
205 <type>Select Date
</type>
206 <formatType>activityDate
</formatType>
210 <name>acknowledge_date
</name>
211 <type>datetime
</type>
212 <title>Pledge Acknowledged
</title>
213 <comment>When a pledge acknowledgement message was sent to the contributor.
</comment>
216 <type>Select Date
</type>
217 <formatType>activityDate
</formatType>
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>
235 <formatType>activityDate
</formatType>
239 <name>end_date
</name>
240 <type>datetime
</type>
241 <title>Pledge End Date
</title>
242 <export>true
</export>
243 <comment>Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).
</comment>
246 <type>Select Date
</type>
247 <formatType>activityDate
</formatType>
249 <uniqueName>pledge_end_date
</uniqueName>
250 <uniqueTitle>Payments Ended Date
</uniqueTitle>
253 <name>max_reminders
</name>
254 <title>Maximum Number of Reminders
</title>
255 <type>int unsigned
</type>
257 <comment>The maximum number of payment reminders to send for any given payment.
</comment>
264 <name>initial_reminder_day
</name>
265 <title>Initial Reminder Day
</title>
266 <type>int unsigned
</type>
268 <comment>Send initial reminder this many days prior to the payment due date.
</comment>
275 <name>additional_reminder_day
</name>
276 <title>Additional Reminder Days
</title>
277 <type>int unsigned
</type>
279 <comment>Send additional reminder this many days after last one sent, up to maximum number of reminders.
</comment>
286 <name>status_id
</name>
287 <title>Pledge Status Id
</title>
288 <uniqueName>pledge_status_id
</uniqueName>
289 <import>true
</import>
290 <export>false
</export>
291 <type>int unsigned
</type>
296 <optionGroupName>pledge_status
</optionGroupName>
298 <comment>Implicit foreign key to civicrm_option_values in the pledge_status option group.
</comment>
302 <name>index_status
</name>
303 <fieldName>status_id
</fieldName>
308 <uniqueName>pledge_is_test
</uniqueName>
309 <import>true
</import>
314 <type>CheckBox
</type>
318 <name>campaign_id
</name>
319 <uniqueName>pledge_campaign_id
</uniqueName>
320 <type>int unsigned
</type>
321 <title>Campaign
</title>
322 <import>true
</import>
323 <comment>The campaign for which this pledge has been initiated.
</comment>
325 <table>civicrm_campaign
</table>
326 <keyColumn>id
</keyColumn>
327 <labelColumn>title
</labelColumn>
335 <name>campaign_id
</name>
336 <table>civicrm_campaign
</table>
338 <onDelete>SET NULL
</onDelete>