bnp investment fix
This commit is contained in:
parent
c4bf235ab7
commit
41499d42df
1 changed files with 3 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ def clean_cells(cells):
|
||||||
|
|
||||||
|
|
||||||
def clean_amount(amount):
|
def clean_amount(amount):
|
||||||
return Decimal(FrenchTransaction.clean_amount(amount)) if amount else NotAvailable
|
return Decimal(FrenchTransaction.clean_amount(amount)) if amount and amount != ' NS' else NotAvailable
|
||||||
|
|
||||||
|
|
||||||
def clean_amounts(amounts):
|
def clean_amounts(amounts):
|
||||||
|
|
@ -63,6 +63,7 @@ class AccountMarketInvestment(Page):
|
||||||
inv.unitprice = clean_amount(tr2td.xpath('.//td[@class="hdotc1nb"]')[0].text)
|
inv.unitprice = clean_amount(tr2td.xpath('.//td[@class="hdotc1nb"]')[0].text)
|
||||||
|
|
||||||
inv.description = u''
|
inv.description = u''
|
||||||
|
if inv.unitprice:
|
||||||
inv.diff = inv.quantity * inv.unitprice - inv.valuation
|
inv.diff = inv.quantity * inv.unitprice - inv.valuation
|
||||||
|
|
||||||
yield inv
|
yield inv
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue