Sebastien is right, with such a patch, the internal pickings always stays to "exception" when they should normally be done.
Here are 2 scenarios before and after the application of a patch which links the sale order line to the last procurement:
Before
product: 03/0584GM
so: SO045
confirmation => generate
picking: INT/00592 INT/00593 OUT/00422
procurements: Stock > Stock2 (INT/00593) stock2 > Output (INT/00592)
Run Scheduler => exception =>
PO: PO00469 => confirm & process the incoming shipment => purchase procurement done
Run Scheduler =>
procurement Stock > Stock2 ready
reception INT/00593 (Stock > Stock2) =>
so SO045 sale order line is done and sale is shipped, wrong
Run Scheduler =>
procurement Stock2 Output ready
reception INT/00593 =>
all procurements are done
pick OUT/00422 ready
After
product: 03/0584GM
so: SO046
confirmation =>
picking: INT/00595
INT/00594
OUT/00423
procurement: Stock > Stock2 (INT/00595)
stock2 > Output (INT/00594)
Run Scheduler => exception "Not enough stock" on the 2 procurements
One procurement generated for the purchase
PO: PO00173 => confirm & process the incoming shipment => purchase procurement done
Run Scheduler => procurements in exception
Run Scheduler => procurements in exception
Run Scheduler => procurements in exception
... both procurements always stay in "Not enough stock." exception
Hello,
Sebastien is right, with such a patch, the internal pickings always stays to "exception" when they should normally be done.
Here are 2 scenarios before and after the application of a patch which links the sale order line to the last procurement:
Before
INT/ 00593
OUT/ 00422
stock2 > Output (INT/00592)
product: 03/0584GM
so: SO045
confirmation => generate
picking: INT/00592
procurements: Stock > Stock2 (INT/00593)
Run Scheduler => exception =>
PO: PO00469 => confirm & process the incoming shipment => purchase procurement done
Run Scheduler =>
procurement Stock > Stock2 ready
reception INT/00593 (Stock > Stock2) =>
so SO045 sale order line is done and sale is shipped, wrong
Run Scheduler =>
procurement Stock2 Output ready
reception INT/00593 =>
all procurements are done
pick OUT/00422 ready
After
product: 03/0584GM
so: SO046
confirmation =>
picking: INT/00595
INT/00594
OUT/00423
procurement: Stock > Stock2 (INT/00595)
stock2 > Output (INT/00594)
Run Scheduler => exception "Not enough stock" on the 2 procurements
One procurement generated for the purchase
PO: PO00173 => confirm & process the incoming shipment => purchase procurement done
Run Scheduler => procurements in exception
Run Scheduler => procurements in exception
Run Scheduler => procurements in exception
... both procurements always stay in "Not enough stock." exception