fix: rename journal entry title on update

(cherry picked from commit acb9829159)
This commit is contained in:
ravibharathi656
2025-07-04 19:20:50 +05:30
committed by Mergify
parent d60d8a2625
commit b7b5f6acf3

View File

@@ -147,8 +147,8 @@ class JournalEntry(AccountsController):
if self.docstatus == 0:
self.apply_tax_withholding()
self.title = self.get_title()
if self.is_new() or not self.title:
self.title = self.get_title()
def validate_advance_accounts(self):
journal_accounts = set([x.account for x in self.accounts])
@@ -1045,6 +1045,7 @@ class JournalEntry(AccountsController):
def set_print_format_fields(self):
bank_amount = party_amount = total_amount = 0.0
currency = bank_account_currency = party_account_currency = pay_to_recd_from = None
self.pay_to_recd_from = pay_to_recd_from
party_type = None
for d in self.get("accounts"):
if d.party_type in ["Customer", "Supplier"] and d.party: