negos_app/app/views/public/orders/bills.html.haml
2016-02-16 21:09:48 +01:00

26 lines
720 B
Plaintext
Executable File

.center.padding
=render :partial => "public/my_account/menu"
.center.padding
%h1 Liste de mes factures
%table.table
%tr
%th Date de la commande
%th Numéro de la commande
%th Montant de la commande
%th
-current_customer.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), :target => "_blank"