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