mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +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])
|
||||
|
||||
Reference in New Issue
Block a user