foodsoft/app/views/mailer/order_received.text.haml

14 lines
713 B
Text
Raw Permalink Normal View History

= raw t '.text0', ordergroup: @group_order.ordergroup_name, order: @order.name
- unless @abundant_articles.empty?
= raw "===\n" + t('.abundant_articles') + ":"
- @abundant_articles.each do |order_article|
- article = order_article.article
= raw t('.article_details', name: article.name, ordered: order_article.units_to_order, received: order_article.units_received, unit: article.unit)
- unless @scarce_articles.empty?
= raw "===\n" + t('.scarce_articles') + ":"
- @scarce_articles.each do |order_article|
- article = order_article.article
= raw t('.article_details', name: article.name, ordered: order_article.units_to_order, received: order_article.units_received, unit: article.unit)