Commit Graph

24 Commits

Author SHA1 Message Date
14cc8ec7c4 Refactor token validity check. 2017-09-25 21:22:41 +02:00
6b159b6eda Switch from Flask to aiohttp.
This repository now provides the REST API only.

Implemented:
 * Authorization

Need improvement:
 * Product listing

Missing:
 * Selling
2017-09-25 19:38:45 +02:00
fff8a4879e Clean little code 2017-09-25 15:02:14 +02:00
f2d9a01682 Add floating point input 2017-09-25 15:02:14 +02:00
ce0092303f Update .gitignore to exclude rotated log files. 2017-03-26 20:37:15 +02:00
65e42c0c6e Add transaction total in sell page and style update to fit in a tablet. 2017-03-26 20:17:46 +02:00
8dab5b7ab2 Include UID in ticket. 2017-03-26 20:17:46 +02:00
71ba505c8b Implement transaction printing. 2017-03-26 20:17:46 +02:00
2cf749fd6f Fix query bug that prevented events with undefined end date being used. 2017-03-26 20:17:46 +02:00
a6e878c6fd Fix exception raising on 'event list' command when event has no transactions. 2017-03-26 20:17:46 +02:00
819a38e2d3 Database schema change. Implement ProductCategory.
* The user can now create product categories with the 'category add' command.
* The user can now add products to categories with the
  'product add --category INT' command.
2017-03-26 20:17:46 +02:00
729402ef6d Database schema change. Minor database refactoring. 2017-03-26 20:17:46 +02:00
b93478ac85 Minor cli.py refactoring. 2017-03-26 20:17:46 +02:00
c771aaadbc Database schema change and new UI feature. The user can now rearrange the products.
* Product has a new 'order' column.
* The user can now specify the sort order at product creation time with the
  'product add --sort INT' command.
* The user can now rearrange the products with the 'products set --sort INT'
  comand.
* The user can now show a sorted list of products in cli.py with the
  'product list --sort' command.
2017-03-26 20:17:46 +02:00
800be08471 Fix typos in cli.py. 2017-03-26 20:17:46 +02:00
22476bfb7b Implement 'user set' command in cli.py. 2017-03-26 20:17:45 +02:00
96ccea0899 Implement new features for cli.py 'event' command.
* The user can now create a new event with a not defined end date.
* The user can now edit the name and the start and end date of a given event.
* The software can now check if the event the user is creating or editing
  is overlapping another event already present in the database.
* The software will allow the shortcut keywords 'now' and 'none' in the
  'event set --end' command.
2017-03-26 20:17:38 +02:00
2325c5f5c3 Refactor cli.py 2017-03-24 15:04:11 +01:00
3eabeddf74 Updated .gitignore. Untracking 'conf/' directory. 2017-03-23 16:03:47 +01:00
522f418047 Disable form data logging. 2017-03-22 18:19:28 +01:00
1dddddb97d Database schema change. Removed 'currency' column from 'Product'. 2017-03-22 17:56:54 +01:00
27983883d7 Database schema change. 'Order' becomes 'Transaction'. 'OrderEntry' becomes 'Order'. 2017-03-22 17:16:51 +01:00
54e814e801 Fix authentication bug on sell page. 2017-03-22 17:03:14 +01:00
e7874a10ee Import. 2017-03-21 11:26:25 +01:00