Class: ProductInstance
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ProductInstance
- Includes:
- ErpTechSvcs::Utils::DefaultNestedSetMethods
- Defined in:
- app/models/product_instance.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#prod_instance_relns_from ⇒ Object
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_to ⇒ Object
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
22 23 24 |
# File 'app/models/product_instance.rb', line 22 def taxable? self.product_type.taxable? end |