Fix su DialogProgressView.

Aggiunto barcodeUl nel caso venga battezzata un'etichetta fornitore in DialogScanOrCreateLU.
This commit is contained in:
Giuseppe Scorrano 2025-02-10 18:24:50 +01:00
parent d19f4de424
commit 0b777137d5
2 changed files with 10 additions and 3 deletions

View File

@ -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); });
} }

View File

@ -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);