From b8ad2dfd0cf843a846639c312ede4b51d37a7d0e Mon Sep 17 00:00:00 2001 From: oesi Date: Fri, 20 Jan 2017 10:37:37 +0100 Subject: [PATCH] Sortierung bei BIS-Verwendung korrigiert damit bei Abrechnungen die korrekte Version herangezogen wird --- include/bisverwendung.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bisverwendung.class.php b/include/bisverwendung.class.php index bb245ce42..8d6a217b1 100644 --- a/include/bisverwendung.class.php +++ b/include/bisverwendung.class.php @@ -374,7 +374,7 @@ class bisverwendung extends basis_db mitarbeiter_uid=".$this->db_add_param($uid)." AND (beginn<=".$this->db_add_param($datum)." OR beginn is null) AND (ende>=".$this->db_add_param($datum_obj->formatDatum($datum,'Y-m-01'))." OR ende is null) - ORDER BY beginn;"; + ORDER BY ende desc;"; if($this->db_query($qry)) {