mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-11 05:31:48 +00:00
fix(journal_entry): validation message for blocked purchase invoice (#57896)
This commit is contained in:
@@ -912,9 +912,7 @@ class JournalEntry(AccountsController):
|
||||
invoice.doctype, invoice.name, invoice.release_date
|
||||
)
|
||||
if invoice.release_date
|
||||
else _("{0} {1} is blocked.").format(
|
||||
invoice.doctype, invoice.name, invoice.release_date
|
||||
)
|
||||
else _("{0} {1} is blocked.").format(invoice.doctype, invoice.name)
|
||||
)
|
||||
frappe.throw(msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user