%tr#order_hist_row{:id => order_hist.id}
  -tr = {}
  
  -tr[:p_customer_id] = capture do
    %td
      -if order_hist.p_customer
        =link_to order_hist.p_customer.show_name, [:admin, order_hist.p_customer]
        
  -tr[:p_commercial_id] = capture do
    %td
      -if order_hist.p_commercial
        = order_hist.p_commercial.long_name
        
  -tr[:p_payment_type_id] = capture do
    %td
      -if order_hist.p_payment_type
        = order_hist.p_payment_type.name
  
  
  -tr[:actions] = capture do
    %td.actions
      = link_to i(:eye), admin_order_hist_path(order_hist), :remote => false



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