From cecefe3cf6499afbdd3afdf8979cb74a0acd26f5 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 21 Mar 2008 10:49:50 +0000 Subject: [PATCH] Filter the financial balance from the current exercice only --- include/user_action_fin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/user_action_fin.php b/include/user_action_fin.php index 84d66f044..ba4ae2e56 100644 --- a/include/user_action_fin.php +++ b/include/user_action_fin.php @@ -285,7 +285,8 @@ if ( $action == 'solde' ) { for ( $i = 0; $i < pg_NumRows($ResAccount);$i++) { // get the saldo $l=pg_fetch_array($ResAccount,$i); - $m=get_solde($cn,$l['pcm_val']); + $m=get_solde($cn,$l['pcm_val'],' and j_tech_per in (select '. + 'p_id from parm_periode where p_exercice='.$User->get_exercice().') '); // print the result if the saldo is not equal to 0 if ( $m != 0.0 ) { echo "";