tab/app/helpers/transactions_helper.rb

5 lines
116 B
Ruby

module TransactionsHelper
def amount a
a.zero? ? nil : number_with_precision(a/100.0, precision: 2)
end
end