Files
openfoodnetwork/app/helpers/order_helper.rb
2020-08-20 17:16:20 +01:00

12 lines
278 B
Ruby

# frozen_string_literal: true
module OrderHelper
def last_payment_method(order)
OrderPaymentFinder.new(order).last_payment&.payment_method
end
def outstanding_balance_label(order)
order.outstanding_balance.negative? ? t(:credit_owed) : t(:balance_due)
end
end