Bugzilla – Attachment 78189 Details for
Bug 18639
Separate replacement cost and retail price fields in acquisitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18639: (follow-up) Populate replacement price from list price during ordering
Bug-18639-follow-up-Populate-replacement-price-fro.patch (text/plain), 1.15 KB, created by
Nick Clemens (kidclamp)
on 2018-08-27 13:34:44 UTC
(
hide
)
Description:
Bug 18639: (follow-up) Populate replacement price from list price during ordering
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-08-27 13:34:44 UTC
Size:
1.15 KB
patch
obsolete
>From 0697cfdb9a1fedf0ff3bcbef2c087bee4a744aa8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 27 Aug 2018 13:33:50 +0000 >Subject: [PATCH] Bug 18639: (follow-up) Populate replacement price from list > price during ordering > >--- > 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 9d3983c..e12be335 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.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18639
:
70213
|
70214
|
70215
|
70216
|
75946
|
76867
|
76868
|
76869
|
76870
|
76871
|
78184
|
78185
|
78186
|
78187
|
78188
|
78189
|
78191
|
78249
|
78250
|
78251
|
78252
|
78253
|
78254
|
78255
|
78256
|
79789