Sha256: 5c01291a864b8606e776ed2a1d6cfd39a00e78a43cad04c435531674579e22c9

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

Contents

module Xeroizer
  module Record
    
    class ManualJournalModel < BaseModel
        
      set_permissions :read, :write, :update
                  
    end
    
    class ManualJournal < Base
      
      JOURNAL_STATUS = {
        'DRAFT' =>      'Draft',
        'POSTED' =>     'Posted'
      } unless defined?(JOURNAL_STATUS)
      JOURNAL_STATUSES = JOURNAL_STATUS.keys.sort
            
      set_primary_key :manual_journal_id
      set_possible_primary_keys :manual_journal_id
      list_contains_summary_only true
      
      guid          :manual_journal_id
      date          :date
      string        :status
      string        :line_amount_types
      string        :narration
      string        :url
      string        :external_link_provider_name # only seems to be read-only at the moment
      boolean       :show_on_cash_basis_reports
      datetime_utc  :updated_date_utc, :api_name => 'UpdatedDateUTC'
      
      has_many      :journal_lines, :model_name => 'ManualJournalLine'
      
      validates_presence_of :narration
      validates_associated :journal_lines
            
      public
      
    end
    
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
xeroizer-2.15.9 lib/xeroizer/models/manual_journal.rb
xeroizer-2.15.8 lib/xeroizer/models/manual_journal.rb
xeroizer-2.15.7 lib/xeroizer/models/manual_journal.rb
xeroizer-2.15.6 lib/xeroizer/models/manual_journal.rb
xeroizer-float-2.15.5.2 lib/xeroizer/models/manual_journal.rb
xeroizer-float-2.15.5.1 lib/xeroizer/models/manual_journal.rb
xeroizer-2.15.5 lib/xeroizer/models/manual_journal.rb
xeroizer-float-2.15.3.16 lib/xeroizer/models/manual_journal.rb
xeroizer-float-2.15.3.15 lib/xeroizer/models/manual_journal.rb
xeroizer-float-2.15.3.14 lib/xeroizer/models/manual_journal.rb