380: Apply Adjustment Reason to Adjustment quantity

Test Case #:380


Test Case Name: Apply Adjustment Reason to Adjustment quantity

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:09.11.2016

Short description

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

                                        Requisition template for proper program contain Total Losses/Adjustments field configured.                                                     

URL:  http://10.222.17.134/requisition/api/requisitionTemplates/search?program=dce17f2e-af3e-40ad-8e00-3496adef44c3&access_token=ca39dd64-192f-48a2-8c28-36ac92997bb3

Method: GET

                                                                                                                            

                                                 

2

Initiate requisition.

URL:  http://10.222.17.134/requisition/api/requisitions/initiate?program=dce17f2e-af3e-40ad-8e00-3496adef44c3&facility=e6799d64-d10d-4011-b8c2-0e4d4a3f65ce&emergency=false&access_token=f86d1ebb-bc7f-44fd-bbfb-75b1d755632c

 Requisition has been initiated.


3

Add new losses/adjustments for requisition.

 


4

 Verify, if requisition details contains entered valued and types of losess/adjustments (using API).

URL:  http://10.222.17.134/requisition/api/requisitions/4f10e65b-3ec4-47be-8836-975b93982b82?access_token=ca39dd64-192f-48a2-8c28-36ac92997bb3

Method: GET

 


5

Display the list of all created losess/adjustments in requisition.

URL:  http://10.222.17.134/referencedata/api/stockAdjustmentReasons?access_token=ca39dd64-192f-48a2-8c28-36ac92997bb3

Method: GET

 


6

The total quantity of the adjustment is saved.




7

Delete adjustments.

URL:  http://10.222.17.134/referencedata/api/stockAdjustmentReasons/71ee1dc3-5444-4a40-8b17-5676152e2ee1?access_token=2e161c87-192f-4987-b845-a26395941256

Method: DELETE



8

                                                


Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software