813: Configure Total Received Quantity attribute
Test Case #:813
Test Case Name:Configure Total Received Quantity attribute | |
System: openLMIS | Subsystem: blue |
Test case designed by: Lucyna Kwidzińska | Design Date:03.11.2016 |
Short description: I want the option to include and configure the "total received quantity" attribute (Total quantity received in last period. This is quantified in dispensing units) so that storeroom managers can use the information when determining the requested quantities and supervisors understand the amount of inventory received in the last period at the facilities when approving/reviewing requisitions.
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Generate token for authentication. |
| Copy the token from response (e.g. {"access_token":"4425beb8-a9ea-4590-bbc3-bffed45a59b6"...) |
2 | Verify, if field "total Received Quantity" is available in requisition template.
Method: GET | Total Received Quantity is available in requisition template (the source is USER INPUT). | |
3 | The field "totalReceivedQuantity" is mandatory when submit. | ||
4 | Edit the requisition → enter the positive value into "totalReceivedQuantity" in requisition. Method: PUT | The requisition has been submitted. Value in TotalReceivedQuantity has been saved, the "total" value has been recalculated. | |
5 | Edit the requisition → enter negative value into "totalReceivedQuantity". Method: PUT | ||
6 | Try to submit the requisition. Method: POST | ||
7 | Try to submit the requisition when totalReceivedQuantity is negative. Method: POST | ||
8 |
Post – conditions: |
OpenLMIS: the global initiative for powerful LMIS software