The value of stock on hand is sometimes incorrect after making adjustments

Description

During exploratory tests of Stock Management, I noticed an issue related to stock adjustments, which I think is more of an edge case. The issue occurs on the "Unpack", "Receive", "Issue" and "Adjustments" screens. For instance, on the "Unpack" screen, after making two kit unpacking adjustments at the same time for the same product and lot but with different dates, the "Stock on Hand" for the product stops being displayed on the UI and in print on all Stock Management screens, as visible on the screenshots. When the date is the same for both adjustments, everything works correctly.

Reproduction steps for the "Unpack" screen:

  1. Log into the application as administrator.

  2. Create a kit unpack list for Levora - add Abortiva with Quantity 1 and save the changes.

  3. Go to Stock Management > Unpack and choose "Family Planning".

  4. Add Levora with No lot defined, Quantity 1 and Date 04/02/2020.

  5. Add Levora with No lot defined, Quantity 1 and Date 03/02/2020.

  6. Submit the adjustments.

  7. Go to Stock Management > Stock on Hand.

  8. The "Stock on Hand" for Levora (No lot defined) is incorrect.

  9. Click the "Print" button.

  10. The "Stock on Hand" for Levora (No lot defined) is incorrect.

  11. It's the same also on other Stock screens for the product.

Expected results:

  • The value of "Stock on Hand" for the product should be correct on the UI and in print on all Stock screens after making such adjustments on all Stock Management screens.

Environment

None

Assignee

Oskar Hinc

Reporter

Joanna Bebak

Labels

Story Points

5

Time tracking

24h

Components

Sprint

None

Fix versions

Priority

Major
Configure