From 40e2cc7ea1c065b3433a3b3e91e71bcde31d3e67 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 27 Aug 2018 13:33:50 +0000 Subject: [PATCH] Bug 18639: (follow-up) Populate replacement price from list price during ordering Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/acq.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/acq.js b/koha-tmpl/intranet-tmpl/prog/js/acq.js index 9d3983c88a..e12be33513 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/js/acq.js @@ -184,12 +184,14 @@ function updateCosts(){ var gst_on=false; var rrp = new Number(listprice*exchangerate); + var rep = new Number(listprice*exchangerate); var ecost = rrp; if ( 100-discount != 100 ) { //Prevent rounding issues if no discount ecost = new Number(Math.floor(rrp * (100 - discount )) / 100); } var total = new Number( ecost * quantity); $("#rrp").val(rrp.toFixed(2)); + $("#replacementprice").val(rep.toFixed(2)); $("#ecost").val(ecost.toFixed(2)); $("#total").val(total.toFixed(2)); $("listprice").val(listprice.toFixed(2)); -- 2.17.1