Better balance informations
This commit is contained in:
parent
d1714c0fb0
commit
a0856cb74c
2 changed files with 5 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
from weboob.capabilities.bill import ICapBill, SubscriptionNotFound,\
|
||||
BillNotFound, Subscription, Bill
|
||||
from weboob.tools.backend import BaseBackend, BackendConfig
|
||||
from weboob.capabilities.base import Currency
|
||||
from weboob.tools.value import ValueBackendPassword
|
||||
|
||||
from .browser import Leclercmobile
|
||||
|
|
@ -103,5 +104,7 @@ class LeclercMobileBackend(BaseBackend, ICapBill):
|
|||
subscription = self.get_subscription(subscription)
|
||||
with self.browser:
|
||||
balance = self.browser.get_balance()
|
||||
balance.label = u"Balance %s" % subscription.id
|
||||
balance.id = "%s-balance" % subscription.id
|
||||
balance.currency = Currency.CUR_EUR
|
||||
return balance
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ class NettoKomBackend(BaseBackend, ICapBill):
|
|||
if not isinstance(subscription, Subscription):
|
||||
subscription = self.get_subscription(subscription)
|
||||
balance = Detail()
|
||||
balance.id = "%s-balance" % subscription.id
|
||||
balance.price = subscription._balance
|
||||
balance.label = u"Balance"
|
||||
balance.label = u"Balance %s" % subscription.id
|
||||
balance.currency = Currency.CUR_EUR
|
||||
return balance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue