fix(lastleg): restore receiving service structure
This commit is contained in:
+1
-1
@@ -701,10 +701,10 @@ public class ReceivingContainerService {
|
|||||||
return Objects.equals(line.getDestinationWarehouseCode(), pallet.getDestinationWarehouseCode());
|
return Objects.equals(line.getDestinationWarehouseCode(), pallet.getDestinationWarehouseCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReceivingContainerResponses.Session snapshot(ReceivingContainerSession session, List<InboundPlan> containerPlans) {
|
|
||||||
private record PalletSelection(InboundPlanPallet pallet,
|
private record PalletSelection(InboundPlanPallet pallet,
|
||||||
WarehouseResourceGateway.WarehousePalletReference resource) { }
|
WarehouseResourceGateway.WarehousePalletReference resource) { }
|
||||||
|
|
||||||
|
private ReceivingContainerResponses.Session snapshot(ReceivingContainerSession session, List<InboundPlan> containerPlans) {
|
||||||
List<ReceivingContainerResponses.Inbound> inbounds = refs(session.getCustomerId(), session.getContainerNo()).stream()
|
List<ReceivingContainerResponses.Inbound> inbounds = refs(session.getCustomerId(), session.getContainerNo()).stream()
|
||||||
.map(this::inbound).toList();
|
.map(this::inbound).toList();
|
||||||
int total = inbounds.stream().mapToInt(ReceivingContainerResponses.Inbound::totalPackages).sum();
|
int total = inbounds.stream().mapToInt(ReceivingContainerResponses.Inbound::totalPackages).sum();
|
||||||
|
|||||||
Reference in New Issue
Block a user