Sha256: 799443432eaeb8e6548dbe107d97d72be0f40150d185207f906fde0f9b382620

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

module Xeroizer
  module Record
    module Payroll

      class BenefitTypeModel < PayrollBaseModel

        set_permissions :read

      end

      class BenefitType < PayrollBase

        BENEFIT_CATEGORIES = {
          'AFTERTAXBENEFIT' => '',
          'DEPENDENTCARE' => '',
          'FLEXIBLESPENDINGACCOUNT' => '',
          'HEALTHSAVINGSACCOUNTSINGLEPLAN' => '',
          'HEALTHSAVINGSACCOUNTFAMILYPLAN' => '',
          'ROTH401KREITREMENTPLAN' => '',
          'ROTH403BRETIREMENTPLAN' => '',
          'SECTION125PLAN' => '',
          'SIMPLEIRARETIREMENTPLAN' => '',
          '401KRETIREMENTPLAN' => '',
          '403BRETIREMENTPLAN' => '',
          '457RETIREMENTPLAN' => ''
        } unless defined?(BENEFIT_CATEGORIES)

        set_primary_key :benefit_type_id

        guid    :benefit_type_id
        string  :benefit_type
        string  :benefit_category
        string  :liability_account_code
        string  :expense_account_code
        decimal :standard_amount
        decimal :company_max
        decimal :percentage
        boolean :show_balance_on_paystub

        validates_inclusion_of :benefit_category, :in => BENEFIT_CATEGORIES

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/models/payroll/benefit_type.rb
xeroizer-3.0.0 lib/xeroizer/models/payroll/benefit_type.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/payroll/benefit_type.rb