Commit 81232329 authored by Antoine BOSSY's avatar Antoine BOSSY

[amundi] Compute correctly the amount of reimboursements.

parent c982a99c
Pipeline #2328 created with stages
......@@ -116,7 +116,10 @@ class AccountHistoryPage(LoggedPage, JsonPage):
if ('nomDispositif' in ins and 'montantNet' in ins and 'codeDispositif' in ins
and '%s%s' % (ins['nomDispositif'], ins['codeDispositif'])
== '%s%s' % (account.label,
amount += ins['montantNet']
if ins['type'] == 'RACH_TIT':
amount -= ins['montantNet']
amount += ins['montantNet']
return CleanDecimal().filter(amount)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment