Fix and improve shopping cart (#9348)

* Fix and improve shopping cart

* Update shopping_cart.js

* Update shopping_cart.js
This commit is contained in:
Britlog
2017-06-20 09:21:32 +02:00
committed by Rushabh Mehta
parent 22773a29f7
commit faf75c4ddd
6 changed files with 25 additions and 14 deletions

View File

@@ -100,7 +100,7 @@ def get_product_list_for_group(product_group=None, start=0, limit=10, search=Non
or name like %(search)s)"""
search = "%" + cstr(search) + "%"
query += """order by weightage desc, modified desc limit %s, %s""" % (start, limit)
query += """order by weightage desc, item_name, modified desc limit %s, %s""" % (start, limit)
data = frappe.db.sql(query, {"product_group": product_group,"search": search, "today": nowdate()}, as_dict=1)