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
...
Global_parameters
set declaration_limit in global_parameters.
default value = 2000
Approve employee request
On creating a Party set party.declaration_limit = prm.global_parameters.declaration_limit
Employees
Declaration limit and declaration count are added to get employees list and get employee details
...
- if declaration is added to report.declaration - change report.parties.declaration_count. Set declaration_count=declaration_count+1
- if report.declaration.status is change to terminated or closed - change report.parties.declaration_count. Set declaration_count=declaration_count-1