From bc42bf97cb9ba34a4020b2224fb2028f8139797a Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Sat, 9 Jun 2012 12:36:55 +0200 Subject: [PATCH] Bug 7299 pass itemnumber in ILSDI holditem service Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- C4/ILSDI/Services.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 2940c00fea..4eed9361ed 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -676,8 +676,8 @@ sub HoldItem { return { code => 'RecordNotFound' } if $$item{biblionumber} ne $$biblio{biblionumber}; # Check for item disponibility - my $canitembereserved = CanItemBeReserved( $borrowernumber, $itemnumber ); - my $canbookbereserved = CanBookBeReserved( $borrowernumber, $biblionumber ); + my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber ); + my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber ); return { code => 'NotHoldable' } unless $canbookbereserved and $canitembereserved; my $branch; @@ -701,8 +701,8 @@ sub HoldItem { } # Add the reserve - # $branch, $borrowernumber, $biblionumber, $constraint, $bibitems, $priority, $notes, $title, $checkitem, $found - AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, undef, $title, $itemnumber, $found ); + # $branch,$borrowernumber,$biblionumber,$constraint,$bibitems,$priority,$resdate,$expdate,$notes,$title,$checkitem,$found + AddReserve( $branch, $borrowernumber, $biblionumber, 'a', undef, $rank, '', '', '', $title, $itemnumber, $found ); # Hashref building my $out; -- 2.39.5