This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/models/tva_rate.rb
2021-08-23 10:26:02 +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