Creating Issue or Receive in offline mode does not work

Description

Issue discovered while executing:

Test Case: Synchronize offline events test case

Execution Date: 03/Mar/2025

Open Execution


Reproduction steps
1. Click the "Stock Management" option on the menu bar.
2. Go to offline mode and click "Stock Management"
3. Create some Issue / Receive / Adjustments in offline mode and click "Submit offline" button
4. Click "Confirm"
5. Click "Pending offline events (..)" link Failed
Expected: After clicking on the above, a user should be moved to the new page not available from the Navigation bar called Pending offline events
6. Go back to the online mode
7. Go to the Network tab in the browser and check if Stock Events rows exist and are sent with status code 201
8. Go back to offline and Create some more Issue / Receive / Adjustments in offline mode and Submit
9. Go back to the online and close the app window
10. Go to the offline mode and go to the Stock Management -> Issue
11. Open the same screen in the another incognito window and also go to the Stock Management -> Issue
12. Create an issue for the same program and for the same product in this two windows.

  • For the first offline issue in the Quantity column add for example 49 if stock on hands is equal to 50

  • For the second online issue in the Quantity column add for example 10
    Failed
    Expected: It should be possible to pick the same product in this two windows and fill all the fields

 

Actual result:
When you click ‘Make Issue’ or ‘Make Receive’ following pop-up appears:

Only ‘Make Adjustments’ works in offline mode.

Attachments

1
  • 20 Mar 2025, 12:23 PM

Checklists

Activity

Show:

Aleksandra CiesińskaMarch 21, 2025 at 10:15 AM

The problem of issue and receive will be fixed under the https://openlmis.atlassian.net/browse/OLMIS-8135

After retrieving valid sources and valid issue, I was able to go offline into the issue page - I executed the blocked steps and it works correctly. I am closing the task.

Unresolved
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Original estimate

Time tracking

2h logged

Priority

Time Assistant

Created March 20, 2025 at 12:22 PM
Updated March 21, 2025 at 1:09 PM