mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-05 19:42:45 +00:00
fix: rename journal entry title on update
(cherry picked from commit acb9829159)
This commit is contained in:
@@ -147,8 +147,8 @@ class JournalEntry(AccountsController):
|
|||||||
|
|
||||||
if self.docstatus == 0:
|
if self.docstatus == 0:
|
||||||
self.apply_tax_withholding()
|
self.apply_tax_withholding()
|
||||||
|
if self.is_new() or 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])
|
||||||
@@ -1045,6 +1045,7 @@ class JournalEntry(AccountsController):
|
|||||||
def set_print_format_fields(self):
|
def set_print_format_fields(self):
|
||||||
bank_amount = party_amount = total_amount = 0.0
|
bank_amount = party_amount = total_amount = 0.0
|
||||||
currency = bank_account_currency = party_account_currency = pay_to_recd_from = None
|
currency = bank_account_currency = party_account_currency = pay_to_recd_from = None
|
||||||
|
self.pay_to_recd_from = pay_to_recd_from
|
||||||
party_type = None
|
party_type = None
|
||||||
for d in self.get("accounts"):
|
for d in self.get("accounts"):
|
||||||
if d.party_type in ["Customer", "Supplier"] and d.party:
|
if d.party_type in ["Customer", "Supplier"] and d.party:
|
||||||
|
|||||||
Reference in New Issue
Block a user