From d7f510f2876a297fd01135e0e1b038da07281905 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 14 Feb 2011 10:07:55 +0000 Subject: [PATCH] =?UTF-8?q?in=20getAllSearch=20wird=20mit=20der=20=C3=BCbe?= =?UTF-8?q?rgebenen=20mitarbeiter=5Fid=20auch=20nach=20insertvon=20und=20b?= =?UTF-8?q?esteller=5Fuid=20gesucht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/wawi_bestellung.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wawi_bestellung.class.php b/include/wawi_bestellung.class.php index 429689d06..542beeac5 100644 --- a/include/wawi_bestellung.class.php +++ b/include/wawi_bestellung.class.php @@ -221,7 +221,8 @@ class wawi_bestellung extends basis_db $qry.= ' AND bestellung.konto_id = '.$this->addslashes($konto_id); if ($mitarbeiter_uid != '') - $qry.= ' AND bestellung.updatevon = '.$this->addslashes($mitarbeiter_uid); + $qry.= ' AND ( bestellung.updatevon = '.$this->addslashes($mitarbeiter_uid).' OR bestellung.insertvon = '.$this->addslashes($mitarbeiter_uid) + .' OR bestellung.besteller_uid = '.$this->addslashes($mitarbeiter_uid).' )'; if($rechnung) $qry.= ' AND not exists (Select bestellung.bestellung_id from wawi.tbl_rechnung rechnung where rechnung.bestellung_id=bestellung.bestellung_id)';