{% extends "templates/web.html" %} {% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %} {% block breadcrumbs %} {% include "templates/includes/breadcrumbs.html" %} {% endblock %} {% block title %}{{ doc.name }}{% endblock %} {% block header %}

{{ doc.name }}

{% endblock %} {% block header_actions %} {{ _("Print") }} {% endblock %} {% block page_content %}
{{ _(doc.indicator_title) or _(doc.status) or _("Submitted") }}
{{ frappe.utils.formatdate(doc.transaction_date, 'medium') }} {% if doc.valid_till %}

{{ _("Valid Till") }}: {{ frappe.utils.formatdate(doc.valid_till, 'medium') }}

{% endif %}

{% if doc.doctype == 'Supplier Quotation' %} {{ doc.supplier_name}} {% else %} {{ doc.customer_name}} {% endif %} {% if doc.contact_display %}
{{ doc.contact_display }} {% endif %}

{% if doc._header %} {{ doc._header }} {% endif %}
{{ _("Item") }}
{{ _("Quantity") }}
{{ _("Amount") }}
{% for d in doc.items %}
{{ item_name_and_description(d) }}
{{ d.qty }} {% if d.delivered_qty is defined and d.delivered_qty != None %}

{{ _("Delivered: {0}").format(d.delivered_qty) }}

{% endif %}
{{ d.get_formatted("amount") }}

{{ _("@ {0}").format(d.get_formatted("rate")) }}

{% endfor %}
{% include "erpnext/templates/includes/order/order_taxes.html" %}
{% if enabled_checkout %} {% if (doc.doctype=="Sales Order" and doc.per_billed <= 0) or (doc.doctype=="Sales Invoice" and doc.outstanding_amount > 0) %} {% endif %} {% endif %}
{% if attachments %}
{{ _("Attachments") }}
{% for attachment in attachments %}

{{ attachment.file_name }}

{% endfor %}
{% endif %}
{% if doc.terms %}

{{ doc.terms }}

{% endif %} {% endblock %}