433: amélioration Compta Analytique : arrondi remaining

This commit is contained in:
Dany De Bontridder 2011-11-02 20:20:08 +00:00
parent ac4617223f
commit 36fa7fc941

View file

@ -102,7 +102,12 @@ function anc_refresh_remain(p_table,p_seq)
var tot_line=parseFloat(g('amount_t'+p_seq).value);
var tot_table=compute_total_table(p_table,p_seq);
var remain = tot_line-tot_table;
remain=Math.round(remain *100)/100;
$('remain'+p_table).innerHTML=remain;
if (remain == 0)
{$('remain'+p_table).style.color="green"}
else
{$('remain'+p_table).style.color="red"}
}catch (a)
{
alert(a.message);