diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index 62d8247590..1031b77596 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -19,7 +19,7 @@ frappe.pages['pos'].refresh = function (wrapper) { erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ init: function (wrapper) { - this.page_len = 2; + this.page_len = 20; this.page = wrapper.page; this.wrapper = $(wrapper).find('.page-content'); this.set_indicator(); @@ -442,8 +442,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ me.toggle_more_btn(); this.wrapper.on("click", ".btn-more", function() { - console.log('asdf') - me.page_len += 2; + me.page_len += 20; me.items = me.get_items(); me.make_item_list(); me.toggle_more_btn(); @@ -580,10 +579,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ // this.list_customers.empty(); this.si_docs = this.get_doc_from_localstorage(); - if (!this.si_docs.length) {fv - this.list_customers.append( - '
" +__("Not items found")+"
").appendTo($wrap) @@ -1376,7 +1373,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ set_primary_action: function () { var me = this; - this.page.set_primary_action(__("Add Customer"), function () { + this.page.set_primary_action(__("New Order"), function () { me.save_previous_entry(); me.create_new(); me.refresh(); @@ -1391,7 +1388,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ // me.make_payment(); // }, "fa fa-credit-card"); } else if (this.frm.doc.docstatus == 1) { - this.page.set_primary_action(__("Print"), function () { + this.page.set_secondary_action(__("Print"), function () { html = frappe.render(me.print_template_data, me.frm.doc) me.print_document(html) }) diff --git a/erpnext/public/css/erpnext.css b/erpnext/public/css/erpnext.css index f59883d407..c58733ac1c 100644 --- a/erpnext/public/css/erpnext.css +++ b/erpnext/public/css/erpnext.css @@ -334,10 +334,13 @@ body[data-route="pos"] .modal-dialog { position: relative; } .pos .item-list .price-info { + width: 99%; + text-align: center; position: absolute; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.1); + margin: 2px 1px 2px 2px; + background-color: rgba(162, 161, 161, 0.1); padding: 9px 15px; } .pos-bill-toolbar { diff --git a/erpnext/public/less/erpnext.less b/erpnext/public/less/erpnext.less index 214130bfea..0635539451 100644 --- a/erpnext/public/less/erpnext.less +++ b/erpnext/public/less/erpnext.less @@ -400,10 +400,13 @@ body[data-route="pos"] .modal-dialog { } .price-info { + width: 99%; + text-align: center; position: absolute; right: 0; bottom: 0; - background-color: rgba(0, 0, 0, 0.1); + margin: 2px 1px 2px 2px; + background-color: rgba(162, 161, 161, 0.1); padding: 9px 15px; } }