more whitespace -remove trailing spaces
[civicrm-core.git] / xml / templates / message_templates / membership_offline_receipt_html.tpl
index d3a6daacce78948b61422ac63496b242b7b753b6..039b659f54f5df63dce2fee35ee21e3f70e24e12 100644 (file)
             <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>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+         <td>&nbsp;{$value|crmMoney:$currency}</td>
+        {elseif  $priceset == 0}
+         <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
+         <td>&nbsp;{$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}