improved currgeschaeftsjahrquery

This commit is contained in:
alex
2018-05-16 11:52:37 +02:00
parent 26600dac05
commit 024bb06b0f
@@ -21,7 +21,9 @@ class Geschaeftsjahr_model extends DB_Model
$query = 'SELECT *
FROM public.tbl_geschaeftsjahr
WHERE start <= now()
AND ende >= now()';
AND ende >= now()
ORDER BY start DESC
LIMIT 1';
return $this->execQuery($query);
}