Cannot add products when performing a physical inventory

Description

The product list is empty, even though it appears that the backend API is returning orderables.

Steps to recreate:

  • Go to demo-v3.openlmis.org.

  • Log in as divo2 (user with no existing stock cards at home facility).

  • Go to Stock Management -> Physical Inventory.

  • Start a new physical inventory.

  • Add Product.

  • Try to select a product to add.

  • No products are in the list.

Possible cause: The products are not showing up, because there are no related stock cards created.
Expected behavior: There should be products in the list, even if there are no stock cards. On a fresh set up, we want to be able to "receive" and conduct physical inventory, even if there are no stock cards yet.

Screenshot below shows the backend API returns orderables.

Environment

None

Assignee

Mateusz Kwiatkowski

Reporter

Chongsun Ahn

Labels

None

Story Points

3

Time tracking

20h

Components

Sprint

None

Affects versions

Priority

Blocker
Configure