From 4c2cb80761b14eb0a7fbf314755b8067fcc94a66 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 5 Jun 2015 18:20:52 +0200 Subject: [PATCH] fix set of Investment.unitprice for market accounts --- modules/ing/pages/titre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ing/pages/titre.py b/modules/ing/pages/titre.py index 4c2d2363..dd830122 100644 --- a/modules/ing/pages/titre.py +++ b/modules/ing/pages/titre.py @@ -59,7 +59,7 @@ class TitrePage(LoggedPage, RawPage): invest.quantity = NotAvailable unitprice = FrenchTransaction.clean_amount(columns[2]) if unitprice != '': - invest.unitprice = Decimal() + invest.unitprice = Decimal(unitprice) else: invest.unitprice = NotAvailable unitvalue = FrenchTransaction.clean_amount(columns[3])