%table{:style => "width:100%;"}
  %tr
    %td
      %h3="Adresse de facturation"
      =render :partial => "public/particulars/particular", :object => @product_order.particular_bill if @product_order.particular_bill
    %td
      %h3="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:120px"}
        =image_tag "http://#{HOSTNAME}"+product_order_product.product.default_image.image_file.file.large.medium.small.thumb.url, :style => "width:100%;" if product_order_product.product and product_order_product.product.default_image
      %td{:style => "vertical-align:top;"}
        %strong= product_order_product.archived_product.lang(:fr).title
        %br
        
        = product_order_product.archived_product_size.name if product_order_product.archived_product_size

        = product_order_product.archived_product_option.lang(I18n.locale).name if product_order_product.archived_product_option

      %td{:style => "text-align:right;vertical-align:top;"}
        = number_to_currency(product_order_product.archived_product.price_ht.to_f, locale: :fr) if product_order_product.archived_product
      %td{:style => "text-align:center;vertical-align:top;"}
        =product_order_product.qty
      %td{:style => "text-align:right;vertical-align:top;"}
        = number_to_currency(product_order_product.final_price_ht_with_qty, locale: :fr) if product_order_product.archived_product
    

  
  %tr
    %td{:colspan => 3, :style => "border:0;"}
    %td
      %strong Total HT:
    %td.boutique-right
      %strong
        = number_to_currency(@product_order.archived_total_ht, locale: :fr)
  %tr
    %td{:colspan => 3, :style => "border:0;"}
    %td
      %strong TVA:
    %td.boutique-right
      %strong
        = number_to_currency(@product_order.archived_total_tva, locale: :fr)
        
        
  %tr
    %td{:colspan => 3, :style => "border:0;"}
    %td
      %strong Total TTC:
    %td
      %strong
        = number_to_currency(@product_order.archived_total_ttc, locale: :fr)
  
  
  