In some cases generate Shipments is generating partial shipment for complete orders when the Date Promised is filled and the order lines present different promised dates.
The shipment is generated just for the lines within the range breaking the business rule for complete order.
Hi, I added in the order by the line of sales Order.
// Deadlock Prevention - Order by M_Product_ID
MOrderLine lines = order.getLines (where.toString(), "C_BPartner_Location_ID, M_Product_ID, Line");
That will help in the core
Should forbid user to complete an order with different dates promised if the delivery rule is complete - sound like a user mistake to me.
The user put the correct dates in the lines but don't take the correct Order Line to make the shipment.
That was fixed on this commit..
> Should forbid user to complete an order with different dates promised if the delivery rule is complete
That sounds good - I think this is a correct validation for the prepareIt method.