From d7da89bf5a5e075753aae693c0c6f7ed1de361c6 Mon Sep 17 00:00:00 2001 From: deepak-mnt Date: Sat, 6 Jan 2018 19:32:45 +0530 Subject: [PATCH] [Fix] Resolved issues suggested by Codacy --- erpnext/selling/page/point_of_sale/point_of_sale.js | 8 ++++---- erpnext/selling/page/point_of_sale/point_of_sale.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js index 876f81a8bc..4c532a563f 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -480,17 +480,17 @@ erpnext.pos.PointOfSale = class PointOfSale { me.frm.doc["allow_print_before_pay"] = 0; return new Promise(resolve => { return this.frm.call({ - method: "erpnext.selling.page.point_of_sale.point_of_sale.fetch_pos_profile_detail", + method:"erpnext.selling.page.point_of_sale.point_of_sale.fetch_pos_profile_detail", args:{ - pos_profile : me.frm.doc.pos_profile - } + pos_profile:me.frm.doc.pos_profile + } }).then((r) => { me.frm.doc["allow_print_before_pay"] = r.message; this.set_form_action(); resolve(); }); }); - } + } prepare_menu() { var me = this; diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py index 6ff8fade23..c54f28a5b6 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -96,7 +96,7 @@ def submit_invoice(doc,islocal_dummy): doc = frappe.get_doc('Sales Invoice',args["name"]) else: doc = frappe.new_doc('Sales Invoice') - + doc.update(args) doc.run_method("set_missing_values") doc.run_method("calculate_taxes_and_totals")