752: Display/Hide of Non-Full Supplies on Requisitions by program

Test Case #:752

Test Case Name: Display/Hide of Non-Full Supplies on Requisitions by program

System: OpenLMIS

Subsystem: blue

Test case designed by: Paulina Borowa

Design Date:09.12.2016

Short description

As an implementer, I want to either hide or display the non-full products on the requisition form (by configuring the requisition template) so that storeroom managers can order non-full supplies for specific programs at the right time (usually ad-hoc).

This boolean field is by requisition template (by program)

Acceptance Criteria
Verify that:

  • the APIs for configuring programproducts save the full supply boolean field
  • a requisition template (by program) can be set to display the NON-FULL SUPPLY tab (boolean setting)
  • both the APIs and UI are completed
  • products which are non-full do not require data entry on the requisition for submission
  • non-full products display on requisition for programs with non-full products

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       



Step

Action

Expected system response

Comment

1

Check endpoint that retrieves all active non-full supply products for the given facility and program works properly:

get /api/facilities/id/approvedProducts

                                                                                                    


 fullSupply: false :

 false.png

fullSupply: true :

true.png

                                                 

2

Wset "showNonFullSupplyTab":true the non-full supply tab is visible when it's on false it doesn't appears.

"showNonFullSupplyTab": false:

false1.png

false2.png

"showNonFullSupplyTab": true :

true1.png

true2.png


3

 check if there is posibility to add a product on UI

Add.png


4

check if after that there is posibility to remove product by remove button

AddSupply.png


5




6




7




8

                                                


OpenLMIS: the global initiative for powerful LMIS software