Fix code climate violations related to removing blockenspiel.

This commit is contained in:
Cillian O'Ruanaidh
2020-06-13 13:27:44 +01:00
parent 6dbb6f3f09
commit bcf79ef803
11 changed files with 23 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ module Spree
ORDER_MANAGEMENT_ENGINE_REPORTS = [
:bulk_coop,
:enterprise_fee_summary
]
].freeze
helper_method :render_content?

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
class BulkCoopController < Spree::Admin::BaseController

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "open_food_network/reports/line_items"
module OrderManagement
@@ -58,6 +60,7 @@ module OrderManagement
def table_items
return [] unless @render_table
report_line_items.list(line_item_includes)
end

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop
@@ -36,8 +38,7 @@ module OrderManagement
:units_required,
:remainder,
:max_quantity_excess
]
},
] },
{ group_by: proc { |line_item| line_item.full_name },
sort_by: proc { |full_name| full_name } }
]

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module OrderManagement
module Reports
module BulkCoop

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'open_food_network/order_grouper'
module OrderManagement

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
describe OrderManagement::Reports::BulkCoop::BulkCoopReport do