From cbbee47625ac93a51098274a4c35b42f44d986d6 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Thu, 18 Jan 2018 02:46:08 +0530 Subject: [PATCH] [Fix] Resolved the type issue of 'is_saved' flag variable --- erpnext/selling/page/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 938c05d31a..4a5637d696 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -92,7 +92,7 @@ def submit_invoice(doc,is_saved): if isinstance(doc, basestring): args = json.loads(doc) - if(is_saved == 1): + if(int(is_saved) == 1): doc = frappe.get_doc('Sales Invoice',args["name"]) else: doc = frappe.new_doc('Sales Invoice')