Obbliga conferma movimenti barcode con tasti funzione

This commit is contained in:
2026-07-06 17:56:44 +02:00
parent 44cd82352b
commit fa9d0be09a
2 changed files with 6 additions and 5 deletions

View File

@@ -519,11 +519,12 @@ class BarcodeClientApp:
def _on_destination_enter(self, _event=None) -> str: def _on_destination_enter(self, _event=None) -> str:
pallet = str(self.scanned_var.get() or "").strip() pallet = str(self.scanned_var.get() or "").strip()
destination = str(self.destination_var.get() or "").strip() if not pallet:
if pallet and destination:
self._submit()
else:
self._focus_primary_input() self._focus_primary_input()
else:
self.info1_var.set("F3 per associare, F4 per disassociare")
self.status_band.configure(bg=self._status_colors["yellow"])
self._focus_destination_input()
return "break" return "break"
def _on_unload_key(self, _event=None) -> str: def _on_unload_key(self, _event=None) -> str:

View File

@@ -13,7 +13,7 @@ MODULE_VERSIONS: dict[str, str] = {
"async_msssql_query": "1.0.1", "async_msssql_query": "1.0.1",
"audit_log": "1.0.0", "audit_log": "1.0.0",
"main": "1.0.1", "main": "1.0.1",
"barcode_client": "1.0.25", "barcode_client": "1.0.26",
"barcode_repository": "1.0.12", "barcode_repository": "1.0.12",
"barcode_service": "1.0.24", "barcode_service": "1.0.24",
"busy_overlay": "1.0.0", "busy_overlay": "1.0.0",