{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}

{$greeting},

{/if} {if !empty($formValues.receipt_text)}

{$formValues.receipt_text|htmlize}

{else}

{ts}Below you will find a receipt for this contribution.{/ts}

{/if}
{if '{contribution.financial_type_id}'} {/if} {if !empty($lineItem) and empty($is_quick_config)} {foreach from=$lineItem item=value key=priceset} {/foreach} {/if} {if !empty($getTaxDetails) && !empty($dataArray)} {foreach from=$dataArray item=value key=priceset} {if $priceset || $priceset == 0 || $value != ''} {else} {/if} {/foreach} {/if} {if $isShowTax} {/if} {if '{contribution.receive_date}'} {/if} {if '{contribution.receipt_date}'} {/if} {if '{contribution.payment_instrument_id}' and empty($formValues.hidden_CreditCard)} {if '{contribution.check_number}'} {/if} {/if} {if '{contribution.trxn_id}'} {/if} {if !empty($ccContribution)} {/if} {if !empty($softCreditTypes) and !empty($softCredits)} {foreach from=$softCreditTypes item=softCreditType key=n} {foreach from=$softCredits.$n item=value key=label} {/foreach} {/foreach} {/if} {if !empty($customGroup)} {foreach from=$customGroup item=value key=customName} {foreach from=$value item=v key=n} {/foreach} {/foreach} {/if} {if !empty($formValues.product_name)} {if $formValues.product_option} {/if} {if $formValues.product_sku} {/if} {if !empty($fulfilled_date)} {/if} {/if}
{ts}Contribution Information{/ts}
{ts}Contributor Name{/ts} {contact.display_name}
{ts}Financial Type{/ts} {contribution.financial_type_id:label}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} {if !empty($getTaxDetails)} {/if} {foreach from=$value item=line} {if !empty($getTaxDetails)} {if $line.tax_rate || $line.tax_amount != ""} {else} {/if} {/if} {/foreach}
{ts}Item{/ts} {ts}Qty{/ts} {ts}Each{/ts}{ts}Subtotal{/ts} {ts}Tax Rate{/ts} {ts}Tax Amount{/ts}{ts}Total{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description|truncate:30:"..."}
{/if}
{$line.qty} {$line.unit_price|crmMoney:$currency} {$line.unit_price*$line.qty|crmMoney:$currency} {$line.tax_rate|string_format:"%.2f"}% {$line.tax_amount|crmMoney:$currency} {$line.line_total+$line.tax_amount|crmMoney:$currency}
{ts} Amount before Tax : {/ts} {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
 {$taxTerm} {$priceset|string_format:"%.2f"}%  {$value|crmMoney:$currency} {ts}No{/ts} {$taxTerm}  {$value|crmMoney:$currency}
{ts}Total Tax Amount{/ts} {contribution.tax_amount}
{ts}Total Amount{/ts} {contribution.total_amount}
{ts}Date Received{/ts} {contribution.receive_date}
{ts}Receipt Date{/ts} {contribution.receipt_date}
{ts}Paid By{/ts} {contribution.payment_instrument_id:label}
{ts}Check Number{/ts} {contribution.check_number}
{ts}Transaction ID{/ts} {contribution.trxn_id}
{ts}Billing Name and Address{/ts}
{$billingName}
{$address|nl2br}
{ts}Credit Card Information{/ts}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
{$softCreditType}
{$label} {$value}
{$customName}
{$n} {$v}
{ts}Premium Information{/ts}
{$formValues.product_name}
{ts}Option{/ts} {$formValues.product_option}
{ts}SKU{/ts} {$formValues.product_sku}
{ts}Sent{/ts} {$fulfilled_date|truncate:10:''|crmDate}