%tr#p_payment_row{:id => p_payment.id}
  -tr = {}
  


  
  -tr[:paid_at] = capture do
    %td= l(p_payment.paid_at, :format => :date) if p_payment.paid_at
  -tr[:p_customer] = capture do
    %td
    
      =link_to(p_payment.p_customer.show_name, [:admin, p_payment.p_customer]) if p_payment.p_customer
  
  -tr[:payment_type] = capture do
    %td= p_payment.p_payment_type.name if p_payment.p_payment_type
  
  -tr[:amount] = capture do
    %td= number_to_currency p_payment.amount
  -tr[:solde] = capture do
    %td= number_to_currency(p_payment.amount-p_payment.total_affected) if (p_payment.amount-p_payment.total_affected) > 0

  -tr[:actions] = capture do
    %td.actions
      = link_to i(:"trash-o"), [:admin, p_payment], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cet auteur ? ' } , :remote => true
      = link_to i(:pencil), edit_admin_p_payment_path(p_payment), :remote => true

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

  
  
