=render :partial => "public/my_account/menu"
  
.center.padding
  %h1 
    =qit("orders-bills-h1", "Liste de mes factures")
  %table.table
    %tr
      =qit "orders-bills-th" do
        %th Date de la commande
        %th Numéro de la commande
        %th Montant de la commande
        %th
        %th
    -current_annonce_account.orders.where(:payment_type_id => 2).order("paid_at DESC").each do |order|
      %tr
        %td
          =l order.paid_at if order.paid_at
        %td
          =('%05d' % order.id)
        %td
          %strong
            = number_to_currency order.amount_ttc
            TTC
          (
          =number_to_currency order.amount_ht
          HT)
        %td
          =link_to "Voir ma facture", bill_print_public_order_path(order, :format => "pdf", :inline => true), :target => "_blank"
        %td
          =link_to "Télécharger en PDF", bill_print_public_order_path(order, :format => "pdf")
    