Commit | Line | Data |
---|---|---|
6a488035 TO |
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> | |
cb342529 | 14 | <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> |
6a488035 TO |
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> | |
56658066 | 24 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if} |
6a488035 TO |
25 | {if $formValues.receipt_text} |
26 | <p>{$formValues.receipt_text|htmlize}</p> | |
27 | {else} | |
12ff7379 | 28 | <p>{ts}Below you will find a receipt for this contribution.{/ts}</p> |
6a488035 | 29 | {/if} |
6a488035 TO |
30 | </td> |
31 | </tr> | |
32 | <tr> | |
33 | <td> | |
34 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
35 | <tr> | |
36 | <th {$headerStyle}> | |
37 | {ts}Contribution Information{/ts} | |
38 | </th> | |
39 | </tr> | |
448a7f8c AF |
40 | <tr> |
41 | <td {$labelStyle}> | |
42 | {ts}Contributor Name{/ts} | |
43 | </td> | |
44 | <td {$valueStyle}> | |
45 | {contact.display_name} | |
46 | </td> | |
47 | </tr> | |
6a488035 TO |
48 | <tr> |
49 | <td {$labelStyle}> | |
50 | {ts}Financial Type{/ts} | |
51 | </td> | |
52 | <td {$valueStyle}> | |
53 | {$formValues.contributionType_name} | |
54 | </td> | |
55 | </tr> | |
56 | ||
57 | {if $lineItem and !$is_quick_config} | |
58 | {foreach from=$lineItem item=value key=priceset} | |
59 | <tr> | |
60 | <td colspan="2" {$valueStyle}> | |
61 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
62 | <tr> | |
63 | <th>{ts}Item{/ts}</th> | |
64 | <th>{ts}Qty{/ts}</th> | |
65 | <th>{ts}Each{/ts}</th> | |
7cf82823 | 66 | {if $getTaxDetails} |
79d001a2 PB |
67 | <th>{ts}Subtotal{/ts}</th> |
68 | <th>{ts}Tax Rate{/ts}</th> | |
69 | <th>{ts}Tax Amount{/ts}</th> | |
70 | {/if} | |
6a488035 TO |
71 | <th>{ts}Total{/ts}</th> |
72 | </tr> | |
73 | {foreach from=$value item=line} | |
74 | <tr> | |
75 | <td> | |
76 | {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} | |
77 | </td> | |
78 | <td> | |
79 | {$line.qty} | |
80 | </td> | |
81 | <td> | |
82 | {$line.unit_price|crmMoney:$currency} | |
83 | </td> | |
7cf82823 | 84 | {if $getTaxDetails} |
79d001a2 PB |
85 | <td> |
86 | {$line.unit_price*$line.qty|crmMoney:$currency} | |
87 | </td> | |
7cf82823 PB |
88 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
89 | <td> | |
01604562 | 90 | {$line.tax_rate|string_format:"%.2f"}% |
7cf82823 PB |
91 | </td> |
92 | <td> | |
93 | {$line.tax_amount|crmMoney:$currency} | |
94 | </td> | |
95 | {else} | |
96 | <td></td> | |
97 | <td></td> | |
98 | {/if} | |
79d001a2 | 99 | {/if} |
6a488035 | 100 | <td> |
7cf82823 | 101 | {$line.line_total+$line.tax_amount|crmMoney:$currency} |
6a488035 TO |
102 | </td> |
103 | </tr> | |
104 | {/foreach} | |
105 | </table> | |
106 | </td> | |
107 | </tr> | |
108 | {/foreach} | |
109 | {/if} | |
7cf82823 | 110 | {if $getTaxDetails && $dataArray} |
79d001a2 PB |
111 | <tr> |
112 | <td {$labelStyle}> | |
113 | {ts} Amount before Tax : {/ts} | |
114 | </td> | |
115 | <td {$valueStyle}> | |
116 | {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} | |
117 | </td> | |
118 | </tr> | |
119 | ||
120 | {foreach from=$dataArray item=value key=priceset} | |
121 | <tr> | |
7cf82823 | 122 | {if $priceset || $priceset == 0 || $value != ''} |
ebf2b57b | 123 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 124 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 125 | {else} |
03b412ae | 126 | <td> {ts}No{/ts} {$taxTerm}</td> |
79d001a2 PB |
127 | <td> {$value|crmMoney:$currency}</td> |
128 | {/if} | |
129 | </tr> | |
130 | {/foreach} | |
131 | {/if} | |
132 | ||
01604562 | 133 | {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'} |
79d001a2 PB |
134 | <tr> |
135 | <td {$labelStyle}> | |
136 | {ts}Total Tax Amount{/ts} | |
137 | </td> | |
138 | <td {$valueStyle}> | |
139 | {$totalTaxAmount|crmMoney:$currency} | |
140 | </td> | |
141 | </tr> | |
142 | {/if} | |
6a488035 TO |
143 | |
144 | <tr> | |
145 | <td {$labelStyle}> | |
146 | {ts}Total Amount{/ts} | |
147 | </td> | |
148 | <td {$valueStyle}> | |
149 | {$formValues.total_amount|crmMoney:$currency} | |
150 | </td> | |
151 | </tr> | |
152 | ||
153 | {if $receive_date} | |
154 | <tr> | |
155 | <td {$labelStyle}> | |
7bc6b5bb | 156 | {ts}Date Received{/ts} |
6a488035 TO |
157 | </td> |
158 | <td {$valueStyle}> | |
159 | {$receive_date|truncate:10:''|crmDate} | |
160 | </td> | |
161 | </tr> | |
162 | {/if} | |
163 | ||
164 | {if $receipt_date} | |
165 | <tr> | |
166 | <td {$labelStyle}> | |
167 | {ts}Receipt Date{/ts} | |
168 | </td> | |
169 | <td {$valueStyle}> | |
170 | {$receipt_date|truncate:10:''|crmDate} | |
171 | </td> | |
172 | </tr> | |
173 | {/if} | |
174 | ||
175 | {if $formValues.paidBy and !$formValues.hidden_CreditCard} | |
176 | <tr> | |
177 | <td {$labelStyle}> | |
178 | {ts}Paid By{/ts} | |
179 | </td> | |
180 | <td {$valueStyle}> | |
181 | {$formValues.paidBy} | |
182 | </td> | |
183 | </tr> | |
184 | {if $formValues.check_number} | |
185 | <tr> | |
186 | <td {$labelStyle}> | |
187 | {ts}Check Number{/ts} | |
188 | </td> | |
189 | <td {$valueStyle}> | |
190 | {$formValues.check_number} | |
191 | </td> | |
192 | </tr> | |
193 | {/if} | |
194 | {/if} | |
195 | ||
196 | {if $formValues.trxn_id} | |
197 | <tr> | |
198 | <td {$labelStyle}> | |
199 | {ts}Transaction ID{/ts} | |
200 | </td> | |
201 | <td {$valueStyle}> | |
202 | {$formValues.trxn_id} | |
203 | </td> | |
204 | </tr> | |
205 | {/if} | |
206 | ||
207 | {if $ccContribution} | |
208 | <tr> | |
209 | <th {$headerStyle}> | |
210 | {ts}Billing Name and Address{/ts} | |
211 | </th> | |
212 | </tr> | |
213 | <tr> | |
214 | <td colspan="2" {$valueStyle}> | |
215 | {$billingName}<br /> | |
216 | {$address|nl2br} | |
217 | </td> | |
218 | </tr> | |
219 | <tr> | |
220 | <th {$headerStyle}> | |
221 | {ts}Credit Card Information{/ts} | |
222 | </th> | |
223 | </tr> | |
224 | <tr> | |
225 | <td colspan="2" {$valueStyle}> | |
226 | {$credit_card_type}<br /> | |
227 | {$credit_card_number}<br /> | |
228 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
229 | </td> | |
230 | </tr> | |
231 | {/if} | |
232 | ||
1421174e | 233 | {if $softCreditTypes and $softCredits} |
234 | {foreach from=$softCreditTypes item=softCreditType key=n} | |
235 | <tr> | |
236 | <th {$headerStyle}> | |
237 | {$softCreditType} | |
238 | </th> | |
239 | </tr> | |
240 | {foreach from=$softCredits.$n item=value key=label} | |
241 | <tr> | |
242 | <td {$labelStyle}> | |
243 | {$label} | |
244 | </td> | |
245 | <td {$valueStyle}> | |
246 | {$value} | |
247 | </td> | |
248 | </tr> | |
249 | {/foreach} | |
250 | {/foreach} | |
251 | {/if} | |
252 | ||
6a488035 TO |
253 | {if $customGroup} |
254 | {foreach from=$customGroup item=value key=customName} | |
255 | <tr> | |
256 | <th {$headerStyle}> | |
257 | {$customName} | |
258 | </th> | |
259 | </tr> | |
260 | {foreach from=$value item=v key=n} | |
261 | <tr> | |
262 | <td {$labelStyle}> | |
263 | {$n} | |
264 | </td> | |
265 | <td {$valueStyle}> | |
266 | {$v} | |
267 | </td> | |
268 | </tr> | |
269 | {/foreach} | |
270 | {/foreach} | |
271 | {/if} | |
272 | ||
6a488035 TO |
273 | {if $formValues.product_name} |
274 | <tr> | |
275 | <th {$headerStyle}> | |
276 | {ts}Premium Information{/ts} | |
277 | </th> | |
278 | </tr> | |
279 | <tr> | |
280 | <td colspan="2" {$labelStyle}> | |
281 | {$formValues.product_name} | |
282 | </td> | |
283 | </tr> | |
284 | {if $formValues.product_option} | |
285 | <tr> | |
286 | <td {$labelStyle}> | |
287 | {ts}Option{/ts} | |
288 | </td> | |
289 | <td {$valueStyle}> | |
290 | {$formValues.product_option} | |
291 | </td> | |
292 | </tr> | |
293 | {/if} | |
294 | {if $formValues.product_sku} | |
295 | <tr> | |
296 | <td {$labelStyle}> | |
297 | {ts}SKU{/ts} | |
298 | </td> | |
299 | <td {$valueStyle}> | |
300 | {$formValues.product_sku} | |
301 | </td> | |
302 | </tr> | |
303 | {/if} | |
304 | {if $fulfilled_date} | |
305 | <tr> | |
306 | <td {$labelStyle}> | |
307 | {ts}Sent{/ts} | |
308 | </td> | |
309 | <td {$valueStyle}> | |
310 | {$fulfilled_date|truncate:10:''|crmDate} | |
311 | </td> | |
312 | </tr> | |
313 | {/if} | |
314 | {/if} | |
315 | ||
316 | </table> | |
317 | </td> | |
318 | </tr> | |
319 | ||
320 | </table> | |
321 | </center> | |
322 | ||
323 | </body> | |
324 | </html> |