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">
73 <strong>{ts}This is a TEST transaction{/ts}</strong>
77 <td class="label">{ts}From{/ts}</td>
78 <td class="bold"><a href="{crmURL p='civicrm/contact/view' q="cid=$contact_id"}">{$displayName}</a></td>
81 <td class="label">{ts}Financial Type{/ts}</td>
82 <td>{$financial_type}{if $is_test} {ts}(test){/ts} {/if}</td>
84 {if $displayLineItems}
86 <td class="label">{ts}Contribution Amount{/ts}</td>
87 <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
88 {if $contribution_recur_id}
89 <strong>{ts}Recurring Contribution{/ts}</strong>
91 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
97 <td class="label">{ts}Total Amount{/ts}</td>
98 <td><strong>{$total_amount|crmMoney:$currency}</strong>
99 {if $contribution_recur_id}
100 <a class="crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contact_id`&context=contribution"}'>
101 <strong>{ts}Recurring Contribution{/ts}</strong>
104 {ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
109 {if $invoicing && $tax_amount}
111 <td class="label">{ts 1=$taxTerm}Total %1 Amount{/ts}</td>
112 <td>{$tax_amount|crmMoney:$currency}</td>
115 {if $non_deductible_amount}
117 <td class="label">{ts}Non-deductible Amount{/ts}</td>
118 <td>{$non_deductible_amount|crmMoney:$currency}</td>
123 <td class="label">{ts}Fee Amount{/ts}</td>
124 <td>{$fee_amount|crmMoney:$currency}</td>
129 <td class="label">{ts}Net Amount{/ts}</td>
130 <td>{$net_amount|crmMoney:$currency}</td>
133 {if $isDeferred AND $revenue_recognition_date}
135 <td class="label">{ts}Revenue Recognition Date{/ts}</td>
136 <td>{$revenue_recognition_date|crmDate:"%B, %Y"}</td>
140 <td class="label">{ts}Received{/ts}</td>
141 <td>{if $receive_date}{$receive_date|crmDate}{else}({ts}not available{/ts}){/if}</td>
143 {if $to_financial_account }
145 <td class="label">{ts}Received Into{/ts}</td>
146 <td>{$to_financial_account}</td>
150 <td class="label">{ts}Contribution Status{/ts}</td>
151 <td {if $contribution_status_id eq 3} class="font-red bold"{/if}>{$contribution_status}
152 {if $contribution_status_id eq 2} {if $is_pay_later}: {ts}Pay Later{/ts} {else} : {ts}Incomplete Transaction{/ts} {/if}{/if}</td>
157 <td class="label">{ts}Cancelled / Refunded Date{/ts}</td>
158 <td>{$cancel_date|crmDate}</td>
162 <td class="label">{ts}Cancellation / Refund Reason{/ts}</td>
163 <td>{$cancel_reason}</td>
168 <td class="label">{ts}Refund Transaction ID{/ts}</td>
169 <td>{$refund_trxn_id}</td>
174 <td class="label">{ts}Payment Method{/ts}</td>
175 <td>{$payment_instrument}{if $payment_processor_name} ({$payment_processor_name}){/if}</td>
178 {if $payment_instrument eq 'Check'|ts}
180 <td class="label">{ts}Check Number{/ts}</td>
181 <td>{$check_number}</td>
185 <td class="label">{ts}Source{/ts}</td>
191 <td class="label">{ts}Campaign{/ts}</td>
196 {if $contribution_page_title}
198 <td class="label">{ts}Online Contribution Page{/ts}</td>
199 <td>{$contribution_page_title}</td>
204 <td class="label">{ts}Receipt Sent{/ts}</td>
205 <td>{$receipt_date|crmDate}</td>
208 {foreach from=$note item="rec"}
211 <td class="label">{ts}Note{/ts}</td>
219 <td class="label">{ts}Transaction ID{/ts}</td>
226 <td class="label">{ts}Invoice Number{/ts}</td>
227 <td>{$invoice_number} </td>
233 <td class="label">{ts}Invoice Reference{/ts}</td>
234 <td>{$invoice_id} </td>
240 <td class="label">{ts}Thank-you Sent{/ts}</td>
241 <td>{$thankyou_date|crmDate}</td>
245 <td class="label">{ts}Payment Details{/ts}</td>
246 <td>{include file="CRM/Contribute/Form/PaymentInfoBlock.tpl"}</td>
248 {if $addRecordPayment}
250 <td class='label'>{ts}Payment Summary{/ts}</td>
251 <td id='payment-info'></td>
256 {if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
257 <div class="crm-accordion-wrapper crm-soft-credit-pane">
258 <div class="crm-accordion-header">
261 <div class="crm-accordion-body">
262 <table class="crm-info-panel crm-soft-credit-listing">
263 {foreach from=$softContributions item="softCont"}
266 <a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
267 title="{ts}View contact record{/ts}">{$softCont.contact_name}
270 <td>{$softCont.amount|crmMoney:$currency}
271 {if $softCont.soft_credit_type_label}
272 ({$softCont.soft_credit_type_label})
283 <div class="crm-accordion-wrapper ">
284 <div class="crm-accordion-header">
285 {ts}Premium Information{/ts}
287 <div class="crm-accordion-body">
288 <table class="crm-info-panel">
289 <td class="label">{ts}Premium{/ts}</td>
291 <td class="label">{ts}Option{/ts}</td>
293 <td class="label">{ts}Fulfilled{/ts}</td>
294 <td>{$fulfilled|truncate:10:''|crmDate}</td>
301 <div id='PCPView' class="crm-accordion-wrapper ">
302 <div class="crm-accordion-header">
303 {ts}Personal Campaign Page Contribution Information{/ts}
305 <div class="crm-accordion-body">
306 <table class="crm-info-panel">
308 <td class="label">{ts}Personal Campaign Page{/ts}</td>
309 <td><a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcp_id`"}">{$pcp_title}</a><br/>
310 <span class="description">{ts}Contribution was made through this personal campaign page.{/ts}</span>
314 <td class="label">{ts}Soft Credit To{/ts}</td>
315 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$pcp_soft_credit_to_id`"}" id="view_contact"
316 title="{ts}View contact record{/ts}">{$pcp_soft_credit_to_name}</a></td>
319 <td class="label">{ts}In Public Honor Roll?{/ts}</td>
320 <td>{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td>
322 {if $pcp_roll_nickname}
324 <td class="label">{ts}Honor Roll Name{/ts}</td>
325 <td>{$pcp_roll_nickname}</td>
328 {if $pcp_personal_note}
330 <td class="label">{ts}Personal Note{/ts}</td>
331 <td>{$pcp_personal_note}</td>
339 {include file="CRM/Custom/Page/CustomDataView.tpl"}
341 {if $billing_address}
343 <legend>{ts}Billing Address{/ts}</legend>
344 <div class="form-item">
345 {$billing_address|nl2br}
349 {if $addRecordPayment}
350 {include file="CRM/Contribute/Page/PaymentInfo.tpl" show='payments'}
353 <div class="crm-submit-buttons">
354 {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) ||
355 (call_user_func(array('CRM_Core_Permission','check'), 'edit contributions') && $noACL)}
356 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context"}
357 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
358 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=update&context=$context&key=$searchKey"}
360 <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>
361 {if $paymentButtonName}
362 <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>
365 {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)}
366 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context"}
367 {if ( $context eq 'fulltext' || $context eq 'search' ) && $searchKey}
368 {assign var='urlParams' value="reset=1&id=$id&cid=$contact_id&action=delete&context=$context&key=$searchKey"}
370 <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>
372 {include file="CRM/common/formButtons.tpl" location="bottom"}
375 {crmScript file='js/crm.expandRow.js'}