.qi_header
  %h1
    Historique quadra
    
    %span
      Détail d'une facture
      


.qi_row
  .qi_pannel.qi_plain.padding
    
    
    -params[:search][:per_page] = params[:search][:per_page] || 50
    -per_page = params[:search][:per_page]
    -page = (params[:page] and params[:page] != "") ? params[:page] : 1 
    -@order_hist_lines =@order_hist.order_hist_lines
    -@order_hist_lines = sort_by_sorting(@order_hist_lines, "date_facture DESC")
    -@order_hist_lines = @order_hist_lines.page(page).per(per_page)
    
    .qi_padding.qi_stat.stat_block
      
    =render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @order_hist_lines}
    
    
    