From 713af31edab09416a7142de4dc451ef05141e75b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:27:03 +0000 Subject: [PATCH] fix: preserve custom title on new JV (backport #57987) (#57988) Co-authored-by: rehanrehman389 Co-authored-by: Diptanil Saha --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 5337baed358..8acd5cf8587 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -154,7 +154,8 @@ class JournalEntry(AccountsController): if self.docstatus == 0: self.apply_tax_withholding() - if self.is_new() or not self.title: + + if not self.title or (self.is_new() and self.amended_from): self.title = self.get_title() def validate_advance_accounts(self):