提交
This commit is contained in:
@@ -207,6 +207,11 @@ public class LoadingCompletedConsumer {
|
||||
catch (Exception exception) { throw new IllegalArgumentException("One-click dropship warehouseId is invalid", exception); }
|
||||
dropshipOrders.receive(new DropshipRequests.Receive(customerId, order.getId(), warehouseId,
|
||||
event.eventId() + ":DROPSHIP", dropshipPallets));
|
||||
InboundPlanResponse plan = inboundPlans.convertDropship(customerId, order.getId(), dropshipPallets.stream()
|
||||
.map(pallet -> new InboundPlanService.WholePalletInput(pallet.palletNo(), pallet.skuPackages().stream()
|
||||
.mapToInt(sku -> Math.toIntExact(sku.packageCount())).sum()))
|
||||
.toList());
|
||||
registerInTransit(event, payload, source, order, plan.planNo());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user