Send order-finish-notifications in background.
This commit is contained in:
parent
37c9e2aeaf
commit
ce2156d75f
4 changed files with 14 additions and 15 deletions
|
|
@ -3,9 +3,9 @@ Liebe <%= @group_order.ordergroup.name %>,
|
|||
die Bestellung für "<%= @order.name %>" wurde am <%= @order.ends.strftime('%d.%m.%Y um %H:%M') %> von <%= @order.updated_by.nick %> beendet.
|
||||
|
||||
Für Euch wurden die folgenden Artikel bestellt:
|
||||
<% for group_order_article in @group_order.group_order_articles.all(:include => :order_article)
|
||||
<% for group_order_article in @group_order.group_order_articles.ordered.all(:include => :order_article)
|
||||
article = group_order_article.order_article.article -%>
|
||||
<%= article.name %>: <%= group_order_article.quantity %> x <%= article.unit %> = <%= group_order_article.quantity * article.fc_price %>
|
||||
<%= article.name %>: <%= group_order_article.result %> x <%= article.unit %> = <%= group_order_article.result * article.fc_price %>
|
||||
<% end -%>
|
||||
Gesamtpreis: <%= @group_order.price %>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue