Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Lucyna Laska
Lucyna LaskaReporter
Mary Jo Kochendorfer
Mary Jo Kochendorfer(Deactivated)Story Points
5
Original estimate
3d
Time tracking
Components
Sprint
Add sprint
Fix versions
Priority
Time Assistant
Time Assistant
Created January 18, 2017 at 10:48 PM
Updated February 10, 2017 at 7:04 PM
Resolved February 3, 2017 at 10:01 AM
As a program supervisor, I want to approve a requisition after the district storeroom manager approves so that I can manage the program effectively.
Need the status and functionality to support more than one approver.
In v2, see RequisitionService.approve() to see functionality that needs to be added to support multiple approvers.
Essentially the functionality needed is:
Get the parent node of the requisition's current supervisory node
If the parent node is null, change status to APPROVED
Else, ensure status is IN_APPROVAL and set parent as new current supervisory node
Update endpoint that return list of approval for right supervisor
Update approve endpoint
Endpoint for list of supervisory nodes that need to approve
Acceptance Criteria
Create an IN_APPROVAL status
Add functionality in backend approve code to support multiple approvers using changing supervisory node (basic logic is above)
Please note the activity diagrams from v2 which indicates when the In_approval is used
https://openlmis.atlassian.net/wiki/pages/viewpage.action?pageId=79396888