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 938c05d31ad..4a5637d6968 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')