From 07b819ab4bbd3025e9511abc5fcac50c8dadc647 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 20 Aug 2020 09:41:53 +0100 Subject: [PATCH] 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. --- app/views/spree/shared/_payment.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/shared/_payment.html.haml b/app/views/spree/shared/_payment.html.haml index 8b7b26b074..0100100876 100644 --- a/app/views/spree/shared/_payment.html.haml +++ b/app/views/spree/shared/_payment.html.haml @@ -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?