Report customers in deterministic order

The result could be random before which led to a flaky spec. I could
have adjusted the spec but I thought that it may be better UX as well to
be deterministic, especially when exporting into spreadsheets.
This commit is contained in:
Maikel Linke
2023-08-23 17:03:30 +10:00
parent 57c44ffc72
commit 4c3d619260

View File

@@ -8,6 +8,7 @@ module Reporting
filter Spree::Order.managed_by(@user)
.distributed_by_user(@user)
.complete.not_state(:canceled)
.order(:id)
end
def filter(orders)