diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js index 9997768461..3fde6f1577 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -660,13 +660,12 @@ function updateCosts(){ function calcNewsuggTotal(){ //collect values - var quantity = new Number(document.getElementById('quantity').value); -// var currency = f.currency.value; - var currcode = new String(document.getElementById('currency').value); - var price = new Number(document.getElementById('price').value); - var exchangerate = new Number(document.getElementById('currency_rate_'+currcode).value); + var quantity = Number(document.getElementById('quantity').value); + var currcode = String(document.getElementById('currency').value); + var price = Number(document.getElementById('price').value); + var exchangerate = Number(document.getElementById('currency_rate_'+currcode).value); - var total = new Number(quantity*price*exchangerate); + var total = Number(quantity*price*exchangerate); document.getElementById('total').value = total.toFixed(2); document.getElementById('price').value = price.toFixed(2); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 0b4a4ab46b..9fd2e671f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -3,21 +3,35 @@ [% INCLUDE 'doc-head-open.inc' %]