msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
20 stars 12 forks source link

Available Quantity not correct when auto allocating, then adjusting quantity supplied #4994

Open jmbrunskill opened 1 week ago

jmbrunskill commented 1 week ago

What went wrong? 😲

In an outbound shipment, if you have allocated lines, and have a placeholder line with extra stock, when all stock has been allocated. If you change the allocated value, the available stock you did have assigned is no longer available

Kapture 2024-10-04 at 12 30 45

Expected behaviour 🤔

If you reduce the number requested too less than available stock, you should be able to allocate the line with out closing and re-opening...

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Create a requisition from a different store (mine was from mobile)
  2. Make sure you have requested more stock than available in your store
  3. Create a shipment from the requisition for all stock
  4. Allocate all lines in outbound shipment
  5. Try to reduce stock to send to what's available in your store now...

Your environment 🌱

jmbrunskill commented 1 week ago

Kapture 2024-10-04 at 12 30 45

andreievg commented 1 week ago

Since there is a work around suggest we look at fixing the modal as a whole as part of: https://github.com/msupply-foundation/open-msupply/issues/3252

Mainly to get clarity on desired behaviour and make sure we don't break existing behaviour with a fix