From 6ee91ec9c6835e25dcea659067f3acd3fb24321b Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 21 Mar 2017 15:55:09 +0530 Subject: [PATCH] on selection of row highlight the background in the cart --- erpnext/accounts/page/pos/pos.js | 3 ++- erpnext/public/js/pos/pos_bill_item_new.html | 2 +- erpnext/public/js/pos/pos_selected_item.html | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index c02100029b5..8d9efeaf12d 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -1339,7 +1339,8 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ projected_qty: d.projected_qty, rate: format_number(d.rate, me.frm.doc.currency), enabled: me.pos_profile_data["allow_user_to_edit_rate"] ? true : false, - amount: format_currency(d.amount, me.frm.doc.currency) + amount: format_currency(d.amount, me.frm.doc.currency), + selected_class: (me.item_code == d.item_code) ? "active" : "" })).appendTo($items); }); diff --git a/erpnext/public/js/pos/pos_bill_item_new.html b/erpnext/public/js/pos/pos_bill_item_new.html index 80a33d49fca..cb626cefcea 100644 --- a/erpnext/public/js/pos/pos_bill_item_new.html +++ b/erpnext/public/js/pos/pos_bill_item_new.html @@ -1,4 +1,4 @@ -
+
{{ strip_html(__(item_name)) || item_code }} diff --git a/erpnext/public/js/pos/pos_selected_item.html b/erpnext/public/js/pos/pos_selected_item.html index dfc9915f041..65e4ef18b42 100644 --- a/erpnext/public/js/pos/pos_selected_item.html +++ b/erpnext/public/js/pos/pos_selected_item.html @@ -1,22 +1,22 @@
Quantity:
- +
Price List Rate:
- +
Discount:
- +
Price:
- -
+ +
Amount:
- +
\ No newline at end of file