BZ6268 follow-up for the form
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 29 Jun 2011 19:10:34 +0000 (21:10 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 6 Oct 2011 22:00:07 +0000 (11:00 +1300)
This follow up fixes cait request to calculate the form like the budget

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/js/acq.js

index 97feefc..e6d2315 100644 (file)
@@ -664,7 +664,7 @@ function calcNeworderTotal(){
 
     //do real stuff
     var rrp   = new Number(listprice*exchangerate);
-    var ecost = new Number(rrp * (100 - discount ) / 100);
+    var ecost = new Number(Math.floor(rrp * (100 - discount ))/100);
     var GST   = new Number(0);
     if (gst_on) {
             rrp=rrp * (1+f.gstrate.value / 100);