From 2bb85eb8e0c4473ef958bdea69f528a9f8212668 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Wed, 16 Dec 2015 13:42:58 +1100 Subject: [PATCH] Revert "Add SKU to LettuceShare report" This reverts commit 15ea64b4093639bcba89184cdcb955b82ef5cc3f. --- lib/open_food_network/lettuce_share_report.rb | 2 -- spec/features/admin/reports_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/open_food_network/lettuce_share_report.rb b/lib/open_food_network/lettuce_share_report.rb index 97b1f058fc..a2b26475ef 100644 --- a/lib/open_food_network/lettuce_share_report.rb +++ b/lib/open_food_network/lettuce_share_report.rb @@ -6,7 +6,6 @@ module OpenFoodNetwork [ "PRODUCT", "Description", - "SKU", "Qty", "Pack Size", "Unit", @@ -30,7 +29,6 @@ module OpenFoodNetwork [ variant.product.name, variant.full_name, - variant.sku, '', OptionValueNamer.new(variant).value, OptionValueNamer.new(variant).unit, diff --git a/spec/features/admin/reports_spec.rb b/spec/features/admin/reports_spec.rb index 5a9add6b9b..6cdb948ce4 100644 --- a/spec/features/admin/reports_spec.rb +++ b/spec/features/admin/reports_spec.rb @@ -326,8 +326,8 @@ feature %q{ click_link 'Reports' click_link 'LettuceShare' - page.should have_table_row ['PRODUCT', 'Description', 'SKU', 'Qty', 'Pack Size', 'Unit', 'Unit Price', 'Total', 'GST incl.', 'Grower and growing method', 'Taxon'].map(&:upcase) - page.should have_table_row ['Product 2', '100g', 'ABC', '', '100', 'g', '99.0', '', '0', 'Supplier Name (Organic - NASAA 12345)', 'Taxon Name'] + page.should have_table_row ['PRODUCT', 'Description', 'Qty', 'Pack Size', 'Unit', 'Unit Price', 'Total', 'GST incl.', 'Grower and growing method', 'Taxon'].map(&:upcase) + page.should have_table_row ['Product 2', '100g', '', '100', 'g', '99.0', '', '0', 'Supplier Name (Organic - NASAA 12345)', 'Taxon Name'] end end