[IME_TE ]
corretto bug update errato mtb_colr
This commit is contained in:
parent
1aeb86ea68
commit
4ddb8fbe3f
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user