correctly strip currency code
This commit is contained in:
parent
baab7311b8
commit
cd629e511a
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class BredBrowser(DomainBrowser):
|
||||||
if poste['postePortefeuille']:
|
if poste['postePortefeuille']:
|
||||||
a.label = u'Portefeuille Titres'
|
a.label = u'Portefeuille Titres'
|
||||||
a.balance = Decimal(str(poste['montantTitres']['valeur']))
|
a.balance = Decimal(str(poste['montantTitres']['valeur']))
|
||||||
a.currency = poste['montantTitres']['monnaie']['code']
|
a.currency = poste['montantTitres']['monnaie']['code'].strip()
|
||||||
yield a
|
yield a
|
||||||
|
|
||||||
if not 'libelle' in poste:
|
if not 'libelle' in poste:
|
||||||
|
|
@ -81,7 +81,7 @@ class BredBrowser(DomainBrowser):
|
||||||
|
|
||||||
a.label = ' '.join([content['intitule'].strip(), poste['libelle'].strip()])
|
a.label = ' '.join([content['intitule'].strip(), poste['libelle'].strip()])
|
||||||
a.balance = Decimal(str(poste['solde']['valeur']))
|
a.balance = Decimal(str(poste['solde']['valeur']))
|
||||||
a.currency = poste['solde']['monnaie']['code']
|
a.currency = poste['solde']['monnaie']['code'].strip()
|
||||||
yield a
|
yield a
|
||||||
|
|
||||||
def get_history(self, account):
|
def get_history(self, account):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue