diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/calculator.coffee | 2 | ||||
| -rw-r--r-- | public/js/report.coffee | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index f035855e..8d7040f1 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -166,7 +166,7 @@ setupSocket = -> updateTotal = -> amount = parseFloat($('#amount').val() * tip) - total = (amount * 1000 / g.exchange).toFixed(5) + total = (amount / g.exchange).toFixed(5) g.receivable = (amount / g.exchange).toFixed(8) unless $.isNumeric(total) diff --git a/public/js/report.coffee b/public/js/report.coffee index 9f8a011b..c152e0d9 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -59,7 +59,6 @@ display = (transactions) -> exchange = parseFloat(this.exchange) received = parseFloat(this.received) amount = received * exchange - received *= 1000 $('.report tbody').append(""" <tr> |
