No products on Stock Management screens for freshly-configured facilities

Description

Currently our system doesn't include available products on Stock Management screens for just-created facilities. Even on the Physical Inventory screen there are no products to add to such a facility even though the products were loaded, assigned to a program and facility type.

As a workaround it is possible to create a requisition with available products at first. After approving it (so sending a stock event) the products are added to Physical Inventory screen and other Stock Management screens.

The workaround, however, is not acceptable when there will be hundreds of facilities to configure. We should change this logic, so that the products can be added to the Physical Inventory and other Stock Management screens.

Reproduction steps:

  1. Add a new facility (e.g. associated program: Family Planning, facility type: Health Center, geographic zone: Neno District)

  2. On the Products screen, choose the first product and add a new Program Orderable to it (Family Planning)

  3. For the same product at Facility Types tab add FTAP (Health Center, Family Planning)

  4. Set the new facility as Home Facility to any user

  5. Assign the Stock Manager role for Family Planning to the user

  6. Log out and log in as the user

  7. Proceed to the Stock Management → Physical Inventory screen and choose Family Planning program

  8. Open the Add Products modal

  9. Only Levora is available in the dropdown

Expected result:
It is possible to add to the Physical Inventory any products in the system available for given program.

Environment

None

Assignee

Wojciech Buława

Reporter

Paulina Buzderewicz

Labels

None

Story Points

3

Time tracking

16h

Components

Sprint

None

Due date

2020/05/19

Priority

Major
Configure