Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-12-01-14-40-22
[civicrm-core.git] / templates / CRM / Price / Page / Field.tpl
index 81a711a41e07b2e63fb8c2c60e1b5e3c54f8dc75..28fdf69c330f321f8868da8d2bc64be6aa0c7a88 100644 (file)
           <th>{ts}Active On{/ts}</th>
           <th>{ts}Expire On{/ts}</th>
           <th>{ts}Price{/ts}</th>
+          {if $getTaxDetails}
+            <th>{ts}Tax Label{/ts}</th>
+            <th>{ts}Tax Amount{/ts}</th>
+          {/if}
           <th></th>
       </tr>
       </thead>
         <td>{if $row.active_on}{$row.active_on|date_format:"%Y-%m-%d %T"}{/if}</td>
         <td>{if $row.expire_on}{$row.expire_on|date_format:"%Y-%m-%d %T"}{/if}</td>
         <td>{if $row.html_type eq "Text"}{$row.price|crmMoney}{else}<a class="action-item" href="{crmURL p="civicrm/admin/price/field/option" q="action=browse&reset=1&sid=$sid&fid=$fid"}">{if $isReserved}{ts}View Price Options{/ts}{else}{ts}Edit Price Options{/ts}{/if}</a>{/if}</td>
+        {if $getTaxDetails}
+            <td>{if $row.tax_rate != '' && $row.html_type eq "Text / Numeric Quantity"}
+                    {$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%)
+                {/if}
+      </td>
+            <td>{if $row.html_type eq "Text / Numeric Quantity" }{$row.tax_amount|crmMoney}{/if}</td>
+        {/if}
         <td class="field-action">{$row.action|replace:'xx':$row.id}</td>
       </tr>
       {/foreach}