inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.38k stars 789 forks source link

[FR] Just in time purchasing #2946

Open spectre-ns opened 2 years ago

spectre-ns commented 2 years ago

Is your feature request the result of a bug? No

Problem When I want to build a part for just in time production I would like to be able to order all the parts I need in a series of POs.

Suggested solution It would be great if one could have a simple workflow to buy all the sub-components required to complete a pending work order. In the place where parts are allocated from stock I would like to be able to append that item to a purchase request and allocate that item to the WO so it is allocated to the WO upon receipt.

Describe alternatives you've considered Currently, I would have to upload all the parts in a BOM to a purchase order using a CSV which works but isn't very elegant. Also this can be accomplished one at a time from the WO screen when allocating but for large parts it's a pain.

Examples of other systems Odoo does this but in a convoluted way designed for large scale production.

Do you want to develop this? I don't have the bandwidth (I think I have the python chops to do it). Otherwise I would love to.

matmair commented 2 years ago

@SchrodingersGat weren't you implementing something similar for builds?

spectre-ns commented 2 years ago

I guess what I'm suggesting would be a half step that is using the order all functionality from the parts menu but going all the way would required also making WO for all the allocated sub-assemblies and purchasing all the parts for those as well. Plus you'd need to allocate the WO results to the top level build order. Seems like this planned based on there being child work order fields.

matmair commented 2 years ago

Maybe I am understanding you wrong but this seems to be a vast request with all the linking logic and needed testing etc. We are a small team so we do not guarantee feature implementation or timelines - if you want a fast resolution I encourage contributing.

spectre-ns commented 2 years ago

My apologies when I sent the request it was for a simple request with basically just a bulk order functionality based on a query of parts in a given BOM.

To go all the way with that you'd have to 'order' all the assemblies as well by making WO for those and order the parts for those as well.

That part would be quite complicated but the first part should be pretty straight forward. I don't 'need' the functionality as it is something that automates a process that can be done manually. Definitely a nice to have not essential thought I'd toss in a FR to see if anyone had thought about it. If I find some time I'll take a shot at it. Might be a little ambitious for my first pr...?

SchrodingersGat commented 2 years ago

There has been some progress on an "order required parts" button for the build screen, but limited developer resources means that efforts have been prioritised elsewhere. As @matmair says the quickest path to this is to contribute the code yourself, or sponsor development. I'd be happy to point you at the relevant parts of code if you wanted some assistance.

It would not have to be achieved all at once - there are definitely some smaller improvements to the purchasing framework which would need to be addressed first.

derekwolfson commented 1 year ago

I think this would be very helpful, too.

Would love -- at the least -- the functionality to order 50X of Part A (which itself isn't a purchasable part) but is made up of Part B, Part C, Part D, etc.

Just allowing part group ordering in fixed ratios would save a lot of time, for me at least, even if they don't relate directly to a build order.