forked from brmlab/brmbar-github
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()))
|
print("{}\t{}\t{} pcs".format(acct.name, acct.id, acct.balance()))
|
||||||
|
|
||||||
elif sys.argv[1] == "stats":
|
elif sys.argv[1] == "stats":
|
||||||
|
print("--- Material Assets ---")
|
||||||
print("Cash: {}".format(shop.cash.balance_str()))
|
print("Cash: {}".format(shop.cash.balance_str()))
|
||||||
print("Overflow: {}".format(shop.currency.str(shop.credit_balance(overflow='only'))))
|
print("Overflow: {}".format(shop.currency.str(shop.credit_balance(overflow='only'))))
|
||||||
print("Inventory: {}".format(shop.inventory_balance_str()))
|
print("Inventory: {}".format(shop.inventory_balance_str()))
|
||||||
|
print("--- Logical Accounts ---")
|
||||||
print("Credit: {}".format(shop.credit_negbalance_str(overflow='exclude')))
|
print("Credit: {}".format(shop.credit_negbalance_str(overflow='exclude')))
|
||||||
print("Profit: {}".format(shop.profits.balance_str()))
|
print("Profit: {}".format(shop.profits.balance_str()))
|
||||||
print("Fixups: {} (excess {}, deficit {})".format(
|
print("Fixups: {} (excess {}, deficit {})".format(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue