InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

[FR] Auto allocate stock to a sales order

Open rkalman opened this issue 3 years ago • 4 comments

Problem If you have a large sales order (with a lot of items) from a customer, there are no Auto-Allocate / Unallocate / Allocate Stock functions like in the case of a build order:

Képernyőfotó 2022-03-31 - 15 57 51 Képernyőfotó 2022-03-31 - 16 03 39

Suggested solution It would be nice if we can use the same functions here what we have on the build order page.

Describe alternatives you've considered Now you have to click on each "allocate stock" button line-by-line.

rkalman avatar Mar 31 '22 14:03 rkalman

@rkalman nice idea, would represent a fair amount of work! I'll tag is for the next-but-one release

SchrodingersGat avatar Apr 05 '22 12:04 SchrodingersGat

Thank you!

rkalman avatar Apr 05 '22 13:04 rkalman

I didn't realise there was an FR on this.. but the inventree-python binding has the function allocateToShipment for a SO line item, which does automatic allocation (if you let it): see it here

miggland avatar Jul 26 '22 07:07 miggland

This could enhance the workflow well. Now if you has a sales order with lots of items you have to do this:

  • add the item to the sales order
  • add the same item to a purchase order after received the PO items:
  • allocate items one by one to a SO

Maybe instead of duplicating the automatic allocation it will be nice if we can import items into a SO from a file. So you fill a SO with items, export them (missing) and import to a PO (already present). Or even do the opposite, export PO items (present) and import them into a SO (missing).

Submitted as a new FR #4390

rkalman avatar Feb 22 '23 09:02 rkalman