From ecf986d33b4a6901de4d94af986e531fed8957e6 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 26 Oct 2023 20:23:19 +0200 Subject: [PATCH] versandpakete improvements --- phpwf/plugins/class.yui.php | 6 ++-- www/pages/ajax.php | 5 ++- www/pages/content/versandpakete_edit.tpl | 6 ++-- www/pages/content/versandpakete_lieferung.tpl | 2 +- www/pages/versandpakete.php | 34 +++++++++++++------ 5 files changed, 35 insertions(+), 18 deletions(-) diff --git a/phpwf/plugins/class.yui.php b/phpwf/plugins/class.yui.php index c06f3ab2..9dd92f04 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -3693,10 +3693,10 @@ class YUI { } function IconsSQL_lieferung() { - $lieferschein_kein = "app->Conf->WFconf['defaulttheme']}/images/lagerstop.png\" title=\"Keine Artikel\" border=\"0\" style=\"margin-right:1px\">"; + $lieferschein_kein = "app->Conf->WFconf['defaulttheme']}/images/lagerstop.png\" title=\"Keine Artikel in Versandpaketen\" border=\"0\" style=\"margin-right:1px\">"; $lieferschein_ohne_pos = "app->Conf->WFconf['defaulttheme']}/images/summe_go.png\" title=\"Lieferschein ohne Positionen\" border=\"0\" style=\"margin-right:1px\">"; - $lieferschein_voll = "app->Conf->WFconf['defaulttheme']}/images/lagergo.png\" title=\"Artikel vollständig\" border=\"0\" style=\"margin-right:1px\">"; - $lieferschein_teil = "app->Conf->WFconf['defaulttheme']}/images/lagergo_stop.png\" title=\"Artikel teilweise\" border=\"0\" style=\"margin-right:1px\">"; + $lieferschein_voll = "app->Conf->WFconf['defaulttheme']}/images/lagergo.png\" title=\"Artikel vollständig in Versandpaketen\" border=\"0\" style=\"margin-right:1px\">"; + $lieferschein_teil = "app->Conf->WFconf['defaulttheme']}/images/lagergo_stop.png\" title=\"Artikel teilweise in Versandpaketen\" border=\"0\" style=\"margin-right:1px\">"; $versendet = "app->Conf->WFconf['defaulttheme']}/images/liefersperrego.png\" title=\"Versendet\" border=\"0\" style=\"margin-right:1px\">"; $versendet_nicht = "app->Conf->WFconf['defaulttheme']}/images/liefersperrestop.png\" title=\"Nicht versendet\" border=\"0\" style=\"margin-right:1px\">"; diff --git a/www/pages/ajax.php b/www/pages/ajax.php index 8faae048..a2c7e04b 100644 --- a/www/pages/ajax.php +++ b/www/pages/ajax.php @@ -1603,7 +1603,10 @@ select a.kundennummer, (SELECT name FROM adresse a2 WHERE a2.kundennummer = a.ku $subwhere = $this->AjaxFilterWhere($termorig,$felder); $sql = "SELECT CONCAT(art.nummer,' ',art.name_de) as name FROM artikel art INNER JOIN $doctype"."_position ap ON ap.artikel = art.id AND $doctype = '$doctypeid' - WHERE art.geloescht=0 AND ($artikel_freitext1_suche) AND art.geloescht=0 AND art.intern_gesperrt!=1 LIMIT 20"; + WHERE + art.geloescht=0 AND ($artikel_freitext1_suche) AND art.geloescht=0 AND art.intern_gesperrt!=1 AND + (name_de LIKE '%$term%' OR art.nummer LIKE '%$term%') + LIMIT 20"; $arr = $this->app->DB->SelectArr($sql); $carr = !empty($arr)?count($arr):0; for($i = 0; $i < $carr; $i++) { diff --git a/www/pages/content/versandpakete_edit.tpl b/www/pages/content/versandpakete_edit.tpl index 486bd8bb..eb2597f4 100644 --- a/www/pages/content/versandpakete_edit.tpl +++ b/www/pages/content/versandpakete_edit.tpl @@ -59,7 +59,7 @@ {|Gewicht Kg|}: