2009-01-29 21:28:22 +01:00
|
|
|
%td.closed
|
|
|
|
= link_to_function order_article.article.name, |
|
|
|
|
"Element.toggle('group_order_articles_#{order_article.id}'); |
|
|
|
|
Element.toggleClassName(this.up('td'), 'open')" |
|
|
|
|
%td= order_article.article.order_number
|
2009-02-04 16:41:01 +01:00
|
|
|
%td
|
|
|
|
= order_article.units_to_order
|
|
|
|
- unless order_article.ordered_quantities_equal_to_group_orders?
|
|
|
|
%span{:style => "color:red;font-weight: bold"} !
|
2009-01-29 21:28:22 +01:00
|
|
|
%td= order_article.price.unit_quantity.to_s + ' * ' + order_article.article.unit.to_s
|
2009-03-22 11:58:01 +01:00
|
|
|
%td
|
2009-08-06 16:14:36 +02:00
|
|
|
= number_to_currency(order_article.price.price, :unit => "")
|
|
|
|
:plain
|
|
|
|
/
|
|
|
|
= number_to_currency(order_article.total_price, :unit => "")
|
2009-03-22 11:58:01 +01:00
|
|
|
%td
|
2009-08-06 16:14:36 +02:00
|
|
|
= number_to_currency(order_article.price.gross_price, :unit => "")
|
|
|
|
:plain
|
|
|
|
/
|
|
|
|
= number_to_currency(order_article.total_gross_price, :unit => "")
|
2009-01-29 21:28:22 +01:00
|
|
|
%td= order_article.price.tax
|
|
|
|
%td= order_article.price.deposit
|
|
|
|
%td
|
2009-02-09 20:12:56 +01:00
|
|
|
= remote_link_to icon(:edit), |
|
|
|
|
:url => {:action => 'edit_order_article', :id => order_article} |
|
2009-01-29 21:28:22 +01:00
|
|
|
%td
|
|
|
|
= remote_link_to icon(:delete), :confirm => 'Bist du sicher?', |
|
|
|
|
:url => {:action => 'destroy_order_article', :id => order_article}, |
|
|
|
|
:method => :post |
|