Fix su DialogProgressView.
Aggiunto barcodeUl nel caso venga battezzata un'etichetta fornitore in DialogScanOrCreateLU.
This commit is contained in:
parent
d19f4de424
commit
0b777137d5
@ -70,7 +70,7 @@ public class DialogProgressView extends DialogFragment {
|
|||||||
if (isPending) return;
|
if (isPending) return;
|
||||||
|
|
||||||
isPending = true;
|
isPending = true;
|
||||||
handler.postDelayed(() -> {
|
handler.post(() -> {
|
||||||
try {
|
try {
|
||||||
if (!manager.isDestroyed() && !isAdded()) {
|
if (!manager.isDestroyed() && !isAdded()) {
|
||||||
manager.executePendingTransactions();
|
manager.executePendingTransactions();
|
||||||
@ -82,7 +82,7 @@ public class DialogProgressView extends DialogFragment {
|
|||||||
} finally {
|
} finally {
|
||||||
isPending = false;
|
isPending = false;
|
||||||
}
|
}
|
||||||
}, 50);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -178,7 +178,14 @@ public class DialogScanOrCreateLUViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.sendError(new NoLUFoundException());
|
var createUdcRequest = new CreateUDCRequestDTO()
|
||||||
|
.setBarcodeUl(barcodeScanDTO.getStringValue())
|
||||||
|
.setCodMdep(SettingsManager.i().getUserSession().getDepo().getCodMdep());
|
||||||
|
|
||||||
|
this.mColliLavorazioneRESTConsumer.createUDC(createUdcRequest, createdMtbColt -> {
|
||||||
|
onComplete.run();
|
||||||
|
this.sendOnLUOpened(createdMtbColt, true);
|
||||||
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user