fix(Bank Transaction): error in party matching should not block submitting (backport #44416) (#44574)

fix(Bank Transaction): error in party matching should not block submitting (#44416)

(cherry picked from commit 72256565bb)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2024-12-06 11:57:48 +01:00
committed by GitHub
parent f4cdf02e85
commit 31c2b818bd

View File

@@ -208,13 +208,17 @@ class BankTransaction(Document):
if self.party_type and self.party: if self.party_type and self.party:
return return
result = AutoMatchParty( result = None
bank_party_account_number=self.bank_party_account_number, try:
bank_party_iban=self.bank_party_iban, result = AutoMatchParty(
bank_party_name=self.bank_party_name, bank_party_account_number=self.bank_party_account_number,
description=self.description, bank_party_iban=self.bank_party_iban,
deposit=self.deposit, bank_party_name=self.bank_party_name,
).match() description=self.description,
deposit=self.deposit,
).match()
except Exception:
frappe.log_error(title=_("Error in party matching for Bank Transaction {0}").format(self.name))
if not result: if not result:
return return