You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got 2 variations of the same part, from different manufacturers and while I need to track these separately I don't care about the stock levels of each type of part individually.
In this case, I have a template part "Widget", with variants "Acme Widget" and "OCP Widget". I have set a minimum stock level of 10 parts for the generic "Widget", and I have 6 of each. I have enough in total.
In the part view for "Widget" (/part/3/, for example) and the page reports the correct number:
Available Stock | 12
In Stock | 12
However, the API doesn't include variants in stock calculations unlike the core model, so the tables that render stock levels such as the "low stock" table on /index/ and under the generic /part/ url show "no stock" for this template item. I can see that you might not want to aggregate variants in the API (at least by default), but it would be nice if the stock level of variants was (optionally?) taken into account on these tables, and so that the numbers are consistent across the application.
The text was updated successfully, but these errors were encountered:
Ah, there are also some issues counting serialized stock correctly. If I have 4 serialized "Acme Macguffin" in location "Area 51", with a minimum stock of 4, the /index/ low stock table reports it as 'low stock' and claims I only have 1 in stock.
Ben this is a fantastic bug report! Very nuanced understanding of what is going on here 👍
I agree that the API should be extended to (optionally) allow aggregation of stock for templated variants. Should not be too difficult and is a clean solution that should work across the board.
Ah, there are also some issues counting serialized stock correctly. If I have 4 serialized "Acme Macguffin" in location "Area 51", with a minimum stock of 4, the /index/ low stock table reports it as 'low stock' and claims I only have 1 in stock.
I've got 2 variations of the same part, from different manufacturers and while I need to track these separately I don't care about the stock levels of each type of part individually.
In this case, I have a template part "Widget", with variants "Acme Widget" and "OCP Widget". I have set a minimum stock level of 10 parts for the generic "Widget", and I have 6 of each. I have enough in total.
In the part view for "Widget" (/part/3/, for example) and the page reports the correct number:
Available Stock | 12
In Stock | 12
However, the API doesn't include variants in stock calculations unlike the core model, so the tables that render stock levels such as the "low stock" table on /index/ and under the generic /part/ url show "no stock" for this template item. I can see that you might not want to aggregate variants in the API (at least by default), but it would be nice if the stock level of variants was (optionally?) taken into account on these tables, and so that the numbers are consistent across the application.
The text was updated successfully, but these errors were encountered: