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
...
Add overlimit to declaration request. Set overlimit on create declaration request
Report DB
Add fields to report DB
Add declaration_count and declaration_limit to reports.parties
Field | Source |
---|---|
reports.parties.declaration_count | |
reports.parties.declaration_limit | prm.parties.declaration_limit |
Count declaration on report DB
- 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