Module: SalaryBookingTemplateHelper
- Defined in:
- app/helpers/salary_booking_template_helper.rb
Instance Method Summary collapse
Instance Method Details
#amount_relates_to_collection ⇒ Object
6 7 8 9 10 11 |
# File 'app/helpers/salary_booking_template_helper.rb', line 6 def amount_relates_to_collection saldo_inclusion_flags = SalaryBookingTemplate.saldo_inclusion_flags.map{|flag| [t('activerecord.attributes.salary_booking_template.saldo_inclusion_flags.' + flag), flag]} booking_templates = SalaryBookingTemplate.all.map{|template| [template.to_s, template.code]} return saldo_inclusion_flags + booking_templates end |
#saldo_inclusion_flag_collection ⇒ Object
2 3 4 |
# File 'app/helpers/salary_booking_template_helper.rb', line 2 def saldo_inclusion_flag_collection SalaryBookingTemplate.saldo_inclusion_flags.map{|flag| [flag, flag]} end |