Handling undefined customer tags

This commit is contained in:
Maikel Linke
2015-08-26 15:01:20 +10:00
parent 4f7f2e2035
commit 5d34b711e9

View File

@@ -222,7 +222,7 @@ module OpenFoodNetwork
proc { |line_items| line_items.first.order.order_cycle.andand.name },
proc { |line_items| line_items.first.order.payments.first.andand.payment_method.andand.name },
proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).andand.code },
proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).tags.join(', ') },
proc { |line_items| line_items.first.order.user.andand.customer_of(line_items.first.order.distributor).andand.tags.andand.join(', ') },
proc { |line_items| line_items.first.order.bill_address.andand.address1 },
proc { |line_items| line_items.first.order.bill_address.andand.address2 },