Merge pull request #18158 from mattwire/createProfileContact
[civicrm-core.git] / xml / templates / message_templates / membership_offline_receipt_text.tpl
1 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
2
3 {if !empty($formValues.receipt_text_signup)}
4 {$formValues.receipt_text_signup}
5 {elseif !empty($formValues.receipt_text_renewal)}
6 {$formValues.receipt_text_renewal}
7 {else}{ts}Thank you for this contribution.{/ts}{/if}
8
9 {if empty($lineItem)}
10 ===========================================================
11 {ts}Membership Information{/ts}
12
13 ===========================================================
14 {ts}Membership Type{/ts}: {$membership_name}
15 {/if}
16 {if empty($cancelled)}
17 {if empty($lineItem)}
18 {ts}Membership Start Date{/ts}: {$mem_start_date}
19 {ts}Membership End Date{/ts}: {$mem_end_date}
20 {/if}
21
22 {if $formValues.total_amount OR $formValues.total_amount eq 0 }
23 ===========================================================
24 {ts}Membership Fee{/ts}
25
26 ===========================================================
27 {if !empty($formValues.contributionType_name)}
28 {ts}Financial Type{/ts}: {$formValues.contributionType_name}
29 {/if}
30 {if !empty($lineItem)}
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}
34 {if !empty($dataArray)}
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}
40 {capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
41 {capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
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"}
43 --------------------------------------------------------------------------------------------------
44
45 {foreach from=$value item=line}
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"}
47 {/foreach}
48 {/foreach}
49
50 {if !empty($dataArray)}
51 {ts}Amount before Tax{/ts}: {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
52
53 {foreach from=$dataArray item=value key=priceset}
54 {if $priceset}
55 {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"} %: {$value|crmMoney:$currency}
56 {elseif $priceset == 0}
57 {ts}No{/ts} {if isset($taxTerm)}{$taxTerm}{/if}: {$value|crmMoney:$currency}
58 {/if}
59 {/foreach}
60 {/if}
61 --------------------------------------------------------------------------------------------------
62 {/if}
63
64 {if isset($totalTaxAmount)}
65 {ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
66 {/if}
67
68 {ts}Amount{/ts}: {$formValues.total_amount|crmMoney}
69 {if !empty($receive_date)}
70 {ts}Date Received{/ts}: {$receive_date|truncate:10:''|crmDate}
71 {/if}
72 {if !empty($formValues.paidBy)}
73 {ts}Paid By{/ts}: {$formValues.paidBy}
74 {if !empty($formValues.check_number)}
75 {ts}Check Number{/ts}: {$formValues.check_number}
76 {/if}
77 {/if}
78 {/if}
79 {/if}
80
81 {if !empty($isPrimary) }
82 {if !empty($billingName)}
83
84 ===========================================================
85 {ts}Billing Name and Address{/ts}
86
87 ===========================================================
88 {$billingName}
89 {$address}
90 {/if}
91
92 {if !empty($credit_card_type)}
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
103 {if !empty($customValues)}
104 ===========================================================
105 {ts}Membership Options{/ts}
106
107 ===========================================================
108 {foreach from=$customValues item=value key=customName}
109 {$customName} : {$value}
110 {/foreach}
111 {/if}