-if p_customer_sheet.total_with_labels_table[:total][:value] != 0.0
  %tr#p_customer_sheet{:id => p_customer_sheet.id}
    %td
      =link_to public_p_customer_sheet_path(p_customer_sheet) do
        ="##{p_customer_sheet.id}"
    %td
      =link_to public_p_customer_sheet_path(p_customer_sheet) do
        =l p_customer_sheet.created_at, :format => :date


  
  
    %td{:style => "text-align:right;width:100px;"}
      -a = p_customer_sheet.total_with_labels_table[:total][:value]
      -@ht += a
      =number_to_currency a
      
      
    %td{:style => "text-align:right;width:100px;"}
      -a = p_customer_sheet.total_with_labels_table[:total_ttc][:value]
      -@ttc += a
      =number_to_currency a
  
    
    %td=raw p_customer_sheet.state_html
  
    %td
      -if p_customer_sheet.paid
        Paiement reçu
      -elsif p_customer_sheet.p_payment_type_id == 2
        En attente du paiement par virement
      -elsif p_customer_sheet.p_payment_type_id == 3
        En attente du paiement par chèque
    
  
    %td.actions
      = link_to i(:pencil), edit_public_p_customer_sheet_path(p_customer_sheet), :remote => false
      = link_to i(:eye)+raw("&nbsp; détail"), public_p_customer_sheet_path(p_customer_sheet), :remote => false

