Class: ProductInstance

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ErpTechSvcs::Utils::DefaultNestedSetMethods
Defined in:
app/models/product_instance.rb

Direct Known Subclasses

ProductPackage

Instance Method Summary collapse

Instance Method Details

#prod_instance_relns_fromObject



18
19
20
# File 'app/models/product_instance.rb', line 18

def prod_instance_relns_from
  ProdInstanceReln.where('prod_instance_id_from = ?',id)
end

#prod_instance_relns_toObject



14
15
16
# File 'app/models/product_instance.rb', line 14

def prod_instance_relns_to
  ProdInstanceReln.where('prod_instance_id_to = ?',id)
end

#taxable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/product_instance.rb', line 22

def taxable?
  self.product_type.taxable?
end