chore: fix linter issue

This commit is contained in:
rohitwaghchaure
2024-03-31 11:39:55 +05:30
committed by GitHub
parent 04da610288
commit 6ecafe7606

View File

@@ -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()