Show payment summary in confirmation email regardless of payment method

This commit is contained in:
Rob Harrington
2018-03-07 11:40:30 +11:00
committed by Maikel Linke
parent 98ea82462d
commit 4d757dde78

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