From fd422f06430d3bbb24e14f489522f9ca678d140e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 18 Jan 2014 00:22:22 +0100 Subject: [PATCH] Fixed total float number display in balance screen --- inc/myco.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/myco.js b/inc/myco.js index 33d5974..d6faba5 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -405,7 +405,7 @@ display_balance=function(group) { else { diff=''; } - tbody.append(''+c+''+bal['balance'][c]['total']+' €'+diff+''); + tbody.append(''+c+''+bal['balance'][c]['total'].toFixed(2)+' €'+diff+''); } $('#display_balance_modal #total-value').html(bal.sum.toFixed(2)+' €'); $('#display_balance_modal').modal('show');