accountant_clerk 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ class Clerks < ActiveRecord::Migration
9
9
 
10
10
  #this is a json attribute, so anything can be added to the class easily
11
11
  t.string :address
12
- t.timestamps
12
+ t.timestamps :null => false
13
13
  end
14
14
  add_index :clerks, :email, :unique => true
15
15
  end
@@ -4,7 +4,7 @@ class Suppliers < ActiveRecord::Migration
4
4
  create_table :suppliers do |t|
5
5
  t.string :supplier_name
6
6
  t.string :address
7
- t.timestamps
7
+ t.timestamps :null => false
8
8
  end
9
9
  end
10
10
  end
@@ -11,7 +11,7 @@ class Categories < ActiveRecord::Migration
11
11
  t.attachment :main_picture
12
12
  t.attachment :extra_picture
13
13
 
14
- t.timestamps
14
+ t.timestamps :null => false
15
15
  end
16
16
  add_index :categories, :link, :unique => true
17
17
 
@@ -9,7 +9,7 @@ class Items < ActiveRecord::Migration
9
9
  t.references :product
10
10
  t.references :basket
11
11
 
12
- t.timestamps
12
+ t.timestamps :null => false
13
13
  end
14
14
  end
15
15
  end
@@ -17,7 +17,7 @@ class Orders < ActiveRecord::Migration
17
17
  t.float :shipment_tax , :default => 0
18
18
  t.string :address
19
19
 
20
- t.timestamps
20
+ t.timestamps :null => false
21
21
  end
22
22
  end
23
23
  end
@@ -7,7 +7,7 @@ class Baskets < ActiveRecord::Migration
7
7
  t.decimal :total_price , :default => 0.0
8
8
  t.decimal :total_tax , :default => 0.0
9
9
  t.date :locked
10
- t.timestamps
10
+ t.timestamps :null => false
11
11
  end
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ class Purchases < ActiveRecord::Migration
6
6
  t.date :ordered_on
7
7
  t.date :received_on
8
8
 
9
- t.timestamps
9
+ t.timestamps :null => false
10
10
  end
11
11
  end
12
12
  end
@@ -21,7 +21,7 @@ class Products < ActiveRecord::Migration
21
21
  t.references :product, index: true
22
22
  t.references :category, index: true
23
23
  t.references :supplier, index: true
24
- t.timestamps
24
+ t.timestamps :null => false
25
25
  end
26
26
  add_index :products, :link
27
27
  end
@@ -13,17 +13,17 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20141114205532) do
15
15
 
16
- create_table "baskets", force: true do |t|
16
+ create_table "baskets", force: :cascade do |t|
17
17
  t.integer "kori_id"
18
18
  t.string "kori_type"
19
19
  t.decimal "total_price", default: 0.0
20
20
  t.decimal "total_tax", default: 0.0
21
21
  t.date "locked"
22
- t.datetime "created_at"
23
- t.datetime "updated_at"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
24
  end
25
25
 
26
- create_table "categories", force: true do |t|
26
+ create_table "categories", force: :cascade do |t|
27
27
  t.integer "category_id"
28
28
  t.boolean "online", default: false
29
29
  t.string "name"
@@ -39,36 +39,36 @@ ActiveRecord::Schema.define(version: 20141114205532) do
39
39
  t.string "extra_picture_content_type"
40
40
  t.integer "extra_picture_file_size"
41
41
  t.datetime "extra_picture_updated_at"
42
- t.datetime "created_at"
43
- t.datetime "updated_at"
42
+ t.datetime "created_at", null: false
43
+ t.datetime "updated_at", null: false
44
44
  end
45
45
 
46
46
  add_index "categories", ["link"], name: "index_categories_on_link", unique: true
47
47
 
48
- create_table "clerks", force: true do |t|
48
+ create_table "clerks", force: :cascade do |t|
49
49
  t.string "email", default: "", null: false
50
50
  t.boolean "admin", default: false
51
51
  t.string "encrypted_password"
52
52
  t.string "password_salt"
53
53
  t.string "address"
54
- t.datetime "created_at"
55
- t.datetime "updated_at"
54
+ t.datetime "created_at", null: false
55
+ t.datetime "updated_at", null: false
56
56
  end
57
57
 
58
58
  add_index "clerks", ["email"], name: "index_clerks_on_email", unique: true
59
59
 
60
- create_table "items", force: true do |t|
60
+ create_table "items", force: :cascade do |t|
61
61
  t.integer "quantity", default: 1
62
62
  t.float "price", default: 0.0
63
63
  t.float "tax", default: 0.0
64
64
  t.string "name"
65
65
  t.integer "product_id"
66
66
  t.integer "basket_id"
67
- t.datetime "created_at"
68
- t.datetime "updated_at"
67
+ t.datetime "created_at", null: false
68
+ t.datetime "updated_at", null: false
69
69
  end
70
70
 
