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