Commit graph

9 commits

Author SHA1 Message Date
Simon Bruder 0eb3276dde
Use class-wide PreAuthorize for InventoryController
This should protect against accidentally forgetting it for one method.
2023-12-09 12:02:37 +01:00
Simon Bruder 3e2cc3d0b2
Allow specifying order types in inventory
Fixes #95
2023-12-09 12:02:37 +01:00
Simon Bruder 2dff2842fc
Adapt inventory to new catalog interface
This also does a major restructuring of the inventory mutate form.

Some things still are not as they should be, but it mostly works like
before. They can be fixed later.

Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2023-11-29 18:42:37 +01:00
Simon Bruder c398c12592
Remove unused parameter in InventoryController
This was introduced in 6bd1c23e2d.
2023-11-27 18:45:38 +01:00
Paul Heimer f1f9539aae
Add error handling for inventory 2023-11-24 17:25:33 +01:00
Simon Bruder 6bd1c23e2d
Bind inventory mutate form to template
Co-authored-by: Paul Heimer <heimerp54@gmail.com>
2023-11-24 17:25:33 +01:00
Simon Bruder 695bc1d821
Do not use MonetaryAmount in inventory mutate form
While this creates duplicate code in the controller, it will vastly
simplify handling the form values.
2023-11-24 17:25:33 +01:00
Simon Bruder 58dae6532e
Make inventory only accessible for administrator
Fixes #33
2023-11-24 17:25:32 +01:00
Simon Bruder a156d9b2f7
Implement inventory prototype 2023-11-21 18:00:17 +01:00