Merge pull request #2118 from oeoeaio/payment-summary-for-emails

Show payment summary in confirmation email regardless of payment method
This commit is contained in:
Pau Pérez Fabregat
2018-03-23 15:30:44 +01:00
committed by GitHub

View File

@@ -1,15 +1,14 @@
- if @order.payments.first.andand.payment_method.andand.type == "Spree::PaymentMethod::Check" and @order.payments.first.andand.payment_method.andand.description
%p.callout
%span{:style => "float:right;"}
- if @order.paid?
= t :email_payment_paid
- else
= t :email_payment_not_paid
%strong
= t :email_payment_summary
%h4
= t :email_payment_method
%strong= @order.payments.first.andand.payment_method.andand.name.andand.html_safe
%p
%em= @order.payments.first.andand.payment_method.andand.description.andand.html_safe
%p  
%p.callout
%span{:style => "float:right;"}
- if @order.paid?
= t :email_payment_paid
- else
= t :email_payment_not_paid
%strong
= t :email_payment_summary
%h4
= t :email_payment_method
%strong= @order.payments.first.andand.payment_method.andand.name.andand.html_safe
%p
%em= @order.payments.first.andand.payment_method.andand.description.andand.html_safe
%p