Improve the error message while attempting to initiate a requisition without any FTAPs

Description

Reproduction steps:

  1. Log in as an administrator and create a new facility type e.g. test.

  2. Go to Facility and change facility type to newly created for any facility e.g. Balaka District Hospital.

  3. Go to Requisition Template, select a program e.g. Family Planning and go to the Template Settings.

  4. Add the new facility type and save.

  5. Go to Requisition > Create/Authorize and try to initiate a requisition for a facility with a new facility type (Family Planning/Balaka District Hospital).

  6. An error occurs that reference data service is not found.

Expected results:

  • The correct error message should be displayed e.g. The products from the product grid are lacking FTAPs. To initiate the requisition, please add FTAPs.

  • The console should not contain a 500 error, but rather a bad request.

 

Environment

None

Assignee

Unassigned

Reporter

Joanna Szymańska

Labels

Epic Link

Components

Priority

Minor
Configure