Commit dc070694 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[apivie] Skip 'Encours' transactions

One of the JSON transactions is not actually a transaction, just a
sum(up of the current account balance.
parent 678c0db1
......@@ -146,3 +146,8 @@ class HistoryPage(LoggedPage, JsonPage):
obj_label = CleanText(Dict('typeMouvement'))
obj_valuation = CleanDecimal.SI(Dict('montantOperation'))
obj_vdate = Date(CleanText(Dict('dateOperation')))
def validate(self, obj):
# Skip 'Encours' transactions, it is just an information
# about the current account balance
return 'Encours' not in obj.label
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