Fix su scansione barcode ean13 in dialog input quantity

This commit is contained in:
Giuseppe Scorrano 2021-05-04 17:34:00 +02:00
parent 2e46f9f665
commit 23b86e68cc
2 changed files with 6 additions and 3 deletions

View File

@ -128,7 +128,7 @@ public class ProdVersamentoMaterialViewModel {
DialogSimpleMessageView
.makeWarningDialog(new SpannableString(Html.fromHtml("Il collo selezionato non presenta articoli versabili sulla linea.")),
null, this::openLU)
.show(((AppCompatActivity) mContext).getSupportFragmentManager(), "tag");
.show(mContext.getSupportFragmentManager(), "tag");
return;
} else if (mtbColt.get().getMtbColr().size() > 1) {
@ -137,10 +137,11 @@ public class ProdVersamentoMaterialViewModel {
null, () -> {
cyclicGetOrdiniLavByCollo(mtbColt.get().getMtbColr().iterator(), mtbDepoPosizione);
})
.show(((AppCompatActivity) mContext).getSupportFragmentManager(), "tag");
.show(mContext.getSupportFragmentManager(), "tag");
return;
}
MesRESTConsumer.getOrdiniLavorazioneMateriale(
mtbDepoPosizione.getPosizione(),
getIdMaterialeFromCollo(mtbColt.get()),
@ -148,7 +149,7 @@ public class ProdVersamentoMaterialViewModel {
e -> DialogSimpleMessageView.makeWarningDialog(new SpannableString(Html.fromHtml(e.getMessage())),
null,
this::openLU)
.show(((AppCompatActivity) mContext).getSupportFragmentManager(), "tag"));
.show(mContext.getSupportFragmentManager(), "tag"));
}
} else {
DialogSimpleMessageView

View File

@ -185,6 +185,8 @@ public class DialogInputQuantityV2ViewModel {
this.mListener.onError(ex);
onComplete.run();
});
} else {
onComplete.run();
}
}