<% if @line_item.try(:errors).present? %> <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @line_item } %> <% end %> <% if Spree::Order.checkout_step_names.include?(:delivery) %> <%= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments, :locals => { :order => order } %> <% else %> <%= render :partial => "spree/admin/orders/line_items", :locals => { :order => order } %> <% end %> <% if order.adjustments.eligible.exists? %>
<%= Spree.t('adjustments') %> <% order.adjustments.eligible.each do |adjustment| %> <% next if ((adjustment.originator_type == 'Spree::TaxRate') and (adjustment.amount == 0)) || adjustment.originator_type == 'Spree::ShippingMethod' %> <% end %>
<%= Spree.t('name')%> <%= Spree.t('amount')%>
<%= adjustment.label %>: <%= adjustment.display_amount %>
<% end %> <% if order.line_items.exists? %>
<%= Spree.t(:order_total) %> <%= order.display_total %>
<% end %> <% if @order.payments.exists? %> <%= render 'spree/admin/orders/risk_analysis', latest_payment: @order.payments.order("created_at DESC").first %> <% end %> <%= javascript_tag do -%> var order_number = '<%= @order.number %>'; var shipments = []; <% @order.shipments.each do |shipment| %> shipments.push(<%== shipment.to_json(:root => false, :include => [:inventory_units, :stock_location]) %>); <% end %> <%= render :partial => 'spree/admin/shared/update_order_state', :handlers => [:js] %> <% end -%>