[Fix] Resolved the type issue of 'is_saved' flag variable
This commit is contained in:
parent
a2076a1ff0
commit
cbbee47625
@ -92,7 +92,7 @@ def submit_invoice(doc,is_saved):
|
|||||||
if isinstance(doc, basestring):
|
if isinstance(doc, basestring):
|
||||||
args = json.loads(doc)
|
args = json.loads(doc)
|
||||||
|
|
||||||
if(is_saved == 1):
|
if(int(is_saved) == 1):
|
||||||
doc = frappe.get_doc('Sales Invoice',args["name"])
|
doc = frappe.get_doc('Sales Invoice',args["name"])
|
||||||
else:
|
else:
|
||||||
doc = frappe.new_doc('Sales Invoice')
|
doc = frappe.new_doc('Sales Invoice')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user