Pedido #<%= @order.id %> realizado el <%= l @order.created_at.to_date, format: :long %>
<%= t('activerecord.attributes.order.quantity') %>
<%= @order.quantity %>
<%= t('activerecord.attributes.order.description') %>
<%= !Product.exists?(@order.product_id) ? (simple_format @order.description) : (link_to (simple_format @order.description), product_path(@order.product_id)) %>
<% unless @order.comment.blank? %>
<%= t('activerecord.attributes.order.comment') %>
<%= simple_format @order.comment %>
<% end %> <% unless @order.amount.blank? %>
<%= t('activerecord.attributes.order.amount') %>
<%= number_to_currency @order.amount %>
<% end %> <% unless @order.vat_percentage.blank? or @order.amount.blank? %>
<%= t('activerecord.attributes.order.vat_percentage') %>
<%= number_to_percentage @order.vat_percentage %>
<%= t('activerecord.attributes.order.vat_amount') %>
<%= number_to_currency @order.vat_amount %>
<% end %> <% unless @order.amount.blank? %>
<%= t('activerecord.attributes.order.total') %>
<%= number_to_currency @order.total %>
<% end %>
<%= t('activerecord.attributes.order.address') %>
<%= simple_format @order.address %>
<%= t('activerecord.attributes.order.state') %>
<%= @order.state.text %>
<% if @order.allow_uploads? %> <%= link_to order_uploads_path(@order), class: 'btn btn-info' do %> <%= t('site.order_files') %> <% end %> <% end %>