Controllate qta > 0 in caso di missione per magazzino automatico

This commit is contained in:
Giuseppe Scorrano 2023-04-18 15:32:02 +02:00
parent ef17e7a0c7
commit 4a7406fda1

View File

@ -605,7 +605,9 @@ public class SpedizioneViewModel {
final List<MagazzinoAutomaticoPickItemRequestDTO> magazzinoAutomaticoPickItemRequestDTOList = new ArrayList<>();
for (MtbAart selectedArt : selectedArts) {
final PickingObjectDTO pickingObjectDTO = Stream.of(magazzinoAutomaticoPickableArts)
.filter(x -> x.getMtbAart().getCodMart().equalsIgnoreCase(selectedArt.getCodMart()))
.filter(x -> x.getMtbAart().getCodMart().equalsIgnoreCase(selectedArt.getCodMart()) &&
x.getSitArtOrdDTO() != null &&
UtilityBigDecimal.greaterThan(x.getSitArtOrdDTO().getQtaOrd(), BigDecimal.ZERO))
.findFirst()
.orElse(null);