1704: Cannot submit requisition when non-full supply product is added


Test Case #:1704

Test Case Name:Cannot submit requisition when non-full supply product is added

System: OpenLMIS

Subsystem: blue

Test case designed by: Paulina Borowa

Design Date:20.01.2017

Short description

When a user try to submit a requisition, the server returns the following error:

{
"timestamp" : 1484746547049,
"status" : 500,
"error" : "Internal Server Error",
"exception" : "org.springframework.dao.DataIntegrityViolationException",
"message" : "could not execute statement; SQL [n/a]; constraint [maxmonthsofstock]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement",
"path" : "/api/requisitions/da7e40ab-4b8b-4faf-9de9-4576d2b7c4ff"
}

Acceptance criteria:

  • a user should be able to submit a requisition with and without non full supply product list

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

                                                                                                                                                                                                                                                                                                                                                    

2

  

 

3

  

 

4

  

 

5

   

OpenLMIS: the global initiative for powerful LMIS software