Commit Graph

98 Commits

Author SHA1 Message Date
Robert Maikher ce56649c7c Run 2to3 to start moving to python3 2018-08-19 16:38:45 +02:00
Christoffer Viken 6d205fcf18 Add print menu 2017-03-22 17:02:11 +00:00
Christoffer Viken 12ad58961c 2017-02-20 12:19:03 +00:00
Christoffer Viken 4d254c612f PEP-8 compliance for text-based 2017-02-10 17:09:22 +00:00
Christoffer Viken ba8f80e4aa Ritchie damn it! Unicode 2017-02-10 14:00:11 +00:00
Christoffer Viken ec977fe155 Product/user summary now ordered by number of products bought 2017-02-10 13:56:34 +00:00
Christoffer Viken dd12b05ea2 Optimised product summary to use database (view) 2017-02-10 12:21:59 +00:00
robertem 8752cb5b09 Product List is ordered descending by stock 2017-02-05 00:01:27 +00:00
robertem b3536c19f6 Removes hidden status from items if they are added to stock in the normal way 2017-02-04 23:54:45 +00:00
robertem 11593a71d0 Database 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 options
2017-02-04 23:37:45 +00:00
robertem dd3967e67d Database 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.
2017-02-04 21:35:29 +00:00
robertem 8954ab4304 Rounds 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.
2017-02-04 21:10:50 +00:00
robertem 033a93bd4c Only shows last 100 transactions by default when checking user transactions, configurable in conf.py. New menu item for checking all of them.
Prints transactions newest-first instead of oldest-first.
User low credit warning limit now configurable in conf.py.
2017-02-04 20:03:35 +00:00
robertem 3f838a3de8 Fixes handling of EOF(CTRL+D) within penalty warning during superfast mode where it would accept the purchase instead of asking the user again for a proper yes/no answer. Also fixes prompt in this situation, while having the input handling be slightly less ugly when timeouts are involved. 2017-02-04 17:46:38 +00:00
robertem 9122f5b579 Fixes problem with penalty warning during superfast mode where inputting a non-full username would ask the user for a y/n answer forever 2015-10-09 17:07:05 +00:00
robertem d9b6a3ab6d 2015-10-03 19:47:05 +00:00
robertem c8a6f6c209 2015-10-03 18:41:29 +00:00
Vegard Aksland Sjonfjell 9d5b2d0907 Mulighet til aa endre total amount 2013-02-11 19:42:19 +00:00
Vegard Aksland Sjonfjell 5aa4c9553f Bugfiks 2 2013-02-11 19:38:30 +00:00
Vegard Aksland Sjonfjell 3dc42b6565 Bugfiks 2 2013-02-11 19:24:22 +00:00
Vegard Aksland Sjonfjell b017c01994 Bugfiks 2 2013-02-11 19:23:48 +00:00
Vegard Aksland Sjonfjell 71572d0c1f Bugfiks 2 2013-02-11 19:23:23 +00:00
Vegard Aksland Sjonfjell 9d138f68b4 Bugfiks 2013-02-11 19:22:44 +00:00
Vegard Aksland Sjonfjell ffc9a647cc Ojda 2013-02-11 19:11:35 +00:00
Vegard Aksland Sjonfjell 8419f814ce La til restart-funksjon 2013-02-11 19:08:31 +00:00
Vegard Aksland Sjonfjell 007773be1a A hundred lies and battles 2013-02-11 18:54:33 +00:00
Vegard Aksland Sjonfjell 66ec119020 YAY 2013-02-11 18:49:28 +00:00
Trygve Magnus Ræder 76ca1e8788 utvidet statistikk i dibblermenyen, samt at 0 i dibblermenyen gir alternativ 10. Jeg legger også med en logfil for de som vil teste statistikken uten å koble opp til databasen 2011-06-22 18:39:49 +00:00
Øyvind Almelid 6e015344a2 kosmetiske endringer på printing i AddStockMenu 2011-06-08 18:06:21 +00:00
Øyvind Almelid 2557b2ab52 Duplikater av produkter i AddStockMenu fører nå til addisjon av antall. 2011-06-07 09:30:02 +00:00
Øyvind Almelid 1330c05b08 Gjort AddStockMenu litt mer forklarlig. 2011-06-06 15:33:46 +00:00
Øyvind Almelid 9dbe4b9dc6 Endret adferd for AddStockMenu, nå tar den en linje med syntaks 'tall produkt' 2011-06-06 15:29:17 +00:00
Øyvind Almelid 1efe8d5238 Default adferd for tom linje på antall innkjøpte av et produkt i AddStockMenu er nå at ett eksemplar er innkkjøpt. 2011-06-05 20:30:09 +00:00
Øyvind Almelid e94d450f15 Lagt til ny meny - AddStockMenu - for å legge inn innkjøp og få igjen penger for det.
/人◕ ‿‿ ◕人\
Kyubey approves this commit.
2011-06-05 20:19:05 +00:00
Terje Schjelderup 20d3964900 RFID support 2011-04-12 13:58:16 +00:00
torjehoa 2c6a121e21 torjehoa: la inn en fiks for å fange SIGQUIT, ctrl backslash avslutter ikke dibbler lengre. 2011-03-21 00:53:10 +00:00
Øystein Ingmar Skartsæterhagen 10a89888cd Hovedmenyen viser seg selv på nytt når man gir den tull.
Hvis man skriver inn noe som ikke er et gyldig menyvalg og ikke gir
treff som produkt/bruker for hurtigkjøp, eller hvis man skriver noe
som ikke gir et eksakt treff for produkt/bruker og avbryter
valgmenyen, viser hovedmenyen seg selv på nytt (istedenfor at man får
bare prompt).
2011-03-10 15:21:56 +00:00
Øystein Ingmar Skartsæterhagen f1ef355fd6 Superhurtigkjøp (fikser #8). 2011-03-10 15:03:19 +00:00
Øystein Ingmar Skartsæterhagen c074bf3ac3 Fjernet pause etter lagring av kjøp. 2011-03-07 17:11:13 +00:00
Øystein Ingmar Skartsæterhagen 0e02a6476c Fikset litt på hurtigkjøpsopplegget.
Man kan nå gjøre hurtigkjøp kun fra hovedmenyen, ikke fra en vilkårlig
meny med undermenyer.
2011-03-07 16:45:15 +00:00
Trygve Magnus Ræder ee943404af tror den fungerer bedre nå 2011-03-07 13:39:54 +00:00
Trygve Magnus Ræder 4c5404389f lagt til 'cs' for clear screen i hovedmenyen 2011-03-07 09:01:43 +00:00
Trygve Magnus Ræder fe3410d842 rettelser 2011-03-06 20:18:06 +00:00
Trygve Magnus Ræder 0fd8de7ad3 stuff 2011-03-06 20:15:38 +00:00
Ine Beate Larsen 490c3c3ef7 lagt til balance-meny. mindre endringer ellers /inebeate 2011-03-06 16:33:43 +00:00
Ine Beate Larsen bddaf5e7e9 2011-03-06 13:53:01 +00:00
Ine Beate Larsen 910c446a2f update 2011-03-06 13:07:49 +00:00
Ine Beate Larsen 109762f8e6 mindre endringer 2011-03-06 12:27:46 +00:00
Ine Beate Larsen 0237f58f59 Varebeholdning!!!!! 2011-03-06 11:24:58 +00:00
Andreas Oppebøen 3dbe47d04e Now, every time there is a menu choice, it is possible to enter a thing (user/product) to initiate a buy. This is to make buying simpler. 2011-03-05 15:43:35 +00:00