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

(-)a/C4/Circulation.pm (-2 / +16 lines)
Lines 2997-3004 sub CanBookBeRenewed { Link Here
2997
    my $final_unseen_renewal = 0;
2997
    my $final_unseen_renewal = 0;
2998
2998
2999
    # override_limit will override anything else except on_reserve
2999
    # override_limit will override anything else except on_reserve
3000
    my $branchcode = _GetCircControlBranch( $item, $patron );
3000
    unless ( $override_limit ){
3001
    unless ( $override_limit ){
3001
        my $branchcode = _GetCircControlBranch( $item, $patron );
3002
3002
3003
        ( $auto_renew, $soonest ) = _CanBookBeAutoRenewed({
3003
        ( $auto_renew, $soonest ) = _CanBookBeAutoRenewed({
3004
            patron     => $patron,
3004
            patron     => $patron,
Lines 3120-3125 sub CanBookBeRenewed { Link Here
3120
        }
3120
        }
3121
    }
3121
    }
3122
3122
3123
    # CHECK FOR BOOKINGS
3124
    my $startdate =
3125
        ( C4::Context->preference('RenewalPeriodBase') eq 'date_due' )
3126
        ? dt_from_string( $issue->date_due, 'sql' )
3127
        : dt_from_string();
3128
    my $datedue = CalcDateDue( $startdate, $item->effective_itemtype, $branchcode, $patron, 'is a renewal' );
3129
    if (
3130
        my $booking = $item->find_booking(
3131
            { checkout_date => $startdate, due_date => $datedue, patron_id => $patron->borrowernumber }
3132
        )
3133
        )
3134
    {
3135
        return ( 0, 'booked' ) unless ( $booking->patron_id == $patron->borrowernumber );
3136
    }
3137
3123
    if ( $auto_renew eq 'auto_too_soon' ) {
3138
    if ( $auto_renew eq 'auto_too_soon' ) {
3124
3139
3125
        # If its cron, tell it it's too soon for a an auto renewal
3140
        # If its cron, tell it it's too soon for a an auto renewal
3126
- 

Return to bug 35944