cosmetic : 2 digit

This commit is contained in:
sparkyx 2023-03-23 12:42:29 +01:00
parent 8d3a357512
commit a99916902d
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
//This file is part of NOALYSS and is under GPL
//see licence.txt
?><?php
\Noalyss\Dbg::echo_file(__FILE__);
$amount_deb=0;$amount_cred=0;
$gDossier=dossier::id();
global $g_failed;
@ -94,7 +95,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:void(0)\" onclick=\"viewOperation('".$element."',".$gDossier.")\" > ".$operation->get_internal()." [ ".nb($l_amount)." &euro; ]</A>";
echo "<A class=\"detail\" href=\"javascript:void(0)\" onclick=\"viewOperation('".$element."',".$gDossier.")\" > ".$operation->get_internal()." [ ".nbm($l_amount,2)." &euro; ]</A>";
}//for
}// if ( $a != null ) {
// compute amount

View file

@ -138,7 +138,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:viewOperation('".$element."',".$gDossier.")\" > ".$operation->get_internal()." [ $l_amount &euro; ]</A>";
echo "<A class=\"detail\" HREF=\"javascript:viewOperation('".$element."',".$gDossier.")\" > ".$operation->get_internal()." [ ".nbm($l_amount,2)." &euro; ]</A>";
}//for
}// if ( $a != null ) {