%tr#virement_row{:id => virement.id, :class => ("success" if virement.confirmed)}
  
  %td
    -if virement.confirmed and !virement.virement_remise
      =check_box_tag "virement_ids[]", virement.id
      
  
  %td=l virement.created_at
  

  
  %td
    =virement.customer_rib.bank_name
  %td
    =virement.customer_rib.name
  %td
    =virement.customer_rib.country
  
  %td
    =virement.customer_rib.iban
  %td
    =virement.customer_rib.bic
  %td
    =virement.customer_rib.tva_number
  
  %td
    =number_to_currency virement.customer.commissions.sum(:amount)
    
  %td
    =number_to_currency virement.amount_ht
  
  %td
    -if virement.customer_rib.tva and virement.customer_rib.country == "France"
      TVA
    =number_to_currency virement.amount_ttc
      
  
  %td
    =number_to_currency virement.commission.amount
  %td
    =ic(:check) if virement.sended
  

  %td.actions
    = link_to i(:check), valid_admin_virement_path(virement), :data => {:confirm => "Voulez vous vraiment valider ce virement ?"}, :remote => true if !virement.confirmed
    = link_to i(:eye), admin_virement_path(virement, :inline => true), :target => "_blank" 
    = link_to i(:pencil), edit_admin_virement_path(virement), :remote => true if current_admin.super_admin if !virement.confirmed
    
    
    
  