Koha/t/db_dependent
Mathieu Saby b1a52b2918 Bug 7593: Move orders on the destination record when merging 2 records
Revised patch according to QA comments. No more dependent from bz 9780.

At present, merging records breaks the link order/record, except
if an item of the deleted record is used in the order.
This is a serious issue for libraries creating items on receipt.
This patch moves existing orders from deleted record to destination record.
It creates a new function Acquisitions::GetOrdersByBiblionumber,
that could be used by other patches later.

To test :
Check the problem :
1. Set syspref AcqCreateItem = Create an item when receiving an order
1. Create a basket with one order
2. Put the record used by this order in a list
3. Put an other record in the list
4. Merge the 2 records, keeping as a reference the record NOT used in the order
5. In the order, you will see for that order "Deleted bibliographic information..."
6. Apply the patch
7. Repeat steps 1-4
8. In the order, you will see the title/author of the kept record.
9. Set syspref AcqCreateItem = Create an item when placing an order
10. Repeat steps 1-4 (an item will be created)
11. In the oreder, you will see the title/author of the kept record
    (it is already the case at present. the patch should not alter this behavior)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test plan, test suite and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-05-12 10:29:57 -04:00
..
Acquisition Bug 9937: Add new unit tests for new routines (introduced by bug 5343) 2013-03-30 17:05:15 -04:00
data/zebraexport Revert "Bug 7167: Adds Unit tests for C4::Update::Database" 2012-12-27 14:02:52 -05:00
Labels
LDAP
lib Bug 8365: Add a renewal duration in the issuing rules 2013-03-22 07:56:59 -04:00
needs_user_input
Record
Reports
www Bug 8300: Add mechanized unit test for batch import 2013-05-01 07:57:11 -04:00
00-strict.t
Accounts.t Bug 5327 Made test file for Accounts.pm 2011-01-20 19:57:50 +13:00
Acquisition.t Bug 7593: Move orders on the destination record when merging 2 records 2013-05-12 10:29:57 -04:00
Amazon.t
Auth.t
Auth_with_cas.t
AuthoritiesMarc.t Bug 8890 - move two more db dependent tests 2012-10-24 17:52:42 +02:00
BackgroundJob.t bug 5327 add tests for C4/BackgroundJob.pm 2012-01-17 15:31:56 +01:00
Barcodes.t Bug 6448 [2/3] Barcodes::EAN13 autoBarcode 2012-08-02 18:41:44 +02:00
Biblio.t Bug 7576: Add ISSN to SearchForTitleIn preference 2012-02-27 11:44:20 +01:00
Budgets.t Bug 9937: Add new unit tests for new routines (introduced by bug 5343) 2013-03-30 17:05:15 -04:00
check_sysprefs.t
Circulation.t Bug 8220 - QA Followup - Unit Test 2013-03-21 20:35:37 -04:00
Circulation_issuingrules.t Bug 8365: Add unit tests and fix QA issues 2013-03-22 07:57:02 -04:00
Context.t Bug 9191: updatedatabase.pl should only run updates up to the current version 2012-12-11 08:19:00 -05:00
Csv.t
database_dependent.pl
External_BakerTaylor.t
Heading_MARC21.t
HoldsQueue.t
Holidays.t Holidays Test Plan - DB Dependent 2012-10-01 16:44:02 +02:00
Items.t
KitchenSinkPlugin.kpz Bug 7804 - Add Koha Plugin System - QA Followup 3 - Additional Unit Tests 2013-03-20 14:50:38 -04:00
Koha.t Bug 9117: Add imageurl to the list of parameters of AddAuthorisedValue 2013-03-21 18:54:10 -04:00
Koha_Authority.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Koha_borrower_modifications.t Bug 7067 - QA Followup - Fix failing tests 2012-12-14 08:09:01 -05:00
Koha_template_plugin_KohaDates.t
Linker_FirstMatch.t Bug 7724: Skip Linker test if Zebra isn't set up 2012-03-20 11:21:10 +01:00
Log.t
Members.t Bug 9103 : Follow up adding unit test 2013-03-19 22:50:39 -04:00
Plugins.t Bug 9909: Don't install KitchenSink plugin if plugin dir isn't writable 2013-03-22 21:52:41 -04:00
Ratings.t Bug 5668 - Star ratings in the opac 2012-04-10 14:40:49 +02:00
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
Reports.t
Reports_Guided.t
ReportsGuided.t Bug 9659 follow-up: correct syntax for older Perl 2013-04-26 21:32:49 -04:00
Reserves.t Bug 8728 : Adjust Reserves.t test for resdate and expdate and test setup/teardown 2012-10-02 18:09:27 +02:00
rollingloans.t
Search.t Bug 9827: remove 'insecure' system preference 2013-03-19 21:46:34 -04:00
Serials.t Bug 5337 : Upping the count of the unit tests 2012-06-14 15:43:08 +02:00
Serials_2.t
Service.t
SIP_ILS.t
SQLHelper.t Bug 5327 : Fixing unit test for SQLHelper.pm 2011-12-07 16:17:10 +01:00
SuggestionEngine_ExplodedTerms.t Bug 8846 conflict resolution: correct path 2012-11-01 08:41:30 -04:00
Suggestions.t
sysprefs.t Bug 6132: Add unit test for system preferences 2012-01-16 14:52:24 +01:00
Tags.t Bug 7642 - fix the lost display of tag sizes 2012-10-01 17:38:27 +02:00
UploadedFile.t
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t Bug 5327 : Fix for XISBN test, thingisbn is now handing back different results 2012-06-05 16:24:53 +02:00
zebra_config.pl