Module: Finance::InvoicesHelper

Defined in:
app/helpers/finance/invoices_helper.rb

Instance Method Summary collapse

Instance Method Details

#format_delivery_item(delivery) ⇒ Object


2
3
4
# File 'app/helpers/finance/invoices_helper.rb', line 2

def format_delivery_item delivery
  format_date(delivery.delivered_on)
end

#format_order_item(order) ⇒ Object


5
6
7
# File 'app/helpers/finance/invoices_helper.rb', line 5

def format_order_item order
  "#{format_date(order.ends)} (#{number_to_currency(order.sum)})"
end