def read(filename, months=nil)
      @orders = []
      start = months ? (Date.today << months.to_i).strftime('%Y-%m-%d') : nil
      file = File.open(filename, "r:UTF-8") do |f|
        while line = f.gets
          order = Halffare::Model::Order.new(line)
          if (start.nil? || line[0,10] >= start) && (order.note != Fetch::ORDER_NOTE_FILE_CREATED)
            @orders.push(order)
          end
        end
      end
      log_info "read #{@orders.length} orders from #{filename}"
      if @orders.length == 0
        if start.nil?
          log_notice "no orders found"
        else
          log_notice "no orders found after #{start}, maybe tweak the --months param"
        end
      end
    end
def read(filename, months=nil)
      @orders = []
      start = months ? (Date.today << months.to_i).strftime('%Y-%m-%d') : nil
      file = File.open(filename, "r:UTF-8") do |f|
        while line = f.gets
          order = Halffare::Model::Order.new(line)
          if (start.nil? || line[0,10] >= start) && (order.note != Fetch::ORDER_NOTE_FILE_CREATED)
            @orders.push(order)
          end
        end
      end
      log_info "read #{@orders.length} orders from #{filename}"
      if @orders.length == 0
        if start.nil?
          log_notice "no orders found"
        else
          log_notice "no orders found after #{start}, maybe tweak the --months param"
        end
      end
    end
Reads orders from `filename` that date back to max `months` months.

 @param filename [String]       The filename to read from
 @param months   [Integer, nil] Number of months look back or nil for all