Go to file
Kyle M Hall d1475051ba Bug 19425: Adding orders from order file with multiple budgets per record triggers error
If you import an order file ( using MarcItemFieldsToOrder ) that has a different budget for each item to be ordered, you will get an error and a partially created basket. This is because Koha attempts to add the item to each order *for each budget*. This is clearly incorrect. Instead, we should be grouping items by budget and for each budget only adding those items that have a matching budget.

Test plan:
1) Do not apply this patch
2) Download the provided MARC record
3) Add the branchcode 'ALD' to your server
4) Add the ccode 'ACOL' to your server
5) Add the budget codes 'adultay' and 'branchay' to your server
6) Stage the order file
7) Create a basket, import the order file
8) No we have 3 records, 2 of them have 2 items each with different budget codes
9) Attempt to import, note the error
10) Apply this patch
11) Repeat steps 6-8, note the order completes and results in 5 order lines being added to the basket!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Christopher Kellermeyer <ckellermeyer@altadenalibrary.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
First step of test plan amended (not apply instead of apply).

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0dc722c518)
2017-10-25 10:34:02 +02:00
C4 Bug 19415: FindDuplicateAuthority is searching on biblioserver since 16.05 2017-10-25 10:19:06 +02:00
Koha Bug 18374: (QA follow-up) Fix auto truncation for field:"value" 2017-10-25 10:00:24 +02:00
OpenILS
…
acqui Bug 19425: Adding orders from order file with multiple budgets per record triggers error 2017-10-25 10:34:02 +02:00
admin Bug 18351: Able to delete budget with funds 2017-10-10 12:05:11 +02:00
api/v1 Bug 18763: Fix swagger/definitions.t 2017-06-20 10:19:55 +02:00
authorities Bug 17380: [QA Follow-up] Report error to user instead of throwing exception 2017-10-23 15:56:39 +02:00
basket Bug 18124: Change the calls to generate and check CSRF tokens 2017-03-30 09:07:09 +00:00
catalogue Bug 19440: Existing calls need to be done in scalar context 2017-10-17 09:06:51 +02:00
cataloguing Bug 15173: Restore SubfieldsToAllowForRestrictedEditing 2017-10-25 10:04:12 +02:00
circ Bug 18469: QA Follow-up 2017-09-29 12:07:31 +02:00
clubs Bug 18632: Remove 'CGI::param called in list context' warnings 2017-05-28 22:25:22 -04:00
course_reserves Bug 18367 - (QA Followup) Only warn if doing a lookup and not having an item 2017-07-31 10:48:32 +02:00
debian Bug 9409: (QA followup) Add --dbhost help to koha-create man page 2017-09-29 12:17:35 +02:00
docs Bug 7143: Add Patricio Marrone to history.txt 2017-03-31 13:45:33 +00:00
errors
…
etc Bug 18669 - RewriteCond affecting wrong rule in koha-httpd.conf 2017-05-28 22:30:11 -04:00
installer Bug 18801: DBRev 17.05.00.003 2017-10-23 15:56:38 +02:00
koha-tmpl Bug 19374: CircSidebar overlapping transferred items table 2017-10-25 10:12:31 +02:00
labels Revert "Bug 18295: C4::Items - Remove get_itemnumbers_of" 2017-06-12 09:17:26 +02:00
members Bug 12346: Display the correct number of pending patron modifications on the patron module home page 2017-10-23 16:21:26 +02:00
misc Bug 18811: Add a script for checking authority data in hidden fields 2017-10-23 15:32:14 +02:00
offline_circ Bug 17501: Remove Koha::Upload::get from Koha::Upload 2017-01-20 14:20:05 +00:00
opac Bug 18956: Fix empty to in message queue 2017-10-23 14:28:02 +02:00
patron_lists
…
patroncards Bug 18246: Patron card creator: Unit not always displays properly in layouts 2017-03-22 20:58:10 +00:00
plugins Bug 19088: plugins-upload causes error log noise 2017-09-29 15:34:42 +02:00
reports Bug 18742: (QA followup) Fix indentation 2017-10-23 16:42:47 +02:00
reserve Bug 19135: Restore AllowHoldsOnPatronsPossessions behaviour 2017-10-25 10:30:15 +02:00
reviews Bug 15839: Koha::Reviews - Remove C4::Review residue 2016-09-09 10:31:00 +00:00
rotating_collections Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
serials Bug 19323: subscription edit permission issue 2017-10-17 09:55:43 +02:00
services
…
skel
…
sms
…
suggestion Bug 18839: Suggestion.pl spelling mistake 2017-07-27 16:30:17 +02:00
svc Bug 17898: Automagically convert SQL reports 2017-05-19 18:48:26 +00:00
t Bug 18374: (QA follow-up) Fix auto truncation for field:"value" 2017-10-25 10:00:24 +02:00
tags Bug 5471: Use uri_escape_utf8 to handle utf8 chars correctly 2017-09-29 11:17:17 +02:00
test
…
tmp/modified_authorities
…
tools Bug 19023 - inventory tool performance 2017-09-12 17:09:51 +02:00
virtualshelves Bug 7663: Fix bad merge conflict with bug 15584 2017-03-03 18:18:14 +00:00
xt Bug 19262: Remove xt/author/pod_spell.t 2017-10-23 15:29:50 +02:00
.editorconfig
…
.htaccess
…
.mailmap Update mailmap - Jonathan Druart 2017-06-29 09:33:25 +02:00
INSTALL Bug 17626: Remove existing install instructions and link to the wiki pages instead 2016-11-22 11:29:07 +00:00
Koha.pm Bug 18801: DBRev 17.05.00.003 2017-10-23 15:56:38 +02:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 19067: Map clubs/ into INTRANET_CGI_DIR in Makefile.PL 2017-09-12 16:04:02 +02:00
README
…
README.md Bug 15465: Fix typo in bugs.k-c.org 2017-05-26 11:45:31 -03:00
README.robots
…
about.pl Bug 18931 - Follow up - Typo fix in SQL statement 2017-07-27 10:25:20 +02:00
changelanguage.pl
…
edithelp.pl
…
fix-perl-path.PL
…
help.pl
…
install-CPAN.pl
…
koha_perl_deps.pl Bug 17990: Refactor Perl module versions check 2017-02-17 12:13:44 +00:00
kohaversion.pl
…
mainpage.pl Bug 18432 : Follow up - Updating to use they/them 2017-04-21 10:56:43 -04:00
rewrite-config.PL Bug 15427 : Enable TLS support for MySQL 2017-03-03 18:33:07 +00:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo