diff --git a/lib/Utils.php b/lib/Utils.php index 63f8de4..86ef616 100644 --- a/lib/Utils.php +++ b/lib/Utils.php @@ -374,7 +374,10 @@ class Utils $rows = DB::getInstance()->get( "SELECT strftime('%Y', start_date) as annee FROM acc_years - ORDER by start_date DESC" + UNION + SELECT strftime('%Y', end_date) as annee + FROM acc_years + ORDER by annee DESC" ); $anneesFiscales = array(); foreach ($rows as $row) {