details: https://code.tryton.org/tryton/commit/9398ca2e3503
branch: 8.0
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
(grafted from d7c4e8ae89e4b289fb5cf244946787793454ec3e)
diffstat:
modules/account_statement_sepa/account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 7d45b8cc6580 -r 9398ca2e3503 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'))