Consider new right for releasing requisitions without order.

Description

Per conversation with , create a new "Requisition" right for releasing requisitions without order.

  • By implementing release requisition without order functionality, we are essentially saying this requisition will not be fulfilled. The previous implementation used the fulfillment right to check if the person clicking convert to order or release without order has the appropriate right to do so.

  • The convert to order screen is currently given to a warehouse clerk.

  • Warehouse clerk role is not a program based role.

  • Implementing a requisition right would mean a warehouse clerk will also need a program based right. for the warehouse that they support, warehouse clerks will have to get Cartesian product of number of supervisory nodes and number of program role assignments. Is this desired? [Requires decision]

Acceptance Criteria (If decision is to proceed)

  • Update the REQUISITION_RIGHTS enum

  • Update the /api/requisitions/requisitionsToConvert API to use the "FULFILLMENT_RIGHTS.ORDER_EDIT" right as well as "REQUISITION_RIGHTS.REQUISITION_RELEASE" right.

  • Update the convert to order screen to only show the Release without order button when user has REQUISITION_RIGHTS.REQUISITION_RELEASE right.

  • Update the convert to order screen to only show the convert to order button when user has FULFILLMENT_RIGHTS.ORDER_EDIT right.

  • Update the API that processes release without order to use the new permission.

Assignee

Unassigned

Reporter

Elias Muluneh

Components

Affects versions

Priority

Major
Configure