mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
[Fix] Resolved the type issue of 'is_saved' flag variable
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user