[29.x] ErrorWhenCreatePurchaseOrderFromSaleOrderIncludingDROPShipmentInitial commit - #10947
Conversation
Good Sense Reviewer - Round 1Recommendation: Request ChangesWhat this PR doesThis change tries to copy item tracking after order planning recalculates the requisition line, and adds a regression test for a lot-tracked drop-shipment sales order. The timing is the right direction, but the old copy still runs before Problem-solution fitFit: Partial The bug scenario is clear and the test models it. The implementation only adds the later copy and leaves the earlier copy in place, so it does not fully match the expected behavior. SuggestionsS1 (🔴 High): Move item tracking copy instead of duplicating it Risk assessment and necessityRisk: This code is in order planning for sales demand and affects item tracking copied into requisition and purchase lines. A wrong sequence can block purchase order creation or leave incorrect reservation entries. The event surface is unchanged. Necessity: The scenario is important because a valid drop-shipment purchase order should be created with lot tracking. The change is necessary, but it should be the same narrow move of the call to after calculation.
|
alexei-dobriansky
left a comment
There was a problem hiding this comment.
If it's a backport, do the same corrections in the master branch.
Good Sense Reviewer - Round 2Recommendation: AcceptWhat this PR doesThe new commit removes the earlier item-tracking copy and leaves the shared publisher after Status of previous suggestions
New observations (commits since round 1)None - changes only addressed prior suggestions. Risk assessment and necessityRisk: Low. The touched code is in order planning and affects item tracking copied from demand lines into requisition and purchase lines. The publisher still exists, its signature is unchanged, and the timing is now after calculation. Necessity: The change is needed because purchase order creation from a lot-tracked drop-shipment sales order should succeed and preserve tracking.
|
Bug 648697: [29.x [ALL-E] "Item tracking is defined for item 1000 in the Requisition Line. You must delete the existing item tracking before modifying or deleting the Requisition line" when creating a Purchase Order from a Sales Order including DROP Shipment
Fixes AB#648697