Emergency Req can have nulls for requested qty and req qty exp

Description

Per test steps, all fields in the emergency requisition are required. Yet I am able to delete amounts and an explanation in the field, and still submit the emergency requisition successfully.

Steps to Reproduce:

  1. Initiate an emergency requisition (as srmanager1)

  2. Add two or more products with requested qty and req quantity explanation

  3. Remove requested qty for one of the products. There is no error icon stating this field is required.

  4. Now remove the requested qty explanation. There is no error icon stating this field is required.

  5. Click Submit. The requisition is submitted successfully. The requisition can be submitted with nulls for all fields.

  6. In Chrome, the error icon appears when I clear one field, but then if I clear both, the error icons go away and I can submit.

Expected Results:

  1. When a product is added to the emergency requisition, the requested qty and req qty explanation fields are required.

  2. If the requested qty or req qty explanation fields are null, the user should see an input error icon, saying that the field is required.

  3. The emergency requisition cannot be submitted if there is no data in these fields.

  4. If a user has added products they do not want, they have to delete the emergency requisition and initiate a new one correctly.

Environment

uat.openlmis.org

Assignee

Mateusz Kwiatkowski

Reporter

Sam Im

Labels

Story Points

2

Time tracking

8h

Components

Sprint

None

Affects versions

Priority

Blocker
Configure