mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
The orders_and_fulfillment_spec would sometimes fail when the database would return line items in a different order than they were created. Without specific `order` clause the order of rows can be random. The additional sorting may lead to more server load but also ensures more consistent results for users.
Reports framework
A framework that handles querying and rendering tabular data.
TODO: add more details on how each part works.
Rules
Rules are used for grouping, ordering, and summary rows. Options are documented at Reporting::ReportTemplate#rules.