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}Contributor Name{/ts}
45 {contact.display_name}
50 {ts}Financial Type{/ts}
53 {$formValues.contributionType_name}
57 {if $lineItem and !$is_quick_config}
58 {foreach from=$lineItem item=value key=priceset}
60 <td colspan="2" {$valueStyle}>
61 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
63 <th>{ts}Item{/ts}</th>
65 <th>{ts}Each{/ts}</th>
67 <th>{ts}Subtotal{/ts}</th>
68 <th>{ts}Tax Rate{/ts}</th>
69 <th>{ts}Tax Amount{/ts}</th>
71 <th>{ts}Total{/ts}</th>
73 {foreach from=$value item=line}
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}
82 {$line.unit_price|crmMoney:$currency}
86 {$line.unit_price*$line.qty|crmMoney:$currency}
88 {if $line.tax_rate != "" || $line.tax_amount != ""}
90 {$line.tax_rate|string_format:"%.2f"}%
93 {$line.tax_amount|crmMoney:$currency}
101 {$line.line_total+$line.tax_amount|crmMoney:$currency}
110 {if $getTaxDetails && $dataArray}
113 {ts} Amount before Tax : {/ts}
116 {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
120 {foreach from=$dataArray item=value key=priceset}
122 {if $priceset || $priceset == 0 || $value != ''}
123 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
124 <td> {$value|crmMoney:$currency}</td>
126 <td> {ts}No{/ts} {$taxTerm}</td>
127 <td> {$value|crmMoney:$currency}</td>
133 {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'}
136 {ts}Total Tax Amount{/ts}
139 {$totalTaxAmount|crmMoney:$currency}
146 {ts}Total Amount{/ts}
149 {$formValues.total_amount|crmMoney:$currency}
156 {ts}Date Received{/ts}
159 {$receive_date|truncate:10:''|crmDate}
167 {ts}Receipt Date{/ts}
170 {$receipt_date|truncate:10:''|crmDate}
175 {if $formValues.paidBy and !$formValues.hidden_CreditCard}
184 {if $formValues.check_number}
187 {ts}Check Number{/ts}
190 {$formValues.check_number}
196 {if $formValues.trxn_id}
199 {ts}Transaction ID{/ts}
202 {$formValues.trxn_id}
210 {ts}Billing Name and Address{/ts}
214 <td colspan="2" {$valueStyle}>
221 {ts}Credit Card Information{/ts}
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}
233 {if $softCreditTypes and $softCredits}
234 {foreach from=$softCreditTypes item=softCreditType key=n}
240 {foreach from=$softCredits.$n item=value key=label}
254 {foreach from=$customGroup item=value key=customName}
260 {foreach from=$value item=v key=n}
273 {if $formValues.product_name}
276 {ts}Premium Information{/ts}
280 <td colspan="2" {$labelStyle}>
281 {$formValues.product_name}
284 {if $formValues.product_option}
290 {$formValues.product_option}
294 {if $formValues.product_sku}
300 {$formValues.product_sku}
310 {$fulfilled_date|truncate:10:''|crmDate}