diff --git a/lib/open_food_network/orders_and_fulfillments_report.rb b/lib/open_food_network/orders_and_fulfillments_report.rb index 8cc3e4a064..f5b810fb18 100644 --- a/lib/open_food_network/orders_and_fulfillments_report.rb +++ b/lib/open_food_network/orders_and_fulfillments_report.rb @@ -39,14 +39,10 @@ module OpenFoodNetwork def report_klass case report_type - when SupplierTotalsReport::REPORT_TYPE - SupplierTotalsReport - when SupplierTotalsByDistributorReport::REPORT_TYPE - SupplierTotalsByDistributorReport - when DistributorTotalsBySupplierReport::REPORT_TYPE - DistributorTotalsBySupplierReport - when CustomerTotalsReport::REPORT_TYPE - CustomerTotalsReport + when SupplierTotalsReport::REPORT_TYPE then SupplierTotalsReport + when SupplierTotalsByDistributorReport::REPORT_TYPE then SupplierTotalsByDistributorReport + when DistributorTotalsBySupplierReport::REPORT_TYPE then DistributorTotalsBySupplierReport + when CustomerTotalsReport::REPORT_TYPE then CustomerTotalsReport else DefaultReport end