Merge branch 'SaporiVeriHotfix' into develop

This commit is contained in:
Giuseppe Scorrano 2020-02-20 13:00:45 +01:00
commit d6d8212f6e

View File

@ -657,7 +657,7 @@ public class PickingLiberoViewModel implements IRecyclerItemClicked<MtbColr> {
final Dialog progress = UtilityProgress.createDefaultProgressDialog(mContext); final Dialog progress = UtilityProgress.createDefaultProgressDialog(mContext);
if(thereIsAnyRowInUL.get()) { if(thereIsAnyRowInUL.get()) {
updateDataFine(progress, () -> { ColliMagazzinoRESTConsumer.updateDataFine(mContext, progress, this.mtbColt.get(), () -> {
progress.dismiss(); progress.dismiss();
setULToCurrentContext(null); setULToCurrentContext(null);
}); //() -> distribuisciCollo(progress, () -> printCollo(progress))); }); //() -> distribuisciCollo(progress, () -> printCollo(progress)));
@ -668,27 +668,6 @@ public class PickingLiberoViewModel implements IRecyclerItemClicked<MtbColr> {
} }
} }
private void updateDataFine(Dialog progress, Runnable onComplete) {
MtbColt cloneMtbColt = (MtbColt) this.mtbColt.get().clone();
cloneMtbColt.setOperation(CommonModelConsts.OPERATION.UPDATE);
cloneMtbColt.setOraFinePrep(UtilityDate.getDateInstance());
ColliMagazzinoRESTConsumer.saveCollo(cloneMtbColt, new ISimpleOperationCallback<MtbColt>() {
@Override
public void onSuccess(MtbColt value) {
if(onComplete != null) onComplete.run();
}
@Override
public void onFailed(Exception ex) {
UtilityExceptions.defaultException(mContext, ex, progress);
}
});
}
private void deleteCollo(Dialog progress) { private void deleteCollo(Dialog progress) {
//La delete è stata commentata poichè visto che nel WMS vengono sempre presi i RESIDUI, //La delete è stata commentata poichè visto che nel WMS vengono sempre presi i RESIDUI,