mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
15 lines
442 B
Ruby
15 lines
442 B
Ruby
module Admin
|
|
module AccountHelper
|
|
def invoice_description_for(invoice)
|
|
month = t(:abbr_month_names, :scope => :date)[invoice.month]
|
|
year = invoice.year
|
|
star = invoice.order.nil? || invoice.order.completed? ? "" : "*"
|
|
"#{month} #{year}#{star}"
|
|
end
|
|
|
|
def invoice_total_for(invoice)
|
|
invoice.order.andand.display_total || Spree::Money.new(0, { :currency => Spree::Config[:currency] })
|
|
end
|
|
end
|
|
end
|