Adjust payment state conditional

The `Spree::Order#paid?` method actually includes orders with `payment_state == "credit_owed"`, which was breaking the desired display logic here.
This commit is contained in:
Matt-Yorkley
2020-08-20 09:41:53 +01:00
parent 50fd3656ef
commit 07b819ab4b

View File

@@ -1,6 +1,6 @@
%p.callout
%span{:style => "float:right;"}
- if @order.paid?
- if @order.paid? && !@order.outstanding_balance?
= t :email_payment_paid
- else
- if @order.outstanding_balance?