@@ -, +, @@ - Improved breadcrumbs and page title. - Fixed a JavaScript error which appeared when viewing or editing a suggestion. - Added an 'Edit' and a 'Delete' button to the suggestion detail page. - Corrected capitalization. - Perform various operations with suggestions management and confirm that page titles and breadcrumbs are correct. - View the detail page for an individual suggestion and confirm that the edit and delete buttons work correctly. - Confirm that there are no JavaScript errors when viewing or editing a suggestion, in particular when changing Acquisition information (quantity, currency, price). --- koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 11 ++-- .../prog/en/modules/suggestion/suggestion.tt | 64 ++++++++++++++------ 2 files changed, 49 insertions(+), 26 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ a/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); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -3,21 +3,35 @@ [% INCLUDE 'doc-head-open.inc' %]