Modification liste années fiscales pour tenir compte des exercices à cheval sur 2 années civiles.

FossilOrigin-Name: baa2224ae6a9e43681f95ce0bef1013a3fdfc9937b761106a18b672f58e40651
This commit is contained in:
engel 2022-11-30 17:47:00 +00:00
parent 1d4fbe47a9
commit b4cb86f5c5

View File

@ -374,7 +374,10 @@ class Utils
$rows = DB::getInstance()->get( $rows = DB::getInstance()->get(
"SELECT strftime('%Y', start_date) as annee "SELECT strftime('%Y', start_date) as annee
FROM acc_years 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(); $anneesFiscales = array();
foreach ($rows as $row) { foreach ($rows as $row) {