From b4cb86f5c5c2026241f4854b4992997a0c717048 Mon Sep 17 00:00:00 2001 From: engel <> Date: Wed, 30 Nov 2022 17:47:00 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20liste=20ann=C3=A9es=20fiscales?= =?UTF-8?q?=20pour=20tenir=20compte=20des=20exercices=20=C3=A0=20cheval=20?= =?UTF-8?q?sur=202=20ann=C3=A9es=20civiles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FossilOrigin-Name: baa2224ae6a9e43681f95ce0bef1013a3fdfc9937b761106a18b672f58e40651 --- lib/Utils.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {