Sha256: 88b15bd0efd489f5144c27bd5b26f9c584a804f5f5f3757d5764b29a75d7b187

Contents?: true

Size: 632 Bytes

Versions: 10

Compression:

Stored size: 632 Bytes

Contents

require 'clevic.rb'

# db connection
Sequel.connect( "postgres://#{host}/accounts_test?user=#{$options[:username] || 'accounts'}&password=#{$options[:password]}" )

# This is a read-only view, which is currently not implemented
class Value < Sequel::Model
  set_table_name 'values'

  include Clevic::Record
  define_ui do
    read_only!
    plain       :date
    plain       :description
    plain       :debit
    plain       :credit
    plain       :pre_vat_amount
    plain       :cheque_number
    plain       :vat, :label => 'VAT'
    plain       :financial_year
    plain       :month

    records :order => 'date'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
clevic-0.14.6 models/values_models.rb
clevic-0.14.5 models/values_models.rb
clevic-0.14.4 models/values_models.rb
clevic-0.14.3 models/values_models.rb
clevic-0.14.2 models/values_models.rb
clevic-0.14.1 models/values_models.rb
clevic-0.14.0 models/values_models.rb
clevic-0.13.0.b12 models/values_models.rb
clevic-0.13.0.b11 models/values_models.rb
clevic-0.13.0.b10 models/values_models.rb