It is randomly not possible to add products to inventory for certain users

Description

I noticed an issue when I was executing OLMIS‌-4826 . It appears that the issue with no products available in the "Add Products" modal on the "Physical Inventory" screen still occurs randomly for some users. I was able to reproduce it for divo2, srmanager1, rivo and administrator/srmanager2 (for EM; for FP - only one additional product was available, one lot of Levora, when only 3 other products were already available on the screen already). For divo1, the issue doesn't occur. The issue doesn't occur each time and I can't pinpoint what it's cause is.

Reproduction steps #1:

  1. Log into the application as divo2.

  2. Navigate to Stock Management > Physical Inventory.

  3. Start the inventory for the EPI program.

  4. Click the "Add Product" button.

  5. Click the "Product" select.

  6. There are no products to select.

Reproduction steps #2:

  1. Log into the application as srmanager2

  2. Navigate to Stock Management > Physical Inventory.

  3. Start the inventory for the Family Planning program.

  4. Add Levora (with only one available lot) to inventory

  5. Submit

  6. do steps from Reproduction steps #1

Expected behavior:

  • It should be possible to add products to the inventory if not all of them have already been added.

Environment

None

Status

Assignee

Mateusz Kwiatkowski

Reporter

Joanna Bebak

Labels

Story Points

3

Time tracking

28h

Components

Sprint

None

Fix versions

Affects versions

Priority

Critical
Configure