Change requisition initiate process to determine which requisition template to use

Description

When initiating a requisition, the logic to get the proper requisition template for this new requisition does not only check by program, but now checks by program and facility type.

Acceptance Criteria

  • Change demo data for the "Vaccine Stock-Based R&R Template" template to be the template for "vaccine stock based requisition" referenced in ticket

  • For a program that has multiple requisition templates (EPI in demo data), initiating a requisition at the "Health Center" facility type will show one requisition form (the stock-based one), and at the "District Store" facility type will show the other requisition form (the "regular" one)

  • Initiating a requisition at another program where a template is not associated with the facility type of the requisition will return an error: "R&R template not found at this facility for this program"

Status

Assignee

Łukasz Lewczyński

Reporter

Chongsun Ahn

Labels

None

Story Points

2

Time tracking

12h

Components

Sprint

None

Fix versions

Priority

Major