Stan patches + fix problem with one day period

This commit is contained in:
sparkyx 2006-09-17 14:56:56 +00:00
parent f11ceb5a18
commit 43b733503e
5 changed files with 28 additions and 13 deletions

View file

@ -50,7 +50,10 @@ class poste {
if ( $p_from == $p_to )
$periode=" jr_tech_per = $p_from ";
else
$periode = "(jr_tech_per >= $p_from and jr_tech_per <= $p_to) ";
$periode = "jr_tech_per in (select p_id from parm_periode ".
" where p_start >= $p_from and p_end <= $p_to) ";
// $periode = "(jr_tech_per >= $p_from and jr_tech_per <= $p_to) ";
$Res=ExecSql($this->db,"select to_char(j_date,'DD.MM.YYYY') as j_date,".
"case when j_debit='t' then j_montant else 0 end as deb_montant,".