ida-arbeitszeit / arbeitszeitapp

A webapp for labour-time calculation.
https://arbeitszeitapp.readthedocs.io
GNU Affero General Public License v3.0
33 stars 4 forks source link

List registered hours worked (www layer) #1036

Closed sloschert closed 3 days ago

sloschert commented 2 weeks ago

Add ListRegisteredHoursWorkedController

This commit adds the ListRegisteredHoursWorkedController class, which is responsible for creating a request object for the list_registered_hours_worked use case. The controller retrieves the current user role and company from the session and asserts that the current user role is company. The company ID is then passed as a parameter to the request object.

See issue #1029 for context.

Add ListRegisteredHoursWorkedPresenter

This commit adds the ListRegisteredHoursWorkedPresenter class, which is responsible for presenting the response of the list_registered_hours_worked use case. The presenter formats the registered hours worked data, including rounding decimal hours to two decimals and converting worker IDs to strings. This presenter will be used in the web layer to display the registered hours worked information.

See issue #1029 for context.

Plan: 371825c0-3112-47cd-9cb0-fea799fad3ee (4x)

sloschert commented 3 days ago

4xCR