| Lines 71-79
          sub do_checkout {
      
      
        Link Here | 
        
          | 71 |             $noerror = 0; | 71 |             $noerror = 0; | 
        
          | 72 |         } | 72 |         } | 
        
          | 73 |     } else { | 73 |     } else { | 
            
              |  |  | 74 |         my $msg_sent = 0; | 
        
          | 74 |         foreach my $confirmation (keys %{$needsconfirmation}) { | 75 |         foreach my $confirmation (keys %{$needsconfirmation}) { | 
        
          | 75 |             if ($confirmation eq 'RENEW_ISSUE'){ | 76 |             if ($confirmation eq 'RENEW_ISSUE'){ | 
        
          | 76 |                 $self->screen_msg("Item already checked out to you: renewing item."); | 77 |                 $self->screen_msg("Item already checked out to you: renewing item."); | 
            
              |  |  | 78 |                 $msg_sent++; | 
        
          | 77 |             } elsif ($confirmation eq 'RESERVED' or $confirmation eq 'RESERVE_WAITING') { | 79 |             } elsif ($confirmation eq 'RESERVED' or $confirmation eq 'RESERVE_WAITING') { | 
        
          | 78 |                 my $x = $self->{item}->available($patron_barcode); | 80 |                 my $x = $self->{item}->available($patron_barcode); | 
        
          | 79 |                 if ($x) { | 81 |                 if ($x) { | 
  
    | Lines 82-106
          sub do_checkout {
      
      
        Link Here | 
        
          | 82 |                     $self->screen_msg("Item is reserved for another patron upon return."); | 84 |                     $self->screen_msg("Item is reserved for another patron upon return."); | 
        
          | 83 |                     # $noerror = 0; | 85 |                     # $noerror = 0; | 
        
          | 84 |                 } | 86 |                 } | 
            
              |  |  | 87 |                 $msg_sent++; | 
        
          | 85 |             } elsif ($confirmation eq 'ISSUED_TO_ANOTHER') { | 88 |             } elsif ($confirmation eq 'ISSUED_TO_ANOTHER') { | 
        
          | 86 |                 $self->screen_msg("Item already checked out to another patron.  Please return item for check-in."); | 89 |                 $self->screen_msg("Item already checked out to another patron.  Please return item for check-in."); | 
        
          | 87 |                 $noerror = 0; | 90 |                 $noerror = 0; | 
            
              |  |  | 91 |                 $msg_sent++; | 
        
          | 88 |             } elsif ($confirmation eq 'DEBT') { | 92 |             } elsif ($confirmation eq 'DEBT') { | 
        
          | 89 |                 $self->screen_msg('Outstanding Fines block issue'); | 93 |                 $self->screen_msg('Outstanding Fines block issue'); | 
        
          | 90 |                 $noerror = 0; | 94 |                 $noerror = 0; | 
            
              |  |  | 95 |                 $msg_sent++; | 
        
          | 91 |             } elsif ($confirmation eq 'HIGHHOLDS') { | 96 |             } elsif ($confirmation eq 'HIGHHOLDS') { | 
        
          | 92 |                 $overridden_duedate = $needsconfirmation->{$confirmation}->{returndate}; | 97 |                 $overridden_duedate = $needsconfirmation->{$confirmation}->{returndate}; | 
        
          | 93 |                 $self->screen_msg('Loan period reduced for high-demand item'); | 98 |                 $self->screen_msg('Loan period reduced for high-demand item'); | 
            
              |  |  | 99 |                 $msg_sent++; | 
        
          | 94 |             } elsif ($confirmation eq 'RENTALCHARGE') { | 100 |             } elsif ($confirmation eq 'RENTALCHARGE') { | 
        
          | 95 |                 if ($self->{fee_ack} ne 'Y') { | 101 |                 if ($self->{fee_ack} ne 'Y') { | 
        
          | 96 |                     $noerror = 0; | 102 |                     $noerror = 0; | 
        
          | 97 |                 } | 103 |                 } | 
            
              | 98 |             } else { |  |  | 
            
              | 99 |                 $self->screen_msg($needsconfirmation->{$confirmation}); | 
            
              | 100 |                 $noerror = 0; | 
            
              | 101 |                 syslog('LOG_DEBUG', "Blocking checkout Reason:$confirmation"); | 
        
          | 102 |             } | 104 |             } | 
        
          | 103 |         } | 105 |         } | 
            
              |  |  | 106 |         if ( keys %$needsconfirmation and $msg_sent == 0 ) { | 
            
              | 107 |             $self->screen_msg('Item cannot be issued'); | 
            
              | 108 |             $noerror = 0; | 
            
              | 109 |             syslog('LOG_DEBUG', "Blocking checkout Reason:$confirmation"); | 
            
              | 110 |         } | 
        
          | 104 |     } | 111 |     } | 
        
          | 105 |     my $itemnumber = $self->{item}->{itemnumber}; | 112 |     my $itemnumber = $self->{item}->{itemnumber}; | 
        
          | 106 |     foreach (@$shelf) { | 113 |     foreach (@$shelf) { | 
            
              | 107 | -  |  |  |