fix: align phase4 receiving and carrier fixtures
This commit is contained in:
-9
@@ -449,15 +449,6 @@ public class ReceivingContainerService {
|
||||
if (pallet.fbaWarehouseCode() != null && !pallet.fbaWarehouseCode().isBlank()) {
|
||||
throw conflict("FBA-designated pallet cannot receive an OVERSEAS destination carton");
|
||||
}
|
||||
if (ref.line().getDestinationWarehouseId() != null && !ref.line().getDestinationWarehouseId().isBlank()) {
|
||||
try {
|
||||
if (Long.parseLong(ref.line().getDestinationWarehouseId()) != pallet.warehouseId()) {
|
||||
throw conflict("Pallet destination warehouse does not match the inbound code");
|
||||
}
|
||||
} catch (NumberFormatException ignored) {
|
||||
// Destination codes that are not resource IDs are still protected by the actual overseas warehouse check.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user