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">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-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}
13 <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;">
16 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- BEGIN CONTENT -->
23 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
24 {if !empty($formValues.receipt_text)}
25 <p>{$formValues.receipt_text|htmlize}</p>
27 <p>{ts}Below you will find a receipt for this contribution.{/ts}</p>
33 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
36 {ts}Contribution Information{/ts}
41 {ts}Contributor Name{/ts}
44 {contact.display_name}
48 {if '{contribution.financial_type_id}'}
50 {ts}Financial Type{/ts}
53 {contribution.financial_type_id:label}
58 {if !empty($lineItem) and empty($is_quick_config)}
59 {foreach from=$lineItem item=value key=priceset}
61 <td colspan="2" {$valueStyle}>
62 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
64 <th>{ts}Item{/ts}</th>
66 <th>{ts}Each{/ts}</th>
67 {if !empty($getTaxDetails)}
68 <th>{ts}Subtotal{/ts}</th>
69 <th>{ts}Tax Rate{/ts}</th>
70 <th>{ts}Tax Amount{/ts}</th>
72 <th>{ts}Total{/ts}</th>
74 {foreach from=$value item=line}
77 {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}
83 {$line.unit_price|crmMoney:$currency}
85 {if !empty($getTaxDetails)}
87 {$line.unit_price*$line.qty|crmMoney:$currency}
89 {if $line.tax_rate || $line.tax_amount != ""}
91 {$line.tax_rate|string_format:"%.2f"}%
94 {$line.tax_amount|crmMoney:$currency}
102 {$line.line_total+$line.tax_amount|crmMoney:$currency}
111 {if !empty($getTaxDetails) && !empty($dataArray)}
114 {ts} Amount before Tax : {/ts}
117 {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
121 {foreach from=$dataArray item=value key=priceset}
123 {if $priceset || $priceset == 0 || $value != ''}
124 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
125 <td> {$value|crmMoney:$currency}</td>
127 <td> {ts}No{/ts} {$taxTerm}</td>
128 <td> {$value|crmMoney:$currency}</td>
137 {ts}Total Tax Amount{/ts}
140 {contribution.tax_amount}
147 {ts}Total Amount{/ts}
150 {contribution.total_amount}
154 {if '{contribution.receive_date}'}
157 {ts}Date Received{/ts}
160 {contribution.receive_date}
165 {if '{contribution.receipt_date}'}
168 {ts}Receipt Date{/ts}
171 {contribution.receipt_date}
176 {if '{contribution.payment_instrument_id}' and empty($formValues.hidden_CreditCard)}
182 {contribution.payment_instrument_id:label}
185 {if '{contribution.check_number}'}
188 {ts}Check Number{/ts}
191 {contribution.check_number}
197 {if '{contribution.trxn_id}'}
200 {ts}Transaction ID{/ts}
203 {contribution.trxn_id}
208 {if !empty($ccContribution)}
211 {ts}Billing Name and Address{/ts}
215 <td colspan="2" {$valueStyle}>
222 {ts}Credit Card Information{/ts}
226 <td colspan="2" {$valueStyle}>
227 {$credit_card_type}<br />
228 {$credit_card_number}<br />
229 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
234 {if !empty($softCreditTypes) and !empty($softCredits)}
235 {foreach from=$softCreditTypes item=softCreditType key=n}
241 {foreach from=$softCredits.$n item=value key=label}
254 {if !empty($customGroup)}
255 {foreach from=$customGroup item=value key=customName}
261 {foreach from=$value item=v key=n}
274 {if !empty($formValues.product_name)}
277 {ts}Premium Information{/ts}
281 <td colspan="2" {$labelStyle}>
282 {$formValues.product_name}
285 {if $formValues.product_option}
291 {$formValues.product_option}
295 {if $formValues.product_sku}
301 {$formValues.product_sku}
305 {if !empty($fulfilled_date)}
311 {$fulfilled_date|truncate:10:''|crmDate}