!!!
%html
  %head

    %meta{:"http-equiv" => "Content-Type", :content=>"text/html; charset=UTF-8"}
    %meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
    :css
      body{
        font-size:11pt;
        padding :0px;
        margin:0px;
        background-color: transparent; 
        
        font-family:"Arial" ;
      }
      #main{
        //margin-left:4.2cm;
        
      }
      td, th{
          //border:1px solid black;
          padding:5px;
          vertical-align:top;
      
        }
      th{
        font-weight:normal;
        border-bottom:1px solid gray;
        text-align:right;
      }
        
      table{
        border-collapse:collapse;
    
      }
      
      tr{
        page-break-inside:avoid; 
      
      }
      
      #bottom{
      page-break-inside:avoid; 
      
      }
      .right{
        text-align:right;
        
      }
      .line p{
        margin:0px;
      }
      .description{
        padding-top:2pt;
        display:block;
      
      }
      
      .bot_separate{
        height:50pt;
      
      }
      

      
   
      

      
    
  
  %body
    #main
      %div{:style => "height:2cm;"}

      
      #document_info{:style => "position:absolute;top:2cm;left:12cm;"}
        =#"Facture n°#{current_annonce_account.bill_number}"
        %br
        ="Le #{l(@virement.created_at, :format => :date)}"
      #recipient_address{:style => "position:absolute;top:5cm;left:12cm;"}
        
        -if current_annonce_account.organisation?
          =current_annonce_account.organisation
          
        -else
          =current_annonce_account.firstname
          =current_annonce_account.name
        
        %br
        =current_annonce_account.address
        %br
        -if current_annonce_account.address2?
          =current_annonce_account.address2
          %br
        
        =current_annonce_account.cp
        =current_annonce_account.city
        %br
        =current_annonce_account.country
        
        
     
      #header{:style => ""}
      
        
      
      %div{:style => "margin-top:8cm;margin-left:1cm;margin-right:1cm;margin-bottom:0cm;position:relative;"}
        %p
          %strong 
            =qit("virements-show-strong1", "Note de virement de commission")
        %p
          =qit("virements-show-reference", "Référence du virement :")
          %strong= @virement.token.upcase
        %p
          =qit("virements-show-demande-virement", "Date de la demande de virement :")
          %strong= @virement.created_at
        %p
          =qit("virements-show-reference-destinataire", "Référence compte destinataire :")
          %strong= @virement.annonce_account_rib.iban
        %p
          =qit("virements-show-montant-virement", "Montant du virement :")
          %strong=number_to_currency @virement.amount_ttc
        -tva = true if @virement.tva.to_f > 0
        -if tva
          %p
            dont
            =number_to_currency @virement.tva
            de TVA
            (
            =qit("virement-show-tva", "Votre numéro de TVA :")
            =@virement.annonce_account_rib.tva_number
            )
        
        
 
      #footer{:style => "margin:1cm 1cm;margin-top:5cm"}
        
        
        %p 
          =quit("virement-show-important", "Important : Nous vous rappelons que vous devez déclarer les commissions que nous vous versons dans vos revenus ou dans les recettes de votre structure. En cas de doute sur la manière de déclarer vos commissions n'hésitez pas à vous rapprocher d'une personne compétente comme un expert comptable par exemple.")
        
        
          
      
      
      