...
Get employee.id from declaration request.
get party for employee_id
- If employees.properties.counter >= employees.properties.limit
...
- and declaration.overlimit is not true
- return error 422 - This doctor reaches his limit and could not sign more declarations
Change declaration request status
...