| 
      
            Lines 179-193
          while ( my $auto_renew = $auto_renews->next ) {
      
      
        Link Here
      
     | 
  
        
          | 179 | 
                  }  | 
          179 | 
                  }  | 
        
        
          | 180 | 
              }  | 
          180 | 
              }  | 
        
        
          | 181 | 
           | 
          181 | 
           | 
        
          
            
              | 182 | 
                  if ( $borrower_preferences && $borrower_preferences->{transports} && $borrower_preferences->{transports}->{email} && $borrower_preferences->{'wants_digest'} ) { | 
              182 | 
                  if ( $error ne 'auto_too_soon' && $borrower_preferences && $borrower_preferences->{transports} && $borrower_preferences->{transports}->{email} && $borrower_preferences->{'wants_digest'} ) { | 
            
        
          | 183 | 
                  # cache this one to process after we've run through all of the items.  | 
          183 | 
                  # cache this one to process after we've run through all of the items.  | 
        
        
          | 184 | 
                  if ($digest_per_branch) { | 
          184 | 
                  if ($digest_per_branch) { | 
        
        
          | 185 | 
                      $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{success}++ if $error eq 'auto_renew'; | 
          185 | 
                      $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{success}++ if $error eq 'auto_renew'; | 
        
          
            
              | 186 | 
                          $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew' || $error eq 'auto_too_soon' ; | 
              186 | 
                          $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew'; | 
            
        
          | 187 | 
                      push @{$renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber; | 
          187 | 
                      push @{$renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber; | 
        
        
          | 188 | 
                  } else { | 
          188 | 
                  } else { | 
        
        
          | 189 | 
                      $renew_digest->{ $auto_renew->borrowernumber }->{success} ++ if $error eq 'auto_renew'; | 
          189 | 
                      $renew_digest->{ $auto_renew->borrowernumber }->{success} ++ if $error eq 'auto_renew'; | 
        
          
            
              | 190 | 
                          $renew_digest->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew' || $error eq 'auto_too_soon' ; | 
              190 | 
                          $renew_digest->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew'; | 
            
        
          | 191 | 
                      push @{$renew_digest->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber; | 
          191 | 
                      push @{$renew_digest->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber; | 
        
        
          | 192 | 
                  }  | 
          192 | 
                  }  | 
        
        
          | 193 | 
              }  | 
          193 | 
              }  | 
        
            
              | 194 | 
              -   | 
               | 
               |