Add get_balance to nettokom
This commit is contained in:
parent
80e9c2638e
commit
3a0e3b4028
2 changed files with 14 additions and 3 deletions
|
|
@ -18,8 +18,10 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.capabilities.bill import Subscription
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
from weboob.tools.browser import BasePage
|
||||
from datetime import date
|
||||
from decimal import Decimal
|
||||
|
||||
__all__ = ['HomePage']
|
||||
|
||||
|
|
@ -48,6 +50,7 @@ class HomePage(BasePage):
|
|||
subscription.subscriber = unicode(owner)
|
||||
expiredate = date(*reversed([int(x) for x in expiredate.split(".")]))
|
||||
subscription.validity = expiredate
|
||||
subscription._balance = Decimal(FrenchTransaction.clean_amount(credit))
|
||||
|
||||
l.append(subscription)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue