mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 06: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
|
invoice.doctype, invoice.name, invoice.release_date
|
||||||
)
|
)
|
||||||
if invoice.release_date
|
if invoice.release_date
|
||||||
else _("{0} {1} is blocked.").format(
|
else _("{0} {1} is blocked.").format(invoice.doctype, invoice.name)
|
||||||
invoice.doctype, invoice.name, invoice.release_date
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
frappe.throw(msg)
|
frappe.throw(msg)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user