Stan patches + fix problem with one day period
This commit is contained in:
parent
f11ceb5a18
commit
43b733503e
5 changed files with 28 additions and 13 deletions
|
|
@ -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,".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue