kaps_app/app/views/public/p_orders/thank.html.haml
Nicolas Bally d60301e8a7 initial
2019-01-21 01:15:10 +01:00

72 lines
2.1 KiB
Plaintext

.p_product_page
.qi_header
%h1
=link_to ic(:user)+" Mon compte", public_my_account_path
%span
=link_to "Mon panier", cart_public_p_orders_path
%span
Récapitulatif & paiement
.qi_row
.qi_pannel.qi_plain.padding
%center
%h1 Merci pour votre commande.
%p
Vous avez choisi le réglement par
=@p_customer_sheet.p_payment_type.name.downcase if @p_customer_sheet.p_payment_type
-totals = PSheetLine.totals(@p_customer_sheet.p_sheet_lines)
-if @p_customer_sheet.p_payment_type_id == 2
-if @p_customer_sheet.comptant
%p
Vous pouvez dès maintenant utiliser notre RIB pour procéder au réglement de
=number_to_currency totals[:total_ttc]
=":"
%p
%strong IBAN :
FR76 1680 7001 6432 6378 6621 602
%br
%strong BIC :
CCBPFRPPGRE
-elsif @p_customer_sheet.acompte
%p
Vous pouvez dès maintenant utiliser notre RIB pour procéder au réglement de l'acompte de
=number_to_currency @p_customer_sheet.acompte_value
="("
=@p_customer_sheet.acompte_percent
="%)"
=":"
-else
%p
Vous recevrez votre facture une fois les articles expédiés.
-else
-if @p_customer_sheet.comptant
-elsif @p_customer_sheet.acompte
%p
Vous pouvez dès maintenant envoyer votre acompte d'un montant de
=number_to_currency @p_customer_sheet.acompte_value
="("
=@p_customer_sheet.acompte_percent
="%)"
-else
%p
Vous recevrez votre facture une fois les articles expédiés.
%br
%p
=link_to "Mes commandes", public_p_customer_sheets_path()