replace GetInternal by Acc_Operation::get_internal

This commit is contained in:
sparkyx 2007-12-19 16:17:58 +00:00
parent 169a9c2606
commit 1da963ffda
4 changed files with 39 additions and 14 deletions

View file

@ -27,6 +27,7 @@
include_once("postgres.php");
require_once("class_document.php");
require_once("class_acc_operation.php");
/*! \file
* \brief Common functions
*/
@ -704,9 +705,11 @@ $sort_echeance="<th> <A class=\"mtitle\" HREF=\"?$url&o=ea\">$image_asc</A>Ech
foreach ($a as $key => $element)
{
$l_amount=getDbValue($p_cn,"select jr_montant from jrn ".
" where jr_id=$element");
$r.= "<A class=\"detail\" HREF=\"javascript:modifyOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".GetInternal($p_cn,$element)." [ $l_amount &euro; ]</A>";
$operation=new Acc_Operation($p_cn);
$operation->jr_id=$element;
$l_amount=getDbValue($p_cn,"select jr_montant from jrn ".
" where jr_id=$element");
$r.= "<A class=\"detail\" HREF=\"javascript:modifyOperation('".$element."','".$l_sessid."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount &euro; ]</A>";
}//for
}// if ( $a != null ) {
$r.="</TD>";