accountant_clerk 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -3
- data/Gemfile.lock +136 -85
- data/README.md +25 -23
- data/Rakefile +8 -0
- data/accountant_clerk.gemspec +2 -3
- data/app/assets/javascripts/accountant_report.js +4 -0
- data/app/assets/stylesheets/accountant_office.css +0 -2
- data/app/controllers/manage_controller_decorator.rb +20 -11
- data/app/views/manage/report.html.haml +26 -28
- data/config/i18n-tasks.yml +89 -0
- data/config/locales/en.yml +6 -7
- data/config/locales/fi.yml +6 -0
- data/lib/accountant_clerk/engine.rb +1 -1
- data/spec/controllers/orders_controller_spec.rb +1 -29
- data/spec/i18n_spec.rb +40 -0
- data/spec/routing/orders_routing_spec.rb +0 -4
- data/test_app/config/application.rb +1 -0
- data/test_app/config/environments/production.rb +1 -1
- data/test_app/config/environments/test.rb +1 -1
- data/test_app/db/migrate/20141114205525_clerks.office.rb +1 -1
- data/test_app/db/migrate/20141114205526_suppliers.office.rb +1 -1
- data/test_app/db/migrate/20141114205527_categories.office.rb +1 -1
- data/test_app/db/migrate/20141114205528_items.office.rb +1 -1
- data/test_app/db/migrate/20141114205529_orders.office.rb +1 -1
- data/test_app/db/migrate/20141114205530_baskets.office.rb +1 -1
- data/test_app/db/migrate/20141114205531_purchases.office.rb +1 -1
- data/test_app/db/migrate/20141114205532_products.office.rb +1 -1
- data/test_app/db/schema.rb +24 -24
- metadata +10 -6
- data/app/assets/stylesheets/flotomatic.css +0 -4
data/test_app/db/schema.rb
CHANGED
@@ -13,17 +13,17 @@
|
|
13
13
|
|
14
14
|
ActiveRecord::Schema.define(version: 20141114205532) do
|
15
15
|
|
16
|
-
create_table "baskets", force:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
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:
|
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.
|
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.
|
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.
|
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}
|