</td>
</tr>
{/if}
- {if $formValues.total_amount}
+ {if $formValues.total_amount OR $formValues.total_amount eq 0 }
<tr>
<th {$headerStyle}>
{ts}Membership Fee{/ts}
<tr>
<th>{ts}Item{/ts}</th>
<th>{ts}Fee{/ts}</th>
+ {if $dataArray}
+ <th>{ts}SubTotal{/ts}</th>
+ <th>{ts}Tax Rate{/ts}</th>
+ <th>{ts}Tax Amount{/ts}</th>
+ <th>{ts}Total{/ts}</th>
+ {/if}
<th>{ts}Membership Start Date{/ts}</th>
<th>{ts}Membership End Date{/ts}</th>
</tr>
<td>
{$line.line_total|crmMoney}
</td>
+ {if $dataArray}
+ <td>
+ {$line.unit_price*$line.qty|crmMoney}
+ </td>
+ {if $line.tax_rate != "" || $line.tax_amount != ""}
+ <td>
+ {$line.tax_rate|string_format:"%.2f"}%
+ </td>
+ <td>
+ {$line.tax_amount|crmMoney}
+ </td>
+ {else}
+ <td></td>
+ <td></td>
+ {/if}
+ <td>
+ {$line.line_total+$line.tax_amount|crmMoney}
+ </td>
+ {/if}
<td>
{$line.start_date}
</td>
</td>
</tr>
{/foreach}
+ {if $dataArray}
+ <tr>
+ <td {$labelStyle}>
+ {ts}Amount Before Tax : {/ts}
+ </td>
+ <td {$valueStyle}>
+ {$formValues.total_amount-$totalTaxAmount|crmMoney}
+ </td>
+ </tr>
+ {foreach from=$dataArray item=value key=priceset}
+ <tr>
+ {if $priceset}
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$value|crmMoney:$currency}</td>
+ {elseif $priceset == 0}
+ <td> {ts}No{/ts} {$taxTerm}</td>
+ <td> {$value|crmMoney:$currency}</td>
+ {/if}
+ </tr>
+ {/foreach}
+ {/if}
{/if}
+ {if isset($totalTaxAmount)}
+ <tr>
+ <td {$labelStyle}>
+ {ts}Total Tax Amount{/ts}
+ </td>
+ <td {$valueStyle}>
+ {$totalTaxAmount|crmMoney:$currency}
+ </td>
+ </tr>
+ {/if}
<tr>
<td {$labelStyle}>
{ts}Amount{/ts}