From 86ab6a93b4b420b2f2894cfa93102649565332fe Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 24 Feb 2017 18:02:50 +0530 Subject: [PATCH] [Enhancement] POS, numeric keypad --- erpnext/accounts/page/pos/pos.js | 9 ++++ erpnext/public/css/erpnext.css | 15 ++++-- erpnext/public/js/pos/pos.html | 86 +++++++------------------------- erpnext/public/less/erpnext.less | 16 ++++-- 4 files changed, 51 insertions(+), 75 deletions(-) diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 862b98744e..7e14ec824a 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -954,6 +954,15 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ me.set_item_details(item_code, "rate", $(this).val()); }) }, + + get_child_item: function(item_code) { + var me = this; + return $.map(me.frm.doc.items, function(doc){ + if(doc.item_code == item_code) { + return doc + } + }) + }, render_selected_item: function() { doc = this.get_child_item(this.item_code); diff --git a/erpnext/public/css/erpnext.css b/erpnext/public/css/erpnext.css index 838d2604e4..b76d36ee56 100644 --- a/erpnext/public/css/erpnext.css +++ b/erpnext/public/css/erpnext.css @@ -137,13 +137,20 @@ .pos-keyboard-key, .delete-btn { border: 1px solid #d1d8dd; - height: 85px; - width: 85px; - margin: 10px 10px; - font-size: 24px; + height: 69px; + width: 69px; + font-size: 20px; font-weight: 200; background-color: #FDFDFD; border-color: #e8e8e8; + margin-left: -4px; +} +.pos-pay { + height: 69px; + width: 69px; + font-size: 17px; + font-weight: 200; + margin-left: -4px; } .numeric-keypad { height: 60px; diff --git a/erpnext/public/js/pos/pos.html b/erpnext/public/js/pos/pos.html index 17d1a5fd91..aa9e80aaac 100644 --- a/erpnext/public/js/pos/pos.html +++ b/erpnext/public/js/pos/pos.html @@ -1,71 +1,23 @@
-
-
-
Item Cart
-
-
-
- - - {{ __("Item Name")}} - - {{ __("Quantity") }} - {{ __("Discount") }} - {{ __("Rate") }} -
-
-
- - -

Tap items to add them here

-
+
+
+
+
{%= __("Net Total") %}
+
+
+
+
+
{%= __("Taxes") %}
+
-
-
-
-
-
-
-
-
-
-
{%= __("Net Total") %}
-
-
-
-
-
-
{%= __("Taxes") %}
-
-
- {% if (apply_discount_on) { %} -
-
{%= __("Discount") %}
-
-
- % - -
-
-
-
- {%= get_currency_symbol(currency) %} - -
-
-
- {% } %} -
-
-
{%= __("Grand Total") %}
-
-
-
- -
-
+
+ {% if (apply_discount_on) { %} +
+
{%= __("Discount") %}
+
+
+ % +
-
\ No newline at end of file +
diff --git a/erpnext/public/less/erpnext.less b/erpnext/public/less/erpnext.less index 16857e3a69..8b1ecdc039 100644 --- a/erpnext/public/less/erpnext.less +++ b/erpnext/public/less/erpnext.less @@ -199,13 +199,21 @@ .pos-keyboard-key, .delete-btn { border: 1px solid #d1d8dd; - height:85px; - width:85px; - margin:10px 10px; - font-size:24px; + height:69px; + width:69px; + font-size:20px; font-weight:200; background-color: #FDFDFD; border-color: #e8e8e8; + margin-left:-4px; +} + +.pos-pay { + height:69px; + width:69px; + font-size:17px; + font-weight:200; + margin-left:-4px; }