a9e5985f90Move c and cs commands to the mainmenu class This makes it so that it only works on the main menu, too.Robert Maikher2018-08-31 13:48:06 +02:00
ac3ab8099bUse new defaults properly in edit product menuRobert Maikher2018-08-30 15:11:17 +02:00
ca19cc14daRewrite input_str to allow defaults and act less strange with some parametersRobert Maikher2018-08-30 14:59:37 +02:00
1675f26080Fix string issues related to switch to python3 safe_str is no longer relevant after unicode strings are no longer explicit string types. Popen takes bytes by default now, not strings, which is fixed by setting an encoding sys.stdout.write should work with strings on linux at least. We only use it for the buy menu timeout, which already only works on linux, so it shouldn't be a problem.Robert Maikher2018-08-24 13:43:35 +02:00
0ea9042820Revert change to variable name in helper functions I thought it used the name of a builtin due to silly IDE colouring, but turns out what i changed it *to* was a builtin. oops.Robert Maikher2018-08-24 09:31:15 +02:00
ab0a218f8eUse function to return header instead of stringformatting a variableRobert Maikher2018-08-24 09:21:01 +02:00
d5475b834fConvert most strings to fstrings for readability Some are kept as-is because they wouldn't be more readable, or do insanity that i cannot bother deciphering right nowRobert Maikher2018-08-23 13:15:45 +02:00
f155d21ae0Fix label format for endless label types Add some more documentation to config files Create bar_codes directory to avoid IOExceptions when trying to write to non-existent directoriesrobertem2018-08-19 13:16:49 +00:00
31e3442c7cFix user transaction error and other unexpected behaviourrobertem2018-04-22 15:44:24 +00:00
015c64a2acFixed bug preventing superfast mode from being set properly.robertem2017-02-20 12:49:47 +00:00
d78f7b2edeFixed bug preventing superfast mode from being set. Fixed bug when printing warning star next to user in purchase list.robertem2017-02-20 12:37:56 +00:00
8752cb5b09Product List is ordered descending by stockrobertem2017-02-05 00:01:27 +00:00
b3536c19f6Removes hidden status from items if they are added to stock in the normal wayrobertem2017-02-04 23:54:45 +00:00
11593a71d0Database format update. Products now have a "hidden" column. Hidden products will not appear when searching for products by name outside of the Edit Product or Product Search menu. Products can be marked as hidden in the Edit Product menu. This menu now also allows changing of barcodes, and the prompt contains the previous values. Statistics no longer throw an error. Minor clarity improvements for messages "New Price" only appears when product price actually changes Better message at the end of adding products to stock Removed unnecessary pauses after some menu optionsrobertem2017-02-04 23:37:45 +00:00
dd3967e67dDatabase format update. Product's primary key is no longer the barcode, but a new sequential id. (products.product_id added as new column. products.bar_code no longer primary key.) Necessary foreign keys have been updated. Transactions have a new penalty column, and penalties applied are logged here. These are shown in the user transaction list as well.robertem2017-02-04 21:35:29 +00:00
8954ab4304Rounds up when adding multiple users to purchase instead of rounding down, meaning you cannot abuse the system by adding yourself multiple times. Correctly logs transaction amount when applying penalty. Better shows penalty effect in purchase menu. Preparations for database format update.robertem2017-02-04 21:10:50 +00:00