From f7c64bec797c33956148288476d46664024633c3 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 29 Dec 2023 12:58:38 +0100 Subject: [PATCH] Bugfix Warnung doppelte Seriennummern removed pointless SQL WHERE --- www/eproosystem.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/eproosystem.php b/www/eproosystem.php index 84d51898..b5490d73 100644 --- a/www/eproosystem.php +++ b/www/eproosystem.php @@ -1699,7 +1699,6 @@ if (typeof document.hidden !== \"undefined\") { // Opera 12.10 and Firefox 18 an FROM `beleg_chargesnmhd` s INNER JOIN lieferschein_position lp ON s.doctype = 'lieferschein' AND s.pos = lp.id AND s.type = 'sn' AND s.wert <> '' INNER JOIN lieferschein l ON lp.lieferschein = l.id AND l.status <> 'storniert' - WHERE l.id NOT IN (SELECT lieferscheinid FROM retoure LIMIT 1) GROUP BY s.wert, lp.artikel ) UNION ALL ( @@ -1708,7 +1707,7 @@ if (typeof document.hidden !== \"undefined\") { // Opera 12.10 and Firefox 18 an SELECT lp.artikel, s.seriennummer as wert , count(s.id) as anzahl, max(l.id) as lieferschein, max(l.belegnr) as belegnr FROM `seriennummern` s INNER JOIN lieferschein_position lp ON s.lieferscheinpos = lp.id - INNER JOIN lieferschein l ON lp.lieferschein = l.id WHERE s.seriennummer <> '' AND l.id NOT IN (SELECT lieferscheinid FROM retoure LIMIT 1) + INNER JOIN lieferschein l ON lp.lieferschein = l.id WHERE s.seriennummer <> '' GROUP BY s.seriennummer, lp.artikel