Automatically convert a Requisition to an order after a Requisition goes through final approval

Description

As a DIVO / Apu, I want a Requisition to be automatically Converted to an Order once a Requisition goes through "final approval", so that an Order is created from that Requisition and sent to the correct Facility without a separate workflow step of "Convert to Order".

The definition of "final approval" is getting redefined in OLMIS-3925, as a supply line exists for a certain supervisory node (by requisition's program).

Once has finished to allow a supplying facility to locally fulfill a requisition (by program), this ticket deals with checking the configuration setting for this facility/program combo, and automatically creating an order if "locally fulfills" is set.

Acceptance Criteria

  • When a requisition goes through "final approval", for a supplying facility/program combo, if "locally fulfills" is set to true, automatically create an order for the requisition

  • Do not change the existing convert-to-order logic - when a requisition goes through "final approval", for a supplying facility/program combo, if "locally fulfills" is set to false or not set, do not automatically create an order for the requisition

Status

Assignee

Łukasz Lewczyński

Reporter

Chongsun Ahn

Labels

None

Story Points

3

Time tracking

12h

Epic Link

Components

Sprint

None

Fix versions

Priority

Major
Configure