Class: InvoicedRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/invoiced_record.rb

Instance Method Summary collapse

Instance Method Details

#taxed?Boolean

Weather or not this item is taxed

Returns:

  • (Boolean)


9
10
11
12
13
14
15
16
17
# File 'app/models/invoiced_record.rb', line 9

def taxed?
  if invoiceable_item.respond_to?(:taxed?)
    invoiceable_item.taxed?
  elsif invoiceable_item.respond_to?(:taxable?)
    invoiceable_item.taxable?
  else
    false
  end
end