projects
/
koha_ffzg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FFZG HNB rate export changed to list / exchange istead of *
[koha_ffzg]
/
koha-tmpl
/
intranet-tmpl
/
prog
/
js
/
acq.js
diff --git
a/koha-tmpl/intranet-tmpl/prog/js/acq.js
b/koha-tmpl/intranet-tmpl/prog/js/acq.js
index
e12be33
..
c80cd0d
100644
(file)
--- a/
koha-tmpl/intranet-tmpl/prog/js/acq.js
+++ b/
koha-tmpl/intranet-tmpl/prog/js/acq.js
@@
-183,8
+183,9
@@
function updateCosts(){
var exchangerate = new Number($("#currency_rate_"+currcode).val());
var gst_on=false;
var exchangerate = new Number($("#currency_rate_"+currcode).val());
var gst_on=false;
- var rrp = new Number(listprice*exchangerate);
- var rep = new Number(listprice*exchangerate);
+ // XXX FIXME FFZG dpavlin - 2023-11-16 hnb changed rate to list / exchange
+ 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 ecost = rrp;
if ( 100-discount != 100 ) { //Prevent rounding issues if no discount
ecost = new Number(Math.floor(rrp * (100 - discount )) / 100);