Bugfix bei Datumsabfrageb

This commit is contained in:
Andreas Österreicher
2011-08-31 13:31:08 +00:00
parent a5899f61c8
commit cc96e40439
6 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -202,10 +202,10 @@ class wawi_bestellung extends basis_db
$qry.= " AND UPPER(bestellung.titel) LIKE UPPER('%".addslashes($titel)."%')";
if ($evon != '')
$qry.= ' AND bestellung.insertamum > date('.$this->addslashes($evon).')';
$qry.= ' AND bestellung.insertamum::date >= date('.$this->addslashes($evon).')';
if ($ebis != '')
$qry.= ' AND bestellung.insertamum < '.$this->addslashes($ebis);
$qry.= ' AND bestellung.insertamum::date <= '.$this->addslashes($ebis);
if ($bvon != '')
$qry.= " AND status.bestellstatus_kurzbz = 'Bestellung' and status.datum > ".$this->addslashes($bvon);