details: https://code.tryton.org/tryton/commit/d7c4e8ae89e4
branch: default
user: Cédric Krier <[email protected]>
date: Mon Jun 22 11:14:23 2026 +0200
description:
Use entry amount when amount is missing from details
Closes #14904
diffstat:
modules/account_statement_sepa/account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r bb96325e829d -r d7c4e8ae89e4 modules/account_statement_sepa/account.py
--- a/modules/account_statement_sepa/account.py Fri Jun 26 15:17:14 2026 +0200
+++ b/modules/account_statement_sepa/account.py Mon Jun 22 11:14:23 2026 +0200
@@ -73,7 +73,8 @@
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'))