Fix su ricerca articoli per posizione in Picking Libero
This commit is contained in:
parent
b1dba20973
commit
4a8a21b970
@ -158,8 +158,11 @@ public class DialogChooseArtsFromMtbColrList extends BaseDialogFragment implemen
|
|||||||
mBindings.listaArts.setHasFixedSize(true);
|
mBindings.listaArts.setHasFixedSize(true);
|
||||||
|
|
||||||
this.mtbColrItemModels = Stream.of(this.inputMtbColrList)
|
this.mtbColrItemModels = Stream.of(this.inputMtbColrList)
|
||||||
.map(x -> new DialogChooseArtsFromMtbColrListItemModel()
|
.map(x -> {
|
||||||
.setMtbColr(x))
|
x.setUntMis(x.getMtbAart() != null && x.getMtbAart().getFirstUntMis() != null ? x.getMtbAart().getFirstUntMis().getUntMis() : null);
|
||||||
|
return new DialogChooseArtsFromMtbColrListItemModel()
|
||||||
|
.setMtbColr(x);
|
||||||
|
})
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
this.hiddenMtbColrItemModels.setValue(this.mtbColrItemModels);
|
this.hiddenMtbColrItemModels.setValue(this.mtbColrItemModels);
|
||||||
@ -294,12 +297,12 @@ public class DialogChooseArtsFromMtbColrList extends BaseDialogFragment implemen
|
|||||||
this.articoloRESTConsumer.getByBarcodeProd(barcodeProd, mtbAartList -> {
|
this.articoloRESTConsumer.getByBarcodeProd(barcodeProd, mtbAartList -> {
|
||||||
|
|
||||||
if (mtbAartList != null && mtbAartList.size() > 0) {
|
if (mtbAartList != null && mtbAartList.size() > 0) {
|
||||||
this.mBindings.mainSearch.setQuery(barcodeProd, false);
|
MtbAart articolo = mtbAartList.get(0);
|
||||||
|
this.mBindings.mainSearch.setQuery(articolo.getCodMart(), false);
|
||||||
|
|
||||||
this.searchArtInList(mtbAartList.get(0), ean128Model);
|
this.searchArtInList(mtbAartList.get(0), ean128Model);
|
||||||
|
|
||||||
onLoadingEnded();
|
onLoadingEnded();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
DialogCommon.showNoArtFoundDialog(mContext, this::onLoadingEnded);
|
DialogCommon.showNoArtFoundDialog(mContext, this::onLoadingEnded);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user