It is possible to make Stock on Hand a negative number

Description

When testing and I noticed that it is possible to make Stock on Hand a negative number. As for now it is a bit unclear what exactly causes the bug. A few files attached for better understanding of the issue.

Reproducing steps:

  1. Mind that this is not the only way to reproduce this bug. The SoH value can be influenced through Requisitions, Physical Inventory, Adjustments etc.

  2. Redeploy application to UAT server to make sure you operate on the same numbers

  3. Log in as an administrator

  4. Go to Stock Management → Adjustments → Family Planning → choose Levora lot MA2017A and submit 13 lost items

  5. Go to Stock Management → Issue → Family Planning → Levora MA2017A → transfer out 11 items to Balaka

  6. Go to Stock Management → Stock on Hand → Family Planning → everything should be OK in numbers, check if it is

  7. Go to Stock Management → Physical Inventory → Family Planning → set everything just as it is except for Levora lot MA2017A (set it to 50 instead of 66, no reasons)

  8. Go to Stock Management → Stock on Hand → notice diifferent Stock on Hand’s values

  9. Go to Stock Management → Issue → Family Planning → transfer out to Balaka 40 items (more than in visible SoH) of Levora lot MA2017A

  10. Go to Stock Management → Stock on Hand → notice how confusing the numbers are looking now

  11. Go to Stock Management → Adjustments → SoH should be e negative number → notice that you can declare 8 damaged items but not 12 (different SoH values are in use now - visible and the real one)

Acceptance criteria:
1. Stock on Hand cannot be a negative number at any time and it should always show the correct value

Environment

None

Activity

Show:
Joanna Szymańska
October 3, 2019, 3:07 PM

I checked FP, EM, and EPI on both browsers and each time SoH showed the correct values, never once there were values ​​below zero, so it works correctly.

Joanna Bebak
October 1, 2019, 7:33 AM

I was able to reproduce the issue on both browsers exactly the way it is described in the reproduction steps.

Joanna Bebak
September 30, 2019, 6:42 AM

Thank you very much! This is exactly what I meant - now the test steps are super clear so that attempts to reproduce it will not be very time-consuming.

Paweł Pinker
September 26, 2019, 12:34 PM
Edited

I managed to find exact steps to reproduce the bug. Mind that the exemplary numbers are present as default demo-data ones.

Joanna Bebak
September 24, 2019, 5:27 AM

Could you please provide more exact reproduction steps (i.e. where exactly one should navigate, as which user, and what exactly adjustments to which products should be made)? Also, please check again if you can reproduce this issue also today. If so, I think this will be another blocker or critical bug, unfortunately.

Done
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Klaudia Pałkowska

Reporter

Paweł Pinker