[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>';
?>
- [Noalyss-commit] [noalyss] branch devel updated (910ae8b9f -> 39eb388b0), dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 02/10: If card already used in accountancy, cannot changed the quickcode, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 06/10: Bug : verification ne fonctionne pas avec MY_REPORT=N,
dwm <=
- [Noalyss-commit] [noalyss] 05/10: FOLLOWUP : change destinataire et concerne, supprime filtre sur "concerne", dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 08/10: Code Improve : Extension , Fix : php8.1, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 07/10: Saved search for accountancy replace filter by "Saved search", dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 01/10: PHP8.1 compatibility, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 09/10: Merge, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 10/10: Follow-Up : list with a filter, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 03/10: QCODE : remove trigger update on jrnx, dwm, 2024/02/25
- [Noalyss-commit] [noalyss] 04/10: PHP8.1 compatibility, dwm, 2024/02/25