From fef831dc1972fafb0a5b4954f9cecd62a29f5c6c Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Wed, 23 Sep 2020 11:56:38 +0200 Subject: [PATCH] [creditdunord] Added Investment.unitprice for market accounts I don't know why I didn't include it when I wrote this part, maybe this column didn't appear back then. Or maybe I had no idea what I was doing. --- modules/creditdunord/pages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index 89b3ceee40..1ee3dc3526 100755 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -712,6 +712,7 @@ class get_market_investment(TableElement): col_label = 'Valeur' col_quantity = 'Quantité' col_unitvalue = 'Cours' + col_unitprice = 'Prix de revient' col_valuation = 'Estimation' col_portfolio_share = '%' @@ -722,6 +723,7 @@ class item(ItemElement): obj_valuation = MyDecimal(TableCell('valuation', colspan=True)) obj_quantity = MyDecimal(TableCell('quantity', colspan=True)) obj_unitvalue = MyDecimal(TableCell('unitvalue', colspan=True)) + obj_unitprice = MyDecimal(TableCell('unitprice', colspan=True)) obj_portfolio_share = Eval(lambda x: x / 100, MyDecimal(TableCell('portfolio_share'))) def obj_code(self): -- GitLab