Cannot initiate emergency requisitions

Description

I log as smanager1, I select Requisitions and Create/Authorize, I select My Facility, Facility Name: Nandumbo Health Centre, Program: Family Planning and Type: Emergency, and click Search. I got the error message: "No current period defined. Please contact the Admin."

We are not yet sure if this is a UI bug, Java bug, or Demo Data-related.

Acceptance criteria:

  • When a regular requisition has not been created yet, the error message in emergency requisition states it, rather than saying that no periods are defined

  • It is only possible to initiate a new emergency requisition after the previous emergency requisition is (submitted?/authorized?) (TBD)

  • The emergency requisition grid does not display any information about pending regular requisition

  • There will be no limit on number of emergency requisitions per period for a facility - program

  • Emergency requisitions can be initiated irrespective of the status of regular requisition for the same period

  • Emergency requisition applies to the current period to which the initiation date belongs

  • Currently, there can be more than one emergency requisitions in initiated stage

  • User right to create a requisition will apply to both regular and emergency requisitions.

Environment

None

Activity

Show:
Przemysław Studziński
February 16, 2017, 3:50 PM
Edited
  • When we can create emergency requisition? (when regular requisition is submitted or when is authorized? - now we can do this when is submitted)

Sebastian Brudziński
February 16, 2017, 4:41 PM

to confirm whether we should be able to initiate a new one after a previous one is submitted or authorized.
It should probably be authorized.

Mary Jo Kochendorfer
February 17, 2017, 12:31 AM

and . My understanding is there wasn't a validation between regular requisitions and emergency requisitions. I don't remember outlining that validation https://openlmis.atlassian.net/browse/OLMIS-1207. Looking at v2 there wasn't a validation on if the requisition was submitted or authorized. For now, I don't think we need to put that validation in.

It is my understanding that emergency requisitions have to be within a current period (according to today's date) that is why you cannot create an emergency requisition for a future period. However, it sounds like you are saying it is somehow tied to regular requisitions... Here is the AC from v2:

  • There will be no limit on number of emergency requisitions per period for a facility - program

  • Emergency requisitions can be initiated irrespective of the status of regular requisition for the same period

  • Emergency requisition applies to the current period to which the initiation date belongs

  • Currently, there can be more than one emergency requisitions in initiated stage

  • User right to create a requisition will apply to both regular and emergency requisitions.

Is there an easy way forward to shift the current validation with the regular requisition? to only make it based on the date?

Sebastian Brudziński
February 17, 2017, 12:20 PM

Thanks and let me confirm a few things based on what you have posted and on what I have seen on v2:

  • I am always able to initiate a new emergency requisition as long as there's a period for the current date defined in the schedule

  • It does not matter if I have initiated a regular requisition or not. The regular requisition may not exist for the current period, but I can still initiate an emergency requisition

  • If a regular requisition exists for the current period, it does not matter what state it's in, I can still create an emergency requisition for the current period

  • I can initiate a new emergency requisition regardless of the state of other emergency requisitions for the same period. This means I can keep on initiating a new emergency requisition over and over again and have 10 emergency requisitions in the initiated state and I should be able to access all of them

Paulina Borowa
February 22, 2017, 1:30 PM
Edited

All works fine.
When user has right to create requisition he can initiate both regular and emergency requisitions and user is always able to create new emergency requisition (It doesn't matter if there is any initiated regular requisition or not)

Assignee

Sebastian Brudziński

Reporter

Brandon Bowersox-Johnson

Labels

None

Story Points

5

Time tracking

0m

Time remaining

3h 30m

Components

Sprint

None

Fix versions

Priority

Critical
Configure