diff --git a/brmbar3/brmbar-gui-qt4.py b/brmbar3/brmbar-gui-qt4.py index eebb710..36af3f7 100755 --- a/brmbar3/brmbar-gui-qt4.py +++ b/brmbar3/brmbar-gui-qt4.py @@ -89,7 +89,7 @@ class ShopAdapter(QtCore.QObject): return shop.profits.balance_str() @QtCore.Slot(result='QVariant') def balance_inventory(self): - return shop.inventory_negbalance_str() + return shop.inventory_balance_str() @QtCore.Slot(result='QVariant') def balance_credit(self): return shop.credit_negbalance_str() diff --git a/brmbar3/brmbar/Shop.py b/brmbar3/brmbar/Shop.py index bcb794b..211d20f 100644 --- a/brmbar3/brmbar/Shop.py +++ b/brmbar3/brmbar/Shop.py @@ -120,8 +120,8 @@ class Shop: # statement that will... ugh, accounting is hard! balance += inv.currency.convert(inv.balance(), self.currency) return balance - def inventory_negbalance_str(self): - return self.currency.str(-self.inventory_balance()) + def inventory_balance_str(self): + return self.currency.str(self.inventory_balance()) def account_list(self, acctype): accts = []