From a4df1058136753f6c5afe0f06fe2be584cb8d6c4 Mon Sep 17 00:00:00 2001 From: Anupam Date: Thu, 24 Sep 2020 13:21:54 +0530 Subject: [PATCH] fix: UI fixes --- .../templates/includes/transaction_row.html | 2 +- erpnext/templates/pages/order.html | 98 +++++++++---------- 2 files changed, 49 insertions(+), 51 deletions(-) diff --git a/erpnext/templates/includes/transaction_row.html b/erpnext/templates/includes/transaction_row.html index c3b717d093..fd4835ed99 100644 --- a/erpnext/templates/includes/transaction_row.html +++ b/erpnext/templates/includes/transaction_row.html @@ -15,7 +15,7 @@
{% if doc.doctype == "Quotation" and not doc.docstatus %} - {{ _("Pending For Approval") }} + {{ _("Pending") }} {% else %} {{ doc.get_formatted("grand_total") }} {% endif %} diff --git a/erpnext/templates/pages/order.html b/erpnext/templates/pages/order.html index 19a10279bc..01b5f6df6c 100644 --- a/erpnext/templates/pages/order.html +++ b/erpnext/templates/pages/order.html @@ -12,23 +12,21 @@ {% endblock %} {% block header_actions %} - {% if not(doc.doctype == "Quotation" and not doc.docstatus) %} - - {% endif %} + {% endblock %} {% block page_content %} @@ -36,7 +34,11 @@
- {{ _(doc.get('indicator_title')) or _(doc.status) or _("Submitted") }} + {% if doc.doctype == "Quotation" and not doc.docstatus %} + {{ _("Pending") }} + {% else %} + {{ _(doc.get('indicator_title')) or _(doc.status) or _("Submitted") }} + {% endif %}
@@ -66,46 +68,42 @@
- {% if doc.doctype == "Quotation" and not doc.docstatus %} - {{ _("Pending For Approval") }} - {% else %} -
-
-
- {{ _("Item") }} -
-
- {{ _("Quantity") }} -
-
- {{ _("Amount") }} -
+
+
+
+ {{ _("Item") }}
- {% 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") }}

-
+
+ {{ _("Quantity") }} +
+
+ {{ _("Amount") }}
- {% endfor %}
- + {% 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") }}

+
+
+ {% endfor %} +
+
{% include "erpnext/templates/includes/order/order_taxes.html" %}
- {% endif %}
{% if enabled_checkout and ((doc.doctype=="Sales Order" and doc.per_billed <= 0)