Fixed total float number display in balance screen

This commit is contained in:
Benjamin Renard 2014-01-18 00:22:22 +01:00
parent 0b0fb2dcb0
commit fd422f0643

View file

@ -405,7 +405,7 @@ display_balance=function(group) {
else {
diff='<td><span class="glyphicon glyphicon-thumbs-up"></span></td>';
}
tbody.append('<tr><td>'+c+'</td><td>'+bal['balance'][c]['total']+' €</td>'+diff+'</tr>');
tbody.append('<tr><td>'+c+'</td><td>'+bal['balance'][c]['total'].toFixed(2)+' €</td>'+diff+'</tr>');
}
$('#display_balance_modal #total-value').html(bal.sum.toFixed(2)+' €');
$('#display_balance_modal').modal('show');