2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-hover
|
|
|
|
%thead
|
2009-01-29 01:57:51 +01:00
|
|
|
%tr
|
2013-02-08 19:16:06 +01:00
|
|
|
%th{:style => 'width:70%'}= t '.ordergroup'
|
2013-09-16 23:52:58 +02:00
|
|
|
%th
|
|
|
|
%acronym{:title => t('shared.articles.ordered_desc')}= t 'shared.articles.ordered'
|
|
|
|
%th
|
|
|
|
%acronym{:title => t('shared.articles.received_desc')}= t 'shared.articles.received'
|
2013-02-08 19:16:06 +01:00
|
|
|
%th= t '.price'
|
2009-01-29 01:57:51 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
- for order_article in order.order_articles.ordered.all(:include => [:article, :article_price])
|
2009-01-29 01:57:51 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2009-02-03 21:14:48 +01:00
|
|
|
%th{:colspan => "4"}
|
2009-01-29 01:57:51 +01:00
|
|
|
= order_article.article.name
|
2009-02-03 21:14:48 +01:00
|
|
|
= "(#{order_article.article.unit} | #{order_article.price.unit_quantity} | #{number_to_currency(order_article.price.gross_price)})"
|
2009-01-29 01:57:51 +01:00
|
|
|
%tbody
|
2013-09-17 00:25:38 +02:00
|
|
|
- for goa in order_article.group_order_articles.ordered
|
2013-09-16 23:52:58 +02:00
|
|
|
%tr{:class => [cycle('even', 'odd', :name => 'groups'), if goa.result == 0 then 'unavailable' end]}
|
2009-01-29 01:57:51 +01:00
|
|
|
%td{:style => "width:70%"}=h goa.group_order.ordergroup.name
|
2009-02-04 16:41:01 +01:00
|
|
|
%td= "#{goa.quantity} + #{goa.tolerance}"
|
2009-02-03 21:14:48 +01:00
|
|
|
%td
|
2009-02-04 16:41:01 +01:00
|
|
|
%b= goa.result
|
|
|
|
%td= number_to_currency(order_article.price.fc_price * goa.result)
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
|
|
|
%td(colspan="4" )
|
2013-02-08 19:16:06 +01:00
|
|
|
- reset_cycle('groups')
|