fix: mandatory on hold comment for purchase invoice (#20666)
This commit is contained in:
parent
f3acb6b79f
commit
cfe2db6d77
@ -1058,7 +1058,7 @@ def unblock_invoice(name):
|
|||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@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):
|
if frappe.db.exists('Purchase Invoice', name):
|
||||||
pi = frappe.get_doc('Purchase Invoice', name)
|
pi = frappe.get_doc('Purchase Invoice', name)
|
||||||
pi.block_invoice(hold_comment, release_date)
|
pi.block_invoice(hold_comment, release_date)
|
||||||
|
Loading…
Reference in New Issue
Block a user