71
- create_table "orders", force: true do |t|
71
+ create_table "orders", force: :cascade do |t|
72
72
  t.string "number"
73
73
  t.string "note", default: ""
74
74
  t.string "email"
@@ -83,11 +83,11 @@ ActiveRecord::Schema.define(version: 20141114205532) do
83
83
  t.float "shipment_price", default: 0.0
84
84
  t.float "shipment_tax", default: 0.0
85
85
  t.string "address"
86
- t.datetime "created_at"
87
- t.datetime "updated_at"
86
+ t.datetime "created_at", null: false
87
+ t.datetime "updated_at", null: false
88
88
  end
89
89
 
90
- create_table "products", force: true do |t|
90
+ create_table "products", force: :cascade do |t|
91
91
  t.float "price", null: false
92
92
  t.string "name", null: false
93
93
  t.string "link"
@@ -114,8 +114,8 @@ ActiveRecord::Schema.define(version: 20141114205532) do
114
114
  t.integer "product_id"
115
115
  t.integer "category_id"
116
116
  t.integer "supplier_id"
117
- t.datetime "created_at"
118
- t.datetime "updated_at"
117
+ t.datetime "created_at", null: false
118
+ t.datetime "updated_at", null: false
119
119
  end
120
120
 
121
121
  add_index "products", ["category_id"], name: "index_products_on_category_id"
@@ -123,19 +123,19 @@ ActiveRecord::Schema.define(version: 20141114205532) do
123
123
  add_index "products", ["product_id"], name: "index_products_on_product_id"
124
124
  add_index "products", ["supplier_id"], name: "index_products_on_supplier_id"
125
125
 
126
- create_table "purchases", force: true do |t|
126
+ create_table "purchases", force: :cascade do |t|
127
127
  t.string "name"
128
128
  t.date "ordered_on"
129
129
  t.date "received_on"
130
- t.datetime "created_at"
131
- t.datetime "updated_at"
130
+ t.datetime "created_at", null: false
131
+ t.datetime "updated_at", null: false
132
132
  end
133
133
 
134
- create_table "suppliers", force: true do |t|
134
+ create_table "suppliers", force: :cascade do |t|
135
135
  t.string "supplier_name"
136
136
  t.string "address"
137
- t.datetime "created_at"
138
- t.datetime "updated_at"
137
+ t.datetime "created_at", null: false
138
+ t.datetime "updated_at", null: false
139
139
  end
140
140
 
141
141
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accountant_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: '0.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Ruger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-22 00:00:00.000000000 Z
11
+ date: 2015-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: office_clerk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.8'
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: flot-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -54,12 +54,14 @@ files:
54
54
  - Rakefile
55
55
  - accountant_clerk.gemspec
56
56
  - app/assets/javascripts/accountant_office.js.coffee
57
+ - app/assets/javascripts/accountant_report.js
57
58
  - app/assets/stylesheets/accountant_office.css
58
- - app/assets/stylesheets/flotomatic.css
59
59
  - app/controllers/manage_controller_decorator.rb
60
60
  - app/helpers/reports_helper.rb
61
61
  - app/views/manage/report.html.haml
62
+ - config/i18n-tasks.yml
62
63
  - config/locales/en.yml
64
+ - config/locales/fi.yml
63
65
  - config/routes.rb
64
66
  - lib/accountant_clerk.rb
65
67
  - lib/accountant_clerk/engine.rb
@@ -67,6 +69,7 @@ files:
67
69
  - spec/controllers/orders_controller_spec.rb
68
70
  - spec/features/edit_spec.rb
69
71
  - spec/features/orders_spec.rb
72
+ - spec/i18n_spec.rb
70
73
  - spec/routing/orders_routing_spec.rb
71
74
  - spec/spec_helper.rb
72
75
  - spec/support/admin.rb
@@ -136,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
139
  requirements:
137
140
  - none
138
141
  rubyforge_project:
139
- rubygems_version: 2.2.2
142
+ rubygems_version: 2.4.5.1
140
143
  signing_key:
141
144
  specification_version: 4
142
145
  summary: Simple reports for rubyclerks
@@ -144,6 +147,7 @@ test_files:
144
147
  - spec/controllers/orders_controller_spec.rb
145
148
  - spec/features/edit_spec.rb
146
149
  - spec/features/orders_spec.rb
150
+ - spec/i18n_spec.rb
147
151
  - spec/routing/orders_routing_spec.rb
148
152
  - spec/spec_helper.rb
149
153
  - spec/support/admin.rb
@@ -1,4 +0,0 @@
1
- div.flot_choice_label { font-variant: small-caps; font-weight: bold;}
2
- div.flot_canvas {width:600px; height:300px}
3
- div.flot_overview {width:600px; height:50px}
4
- div.flotomatic_tooltip {position: absolute; display: none; border: 1px solid #fc9; padding: 2px; background-color: #ffc; opacity: 0.90}