Merge branch 'SaporiVeriHotfix' into develop
This commit is contained in:
commit
d6d8212f6e
@ -657,7 +657,7 @@ public class PickingLiberoViewModel implements IRecyclerItemClicked<MtbColr> {
|
||||
final Dialog progress = UtilityProgress.createDefaultProgressDialog(mContext);
|
||||
|
||||
if(thereIsAnyRowInUL.get()) {
|
||||
updateDataFine(progress, () -> {
|
||||
ColliMagazzinoRESTConsumer.updateDataFine(mContext, progress, this.mtbColt.get(), () -> {
|
||||
progress.dismiss();
|
||||
setULToCurrentContext(null);
|
||||
}); //() -> 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) {
|
||||
|
||||
//La delete è stata commentata poichè visto che nel WMS vengono sempre presi i RESIDUI,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user