brmbar-cli stats: Separate credit and overflow

This commit is contained in:
brmbar 2016-01-07 05:06:37 +01:00
parent 9a70088591
commit 2bfd1796d0
2 changed files with 8 additions and 5 deletions

View file

@ -162,9 +162,10 @@ elif sys.argv[1] == "listitems":
elif sys.argv[1] == "stats":
print("Cash: {}".format(shop.cash.balance_str()))
print("Profit: {}".format(shop.profits.balance_str()))
print("Credit: {}".format(shop.credit_negbalance_str()))
print("Overflow: {}".format(shop.currency.str(shop.credit_balance(overflow='only'))))
print("Inventory: {}".format(shop.inventory_balance_str()))
print("Credit: {}".format(shop.credit_negbalance_str(overflow='exclude')))
print("Profit: {}".format(shop.profits.balance_str()))
print("Excess: {}".format(shop.excess.negbalance_str()))
print("Deficit: {}".format(shop.deficit.balance_str()))