Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
38139a1ec9
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 434
|
def appVersionCode = 435
|
||||||
def appVersionName = '1.40.17'
|
def appVersionName = '1.40.18'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -167,8 +167,8 @@ public class RettificaGiacenzeViewModel {
|
|||||||
this.mArticoloRESTConsumer.searchByBarcode(barcodeProd, mtbAartList -> {
|
this.mArticoloRESTConsumer.searchByBarcode(barcodeProd, mtbAartList -> {
|
||||||
if (onComplete != null) onComplete.run();
|
if (onComplete != null) onComplete.run();
|
||||||
|
|
||||||
if (mtbAartList != null && mtbAartList.size() > 0) {
|
if (mtbAartList != null && !mtbAartList.isEmpty()) {
|
||||||
this.dispatchArts(mtbAartList);
|
this.dispatchArts(mtbAartList, pickData);
|
||||||
} else {
|
} else {
|
||||||
this.sendError(new NoResultFromBarcodeException(barcodeProd));
|
this.sendError(new NoResultFromBarcodeException(barcodeProd));
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ public class RettificaGiacenzeViewModel {
|
|||||||
.map(x -> (MtbAart) x.getMtbAart())
|
.map(x -> (MtbAart) x.getMtbAart())
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
dispatchArts(mtbAarts);
|
dispatchArts(mtbAarts, null);
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,14 +199,13 @@ public class RettificaGiacenzeViewModel {
|
|||||||
mRettificaGiacenzeRESTConsumer.searchArtInt(queryText, listaArts -> {
|
mRettificaGiacenzeRESTConsumer.searchArtInt(queryText, listaArts -> {
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
|
|
||||||
dispatchArts(listaArts);
|
dispatchArts(listaArts, null);
|
||||||
|
|
||||||
if (onComplete != null) onComplete.run();
|
if (onComplete != null) onComplete.run();
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dispatchArts(List<MtbAart> artsList, PickDataDTO pickData) {
|
||||||
private void dispatchArts(List<MtbAart> artsList) {
|
|
||||||
if (artsList == null || artsList.size() == 0) {
|
if (artsList == null || artsList.size() == 0) {
|
||||||
this.sendError(new NoArtsFoundException());
|
this.sendError(new NoArtsFoundException());
|
||||||
return;
|
return;
|
||||||
@ -219,7 +218,7 @@ public class RettificaGiacenzeViewModel {
|
|||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
if (matchRows.size() != 1) {
|
if (matchRows.size() != 1) {
|
||||||
dispatchArt(mtbAart, null);
|
dispatchArt(mtbAart, pickData);
|
||||||
} else {
|
} else {
|
||||||
dispatchRowEdit(matchRows.get(0));
|
dispatchRowEdit(matchRows.get(0));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user