Bugzilla – Attachment 165348 Details for
Bug 30598
Replacement cost is not copied from retail price when ordering from file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30598: Replacement cost is not copied from retail price when ordering from file
Bug-30598-Replacement-cost-is-not-copied-from-reta.patch (text/plain), 3.55 KB, created by
Phan Tung Bui
on 2024-04-22 19:42:47 UTC
(
hide
)
Description:
Bug 30598: Replacement cost is not copied from retail price when ordering from file
Filename:
MIME Type:
Creator:
Phan Tung Bui
Created:
2024-04-22 19:42:47 UTC
Size:
3.55 KB
patch
obsolete
>From 378a917d95284c0ae2a8cb8efd3c859756b77281 Mon Sep 17 00:00:00 2001 >From: Phan Tung Bui <phan-tung.bui@inlibro.com> >Date: Fri, 12 Apr 2024 16:53:24 -0400 >Subject: [PATCH] Bug 30598: Replacement cost is not copied from retail price > when ordering from file > >Test plan : >To test : >1- In Acquisitions, create a basket >2- Add an order from a new (empty) record > --> Note that when you enter the "vendor price", it is copied in the "replacement cost" field >3- Add an order from a new file > --> Note that when you enter the "price", the "replacement price" field stays empty >4- Apply the batch >5- Redo step 3 and notice that when you change the 'price', the >'replacement price' syncs with it > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > .../prog/en/modules/acqui/addorderiso2709.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/acq.js | 8 +++++++- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >index 4115b22565..09066e6795 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt >@@ -194,7 +194,7 @@ > </li> > <li class="price"> > <label for="price_record_[% biblio.import_record_id | html %]">Price: </label> >- <input id="price_record_[% biblio.import_record_id | html %]" class="decimal" type="text" value="[% biblio.price | $Price on_editing => 1 %]" name="price_[% biblio.import_record_id | html %]" /> >+ <input id="price_record_[% biblio.import_record_id | html %]" class="decimal" type="text" value="[% biblio.price | $Price on_editing => 1 %]" name="price_[% biblio.import_record_id | html %]" onchange="syncReplacementPrice('price_record_[% biblio.import_record_id | html %]', 'replacementprice_record_[% biblio.import_record_id | html %]')" /> > </li> > <li class="replacementprice"> > <label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/acq.js b/koha-tmpl/intranet-tmpl/prog/js/acq.js >index 89e1ad1fc4..ab9d6513fc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/acq.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/acq.js >@@ -179,6 +179,7 @@ function messenger(X,Y,etc){ // FIXME: unused? > // NEXT BLOCK IS USED BY NEWORDERBEMPTY > > function updateCosts(){ >+ console.log("updateCosts"); > var quantity = new Number($("#quantity").val()); > var discount = new Number($("#discount").val()); > var listprice = new Number($("#listprice").val()); >@@ -202,8 +203,13 @@ function updateCosts(){ > return true; > } > >-// Calculates total amount in a suggestion >+function syncReplacementPrice(sourceId, targetId) { >+ console.log("updatePRice"); >+ var priceValue = $("#" + sourceId).val(); >+ $("#" + targetId).val(priceValue); >+} > >+// Calculates total amount in a suggestion > function calcNewsuggTotal(){ > //collect values > var quantity = Number(document.getElementById('quantity').value); >-- >2.34.1
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 30598
:
164865
|
165107
|
165109
|
165110
|
165348
|
165349
|
165350
|
165351