fix: align phase4 receiving and carrier fixtures

This commit is contained in:
2026-08-24 23:12:04 +08:00
parent 1e8d85c714
commit bf4fd95841
6 changed files with 37 additions and 11 deletions
@@ -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.
}
}
}
}