chore: add none value

(cherry picked from commit 9e633bddef)
This commit is contained in:
ravibharathi656
2025-07-04 20:03:25 +05:30
committed by Mergify
parent b7b5f6acf3
commit f81dba6380

View File

@@ -1044,8 +1044,9 @@ 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
currency = (
bank_account_currency
) = party_account_currency = pay_to_recd_from = self.pay_to_recd_from = None
party_type = None
for d in self.get("accounts"):
if d.party_type in ["Customer", "Supplier"] and d.party: