View | Details | Raw Unified | Return to bug 23051
Collapse All | Expand All

(-)a/Koha/Account/Line.pm (-10 lines)
Lines 827-841 sub renew_item { Link Here
827
827
828
    my $itemnumber = $self->item->itemnumber;
828
    my $itemnumber = $self->item->itemnumber;
829
    my $borrowernumber = $self->patron->borrowernumber;
829
    my $borrowernumber = $self->patron->borrowernumber;
830
    # Only do something if this item has no fines left on it
831
    my $fine = C4::Overdues::GetFine($itemnumber, $borrowernumber);
832
    if ($fine && $fine > 0) {
833
        return {
834
            itemnumber => $itemnumber,
835
            error      => 'has_fine',
836
            success    => 0
837
        };
838
    }
839
    my ( $can_renew, $error ) = C4::Circulation::CanBookBeRenewed(
830
    my ( $can_renew, $error ) = C4::Circulation::CanBookBeRenewed(
840
        $borrowernumber,
831
        $borrowernumber,
841
        $itemnumber
832
        $itemnumber
842
- 

Return to bug 23051