| Lines 400-410
          if ($op eq "additem") {
      
      
        Link Here | 
        
          | 400 |         $record = _increment_barcode($record, $frameworkcode); | 400 |         $record = _increment_barcode($record, $frameworkcode); | 
        
          | 401 |     } | 401 |     } | 
        
          | 402 |  | 402 |  | 
            
              | 403 |  |  |  | 
            
              | 404 |     if (C4::Context->preference('autoBarcode') eq 'incremental') { | 
            
              | 405 |         $record = _increment_barcode($record, $frameworkcode); | 
            
              | 406 |     } | 
            
              | 407 |  | 
        
          | 408 |     my $addedolditem = TransformMarcToKoha( $dbh, $record ); | 403 |     my $addedolditem = TransformMarcToKoha( $dbh, $record ); | 
        
          | 409 |  | 404 |  | 
        
          | 410 |     # If we have to add or add & duplicate, we add the item | 405 |     # If we have to add or add & duplicate, we add the item | 
            
              | 411 | -  |  |  |