fix(lastleg): keep inventory warehouse snapshots canonical
This commit is contained in:
+2
-2
@@ -259,8 +259,8 @@ public class InboundPlanService {
|
||||
if (updated != 1) {
|
||||
throw new IllegalStateException("Failed to update order " + order.orderId());
|
||||
}
|
||||
inventoryBalanceMapper.bindInboundPlan(customerId, order.orderId(), order.inboundCode(),
|
||||
plan.getPlanNo(), now);
|
||||
inventoryBalanceMapper.bindInboundPlan(customerId, receivingWarehouseId, order.orderId(),
|
||||
order.inboundCode(), plan.getPlanNo(), now);
|
||||
orderMapper.insertHistory(customerId, order.orderId(), order.currentStatus(),
|
||||
"Inbound order converted to inbound plan " + plan.getPlanNo(), now);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user