{% for key in headers %} {% if loop.first %} {% else %} {% endif %} {% endfor%} {% for item, taxes in itemised_tax.items() %} {% for tax_account in tax_accounts %} {% set tax_details = taxes.get(tax_account) %} {% if tax_details %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ key }}{{ key }}
{{ item }} {{ frappe.utils.fmt_money(itemised_taxable_amount.get(item), None, company_currency) }} {% if tax_details.tax_rate or not tax_details.tax_amount %} ({{ tax_details.tax_rate }}%) {% endif %} {{ frappe.utils.fmt_money(tax_details.tax_amount, None, company_currency) }}