Commit | Line | Data |
---|---|---|
cf612441 PB |
1 | {if $formValues.receipt_text_signup} |
2 | {$formValues.receipt_text_signup} | |
3 | {elseif $formValues.receipt_text_renewal} | |
4 | {$formValues.receipt_text_renewal} | |
2b3846c2 | 5 | {else}{ts}Thank you for your support.{/ts}{/if} |
cf612441 PB |
6 | |
7 | {if ! $cancelled}{ts}Please print this receipt for your records.{/ts} | |
8 | ||
9 | ||
10 | {/if} | |
11 | {if !$lineItem} | |
12 | =========================================================== | |
13 | {ts}Membership Information{/ts} | |
14 | ||
15 | =========================================================== | |
16 | {ts}Membership Type{/ts}: {$membership_name} | |
17 | {/if} | |
18 | {if ! $cancelled} | |
19 | {if !$lineItem} | |
20 | {ts}Membership Start Date{/ts}: {$mem_start_date} | |
21 | {ts}Membership End Date{/ts}: {$mem_end_date} | |
22 | {/if} | |
23 | ||
82b0700d | 24 | {if $formValues.total_amount OR $formValues.total_amount eq 0 } |
cf612441 PB |
25 | =========================================================== |
26 | {ts}Membership Fee{/ts} | |
27 | ||
28 | =========================================================== | |
29 | {if $formValues.contributionType_name} | |
30 | {ts}Financial Type{/ts}: {$formValues.contributionType_name} | |
31 | {/if} | |
32 | {if $lineItem} | |
33 | {foreach from=$lineItem item=value key=priceset} | |
34 | {capture assign=ts_item}{ts}Item{/ts}{/capture} | |
35 | {capture assign=ts_total}{ts}Fee{/ts}{/capture} | |
36 | {if $dataArray} | |
37 | {capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture} | |
38 | {capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture} | |
39 | {capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture} | |
40 | {capture assign=ts_total}{ts}Total{/ts}{/capture} | |
41 | {/if} | |
42 | {capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture} | |
43 | {capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture} | |
44 | {$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"} | |
45 | -------------------------------------------------------------------------------------------------- | |
46 | ||
47 | {foreach from=$value item=line} | |
48 | {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"} | |
49 | {/foreach} | |
50 | {/foreach} | |
51 | ||
52 | {if $dataArray} | |
53 | {ts}Amount before Tax{/ts}: {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} | |
54 | ||
55 | {foreach from=$dataArray item=value key=priceset} | |
56 | {if $priceset} | |
57 | {$taxTerm} {$priceset|string_format:"%.2f"} %: {$value|crmMoney:$currency} | |
58 | {elseif $priceset == 0} | |
59 | {ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency} | |
60 | {/if} | |
61 | {/foreach} | |
62 | {/if} | |
63 | -------------------------------------------------------------------------------------------------- | |
64 | {/if} | |
65 | ||
01604562 | 66 | {if isset($totalTaxAmount)} |
cf612441 PB |
67 | {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency} |
68 | {/if} | |
69 | ||
70 | {ts}Amount{/ts}: {$formValues.total_amount|crmMoney} | |
71 | {if $receive_date} | |
72 | {ts}Received Date{/ts}: {$receive_date|truncate:10:''|crmDate} | |
73 | {/if} | |
74 | {if $formValues.paidBy} | |
75 | {ts}Paid By{/ts}: {$formValues.paidBy} | |
76 | {if $formValues.check_number} | |
77 | {ts}Check Number{/ts}: {$formValues.check_number} | |
78 | {/if} | |
79 | {/if} | |
80 | {/if} | |
81 | {/if} | |
82 | ||
83 | {if $isPrimary } | |
84 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later } | |
85 | ||
86 | =========================================================== | |
87 | {ts}Billing Name and Address{/ts} | |
88 | ||
89 | =========================================================== | |
90 | {$billingName} | |
91 | {$address} | |
92 | {/if} | |
93 | ||
94 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later} | |
95 | =========================================================== | |
96 | {ts}Credit Card Information{/ts} | |
97 | ||
98 | =========================================================== | |
99 | {$credit_card_type} | |
100 | {$credit_card_number} | |
101 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
102 | {/if} | |
103 | {/if} | |
104 | ||
105 | {if $customValues} | |
106 | =========================================================== | |
107 | {ts}Membership Options{/ts} | |
108 | ||
109 | =========================================================== | |
110 | {foreach from=$customValues item=value key=customName} | |
111 | {$customName} : {$value} | |
112 | {/foreach} | |
113 | {/if} |