From 43f7b20af33eb33cf1a0c5abaa942d5d571e9166 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 29 Feb 2016 12:37:37 +0100 Subject: [PATCH] =?UTF-8?q?Task=20#1269=20-=20changement=20de=20p=C3=A9rio?= =?UTF-8?q?de=20pour=20/PRINTBAL=20et=20PRINTBILAN=20#1269=20:=20by=20defa?= =?UTF-8?q?ult=20last=20day=20of=20exercice=20for=20PRINTJRN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/impress_jrn.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/impress_jrn.inc.php b/include/impress_jrn.inc.php index e0eb74ad0..ace77e2e7 100644 --- a/include/impress_jrn.inc.php +++ b/include/impress_jrn.inc.php @@ -118,6 +118,13 @@ print ''; $periode_end = $cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end"); $w->selected = (isset($_GET['to_periode'])) ? $_GET['to_periode'] : ''; + +// By default , show last day of exercice + if ($w->selected== '' ){ + $t_periode=new Periode($cn); + list($per_max,$per_min)=$t_periode->get_limit($exercice); + $w->selected=$per_min->p_id; + } print td('Jusque ') . $w->input('to_periode', $periode_end); print ""; $a = array(