Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow deletion of bed if occupied #1311

Closed
rithviknishad opened this issue May 24, 2023 · 1 comment · Fixed by #1312
Closed

Disallow deletion of bed if occupied #1311

rithviknishad opened this issue May 24, 2023 · 1 comment · Fixed by #1312
Assignees
Labels
Backend bug Something isn't working P1 High priority; urgent

Comments

@rithviknishad
Copy link
Member

Describe the bug
If a bed is occupied, it should not be allowed to be deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Assign a bed to patient
  2. Delete the same bed

https://care.coronasafe.in/facility/eaab75f4-4f5c-4685-b769-bbfada64488e/patient/9cd0b475-4211-4773-a740-7ec26d916825/consultation/5160f61a-0b6e-4a83-866e-c538bba983de

https://care.coronasafe.in/facility/eaab75f4-4f5c-4685-b769-bbfada64488e/location/49d5e405-34da-4e4d-9f86-1c08848498ee/beds

Expected behavior
Delete should be disabled if bed is occupied.

Screenshots
image

@rithviknishad rithviknishad added bug Something isn't working P1 High priority; urgent labels May 24, 2023
@rithviknishad rithviknishad self-assigned this May 24, 2023
@github-actions
Copy link

⚠️ Refrain from assigning this issue to yourself if you have another P1 issue assigned that is not yet closed.
@rithviknishad kindly acknowledge this message by commenting 'Acknowledged' below.

@rithviknishad rithviknishad transferred this issue from coronasafe/care_fe May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend bug Something isn't working P1 High priority; urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant