%tr#order_hist_line_row{:id => order_hist_line.id}
  -tr = {}
  
  -tr[:p_customer_id] = capture do
    %td
      -if order_hist_line.p_customer
        =link_to order_hist_line.p_customer.show_name, [:admin, order_hist_line.p_customer]
        
  -tr[:p_commercial_id] = capture do
    %td
      -if order_hist_line.p_commercial
        = order_hist_line.p_commercial.long_name
        
  -tr[:p_payment_type_id] = capture do
    %td
      -if order_hist_line.p_payment_type
        = order_hist_line.p_payment_type.name
        
  -tr[:p_product_ref_id] = capture do
    %td
      -if order_hist_line.p_product_ref and order_hist_line.p_product_ref.p_product
        =link_to "#{order_hist_line.p_product_ref.p_product.name} - #{order_hist_line.p_product_ref.uv}"
  
   
  
  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, order_hist_line], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet enregistrement ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_order_hist_line_path(order_hist_line), :remote => true
      = link_to i(:eye), admin_order_hist_line_path(order_hist_line), :remote => true



  =render :partial => "qi/qi_ordered_table_object", :locals => {:tr => tr, :object => order_hist_line}
    
  
  
  