details: https://code.tryton.org/tryton/commit/4e7eb165d97d
branch: 7.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 b4fc865717be -r 4e7eb165d97d 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
@@ -80,7 +80,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'))