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> | |
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} | |
2b3846c2 | 28 | <p>{ts}Thank you for your support.{/ts}</p> |
6a488035 TO |
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> | |
7cf82823 | 61 | {if $getTaxDetails} |
79d001a2 PB |
62 | <th>{ts}Subtotal{/ts}</th> |
63 | <th>{ts}Tax Rate{/ts}</th> | |
64 | <th>{ts}Tax Amount{/ts}</th> | |
65 | {/if} | |
6a488035 TO |
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> | |
7cf82823 | 79 | {if $getTaxDetails} |
79d001a2 PB |
80 | <td> |
81 | {$line.unit_price*$line.qty|crmMoney:$currency} | |
82 | </td> | |
7cf82823 PB |
83 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
84 | <td> | |
01604562 | 85 | {$line.tax_rate|string_format:"%.2f"}% |
7cf82823 PB |
86 | </td> |
87 | <td> | |
88 | {$line.tax_amount|crmMoney:$currency} | |
89 | </td> | |
90 | {else} | |
91 | <td></td> | |
92 | <td></td> | |
93 | {/if} | |
79d001a2 | 94 | {/if} |
6a488035 | 95 | <td> |
7cf82823 | 96 | {$line.line_total+$line.tax_amount|crmMoney:$currency} |
6a488035 TO |
97 | </td> |
98 | </tr> | |
99 | {/foreach} | |
100 | </table> | |
101 | </td> | |
102 | </tr> | |
103 | {/foreach} | |
104 | {/if} | |
7cf82823 | 105 | {if $getTaxDetails && $dataArray} |
79d001a2 PB |
106 | <tr> |
107 | <td {$labelStyle}> | |
108 | {ts} Amount before Tax : {/ts} | |
109 | </td> | |
110 | <td {$valueStyle}> | |
111 | {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} | |
112 | </td> | |
113 | </tr> | |
114 | ||
115 | {foreach from=$dataArray item=value key=priceset} | |
116 | <tr> | |
7cf82823 | 117 | {if $priceset || $priceset == 0 || $value != ''} |
ebf2b57b | 118 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 119 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 120 | {else} |
03b412ae | 121 | <td> {ts}No{/ts} {$taxTerm}</td> |
79d001a2 PB |
122 | <td> {$value|crmMoney:$currency}</td> |
123 | {/if} | |
124 | </tr> | |
125 | {/foreach} | |
126 | {/if} | |
127 | ||
01604562 | 128 | {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'} |
79d001a2 PB |
129 | <tr> |
130 | <td {$labelStyle}> | |
131 | {ts}Total Tax Amount{/ts} | |
132 | </td> | |
133 | <td {$valueStyle}> | |
134 | {$totalTaxAmount|crmMoney:$currency} | |
135 | </td> | |
136 | </tr> | |
137 | {/if} | |
6a488035 TO |
138 | |
139 | <tr> | |
140 | <td {$labelStyle}> | |
141 | {ts}Total Amount{/ts} | |
142 | </td> | |
143 | <td {$valueStyle}> | |
144 | {$formValues.total_amount|crmMoney:$currency} | |
145 | </td> | |
146 | </tr> | |
147 | ||
148 | {if $receive_date} | |
149 | <tr> | |
150 | <td {$labelStyle}> | |
151 | {ts}Received Date{/ts} | |
152 | </td> | |
153 | <td {$valueStyle}> | |
154 | {$receive_date|truncate:10:''|crmDate} | |
155 | </td> | |
156 | </tr> | |
157 | {/if} | |
158 | ||
159 | {if $receipt_date} | |
160 | <tr> | |
161 | <td {$labelStyle}> | |
162 | {ts}Receipt Date{/ts} | |
163 | </td> | |
164 | <td {$valueStyle}> | |
165 | {$receipt_date|truncate:10:''|crmDate} | |
166 | </td> | |
167 | </tr> | |
168 | {/if} | |
169 | ||
170 | {if $formValues.paidBy and !$formValues.hidden_CreditCard} | |
171 | <tr> | |
172 | <td {$labelStyle}> | |
173 | {ts}Paid By{/ts} | |
174 | </td> | |
175 | <td {$valueStyle}> | |
176 | {$formValues.paidBy} | |
177 | </td> | |
178 | </tr> | |
179 | {if $formValues.check_number} | |
180 | <tr> | |
181 | <td {$labelStyle}> | |
182 | {ts}Check Number{/ts} | |
183 | </td> | |
184 | <td {$valueStyle}> | |
185 | {$formValues.check_number} | |
186 | </td> | |
187 | </tr> | |
188 | {/if} | |
189 | {/if} | |
190 | ||
191 | {if $formValues.trxn_id} | |
192 | <tr> | |
193 | <td {$labelStyle}> | |
194 | {ts}Transaction ID{/ts} | |
195 | </td> | |
196 | <td {$valueStyle}> | |
197 | {$formValues.trxn_id} | |
198 | </td> | |
199 | </tr> | |
200 | {/if} | |
201 | ||
202 | {if $ccContribution} | |
203 | <tr> | |
204 | <th {$headerStyle}> | |
205 | {ts}Billing Name and Address{/ts} | |
206 | </th> | |
207 | </tr> | |
208 | <tr> | |
209 | <td colspan="2" {$valueStyle}> | |
210 | {$billingName}<br /> | |
211 | {$address|nl2br} | |
212 | </td> | |
213 | </tr> | |
214 | <tr> | |
215 | <th {$headerStyle}> | |
216 | {ts}Credit Card Information{/ts} | |
217 | </th> | |
218 | </tr> | |
219 | <tr> | |
220 | <td colspan="2" {$valueStyle}> | |
221 | {$credit_card_type}<br /> | |
222 | {$credit_card_number}<br /> | |
223 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
224 | </td> | |
225 | </tr> | |
226 | {/if} | |
227 | ||
1421174e | 228 | {if $softCreditTypes and $softCredits} |
229 | {foreach from=$softCreditTypes item=softCreditType key=n} | |
230 | <tr> | |
231 | <th {$headerStyle}> | |
232 | {$softCreditType} | |
233 | </th> | |
234 | </tr> | |
235 | {foreach from=$softCredits.$n item=value key=label} | |
236 | <tr> | |
237 | <td {$labelStyle}> | |
238 | {$label} | |
239 | </td> | |
240 | <td {$valueStyle}> | |
241 | {$value} | |
242 | </td> | |
243 | </tr> | |
244 | {/foreach} | |
245 | {/foreach} | |
246 | {/if} | |
247 | ||
6a488035 TO |
248 | {if $customGroup} |
249 | {foreach from=$customGroup item=value key=customName} | |
250 | <tr> | |
251 | <th {$headerStyle}> | |
252 | {$customName} | |
253 | </th> | |
254 | </tr> | |
255 | {foreach from=$value item=v key=n} | |
256 | <tr> | |
257 | <td {$labelStyle}> | |
258 | {$n} | |
259 | </td> | |
260 | <td {$valueStyle}> | |
261 | {$v} | |
262 | </td> | |
263 | </tr> | |
264 | {/foreach} | |
265 | {/foreach} | |
266 | {/if} | |
267 | ||
6a488035 TO |
268 | {if $formValues.product_name} |
269 | <tr> | |
270 | <th {$headerStyle}> | |
271 | {ts}Premium Information{/ts} | |
272 | </th> | |
273 | </tr> | |
274 | <tr> | |
275 | <td colspan="2" {$labelStyle}> | |
276 | {$formValues.product_name} | |
277 | </td> | |
278 | </tr> | |
279 | {if $formValues.product_option} | |
280 | <tr> | |
281 | <td {$labelStyle}> | |
282 | {ts}Option{/ts} | |
283 | </td> | |
284 | <td {$valueStyle}> | |
285 | {$formValues.product_option} | |
286 | </td> | |
287 | </tr> | |
288 | {/if} | |
289 | {if $formValues.product_sku} | |
290 | <tr> | |
291 | <td {$labelStyle}> | |
292 | {ts}SKU{/ts} | |
293 | </td> | |
294 | <td {$valueStyle}> | |
295 | {$formValues.product_sku} | |
296 | </td> | |
297 | </tr> | |
298 | {/if} | |
299 | {if $fulfilled_date} | |
300 | <tr> | |
301 | <td {$labelStyle}> | |
302 | {ts}Sent{/ts} | |
303 | </td> | |
304 | <td {$valueStyle}> | |
305 | {$fulfilled_date|truncate:10:''|crmDate} | |
306 | </td> | |
307 | </tr> | |
308 | {/if} | |
309 | {/if} | |
310 | ||
311 | </table> | |
312 | </td> | |
313 | </tr> | |
314 | ||
315 | </table> | |
316 | </center> | |
317 | ||
318 | </body> | |
319 | </html> |