{% 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 }} {% if doc.get('is_return') %} {{ frappe.utils.fmt_money((itemised_taxable_amount.get(item, 0))|abs, None, doc.currency) }} {% else %} {{ frappe.utils.fmt_money(itemised_taxable_amount.get(item, 0), 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 %}