From 50cdb4ac1d74237482bc5a4c1c5e00d61e55dc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 22 Jun 2026 11:14:23 +0200 Subject: [PATCH] Use entry amount when amount is missing from details Closes #14904 (grafted from d7c4e8ae89e4b289fb5cf244946787793454ec3e) --HG-- branch : 8.0 --- modules/account_statement_sepa/account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/account_statement_sepa/account.py b/modules/account_statement_sepa/account.py index e5b1417739..0235152a41 100644 --- a/modules/account_statement_sepa/account.py +++ b/modules/account_statement_sepa/account.py @@ -73,7 +73,8 @@ class StatementImport(metaclass=PoolMeta): return statement def _camt_amount(self, entry, detail=None): - if detail is not None: + if (detail is not None + and detail.find('./{*}AmtDtls/{*}TxAmt/{*}Amt') is not None): amount = Decimal(detail.findtext('./{*}AmtDtls/{*}TxAmt/{*}Amt')) else: amount = Decimal(entry.findtext('./{*}Amt'))