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;
|
||||
|
||||
isPending = true;
|
||||
handler.postDelayed(() -> {
|
||||
handler.post(() -> {
|
||||
try {
|
||||
if (!manager.isDestroyed() && !isAdded()) {
|
||||
manager.executePendingTransactions();
|
||||
@ -82,7 +82,7 @@ public class DialogProgressView extends DialogFragment {
|
||||
} finally {
|
||||
isPending = false;
|
||||
}
|
||||
}, 50);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -178,7 +178,14 @@ public class DialogScanOrCreateLUViewModel {
|
||||
}
|
||||
|
||||
} 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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user