mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add SKU to LettuceShare report
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user