fix: mandatory on hold comment for purchase invoice (#20667)

This commit is contained in:
Saqib
2020-02-20 12:33:07 +05:30
committed by GitHub
parent 8e80c17602
commit ae9159fbd8

View File

@@ -1015,7 +1015,7 @@ def unblock_invoice(name):
@frappe.whitelist()
def block_invoice(name, hold_comment, release_date):
def block_invoice(name, release_date, hold_comment=None):
if frappe.db.exists('Purchase Invoice', name):
pi = frappe.get_doc('Purchase Invoice', name)
pi.block_invoice(hold_comment, release_date)