diff --git a/erpnext/templates/pages/order.html b/erpnext/templates/pages/order.html index f7775d5a283..a10870db278 100644 --- a/erpnext/templates/pages/order.html +++ b/erpnext/templates/pages/order.html @@ -12,175 +12,173 @@ {% endblock %} {% block header_actions %} -
- {{ _("Valid Till") }}: {{ frappe.utils.format_date(doc.valid_till, 'medium') }} -
- {% endif %} -
- {%- set party_name = doc.supplier_name if doc.doctype in ['Supplier Quotation', 'Purchase Invoice', 'Purchase Order'] else doc.customer_name %}
- {{ party_name }}
-
- {% if doc.contact_display and doc.contact_display != party_name %}
-
- {{ doc.contact_display }}
- {% 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") }} {{ d.delivered_qty }} +
+
+
+ {% if doc.doctype == "Quotation" and not doc.docstatus %}
+ {{ _("Pending") }}
+ {% else %}
+ {{ _(doc.get('indicator_title')) or _(doc.status) or _("Submitted") }}
{% endif %}
- |
-
- {{ d.get_formatted("amount") }}
- {{ _("Rate:") }} {{ d.get_formatted("rate") }} - |
-
Available Points: {{ available_loyalty_points }}
-- {{ attachment.file_name }} +
+ {{ _("Valid Till") }}: {{ frappe.utils.format_date(doc.valid_till, 'medium') }}
- {% endfor %} + {% endif %}{{ doc.terms }}
-
+ {%- set party_name = doc.supplier_name if doc.doctype in ['Supplier Quotation', 'Purchase Invoice', 'Purchase Order'] else doc.customer_name %}
+ {{ party_name }}
+
+ {% if doc.contact_display and doc.contact_display != party_name %}
+
+ {{ doc.contact_display }}
+ {% 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") }} {{ d.delivered_qty }} + {% endif %} + |
+
+ {{ d.get_formatted("amount") }}
+ {{ _("Rate:") }} {{ d.get_formatted("rate") }} + |
+
Available Points: {{ available_loyalty_points }}
+{{ doc.terms }}
+