Commit 9ae232f4 authored by Antoine BOSSY's avatar Antoine BOSSY Committed by ntome

[amundi] Compute correctly the amount of reimboursements.

parent 5826be3a
......@@ -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, account.id)):
amount += ins['montantNet']
if ins['type'] == 'RACH_TIT':
amount -= ins['montantNet']
else:
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