Generate Shipments is generating partial for complete orders

Description

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.

Regards,

Carlos Ruiz

Environment

None

Activity

Show:
Orlando Curieles
January 23, 2019, 5:35 PM

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");

Line 249.

That will help in the core

Carlos Ruiz
January 25, 2019, 12:47 PM

Thanks , integrated that to core in 8a697d1

Heng Sin Low
May 9, 2020, 6:33 AM

Should forbid user to complete an order with different dates promised if the delivery rule is complete - sound like a user mistake to me.

Orlando Curieles
May 9, 2020, 2:12 PM

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..

Best Regards,

Orlando.

Carlos Ruiz
May 13, 2020, 3:32 PM

> 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.

Fixed

Assignee

Carlos Ruiz

Reporter

Carlos Ruiz

Labels

None

Tested By

None

Fix versions

Priority

Major
Configure