From 4f2dbc193b8e07e17a1a718cbabe581811fcaaa7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 4 Apr 2011 16:13:33 +0200 Subject: [PATCH] Fix for Bug 5991 - Javascript error on purchase suggestion pages Rebased on master 2011-04-04 Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 2 +- .../prog/en/modules/suggestion/suggestion.tmpl | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js index b5ec994f4a..de9e92c484 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -695,7 +695,7 @@ function calcNewsuggTotal(){ var total = new Number(quantity*price*exchangerate); document.getElementById('total').value = total.toFixed(2); - document.getElementById('price').value = listprice.toFixed(2); + document.getElementById('price').value = price.toFixed(2); return true; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl index cf38b72936..3d7817e53e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl @@ -4,7 +4,7 @@ - - +