.center.padding
  -@recap = true
  .qi_header
    .right=# link_to 'Ajouter une taille', new_admin_product_size_path, :class => "btn btn-primary", :remote => true
    %h1 

      %span
        Détail de la commande
        ="#"+@product_order.id.to_s
  %hr
  %h3=@product_order.reseaux.name if @product_order.reseaux

   
  
  Documents générés
  %table
    -@product_order.product_order_documents.each do |document|
      =render document if document.id
    
  %hr
  %br
  
  
  .qi_row
    .qi_pannel.qi_plain
      -if false
        %p
          =link_to "Voir le détail des sous produits", subs_admin_product_order_path(@product_order)


    
      %p
        Mode de paiment :
        -if @product_order.product_order_payment_type_ok_id == 3
          CB
        -elsif @product_order.product_order_payment_type_ok_id == 1
          Chèque
        -elsif @product_order.product_order_payment_type_ok_id == 2
          Virement
        -elsif @product_order.product_order_payment_type_ok_id == 4
          Mandat administratif
 

      %table.table
        %tr
          %td
            %h3 Adresse de facturation
            =render @product_order.particular_bill if @product_order.particular_bill
          %td
            %h3 Adresse de livraison
            =render @product_order.particular_send if @product_order.particular_send
    
      %table.table
        =render @product_order.product_order_products.order(:product_id)
  
    
        %tr
          %td{:colspan => 3, :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 => 3, :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 => 3, :style => "border:0;"}
          %td Frais de port :
          %td= number_to_currency(@product_order.archived_total_fdp, locale: :fr)
        %tr
          %td{:colspan => 3, :style => "border:0;"}
          %td
            %strong Total :
          %td
            %strong
              = number_to_currency(@product_order.archived_total_ttc, locale: :fr)
     