Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Paweł Nawrocki
Paweł Nawrocki(Deactivated)Reporter
Weronika Ciecierska
Weronika CiecierskaStory Points
2
Original estimate
4h
Time tracking
Components
Sprint
None
Fix versions
Priority
Time Assistant
Time Assistant
Created June 9, 2017 at 2:23 PM
Updated June 23, 2017 at 5:59 PM
Resolved June 21, 2017 at 12:01 PM
When user wants to display periods for given facility and program in order to initate requisition (Requisition -> Initiate), it is possible to get Internal application error message in the UI when Home facility doesn't support given Program. In this situation endpoint /periodsForInitate reponds with code 400 and the reponse body is:
{ "messageKey" : "requisition.error.facilityDoesNotSupportProgram", "message" : "Facility with ID 968f82b8-cd79-40f2-9f04-82a90fd0a16f does not support program with ID 7b462c77-2ae4-4d4e-a90d-4516a178f5de." }
Similar issue was adressed in OLMIS-2536: Missing check if facility supports programDone but it seems that it checks only supervised facilities - I got this error for user's home facility.
Acceptance criteria:
In the Requisition-> Initiate screen, when home facility is selected, it is possible to select only supported by this facility programs from the list.