noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/10: Bug : verification ne fonctionne pas a


From: dwm
Subject: [Noalyss-commit] [noalyss] 06/10: Bug : verification ne fonctionne pas avec MY_REPORT=N
Date: Sun, 25 Feb 2024 13:17:49 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 85f19810ad81cf29f2b4e58cc05268f667d73d00
Author: Dany wm <danydb@noalyss.eu>
AuthorDate: Wed Feb 21 20:44:29 2024 +0100

    Bug : verification ne fonctionne pas avec MY_REPORT=N
---
 include/constant.php        |  1 +
 include/verif_bilan.inc.php | 12 ++++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/include/constant.php b/include/constant.php
index cc2868b6d..f05eb71f9 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -171,6 +171,7 @@ if (DEBUGNOALYSS == 0) {
     ini_set('log_errors', 1);
     ini_set('log_errors_max_len', 0);
 
+
 }
 // Erreur
 define("NOERROR", 0);
diff --git a/include/verif_bilan.inc.php b/include/verif_bilan.inc.php
index 9c66783dc..05e90e595 100644
--- a/include/verif_bilan.inc.php
+++ b/include/verif_bilan.inc.php
@@ -108,8 +108,16 @@ echo '<div class="myfieldset"><h1 
class="legend">'._('Vérification des comptes'
 $bilan=new Acc_Bilan($cn);
 $periode=new Periode($cn);
 list ($start_periode,$end_periode)=$periode->get_limit($exercice);
-$bilan->from=$start_periode->p_id;
-$bilan->to=$end_periode->p_id;
+global $g_parameter;
+if ( $g_parameter->MY_REPORT=="Y") {
+    $bilan->from=$start_periode->p_id;
+    $bilan->to=$end_periode->p_id;
+
+} else {
+    $first_periode=$cn->get_value("select to_char(p_start,'YYYY-MM-DD') from 
parm_periode order by p_start limit 1");
+    $bilan->from=format_date($first_periode,'YYYY-MM-DD','DD.MM.YYYY');
+    $bilan->to=$end_periode->last_day();
+}
 $bilan->verify();
 echo '</div>';
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]