%= render :partial => 'order_head' %> <% form_tag(:action => 'saveOrder', :id => @order) do %>
Name | Preis | Einheit | Fehlende Einheiten | Menge | <% if not @order.stockit? -%>Toleranz | <% end %>Summe | |||
---|---|---|---|---|---|---|---|---|---|
<%=h category %> | |||||||||
<%= order_article.article.name %> | <%=h order_article.article.origin %> | <%= number_to_currency(@price[i]) %> | <%= order_article.article.unit %> | <%= if @order.stockit? order_article.article.quantity_available else missing_units = @unit[i] - (((@quantity[i] + @others_quantity[i]) % @unit[i]) + @tolerance[i] + @others_tolerance[i]) missing_units < 0 ? 0 : missing_units end %> | " value="<%= @quantity[i] %>" size="2" /> <%= @used_quantity[i] %> + <%= @quantity[i] - @used_quantity[i] %> <%= button_to_function('+', "increaseQuantity(#{i})") %> <%= button_to_function('-', "decreaseQuantity(#{i})") %> | <% if not @order.stockit? -%>" value="<%= @tolerance[i] %>" size="2" /> <% if (@unit[i] > 1) -%> <%= @used_tolerance[i] %> + <%= @tolerance[i] - @used_tolerance[i] %> <%= button_to_function('+', "increaseTolerance(#{i})") %> <%= button_to_function('-', "decreaseTolerance(#{i})") %> <% end -%> | <% end %><%= number_to_currency(article_total, :unit => "") %> €
<%= order_article.article.name -%>
Volle Gebinde: <%= order_article.units_to_order %>
Gesamt-Einheiten: <%= @quantity[i] + @others_quantity[i] %> Gesamt-Toleranz: <%= @tolerance[i] + @others_tolerance[i] %>
Hersteller: <%= order_article.article.manufacturer -%>
Gebinde: <%= @order.stockit? ? order_article.article.quantity_available : @unit[i] %> * <%=h order_article.article.unit %> Notiz: <%= order_article.article.note -%> |