Risolto problema di refMtbColt nulla in alcuni casi particolari della spedizione
This commit is contained in:
parent
5dcc567eab
commit
c8cd794cfc
@ -648,7 +648,23 @@ public class SpedizioneViewModel {
|
||||
if (matchedRows == null || matchedRows.size() == 0) {
|
||||
this.sendError(new NoArtsFoundException());
|
||||
} else if (matchedRows.size() == 1) {
|
||||
this.dispatchOrdineRow(matchedRows.get(0), matchedRows.get(0).getRefMtbColt());
|
||||
PickingObjectDTO matchedItem = matchedRows.get(0);
|
||||
|
||||
|
||||
if (matchedItem.getMtbColts() != null && matchedItem.getMtbColts().size() > 1) {
|
||||
|
||||
List<PickingObjectDTO> pickingList = mPickingList.getValue();
|
||||
|
||||
Stream.of(pickingList)
|
||||
.filter(x -> x != matchedItem)
|
||||
.forEach(x -> x.setHidden(true));
|
||||
|
||||
this.sendFilterApplied(null);
|
||||
this.getPickingList().postValue(pickingList);
|
||||
} else {
|
||||
this.dispatchOrdineRow(matchedItem, matchedItem.getRefMtbColt());
|
||||
}
|
||||
|
||||
} else {
|
||||
List<PickingObjectDTO> pickingList = mPickingList.getValue();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user