-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOH columns of omSupply and mSupply (OG) are not calculated the same way #5433
Comments
Should do what OG does |
Triage, I think we have total in api now for item stats, so should be reasonably simple, but may require a little bit of back end work on requisition line creation |
The
|
I went rogue and added #5906 - haven't made any changes for requisitions though. there's also a TODO to address re total stock in requisition lines. |
itemStats now includes (total)stockOnHand! Per Marks comment, will need to implement getting |
What went wrong? 😲
mSupply OG include Total on hand
https://drive.google.com/file/d/13QzBwFMstniwAvF5Yd-qZRAMRRaNMONQ/view?usp=sharing
omSupply include only available stock ie only the stock that have not be already allocated to the shipment of another customer for which the invoice has not been confirmed yet.
https://drive.google.com/file/d/1Ufr_GJllxnlvb-WMwPqSH6Cz7FwgaIg0/view?usp=sharing
For example mSupply OG calculate 2406 for item AY02027 whcih is the sum of the stock of these 4 lines:
https://drive.google.com/file/d/11ZvWYcmassW7RCogpK-jh-YHT-EnQXEl/view?usp=drive_link
But this line is the only one for which the Total stock is different from the available of stock
https://drive.google.com/file/d/19vSCERZsgjt6TMmtzO2vjPGuw9hxQKHA/view?usp=sharing
Which seems to account for the difference between the omSupply and mSupply OG.
I have tried 1 other item (AY02028) and the difference also to corresponds to the difference between Total stock and available stock.
Expected behaviour 🤔
Values in mSupply OG and omSupply should be the same. I think that SOH should be the total stock on hand and not only the stock available but I might be wrong.
How to Reproduce 🔨
Steps to reproduce the behaviour:
Migrate a store from mSupply OG to omSupply
Your environment 🌱
The text was updated successfully, but these errors were encountered: