mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
fix: mandatory on hold comment for purchase invoice (#20666)
This commit is contained in:
@@ -1058,7 +1058,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)
|
||||
|
||||
Reference in New Issue
Block a user