{% extends base_template %} {% set title=doc.name %} {% block content %}

{{ doc.name }}

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

{%- for row in doclist.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 }} {{ utils.fmt_money(row.export_rate, currency=doc.currency) }} {{ utils.fmt_money(row.export_amount, currency=doc.currency) }}
{%- for charge in doclist.get({"doctype":"Sales Taxes and Charges"}) -%} {%- if not charge.included_in_print_rate -%} {%- endif -%} {%- endfor -%}
Net Total {{ utils.fmt_money(doc.net_total/doc.conversion_rate, currency=doc.currency) }}
{{ charge.description }} {{ utils.fmt_money(charge.tax_amount / doc.conversion_rate, currency=doc.currency) }}
Grand Total {{ utils.fmt_money(doc.grand_total_export, currency=doc.currency) }}
Rounded Total {{ utils.fmt_money(doc.rounded_total_export, currency=doc.currency) }}
{%- endif %}
{% endblock %}