mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
Bugfix bei Datumsabfrageb
This commit is contained in:
@@ -147,7 +147,8 @@ class geschaeftsjahr extends basis_db
|
||||
*/
|
||||
public function getakt()
|
||||
{
|
||||
$qry = "SELECT geschaeftsjahr_kurzbz FROM public.tbl_geschaeftsjahr WHERE start <= now() AND ende >= now()";
|
||||
$qry = "SELECT geschaeftsjahr_kurzbz FROM public.tbl_geschaeftsjahr WHERE start <= CURRENT_DATE
|
||||
AND ende >= CURRENT_DATE";
|
||||
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -157,10 +157,10 @@ class wawi_rechnung extends basis_db
|
||||
$qry.= ' AND tbl_rechnung.buchungsdatum <= '.$this->addslashes($buchungsdatum_bis);
|
||||
|
||||
if ($erstelldatum_von != '')
|
||||
$qry.= ' AND tbl_bestellung.insertamum >= '.$this->addslashes($erstelldatum_von);
|
||||
$qry.= ' AND tbl_bestellung.insertamum::date >= '.$this->addslashes($erstelldatum_von);
|
||||
|
||||
if ($erstelldatum_bis != '')
|
||||
$qry.= ' AND tbl_bestellung.insertamum <= '.$this->addslashes($erstelldatum_bis);
|
||||
$qry.= ' AND tbl_bestellung.insertamum::date <= '.$this->addslashes($erstelldatum_bis);
|
||||
|
||||
if ($bestelldatum_von != '')
|
||||
$qry.= " AND status.bestellstatus_kurzbz = 'Bestellung' AND status.datum >= ".$this->addslashes($bestelldatum_von);
|
||||
|
||||
Reference in New Issue
Block a user