Skip to content

Commit 4a2163e

Browse files
mergify[bot]diptanilsaharehanrehman389
authored
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>
1 parent 0a9b632 commit 4a2163e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/accounts/doctype/journal_entry/journal_entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def validate(self):
162162

163163
JournalTaxWithholding(self).on_validate()
164164

165-
if self.is_new() or not self.title:
165+
if not self.title or (self.is_new() and self.amended_from):
166166
self.title = self.get_title()
167167

168168
def validate_advance_accounts(self):

0 commit comments

Comments
 (0)