Versions Compared

Key

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

...

get party for employee_id

...

Find all employees in status= 'APPROVED' for the party. Count all declaration in status='active' for these employees. 

  • If amount of declaration 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 

...