lockaz_app/app/models/p_product_cat.rb
Nicolas Bally f20fe482c6 initial
2020-04-06 10:38:07 +02:00

13 lines
228 B
Ruby

class PProductCat < ApplicationRecord
has_many :p_products
has_many :tvable_tva_rates, :as => :tvable
has_many :tva_rates, :through => :tvable_tva_rates
def member_label
"#{self.code} - #{self.name}"
end
end