avniproject / avni-webapp

Web application for management and data entry
https://avniproject.org
GNU Affero General Public License v3.0
10 stars 42 forks source link

[DEA] Deleting enrolment and encounter #1180

Open Gojo-Taqi opened 6 months ago

Gojo-Taqi commented 6 months ago

https://avni.freshdesk.com/a/tickets/4546

Describe the bug When a user tries to void an individual with active encounters, enrolments, and program_encounters, a big error pops up causing the user confusion.

To Reproduce

  1. Register an individual, enroll it into a program, and try to have encounters planned as well.
  2. Try to void the individual
  3. You must see a big modal pop like the below screenshot. Image
  4. Because of the stack trace the user panics and seeks out help from the support team. A similar kind of error comes when there are active encounters and program_encounters present.

Issue link: https://drive.google.com/file/d/1PgWC0iuG-CUxuPnuJdo6J9uAiDaM2vE_/view?usp=drive_link

As is:

To be:

Analysis notes:

mahalakshme commented 5 months ago

@vinayvenu review the as is and to be above. Will change the headings, just wanted to check with you.