This commit is contained in:
Karl Burkhart
2010-11-29 16:16:19 +00:00
parent 822b6094dd
commit e59cb59527
2 changed files with 41 additions and 0 deletions
+40
View File
@@ -170,4 +170,44 @@ class wawi_bestellstatus extends basis_db
return false; return false;
} }
} }
/**
*
* Setzt den Status einer Bestellung auf Bestellt
*/
public function setBestellung()
{
$qry = "INSERT INTO wawi.tbl_bestellung_bestellstatus (bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES
(".($this->bestellung_id).", 'Bestellung',".$this->addslashes($this->uid).", ".$this->addslashes($this->oe_kurzbz).", '".($this->datum)."',
".$this->addslashes($this->insertvon).", ".$this->addslashes($this->insertamum).", ".$this->addslashes($this->updatevon).", ".$this->addslashes($this->updateamum).");";
if(!$this->db_query($qry))
{
$this->errormsg ="Fehler bei der Abfrage aufgetreten.";
return false;
}
return true;
}
/**
*
* Enter description here ...
*/
public function setStorno()
{
$qry = "INSERT INTO wawi.tbl_bestellung_bestellstatus (bestellung_id, bestellstatus_kurzbz, uid, oe_kurzbz, datum, insertvon, insertamum, updatevon, updateamum)
VALUES
(".($this->bestellung_id).", 'Storno',".$this->addslashes($this->uid).", ".$this->addslashes($this->oe_kurzbz).", '".($this->datum)."',
".$this->addslashes($this->insertvon).", ".$this->addslashes($this->insertamum).", ".$this->addslashes($this->updatevon).", ".$this->addslashes($this->updateamum).");";
if(!$this->db_query($qry))
{
$this->errormsg ="Fehler bei der Abfrage aufgetreten.";
return false;
}
return true;
}
} }
+1
View File
@@ -481,6 +481,7 @@ class wawi_bestellung extends basis_db
updatevon ='.$this->addslashes($this->udpatevon).', updatevon ='.$this->addslashes($this->udpatevon).',
ext_id = '.$this->addslashes($this->ext_id).' WHERE bestellung_id = '.$this->bestellung_id.';'; ext_id = '.$this->addslashes($this->ext_id).' WHERE bestellung_id = '.$this->bestellung_id.';';
} }
echo $qry;
if($this->db_query($qry)) if($this->db_query($qry))
{ {
if($this->new) if($this->new)