From c37971ab1412880c1771608e24450b8659d0b85c Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Sat, 9 Jun 2012 12:36:55 +0200 Subject: [PATCH] Bug 7299 passe itemnumber in ILSDI holditem service --- C4/ILSDI/Services.pm | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 2940c00..4eed936 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; -- 1.7.4.1