grocy/controllers
Marc Ole Bulling eb135aee39
Add support for printing shoppinglist with thermal printer (#1273)
* Added escpos-php library

* Added button to shoppinglist print menu

* Added to translation

* Added basic printing logic and API call

* Working implementation for printing with the API

* Added openapi json

* Correctly parsing boolean parameter

* Working button in UI

* Change to grocy formatting

* Add Date

* Only show thermal print button when Feature Flag is set

* Fixed API call and added error message parsing

* Undo translation

* Add flag to print quantities as well

* Added printing notes

* Added quantity conversion

* Increse feed

* Fixed that checkbox was undefined, as dialog was already closed

* Added padding

* Formatting

* Added note about user permission

* Fixed error when using notes instead of products

* Review

- Default FEATURE_FLAG_THERMAL_PRINTER to disabled
- Added missing localization strings (and slightly adjusted one)

* Fixed merge conflicts

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2021-06-18 20:45:42 +02:00
..
Users Squashed commit 2020-12-07 19:48:33 +01:00
BaseApiController.php Fixed API equals/not equals filter comparison (fixes #1182) 2020-12-16 21:52:24 +01:00
BaseController.php Add support for printing shoppinglist with thermal printer (#1273) 2021-06-18 20:45:42 +02:00
BatteriesApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
BatteriesController.php Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
CalendarApiController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
CalendarController.php Applied PHP formatting rules 2020-08-31 20:40:31 +02:00
ChoresApiController.php Fixed constant typo (fixes #1260) 2021-01-06 09:31:36 +01:00
ChoresController.php Make it possible to hide chores/batteries (closes #1069) 2020-12-20 10:19:44 +01:00
EquipmentController.php Squashed commit 2020-11-17 19:11:02 +01:00
ExceptionController.php Fixed database migration error handling 2020-12-20 16:52:13 +01:00
FilesApiController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
GenericEntityApiController.php Fixed API key deletion was not possible (fixes #1203) 2020-12-21 16:20:12 +01:00
GenericEntityController.php Squashed commit 2020-11-17 19:11:02 +01:00
LoginController.php More authentication refactoring to also provide "plugable" credentials handling (references #921, needed for #305) 2020-10-19 18:38:12 +02:00
OpenApiController.php Fixed API key deletion was not possible (fixes #1203) 2020-12-21 16:20:12 +01:00
PrintApiController.php Add support for printing shoppinglist with thermal printer (#1273) 2021-06-18 20:45:42 +02:00
RecipesApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
RecipesController.php Typo 2021-01-03 22:42:16 +01:00
StockApiController.php Add support for printing shoppinglist with thermal printer (#1273) 2021-06-18 20:45:42 +02:00
StockController.php Add support for printing shoppinglist with thermal printer (#1273) 2021-06-18 20:45:42 +02:00
SystemApiController.php Optimized filter_var checks 2020-12-28 22:14:59 +01:00
SystemController.php Applied PHP-CS-Fixer rules 2020-09-01 21:29:47 +02:00
TasksApiController.php Sanitize user input on all API routes (references #996) 2020-10-14 22:49:29 +02:00
TasksController.php Squashed commit 2020-11-17 19:11:02 +01:00
UsersApiController.php Implemented user pictures (closes #1158) 2020-12-20 22:08:50 +01:00
UsersController.php Implemented Userfields for users (closes #1159) 2020-12-20 22:16:58 +01:00