def build_items_header(items_params)
      headers = []
      headers << { text: label_with_sublabel(:item) } if items_params[:names]
      headers << { text: label_with_sublabel(:variable) } if items_params[:variables]
      headers << { text: label_with_sublabel(:quantity) } if items_params[:quantities]
      headers << { text: label_with_sublabel(:unit) } if items_params[:units]
      headers << { text: label_with_sublabel(:price_per_item) } if items_params[:prices]
      headers << { text: label_with_sublabel(:tax) } if items_params[:taxes]
      headers << { text: label_with_sublabel(:tax2) } if items_params[:taxes2]
      headers << { text: label_with_sublabel(:tax3) } if items_params[:taxes3]
      headers << { text: label_with_sublabel(:amount) } if items_params[:amounts]
      headers
    end
def build_items_header(items_params)
      headers = []
      headers << { text: label_with_sublabel(:item) } if items_params[:names]
      headers << { text: label_with_sublabel(:variable) } if items_params[:variables]
      headers << { text: label_with_sublabel(:quantity) } if items_params[:quantities]
      headers << { text: label_with_sublabel(:unit) } if items_params[:units]
      headers << { text: label_with_sublabel(:price_per_item) } if items_params[:prices]
      headers << { text: label_with_sublabel(:tax) } if items_params[:taxes]
      headers << { text: label_with_sublabel(:tax2) } if items_params[:taxes2]
      headers << { text: label_with_sublabel(:tax3) } if items_params[:taxes3]
      headers << { text: label_with_sublabel(:amount) } if items_params[:amounts]
      headers
    end
Include only relevant headers