VAT-572 Display Invoicing functionality based on admin globle setting under CiviContr...
[civicrm-core.git] / xml / templates / message_templates / contribution_offline_receipt_html.tpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title></title>
6 </head>
7 <body>
8
9 {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
10 {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
11 {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
12
13 <center>
14 <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
15
16 <!-- BEGIN HEADER -->
17 <!-- You can add table row(s) here with logo or other header elements -->
18 <!-- END HEADER -->
19
20 <!-- BEGIN CONTENT -->
21
22 <tr>
23 <td>
24
25 {if $formValues.receipt_text}
26 <p>{$formValues.receipt_text|htmlize}</p>
27 {else}
28 <p>{ts}Thanks for your support.{/ts}</p>
29 {/if}
30
31 <p>{ts}Please print this receipt for your records.{/ts}</p>
32
33 </td>
34 </tr>
35 <tr>
36 <td>
37 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
38 <tr>
39 <th {$headerStyle}>
40 {ts}Contribution Information{/ts}
41 </th>
42 </tr>
43 <tr>
44 <td {$labelStyle}>
45 {ts}Financial Type{/ts}
46 </td>
47 <td {$valueStyle}>
48 {$formValues.contributionType_name}
49 </td>
50 </tr>
51
52 {if $lineItem and !$is_quick_config}
53 {foreach from=$lineItem item=value key=priceset}
54 <tr>
55 <td colspan="2" {$valueStyle}>
56 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
57 <tr>
58 <th>{ts}Item{/ts}</th>
59 <th>{ts}Qty{/ts}</th>
60 <th>{ts}Each{/ts}</th>
61 {if $totalTaxAmount}
62 <th>{ts}Subtotal{/ts}</th>
63 <th>{ts}Tax Rate{/ts}</th>
64 <th>{ts}Tax Amount{/ts}</th>
65 {/if}
66 <th>{ts}Total{/ts}</th>
67 </tr>
68 {foreach from=$value item=line}
69 <tr>
70 <td>
71 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
72 </td>
73 <td>
74 {$line.qty}
75 </td>
76 <td>
77 {$line.unit_price|crmMoney:$currency}
78 </td>
79 {if $totalTaxAmount}
80 <td>
81 {$line.unit_price*$line.qty|crmMoney:$currency}
82 </td>
83 <td>
84 {$line.tax_rate|crmMoney:$currency}
85 </td>
86 <td>
87 {$line.tax_amount|crmMoney:$currency}
88 </td>
89 {/if}
90 <td>
91 {$line.line_total|crmMoney:$currency}
92 </td>
93 </tr>
94 {/foreach}
95 </table>
96 </td>
97 </tr>
98 {/foreach}
99 {/if}
100 {if $dataArray && $totalTaxAmount}
101 <tr>
102 <td {$labelStyle}>
103 {ts} Amount before Tax : {/ts}
104 </td>
105 <td {$valueStyle}>
106 {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
107 </td>
108 </tr>
109
110 {foreach from=$dataArray item=value key=priceset}
111 <tr>
112 {if $priceset}
113 <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
114 <td>&nbsp;{$value|crmMoney:$currency}</td>
115 {elseif $priceset == 0}
116 <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
117 <td>&nbsp;{$value|crmMoney:$currency}</td>
118 {/if}
119 </tr>
120 {/foreach}
121 {/if}
122
123 {if $totalTaxAmount}
124 <tr>
125 <td {$labelStyle}>
126 {ts}Total Tax Amount{/ts}
127 </td>
128 <td {$valueStyle}>
129 {$totalTaxAmount|crmMoney:$currency}
130 </td>
131 </tr>
132 {/if}
133
134 <tr>
135 <td {$labelStyle}>
136 {ts}Total Amount{/ts}
137 </td>
138 <td {$valueStyle}>
139 {$formValues.total_amount|crmMoney:$currency}
140 </td>
141 </tr>
142
143 {if $receive_date}
144 <tr>
145 <td {$labelStyle}>
146 {ts}Received Date{/ts}
147 </td>
148 <td {$valueStyle}>
149 {$receive_date|truncate:10:''|crmDate}
150 </td>
151 </tr>
152 {/if}
153
154 {if $receipt_date}
155 <tr>
156 <td {$labelStyle}>
157 {ts}Receipt Date{/ts}
158 </td>
159 <td {$valueStyle}>
160 {$receipt_date|truncate:10:''|crmDate}
161 </td>
162 </tr>
163 {/if}
164
165 {if $formValues.paidBy and !$formValues.hidden_CreditCard}
166 <tr>
167 <td {$labelStyle}>
168 {ts}Paid By{/ts}
169 </td>
170 <td {$valueStyle}>
171 {$formValues.paidBy}
172 </td>
173 </tr>
174 {if $formValues.check_number}
175 <tr>
176 <td {$labelStyle}>
177 {ts}Check Number{/ts}
178 </td>
179 <td {$valueStyle}>
180 {$formValues.check_number}
181 </td>
182 </tr>
183 {/if}
184 {/if}
185
186 {if $formValues.trxn_id}
187 <tr>
188 <td {$labelStyle}>
189 {ts}Transaction ID{/ts}
190 </td>
191 <td {$valueStyle}>
192 {$formValues.trxn_id}
193 </td>
194 </tr>
195 {/if}
196
197 {if $ccContribution}
198 <tr>
199 <th {$headerStyle}>
200 {ts}Billing Name and Address{/ts}
201 </th>
202 </tr>
203 <tr>
204 <td colspan="2" {$valueStyle}>
205 {$billingName}<br />
206 {$address|nl2br}
207 </td>
208 </tr>
209 <tr>
210 <th {$headerStyle}>
211 {ts}Credit Card Information{/ts}
212 </th>
213 </tr>
214 <tr>
215 <td colspan="2" {$valueStyle}>
216 {$credit_card_type}<br />
217 {$credit_card_number}<br />
218 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
219 </td>
220 </tr>
221 {/if}
222
223 {if $softCreditTypes and $softCredits}
224 {foreach from=$softCreditTypes item=softCreditType key=n}
225 <tr>
226 <th {$headerStyle}>
227 {$softCreditType}
228 </th>
229 </tr>
230 {foreach from=$softCredits.$n item=value key=label}
231 <tr>
232 <td {$labelStyle}>
233 {$label}
234 </td>
235 <td {$valueStyle}>
236 {$value}
237 </td>
238 </tr>
239 {/foreach}
240 {/foreach}
241 {/if}
242
243 {if $customGroup}
244 {foreach from=$customGroup item=value key=customName}
245 <tr>
246 <th {$headerStyle}>
247 {$customName}
248 </th>
249 </tr>
250 {foreach from=$value item=v key=n}
251 <tr>
252 <td {$labelStyle}>
253 {$n}
254 </td>
255 <td {$valueStyle}>
256 {$v}
257 </td>
258 </tr>
259 {/foreach}
260 {/foreach}
261 {/if}
262
263 {if $formValues.product_name}
264 <tr>
265 <th {$headerStyle}>
266 {ts}Premium Information{/ts}
267 </th>
268 </tr>
269 <tr>
270 <td colspan="2" {$labelStyle}>
271 {$formValues.product_name}
272 </td>
273 </tr>
274 {if $formValues.product_option}
275 <tr>
276 <td {$labelStyle}>
277 {ts}Option{/ts}
278 </td>
279 <td {$valueStyle}>
280 {$formValues.product_option}
281 </td>
282 </tr>
283 {/if}
284 {if $formValues.product_sku}
285 <tr>
286 <td {$labelStyle}>
287 {ts}SKU{/ts}
288 </td>
289 <td {$valueStyle}>
290 {$formValues.product_sku}
291 </td>
292 </tr>
293 {/if}
294 {if $fulfilled_date}
295 <tr>
296 <td {$labelStyle}>
297 {ts}Sent{/ts}
298 </td>
299 <td {$valueStyle}>
300 {$fulfilled_date|truncate:10:''|crmDate}
301 </td>
302 </tr>
303 {/if}
304 {/if}
305
306 </table>
307 </td>
308 </tr>
309
310 </table>
311 </center>
312
313 </body>
314 </html>