1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contribute
</base>
5 <class>Contribution
</class>
6 <name>civicrm_contribution
</name>
9 <icon>fa-credit-card
</icon>
10 <component>CiviContribute
</component>
12 <add>civicrm/contribute/add?reset=
1&action=add
&context=standalone
</add>
13 <view>civicrm/contact/view/contribution?reset=
1&action=view
&id=[id]
</view>
14 <update>civicrm/contact/view/contribution?reset=
1&action=update
&id=[id]
</update>
15 <delete>civicrm/contact/view/contribution?reset=
1&action=delete
&id=[id]
</delete>
19 <uniqueName>contribution_id
</uniqueName>
20 <type>int unsigned
</type>
21 <required>true
</required>
23 <title>Contribution ID
</title>
24 <comment>Contribution ID
</comment>
32 <autoincrement>true
</autoincrement>
35 <name>contact_id
</name>
36 <uniqueName>contribution_contact_id
</uniqueName>
37 <title>Contact ID
</title>
38 <type>int unsigned
</type>
39 <required>true
</required>
41 <headerPattern>/contact(.?id)?/i
</headerPattern>
42 <dataPattern>/^\d+$/
</dataPattern>
43 <comment>FK to Contact ID
</comment>
45 <type>EntityRef
</type>
50 <name>contact_id
</name>
51 <table>civicrm_contact
</table>
54 <onDelete>CASCADE
</onDelete>
57 <name>financial_type_id
</name>
58 <title>Financial Type ID
</title>
59 <type>int unsigned
</type>
60 <comment>FK to Financial Type for (total_amount - non_deductible_amount).
</comment>
62 <table>civicrm_financial_type
</table>
63 <keyColumn>id
</keyColumn>
64 <labelColumn>name
</labelColumn>
69 <label>Financial Type
</label>
74 <name>financial_type_id
</name>
75 <table>civicrm_financial_type
</table>
80 <name>contribution_page_id
</name>
81 <title>Contribution Page ID
</title>
82 <type>int unsigned
</type>
84 <comment>The Contribution Page which triggered this contribution
</comment>
86 <table>civicrm_contribution_page
</table>
87 <keyColumn>id
</keyColumn>
88 <labelColumn>title
</labelColumn>
92 <label>Contribution Page
</label>
97 <name>contribution_page_id
</name>
98 <table>civicrm_contribution_page
</table>
100 <onDelete>SET NULL
</onDelete>
103 <name>payment_instrument_id
</name>
104 <uniqueName>payment_instrument_id
</uniqueName>
105 <title>Payment Method ID
</title>
106 <type>int unsigned
</type>
107 <comment>FK to Payment Instrument
</comment>
108 <export>true
</export>
109 <headerPattern>/^payment|(p(ayment\s)?instrument)$/i
</headerPattern>
111 <optionGroupName>payment_instrument
</optionGroupName>
119 <name>UI_contrib_payment_instrument_id
</name>
120 <fieldName>payment_instrument_id
</fieldName>
124 <name>receive_date
</name>
125 <title>Date Received
</title>
126 <type>datetime
</type>
127 <import>true
</import>
128 <headerPattern>/receive(.?date)?/i
</headerPattern>
129 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
130 <comment>Date contribution was received - not necessarily the creation date of the record
</comment>
133 <type>Select Date
</type>
134 <formatType>activityDateTime
</formatType>
138 <name>non_deductible_amount
</name>
139 <title>Non-deductible Amount
</title>
142 <import>true
</import>
143 <headerPattern>/non?.?deduct/i
</headerPattern>
144 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
145 <comment>Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
</comment>
152 <name>total_amount
</name>
154 <required>true
</required>
155 <import>true
</import>
156 <headerPattern>/^total|(.?^am(ou)?nt)/i
</headerPattern>
157 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
158 <comment>Total amount of this contribution. Use market value for non-monetary gifts.
</comment>
165 <name>index_total_amount_receive_date
</name>
166 <fieldName>total_amount
</fieldName>
167 <fieldName>receive_date
</fieldName>
171 <name>fee_amount
</name>
173 <import>true
</import>
174 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
175 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
176 <comment>actual processor fee if known - may be
0.
</comment>
183 <name>net_amount
</name>
185 <import>true
</import>
186 <headerPattern>/net(.?am(ou)?nt)?/i
</headerPattern>
187 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
188 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
196 <title>Transaction ID
</title>
199 <import>true
</import>
200 <headerPattern>/tr(ansactio|x)n(.?id)?/i
</headerPattern>
201 <comment>unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
</comment>
208 <name>invoice_id
</name>
209 <title>Invoice Reference
</title>
212 <import>true
</import>
213 <headerPattern>/invoice(.?id)?/i
</headerPattern>
214 <comment>unique invoice id, system generated or passed in
</comment>
221 <name>invoice_number
</name>
222 <title>Invoice Number
</title>
225 <import>true
</import>
226 <headerPattern>/invoice(.?number)?/i
</headerPattern>
227 <comment>Human readable invoice number
</comment>
234 <name>currency
</name>
237 <default>NULL
</default>
238 <import>true
</import>
239 <headerPattern>/cur(rency)?/i
</headerPattern>
240 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
241 <comment>3 character string, value from config setting or input via user.
</comment>
244 <table>civicrm_currency
</table>
245 <keyColumn>name
</keyColumn>
246 <labelColumn>full_name
</labelColumn>
247 <nameColumn>name
</nameColumn>
248 <abbrColumn>symbol
</abbrColumn>
255 <name>cancel_date
</name>
256 <title>Cancelled / Refunded Date
</title>
257 <type>datetime
</type>
258 <import>true
</import>
259 <headerPattern>/cancel(.?date)?/i
</headerPattern>
260 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
261 <comment>when was gift cancelled
</comment>
264 <type>Select Date
</type>
265 <formatType>activityDateTime
</formatType>
267 <uniqueName>contribution_cancel_date
</uniqueName>
270 <name>cancel_reason
</name>
272 <title>Cancellation / Refund Reason
</title>
273 <import>true
</import>
274 <export>true
</export>
275 <headerPattern>/(cancel.?)?reason/i
</headerPattern>
283 <name>receipt_date
</name>
284 <type>datetime
</type>
285 <import>true
</import>
286 <headerPattern>/receipt(.?date)?/i
</headerPattern>
287 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
288 <comment>when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
</comment>
290 <type>Select Date
</type>
291 <formatType>activityDateTime
</formatType>
296 <name>thankyou_date
</name>
297 <title>Thank-you Date
</title>
298 <type>datetime
</type>
299 <import>true
</import>
300 <headerPattern>/thank(s|(.?you))?(.?date)?/i
</headerPattern>
301 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
302 <comment>when (if) was donor thanked
</comment>
305 <type>Select Date
</type>
306 <formatType>activityDateTime
</formatType>
311 <uniqueName>contribution_source
</uniqueName>
312 <title>Contribution Source
</title>
315 <import>true
</import>
316 <headerPattern>/source/i
</headerPattern>
317 <comment>Origin of this Contribution.
</comment>
324 <name>index_source
</name>
325 <fieldName>source
</fieldName>
329 <name>amount_level
</name>
330 <title>Amount Label
</title>
332 <import>true
</import>
339 <name>UI_contrib_trxn_id
</name>
340 <fieldName>trxn_id
</fieldName>
341 <unique>true
</unique>
345 <name>UI_contrib_invoice_id
</name>
346 <fieldName>invoice_id
</fieldName>
347 <unique>true
</unique>
351 <name>contribution_recur_id
</name>
352 <title>Recurring Contribution ID
</title>
353 <type>int unsigned
</type>
354 <comment>Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.
</comment>
355 <export>true
</export>
359 <name>contribution_recur_id
</name>
360 <table>civicrm_contribution_recur
</table>
363 <onDelete>SET NULL
</onDelete>
370 <import>true
</import>
372 <type>CheckBox
</type>
376 <name>is_pay_later
</name>
377 <title>Is Pay Later
</title>
380 <import>true
</import>
383 <type>CheckBox
</type>
387 <name>contribution_status_id
</name>
388 <title>Contribution Status ID
</title>
389 <type>int unsigned
</type>
391 <import>true
</import>
392 <export>true
</export>
393 <headerPattern>/status/i
</headerPattern>
395 <optionGroupName>contribution_status
</optionGroupName>
403 <name>index_contribution_status
</name>
404 <fieldName>contribution_status_id
</fieldName>
408 <name>received_date
</name>
409 <fieldName>receive_date
</fieldName>
413 <name>address_id
</name>
414 <uniqueName>contribution_address_id
</uniqueName>
415 <title>Contribution Address
</title>
416 <type>int unsigned
</type>
417 <comment>Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.
</comment>
419 <export>true
</export>
422 <name>address_id
</name>
423 <table>civicrm_address
</table>
426 <onDelete>SET NULL
</onDelete>
429 <name>check_number
</name>
430 <title>Check Number
</title>
431 <uniqueName>contribution_check_number
</uniqueName>
432 <headerPattern>/check(.?number)?/i
</headerPattern>
439 <import>true
</import>
443 <name>check_number
</name>
444 <fieldName>check_number
</fieldName>
448 <name>campaign_id
</name>
449 <uniqueName>contribution_campaign_id
</uniqueName>
450 <type>int unsigned
</type>
451 <title>Campaign
</title>
452 <import>true
</import>
453 <comment>The campaign for which this contribution has been triggered.
</comment>
460 <name>creditnote_id
</name>
461 <title>Credit Note ID
</title>
464 <import>true
</import>
465 <headerPattern>/creditnote(.?id)?/i
</headerPattern>
466 <comment>unique credit note id, system generated or passed in
</comment>
473 <name>index_creditnote_id
</name>
474 <fieldName>creditnote_id
</fieldName>
478 <name>tax_amount
</name>
479 <title>Tax Amount
</title>
481 <import>true
</import>
482 <headerPattern>/tax(.?am(ou)?nt)?/i
</headerPattern>
483 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
484 <comment>Total tax amount of this contribution.
</comment>
491 <name>campaign_id
</name>
492 <table>civicrm_campaign
</table>
494 <onDelete>SET NULL
</onDelete>
497 <name>revenue_recognition_date
</name>
498 <type>datetime
</type>
499 <import>true
</import>
500 <headerPattern>/revenue(.?date)?/i
</headerPattern>
501 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
502 <comment>Stores the date when revenue should be recognized.
</comment>
504 <type>Select Date
</type>
505 <formatType>activityDateTime
</formatType>
510 <name>is_template
</name>
511 <title>Is a Template Contribution
</title>
514 <import>true
</import>
515 <comment>Shows this is a template for recurring contributions.
</comment>
517 <type>CheckBox
</type>