Sha256: bfe8e2f6734ed9edfa872fb2e87d059486054428555eb415c5d23019f9d2eeaa

Contents?: true

Size: 320 Bytes

Versions: 29

Compression:

Stored size: 320 Bytes

Contents

module Onoma
  class AccountingSystem < Onoma::Record::Base
    class << self
      def with_fiscal_position
        Onoma::FiscalPosition.items.values
            .reduce(Set.new) {|acc, fp| acc << fp.accounting_system}
            .map {|e| Onoma::AccountingSystem[e]}
            .compact
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
onoma-0.9.3 lib/onoma/models/accounting_system.rb
onoma-0.9.2 lib/onoma/models/accounting_system.rb
onoma-0.9.1 lib/onoma/models/accounting_system.rb
onoma-0.9.0 lib/onoma/models/accounting_system.rb
onoma-0.8.9 lib/onoma/models/accounting_system.rb
onoma-0.8.8 lib/onoma/models/accounting_system.rb
onoma-0.8.7 lib/onoma/models/accounting_system.rb
onoma-0.8.6 lib/onoma/models/accounting_system.rb
onoma-0.8.5 lib/onoma/models/accounting_system.rb
onoma-0.8.4 lib/onoma/models/accounting_system.rb
onoma-0.8.3 lib/onoma/models/accounting_system.rb
onoma-0.8.2 lib/onoma/models/accounting_system.rb
onoma-0.8.1 lib/onoma/models/accounting_system.rb
onoma-0.8.0 lib/onoma/models/accounting_system.rb
onoma-0.7.0 lib/onoma/models/accounting_system.rb
onoma-0.6.4 lib/onoma/models/accounting_system.rb
onoma-0.6.3 lib/onoma/models/accounting_system.rb
onoma-0.6.2 lib/onoma/models/accounting_system.rb
onoma-0.6.0 lib/onoma/models/accounting_system.rb
onoma-0.5.6 lib/onoma/models/accounting_system.rb