Skip to content

Commit

Permalink
Bug 2351 : Receive acqui order was not incrementing loop counter when…
Browse files Browse the repository at this point in the history
… saving multiple items.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
  • Loading branch information
Ryan Higgins authored and Joshua Ferraro committed Jul 15, 2008
1 parent da3b0a4 commit 0bb91c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions acqui/finishreceive.pl
Expand Up @@ -53,10 +53,8 @@
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.
Expand All @@ -75,9 +73,11 @@
"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 {
Expand Down

0 comments on commit 0bb91c1

Please sign in to comment.