From b665baec7290fdc9438b110ecbac2f66b4f92757 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 23 Jan 2018 18:28:05 +0530 Subject: [PATCH] Used cint instead of int --- erpnext/selling/page/point_of_sale/point_of_sale.py | 3 ++- 1 file changed, 2 insertions(+), 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 4a5637d6968..4f0d2502362 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -4,6 +4,7 @@ from __future__ import unicode_literals import frappe, json from frappe.utils.nestedset import get_root_of +from frappe.utils import cint from erpnext.accounts.doctype.pos_profile.pos_profile import get_item_groups @frappe.whitelist() @@ -92,7 +93,7 @@ def submit_invoice(doc,is_saved): if isinstance(doc, basestring): args = json.loads(doc) - if(int(is_saved) == 1): + if(cint(is_saved) == 1): doc = frappe.get_doc('Sales Invoice',args["name"]) else: doc = frappe.new_doc('Sales Invoice')