app/models/concerns/order_state_config.rb
# Returns true if any items associated with this Order are ready for use
Returns true if any items associated with this Order are ready for use
Returns true if any items associated with this Order are ready for use
def any_items_ready?
      ready = false
      if items.blank?
        ready = true
      else
        items.each do |i|
          if !i.obsolete
            if i.digital_object
              ready = i.state_reached_for_order(:ready_at_use_location, self.id)
            else
              ready = i.state_reached_for_order(:ready_at_temporary_location, self.id)
            end
          end
          break if ready
        end
      end
      ready
    end
def any_items_ready? ready = false if items . blank? ready = true else items . each do | i | if ! i . obsolete if i . digital_object ready = i . state_reached_for_order ( :ready_at_use_location , self . id ) else ready = i . state_reached_for_order ( :ready_at_temporary_location , self . id ) end end break if ready end end ready end
Returns true if any items associated with this Order are ready for use
Returns true if any items associated with this Order are ready for use