fix: hide completed receiving containers
This commit is contained in:
+12
@@ -190,6 +190,18 @@ class ReceivingContainerServiceBehaviorTest {
|
||||
assertThat(service.candidates("7", 100L)).extracting("containerNo").containsExactly("CONT-A");
|
||||
}
|
||||
|
||||
@Test
|
||||
void candidatesHideCompletedContainers() {
|
||||
InboundPlan completed = plan("CONT-A");
|
||||
completed.setStatus("COMPLETED");
|
||||
when(plans.selectList(any())).thenReturn(List.of(completed));
|
||||
when(lines.selectList(any())).thenReturn(List.of(line("FBA")));
|
||||
when(orders.selectList(any())).thenReturn(List.of(
|
||||
containerOrder(1L, "100", "CONT-A", "BOOKING-A", "IN-1")));
|
||||
|
||||
assertThat(service.candidates("7", 100L)).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
void partialContainerPlansRemainVisibleAndPrepareIsHardRejected() {
|
||||
InboundPlan firstPlan = plan("CONT-A");
|
||||
|
||||
Reference in New Issue
Block a user