From ba535d185b1d5d8bed18e7dbf1ef936c7f63f852 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 2 Feb 2025 10:11:36 +0100 Subject: [PATCH] Rapport : France : pas de report donc FROM=00.0000 reprend 1er jour du dossier --- include/lib/impress.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/lib/impress.class.php b/include/lib/impress.class.php index eed2c1c41..2b03d704e 100644 --- a/include/lib/impress.class.php +++ b/include/lib/impress.class.php @@ -325,6 +325,7 @@ class Impress // Get the periode /* ! \note special value for the clause FROM=00.0000, we take the first day of the exercice of $p_end + for France (MY_REPORT==N), the first day of the folder */ if ($p_from=='00.0000') { @@ -339,6 +340,10 @@ class Impress // retrieve the first month of this periode if (empty($first_day)) throw new Exception('Pas de limite à cette période', 1); + global $g_parameter; + + if ( $g_parameter->MY_REPORT == 'N') $first_day='01.01.1900'; + $cond=sql_filter_per($p_cn, $first_day, $last_day, 'date', 'j_tech_per'); } else