| Lines 72-77
          sub pay {
      
      
        Link Here | 
        
          | 72 |                     interface    => C4::Context->interface | 72 |                     interface    => C4::Context->interface | 
        
          | 73 |                 } | 73 |                 } | 
        
          | 74 |             ); | 74 |             ); | 
            
              |  |  | 75 |             | 
            
              | 76 |             if ( $fee->debit_type_code eq 'LOST' | 
            
              | 77 |                 && C4::Context->preference('MarkLostItemsAsReturned') =~ | 
            
              | 78 |                 m|OnPayment| ) | 
            
              | 79 |             { | 
            
              | 80 |                 $fee->get_from_storage; | 
            
              | 81 |                 if (   $fee->amountoutstanding == 0 | 
            
              | 82 |                     && $fee->itemnumber ) | 
            
              | 83 |                 { | 
            
              | 84 |                     C4::Circulation::ReturnLostItem( $self->{patron_id}, | 
            
              | 85 |                         $fee->itemnumber ); | 
            
              | 86 |                 } | 
            
              | 87 |             } | 
            
              | 88 |  | 
        
          | 75 |             return 1; | 89 |             return 1; | 
        
          | 76 |         } | 90 |         } | 
        
          | 77 |         else { | 91 |         else { | 
            
              | 78 | -  |  |  |