mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 12:54:05 +02:00
Shop.inventory_balance(): Tidy up, commented out code for easy per-item balance dumps
This commit is contained in:
parent
9e95724556
commit
4494dafbb8
1 changed files with 6 additions and 3 deletions
|
@ -135,13 +135,16 @@ 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.balance() * inv.currency.rates(self.currency)[0]
|
||||
b = inv.balance() * inv.currency.rates(self.currency)[0]
|
||||
# if b != 0:
|
||||
# print(str(b) + ',' + inv.name)
|
||||
balance += b
|
||||
return balance
|
||||
|
||||
# XXX bypass hack
|
||||
def inventory_balance_str(self):
|
||||
return "XXX"
|
||||
# return self.currency.str(self.inventory_balance())
|
||||
# return self.currency.str(self.inventory_balance())
|
||||
return "XXX"
|
||||
|
||||
def account_list(self, acctype, like_str="%%"):
|
||||
"""list all accounts (people or items, as per acctype)"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue