mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
12 lines
278 B
Ruby
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
|