WerksverkaufScanner: Artikelnummer/EAN nach Scannen im Feld stehen lassen, außer bei Fehler

This commit is contained in:
Christopher Meinhold 2025-12-19 08:41:45 +01:00
parent 14a8b6e6f6
commit 2c2e9b40b2

View File

@ -182,7 +182,7 @@ else
mengeText = null; // Mengenfeld leeren bei neuem Scan mengeText = null; // Mengenfeld leeren bei neuem Scan
var input = scanText?.Trim(); var input = scanText?.Trim();
scanText = string.Empty; // scanText = string.Empty;
if (string.IsNullOrWhiteSpace(input)) if (string.IsNullOrWhiteSpace(input))
{ {
@ -207,6 +207,7 @@ else
{ {
status = $"Kein Artikel gefunden für „{input}“."; status = $"Kein Artikel gefunden für „{input}“.";
focusBarcode = true; focusBarcode = true;
scanText = null;
} }
else if (matches.Count == 1) else if (matches.Count == 1)
{ {
@ -296,6 +297,7 @@ else
gefunden = null; gefunden = null;
varianten = null; varianten = null;
focusBarcode = true; focusBarcode = true;
scanText = null;
} }
catch (Exception ex) catch (Exception ex)
{ {