From 3eef5748e2bf8dc8aa31aa4253360a954a03b5ca Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 4 Feb 2012 20:25:42 +0000 Subject: [PATCH] Merged revisions 4745 via svnmerge from file:///home/developper/svn/phpcompta/tags/rel600 ........ r4745 | danydb | 2012-02-04 16:44:10 +0100 (Sat, 04 Feb 2012) | 3 lines Bug : clause from in report didn't work properly ........ --- include/class_impress.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class_impress.php b/include/class_impress.php index b09f8e592..b99e75157 100644 --- a/include/class_impress.php +++ b/include/class_impress.php @@ -57,6 +57,7 @@ class Impress $cond=sql_filter_per($p_cn,$p_start,$p_end,'p_id','j_tech_per'); else $cond="( j_date >= to_date('$p_start','DD.MM.YYYY') and j_date <= to_date('$p_end','DD.MM.YYYY'))"; + include_once("class_acc_account_ledger.php"); // while (@ereg("(\[[0-9]*%*D*C*S*\])",$p_formula,$e) == true) @@ -112,7 +113,8 @@ class Impress $oPeriode=new Periode($p_cn); try { - $from=$oPeriode->find_periode('01'.$from); + $pfrom=$oPeriode->find_periode('01.'.$from); + $cond= sql_filter_per($p_cn, $pfrom, $p_end,'p_id','j_tech_per'); } catch (Exception $exp) {