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
Employee request
Limit of declarations that could be signed by doctor is added to create employee request
Save declaration_limit to parties
Parameter | Source |
---|---|
declaration_limit | prm.parties.declaration_limit |
Employees
Declaration limit and declaration count are added to get employees list and get employee details
...
Add declaration_count and declaration_limit to reports.parties
Parameter | Source |
---|---|
declaration_count | reports.parties.declaration_count |
declaration_limit | reports.parties.declaration_limit |
Sign declaration request
- 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