</td>
</tr>
{/if}
- {if $trxn_id}
+ {if !empty($trxn_id)}
<tr>
<td {$labelStyle}>
{ts}Transaction #{/ts}
</td>
</tr>
{/if}
- {if $paidBy}
+ {if !empty($paidBy)}
<tr>
<td {$labelStyle}>
{ts}Paid By{/ts}
</td>
</tr>
{/if}
- {if $checkNumber}
+ {if !empty($checkNumber)}
<tr>
<td {$labelStyle}>
{ts}Check Number{/ts}
<tr>
<th {$headerStyle}>{ts}Contribution Details{/ts}</th>
</tr>
+ {if isset($totalAmount)}
<tr>
<td {$labelStyle}>
{ts}Total Fee{/ts}
{$totalAmount|crmMoney}
</td>
</tr>
+ {/if}
+ {if isset($totalPaid)}
<tr>
<td {$labelStyle}>
{ts}Total Paid{/ts}
{$totalPaid|crmMoney}
</td>
</tr>
+ {/if}
+ {if isset($amountOwed)}
<tr>
<td {$labelStyle}>
{ts}Balance Owed{/ts}
{$amountOwed|crmMoney}
</td> {* This will be zero after final payment. *}
</tr>
+ {/if}
</table>
</td>
<tr>
<td>
<table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
- {if $billingName || $address}
+ {if !empty($billingName) || !empty($address)}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
</tr>
<tr>
<td colspan="2" {$valueStyle}>
- {$billingName}<br />
- {$address|nl2br}
+ {if !empty($billingName)}{$billingName}{/if}<br />
+ {if !empty($address)}{$address|nl2br}{/if}
</td>
</tr>
{/if}
- {if $credit_card_number}
+ {if !empty($credit_card_number)}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
-{if $trxn_id}
+{if !empty($trxn_id)}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
-{if $paidBy}
+{if !empty($paidBy)}
{ts}Paid By{/ts}: {$paidBy}
{/if}
-{if $checkNumber}
+{if !empty($checkNumber)}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{ts}Contribution Details{/ts}
===============================================================================
+{if isset($totalAmount)}
{ts}Total Fee{/ts}: {$totalAmount|crmMoney}
+{/if}
+{if isset($totalPaid)}
{ts}Total Paid{/ts}: {$totalPaid|crmMoney}
+{/if}
+{if isset($amountOwed)}
{ts}Balance Owed{/ts}: {$amountOwed|crmMoney} {* This will be zero after final payment. *}
+{/if}
-{if $billingName || $address}
+{if !empty($billingName) || !empty($address)}
===============================================================================
{ts}Billing Name and Address{/ts}
===============================================================================
-
+{if !empty($billingName)}
{$billingName}
+{/if}
+{if !empty($address)}
{$address}
{/if}
+{/if}
-{if $credit_card_number}
+{if !empty($credit_card_number)}
===========================================================
{ts}Credit Card Information{/ts}
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
-{if $event.participant_role}
+{if !empty($event.participant_role)}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
-{if $isShowLocation}
+{if !empty($isShowLocation)}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
-{if $location.phone.1.phone || $location.email.1.email}
+{if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}