2009-01-29 21:28:22 +01:00
|
|
|
%td{:colspan => "7"}
|
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%td{:style => "width:8em"} Gruppe
|
|
|
|
%td Einheiten
|
|
|
|
%td Gesamtpreis
|
|
|
|
%td{:colspan => "3",:style => "width:14em"}
|
2012-07-27 18:03:46 +02:00
|
|
|
= link_to '[Gruppe hinzufügen]', new_finance_group_order_article_path(order_article_id: order_article.id),
|
2012-06-21 17:19:00 +02:00
|
|
|
remote: true
|
2009-01-29 21:28:22 +01:00
|
|
|
%tbody
|
2009-04-03 18:01:19 +02:00
|
|
|
- for group_order_article in order_article.group_order_articles.ordered.all(:include => [:group_order])
|
2009-01-29 21:28:22 +01:00
|
|
|
%tr{:class => cycle('even', 'odd', :name => 'results')}[group_order_article]
|
|
|
|
%td
|
|
|
|
%td{:style=>"width:50%"}
|
|
|
|
= group_order_article.group_order.ordergroup.name
|
2009-03-20 18:56:17 +01:00
|
|
|
%td{:id => "group_order_article_#{group_order_article.id}_quantity", :style => "white-space:nowrap"}
|
2009-02-04 16:41:01 +01:00
|
|
|
= group_order_article.result
|
2012-07-27 18:03:46 +02:00
|
|
|
= button_to "+", update_result_finance_group_order_article_path(group_order_article, modifier: '+'),
|
|
|
|
method: :put, remote: true, style: 'float:left'
|
|
|
|
= button_to "-", update_result_finance_group_order_article_path(group_order_article, modifier: '-'),
|
|
|
|
method: :put, remote: true
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.currency
|
2009-02-06 16:26:35 +01:00
|
|
|
= number_to_currency(group_order_article.order_article.price.fc_price * group_order_article.result, :unit => "")
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.actions{:style=>"width:1em"}
|
2012-07-27 18:03:46 +02:00
|
|
|
= link_to icon(:edit), edit_finance_group_order_article_path(group_order_article), remote: true
|
2009-01-29 21:28:22 +01:00
|
|
|
%td.actions{:style=>"width:1em"}
|
2012-07-27 18:03:46 +02:00
|
|
|
= link_to icon(:delete), finance_group_order_article_path(group_order_article), method: :delete,
|
|
|
|
remote: true
|
2009-01-29 21:28:22 +01:00
|
|
|
%td
|
|
|
|
%tfoot
|
|
|
|
%tr{:class => cycle('even', 'odd', :name => 'results')}
|
|
|
|
%td
|
2009-03-22 12:08:42 +01:00
|
|
|
%td{:style => "width:8em"} Summe (FC-Preis)
|
2009-01-29 21:28:22 +01:00
|
|
|
%td{:id => "group_orders_sum_quantity_#{order_article.id}"}
|
|
|
|
= order_article.group_orders_sum[:quantity]
|
|
|
|
%td{:id => "group_orders_sum_price_#{order_article.id}", :class => "currency"}
|
|
|
|
= number_to_currency(order_article.group_orders_sum[:price], :unit => "")
|
|
|
|
%td{:colspan => "3"}
|
|
|
|
- reset_cycle('results')
|