From: Ryan Higgins Date: Tue, 15 Jul 2008 09:03:23 +0000 (-0500) Subject: Bug 2351 : Receive acqui order was not incrementing loop counter when saving multiple... X-Git-Tag: v3.00.00~209 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;ds=sidebyside;h=0bb91c1624184c96fd9cb15fa9178f4b8cf06316;p=koha_gimpoz Bug 2351 : Receive acqui order was not incrementing loop counter when saving multiple items. Signed-off-by: Joshua Ferraro --- diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl index 8d4e371575..df3bc5e654 100755 --- a/acqui/finishreceive.pl +++ b/acqui/finishreceive.pl @@ -53,10 +53,8 @@ my @barcode=$input->param('barcode'); my @ccode=$input->param('ccode'); my @itemtype=$input->param('itemtype'); my @location=$input->param('location'); +my @enumchron=$input->param('volinf'); my $cnt = 0; -# if ($quantityrec != 0){ -# $cost /= $quantityrec; -# } if ($quantityrec > $origquantityrec ) { # save the quantity recieved. @@ -75,9 +73,11 @@ if ($quantityrec > $origquantityrec ) { "items.ccode" => $ccode[$cnt], "items.itype" => $itemtype[$cnt], "items.location" => $location[$cnt], + "items.enumchron" => $enumchron[$cnt], # FIXME : No integration here with serials module. "items.loan" => 0, }); - AddItemFromMarc($itemRecord,$biblionumber); - } + AddItemFromMarc($itemRecord,$biblionumber); + $cnt++; + } } print $input->redirect("/cgi-bin/koha/acqui/parcel.pl?invoice=$invoiceno&supplierid=$supplierid&freight=$freight&gst=$gst&datereceived=$datereceived"); #} else {