Commit 9b1de2fd authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by ntome

[caissedepargne] Skip transactions without amount for Life Insurances

Some transactions have no amount value, for example "Avenant de clause
bénéficiaire", which is not even a transaction (but is still in the
JSON).

Closes: 12553@zendesk, 12923@zendesk, 43857@sibi
parent d31e4118
......@@ -1224,6 +1224,10 @@ class LifeInsuranceHistory(LoggedPage, JsonPage):
class item(ItemElement):
klass = Transaction
def condition(self):
# Eliminate transactions without amount
return Dict('montantBrut')(self)
obj_raw = Transaction.Raw(Dict('type/libelleLong'))
obj_amount = Eval(float_to_decimal, Dict('montantBrut/valeur'))
......
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