#main
  
  %div{:style => "position:absolute;top:4.4cm;right:1cm;text-align:right;"}
    =@p_document.label
    n°
    =@p_document.d_number
    %br
    =l @element.created_at, :format => :date #@p_document.created_at



  %div{:style => "height:380px;"}
  


  %table.table{:style => "position:absolute;right:1cm;top:220px"}
    %tr
      %td{:style => "width:5.5cm;border:0"}
        %h3 Adresse de facturation
      
        %strong=@element.particular_bill.organisation
        %br
        =@element.particular_bill.firstname

        =@element.particular_bill.name
        %br
        =@element.particular_bill.address_2

        -if @element.particular_bill.address_3?
          %br
          =@element.particular_bill.address_3
        %br
        =@element.particular_bill.cp

        =@element.particular_bill.city
        %br
        =@element.particular_bill.country
        %br
        %br
        =@element.particular_bill.tel
      
      
      %td{:style => "width:5.5cm;border:0"}
        %h3 Adresse de livraison
      
        %strong=@element.particular_bill.organisation
        %br
        =@element.particular_send.firstname

        =@element.particular_send.name
        %br
        =@element.particular_send.address_2

        -if @element.particular_send.address_3?
          %br
          =@element.particular_send.address_3
        %br
        =@element.particular_send.cp

        =@element.particular_send.city
        %br
        =@element.particular_send.country
        %br
        %br
        =@element.particular_bill.tel
  -if ["Facture"].include?(@p_document.label)
    -ok = true
  -else
    -ok = false
  =render :partial => "admin/p_sheet_lines/print_p_sheet_lines", :locals => {:sheet_lines => @p_document.p_sheet_lines, :ok => ok }
    