Sha256: 522573569fae15e22cd54b93a476e8c083a1c9e4767bf787913fcb3e474d2ff2
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
class ProductInstance < ActiveRecord::Base attr_protected :created_at, :updated_at acts_as_nested_set include ErpTechSvcs::Utils::DefaultNestedSetMethods belongs_to :product_type belongs_to :product_instance_status_type belongs_to :product_instance_record, :polymorphic => true belongs_to :prod_availability_status_type alias :status :product_instance_status_type def prod_instance_relns_to ProdInstanceReln.where('prod_instance_id_to = ?',id) end def prod_instance_relns_from ProdInstanceReln.where('prod_instance_id_from = ?',id) end def taxable? self.product_type.taxable? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_products-4.2.0 | app/models/product_instance.rb |