From 4ea750881728c134431efbb57bd8846b9495a215 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 29 Mar 2011 14:37:49 -0400 Subject: [PATCH] [SIGNED-OFF] Fix for Bug 5991 - Javascript error on purchase suggestion pages Content-Type: text/plain; charset="utf-8" Rebased on master 2011-04-04 Signed-off-by: Katrin Fischer --- 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 b5ec994..de9e92c 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 cf38b72..3d7817e 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 @@ - - + -- 1.7.1