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}
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;">
17 <!-- You can add table row(s) here with logo or other header elements -->
20 <!-- BEGIN CONTENT -->
24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
25 {if $formValues.receipt_text}
26 <p>{$formValues.receipt_text|htmlize}</p>
28 <p>{ts}Below you will find a receipt for this contribution.{/ts}</p>
34 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
37 {ts}Contribution Information{/ts}
42 {ts}Financial Type{/ts}
45 {$formValues.contributionType_name}
49 {if $lineItem and !$is_quick_config}
50 {foreach from=$lineItem item=value key=priceset}
52 <td colspan="2" {$valueStyle}>
53 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
55 <th>{ts}Item{/ts}</th>
57 <th>{ts}Each{/ts}</th>
59 <th>{ts}Subtotal{/ts}</th>
60 <th>{ts}Tax Rate{/ts}</th>
61 <th>{ts}Tax Amount{/ts}</th>
63 <th>{ts}Total{/ts}</th>
65 {foreach from=$value item=line}
68 {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}
74 {$line.unit_price|crmMoney:$currency}
78 {$line.unit_price*$line.qty|crmMoney:$currency}
80 {if $line.tax_rate != "" || $line.tax_amount != ""}
82 {$line.tax_rate|string_format:"%.2f"}%
85 {$line.tax_amount|crmMoney:$currency}
93 {$line.line_total+$line.tax_amount|crmMoney:$currency}
102 {if $getTaxDetails && $dataArray}
105 {ts} Amount before Tax : {/ts}
108 {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
112 {foreach from=$dataArray item=value key=priceset}
114 {if $priceset || $priceset == 0 || $value != ''}
115 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
116 <td> {$value|crmMoney:$currency}</td>
118 <td> {ts}No{/ts} {$taxTerm}</td>
119 <td> {$value|crmMoney:$currency}</td>
125 {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'}
128 {ts}Total Tax Amount{/ts}
131 {$totalTaxAmount|crmMoney:$currency}
138 {ts}Total Amount{/ts}
141 {$formValues.total_amount|crmMoney:$currency}
148 {ts}Date Received{/ts}
151 {$receive_date|truncate:10:''|crmDate}
159 {ts}Receipt Date{/ts}
162 {$receipt_date|truncate:10:''|crmDate}
167 {if $formValues.paidBy and !$formValues.hidden_CreditCard}
176 {if $formValues.check_number}
179 {ts}Check Number{/ts}
182 {$formValues.check_number}
188 {if $formValues.trxn_id}
191 {ts}Transaction ID{/ts}
194 {$formValues.trxn_id}
202 {ts}Billing Name and Address{/ts}
206 <td colspan="2" {$valueStyle}>
213 {ts}Credit Card Information{/ts}
217 <td colspan="2" {$valueStyle}>
218 {$credit_card_type}<br />
219 {$credit_card_number}<br />
220 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
225 {if $softCreditTypes and $softCredits}
226 {foreach from=$softCreditTypes item=softCreditType key=n}
232 {foreach from=$softCredits.$n item=value key=label}
246 {foreach from=$customGroup item=value key=customName}
252 {foreach from=$value item=v key=n}
265 {if $formValues.product_name}
268 {ts}Premium Information{/ts}
272 <td colspan="2" {$labelStyle}>
273 {$formValues.product_name}
276 {if $formValues.product_option}
282 {$formValues.product_option}
286 {if $formValues.product_sku}
292 {$formValues.product_sku}
302 {$fulfilled_date|truncate:10:''|crmDate}