Denis Natusch
de900d2eeb
Add more username tests
...
These test validate, that no username validation will be performed,
if the form has an error.
2024-01-17 12:17:35 +01:00
Denis Natusch
073600a92c
Remove unused imports
2024-01-17 12:17:30 +01:00
Denis Natusch
f808c2497d
Remove employee if associated with order
2024-01-15 19:25:20 +01:00
Simon Bruder
d75234d172
Expand InventoryControllerIntegrationTests
...
They now should cover almost all cases. I did not add all editing tests
as the implementation is the same as with adding, and it would just add
bloat.
2024-01-14 17:06:16 +01:00
Simon Bruder
8b2fe0cb40
Extract item counting in InventoryControllerIntegrationTests
2024-01-14 17:06:16 +01:00
Simon Bruder
9ec41df27f
Add integration test for InventoryInitializer
2024-01-14 17:06:16 +01:00
Simon Bruder
0c5e3f4e5c
Add unit tests for InventoryMutateForm using jqwik
...
This adds the jqwik dependency for property based testing, like
Haskell’s QuickCheck.
2024-01-14 17:05:58 +01:00
Denis Natusch
da19356496
Fix modify profile issue
...
Closes : #141
2024-01-14 15:07:29 +01:00
Theo Reichert
ea78ec93b7
Add working filtration of orders for admin
2024-01-09 14:04:11 +01:00
Paul Heimer
d6abbdcfa2
Add invoice test
2024-01-09 13:55:20 +01:00
Simon Bruder
7365b384e3
Make metric variable
...
This was somehow overlooked, but it should work.
This needs to change how the InventoryMutateForm handles quantities, as
the amount has to be split from the metric for addition to work.
2024-01-09 10:53:12 +01:00
Theo Reichert
e37c2506b8
Add catalog unit tests with empty set up method
2024-01-08 22:44:00 +01:00
Denis Natusch
06fc8732cc
Refuse username if username is already in use
2024-01-08 18:47:11 +01:00
Simon Bruder
6297f3c073
Update copyright dates of recently changed files
...
I forgot to update them in commits
743e459d41
,
90d368a95b
,
7fbd26d84c
,
and 2d87b3928b
.
It also adds swt23w23 as copyright owner on the time recording, as this
was forgotten when the attributions had initially been added.
2024-01-06 22:06:48 +01:00
Denis Natusch
2f06261d87
Add unit tests to the staff package
...
The main purpose of this commit is to achieve 100% (line) test
coverage for the staff package.
2024-01-06 21:50:29 +01:00
Eren Asker
6e4fe14339
Add user tests
2024-01-05 17:37:43 +01:00
Simon Bruder
2d87b3928b
Fix typos in Staff integration tests
2024-01-04 10:29:58 +01:00
Simon Bruder
7fbd26d84c
Fix cursed test failure
...
This was introduced in 580d3a6af6
.
Fixes #121
2024-01-04 00:56:43 +01:00
Mathis Kral
699db13864
Add test for wrong addProduct request
...
This works on #100
2023-12-14 20:11:35 +01:00
Simon Bruder
bac025fd0a
Make project REUSE compliant
...
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.
This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00
Simon Bruder
4d89fdc10a
Restrict product types for inventory edit
...
The error message gets slightly less meaningful, but either are
currently just a mess.
2023-12-09 12:02:38 +01:00
Simon Bruder
c5f6b18cd3
Make inventory authorization tests more complete
2023-12-09 12:02:38 +01:00
Simon Bruder
3e2cc3d0b2
Allow specifying order types in inventory
...
Fixes #95
2023-12-09 12:02:37 +01:00
Simon Bruder
580d3a6af6
Implement per-month employee working hours
...
Closes #76
Co-auther-by: Denis Natusch <denis.natusch@mailbox.tu-dresden.de>
2023-12-09 00:35:43 +01:00
Mathis Kral
cb3a33651e
Associate rentables with order and event explicitly
...
This closes #74
Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2023-12-07 17:06:43 +01:00
Denis Natusch
af09dd4a83
Add wage to employee
2023-12-05 10:14:15 +01:00
Denis Natusch
17a0e29dad
Add getAvailableStaffByJob to staff package
...
Co-authored-by: Simon Bruder <simon.bruder@mailbox.tu-dresden.de>
2023-12-05 10:14:15 +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
Denis Natusch
0119b1cfa0
Add staff form and bind it to model
...
Closes #51
2023-11-29 12:25:29 +01:00
Denis Natusch
8a084b1f2e
Add test for form validator
...
The validator requires some changes to already existing tests.
Co-authored-by: Simon Bruder <simon.bruder@mailbox.tu-dresden.de>
2023-11-27 18:25:55 +01:00
Denis Natusch
b72fa87445
Use findAll in staff tests
...
Co-authored-by: Simon Bruder <simon.bruder@mailbox.tu-dresden.de>
2023-11-27 18:04:07 +01:00
Simon Bruder
4f1ed1f134
Use proper terminology for Staff and Employee
...
Staff is plural. The singular should be employee or a synonym.
Co-authored-by: Mathis Kral <mathis_tiberius.kral@mailbox.tu-dresden.de>
2023-11-27 18:03:26 +01:00
Simon Bruder
14dc478e41
Unify naming of employee id
2023-11-27 16:46:46 +01:00
Eren Asker
b4dfa72852
Unify adding staff
...
Co-authored-by: Denis Natusch <denis.natusch@mailbox.tu-dresden.de>
Co-authored-by: Simon Bruder <simon.bruder@mailbox.tu-dresden.de>
2023-11-27 16:46:44 +01:00
Mathis Kral
f50fbb5ac4
Add basic order-staff-relation
...
Works on #73
This contains changes on multiple files to associate
multiple employees with an order and make customers
able to add employees to their order.
Because of SQL JPA things, this will not be final.
2023-11-26 20:34:23 +01:00
Mathis Kral
d207386d1d
Add staff functionality to CustomCart and CustomOrder
...
This works on #73
This also contains unit-tests for the CustomOrder.
2023-11-26 20:34:23 +01:00
Simon Bruder
391ddaf03b
Create admin user only if it does not yet exist
...
Fixes #28
2023-11-24 20:21:17 +01:00
Mathis Kral
a795fc99aa
Add simple get and post tests to order package
...
These tests mainly check the correct redirection and working input values,
but not many edge cases or any business logic.
Works on #48
2023-11-24 19:22:54 +01:00
Simon Bruder
4c83c661fe
Test inventory error handling
2023-11-24 17:25:34 +01:00
Simon Bruder
f7d859b25d
Add integration tests for inventory controller
2023-11-24 17:25:32 +01:00
Denis Natusch
b944d04b5d
Add tests to staff package
...
Co-authored-by: Simon Bruder <simon.bruder@mailbox.tu-dresden.de>
2023-11-23 16:10:01 +01:00
Denis Natusch
79895d715b
Log out user properly after changing own username
2023-11-22 15:25:03 +01:00
Simon Bruder
0fb4d910fb
Rename test package to catering
2023-11-21 18:00:38 +01:00