Bugzilla – Attachment 63561 Details for
Bug 18627
Items created via MarcItemFieldsToOrder are not linked to orders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18627 - Items created via MarcItemFieldsToOrder are not linked to orders
Bug-18627---Items-created-via-MarcItemFieldsToOrde.patch (text/plain), 2.19 KB, created by
Marcel de Rooy
on 2017-05-19 06:32:16 UTC
(
hide
)
Description:
Bug 18627 - Items created via MarcItemFieldsToOrder are not linked to orders
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-05-19 06:32:16 UTC
Size:
2.19 KB
patch
obsolete
>From 04ea0895c5a4c3bde9cddfeb0f49dae486c58e3d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 18 May 2017 08:41:34 -0700 >Subject: [PATCH] Bug 18627 - Items created via MarcItemFieldsToOrder are not > linked to orders >Content-Type: text/plain; charset=utf-8 > >If using MarcItemFieldsToOrder with AcqCreateItem = Create, >the order and the items will be created, but they will not be linked via aqorders_items! > >Test Plan: >1) Enable creation of items when ordering >2) Set up MarcItemFieldsToOrder >3) Upload an order record that uses the fields in step 2 >4) Create a basket and add the records from the file >5) Note the order and items are created, but no rows in aqorders_items are created >6) Apply this patch >7) Repeat steps 3-4 >8) Note the rows in aqorders_items are created! > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Marci Chen <mchen@mckinneytexas.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > acqui/addorderiso2709.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl >index 8fb4ead..5d3ee54 100755 >--- a/acqui/addorderiso2709.pl >+++ b/acqui/addorderiso2709.pl >@@ -217,6 +217,8 @@ if ($op eq ""){ > my @replacementprices = $input->multi_param('replacementprice_' . $biblio_count); > my @itemcallnumbers = $input->multi_param('itemcallnumber_' . $biblio_count); > my $itemcreation = 0; >+ >+ my @itemnumbers; > for (my $i = 0; $i < $count; $i++) { > $itemcreation = 1; > my ($item_bibnum, $item_bibitemnum, $itemnumber) = AddItem({ >@@ -234,6 +236,7 @@ if ($op eq ""){ > replacementprice => $replacementprices[$i], > itemcallnumber => $itemcallnumbers[$i], > }, $biblionumber); >+ push( @itemnumbers, $itemnumber ); > } > if ($itemcreation == 1) { > # Group orderlines from MarcItemFieldsToOrder >@@ -302,6 +305,7 @@ if ($op eq ""){ > }; > > my $order = Koha::Acquisition::Order->new( \%orderinfo )->insert; >+ $order->add_item( $_ ) for @itemnumbers; > } > } > } else { >-- >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 18627
:
63534
|
63542
| 63561