2014-01-23 16:17:16 +01:00
|
|
|
%tbody{id: "group_order_#{group_order.id}"}
|
|
|
|
- if not defined?(heading) or heading
|
|
|
|
%tr.list-heading
|
|
|
|
%th{colspan: 9}
|
2016-02-25 02:08:04 +01:00
|
|
|
%h4.name= group_order.ordergroup_name
|
2014-01-23 16:17:16 +01:00
|
|
|
- total = 0
|
2014-02-20 15:04:53 +01:00
|
|
|
- for goa in group_order.group_order_articles.ordered.includes(:order_article)
|
2014-01-23 16:17:16 +01:00
|
|
|
- total += goa.total_price
|
2020-03-23 12:16:34 +01:00
|
|
|
= render 'shared/articles_by/group_single_goa', goa: goa
|
2014-01-23 16:17:16 +01:00
|
|
|
%tr{class: cycle('even', 'odd', :name => 'articles')}
|
2020-03-19 00:22:20 +01:00
|
|
|
%th{colspan: 7}= heading_helper GroupOrder, :price
|
2014-01-23 16:17:16 +01:00
|
|
|
%th.price_sum{colspan: 2, data: {value: total}}= number_to_currency(total)
|
2020-03-19 00:22:20 +01:00
|
|
|
- if group_order.transport
|
|
|
|
- total += group_order.transport
|
|
|
|
%tr{class: cycle('even', 'odd', :name => 'articles')}
|
|
|
|
%td{colspan: 7}= heading_helper GroupOrder, :transport
|
|
|
|
%td{colspan: 2}= number_to_currency(group_order.transport)
|
|
|
|
%tr{class: cycle('even', 'odd', :name => 'articles')}
|
|
|
|
%th{colspan: 7}= heading_helper GroupOrder, :total
|
|
|
|
%th.total{colspan: 2, data: {value: total}}= number_to_currency(total)
|
2014-01-23 16:17:16 +01:00
|
|
|
%tr
|
|
|
|
%th{colspan: 9}
|
|
|
|
- reset_cycle("articles")
|