| Lines 4286-4291
          subtest 'AddReturn | recalls' => sub {
      
      
        Link Here | 
        
          | 4286 |     $recall1->set_cancelled; | 4286 |     $recall1->set_cancelled; | 
        
          | 4287 | }; | 4287 | }; | 
        
          | 4288 |  | 4288 |  | 
            
              |  |  | 4289 | subtest 'AddReturn | bundles' => sub { | 
            
              | 4290 |     plan tests => 1; | 
            
              | 4291 |  | 
            
              | 4292 |     my $schema = Koha::Database->schema; | 
            
              | 4293 |     $schema->storage->txn_begin; | 
            
              | 4294 |  | 
            
              | 4295 |     my $patron1 = $builder->build_object({ class => 'Koha::Patrons' }); | 
            
              | 4296 |     my $host_item1 = $builder->build_sample_item; | 
            
              | 4297 |     my $bundle_item1 = $builder->build_sample_item; | 
            
              | 4298 |     $schema->resultset('ItemBundle') | 
            
              | 4299 |       ->create( | 
            
              | 4300 |         { host => $host_item1->itemnumber, item => $bundle_item1->itemnumber } ); | 
            
              | 4301 |  | 
            
              | 4302 |     my ( $doreturn, $messages, $iteminfo, $borrowerinfo ) = AddReturn( $bundle_item1->barcode, $bundle_item1->homebranch ); | 
            
              | 4303 |     is($messages->{InBundle}->id, $host_item1->id, 'AddReturn returns InBundle host item when item is part of a bundle'); | 
            
              | 4304 |  | 
            
              | 4305 |     $schema->storage->txn_rollback; | 
            
              | 4306 | }; | 
            
              | 4307 |  | 
        
          | 4289 | subtest 'AddRenewal and AddIssuingCharge tests' => sub { | 4308 | subtest 'AddRenewal and AddIssuingCharge tests' => sub { | 
        
          | 4290 |  | 4309 |  | 
        
          | 4291 |     plan tests => 13; | 4310 |     plan tests => 13; | 
            
              | 4292 | -  |  |  |