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

Outbound shipment: Can issue the expired stock #5078

Open bijaySussol opened 4 hours ago

bijaySussol commented 4 hours ago

What went wrong? 😲

Can issue the expired stock, the control works perfectly on Issue field but not from the stock line. could be expected behaviour but seeing 2 functionality for the same stock line is odd while issuing out the stock aka outbound.

Expected behaviour 🤔

TBD, but both functionality should be behaving similar.

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Prepare the stock line that is already expired
  2. Create new outbound (Customer invoice)
  3. Select that line
  4. Use Issue field > says "stock line with expired cannot be issued", perfect
  5. Select the qty from the batch line, it allow to issue the stock

Is open msupply trying to mimic this preference from desktop with batch line?

Your environment 🌱

Open msupply demo

NOTE: Why is open mSupply allows to enter expiry date of the stock line that on past date when cannot be issued out? Saying hello to all through this.

lache-melvin commented 2 hours ago

My assumption was that we don't auto-allocate expired stock, but you could issue it explicitly, if you felt so inspired. Will leave for triage team for decision though 🙏