Commit 02bb0b93 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon
Browse files

[societegenerale] fix coming

* coming balance is 0
* it can have several summary coming card transactions in future transactions list,
retrieve all coming transaction
parent 59a1e634
......@@ -151,6 +151,7 @@ def iter_cards(self, account):
card = Account() = card.number = el['numeroCompteFormate'].replace(' ', '')
card.label = el['labelToDisplay']
card.balance = Decimal('0')
card.coming = Decimal(str(el['montantProchaineEcheance']))
card.type = Account.TYPE_CARD
card.currency = account.currency
......@@ -275,13 +276,13 @@ def iter_coming(self, account):
if account.type == account.TYPE_CARD:
for transaction in
# coming transactions on this page are not in coming balance
# except for defered card coming transaction, use only for it for the moment
# coming transactions on this page are not include in coming balance
# use it only to retrive deferred card coming transactions
if transaction._card_coming:
for card_coming in transaction._card_coming: =
yield card_coming
for intraday_tr in
yield intraday_tr
Supports Markdown
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