Sha256: 8cef4d16ac8c9df45f78dcd89d9ef20f38777ff00f9f2c359da765850d2e8ce3

Contents?: true

Size: 1.9 KB

Versions: 11

Compression:

Stored size: 1.9 KB

Contents

module Xeroizer
  module Record
    
    class AccountModel < BaseModel
        
      set_permissions :read
        
    end
    
    class Account < Base
    
      TYPE = {
        'CURRENT' =>        '',
        'FIXED' =>          '',
        'PREPAYMENT' =>     '',
        'EQUITY' =>         '',
        'DEPRECIATN' =>     '',
        'DIRECTCOSTS' =>    '',
        'EXPENSE' =>        '',
        'OVERHEADS' =>      '',
        'CURRLIAB' =>       '',
        'LIABILITY' =>      '',
        'TERMLIAB' =>       '',
        'OTHERINCOME' =>    '',
        'REVENUE' =>        '',
        'SALES' =>          ''
      } unless defined?(TYPE)

      TAX_TYPE = {
        'NONE' =>             'No GST',
        'EXEMPTINPUT' =>      'VAT on expenses exempt from VAT (UK only)',
        'INPUT' =>            'GST on expenses',
        'SRINPUT' =>          'VAT on expenses',
        'ZERORATEDINPUT' =>   'Expense purchased from overseas (UK only)',
        'RRINPUT' =>          'Reduced rate VAT on expenses (UK Only)', 
        'EXEMPTOUTPUT' =>     'VAT on sales exempt from VAT (UK only)',
        'OUTPUT' =>           'OUTPUT',
        'OUTPUT2' =>          'OUTPUT2',
        'SROUTPUT' =>         'SROUTPUT',
        'ZERORATEDOUTPUT' =>  'Sales made from overseas (UK only)',
        'RROUTPUT' =>         'Reduced rate VAT on sales (UK Only)',
        'ZERORATED' =>        'Zero-rated supplies/sales from overseas (NZ Only)',
        'ECZROUTPUT' =>       'Zero-rated EC Income (UK only)'
      } unless defined?(TAX_TYPE)
      
      set_primary_key :account_id
            
      guid    :account_id
      string  :code
      string  :name
      string  :type
      string  :class, :internal_name => :account_class
      string  :status
      string  :currency_code
      string  :tax_type
      string  :description
      string  :system_account
      boolean :enable_payments_to_account
      
    end
    
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
xeroizer-2.15.2 lib/xeroizer/models/account.rb
xeroizer-2.15.1 lib/xeroizer/models/account.rb
xeroizer-2.15.0 lib/xeroizer/models/account.rb
xeroizer-0.5.2 lib/xeroizer/models/account.rb
xeroizer-0.5.1 lib/xeroizer/models/account.rb
xeroizer-0.5.0 lib/xeroizer/models/account.rb
xeroizer-0.4.4 lib/xeroizer/models/account.rb
xeroizer-0.4.3 lib/xeroizer/models/account.rb
xeroizer-0.4.2 lib/xeroizer/models/account.rb
xeroizer-0.4.1 lib/xeroizer/models/account.rb
xeroizer-0.4.0 lib/xeroizer/models/account.rb