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