task #0000828: GESTION : Bouton exercice
This commit is contained in:
parent
571f4c802c
commit
736bdbfeba
1 changed files with 8 additions and 5 deletions
|
|
@ -1248,12 +1248,15 @@ class Fiche
|
|||
if ( $p_array == null)
|
||||
$p_array=$_REQUEST;
|
||||
$progress=0;
|
||||
$name=h($this->getName()).'['.$this->strAttribut(ATTR_DEF_QUICKCODE).']';
|
||||
// if from_periode is greater than to periode then swap the values
|
||||
if (cmpDate($p_array['from_periode'],$p_array['to_periode']) > 0)
|
||||
{
|
||||
$tmp=$p_array['from_periode'];
|
||||
$p_array['from_periode']=$p_array['to_periode'];
|
||||
$p_array['to_periode']=$tmp;
|
||||
|
||||
list($array,$tot_deb,$tot_cred)=$this->get_row_date( $p_array['from_periode'],
|
||||
$p_array['to_periode'],
|
||||
$op_let
|
||||
);
|
||||
}
|
||||
list($array, $tot_deb, $tot_cred) = $this->get_row_date($p_array['from_periode'], $p_array['to_periode'], $op_let);
|
||||
|
||||
if ( count($this->row ) == 0 )
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue