You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: line_items.rb
    path of file: ./repos/openfoodnetwork/lib/reporting
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Reporting
  # shared code to search and list line items
  class LineItems
    def initialize(order_
    
    def initialize(order_permissions, params, orders_relation = nil)
      @order_permissions = order_permissions
      @params = params
      complete_not_canceled_visible_orders =
        CompleteVisibleOrdersQuery.new(order_permissions).call.not_state(:canceled)
      @orders_relation = orders_relation || complete_not_canceled_visible_orders
    end