Add SKU to LettuceShare report

This commit is contained in:
Maikel Linke
2015-12-10 13:44:00 +11:00
parent 6787709693
commit 15ea64b409
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ module OpenFoodNetwork
[
"PRODUCT",
"Description",
"SKU",
"Qty",
"Pack Size",
"Unit",
@@ -22,6 +23,7 @@ module OpenFoodNetwork
[
variant.product.name,
variant.full_name,
variant.sku,
'',
OptionValueNamer.new(variant).value,
OptionValueNamer.new(variant).unit,

View File

@@ -323,8 +323,8 @@ feature %q{
click_link 'Reports'
click_link 'LettuceShare'
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']
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']
end
end