diff --git a/brmbar3/TODO b/brmbar3/TODO index 089e27e..21c8b57 100644 --- a/brmbar3/TODO +++ b/brmbar3/TODO @@ -32,6 +32,7 @@ - Statistics - Users with debt - Pretty chart + - Fix "inventory value" computation - Advanced inventory management - Mass quantity/cash corrections ("inventura" mode) - Integrated brmbar overflow support diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index 57e98dd..6087b66 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -96,6 +96,10 @@ class Shop: for inventory in cur: invid = inventory[0] inv = Account.load(self.db, id = invid) + # FIXME: This is not correct as each instance of inventory + # might have been bought for a different price! Therefore, + # we need to replace the command below with a complex SQL + # statement that will... ugh, accounting is hard! balance += inv.currency.convert(inv.balance(), self.currency) return balance def inventory_negbalance_str(self):