whitespace fixups
[civicrm-core.git] / xml / templates / message_templates / contribution_offline_receipt_html.tpl
index 56ae50f6c9df71a23a169c9d5320376e238c3284..829afa01e33bfe4506c7a4b6c494a5fb645a9c8c 100644 (file)
@@ -82,7 +82,7 @@
               </td>
               {if $line.tax_rate != "" || $line.tax_amount != ""}
                 <td>
-                  {$line.tax_rate}%
+                  {$line.tax_rate|string_format:"%.2f"}%
                 </td>
                 <td>
                   {$line.tax_amount|crmMoney:$currency}
       {foreach from=$dataArray item=value key=priceset}
         <tr>
         {if $priceset ||  $priceset == 0 || $value != ''}
-          <td>&nbsp;{$taxTerm} {$priceset}%</td>    
+          <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
           <td>&nbsp;{$value|crmMoney:$currency}</td>
         {else}
           <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
       {/foreach}
      {/if}
 
-     {if $getTaxDetails && $totalTaxAmount}
+     {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'}
       <tr>
         <td {$labelStyle}>
           {ts}Total Tax Amount{/ts}