diff --git a/include/firma.class.php b/include/firma.class.php index 029e1469a..06b0db7eb 100644 --- a/include/firma.class.php +++ b/include/firma.class.php @@ -388,7 +388,7 @@ class firma extends basis_db UNION SELECT firma_id, name, anmerkung, lieferbedingungen, firmentyp_kurzbz, updateamum, updatevon, insertamum, insertvon, - ext_id, schule, steuernummer, gesperrt, aktiv, finanzamt, '2' as sort + ext_id, schule, steuernummer, gesperrt, aktiv, finanzamt, '2' as sort, partner_code FROM public.tbl_firma WHERE UPPER(trim(public.tbl_firma.name)) like '%".$this->db_escape($matchcode)."%' @@ -698,7 +698,7 @@ class firma extends basis_db if($firmentyp_kurzbz!='') $qry.=" and firmentyp_kurzbz=".$this->db_add_param($firmentyp_kurzbz); - + if($oes!='') $qry.=" and oe_kurzbz IN ('".$oes."') ";