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