fix: preserve custom title on new JV (backport #57987) (#57989)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
Co-authored-by: rehanrehman389 <rehanrehman389@gmail.com>
This commit is contained in:
mergify[bot]
2026-08-10 22:03:49 +05:30
committed by GitHub
parent 0a9b632925
commit 4a2163ebf8

View File

@@ -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):