.qi_header
  
  %h1
    Achats
    %span
      Résumé stocks


.qi_row
  .qi_pannel.qi_plain.padding
    %table.table
      %tr
        %th Code gén.
        %th Produit
        %th Reférence
        
        %th Couleurs
  
        %th Taille
        
        %th
          Stock 
        %th
          Stock Théorique
        
        %th

  

      %tbody#p_products_rows
        -PProductCat.all.each do |p_product_cat|
          %tr
            %th
            %th{:colspan => 6}
              %strong
                %br
                =p_product_cat.name
          -p_product_cat.p_products.where(:archived => false).each do |p_product|
            %tr
              %th
              %th{:colspan => 6}
                %br
                %em=p_product.name
          
            =render p_product.p_product_stocks.order("p_color_id")
  
    