mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
Shop.inventory_balance(): Use buy price, not sell price
This commit is contained in:
parent
e567d36e77
commit
4f3bc87733
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class Shop:
|
|||
# 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)
|
||||
balance += inv.balance() * inv.currency.rates(self.currency)[0]
|
||||
return balance
|
||||
def inventory_balance_str(self):
|
||||
return self.currency.str(self.inventory_balance())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue