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
@@ -224,6 +224,22 @@ class ReceivingContainerServiceBehaviorTest {
verify(workflow, never()).assignResolvedPallet(any(), any(), any(), any());
}
@Test
void overseasPalletUsesActualReceivingWarehouseInsteadOfBusinessDestinationId() {
stubCurrent("OVERSEAS", "CONT-A");
InboundPlanLine overseasLine = line("OVERSEAS");
overseasLine.setDestinationWarehouseId("900");
when(lines.selectList(any())).thenReturn(List.of(overseasLine));
when(warehouse.resolvePallet("PAL-1")).thenReturn(resource(100L, null));
var resolved = service.resolvePallet("7",
new ReceivingContainerRequests.PalletResolve("PAL-1", "IN-1"));
assertThat(resolved.compatible()).isTrue();
assertThat(resolved.warehouseId()).isEqualTo(100L);
assertThat(resolved.destinationType()).isEqualTo("OVERSEAS");
}
@Test
void containerCompletionRequiresEveryInboundCodeToBalanceExactly() {
stubCurrent("FBA", "CONT-A");