Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Find all employees in status= 'APPROVED' for the party. Count all declarations in status='active' & declaration_requests in status='NEWAPPROVED' for these employees. 

  • If amount of declarations+declaration_requests for party >= parties.declaration_limit and declaration.overlimit is not true
    • return error 422 - This doctor reaches his limit and could not sign more declarations 

...