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-07-17 12:32:31 +00:00
|
|
|
<th style="min-width: 120px;" class="text-left">{{ key }}</th>
|
|
|
|
{% else %}
|
|
|
|
<th style="min-width: 80px;" class="text-right">{{ key }}</th>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor%}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item, taxes in itemised_tax.items() %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ item }}</td>
|
|
|
|
<td class='text-right'>
|
|
|
|
{{ frappe.utils.fmt_money(itemised_taxable_amount.get(item), None, company_currency) }}
|
|
|
|
</td>
|
|
|
|
{% for tax_account in tax_accounts %}
|
|
|
|
{% set tax_details = taxes.get(tax_account) %}
|
|
|
|
{% if tax_details %}
|
|
|
|
<td class='text-right'>
|
|
|
|
({{ tax_details.tax_rate }})
|
|
|
|
{{ frappe.utils.fmt_money(tax_details.tax_amount, None, company_currency) }}
|
|
|
|
</td>
|
|
|
|
{% else %}
|
|
|
|
<td></td>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|