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

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
Saqib
2020-02-20 12:30:35 +05:30
committed by GitHub
parent 2d2aa7d664
commit 8903258362

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)