Finish Hotfix-1

This commit is contained in:
Valerio Castellana 2020-02-18 17:00:51 +01:00
commit 7990898c7a
2 changed files with 3 additions and 24 deletions

View File

@ -17,8 +17,8 @@ apply plugin: 'com.google.gms.google-services'
android {
def appVersionCode = 131
def appVersionName = '1.12.2'
def appVersionCode = 132
def appVersionName = '1.12.3'
signingConfigs {
release {

View File

@ -582,7 +582,7 @@ public class AccettazioneOrdineAccettazioneInevasoViewModel implements IOnColloC
progress.show();
if (thereIsAnyRowInUL()) {
updateDataFine(progress, () -> {
ColliMagazzinoRESTConsumer.updateDataFine(mActivity, progress, getColloRef(), () -> {
if (shouldPrint) printCollo(progress, onComplete);
else {
postCloseOperations(onComplete);
@ -599,27 +599,6 @@ public class AccettazioneOrdineAccettazioneInevasoViewModel implements IOnColloC
}
private void updateDataFine(Dialog progress, Runnable onComplete) {
MtbColt cloneMtbColt = (MtbColt) getColloRef().clone();
cloneMtbColt.setOperation(CommonModelConsts.OPERATION.UPDATE);
cloneMtbColt.setOraFinePrep(UtilityDate.getDateInstance());
ColliMagazzinoRESTConsumer.saveCollo(cloneMtbColt, new ISimpleOperationCallback<MtbColt>() {
@Override
public void onSuccess(MtbColt value) {
onComplete.run();
}
@Override
public void onFailed(Exception ex) {
UtilityExceptions.defaultException(mActivity, ex, progress);
}
});
}
private void printCollo(Dialog progress, Runnable onComplete) {
MtbColt currentMtbColt = mArticoliInColloBottomSheetViewModel.mtbColt.get();