mmsc_app/app/models/tva_rate.rb
Nicolas Bally a6aa1f6074 Initial
2020-05-25 11:40:11 +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