clair_app/app/models/tva_rate.rb
Nicolas Bally c2f8ec2efb initial
2020-10-10 00:28:38 +02:00

20 lines
299 B
Ruby

class TvaRate < ApplicationRecord
belongs_to :accounting_zone
has_many :tvable_tva_rates
def member_label
r = ""
r += self.accounting_zone.name if self.accounting_zone
r += " - "
r += self.name
r += " - "
r += (self.rate).to_s+"%"
end
end