tax_jp 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +14 -8
- data/app/assets/config/tax_jp_manifest.js +2 -0
- data/app/assets/javascripts/tax_jp/application.js +18 -0
- data/app/assets/javascripts/tax_jp.js +14 -0
- data/app/assets/stylesheets/tax_jp/application.css.scss +17 -0
- data/app/controllers/tax_jp/application_controller.rb +5 -0
- data/app/controllers/tax_jp/depreciation_rates_controller.rb +11 -0
- data/app/controllers/tax_jp/employment_insurances_controller.rb +11 -0
- data/app/controllers/tax_jp/top_controller.rb +10 -0
- data/app/helpers/tax_jp/application_helper.rb +4 -0
- data/app/jobs/tax_jp/application_job.rb +4 -0
- data/app/mailers/tax_jp/application_mailer.rb +6 -0
- data/app/models/tax_jp/application_record.rb +5 -0
- data/app/views/layouts/tax_jp/_nav.html.erb +4 -0
- data/app/views/layouts/tax_jp/application.html.erb +17 -0
- data/app/views/tax_jp/depreciation_rates/index.html.erb +27 -0
- data/app/views/tax_jp/employment_insurances/index.html.erb +35 -0
- data/app/views/tax_jp/top/index.html.erb +0 -0
- data/config/routes.rb +6 -0
- data/lib/tax_jp/engine.rb +5 -0
- data/lib/tax_jp/utils.rb +1 -1
- data/lib/tax_jp/version.rb +1 -1
- data/lib/tax_jp.rb +1 -7
- metadata +37 -82
- data/.gitignore +0 -16
- data/.travis.yml +0 -9
- data/Gemfile +0 -3
- data/HISTORY.md +0 -82
- data/LICENSE +0 -22
- data/features/.gitignore +0 -1
- data/features/01./351/203/275/351/201/223/345/272/234/347/234/214.feature +0 -16
- data/features/02./346/266/210/350/262/273/347/250/216.feature +0 -12
- data/features/03./346/272/220/346/263/211/345/276/264/345/217/216/347/250/216.feature +0 -22
- data/features/04./347/244/276/344/274/232/344/277/235/345/201/245.feature +0 -17
- data/features/05./346/263/225/344/272/272/347/250/216//344/272/213/346/245/255/345/271/264/345/272/246/345/210/206/343/201/256/351/201/251/347/224/250/351/241/215/346/230/216/347/264/260/346/233/270.feature +0 -12
- data/features/step_definitions/consumption_tax.rb +0 -4
- data/features/step_definitions/corporate_tax.rb +0 -3
- data/features/step_definitions/prefectures.rb +0 -19
- data/features/support/env.rb +0 -3
- data/lib/tax_jp/rails/engine.rb +0 -6
- data/lib/tax_jp/rails/railtie.rb +0 -6
- data/tax_jp.gemspec +0 -29
- data/templates/app/assets/javascripts/tax.js.erb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c11165d503a1396f1478d1e3089fa5bba9802ac8f6f3a51cd197902acc15e7ca
|
4
|
+
data.tar.gz: 0d03dbf53ce8a99e9f3bf63d0cd1a4c4cab7a568c7d76a82b4405b4c14862004
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199bcb5713fc6f35960c1165b380fa98a9d00d5d043ae5cb98a0cd89b1c094ad7cb7ee726dc6914a822971214cae83cab458fd166333bdbe1cc4a76a11991875
|
7
|
+
data.tar.gz: 573d942ffb70d7546524f5eb05ded417df60adcb0aac6de2e1adca2734d6d7d3ef84fe3802faaecd6efb3236579aa1780a2b67e8864819f8e800bdd0e26402be
|
data/Rakefile
CHANGED
@@ -4,17 +4,23 @@ rescue LoadError
|
|
4
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
5
|
end
|
6
6
|
|
7
|
-
|
7
|
+
APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
|
8
|
+
load 'rails/tasks/engine.rake'
|
8
9
|
|
9
|
-
|
10
|
-
require 'rake/testtask'
|
10
|
+
load 'rails/tasks/statistics.rake'
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
require 'bundler/gem_tasks'
|
13
|
+
|
14
|
+
require 'rake/testtask'
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
Rake::TestTask.new(:test) do |t|
|
17
|
+
t.libs << 'test'
|
18
|
+
t.pattern = 'test/**/*_test.rb'
|
19
|
+
t.verbose = false
|
18
20
|
end
|
19
21
|
|
20
22
|
task default: :test
|
23
|
+
|
24
|
+
Dir.glob('lib/build_tasks/*.rake').each do |f|
|
25
|
+
load f
|
26
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require rails-ujs
|
14
|
+
//= require activestorage
|
15
|
+
//= require jquery3
|
16
|
+
//= require popper
|
17
|
+
//= require bootstrap
|
18
|
+
//= require_tree .
|
@@ -1 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require rails-ujs
|
14
|
+
//= require activestorage
|
1
15
|
//= require_tree .
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import "bootstrap";
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<nav class="nav justify-content-center">
|
2
|
+
<%= link_to '雇用保険料', employment_insurances_path, class: "nav-link #{controller_name == 'employment_insurances' ? 'active' : nil}" %>
|
3
|
+
<%= link_to '減価償却率', depreciation_rates_path, class: "nav-link #{controller_name == 'depreciation_rates' ? 'active' : nil}" %>
|
4
|
+
</nav>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>TaxJp</title>
|
5
|
+
<%= csrf_meta_tags %>
|
6
|
+
<%= csp_meta_tag %>
|
7
|
+
|
8
|
+
<%= stylesheet_link_tag "tax_jp/application", media: "all" %>
|
9
|
+
<%= javascript_include_tag "tax_jp/application" %>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
|
13
|
+
<%= render 'layouts/tax_jp/nav' %>
|
14
|
+
<%= yield %>
|
15
|
+
|
16
|
+
</body>
|
17
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<table class="table table-striped table-bordered table-hover table-sm">
|
3
|
+
<thead class="thead-light">
|
4
|
+
<tr>
|
5
|
+
<th rowspan="2" class="align-middle">耐用年数</th>
|
6
|
+
<th rowspan="2" class="align-middle">定額法償却率</th>
|
7
|
+
<th colspan="3">定率法</th>
|
8
|
+
</tr>
|
9
|
+
<tr>
|
10
|
+
<th>償却率</th>
|
11
|
+
<th>改定償却率</th>
|
12
|
+
<th>保証率</th>
|
13
|
+
</tr>
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<% @depreciation_rates.each do |rate| %>
|
17
|
+
<tr>
|
18
|
+
<th><%= rate.durable_years %></th>
|
19
|
+
<td><%= rate.fixed_amount_rate %></td>
|
20
|
+
<td><%= rate.rate %></td>
|
21
|
+
<td><%= rate.revised_rate %></td>
|
22
|
+
<td><%= rate.guaranteed_rate %></td>
|
23
|
+
</tr>
|
24
|
+
<% end %>
|
25
|
+
</tbody>
|
26
|
+
</table>
|
27
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<table class="table table-striped table-bordered table-hover table-sm">
|
3
|
+
<thead class="thead-light">
|
4
|
+
<tr>
|
5
|
+
<th rowspan="2" class="align-middle">適用開始日</th>
|
6
|
+
<th rowspan="2" class="align-middle">適用終了日</th>
|
7
|
+
<th colspan="2">一般</th>
|
8
|
+
<th colspan="2">農林水産・清酒製造</th>
|
9
|
+
<th colspan="2">建設</th>
|
10
|
+
</tr>
|
11
|
+
<tr>
|
12
|
+
<th>労働者負担</th>
|
13
|
+
<th>事業主負担</th>
|
14
|
+
<th>労働者負担</th>
|
15
|
+
<th>事業主負担</th>
|
16
|
+
<th>労働者負担</th>
|
17
|
+
<th>事業主負担</th>
|
18
|
+
</tr>
|
19
|
+
</thead>
|
20
|
+
<tbody>
|
21
|
+
<% @employment_insurances.each do |ei| %>
|
22
|
+
<tr>
|
23
|
+
<td><%= ei.valid_from %></td>
|
24
|
+
<td><%= ei.valid_until %></td>
|
25
|
+
<td><%= ei.employee_general %></td>
|
26
|
+
<td><%= ei.employer_general %></td>
|
27
|
+
<td><%= ei.employee_agric %></td>
|
28
|
+
<td><%= ei.employer_agric %></td>
|
29
|
+
<td><%= ei.employee_const %></td>
|
30
|
+
<td><%= ei.employer_const %></td>
|
31
|
+
</tr>
|
32
|
+
<% end %>
|
33
|
+
</tbody>
|
34
|
+
</table>
|
35
|
+
</div>
|
File without changes
|
data/config/routes.rb
ADDED
data/lib/tax_jp/utils.rb
CHANGED
data/lib/tax_jp/version.rb
CHANGED
data/lib/tax_jp.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tax_jp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichylinux
|
@@ -9,115 +9,93 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-09-
|
12
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: bootstrap
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 4.1.3
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: bundler
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1.12'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.12'
|
27
|
+
version: 4.1.3
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
29
|
+
name: jquery-rails
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
45
31
|
requirements:
|
46
32
|
- - "~>"
|
47
33
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
type: :
|
34
|
+
version: 4.3.3
|
35
|
+
type: :runtime
|
50
36
|
prerelease: false
|
51
37
|
version_requirements: !ruby/object:Gem::Requirement
|
52
38
|
requirements:
|
53
39
|
- - "~>"
|
54
40
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
41
|
+
version: 4.3.3
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
43
|
+
name: rails
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
46
|
- - "~>"
|
61
47
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
-
type: :
|
48
|
+
version: 5.2.1
|
49
|
+
type: :runtime
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
53
|
- - "~>"
|
68
54
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
55
|
+
version: 5.2.1
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
57
|
+
name: sqlite3
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
60
|
- - "~>"
|
75
61
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
77
|
-
type: :
|
62
|
+
version: '1.3'
|
63
|
+
type: :runtime
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
67
|
- - "~>"
|
82
68
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rails
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '4.2'
|
91
|
-
- - "<"
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '6'
|
94
|
-
type: :development
|
95
|
-
prerelease: false
|
96
|
-
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - ">="
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: '4.2'
|
101
|
-
- - "<"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '6'
|
69
|
+
version: '1.3'
|
104
70
|
description: 税金計算ライブラリ
|
105
71
|
email:
|
106
72
|
- ichylinux@gmail.com
|
107
|
-
- hiroyuki@hybitz.co.jp
|
73
|
+
- hiroyuki.suzuki@hybitz.co.jp
|
108
74
|
executables: []
|
109
75
|
extensions: []
|
110
76
|
extra_rdoc_files: []
|
111
77
|
files:
|
112
|
-
- ".gitignore"
|
113
|
-
- ".travis.yml"
|
114
|
-
- Gemfile
|
115
|
-
- HISTORY.md
|
116
|
-
- LICENSE
|
117
78
|
- README.md
|
118
79
|
- Rakefile
|
80
|
+
- app/assets/config/tax_jp_manifest.js
|
119
81
|
- app/assets/javascripts/tax.js
|
120
82
|
- app/assets/javascripts/tax_jp.js
|
83
|
+
- app/assets/javascripts/tax_jp/application.js
|
84
|
+
- app/assets/stylesheets/tax_jp/application.css.scss
|
85
|
+
- app/controllers/tax_jp/application_controller.rb
|
86
|
+
- app/controllers/tax_jp/depreciation_rates_controller.rb
|
87
|
+
- app/controllers/tax_jp/employment_insurances_controller.rb
|
88
|
+
- app/controllers/tax_jp/top_controller.rb
|
89
|
+
- app/helpers/tax_jp/application_helper.rb
|
90
|
+
- app/jobs/tax_jp/application_job.rb
|
91
|
+
- app/mailers/tax_jp/application_mailer.rb
|
92
|
+
- app/models/tax_jp/application_record.rb
|
93
|
+
- app/views/layouts/tax_jp/_nav.html.erb
|
94
|
+
- app/views/layouts/tax_jp/application.html.erb
|
95
|
+
- app/views/tax_jp/depreciation_rates/index.html.erb
|
96
|
+
- app/views/tax_jp/employment_insurances/index.html.erb
|
97
|
+
- app/views/tax_jp/top/index.html.erb
|
98
|
+
- config/routes.rb
|
121
99
|
- data/住所.db
|
122
100
|
- data/住所/addresses.csv
|
123
101
|
- data/住所/schema_addresses.sql
|
@@ -160,16 +138,6 @@ files:
|
|
160
138
|
- data/社会保険料/等級-20161001-20991231.tsv
|
161
139
|
- data/都道府県.yml
|
162
140
|
- data/雇用保険料.db
|
163
|
-
- features/.gitignore
|
164
|
-
- features/01.都道府県.feature
|
165
|
-
- features/02.消費税.feature
|
166
|
-
- features/03.源泉徴収税.feature
|
167
|
-
- features/04.社会保健.feature
|
168
|
-
- features/05.法人税/事業年度分の適用額明細書.feature
|
169
|
-
- features/step_definitions/consumption_tax.rb
|
170
|
-
- features/step_definitions/corporate_tax.rb
|
171
|
-
- features/step_definitions/prefectures.rb
|
172
|
-
- features/support/env.rb
|
173
141
|
- lib/build_tasks/build.rake
|
174
142
|
- lib/build_tasks/download_address.sh
|
175
143
|
- lib/tax_jp.rb
|
@@ -182,13 +150,12 @@ files:
|
|
182
150
|
- lib/tax_jp/db_builder.rb
|
183
151
|
- lib/tax_jp/depreciation_rate.rb
|
184
152
|
- lib/tax_jp/depreciation_rates/db_builder.rb
|
153
|
+
- lib/tax_jp/engine.rb
|
185
154
|
- lib/tax_jp/gengou.rb
|
186
155
|
- lib/tax_jp/labor_insurance.rb
|
187
156
|
- lib/tax_jp/labor_insurances/employment_insurance.rb
|
188
157
|
- lib/tax_jp/labor_insurances/employment_insurance_db_builder.rb
|
189
158
|
- lib/tax_jp/prefecture.rb
|
190
|
-
- lib/tax_jp/rails/engine.rb
|
191
|
-
- lib/tax_jp/rails/railtie.rb
|
192
159
|
- lib/tax_jp/social_insurance.rb
|
193
160
|
- lib/tax_jp/social_insurances/db_builder.rb
|
194
161
|
- lib/tax_jp/social_insurances/grade.rb
|
@@ -199,8 +166,6 @@ files:
|
|
199
166
|
- lib/tax_jp/version.rb
|
200
167
|
- lib/tax_jp/withheld_tax.rb
|
201
168
|
- lib/tax_jp/withheld_taxes/db_builder.rb
|
202
|
-
- tax_jp.gemspec
|
203
|
-
- templates/app/assets/javascripts/tax.js.erb
|
204
169
|
homepage: https://github.com/hybitz/tax_jp
|
205
170
|
licenses:
|
206
171
|
- MIT
|
@@ -225,14 +190,4 @@ rubygems_version: 2.7.6
|
|
225
190
|
signing_key:
|
226
191
|
specification_version: 4
|
227
192
|
summary: 税金計算ライブラリ
|
228
|
-
test_files:
|
229
|
-
- features/.gitignore
|
230
|
-
- features/01.都道府県.feature
|
231
|
-
- features/02.消費税.feature
|
232
|
-
- features/03.源泉徴収税.feature
|
233
|
-
- features/04.社会保健.feature
|
234
|
-
- features/05.法人税/事業年度分の適用額明細書.feature
|
235
|
-
- features/step_definitions/consumption_tax.rb
|
236
|
-
- features/step_definitions/corporate_tax.rb
|
237
|
-
- features/step_definitions/prefectures.rb
|
238
|
-
- features/support/env.rb
|
193
|
+
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/HISTORY.md
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
# master
|
2
|
-
|
3
|
-
# バージョン 0.4.0
|
4
|
-
リリース日: 2018-09-02
|
5
|
-
|
6
|
-
### 追加
|
7
|
-
* 社会保険
|
8
|
-
* 平成12年10月から平成20年8月までの等級および保険料率を追加
|
9
|
-
|
10
|
-
### 削除
|
11
|
-
* Ruby-2.1、2.2 のサポートを廃止
|
12
|
-
|
13
|
-
# バージョン 0.3.13
|
14
|
-
リリース日: 2018-03-15
|
15
|
-
|
16
|
-
### 追加
|
17
|
-
* 社会保険
|
18
|
-
* 平成30年3月分(4月納付分)からの健康保険料率
|
19
|
-
|
20
|
-
# バージョン 0.3.12
|
21
|
-
リリース日: 2018-03-12
|
22
|
-
|
23
|
-
### 追加
|
24
|
-
* 雇用保険料
|
25
|
-
|
26
|
-
# バージョン 0.3.8
|
27
|
-
リリース日: 2018-02-04
|
28
|
-
* 源泉徴収税
|
29
|
-
* 平成30年分の源泉徴収税額表
|
30
|
-
|
31
|
-
# バージョン 0.3.7
|
32
|
-
リリース日: 2017-05-19
|
33
|
-
|
34
|
-
### 修正
|
35
|
-
* 元号
|
36
|
-
* 和暦取得時に年号なしを指定する引数 only_year を追加
|
37
|
-
|
38
|
-
# バージョン 0.3.6
|
39
|
-
リリース日: 2017-03-17
|
40
|
-
|
41
|
-
### 追加
|
42
|
-
* 社会保険
|
43
|
-
* 平成29年3月分(4月納付分)からの健康保険料率
|
44
|
-
|
45
|
-
# バージョン 0.3.4
|
46
|
-
リリース日: 2016-10-17
|
47
|
-
|
48
|
-
### 追加
|
49
|
-
* 消費税
|
50
|
-
* 国税と地方税の割合をデータ化
|
51
|
-
|
52
|
-
### 修正
|
53
|
-
* 社会保険
|
54
|
-
* 平成28年10月、厚生年金保険の標準報酬月額の下限改訂
|
55
|
-
|
56
|
-
# バージョン 0.3.3
|
57
|
-
リリース日: 2016-09-16
|
58
|
-
|
59
|
-
### 追加
|
60
|
-
* 平成28年9月以降の厚生年金保険料率
|
61
|
-
|
62
|
-
# バージョン 0.3.2
|
63
|
-
リリース日: 2016-06-21
|
64
|
-
|
65
|
-
### 追加
|
66
|
-
* 元号
|
67
|
-
|
68
|
-
# バージョン 0.3.1
|
69
|
-
リリース日: 2016-06-17
|
70
|
-
|
71
|
-
### 追加
|
72
|
-
* 厚生年金の日額の計算
|
73
|
-
* 厚生年金の等級30以上の計算
|
74
|
-
|
75
|
-
### 修正
|
76
|
-
* 平成28年3月の健康保険料の間違いを修正
|
77
|
-
|
78
|
-
# バージョン 0.3.0
|
79
|
-
リリース日: 2016-05-12
|
80
|
-
|
81
|
-
### 追加
|
82
|
-
* 住所マスタを追加
|
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2014 hybitz
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
22
|
-
|
data/features/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
/reports/
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# language: ja
|
2
|
-
|
3
|
-
機能: 都道府県
|
4
|
-
|
5
|
-
シナリオ: 都道府県コード
|
6
|
-
* JISで定義されているコードは次の通りです。
|
7
|
-
| 01 | 北海道 | 11 | 埼玉県 | 21 | 岐阜県 | 31 | 鳥取県 | 41 | 佐賀県 |
|
8
|
-
| 02 | 青森県 | 12 | 千葉県 | 22 | 静岡県 | 32 | 島根県 | 42 | 長崎県 |
|
9
|
-
| 03 | 岩手県 | 13 | 東京都 | 23 | 愛知県 | 33 | 岡山県 | 43 | 熊本県 |
|
10
|
-
| 04 | 宮城県 | 14 | 神奈川県 | 24 | 三重県 | 34 | 広島県 | 44 | 大分県 |
|
11
|
-
| 05 | 秋田県 | 15 | 新潟県 | 25 | 滋賀県 | 35 | 山口県 | 45 | 宮崎県 |
|
12
|
-
| 06 | 山形県 | 16 | 富山県 | 26 | 京都府 | 36 | 徳島県 | 46 | 鹿児島県 |
|
13
|
-
| 07 | 福島県 | 17 | 石川県 | 27 | 大阪府 | 37 | 香川県 | 47 | 沖縄県 |
|
14
|
-
| 08 | 茨城県 | 18 | 福井県 | 28 | 兵庫県 | 38 | 愛媛県 | | |
|
15
|
-
| 09 | 栃木県 | 19 | 山梨県 | 29 | 奈良県 | 39 | 高知県 | | |
|
16
|
-
| 10 | 群馬県 | 20 | 長野県 | 30 | 和歌山県 | 40 | 福岡県 | | |
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# language: ja
|
2
|
-
|
3
|
-
機能: 源泉徴収税
|
4
|
-
|
5
|
-
シナリオ: 源泉徴収税額の計算
|
6
|
-
税額の求め方は、次のとおりです。
|
7
|
-
1 「給与所得者の扶養控除等申告書」(以下この表において「扶養控除等申告書」といいます。)の提出があった人
|
8
|
-
(1) まず、その人のその月の給与等の金額から、その給与等の金額から控除される社会保険料等の金額を控除した金額を求めます。
|
9
|
-
(2) 次に、扶養控除等申告書により申告された扶養親族等の数が7人以下である場合には、(1)により求めた金額に応じて「その月の社会保険料等控除後
|
10
|
-
の給与等の金額」欄の該当する行を求め、その行と扶養親族等の数に応じた甲欄の該当欄との交わるところに記載されている金額を求めます。これが
|
11
|
-
求める税額です。
|
12
|
-
(3) 扶養控除等申告書により申告された扶養親族等の数が7人を超える場合には、(1)により求めた金額に応じて、扶養親族等の数が7人であるものと
|
13
|
-
して(2)により求めた税額から、扶養親族等の数が7人を超える1人ごとに1,610円を控除した金額を求めます。これが求める税額です。
|
14
|
-
(4) (2)及び(3)の場合において、扶養控除等申告書にその人が障害者(特別障害者を含みます。)、寡婦(特別の寡婦を含みます。)、寡夫又は勤労
|
15
|
-
学生に該当する旨の記載があるときは、扶養親族等の数にこれらの一に該当するごとに1人を加算した数を、扶養控除等申告書にその人の控除対象配
|
16
|
-
偶者又は扶養親族のうちに障害者(特別障害者を含みます。)又は同居特別障害者に該当する人がいる旨の記載があるときは、扶養親族等の数にこれ
|
17
|
-
らの一に該当するごとに1人を加算した数を、それぞれ(2)及び(3)の扶養親族等の数とします。
|
18
|
-
2 扶養控除等申告書の提出がない人(「従たる給与についての扶養控除等申告書」の提出があった人を含みます。)
|
19
|
-
その人のその月の給与等の金額から、その給与等の金額から控除される社会保険料等の金額を控除し、その控除後の金額に応じた「その月の社会保険料
|
20
|
-
等控除後の給与等の金額」欄の該当する行と乙欄との交わるところに記載されている金額(「従たる給与についての扶養控除等申告書」の提出があった
|
21
|
-
場合には、その申告書により申告された扶養親族等の数に応じ、扶養親族等1人ごとに1,610円を控除した金額)を求めます。これが求める税額です。
|
22
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# language: ja
|
2
|
-
|
3
|
-
機能: 社会保健
|
4
|
-
|
5
|
-
シナリオ: 介護保険料について
|
6
|
-
<a href="https://www.kyoukaikenpo.or.jp/shibu/chiba/cat080/20130314001">介護保険制度と介護保険料について</a>
|
7
|
-
<pre>
|
8
|
-
40歳から64歳までの健康保険の加入者は、健康保険料と一緒に介護保険料を納めます。
|
9
|
-
介護保険料は「満40歳に達したとき」より徴収が始まります。
|
10
|
-
「満40歳に達したとき」とは、40歳の誕生日の前日のことであり、その日が属する月から介護保険の第2号被保険者となり、介護保険料が徴収されます。
|
11
|
-
</pre>
|
12
|
-
|
13
|
-
シナリオ: 5月2日生まれの方が40歳になる場合
|
14
|
-
誕生日の前日(介護保険の第2号被保険者の資格取得日)は5月1日のため、誕生日の前日が属する月である5月分より健康保険料とともに介護保険料が徴収されます。
|
15
|
-
|
16
|
-
シナリオ: 5月1日生まれの方が40歳になる場合
|
17
|
-
誕生日の前日(介護保険の第2号被保険者の資格取得日)は4月30日のため、誕生日の前日が属する月である4月分より健康保険料とともに介護保険料が徴収されます。
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# language: ja
|
2
|
-
|
3
|
-
機能: 事業年度分の適用額明細書
|
4
|
-
|
5
|
-
平成22年度税制改正において、「租税特別措置の適用状況の透明化等に関する法律」が
|
6
|
-
制定され、租税特別措置の適用の実態を把握するための調査を行うことが規定されました。
|
7
|
-
このため、法人税関係特別措置のうち税額又は所得の金額を減少させる規定等を適用する場
|
8
|
-
合には、その法人が提出する法人税申告書に「適用額明細書」を添付し、税務署に提出する
|
9
|
-
必要があります。
|
10
|
-
|
11
|
-
シナリオ: 平成29年10月1日以後終了事業年度に使用する区分番号一覧表(単体法人)
|
12
|
-
* 区分番号一覧表は以下の通り
|
@@ -1,19 +0,0 @@
|
|
1
|
-
もし /^JISで定義されているコードは次の通りです。$/ do |ast_table|
|
2
|
-
count = 0
|
3
|
-
|
4
|
-
ast_table.raw.each do |row|
|
5
|
-
5.times do |i|
|
6
|
-
code = row[i*2]
|
7
|
-
name = row[i*2+1]
|
8
|
-
next if code.empty?
|
9
|
-
|
10
|
-
assert p = TaxJp::Prefecture.find_by_code(code)
|
11
|
-
assert_equal name, p.name
|
12
|
-
|
13
|
-
count += 1
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
assert_equal 47, count
|
18
|
-
end
|
19
|
-
|
data/features/support/env.rb
DELETED
data/lib/tax_jp/rails/engine.rb
DELETED
data/lib/tax_jp/rails/railtie.rb
DELETED
data/tax_jp.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'tax_jp/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "tax_jp"
|
7
|
-
s.version = TaxJp::VERSION
|
8
|
-
s.authors = ['ichylinux', 'hyzhiro']
|
9
|
-
s.email = ['ichylinux@gmail.com', 'hiroyuki@hybitz.co.jp']
|
10
|
-
s.summary = %q{税金計算ライブラリ}
|
11
|
-
s.description = %q{税金計算ライブラリ}
|
12
|
-
s.homepage = 'https://github.com/hybitz/tax_jp'
|
13
|
-
s.license = 'MIT'
|
14
|
-
|
15
|
-
s.files = `git ls-files -z`.split("\x0")
|
16
|
-
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
-
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
|
20
|
-
s.required_ruby_version = '~> 2.3'
|
21
|
-
|
22
|
-
s.add_runtime_dependency 'sqlite3', '~> 1.3'
|
23
|
-
|
24
|
-
s.add_development_dependency 'bundler', '~> 1.12'
|
25
|
-
s.add_development_dependency 'closer', '~> 0.7'
|
26
|
-
s.add_development_dependency 'minitest', '~> 5.10'
|
27
|
-
s.add_development_dependency 'rake', '~> 12.0'
|
28
|
-
s.add_development_dependency 'rails', '>= 4.2', '< 6'
|
29
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
if (typeof tax === "undefined") {
|
2
|
-
var tax = {};
|
3
|
-
}
|
4
|
-
|
5
|
-
tax.NONTAXABLE = <%= TaxJp::TAX_TYPE_NONTAXABLE %>; // 非課税
|
6
|
-
tax.INCLUSIVE = <%= TaxJp::TAX_TYPE_INCLUSIVE %>; // 内税
|
7
|
-
tax.EXCLUSIVE = <%= TaxJp::TAX_TYPE_EXCLUSIVE %>; // 外税
|
8
|
-
|
9
|
-
tax.consumptionTaxes = [
|
10
|
-
<%- TaxJp::Utils.load_yaml('消費税.yml').reverse_each do |start_date, rate| -%>
|
11
|
-
{date: Date.parse('<%= start_date.strftime('%Y-%m-%d') %>'), rate: <%= rate['total'] %>},
|
12
|
-
<%- end -%>
|
13
|
-
];
|
14
|
-
|
15
|
-
tax.getRateOn = function(date, options) {
|
16
|
-
if (typeof date === 'string') {
|
17
|
-
date = Date.parse(date);
|
18
|
-
}
|
19
|
-
options = options || {};
|
20
|
-
|
21
|
-
var ret = 0;
|
22
|
-
for (var i = 0; this.consumptionTaxes.length; i ++) {
|
23
|
-
ret = this.consumptionTaxes[i].rate;
|
24
|
-
if (date >= this.consumptionTaxes[i].date) {
|
25
|
-
break;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
if (options.percent) {
|
30
|
-
ret *= 100;
|
31
|
-
}
|
32
|
-
|
33
|
-
return ret;
|
34
|
-
};
|
35
|
-
|
36
|
-
tax.calcTaxAmount = function(taxType, rate, amount) {
|
37
|
-
if ( isNaN( amount ) ) {
|
38
|
-
return '';
|
39
|
-
}
|
40
|
-
|
41
|
-
if ( taxType == tax.INCLUSIVE ) {
|
42
|
-
return parseInt(amount * rate / (1 + rate));
|
43
|
-
}
|
44
|
-
else if ( taxType == tax.EXCLUSIVE ) {
|
45
|
-
return parseInt(amount * rate);
|
46
|
-
}
|
47
|
-
|
48
|
-
return '';
|
49
|
-
};
|