Commit fef831dc authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Vincent A

[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.
parent e2d88f10
......@@ -712,6 +712,7 @@ class TransactionsPage(LoggedPage, CDNBasePage):
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 TransactionsPage(LoggedPage, CDNBasePage):
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment