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.date)
end

#format_order_item(order) ⇒ Object



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

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