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>
11 <add>civicrm/contribute/add?reset=
1&action=add
&context=standalone
</add>
12 <view>civicrm/contact/view/contribution?reset=
1&action=view
&id=[id]
</view>
13 <update>civicrm/contact/view/contribution?reset=
1&action=update
&id=[id]
</update>
14 <delete>civicrm/contact/view/contribution?reset=
1&action=delete
&id=[id]
</delete>
18 <uniqueName>contribution_id
</uniqueName>
19 <type>int unsigned
</type>
20 <required>true
</required>
22 <title>Contribution ID
</title>
23 <comment>Contribution ID
</comment>
31 <autoincrement>true
</autoincrement>
34 <name>contact_id
</name>
35 <uniqueName>contribution_contact_id
</uniqueName>
36 <title>Contact ID
</title>
37 <type>int unsigned
</type>
38 <required>true
</required>
40 <headerPattern>/contact(.?id)?/i
</headerPattern>
41 <dataPattern>/^\d+$/
</dataPattern>
42 <comment>FK to Contact ID
</comment>
44 <type>EntityRef
</type>
49 <name>contact_id
</name>
50 <table>civicrm_contact
</table>
53 <onDelete>CASCADE
</onDelete>
56 <name>financial_type_id
</name>
57 <title>Financial Type ID
</title>
58 <type>int unsigned
</type>
59 <comment>FK to Financial Type for (total_amount - non_deductible_amount).
</comment>
61 <table>civicrm_financial_type
</table>
62 <keyColumn>id
</keyColumn>
63 <labelColumn>name
</labelColumn>
68 <label>Financial Type
</label>
73 <name>financial_type_id
</name>
74 <table>civicrm_financial_type
</table>
79 <name>contribution_page_id
</name>
80 <title>Contribution Page ID
</title>
81 <type>int unsigned
</type>
83 <comment>The Contribution Page which triggered this contribution
</comment>
85 <table>civicrm_contribution_page
</table>
86 <keyColumn>id
</keyColumn>
87 <labelColumn>title
</labelColumn>
91 <label>Contribution Page
</label>
96 <name>contribution_page_id
</name>
97 <table>civicrm_contribution_page
</table>
99 <onDelete>SET NULL
</onDelete>
102 <name>payment_instrument_id
</name>
103 <uniqueName>payment_instrument_id
</uniqueName>
104 <title>Payment Method ID
</title>
105 <type>int unsigned
</type>
106 <comment>FK to Payment Instrument
</comment>
107 <export>true
</export>
108 <headerPattern>/^payment|(p(ayment\s)?instrument)$/i
</headerPattern>
110 <optionGroupName>payment_instrument
</optionGroupName>
118 <name>UI_contrib_payment_instrument_id
</name>
119 <fieldName>payment_instrument_id
</fieldName>
123 <name>receive_date
</name>
124 <title>Date Received
</title>
125 <type>datetime
</type>
126 <import>true
</import>
127 <headerPattern>/receive(.?date)?/i
</headerPattern>
128 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
129 <comment>Date contribution was received - not necessarily the creation date of the record
</comment>
132 <type>Select Date
</type>
133 <formatType>activityDateTime
</formatType>
137 <name>non_deductible_amount
</name>
138 <title>Non-deductible Amount
</title>
141 <import>true
</import>
142 <headerPattern>/non?.?deduct/i
</headerPattern>
143 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
144 <comment>Portion of total amount which is NOT tax deductible. Equal to total_amount for non-deductible financial types.
</comment>
151 <name>total_amount
</name>
153 <required>true
</required>
154 <import>true
</import>
155 <headerPattern>/^total|(.?^am(ou)?nt)/i
</headerPattern>
156 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
157 <comment>Total amount of this contribution. Use market value for non-monetary gifts.
</comment>
164 <name>index_total_amount_receive_date
</name>
165 <fieldName>total_amount
</fieldName>
166 <fieldName>receive_date
</fieldName>
170 <name>fee_amount
</name>
172 <import>true
</import>
173 <headerPattern>/fee(.?am(ou)?nt)?/i
</headerPattern>
174 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
175 <comment>actual processor fee if known - may be
0.
</comment>
182 <name>net_amount
</name>
184 <import>true
</import>
185 <headerPattern>/net(.?am(ou)?nt)?/i
</headerPattern>
186 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
187 <comment>actual funds transfer amount. total less fees. if processor does not report actual fee during transaction, this is set to total_amount.
</comment>
195 <title>Transaction ID
</title>
198 <import>true
</import>
199 <headerPattern>/tr(ansactio|x)n(.?id)?/i
</headerPattern>
200 <comment>unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method
</comment>
207 <name>invoice_id
</name>
208 <title>Invoice Reference
</title>
211 <import>true
</import>
212 <headerPattern>/invoice(.?id)?/i
</headerPattern>
213 <comment>unique invoice id, system generated or passed in
</comment>
220 <name>invoice_number
</name>
221 <title>Invoice Number
</title>
224 <import>true
</import>
225 <headerPattern>/invoice(.?number)?/i
</headerPattern>
226 <comment>Human readable invoice number
</comment>
233 <name>currency
</name>
236 <default>NULL
</default>
237 <import>true
</import>
238 <headerPattern>/cur(rency)?/i
</headerPattern>
239 <dataPattern>/^[A-Z]{
3}$/i
</dataPattern>
240 <comment>3 character string, value from config setting or input via user.
</comment>
243 <table>civicrm_currency
</table>
244 <keyColumn>name
</keyColumn>
245 <labelColumn>full_name
</labelColumn>
246 <nameColumn>name
</nameColumn>
247 <abbrColumn>symbol
</abbrColumn>
254 <name>cancel_date
</name>
255 <title>Cancelled / Refunded Date
</title>
256 <type>datetime
</type>
257 <import>true
</import>
258 <headerPattern>/cancel(.?date)?/i
</headerPattern>
259 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
260 <comment>when was gift cancelled
</comment>
263 <type>Select Date
</type>
264 <formatType>activityDateTime
</formatType>
266 <uniqueName>contribution_cancel_date
</uniqueName>
269 <name>cancel_reason
</name>
271 <title>Cancellation / Refund Reason
</title>
272 <import>true
</import>
273 <export>true
</export>
274 <headerPattern>/(cancel.?)?reason/i
</headerPattern>
282 <name>receipt_date
</name>
283 <type>datetime
</type>
284 <import>true
</import>
285 <headerPattern>/receipt(.?date)?/i
</headerPattern>
286 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
287 <comment>when (if) receipt was sent. populated automatically for online donations w/ automatic receipting
</comment>
289 <type>Select Date
</type>
290 <formatType>activityDateTime
</formatType>
295 <name>thankyou_date
</name>
296 <title>Thank-you Date
</title>
297 <type>datetime
</type>
298 <import>true
</import>
299 <headerPattern>/thank(s|(.?you))?(.?date)?/i
</headerPattern>
300 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
301 <comment>when (if) was donor thanked
</comment>
304 <type>Select Date
</type>
305 <formatType>activityDateTime
</formatType>
310 <uniqueName>contribution_source
</uniqueName>
311 <title>Contribution Source
</title>
314 <import>true
</import>
315 <headerPattern>/source/i
</headerPattern>
316 <comment>Origin of this Contribution.
</comment>
323 <name>index_source
</name>
324 <fieldName>source
</fieldName>
328 <name>amount_level
</name>
329 <title>Amount Label
</title>
331 <import>true
</import>
338 <name>UI_contrib_trxn_id
</name>
339 <fieldName>trxn_id
</fieldName>
340 <unique>true
</unique>
344 <name>UI_contrib_invoice_id
</name>
345 <fieldName>invoice_id
</fieldName>
346 <unique>true
</unique>
350 <name>contribution_recur_id
</name>
351 <title>Recurring Contribution ID
</title>
352 <type>int unsigned
</type>
353 <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>
354 <export>true
</export>
358 <name>contribution_recur_id
</name>
359 <table>civicrm_contribution_recur
</table>
362 <onDelete>SET NULL
</onDelete>
369 <import>true
</import>
371 <type>CheckBox
</type>
375 <name>is_pay_later
</name>
376 <title>Is Pay Later
</title>
379 <import>true
</import>
382 <type>CheckBox
</type>
386 <name>contribution_status_id
</name>
387 <title>Contribution Status ID
</title>
388 <type>int unsigned
</type>
390 <import>true
</import>
391 <export>true
</export>
392 <headerPattern>/status/i
</headerPattern>
394 <optionGroupName>contribution_status
</optionGroupName>
402 <name>index_contribution_status
</name>
403 <fieldName>contribution_status_id
</fieldName>
407 <name>received_date
</name>
408 <fieldName>receive_date
</fieldName>
412 <name>address_id
</name>
413 <uniqueName>contribution_address_id
</uniqueName>
414 <title>Contribution Address
</title>
415 <type>int unsigned
</type>
416 <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>
418 <export>true
</export>
421 <name>address_id
</name>
422 <table>civicrm_address
</table>
425 <onDelete>SET NULL
</onDelete>
428 <name>check_number
</name>
429 <title>Check Number
</title>
430 <uniqueName>contribution_check_number
</uniqueName>
431 <headerPattern>/check(.?number)?/i
</headerPattern>
438 <import>true
</import>
442 <name>check_number
</name>
443 <fieldName>check_number
</fieldName>
447 <name>campaign_id
</name>
448 <uniqueName>contribution_campaign_id
</uniqueName>
449 <type>int unsigned
</type>
450 <title>Campaign
</title>
451 <import>true
</import>
452 <comment>The campaign for which this contribution has been triggered.
</comment>
454 <table>civicrm_campaign
</table>
455 <keyColumn>id
</keyColumn>
456 <labelColumn>title
</labelColumn>
464 <name>creditnote_id
</name>
465 <title>Credit Note ID
</title>
468 <import>true
</import>
469 <headerPattern>/creditnote(.?id)?/i
</headerPattern>
470 <comment>unique credit note id, system generated or passed in
</comment>
477 <name>index_creditnote_id
</name>
478 <fieldName>creditnote_id
</fieldName>
482 <name>tax_amount
</name>
483 <title>Tax Amount
</title>
485 <import>true
</import>
486 <headerPattern>/tax(.?am(ou)?nt)?/i
</headerPattern>
487 <dataPattern>/^\d+(\.\d{
2})?$/
</dataPattern>
488 <comment>Total tax amount of this contribution.
</comment>
495 <name>campaign_id
</name>
496 <table>civicrm_campaign
</table>
498 <onDelete>SET NULL
</onDelete>
501 <name>revenue_recognition_date
</name>
502 <type>datetime
</type>
503 <import>true
</import>
504 <headerPattern>/revenue(.?date)?/i
</headerPattern>
505 <dataPattern>/^\d{
4}-?\d{
2}-?\d{
2} ?(\d{
2}:?\d{
2}:?(\d{
2})?)?$/
</dataPattern>
506 <comment>Stores the date when revenue should be recognized.
</comment>
508 <type>Select Date
</type>
509 <formatType>activityDateTime
</formatType>
514 <name>is_template
</name>
515 <title>Is a Template Contribution
</title>
518 <import>true
</import>
519 <comment>Shows this is a template for recurring contributions.
</comment>
521 <type>CheckBox
</type>