Skip to content

Commit

Permalink
Merge pull request #13154 from mkllnk/flaky-line-items
Browse files Browse the repository at this point in the history
Fix order of line item based report rows
  • Loading branch information
drummer83 authored Feb 18, 2025
2 parents 29032a9 + 1e34237 commit 29c3ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporting/line_items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def orders

def list(line_item_includes = [variant: [:supplier, :product]])
line_items = order_permissions.visible_line_items.in_orders(orders.result)
.order("supplier.name", "product.name", "variant.display_name")
.order("supplier.name", "product.name", "variant.display_name", "variant.unit_description")

if @params[:supplier_id_in].present?
line_items = line_items.supplied_by_any(@params[:supplier_id_in])
Expand Down

0 comments on commit 29c3ef3

Please sign in to comment.