{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}
{if $formValues.receipt_text}

{$formValues.receipt_text|htmlize}

{else}

{ts}Thank you for your support.{/ts}

{/if}

{ts}Please print this receipt for your records.{/ts}

{if $lineItem and !$is_quick_config} {foreach from=$lineItem item=value key=priceset} {/foreach} {/if} {if $getTaxDetails && $dataArray} {foreach from=$dataArray item=value key=priceset} {if $priceset || $priceset == 0 || $value != ''} {else} {/if} {/foreach} {/if} {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'} {/if} {if $receive_date} {/if} {if $receipt_date} {/if} {if $formValues.paidBy and !$formValues.hidden_CreditCard} {if $formValues.check_number} {/if} {/if} {if $formValues.trxn_id} {/if} {if $ccContribution} {/if} {if $softCreditTypes and $softCredits} {foreach from=$softCreditTypes item=softCreditType key=n} {foreach from=$softCredits.$n item=value key=label} {/foreach} {/foreach} {/if} {if $customGroup} {foreach from=$customGroup item=value key=customName} {foreach from=$value item=v key=n} {/foreach} {/foreach} {/if} {if $formValues.product_name} {if $formValues.product_option} {/if} {if $formValues.product_sku} {/if} {if $fulfilled_date} {/if} {/if}
{ts}Contribution Information{/ts}
{ts}Financial Type{/ts} {$formValues.contributionType_name}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} {if $getTaxDetails} {/if} {foreach from=$value item=line} {if $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} {$totalTaxAmount|crmMoney:$currency}
{ts}Total Amount{/ts} {$formValues.total_amount|crmMoney:$currency}
{ts}Received Date{/ts} {$receive_date|truncate:10:''|crmDate}
{ts}Receipt Date{/ts} {$receipt_date|truncate:10:''|crmDate}
{ts}Paid By{/ts} {$formValues.paidBy}
{ts}Check Number{/ts} {$formValues.check_number}
{ts}Transaction ID{/ts} {$formValues.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}