{% for key in headers %} {% if loop.first %} {% else %} {% endif %} {% endfor%} {% for taxes in itemised_tax_data %} {% for tax_account in tax_accounts %} {% set tax_details = taxes.get(tax_account) %} {% if tax_details %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ key }}{{ key }}
{{ taxes.item }} {% if doc.get('is_return') %} {{ frappe.utils.fmt_money(taxes.taxable_amount |abs, None, doc.currency) }} {% else %} {{ frappe.utils.fmt_money(taxes.taxable_amount, None, doc.currency) }} {% endif %} {% if tax_details.tax_rate or not tax_details.tax_amount %} ({{ tax_details.tax_rate }}%) {% endif %} {% if doc.get('is_return') %} {{ frappe.utils.fmt_money((tax_details.tax_amount / doc.conversion_rate)|abs, None, doc.currency) }} {% else %} {{ frappe.utils.fmt_money(tax_details.tax_amount / doc.conversion_rate, None, doc.currency) }} {% endif %}