Koha-clms/acqui
Joonas Kylmälä e613d9417e Bug 14999: Make sure order prices are not mixed-up
We were shifting the price and replacement price for imported orders
only after the line:

> $duplinbatch = $import_batch_id and next if $duplifound;

This lead to the "replacementprice" and "price" query parameters not
being shifted/removed from the list if a duplicate record came across
and caused the prices be applied to the next record being imported.

To reproduce:
 1) Download two records from koha to marcxml file, then cat those:
   cat bib1.marcxml bib2.marcxml > bibs.marcxml
 2) Delete bib2 from koha
 3) Stage bibs.marcxml for import
 4) Create a new order basket, then "Add to basket" using "From a
    staged file" option
 5) Select both bib1 and bib2 and set price & replacement price for
    bib1 to be 99.00 and for bib2 to be 88.00
 6) Click save and notice bib2 was imported with the wrong prices, 99.00!
 7) Apply patch and notice the prices are now correctly set to 88.00.

Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 58a69fb129)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit eb997ae320)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-11-15 23:12:51 +01:00
..
acqui-home.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
add_user_search.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
addorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
addorderiso2709.pl Bug 14999: Make sure order prices are not mixed-up 2021-11-15 23:12:51 +01:00
ajax-getauthvaluedropbox.pl Bug 22391: Remove group by clause in ajax-getauthvaluedropbox.pl 2019-02-21 16:48:28 +00:00
basket.pl Bug 26190: Allow to close a basket with only cancelled order lines 2020-11-16 21:18:02 +00:00
basketgroup.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
basketheader.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
booksellers.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
cancelorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
check_budget_total.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
check_uniqueness.pl Bug 23463: Replace SearchItemsByField by SearchItems 2020-03-23 09:26:09 +00:00
duplicate_orders.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
edi_ean.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
edifactmsgs.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
edimsg.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
finishreceive.pl Bug 23596: Edit suggestion's reason when receiving 2020-04-14 16:30:16 +01:00
histsearch.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
invoice-files.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
invoice.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
invoices.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
lateorders-export.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
lateorders.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
modordernotes.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
neworderempty.pl Bug 27828: (bug 24469 follow-up) Add missing import 2021-03-14 18:59:56 +00:00
newordersubscription.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
newordersuggestion.pl Bug 4833: (QA follow-up) Add budgetname to SearchSuggestion 2019-05-15 16:46:47 +00:00
ordered.pl Bug 26997: Remove 0000-00-00 from aqorders.datecancellationprinted 2021-03-04 18:00:34 +00:00
orderreceive.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
parcel.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
parcels.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
showorder.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
spent.pl Bug 26997: Remove 0000-00-00 from aqorders.datecancellationprinted 2021-03-04 18:00:34 +00:00
supplier.pl Bug 24663: Remove authnotrequired if set to 0 2020-08-31 20:03:22 +00:00
transferorder.pl Bug 19130: (followup) Controller scripts should preserve behaviour 2017-08-25 11:53:44 -03:00
uncertainprice.pl Bug 27082: uncertainprice.pl does not handle pagination 2020-12-14 15:11:06 +00:00
updatesupplier.pl Bug 19993: use Modern::Perl in Acquisition perl scripts 2018-02-05 09:45:47 -03:00
z3950_search.pl Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition 2020-02-17 13:44:34 +00:00