Skip to content

Commit 02118e7

Browse files
fix: preserve custom title on new JV (#57987)
Co-authored-by: rehanrehman389 <rehanrehman389@gmail.com>
1 parent 5b2952a commit 02118e7

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
@@ -180,7 +180,7 @@ def validate(self):
180180

181181
JournalTaxWithholding(self).on_validate()
182182

183-
if self.is_new() or not self.title:
183+
if not self.title or (self.is_new() and self.amended_from):
184184
self.title = self.get_title()
185185

186186
def validate_advance_accounts(self):

0 commit comments

Comments
 (0)