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.
Add ListRegisteredHoursWorkedController
This commit adds the
ListRegisteredHoursWorkedController
class, which is responsible for creating a request object for thelist_registered_hours_worked
use case. The controller retrieves the current user role and company from the session and asserts that the current user role iscompany
. 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 thelist_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)