Differenzia scarico layout spedita e non scaffalata

This commit is contained in:
2026-07-04 09:27:52 +02:00
parent d4cfe0be54
commit 5dd7139b19
4 changed files with 131 additions and 46 deletions

View File

@@ -681,27 +681,7 @@ class LayoutWindow(ctk.CTkToplevel):
if stato <= 0:
self._toast("La cella selezionata non contiene alcuna UDC da scaricare.")
return
if stato >= 2:
self._open_scarico_dialog(r, c)
return
barcode = str(self.udc1[r][c] or "").strip()
if not barcode:
self._toast("UDC non disponibile per lo scarico.")
return
if not messagebox.askyesno(
"Scarico",
f"Scaricare l'UDC {barcode} da {self._cell_label(r, c)}?",
parent=self,
):
return
self._run_pallet_move(
barcode_pallet=barcode,
target_idcella=9999,
target_barcode_cella="9000000",
success_message=f"Scarico completato per {barcode}.",
busy_message=f"Scarico {barcode}...",
)
self._open_scarico_dialog(r, c)
@_log_call()
def _run_pallet_move(