Table of Contents |
---|
...
- Limit is set with employee_request create/update
- add validation on declaration approve. Return error if doctor's counter >= limit
- Doctor should change declaration_limit via personal cabinet (TBD)
Specification
...
- get employee_id from request
- get party for employee
- add +1 to declaration_count for party
Terminate declaration
- get employee_id from request
- get party for employee
- add -1 to declaration_count for party
Approve declaration request
Count declarations for employees
Ones a day start the process.
Calculate amount of declarations and update prm.parties.declaration_count for each employee