Open lache-melvin opened 5 days ago
Expectation is that most of the time, either:
There may be times there is e.g. 6 doses per vial, but this is probably not too common that we need to worry about it, at least for now.
If it does happen, should be resolved via inventory adjustment, rather than any magic by us behind the scenes. Perhaps could implement a special kind of stocktake in future for this?
In the meantime, change vaccination modal UI to show <1 dose, and disable this line (as can't dispense less than a dose), to indicate to the user that inventory adjustment is required
What went wrong? 😲
For vaccines where doses per unit is more than one, after creating a few vaccination transactions, we end up with this:
Also, the batch select (in the vax card) is rounding the decimals, so if you end up with and almost-zero stock line, it shows there as 0. Doses should always be an integer, shouldn't need the rounding!
Expected behaviour 🤔
Decimal reductions in stock from vaccinations add up to whole units. None of this 0.00000000000001 business.
How to Reproduce 🔨
Steps to reproduce the behaviour:
Your environment 🌱