2017-07-17 12:32:31 +00:00
|
|
|
<div class="tax-break-up" style="overflow-x: auto;">
|
|
|
|
<table class="table table-bordered table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% for key in headers %}
|
2017-08-02 12:14:32 +00:00
|
|
|
{% if loop.first %}
|
2017-08-31 09:36:12 +00:00
|
|
|
<th class="text-left">{{ key }}</th>
|
2017-07-17 12:32:31 +00:00
|
|
|
{% else %}
|
2017-08-31 09:36:12 +00:00
|
|
|
<th class="text-right">{{ key }}</th>
|
2017-07-17 12:32:31 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor%}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item, taxes in itemised_tax.items() %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ item }}</td>
|
|
|
|
<td class='text-right'>
|
2018-05-14 08:49:31 +00:00
|
|
|
{{ frappe.utils.fmt_money(itemised_taxable_amount.get(item), None, currency) }}
|
2017-07-17 12:32:31 +00:00
|
|
|
</td>
|
|
|
|
{% for tax_account in tax_accounts %}
|
|
|
|
{% set tax_details = taxes.get(tax_account) %}
|
|
|
|
{% if tax_details %}
|
|
|
|
<td class='text-right'>
|
2017-08-24 10:52:28 +00:00
|
|
|
{% if tax_details.tax_rate or not tax_details.tax_amount %}
|
2018-05-14 08:49:31 +00:00
|
|
|
({{ tax_details.tax_rate }}%)
|
2017-08-24 10:52:28 +00:00
|
|
|
{% endif %}
|
2018-05-14 08:49:31 +00:00
|
|
|
{{ frappe.utils.fmt_money(tax_details.tax_amount / conversion_rate, None, currency) }}
|
2017-07-17 12:32:31 +00:00
|
|
|
</td>
|
|
|
|
{% else %}
|
|
|
|
<td></td>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|