<%=_ "Supplier" %>: <%=h @order.supplier.name %> <%=_ "End" %>: <%=h format_time(@order.ends) %> <% if @group_order && @group_order.updated_by -%><%=_ "person ordered at last" %>: <%=h @group_order.updated_by.nick if @group_order.updated_by %> (<%= format_time(@group_order.updated_on) %>) <% end -%><%=_ "Credit available"%>: <%= number_to_currency(@availableFunds) %> |
<% unless @order.note.empty? %>
<%=_ "Note" %>: <%= simple_format(@order.note) %> <% end %> <% unless @order.supplier.min_order_quantity.nil? || @order.supplier.min_order_quantity.empty? %><%=_ "Minimum order quantity" %>: <%=h @order.supplier.min_order_quantity %> <% end %><%=_ "Order quanitity so far" %>: <%= number_to_currency @order.sum %> |
<%= link_to_function order.supplier.name, "if (confirmSwitchOrder()) (window.location = '#{ url_for(:action => 'order', :id => order) }' )" %> | noch <%= time_ago_in_words(order.ends) if order.ends -%> |
<%=_ "Name" %> | <%=_ "Manufacturer" %> | <%=_ "Package" %> | <%=_ "Price" %> | "><%=_ "Ord."%> | <%=_ "Quantity" %> | <%=_ "Tolerance" %> | <%=_ "Amount" %> | ||
---|---|---|---|---|---|---|---|---|---|
<%=h category %> | |||||||||
<% unless order_article.article.note.empty? %> <%= order_article.article.name %> <%= image_tag "lamp_grey.png", {:alt => _("Show note"), :size => "15x16", :border => "0", :onmouseover => "$('note_#{i}').show();", :onmouseout => "$('note_#{i}').hide();" }%> <% else %> <%= order_article.article.name %> <% end %> | <%=h order_article.article.origin %> | <%=h truncate order_article.article.manufacturer, 11 %> | <%= @unit[i] %> * <%=h order_article.article.unit %> | <%= number_to_currency(@price[i]) %> | <%= order_article.units_to_order %> | " value="<%= @quantity[i] %>" size="2" /> <%= @used_quantity[i] %> + <%= @quantity[i] - @used_quantity[i] %> (<%= @quantity[i] + @others_quantity[i] %>) <%= button_to_function('+', "increaseQuantity(#{i})") %> <%= button_to_function('-', "decreaseQuantity(#{i})") %> | " value="<%= @tolerance[i] %>" size="2" /> <% if (@unit[i] > 1) -%> <%= @used_tolerance[i] %> + <%= @tolerance[i] - @used_tolerance[i] %> (<%= @tolerance[i] + @others_tolerance[i] %>) <%= button_to_function('+', "increaseTolerance(#{i})") %> <%= button_to_function('-', "decreaseTolerance(#{i})") %> <% end -%> | <%= number_to_currency(article_total, :unit => "") %> € | |
<%=_ "Total amount" %>: <%= total %> € | |||||||||
<%=_ "Credit available"%>: <%= number_to_currency(@availableFunds) %> | |||||||||
<%=_ "New account balance"%>: <%= @ordergroup.account_balance - total %> € | |||||||||
<%= link_to_top %> | <%= submit_tag( _("Save order"), :id => 'submit_button' ) %> | <%= link_to _("Cancel"), :controller => 'ordering' %> |