fix: update journal entry title on amend

This commit is contained in:
ravibharathi656
2025-06-20 17:47:09 +05:30
parent 4aa4942a17
commit 4a3ee4df29

View File

@@ -148,8 +148,7 @@ class JournalEntry(AccountsController):
if self.docstatus == 0: if self.docstatus == 0:
self.apply_tax_withholding() self.apply_tax_withholding()
if not self.title: self.title = self.get_title()
self.title = self.get_title()
def validate_advance_accounts(self): def validate_advance_accounts(self):
journal_accounts = set([x.account for x in self.accounts]) journal_accounts = set([x.account for x in self.accounts])