Fix lint issues

This commit is contained in:
Ahmed Ejaz
2025-06-15 18:19:46 +05:00
parent fe1b8aaab3
commit 8d407b1dc9
2 changed files with 16 additions and 3 deletions

View File

@@ -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])

View File

@@ -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(