From d9912ff7e39bfce4d19ba12ab43e042e9433bdb4 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 27 Jan 2024 15:47:34 +0100 Subject: [PATCH] Bug : MY_REPORT was not respected --- include/class/fiche.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php index 1624c329c..62e124acb 100644 --- a/include/class/fiche.class.php +++ b/include/class/fiche.class.php @@ -1366,9 +1366,9 @@ class Fiche /* Filter on the default year */ if ( $g_parameter->MY_REPORT == 'N') { - $amount=$tiers->get_solde_detail($filter_year); - } else { $amount = $tiers->get_solde_detail(); + } else { + $amount=$tiers->get_solde_detail($filter_year); } /* skip the tiers without operation */