Class: UserGroup
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- UserGroup
- Defined in:
- app/models/user_group.rb
Instance Method Summary collapse
Instance Method Details
#calculator_description ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/models/user_group.rb', line 7 def calculator_description return t(:none) if calculator.nil? if calculator.preferred_based_on_cost_price "#{I18n.t(:cost_price)} + #{calculator.preferred_flat_percent}%" else "#{I18n.t(:price)} - #{calculator.preferred_flat_percent}%" end end |