diff --git a/erpnext/public/js/shopping_cart.js b/erpnext/public/js/shopping_cart.js index 9d16c62ea8..40f5b98e36 100644 --- a/erpnext/public/js/shopping_cart.js +++ b/erpnext/public/js/shopping_cart.js @@ -68,6 +68,10 @@ $.extend(shopping_cart, { if(parseInt(cart_count) === 0 || cart_count === undefined) { $cart.css("display", "none"); + $(".cart-items").html('Cart is Empty'); + $(".cart-tax-items").hide(); + $(".btn-place-order").hide(); + $(".cart-addresses").hide(); } else { $cart.css("display", "inline"); diff --git a/erpnext/selling/doctype/quotation/quotation.json b/erpnext/selling/doctype/quotation/quotation.json index 123686df61..037f1e848d 100644 --- a/erpnext/selling/doctype/quotation/quotation.json +++ b/erpnext/selling/doctype/quotation/quotation.json @@ -3,6 +3,7 @@ "allow_import": 1, "allow_rename": 0, "autoname": "naming_series:", + "beta": 0, "creation": "2013-05-24 19:29:08", "custom": 0, "docstatus": 0, @@ -922,7 +923,7 @@ "print_hide_if_no_value": 0, "read_only": 0, "report_hide": 0, - "reqd": 1, + "reqd": 0, "search_index": 0, "set_only_once": 0, "unique": 0, @@ -2131,7 +2132,7 @@ "istable": 0, "max_attachments": 1, "menu_index": 0, - "modified": "2016-04-14 12:28:39.092593", + "modified": "2016-05-10 12:16:13.978635", "modified_by": "Administrator", "module": "Selling", "name": "Quotation", @@ -2302,6 +2303,7 @@ "write": 0 } ], + "quick_entry": 0, "read_only": 0, "read_only_onload": 1, "search_fields": "status,transaction_date,customer,lead,order_type", diff --git a/erpnext/templates/includes/cart.js b/erpnext/templates/includes/cart.js index 2a6570f052..d56721defc 100644 --- a/erpnext/templates/includes/cart.js +++ b/erpnext/templates/includes/cart.js @@ -16,7 +16,6 @@ $.extend(shopping_cart, { shopping_cart.bind_address_select(); shopping_cart.bind_place_order(); shopping_cart.bind_change_qty(); - shopping_cart.bind_remove_item(); }, @@ -63,7 +62,6 @@ $.extend(shopping_cart, { btn: this, callback: function(r) { frappe.unfreeze(); - location.reload(); if(!r.exc) { $(".cart-items").html(r.message.items); $(".cart-tax-items").html(r.message.taxes); diff --git a/erpnext/templates/includes/cart/cart_items.html b/erpnext/templates/includes/cart/cart_items.html index 1445e21887..976467d3fa 100644 --- a/erpnext/templates/includes/cart/cart_items.html +++ b/erpnext/templates/includes/cart/cart_items.html @@ -1,7 +1,7 @@ {% from "erpnext/templates/includes/order/order_macros.html" import item_name_and_description %} {% for d in doc.items %} -
+
{{ item_name_and_description(d) }}
@@ -18,7 +18,7 @@
-
+
{{ item_name_and_description(d) }}
diff --git a/erpnext/templates/pages/cart.html b/erpnext/templates/pages/cart.html index 229d6d6b96..7d8d0ff728 100644 --- a/erpnext/templates/pages/cart.html +++ b/erpnext/templates/pages/cart.html @@ -22,54 +22,57 @@ {% from "templates/includes/macros.html" import item_name_and_description %}
- -
-
- {{ _("Item") }} +
+ +
+
+
+ {{ _("Item") }} +
+
+ {{ _("Qty") }} +
+
+ {{ _("Subtotal") }} +
+
+ {% if doc.items %} +
+ {% include "templates/includes/cart/cart_items.html" %} +
+ {% else %} +

{{ _("Cart is Empty") }}

+ {% endif %}
-
- {{ _("Qty") }} + {% if doc.items %} + +
+
+
+ {% include "templates/includes/order/order_taxes.html" %} +
-
- {{ _("Subtotal") }} -
-
- {% if doc.items %} -
- {% include "templates/includes/cart/cart_items.html" %} -
- {% else %} -

{{ _("Cart is Empty") }}

- {% endif %} - {% if doc.items %} - -
-
-
- {% include "templates/includes/order/order_taxes.html" %} + {% if doc.tc_name %} + + + {% endif %} + +
+ {% include "templates/includes/cart/cart_address.html" %}
+ + + {% endif %}
- - {% if doc.tc_name %} - - - {% endif %} - -
- {% include "templates/includes/cart/cart_address.html" %} -
- - - {% endif %}