Finish v1.13.23(169)

This commit is contained in:
Giuseppe Scorrano 2020-11-17 10:40:21 +01:00
commit 69bf5e319e
2 changed files with 19 additions and 3 deletions

View File

@ -7,8 +7,8 @@ apply plugin: 'com.google.gms.google-services'
android { android {
def appVersionCode = 168 def appVersionCode = 169
def appVersionName = '1.13.22' def appVersionName = '1.13.23'
signingConfigs { signingConfigs {
release { release {

View File

@ -648,7 +648,23 @@ public class SpedizioneViewModel {
if (matchedRows == null || matchedRows.size() == 0) { if (matchedRows == null || matchedRows.size() == 0) {
this.sendError(new NoArtsFoundException()); this.sendError(new NoArtsFoundException());
} else if (matchedRows.size() == 1) { } 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 { } else {
List<PickingObjectDTO> pickingList = mPickingList.getValue(); List<PickingObjectDTO> pickingList = mPickingList.getValue();