Commit | Line | Data |
---|---|---|
e74e138c | 1 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if} |
6a488035 TO |
2 | {if $receipt_text} |
3 | {$receipt_text} | |
4 | {/if} | |
5 | {if $is_pay_later} | |
6 | ||
7 | =========================================================== | |
8 | {$pay_later_receipt} | |
9 | =========================================================== | |
10 | {else} | |
11 | ||
12 | {ts}Please print this receipt for your records.{/ts} | |
13 | {/if} | |
14 | ||
15 | {if $membership_assign && !$useForMember} | |
16 | =========================================================== | |
17 | {ts}Membership Information{/ts} | |
18 | ||
19 | =========================================================== | |
20 | {ts}Membership Type{/ts}: {$membership_name} | |
21 | {if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate} | |
22 | {/if} | |
23 | {if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate} | |
24 | {/if} | |
25 | ||
26 | {/if} | |
27 | {if $amount} | |
28 | =========================================================== | |
29 | {ts}Membership Fee{/ts} | |
30 | ||
31 | =========================================================== | |
32 | {if !$useForMember && $membership_amount && $is_quick_config} | |
33 | {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney} | |
735eaff9 | 34 | {if $amount && !$is_separate_payment } |
6a488035 | 35 | {ts}Contribution Amount{/ts}: {$amount|crmMoney} |
6a488035 TO |
36 | ------------------------------------------- |
37 | {ts}Total{/ts}: {$amount+$membership_amount|crmMoney} | |
58d8c7e2 | 38 | {/if} |
6a488035 TO |
39 | {elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config} |
40 | {foreach from=$lineItem item=value key=priceset} | |
41 | --------------------------------------------------------- | |
42 | {capture assign=ts_item}{ts}Item{/ts}{/capture} | |
43 | {capture assign=ts_qty}{ts}Qty{/ts}{/capture} | |
44 | {capture assign=ts_each}{ts}Each{/ts}{/capture} | |
45 | {capture assign=ts_total}{ts}Total{/ts}{/capture} | |
46 | {$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"} | |
47 | ---------------------------------------------------------- | |
48 | {foreach from=$value item=line} | |
49 | {$line.description|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"} | |
50 | {/foreach} | |
51 | {/foreach} | |
52 | ||
53 | {ts}Total Amount{/ts}: {$amount|crmMoney} | |
54 | {else} | |
55 | {if $useForMember && $lineItem && !$is_quick_config} | |
56 | {foreach from=$lineItem item=value key=priceset} | |
57 | {capture assign=ts_item}{ts}Item{/ts}{/capture} | |
58 | {capture assign=ts_total}{ts}Fee{/ts}{/capture} | |
7cf82823 | 59 | {if $dataArray} |
79d001a2 PB |
60 | {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} |
61 | {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} | |
62 | {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} | |
63 | {capture assign=ts_total}{ts}Total{/ts}{/capture} | |
64 | {/if} | |
6a488035 TO |
65 | {capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture} |
66 | {capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture} | |
7cf82823 | 67 | {$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"} |
6a488035 TO |
68 | -------------------------------------------------------------------------------------------------- |
69 | ||
70 | {foreach from=$value item=line} | |
7cf82823 | 71 | {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.line_total|crmMoney|string_format:"%10s"} {if $dataArray} {$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} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"} |
79d001a2 | 72 | {/foreach} |
6a488035 | 73 | {/foreach} |
79d001a2 | 74 | |
7cf82823 | 75 | {if $dataArray} |
79d001a2 PB |
76 | {ts}Amount before Tax{/ts}: {$amount-$totalTaxAmount|crmMoney:$currency} |
77 | ||
78 | {foreach from=$dataArray item=value key=priceset} | |
7cf82823 | 79 | {if $priceset || $priceset == 0} |
03b412ae | 80 | {$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency} |
7cf82823 | 81 | {else} |
03b412ae | 82 | {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency} |
79d001a2 | 83 | {/if} |
6a488035 | 84 | {/foreach} |
79d001a2 | 85 | {/if} |
6a488035 TO |
86 | -------------------------------------------------------------------------------------------------- |
87 | {/if} | |
79d001a2 PB |
88 | |
89 | {if $totalTaxAmount} | |
90 | {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency} | |
91 | {/if} | |
92 | ||
6a488035 TO |
93 | {ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if} |
94 | {/if} | |
95 | {elseif $membership_amount} | |
96 | =========================================================== | |
97 | {ts}Membership Fee{/ts} | |
98 | ||
99 | =========================================================== | |
100 | {ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney} | |
101 | {/if} | |
102 | ||
103 | {if $receive_date} | |
104 | ||
105 | {ts}Date{/ts}: {$receive_date|crmDate} | |
106 | {/if} | |
107 | {if $is_monetary and $trxn_id} | |
108 | {ts}Transaction #{/ts}: {$trxn_id} | |
109 | ||
110 | {/if} | |
111 | {if $membership_trx_id} | |
112 | {ts}Membership Transaction #{/ts}: {$membership_trx_id} | |
113 | ||
114 | {/if} | |
115 | {if $is_recur} | |
116 | {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'} | |
117 | {ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by visiting this web page: %1.{/ts} | |
4072b132 | 118 | {if $updateSubscriptionBillingUrl} |
6a488035 TO |
119 | |
120 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts} | |
121 | {/if} | |
122 | {/if} | |
4072b132 | 123 | {/if} |
6a488035 TO |
124 | |
125 | {if $honor_block_is_active } | |
126 | =========================================================== | |
1421174e | 127 | {$soft_credit_type} |
6a488035 | 128 | =========================================================== |
1421174e | 129 | {foreach from=$honoreeProfile item=value key=label} |
130 | {$label}: {$value} | |
131 | {/foreach} | |
6a488035 TO |
132 | |
133 | {/if} | |
134 | {if $pcpBlock} | |
135 | =========================================================== | |
136 | {ts}Personal Campaign Page{/ts} | |
137 | ||
138 | =========================================================== | |
139 | {ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
140 | ||
141 | {if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if} | |
142 | ||
143 | {if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if} | |
144 | ||
145 | {/if} | |
146 | {if $onBehalfProfile} | |
147 | =========================================================== | |
148 | {ts}On Behalf Of{/ts} | |
149 | ||
150 | =========================================================== | |
151 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
152 | {$onBehalfName}: {$onBehalfValue} | |
153 | {/foreach} | |
154 | {/if} | |
155 | ||
156 | {if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary} | |
157 | {if $is_pay_later} | |
158 | =========================================================== | |
159 | {ts}Registered Email{/ts} | |
160 | ||
161 | =========================================================== | |
162 | {$email} | |
163 | {elseif $amount GT 0 OR $membership_amount GT 0 } | |
164 | =========================================================== | |
165 | {ts}Billing Name and Address{/ts} | |
166 | ||
167 | =========================================================== | |
168 | {$billingName} | |
169 | {$address} | |
170 | ||
171 | {$email} | |
172 | {/if} {* End ! is_pay_later condition. *} | |
173 | {/if} | |
174 | {if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) } | |
175 | ||
176 | =========================================================== | |
177 | {ts}Credit Card Information{/ts} | |
178 | ||
179 | =========================================================== | |
180 | {$credit_card_type} | |
181 | {$credit_card_number} | |
182 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
183 | {/if} | |
184 | ||
185 | {if $selectPremium } | |
186 | =========================================================== | |
187 | {ts}Premium Information{/ts} | |
188 | ||
189 | =========================================================== | |
190 | {$product_name} | |
191 | {if $option} | |
192 | {ts}Option{/ts}: {$option} | |
193 | {/if} | |
194 | {if $sku} | |
195 | {ts}SKU{/ts}: {$sku} | |
196 | {/if} | |
197 | {if $start_date} | |
198 | {ts}Start Date{/ts}: {$start_date|crmDate} | |
199 | {/if} | |
200 | {if $end_date} | |
201 | {ts}End Date{/ts}: {$end_date|crmDate} | |
202 | {/if} | |
203 | {if $contact_email OR $contact_phone} | |
204 | ||
205 | {ts}For information about this premium, contact:{/ts} | |
206 | ||
207 | {if $contact_email} | |
208 | {$contact_email} | |
209 | {/if} | |
210 | {if $contact_phone} | |
211 | {$contact_phone} | |
212 | {/if} | |
213 | {/if} | |
214 | {if $is_deductible AND $price} | |
215 | ||
216 | {ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if} | |
217 | {/if} | |
218 | ||
219 | {if $customPre} | |
220 | =========================================================== | |
221 | {$customPre_grouptitle} | |
222 | ||
223 | =========================================================== | |
224 | {foreach from=$customPre item=customValue key=customName} | |
225 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
226 | {$customName}: {$customValue} | |
227 | {/if} | |
228 | {/foreach} | |
229 | {/if} | |
230 | ||
231 | ||
232 | {if $customPost} | |
233 | =========================================================== | |
234 | {$customPost_grouptitle} | |
235 | ||
236 | =========================================================== | |
237 | {foreach from=$customPost item=customValue key=customName} | |
238 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
239 | {$customName}: {$customValue} | |
240 | {/if} | |
241 | {/foreach} | |
242 | {/if} |