Finish v1.24.6(274)
This commit is contained in:
commit
cc1e1bf221
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 273
|
def appVersionCode = 274
|
||||||
def appVersionName = '1.24.5'
|
def appVersionName = '1.24.6'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -91,14 +91,22 @@ public class VersamentoMerceViewModel {
|
|||||||
|
|
||||||
if (!UtilityString.equalsIgnoreCase(mCurrentMtbColt.getValue().getCodMdep(), foundPosizione.getCodMdep())) {
|
if (!UtilityString.equalsIgnoreCase(mCurrentMtbColt.getValue().getCodMdep(), foundPosizione.getCodMdep())) {
|
||||||
this.sendOnSpostamentoTraDepConfirmRequired(mCurrentMtbColt.getValue().getCodMdep(), foundPosizione.getCodMdep(), canContinue -> {
|
this.sendOnSpostamentoTraDepConfirmRequired(mCurrentMtbColt.getValue().getCodMdep(), foundPosizione.getCodMdep(), canContinue -> {
|
||||||
if (canContinue) {
|
|
||||||
updatePosizione(foundPosizione, UtilityPosizione.isPosizioneWithLivello(foundPosizione));
|
|
||||||
} else {
|
|
||||||
onComplete.run();
|
onComplete.run();
|
||||||
|
if (canContinue) {
|
||||||
|
if (UtilityPosizione.isPosizioneWithLivello(foundPosizione)) {
|
||||||
|
askLivelloPosizione(foundPosizione);
|
||||||
|
} else {
|
||||||
|
updatePosizione(foundPosizione);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
updatePosizione(foundPosizione, UtilityPosizione.isPosizioneWithLivello(foundPosizione));
|
onComplete.run();
|
||||||
|
if (UtilityPosizione.isPosizioneWithLivello(foundPosizione)) {
|
||||||
|
askLivelloPosizione(foundPosizione);
|
||||||
|
} else {
|
||||||
|
updatePosizione(foundPosizione);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -239,19 +247,18 @@ public class VersamentoMerceViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void updatePosizione(MtbDepoPosizione mtbDepoPosizione, boolean shouldAskLivello) {
|
public void askLivelloPosizione(MtbDepoPosizione mtbDepoPosizione) {
|
||||||
|
|
||||||
if (shouldAskLivello) {
|
|
||||||
this.sendOnLivelloPosizioneRequired(mtbDepoPosizione, newPosizione -> {
|
this.sendOnLivelloPosizioneRequired(mtbDepoPosizione, newPosizione -> {
|
||||||
|
|
||||||
if (newPosizione == null) {
|
if (newPosizione == null) {
|
||||||
updatePosizione(mtbDepoPosizione, shouldAskLivello);
|
askLivelloPosizione(mtbDepoPosizione);
|
||||||
} else {
|
} else {
|
||||||
updatePosizione(newPosizione, false);
|
updatePosizione(newPosizione);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
public void updatePosizione(MtbDepoPosizione mtbDepoPosizione) {
|
||||||
this.sendOnLoadingStarted();
|
this.sendOnLoadingStarted();
|
||||||
mColliMagazzinoRESTConsumer.changePosizione(mCurrentMtbColt.getValue(), mtbDepoPosizione, () -> {
|
mColliMagazzinoRESTConsumer.changePosizione(mCurrentMtbColt.getValue(), mtbDepoPosizione, () -> {
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
@ -259,8 +266,6 @@ public class VersamentoMerceViewModel {
|
|||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public MutableLiveData<MtbColt> getCurrentMtbColt() {
|
public MutableLiveData<MtbColt> getCurrentMtbColt() {
|
||||||
return mCurrentMtbColt;
|
return mCurrentMtbColt;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user