Sha256: 617b07fb6e4086a51a22b1dad85d6b8f22f5a2957e91bf149fa65baabbd5bbaf

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

module Xeroizer
  module Record
    module Payroll
    
      class SuperLineModel < PayrollBaseModel
          
      end
      
      class SuperLine < PayrollBase

        SUPERANNUATION_CONTRIBUTION_TYPE = {
          'SGC' => 'Mandatory 9% contribution',
          'SALARYSACRIFICE' => 'Pre-tax reportable employer superannuation contribution, which is displayed separately on payment summaries',
          'EMPLOYERADDITIONAL' => 'Additional employer superannuation contribution, which is displayed as RESC on payment summaries',
          'EMPLOYEE' => 'Post-tax employee superannuation contribution'
        } unless defined?(SUPERANNUATION_CONTRIBUTION_TYPE)
        
        SUPERANNUATION_CALCULATION_TYPE = {
          'FIXEDAMOUNT' => 'For voluntary superannuation, the contribution amount can be a fixed rate or a percentage of earnings. For SGC contributions it must be a percentage',
          'PERCENTAGEOFEARNINGS' => '',
          'STATUTORY' => ''
        } unless defined?(SUPERANNUATION_CALCULATION_TYPE)

        guid  :super_membership_id, :api_name => 'SuperMembershipID'
        string  :contribution_type
        string  :calculation_type
        integer :expense_account_code
        integer :liability_account_code

        decimal :minimum_monthly_earnings
        decimal :percentage

        validates_presence_of :super_membership_id, :contribution_type, :calculation_type, :expense_account_code, :liability_account_code, :unless => :new_record?
        validates_inclusion_of :contribution_type, :in => SUPERANNUATION_CONTRIBUTION_TYPE
        validates_inclusion_of :calculation_type, :in => SUPERANNUATION_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/super_line.rb
xeroizer-3.0.0 lib/xeroizer/models/payroll/super_line.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/models/payroll/super_line.rb