433: amélioration Compta Analytique : arrondi remaining
This commit is contained in:
parent
ac4617223f
commit
36fa7fc941
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue