Lettering
========= Small bugs + replace modifyOperation by viewOperation
This commit is contained in:
parent
47aa10773b
commit
427faed75d
3 changed files with 7 additions and 7 deletions
|
|
@ -58,7 +58,7 @@ $date_from=new IDate('from_periode');
|
|||
$date_to=new IDate('to_periode');
|
||||
$year=$User->get_exercice();
|
||||
$date_from->value=(isset($_REQUEST['from_periode']))?$_REQUEST['from_periode']:$first_day;
|
||||
$date_to->value=(isset($_REQUEST['to_periode']))?$_REQUEST['to_periode']:$last_day['p_end'];
|
||||
$date_to->value=(isset($_REQUEST['to_periode']))?$_REQUEST['to_periode']:$last_day;
|
||||
echo td(_('Depuis').$date_from->input());
|
||||
echo td(_('Jusque ').$date_to->input());
|
||||
//
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ $js="this.gDossier=".dossier::id().
|
|||
</td>
|
||||
<td> <?=$this->content[$i]['j_date_fmt']?> </td>
|
||||
<?php
|
||||
$r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:modifyOperation(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')" >%s</A>',
|
||||
$this->content[$i]['jr_id'], $l_sessid,$gDossier, $this->content[$i]['jr_def_id'],'S', $this->content[$i]['jr_internal']);
|
||||
$r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:viewOperation(\'%s\',\'%s\',\'%s\')" >%s</A>',
|
||||
$this->content[$i]['jr_id'], $l_sessid,$gDossier, $this->content[$i]['jr_internal']);
|
||||
?>
|
||||
<td> <?=$r?> </td>
|
||||
<td> <?=h($this->content[$i]['jr_comment'])?> </td>
|
||||
|
|
@ -74,7 +74,7 @@ $r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript
|
|||
$operation->jr_id=$element;
|
||||
$l_amount=$this->db->get_value("select jr_montant from jrn ".
|
||||
" where jr_id=$element");
|
||||
echo "<A class=\"detail\" HREF=\"javascript:modifyOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount € ]</A>";
|
||||
echo "<A class=\"detail\" HREF=\"javascript:viewOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount € ]</A>";
|
||||
}//for
|
||||
}// if ( $a != null ) {
|
||||
// compute amount
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ $letter=($this->content[$i]['letter']==-1)?" ":$this->content[$i]['letter'];
|
|||
</td>
|
||||
<td> <?=$this->content[$i]['j_date_fmt']?> </td>
|
||||
<?php
|
||||
$r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:modifyOperation(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')" >%s</A>',
|
||||
$this->content[$i]['jr_id'], $l_sessid,$gDossier, $this->content[$i]['jr_def_id'],'S', $this->content[$i]['jr_internal']);
|
||||
$r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascript:viewOperation(\'%s\',\'%s\',\'%s\')" >%s</A>',
|
||||
$this->content[$i]['jr_id'], $l_sessid,$gDossier, $this->content[$i]['jr_internal']);
|
||||
?>
|
||||
<td> <?=$r?> </td>
|
||||
<td> <?=$this->content[$i]['jr_comment']?> </td>
|
||||
|
|
@ -85,7 +85,7 @@ $r=sprintf('<A class="detail" style="text-decoration:underline" HREF="javascrip
|
|||
$operation->jr_id=$element;
|
||||
$l_amount=$this->db->get_value("select jr_montant from jrn ".
|
||||
" where jr_id=$element");
|
||||
echo "<A class=\"detail\" HREF=\"javascript:modifyOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount € ]</A>";
|
||||
echo "<A class=\"detail\" HREF=\"javascript:viewOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount € ]</A>";
|
||||
}//for
|
||||
}// if ( $a != null ) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue