{{ doc.name }}

{% if doc.name == _("Not Allowed") -%} {% else %}
{% if doc.status -%}{{ doc.status }}{%- endif %}
{{ frappe.utils.formatdate(doc.posting_date or doc.transaction_date) }}

{%- for row in doc.get({"doctype": doc.doctype + " Item"}) %} {% endfor -%}
Sr Item Name Description Qty UoM Basic Rate Amount
{{ row.idx }} {{ row.item_name }} {{ row.description }} {{ row.qty }} {{ row.stock_uom }} {{ frappe.utils.fmt_money(row.rate, currency=doc.currency) }} {{ frappe.utils.fmt_money(row.amount, currency=doc.currency) }}
{%- for charge in doc.get({"doctype":"Sales Taxes and Charges"}) -%} {%- if not charge.included_in_print_rate -%} {%- endif -%} {%- endfor -%}
Net Total {{ frappe.utils.fmt_money(doc.net_total/doc.conversion_rate, currency=doc.currency) }}
{{ charge.description }} {{ frappe.utils.fmt_money(charge.tax_amount / doc.conversion_rate, currency=doc.currency) }}
Grand Total {{ frappe.utils.fmt_money(doc.grand_total_export, currency=doc.currency) }}
Rounded Total {{ frappe.utils.fmt_money(doc.rounded_total_export, currency=doc.currency) }}
{%- endif %}