Fixed failures in show-view of StockOrders. (#195)

This commit is contained in:
Benjamin Meichsner 2009-03-11 17:08:12 +01:00
parent 714197eea1
commit 35251576fa

View file

@ -4,6 +4,7 @@
%th Gebinde %th Gebinde
%th Netto-/Bruttopreis %th Netto-/Bruttopreis
%th Bestellte Einheiten %th Bestellte Einheiten
- unless order.stockit?
%th Volle Gebinde %th Volle Gebinde
- total_net, total_gross, counter = 0, 0, 0 - total_net, total_gross, counter = 0, 0, 0
- order.articles_grouped_by_category.each do |category_name, order_articles| - order.articles_grouped_by_category.each do |category_name, order_articles|
@ -21,6 +22,9 @@
%td=h order_article.article.name %td=h order_article.article.name
%td= "#{unit_quantity} x #{order_article.article.unit}" %td= "#{unit_quantity} x #{order_article.article.unit}"
%td= "#{number_to_currency(net_price)} / #{number_to_currency(gross_price)}" %td= "#{number_to_currency(net_price)} / #{number_to_currency(gross_price)}"
- if order.stockit?
%td= units
- else
%td= "#{order_article.quantity} + #{order_article.tolerance}" if unit_quantity > 1 %td= "#{order_article.quantity} + #{order_article.tolerance}" if unit_quantity > 1
%td= units %td= units
%p %p