%tr#p_payment{:id => p_payment.id}
  %td= ic(:check) if p_payment.paid
  %td= l(p_payment.paid_at, :format => :date) if p_payment.paid_at
  %td= l(p_payment.theo_date, :format => :date) if p_payment.theo_date
  %td=link_to(p_payment.p_customer.show_name, [:admin, p_payment.p_customer]) if p_payment.p_customer
  %td= number_to_currency p_payment.amount
  
  %td= number_to_currency(p_payment.amount-p_payment.total_affected) if (p_payment.amount-p_payment.total_affected) > 0


  %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

