2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
26 <div class="crm-block crm-content-block crm-contribution-view-form-block">
27 <div class="action-link">
28 <div class="crm-submit-buttons">
29 {if (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && call_user_func(array('CRM_Core_Permission', 'check'), "edit contributions of type $financial_type") && $canEdit) ||
30 (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && $noACL)}
31 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
32 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
33 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
35 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span>
36 <i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span>
38 {if $paymentButtonName}
39 <a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$contact_id`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
42 {if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
43 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
44 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
45 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
47 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span>
48 <i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span>
51 {include file="CRM/common/formButtons.tpl" location="top"}
52 {assign var='pdfUrlParams' value="reset=1&id=$id&cid=$contact_id"}
53 {assign var='emailUrlParams' value="reset=1&id=$id&cid=$contact_id&select=email"}
55 <div class="css_right">
56 <a class="button no-popup" href="{crmURL p='civicrm/contribute/invoice' q=$pdfUrlParams}">
57 <i class="crm-i fa-print"></i>
58 {if $contribution_status != 'Refunded' && $contribution_status != 'Cancelled' }
59 {ts}Print Invoice{/ts}</a>
61 {ts}Print Invoice and Credit Note{/ts}</a>
63 <a class="button" href="{crmURL p='civicrm/contribute/invoice/email' q=$emailUrlParams}">
64 <i class="crm-i fa-paper-plane"></i>
65 {ts}Email Invoice{/ts}</a>
70 <table class="crm-info-panel">
72 <td class="label">{ts}From{/ts}</td>
73 <td class="bold"><a href="{crmURL p='civicrm/contact/view' q="cid=$contact_id"}">{$displayName}</a></td>
76 <td class="label">{ts}Financial Type{/ts}</td>
77 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
79 {if $displayLineItems}
81 <td class="label">{ts}Contribution Amount{/ts}</td>
82 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
83 {if $contribution_recur_id}
84 <strong>{ts}Recurring Contribution{/ts}</strong>
86 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
92 <td class="label">{ts}Total Amount{/ts}</td>
93 <td><strong>{$total_amount|crmMoney:$currency}</strong>
94 {if $contribution_recur_id}
95 <a class="crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contact_id`&context=contribution"}'>
96 <strong>{ts}Recurring Contribution{/ts}</strong>
99 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
104 {if $invoicing && $tax_amount}
106 <td class="label">{ts 1=$taxTerm}Total %1 Amount{/ts}</td>
107 <td>{$tax_amount|crmMoney:$currency}</td>
110 {if $non_deductible_amount}
112 <td class="label">{ts}Non-deductible Amount{/ts}</td>
113 <td>{$non_deductible_amount|crmMoney:$currency}</td>
118 <td class="label">{ts}Fee Amount{/ts}</td>
119 <td>{$fee_amount|crmMoney:$currency}</td>
124 <td class="label">{ts}Net Amount{/ts}</td>
125 <td>{$net_amount|crmMoney:$currency}</td>
128 {if $isDeferred AND $revenue_recognition_date}
130 <td class="label">{ts}Revenue Recognition Date{/ts}</td>
131 <td>{$revenue_recognition_date|crmDate:"%B, %Y"}</td>
135 <td class="label">{ts}Received{/ts}</td>
136 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
138 {if $to_financial_account }
140 <td class="label">{ts}Received Into{/ts}</td>
141 <td>{$to_financial_account}</td>
145 <td class="label">{ts}Contribution Status{/ts}</td>
146 <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
147 {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
152 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
153 <td>{$cancel_date|crmDate}</td>
157 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
158 <td>{$cancel_reason}</td>
163 <td class="label">{ts}Refund Transaction ID{/ts}</td>
164 <td>{$refund_trxn_id}</td>
169 <td class="label">{ts}Payment Method{/ts}</td>
170 <td>{$payment_instrument}{if $payment_processor_name} ({$payment_processor_name}){/if}</td>
173 {if $payment_instrument eq 'Check'|ts}
175 <td class="label">{ts}Check Number{/ts}</td>
176 <td>{$check_number}</td>
180 <td class="label">{ts}Source{/ts}</td>
186 <td class="label">{ts}Campaign{/ts}</td>
191 {if $contribution_page_title}
193 <td class="label">{ts}Online Contribution Page{/ts}</td>
194 <td>{$contribution_page_title}</td>
199 <td class="label">{ts}Receipt Sent{/ts}</td>
200 <td>{$receipt_date|crmDate}</td>
203 {foreach from=$note item="rec"}
206 <td class="label">{ts}Note{/ts}</td>
214 <td class="label">{ts}Transaction ID{/ts}</td>
221 <td class="label">{ts}Invoice Number{/ts}</td>
222 <td>{$invoice_number} </td>
228 <td class="label">{ts}Invoice Reference{/ts}</td>
229 <td>{$invoice_id} </td>
235 <td class="label">{ts}Thank-you Sent{/ts}</td>
236 <td>{$thankyou_date|crmDate}</td>
240 <td class="label">{ts}Payment Details{/ts}</td>
241 <td>{include file="CRM/Contribute/Form/PaymentInfoBlock.tpl"}</td>
243 {if $addRecordPayment}
245 <td class='label'>{ts}Payment Summary{/ts}</td>
246 <td id='payment-info'></td>
251 {if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
252 <div class="crm-accordion-wrapper crm-soft-credit-pane">
253 <div class="crm-accordion-header">
256 <div class="crm-accordion-body">
257 <table class="crm-info-panel crm-soft-credit-listing">
258 {foreach from=$softContributions item="softCont"}
261 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
262 title="{ts}View contact record{/ts}">{$softCont.contact_name}
265 <td>{$softCont.amount|crmMoney:$currency}
266 {if $softCont.soft_credit_type_label}
267 ({$softCont.soft_credit_type_label})
278 <div class="crm-accordion-wrapper ">
279 <div class="crm-accordion-header">
280 {ts}Premium Information{/ts}
282 <div class="crm-accordion-body">
283 <table class="crm-info-panel">
284 <td class="label">{ts}Premium{/ts}</td>
286 <td class="label">{ts}Option{/ts}</td>
288 <td class="label">{ts}Fulfilled{/ts}</td>
289 <td>{$fulfilled|truncate:10:''|crmDate}</td>
296 <div id='PCPView' class="crm-accordion-wrapper ">
297 <div class="crm-accordion-header">
298 {ts}Personal Campaign Page Contribution Information{/ts}
300 <div class="crm-accordion-body">
301 <table class="crm-info-panel">
303 <td class="label">{ts}Personal Campaign Page{/ts}</td>
304 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp_title}</a><br/>
305 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
309 <td class="label">{ts}Soft Credit To{/ts}</td>
310 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$pcp_soft_credit_to_id`"}" id="view_contact"
311 title="{ts}View contact record{/ts}">{$pcp_soft_credit_to_name}</a></td>
314 <td class="label">{ts}In Public Honor Roll?{/ts}</td>
315 <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
317 {if $pcp_roll_nickname}
319 <td class="label">{ts}Honor Roll Name{/ts}</td>
320 <td>{$pcp_roll_nickname}</td>
323 {if $pcp_personal_note}
325 <td class="label">{ts}Personal Note{/ts}</td>
326 <td>{$pcp_personal_note}</td>
334 {include file="CRM/Custom/Page/CustomDataView.tpl"}
336 {if $billing_address}
338 <legend>{ts}Billing Address{/ts}</legend>
339 <div class="form-item">
340 {$billing_address|nl2br}
344 {if $addRecordPayment}
345 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
348 <div class="crm-submit-buttons">
349 {if (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && call_user_func(array('CRM_Core_Permission', 'check'), "edit contributions of type $financial_type") && $canEdit) ||
350 (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && $noACL)}
351 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
352 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
353 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
355 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}" accesskey="e"><span><i class="crm-i fa-pencil"></i> {ts}Edit{/ts}</span></a>
356 {if $paymentButtonName}
357 <a class="button" href='{crmURL p="civicrm/payment" q="action=add&reset=1&component=`$component`&id=`$id`&cid=`$contact_id`"}'><i class="crm-i fa-plus-circle"></i> {ts}{$paymentButtonName}{/ts}</a>
360 {if (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && call_user_func(array('CRM_Core_Permission', 'check'), "delete contributions of type $financial_type") && $canDelete) || (call_user_func(array('CRM_Core_Permission','check'), 'delete in CiviContribute') && $noACL)}
361 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
362 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
363 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
365 <a class="button" href="{crmURL p='civicrm/contact/view/contribution' q=$urlParams}"><span><i class="crm-i fa-trash"></i> {ts}Delete{/ts}</span></a>
367 {include file="CRM/common/formButtons.tpl" location="bottom"}
370 {crmScript file='js/crm.expandRow.js'}