%table{:style => "width:100%;"}
  %tr
    %td
      %h3=qit "Adresse de facturation-mail", "Adresse de facturation"
      =render :partial => "public/particulars/particular", :object => @product_order.particular_bill if @product_order.particular_bill
    %td
      %h3=qit "Adresse de livraison-mail", "Adresse de livraison"
      =render :partial => "public/particulars/particular", :object => @product_order.particular_send if @product_order.particular_send
%br
%table.order_table{:style => "width:100%;"}
  -@product_order.product_order_products.order(:product_id).each do |product_order_product|
    %tr
      %td{:style => "width:280px"}
        =image_tag "http://#{HOSTNAME}"+product_order_product.product.default_image.image_file.file.large.medium.small.thumb.url if product_order_product.product and product_order_product.product.default_image
      %td
        = product_order_product.archived_product.lang(:fr).title

      %td
        = product_order_product.archived_product_size.name if product_order_product.archived_product_size
      %td
        = product_order_product.archived_product_option.lang(I18n.locale).name if product_order_product.archived_product_option

      %td
        = number_to_currency(product_order_product.archived_product.price_ttc.to_f, locale: :fr) if product_order_product.archived_product
      %td
        =product_order_product.qty
      %td
        = number_to_currency(product_order_product.archived_price_ttc_with_qty, locale: :fr) if product_order_product.archived_product
    

  
  %tr
    %td{:colspan => 5, :style => "border:0;"}
    %td Total :
    %td= number_to_currency(@product_order.archived_total_articles, locale: :fr)
    
    
  -if @product_order.vourcher_code_archived
    %tr
      %td{:colspan => 5, :style => "border:0;"}
      %td
        =qit "Code réduction tableau", "Code de réduction "
        ="("+@product_order.vourcher_code_archived.slug+") :"
      %td  
        ="-"
        =number_to_currency @product_order.archived_vourcher_reduction, locale: :fr
      
  
  
  
  %tr
    %td{:colspan => 5, :style => "border:0;"}
    %td=qit "frais de port dans tableau", "Frais de port :"
    %td= number_to_currency(@product_order.archived_total_fdp, locale: :fr)
  %tr
    %td{:colspan => 5, :style => "border:0;"}
    %td
      %strong Total :
    %td
      %strong
        = number_to_currency(@product_order.archived_total_ttc, locale: :fr)
