mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Fix lint issues
This commit is contained in:
@@ -17,7 +17,12 @@ module Reporting
|
||||
|
||||
def list(line_item_includes = [variant: [:supplier, :product]])
|
||||
line_items = order_permissions.visible_line_items.in_orders(orders.result)
|
||||
.order("supplier.name", "product.name", "spree_variants.display_name", "spree_variants.unit_description")
|
||||
.order(
|
||||
"supplier.name",
|
||||
"product.name",
|
||||
"spree_variants.display_name",
|
||||
"spree_variants.unit_description"
|
||||
)
|
||||
|
||||
if @params[:supplier_id_in].present?
|
||||
line_items = line_items.supplied_by_any(@params[:supplier_id_in])
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
require 'system_helper'
|
||||
|
||||
RSpec.describe 'As a hub (producer seller) who have the ability to update orders having their products' do
|
||||
RSpec.describe '
|
||||
As a hub (producer seller) who have the ability to update
|
||||
orders having their products
|
||||
' do
|
||||
include AdminHelper
|
||||
include AuthenticationHelper
|
||||
include WebHelper
|
||||
@@ -11,7 +14,12 @@ RSpec.describe 'As a hub (producer seller) who have the ability to update orders
|
||||
let!(:hub1_v1) { create(:variant, supplier_id: hub1.id) }
|
||||
let!(:hub1_v2) { create(:variant, supplier_id: hub1.id) }
|
||||
let(:order_cycle) do
|
||||
create(:simple_order_cycle, distributors: [distributor], variants: [hub1_v1, hub1_v2], coordinator: distributor)
|
||||
create(
|
||||
:simple_order_cycle,
|
||||
distributors: [distributor],
|
||||
variants: [hub1_v1, hub1_v2],
|
||||
coordinator: distributor
|
||||
)
|
||||
end
|
||||
let!(:order_containing_hub1_products) do
|
||||
o = create(
|
||||
|
||||
Reference in New Issue
Block a user