Oystein Kristoffer Tveit
cde79ccb34
Split `db.py` and make declarative models
2023-08-29 22:50:53 +02:00
Oystein Kristoffer Tveit
c25e5cec27
Big cleanup ദ്ദി^._.^)
2023-08-29 18:32:49 +02:00
Daniel Lovbrotte Olsen
6ab66771f2
Fix vt-terminal screen stuff
2023-01-29 07:59:55 +01:00
Oystein Kristoffer Tveit
b96921de98
nix: add screen tty systemd service?
...
maybe
2023-01-29 04:21:54 +01:00
Daniel Lovbrotte Olsen
2a0193f034
update image config to what actually ran
2023-01-29 03:23:33 +01:00
Daniel Lovbrotte Olsen
c8e05c28f8
Update conf with values from production
2023-01-28 01:00:30 +01:00
Daniel Lovbrotte Olsen
39747e544b
Add SD image to flake
2022-08-29 03:56:56 +02:00
Daniel Lovbrotte Olsen
c450c6710b
make flake and allow overriding conf.py
2022-08-28 05:58:42 +02:00
Daniel Lovbrotte Olsen
3c950be930
Package dibbler with nix
2021-09-07 13:07:25 +02:00
Daniel Lovbrotte Olsen
91d8de0b7e
Switch to postgresql:// url
...
postgres:// has been deprecated for years
2021-09-07 13:05:59 +02:00
Robert Maikher
322903adc1
Touch up the FAQ slightly
2019-09-21 16:52:40 +02:00
Robert Maikher
92f3990cc0
Fix errors, make menu formatting more readable
2019-09-21 16:48:49 +02:00
Robert Maikher
c188d692dd
Update requirements.txt
2019-09-21 14:34:19 +02:00
Robert Maikher
457c625097
Update FAQ
2018-08-31 13:48:13 +02:00
Robert Maikher
a9e5985f90
Move c and cs commands to the mainmenu class
...
This makes it so that it only works on the main menu, too.
2018-08-31 13:48:06 +02:00
Robert Maikher
33a9f12ac0
Parameter to disallow zero in input_int
2018-08-30 15:12:11 +02:00
Robert Maikher
ac3ab8099b
Use new defaults properly in edit product menu
2018-08-30 15:11:17 +02:00
Robert Maikher
ca19cc14da
Rewrite input_str to allow defaults and act less strange with some parameters
2018-08-30 14:59:37 +02:00
Robert Maikher
1675f26080
Fix 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.
2018-08-24 13:43:35 +02:00
Robert Maikher
0ea9042820
Revert 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.
2018-08-24 09:31:15 +02:00
Robert Maikher
ab0a218f8e
Use function to return header instead of stringformatting a variable
2018-08-24 09:21:01 +02:00
Robert Maikher
24201e8a69
Update requirements.txt to avoid deprecation
2018-08-24 08:42:15 +02:00
Robert Maikher
d5475b834f
Convert 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 now
2018-08-23 13:15:45 +02:00
Robert Maikher
068015a972
Add requirements.txt
2018-08-21 10:57:32 +02:00
Robert Maikher
ce56649c7c
Run 2to3 to start moving to python3
2018-08-19 16:38:45 +02:00
robertem
f155d21ae0
Fix 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 directories
2018-08-19 13:16:49 +00:00
robertem
31e3442c7c
Fix user transaction error and other unexpected behaviour
2018-04-22 15:44:24 +00:00
Christoffer Viken
17c2d05294
Added message to 'transfer between users'
2017-10-01 05:46:52 +00:00
Christoffer Viken
3ef2323276
"did you pay different ammount" now goes the right way around.
2017-09-30 13:02:50 +00:00
Christoffer Viken
702dfffbfa
Patch to handle negative stock issues
...
Negative stock can severely influence auto-pricing.
Therefore when stock is added an assumption,
that stock is at least 0 for that product.
2017-06-11 14:25:27 +00:00
Christoffer Viken
a03ca8f299
Removed SqlAlchemy from repo
2017-06-05 14:07:33 +00:00
Christoffer Viken
bae4a74196
Oops? Remove debug print
2017-06-05 13:26:45 +00:00
Christoffer Viken
97537eaa83
Updated statistics
...
* Unicode and antipurchase for "by popularity"
2017-06-05 13:24:05 +00:00
Christoffer Viken
de24644a51
Updated statistics
...
* Added "total positive" and "total negative" credits.
* Fixed unicode for "by revenue"
* Fixed "no purchases" and "anti-purchases" cases for "by revenue"
2017-06-05 13:14:21 +00:00
Christoffer Viken
078ccf6b8a
Only count positive stock for "Total" stats
2017-06-05 12:33:06 +00:00
Christoffer Viken
fd67aed7dd
Added "total purchase" option back
...
* Does not have ability to set total to greater than sum.
2017-05-12 19:34:33 +00:00
Christoffer Viken
0265757993
Apparently python2 has problems with æ ø å.
...
Patched this particular instance.
Planning a py3 port soon
2017-04-25 14:06:37 +00:00
Christoffer Viken
1c8f03695a
Cleanup
2017-04-15 18:47:28 +00:00
Christoffer Viken
4669737fe3
Updated SqlAlchemy + the new files
2017-04-15 16:33:29 +00:00
Christoffer Viken
e3267d4bda
Updated SqlAlchemy
2017-04-15 16:27:12 +00:00
Christoffer Viken
2c790e1fe1
Bar code lengths give different formats.
2017-03-27 16:02:24 +00:00
Christoffer Viken
195f88ad06
Better typeface
2017-03-25 16:20:51 +00:00
Christoffer Viken
899f7c4ecd
Text fixes
2017-03-25 16:02:29 +00:00
Christoffer Viken
b201c6d8c7
Aaand font paths
2017-03-25 15:59:47 +00:00
Christoffer Viken
5a0ba1523b
Aaand font paths
2017-03-22 17:16:22 +00:00
Christoffer Viken
8e47a1848b
Maybe remember the rotation and menu name
2017-03-22 17:13:15 +00:00
Christoffer Viken
6d205fcf18
Add print menu
2017-03-22 17:02:11 +00:00
Christoffer Viken
1917944966
Ok, new try to get it working WTF debian
2017-03-21 22:27:37 +00:00
Christoffer Viken
806c9c3516
No idae what happened, but rotate in PIL instead of brother
2017-03-21 21:08:19 +00:00
Christoffer Viken
1b13dd9d32
Another try for 2.7 support
2017-03-21 20:50:41 +00:00