Finish v1.33.01(372)
This commit is contained in:
commit
72b0e29ae6
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 371
|
def appVersionCode = 372
|
||||||
def appVersionName = '1.33.00'
|
def appVersionName = '1.33.01'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -216,6 +216,7 @@ public class PVOrdineAcquistoEditViewModel {
|
|||||||
saveAction.run();
|
saveAction.run();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
articolo.setQtaOrd(articolo.getQtaOrd() > 0f ? articolo.getQtaOrd() : articolo.getQtaCnf());
|
||||||
this.sendOnItemDispatched(articolo, onSuccess);
|
this.sendOnItemDispatched(articolo, onSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +250,6 @@ public class PVOrdineAcquistoEditViewModel {
|
|||||||
articolo.setNewNoPromo(art.isNewNoPromo());
|
articolo.setNewNoPromo(art.isNewNoPromo());
|
||||||
articolo.setSystemNote(art.generateSystemNote());
|
articolo.setSystemNote(art.generateSystemNote());
|
||||||
articolo.setQtaCnf(art.getQtaCnf() > 0f ? art.getQtaCnf() : 1);
|
articolo.setQtaCnf(art.getQtaCnf() > 0f ? art.getQtaCnf() : 1);
|
||||||
articolo.setQtaOrd(art.getQtaOrd() > 0f ? art.getQtaOrd() : art.getQtaCnf());
|
|
||||||
articolo.setCodAlis(art.getCodAlis());
|
articolo.setCodAlis(art.getCodAlis());
|
||||||
articolo.setCtMaxOrd(BigDecimal.valueOf(art.getCtMaxOrd()));
|
articolo.setCtMaxOrd(BigDecimal.valueOf(art.getCtMaxOrd()));
|
||||||
|
|
||||||
|
|||||||
@ -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