Name Menge Preis GebGr Einheit Gesamtpreis
<% for groupOrderResult in @order.group_order_results %> <% total = 0 for result in groupOrderResult.group_order_article_results price = result.order_article_result.gross_price quantity = result.quantity subTotal = price * quantity total += subTotal %> <% end %>
<%=h groupOrderResult.group_name %>
<%=h result.order_article_result.name %> <%=h quantity %> (<%=h result.tolerance %>) <%= number_to_currency(price) %> <%=h result.order_article_result.unit_quantity %> <%=h result.order_article_result.unit %> <%= number_to_currency(subTotal) %>
Summe <%= number_to_currency(total) %>
<%- reset_cycle("articles") -%> <% end %>