| Lines 17-23
          
      
      
        Link Here | 
        
          | 17 |  | 17 |  | 
        
          | 18 | use Modern::Perl; | 18 | use Modern::Perl; | 
        
          | 19 |  | 19 |  | 
          
            
              | 20 | use Test::More tests => 44; | 20 | use Test::More tests => 46; | 
        
          | 21 | use DateTime::Duration; | 21 | use DateTime::Duration; | 
        
          | 22 |  | 22 |  | 
        
          | 23 | use t::lib::Mocks; | 23 | use t::lib::Mocks; | 
  
    | Lines 420-426
          ok( $item2->{location} eq '' , q{UpdateItemLocationOnCheckin updates location va
      
      
        Link Here | 
        
          | 420 | ok( $item2->{permanent_location} eq '' , q{UpdateItemLocationOnCheckin does not update permanent_location from '' with setting "PROC: _PERM_" } ); | 420 | ok( $item2->{permanent_location} eq '' , q{UpdateItemLocationOnCheckin does not update permanent_location from '' with setting "PROC: _PERM_" } ); | 
        
          | 421 |  | 421 |  | 
        
          | 422 |  | 422 |  | 
            
              |  |  | 423 | my $itemnumber3; | 
            
              | 424 | ($biblionumber, $biblioitemnumber, $itemnumber3) = C4::Items::AddItem( | 
            
              | 425 |     { | 
            
              | 426 |          barcode        => 'barcode_5', | 
            
              | 427 |          itemcallnumber => 'callnumber5', | 
            
              | 428 |          homebranch     => $branchcode_1, | 
            
              | 429 |          holdingbranch  => $branchcode_1, | 
            
              | 430 |          location       => 'CART', | 
            
              | 431 |          itype          => $itemtype | 
            
              | 432 |     }, | 
            
              | 433 |     $biblionumber | 
            
              | 434 | ); | 
            
              | 435 |  | 
            
              | 436 | #BlankItemLocationOnCheckout | 
            
              | 437 | t::lib::Mocks::mock_preference('UpdateItemLocationOnCheckout', 0); | 
            
              | 438 | AddIssue($borrower_1, 'barcode_5', $daysago10, 0 , $today, 0); | 
            
              | 439 | my $item3 = GetItem($itemnumber3); | 
            
              | 440 | ok($item3->{location} eq 'CART', q{UpdateItemLocationOnCheckout does not update item shelving location value from 'CART' to '' when not enabled} ); | 
        
          | 423 |  | 441 |  | 
            
              |  |  | 442 | t::lib::Mocks::mock_preference('UpdateItemLocationOnCheckout', 1); | 
            
              | 443 | if (C4::Context->preference('UpdateItemLocationOnCheckout') ) { | 
            
              | 444 |     BlankShelvingLocation($itemnumber3); | 
            
              | 445 | } | 
            
              | 446 | $item3 = GetItem($itemnumber3); | 
            
              | 447 | ok($item3->{location} eq '', q{UpdateItemLocationOnCheckout updates item shelving location value from 'CART' to '' when enabled} ); | 
        
          | 424 |  | 448 |  | 
        
          | 425 | # Bug 14640 - Cancel the hold on checking out if asked | 449 | # Bug 14640 - Cancel the hold on checking out if asked | 
        
          | 426 | my $reserve_id = AddReserve($branchcode_1, $borrower_id1, $biblionumber, | 450 | my $reserve_id = AddReserve($branchcode_1, $borrower_id1, $biblionumber, | 
            
              | 427 | -  |  |  |