Lisätään työaikakirjausten muutosten auditlokitus #6313
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jonkinlainen POC. Esimerkki deskarilla:
Käyttäjä lisää uuden työaikakirjauksen:
"changes":[{"id":{"old":null,"new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"employeeId":{"old":null,"new":"6f5e8ac4-dc6f-11ef-9f80-dfdd6bf83ecc"},"groupId":{"old":null,"new":"6f5c7996-dc6f-11ef-9f80-4bc32e6081b8"},"arrived":{"old":null,"new":"2025-01-29T08:00:00+02:00"},"occupancyCoefficient":{"old":null,"new":0.00},"type":{"old":null,"new":"PRESENT"}}]
Käyttäjä lisää poistumisajan:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"departed":{"old":null,"new":"2025-01-29T16:00:00+02:00"}}]
Käyttäjä vaihtaa kasvatusvastuullisuusasetusta:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"occupancyCoefficient":{"old":0.00,"new":7.00}}]
Käyttäjä poistaa työaikakirjauksen:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":null},"employeeId":{"old":"6f5e8ac4-dc6f-11ef-9f80-dfdd6bf83ecc","new":null},"groupId":{"old":"6f5c7996-dc6f-11ef-9f80-4bc32e6081b8","new":null},"arrived":{"old":"2025-01-29T08:00:00+02:00","new":null},"departed":{"old":"2025-01-29T16:00:00+02:00","new":null},"occupancyCoefficient":{"old":7.00,"new":null},"type":{"old":"PRESENT","new":null}}]