Issue with requisition rejection and approval when Supervisory Node is not provided

Description

I noticed an issue when I was testing OLMIS-6592. When I assign the Program Supervisor role for Family Planning without the Supervisory Node provided and I set the home facility to Comfort Health Clinic, I can see authorized requisitions for FP and Comfort Health Clinic only on the "View Requisitions" screen. On the "Approve Requisitions" screen, they are not visible. In addition, when I view such a requisition, the "Reject" and "Approve" buttons are not visible. Please look at the screenshots. What's interesting, when I add the Supervisory Node to the user's role, the requisitions appear on the "Approve" screen, and the "Approve" and "Reject" buttons are visible as well.

Reproduction steps:

  1. Log into the application as administrator and create a user.

  2. Set Comfort Health Clinic as the user's home facility.

  3. Assign the Program Supervisor role for Family Planning without the Supervisory Node to the user.

  4. Log into the application as the new user.

  5. Authorized requisitions for Comfort Health Clinic are not visible on the "Approve Requisitions" screen. They are visible on the "View Requisitions" screen but the "Reject" and "Approve" buttons are not visible when viewing them.

Expected results:

  • The user should see authorized requisitions for his home facility on the "Approve Requisitions" screen;

  • The user should see the "Reject" and "Approve" buttons when viewing authorized requisitions for his home facility.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Labels

Epic Link

Components

Priority

Major
Configure