From 4dfdf960b0d4d187f9992bcce611639d37bd2468 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Fri, 26 Nov 2010 13:47:28 +0000 Subject: [PATCH] --- include/wawi_bestellstatus.class.php | 12 +++++++----- include/wawi_bestellung.class.php | 3 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/wawi_bestellstatus.class.php b/include/wawi_bestellstatus.class.php index 91f0e8c9b..1f85d9200 100644 --- a/include/wawi_bestellstatus.class.php +++ b/include/wawi_bestellstatus.class.php @@ -41,7 +41,6 @@ class wawi_bestellstatus extends basis_db public $updatevon; public $updateamum; - public $bestellstatus_kurzbz; /** * @@ -153,14 +152,17 @@ class wawi_bestellstatus extends basis_db $qry = "select bestellstatus.* from wawi.tbl_bestellung_bestellstatus as bestellstatus where - bestellung = ".$this->addslashes($bestellung_id)." and bestellstatus_kurzbz = ".$this->addslashes($status_kurzbz).";"; + bestellung_id = ".$this->addslashes($bestellung_id)." and bestellstatus_kurzbz = ".$this->addslashes($status_kurzbz).";"; if($this->db_query($qry)) { if($row = $this->db_fetch_object()) - return true; - else - return false; + { + $this->datum = $row->datum; + return true; + } + else + return false; } else { diff --git a/include/wawi_bestellung.class.php b/include/wawi_bestellung.class.php index 36a4c7429..c7646878c 100644 --- a/include/wawi_bestellung.class.php +++ b/include/wawi_bestellung.class.php @@ -478,8 +478,7 @@ class wawi_bestellung extends basis_db bemerkung = '.$this->addslashes($this->bemerkung).', liefertermin = '.$this->addslashes($this->liefertermin).', updateamum = '.$this->addslashes($this->updateamum).', - insertamum = '.$this->addslashes($this->insertamum).', - insertvon = '.$this->addslashes($this->insertvon).', + updatevon ='.$this->addslashes($this->udpatevon).', ext_id = '.$this->addslashes($this->ext_id).' WHERE bestellung_id = '.$this->bestellung_id.';'; } if($this->db_query($qry))