| 1 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if} |
| 2 | |
| 3 | {if $formValues.receipt_text} |
| 4 | {$formValues.receipt_text} |
| 5 | {else}{ts}Below you will find a receipt for this contribution.{/ts}{/if} |
| 6 | |
| 7 | =========================================================== |
| 8 | {ts}Contribution Information{/ts} |
| 9 | |
| 10 | =========================================================== |
| 11 | {ts}Financial Type{/ts}: {$formValues.contributionType_name} |
| 12 | {if $lineItem} |
| 13 | {foreach from=$lineItem item=value key=priceset} |
| 14 | --------------------------------------------------------- |
| 15 | {capture assign=ts_item}{ts}Item{/ts}{/capture} |
| 16 | {capture assign=ts_qty}{ts}Qty{/ts}{/capture} |
| 17 | {capture assign=ts_each}{ts}Each{/ts}{/capture} |
| 18 | {if $getTaxDetails} |
| 19 | {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} |
| 20 | {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} |
| 21 | {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} |
| 22 | {/if} |
| 23 | {capture assign=ts_total}{ts}Total{/ts}{/capture} |
| 24 | {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $getTaxDetails} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} |
| 25 | ---------------------------------------------------------- |
| 26 | {foreach from=$value item=line} |
| 27 | {capture assign=ts_item}{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $getTaxDetails}{$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"} |
| 28 | {/foreach} |
| 29 | {/foreach} |
| 30 | {/if} |
| 31 | |
| 32 | {if $getTaxDetails && $dataArray} |
| 33 | {ts}Amount before Tax{/ts} : {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} |
| 34 | |
| 35 | {foreach from=$dataArray item=value key=priceset} |
| 36 | {if $priceset || $priceset == 0 || $value != ''} |
| 37 | {$taxTerm} {$priceset|string_format:"%.2f"}% : {$value|crmMoney:$currency} |
| 38 | {else} |
| 39 | {ts}No{/ts} {$taxTerm} : {$value|crmMoney:$currency} |
| 40 | {/if} |
| 41 | {/foreach} |
| 42 | {/if} |
| 43 | |
| 44 | {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'} |
| 45 | {ts}Total Tax Amount{/ts} : {$totalTaxAmount|crmMoney:$currency} |
| 46 | {/if} |
| 47 | {ts}Total Amount{/ts} : {$formValues.total_amount|crmMoney:$currency} |
| 48 | {if $receive_date} |
| 49 | {ts}Date Received{/ts}: {$receive_date|truncate:10:''|crmDate} |
| 50 | {/if} |
| 51 | {if $receipt_date} |
| 52 | {ts}Receipt Date{/ts}: {$receipt_date|truncate:10:''|crmDate} |
| 53 | {/if} |
| 54 | {if $formValues.paidBy and !$formValues.hidden_CreditCard} |
| 55 | {ts}Paid By{/ts}: {$formValues.paidBy} |
| 56 | {if $formValues.check_number} |
| 57 | {ts}Check Number{/ts}: {$formValues.check_number} |
| 58 | {/if} |
| 59 | {/if} |
| 60 | {if $formValues.trxn_id} |
| 61 | {ts}Transaction ID{/ts}: {$formValues.trxn_id} |
| 62 | {/if} |
| 63 | |
| 64 | {if $ccContribution} |
| 65 | =========================================================== |
| 66 | {ts}Billing Name and Address{/ts} |
| 67 | |
| 68 | =========================================================== |
| 69 | {$billingName} |
| 70 | {$address} |
| 71 | |
| 72 | =========================================================== |
| 73 | {ts}Credit Card Information{/ts} |
| 74 | |
| 75 | =========================================================== |
| 76 | {$credit_card_type} |
| 77 | {$credit_card_number} |
| 78 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} |
| 79 | {/if} |
| 80 | {if $customGroup} |
| 81 | {foreach from=$customGroup item=value key=customName} |
| 82 | =========================================================== |
| 83 | {$customName} |
| 84 | =========================================================== |
| 85 | {foreach from=$value item=v key=n} |
| 86 | {$n}: {$v} |
| 87 | {/foreach} |
| 88 | {/foreach} |
| 89 | {/if} |
| 90 | |
| 91 | {if $softCreditTypes and $softCredits} |
| 92 | {foreach from=$softCreditTypes item=softCreditType key=n} |
| 93 | =========================================================== |
| 94 | {$softCreditType} |
| 95 | =========================================================== |
| 96 | {foreach from=$softCredits.$n item=value key=label} |
| 97 | {$label}: {$value} |
| 98 | {/foreach} |
| 99 | {/foreach} |
| 100 | {/if} |
| 101 | |
| 102 | {if $formValues.product_name} |
| 103 | =========================================================== |
| 104 | {ts}Premium Information{/ts} |
| 105 | |
| 106 | =========================================================== |
| 107 | {$formValues.product_name} |
| 108 | {if $formValues.product_option} |
| 109 | {ts}Option{/ts}: {$formValues.product_option} |
| 110 | {/if} |
| 111 | {if $formValues.product_sku} |
| 112 | {ts}SKU{/ts}: {$formValues.product_sku} |
| 113 | {/if} |
| 114 | {if $fulfilled_date} |
| 115 | {ts}Sent{/ts}: {$fulfilled_date|crmDate} |
| 116 | {/if} |
| 117 | {/if} |