From f0adbd2bd39087fe659998ac35443b86fa17c1be Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Sat, 8 Aug 2026 19:06:05 +0530 Subject: [PATCH] fix(journal_entry): validation message for blocked purchase invoice (#57896) --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 65db883c430..c4367223909 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -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)