mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user