chore: fix linter issue
This commit is contained in:
@@ -856,7 +856,9 @@ class SerialBatchCreation:
|
||||
if not doc.get("entries"):
|
||||
return frappe._dict({})
|
||||
|
||||
if doc.voucher_no and frappe.get_cached_value(doc.voucher_type, doc.voucher_no, "docstatus") == 2:
|
||||
if (
|
||||
doc.voucher_no and frappe.get_cached_value(doc.voucher_type, doc.voucher_no, "docstatus") == 2
|
||||
):
|
||||
doc.voucher_no = ""
|
||||
|
||||
doc.save()
|
||||
|
||||
Reference in New Issue
Block a user