Commit graph

347 commits

Author SHA1 Message Date
Erik Hohlfeld 989be26391 Update class diagram of orderCatalog 2024-01-19 19:00:51 +01:00
Erik Hohlfeld 5aefd4e05f Filter and distinguish products in orderCatalog 2024-01-19 19:00:51 +01:00
Eren Asker c94a4d4adb
Update staff docs
Co-authored-by: Denis Natusch <denis.natusch@mailbox.tu-dresden.de>
2024-01-19 14:52:37 +01:00
Simon Bruder 4fb63e1971
Update inventory diagram to include form details
This also fixes the direction of the form inheritance, which was
reversed previously.
2024-01-19 13:04:50 +01:00
Simon Bruder 016d2f5715
Reorder setters/getters in InventoryMutateForm
Some methods were not ordered before.
2024-01-19 13:04:01 +01:00
Simon Bruder 70e835a5e6
Update inventory diagram
I forgot to change this in 4d89fdc10a.
2024-01-18 11:37:44 +01:00
Mathis Kral e6542dce7a Add missing order tests 2024-01-18 09:29:06 +01:00
Mathis Kral 1f5b897c2b Update order package diagram 2024-01-18 09:29:06 +01:00
Mathis Kral 8929868895 Fix checkout bug where items got deleted
This works on #145.
Before this, if an item got removed out of the inventory by the
admin and the user tried to checkout, the application crashed.
2024-01-18 09:29:06 +01:00
Simon Bruder f21b9ba3af
Add cross testing report for group 22
Co-authored-by: Denis Natusch <denis.natusch@mailbox.tu-dresden.de>
Co-authored-by: Eren Asker <eren.asker@mailbox.tu-dresden.de>
Co-authored-by: Erik Hohlfeld <erik.hohlfeld@mailbox.tu-dresden.de>
Co-authored-by: Mathis Kral <mathis_tiberius.kral@mailbox.tu-dresden.de>
Co-authored-by: Paul Heimer <heimerp54@gmail.com>
Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2024-01-17 15:45:50 +01:00
Denis Natusch de6b9cfd0f
Remove inner classes from UserForm 2024-01-17 14:39:25 +01:00
Denis Natusch c5653f85e6
Update docs for the user package 2024-01-17 12:17:39 +01:00
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
Mathis Kral fd76f700c9 Fix warning for deprecated constructor 2024-01-16 20:00:39 +01:00
Mathis Kral 668d758ed0 Add uniform price formatting
This works on #144
2024-01-16 20:00:39 +01:00
Simon Bruder 0425efeab0
Add time recording for week 11
This also adds the meeting time for turn of the year, as I was
previously misguided about where it belongs.
2024-01-16 12:07:07 +01:00
Simon Bruder 5f2866aafd
Add protocol from 2024-01-12 2024-01-16 12:07:01 +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 d0ac59de87
Fix typo in InventoryInitializer 2024-01-14 17:06:15 +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 ff8bbdca15
Resolve some intentionality issues 2024-01-12 15:25:18 +01:00
Theo Reichert d27c1958d7
Introduce new lines to reduce code smells 2024-01-12 15:25:18 +01:00
Simon Bruder a78b225de9
Fix spelling error in footer
Fixes #137
2024-01-12 13:06:04 +01:00
Simon Bruder 6f237744fa
Add time recording for turn of the year 2024-01-09 14:31:54 +01:00
Simon Bruder 99329c611b
Add protocol from 2024-01-05 2024-01-09 14:31:48 +01:00
Mathis Kral 2ccc9fcdfb Update /allOrders/{day} to work with status-filter
This works on #115

Co-authored-by: Theo Reichert <theo.reichert@mailbox.tu-dresden.de>
2024-01-09 14:04:11 +01:00
Theo Reichert da24ca79a1 Update order template only allow values COMPLETED or CANCELED 2024-01-09 14:04:11 +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
Mathis Kral f961071265 Add employee query to order controller
This was simply forgotten before cross-testing.
2024-01-09 13:50:10 +01:00
Simon Bruder 8ab01fd65f
Simplify signature of InventoryMutateForm::of
This complicates the subclasses’ implementation, but it avoids having
to pass an unnecessary parameter.
2024-01-09 10:53:12 +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
Simon Bruder 20ea9e5869
Document used Template Methods
Closes #118
2024-01-08 19:32:03 +01:00
Denis Natusch 06fc8732cc
Refuse username if username is already in use 2024-01-08 18:47:11 +01:00
Denis Natusch 13641bc6a2
Use form for editing customer profile 2024-01-08 16:00:40 +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 743e459d41
Align week numbers from time tracking with upstream
Fixes #123
2024-01-05 15:40:32 +01:00
Simon Bruder 90d368a95b
Implement hashCode/equals on ID for Entities
This also drops an angry comment that was the result of not being able
to fathom the default behaviour.

Fixes #87.
2024-01-04 11:43:20 +01:00
Mathis Kral baafd768ec
Add protocol and time recording for 2023-12-15 2024-01-04 10:55:06 +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 7b86f96976
Update order package-diagram to match current implementation
This closes #109.
2023-12-15 15:10:59 +01:00