Merge pull request #24084 from michaelmcandrew/dev/core#3764
[civicrm-core.git] / xml / templates / message_templates / contribution_offline_receipt_text.tpl
CommitLineData
56658066
AH
1{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
2
ff708ff0 3{if !empty($formValues.receipt_text)}
6a488035 4{$formValues.receipt_text}
12ff7379 5{else}{ts}Below you will find a receipt for this contribution.{/ts}{/if}
6a488035
TO
6
7===========================================================
8{ts}Contribution Information{/ts}
9
10===========================================================
448a7f8c 11{ts}Contributor{/ts}: {contact.display_name}
6b892bd2
EM
12{if '{contribution.financial_type_id}'}
13{ts}Financial Type{/ts}: {contribution.financial_type_id:label}
a221e1e0 14{/if}
8193ed74 15{if $isShowLineItems}
6a488035
TO
16---------------------------------------------------------
17{capture assign=ts_item}{ts}Item{/ts}{/capture}
18{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
19{capture assign=ts_each}{ts}Each{/ts}{/capture}
8193ed74 20{if $isShowTax && '{contribution.tax_amount|raw}' !== '0.00'}
79d001a2
PB
21{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
22{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
23{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
24{/if}
6a488035 25{capture assign=ts_total}{ts}Total{/ts}{/capture}
8193ed74 26{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $isShowTax && '{contribution.tax_amount|raw}' !== '0.00'} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"}
6a488035 27----------------------------------------------------------
8193ed74
EM
28{foreach from=$lineItems item=line}
29{capture assign=ts_item}{$line.title}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $isShowTax && '{contribution.tax_amount|raw}' !== '0.00'}{$line.unit_price*$line.qty|crmMoney:'{contribution.currency}'|string_format:"%10s"} {if $line.tax_rate || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:'{contribution.currency}'|string_format:"%10s"}
6a488035
TO
30{/foreach}
31{/if}
32
79d001a2 33
8193ed74
EM
34{if $isShowTax && '{contribution.tax_amount|raw}' !== '0.00'}
35{ts}Amount before Tax{/ts} : {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
79d001a2 36{/if}
8193ed74
EM
37{foreach from=$taxRateBreakdown item=taxDetail key=taxRate}
38{if $taxRate == 0}{ts}No{/ts} {$taxTerm}{else}{$taxTerm} {$taxDetail.percentage}%{/if} : {$taxDetail.amount|crmMoney:'{contribution.currency}'}
79d001a2 39{/foreach}
79d001a2 40
6b892bd2
EM
41{if $isShowTax}
42{ts}Total Tax Amount{/ts} : {contribution.tax_amount}
79d001a2 43{/if}
6b892bd2
EM
44{ts}Total Amount{/ts} : {contribution.total_amount}
45{if '{contribution.receive_date}'}
e8e7dd76 46{ts}Date Received{/ts}: {contribution.receive_date|crmDate:"shortdate"}
6a488035 47{/if}
6b892bd2 48{if '{contribution.receipt_date}'}
e8e7dd76 49{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:"shortdate"}
6a488035 50{/if}
6b892bd2
EM
51{if '{contribution.payment_instrument_id}' and empty($formValues.hidden_CreditCard)}
52{ts}Paid By{/ts}: {contribution.payment_instrument_id:label}
53{if '{contribution.check_number}'}
54{ts}Check Number{/ts}: {contribution.check_number}
6a488035
TO
55{/if}
56{/if}
6b892bd2
EM
57{if '{contribution.trxn_id}'}
58{ts}Transaction ID{/ts}: {contribution.trxn_id}
6a488035
TO
59{/if}
60
ff708ff0 61{if !empty($ccContribution)}
6a488035
TO
62===========================================================
63{ts}Billing Name and Address{/ts}
64
65===========================================================
66{$billingName}
67{$address}
68
69===========================================================
70{ts}Credit Card Information{/ts}
71
72===========================================================
73{$credit_card_type}
74{$credit_card_number}
75{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
76{/if}
ff708ff0 77{if !empty($customGroup)}
6a488035
TO
78{foreach from=$customGroup item=value key=customName}
79===========================================================
80{$customName}
81===========================================================
82{foreach from=$value item=v key=n}
83{$n}: {$v}
84{/foreach}
85{/foreach}
86{/if}
6a488035 87
ff708ff0 88{if !empty($softCreditTypes) and !empty($softCredits)}
1421174e 89{foreach from=$softCreditTypes item=softCreditType key=n}
6a488035 90===========================================================
33a1c5c8 91{$softCreditType}
6a488035 92===========================================================
1421174e 93{foreach from=$softCredits.$n item=value key=label}
94{$label}: {$value}
95{/foreach}
96{/foreach}
6a488035
TO
97{/if}
98
ff708ff0 99{if !empty($formValues.product_name)}
6a488035
TO
100===========================================================
101{ts}Premium Information{/ts}
102
103===========================================================
104{$formValues.product_name}
105{if $formValues.product_option}
106{ts}Option{/ts}: {$formValues.product_option}
107{/if}
108{if $formValues.product_sku}
109{ts}SKU{/ts}: {$formValues.product_sku}
110{/if}
9fd20718 111{if !empty($fulfilled_date)}
6a488035
TO
112{ts}Sent{/ts}: {$fulfilled_date|crmDate}
113{/if}
114{/if}