mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmbar-cli stats: separate material, logical accounts
This commit is contained in:
parent
c5becfcabe
commit
c419c91a40
1 changed files with 2 additions and 0 deletions
|
@ -161,9 +161,11 @@ elif sys.argv[1] == "listitems":
|
|||
print("{}\t{}\t{} pcs".format(acct.name, acct.id, acct.balance()))
|
||||
|
||||
elif sys.argv[1] == "stats":
|
||||
print("--- Material Assets ---")
|
||||
print("Cash: {}".format(shop.cash.balance_str()))
|
||||
print("Overflow: {}".format(shop.currency.str(shop.credit_balance(overflow='only'))))
|
||||
print("Inventory: {}".format(shop.inventory_balance_str()))
|
||||
print("--- Logical Accounts ---")
|
||||
print("Credit: {}".format(shop.credit_negbalance_str(overflow='exclude')))
|
||||
print("Profit: {}".format(shop.profits.balance_str()))
|
||||
print("Fixups: {} (excess {}, deficit {})".format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue