Sha256: e0a74f7a5a52b056367aeb3dcbc96e06261ca5b471af18d580f467bc49841a12

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

module Xeroizer
  module Record
    module Payroll

      class BenefitLineModel < PayrollBaseModel

      end

      class BenefitLine < PayrollBase

        BENEFIT_TYPE_CALCULATION_TYPE = {
          'FIXEDAMOUNT' => '',
          'STANDARDAMOUNT' => ''
        } unless defined?(BENEFIT_TYPE_CALCULATION_TYPE)

        guid :benefit_type_id, :api_name => 'BenefitTypeID'
        string :calculation_type
        decimal :amount

        validates_presence_of :benefit_type_id, :calculation_type, :unless => :new_record?
        validates_inclusion_of :calculation_type, :in => BENEFIT_TYPE_CALCULATION_TYPE
      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_line.rb
xeroizer-3.0.0 lib/xeroizer/models/payroll/benefit_line.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/payroll/benefit_line.rb