add toxons to prodcut reports

This commit is contained in:
Rafael Schouten
2014-10-25 17:09:23 +11:00
parent 33fc7e0fc9
commit 6f1c90ea25
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ module OpenFoodNetwork
"Producer Suburb",
"Product",
"Product Properties",
"Taxon",
"Variant Value",
"Price",
"Group Buy Unit Quantity",
@@ -26,6 +27,7 @@ module OpenFoodNetwork
variant.product.supplier.address.city,
variant.product.name,
variant.product.properties.map(&:name).join(", "),
variant.product.taxons.map(&:name).join(", "),
variant.full_name,
variant.price,
variant.product.group_buy_unit_size,