From 4a2163ebf8d3b25dfd49016f04c7e621b804a847 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 22:03:49 +0530 Subject: [PATCH] fix: preserve custom title on new JV (backport #57987) (#57989) Co-authored-by: Diptanil Saha Co-authored-by: rehanrehman389 --- erpnext/accounts/doctype/journal_entry/journal_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index c4367223909..331ed50dea3 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py @@ -162,7 +162,7 @@ class JournalEntry(AccountsController): JournalTaxWithholding(self).on_validate() - 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):