brmbar-cli changecash -> fixcash (changecash remains an alias)

This commit is contained in:
Petr Baudis 2016-01-06 02:00:56 +01:00
parent 0c349f6c6a
commit 11eaecfccf

View file

@ -41,7 +41,7 @@ Usage: brmbar-cli.py COMMAND ARGS...
Inventory recounting (fixing the number of items) Inventory recounting (fixing the number of items)
inventory-interactive inventory-interactive
Launches interactive mode for performing inventory with barcode reader Launches interactive mode for performing inventory with barcode reader
changecash AMT fixcash AMT
Fixes the cash and puts money difference into excess or deficit account Fixes the cash and puts money difference into excess or deficit account
consolidate consolidate
Wraps up inventory + cash recounting, transferring the excess and Wraps up inventory + cash recounting, transferring the excess and
@ -214,7 +214,7 @@ elif sys.argv[1] == "inventory-interactive":
print("No action needed, amount is correct.") print("No action needed, amount is correct.")
print("End of processing. Bye") print("End of processing. Bye")
elif sys.argv[1] == "changecash": elif sys.argv[1] == "fixcash" or sys.argv[1] == "changecash":
if (len(sys.argv) != 3): if (len(sys.argv) != 3):
print ("Invalid number of parameters, check your parameters.") print ("Invalid number of parameters, check your parameters.")
else: else: