tax_jp 1.1.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tax_jp/layout,css.scss +12 -0
- data/app/views/layouts/tax_jp/_nav.html.erb +2 -2
- data/app/views/tax_jp/bonus_withheld_taxes/index.html.erb +11 -13
- data/app/views/tax_jp/common/_date_field.html.erb +4 -4
- data/app/views/tax_jp/depreciation_rates/index.html.erb +2 -2
- data/app/views/tax_jp/social_insurances/index.html.erb +26 -24
- data/app/views/tax_jp/withheld_taxes/index.html.erb +8 -10
- data/data//345/212/264/345/203/215/344/277/235/351/231/272//351/233/207/347/224/250/344/277/235/351/231/272.tsv +1 -1
- data/data//347/244/276/344/274/232/344/277/235/351/231/272/346/226/231.db +0 -0
- data/data//347/244/276/344/274/232/344/277/235/351/231/272/346/226/231//345/201/245/345/272/267/344/277/235/351/231/272-20210301-20220228.tsv +48 -0
- data/data//351/233/207/347/224/250/344/277/235/351/231/272/346/226/231.db +0 -0
- data/lib/tax_jp/version.rb +1 -1
- metadata +8 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d515746c2b5de559337c61ed86b196a509f182871e472f3946e18e37e56059f1
|
4
|
+
data.tar.gz: bb91d5759df9e6dca216b2c83dd3282760b54c0c750ef65615eff5f82209d5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78d961f4dbc438b16bf84ba4548e3f2675df86aa56287d37ea9894c7702da0e12dbb83e28f9936e70d735bba12498aa6ba91262520d33bf807df8a07f58f83bb
|
7
|
+
data.tar.gz: d98612fb7ef3eef13ea038fff4e885c4efedeb65cba2e38391787840a067b1f4ffcf18601e46793b14456bf8b86573f61f7b70a481db0baeb7a3790f26d62f71
|
@@ -1,5 +1,17 @@
|
|
1
|
+
html {
|
2
|
+
font-size: 87.5%;
|
3
|
+
}
|
4
|
+
|
1
5
|
.taxjp {
|
2
6
|
main {
|
3
7
|
padding: 4rem 0;
|
4
8
|
}
|
9
|
+
|
10
|
+
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
|
11
|
+
background-color: #D7EEFF;
|
12
|
+
}
|
13
|
+
|
14
|
+
.bootstrap-datetimepicker-widget {
|
15
|
+
margin-left: 48px;
|
16
|
+
}
|
5
17
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<nav class="navbar navbar-expand-sm navbar-light bg-light fixed-top">
|
1
|
+
<nav class="navbar navbar-expand-sm navbar-light bg-light fixed-top px-2">
|
2
2
|
<span class="navbar-brand">TaxJP</span>
|
3
|
-
<ul class="navbar-nav
|
3
|
+
<ul class="navbar-nav me-auto">
|
4
4
|
<li class="nav-item <%= 'active' if controller_name == 'withheld_taxes' %>">
|
5
5
|
<%= link_to '源泉徴収税', withheld_taxes_path, class: "nav-link" %>
|
6
6
|
</li>
|
@@ -1,18 +1,16 @@
|
|
1
1
|
<div class="container">
|
2
|
-
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: '
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= f.submit '表示', class: 'btn btn-light' %>
|
9
|
-
</div>
|
2
|
+
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: 'row', local: true do |f| %>
|
3
|
+
<div class="col-auto my-auto">
|
4
|
+
<%= f.t_date_field :from %>
|
5
|
+
</div>
|
6
|
+
<div class="col-auto my-auto">
|
7
|
+
<%= f.submit '表示', class: 'btn btn-outline-primary' %>
|
10
8
|
</div>
|
11
9
|
<% end %>
|
12
10
|
</div>
|
13
11
|
<div class="py-2 px-4">
|
14
12
|
<table class="table table-striped table-bordered table-hover table-sm">
|
15
|
-
<thead
|
13
|
+
<thead>
|
16
14
|
<tr>
|
17
15
|
<th rowspan="5" class="align-middle text-center">賞与の金額に乗ずべき率(%)</th>
|
18
16
|
<th colspan="16" class="align-middle text-center">甲</th>
|
@@ -46,16 +44,16 @@
|
|
46
44
|
to = wt.__send__("dependent_#{i}_salary_to")
|
47
45
|
infinite = to == TaxJp::INTEGER_MAX
|
48
46
|
%>
|
49
|
-
<td class="text-
|
50
|
-
<td class="<%= infinite ? 'text-center' : 'text-
|
47
|
+
<td class="text-end"><%= from == TaxJp::INTEGER_MAX ? '-' : from.to_s(:delimited) %></td>
|
48
|
+
<td class="<%= infinite ? 'text-center' : 'text-end' %>"><%= infinite ? '-' : to.to_s(:delimited) %></td>
|
51
49
|
<% end %>
|
52
50
|
<%
|
53
51
|
from = wt.sub_salary_from
|
54
52
|
to = wt.sub_salary_to
|
55
53
|
infinite = to == TaxJp::INTEGER_MAX
|
56
54
|
%>
|
57
|
-
<td class="text-
|
58
|
-
<td class="<%= infinite ? 'text-center' : 'text-
|
55
|
+
<td class="text-end"><%= from.to_s(:delimited) unless from == 0 && to == 0 %></td>
|
56
|
+
<td class="<%= infinite ? 'text-center' : 'text-end' %>"><%= infinite ? '-' : to.to_s(:delimited) unless from == 0 && to == 0 %></td>
|
59
57
|
</tr>
|
60
58
|
<% end %>
|
61
59
|
</tbody>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="input-group date" id="datetimepicker4" data-target-input="nearest">
|
2
|
-
<label for="
|
3
|
-
<%= f.text_field method, class: 'form-control datetimepicker-input',
|
4
|
-
<div class="input-group-
|
5
|
-
<
|
2
|
+
<label for="finder_from" class="col-form-label me-2">年月日</label>
|
3
|
+
<%= f.text_field method, class: 'form-control datetimepicker-input', data: {target: '#datetimepicker4'} %>
|
4
|
+
<div class="input-group-text" data-target="#datetimepicker4" data-toggle="datetimepicker">
|
5
|
+
<i class="fa fa-calendar"></i>
|
6
6
|
</div>
|
7
7
|
<script>
|
8
8
|
$(function () {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<table class="table table-striped table-bordered table-hover table-sm">
|
3
3
|
<thead class="thead-light">
|
4
4
|
<tr>
|
5
|
-
<th rowspan="2" class="align-middle">耐用年数</th>
|
5
|
+
<th rowspan="2" class="text-center align-middle">耐用年数</th>
|
6
6
|
<th rowspan="2" class="align-middle">定額法償却率</th>
|
7
7
|
<th colspan="3">定率法</th>
|
8
8
|
</tr>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<tbody>
|
16
16
|
<% @depreciation_rates.each do |rate| %>
|
17
17
|
<tr>
|
18
|
-
<th><%= rate.durable_years %></th>
|
18
|
+
<th class="text-center"><%= rate.durable_years %></th>
|
19
19
|
<td><%= rate.fixed_amount_rate %></td>
|
20
20
|
<td><%= rate.rate %></td>
|
21
21
|
<td><%= rate.revised_rate %></td>
|
@@ -1,21 +1,23 @@
|
|
1
1
|
<div class="container">
|
2
|
-
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: '
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<div class="
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<%= f.submit '表示', class: 'btn btn-light' %>
|
2
|
+
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: 'row', local: true do |f| %>
|
3
|
+
<div class="col-auto my-auto">
|
4
|
+
<%= f.t_date_field :from %>
|
5
|
+
</div>
|
6
|
+
<div class="col-auto my-auto">
|
7
|
+
<div class="input-group">
|
8
|
+
<div class="col-auto my-auto">
|
9
|
+
<label for="finder_prefecture_code" class="col-form-label me-2">都道府県</label>
|
10
|
+
</div>
|
11
|
+
<%= f.collection_select :prefecture_code, TaxJp::Prefecture.all, :code, :name, {}, class: 'form-select' %>
|
13
12
|
</div>
|
14
13
|
</div>
|
14
|
+
<div class="col-auto my-auto">
|
15
|
+
<%= f.submit '表示', class: 'btn btn-outline-primary' %>
|
16
|
+
</div>
|
15
17
|
<% end %>
|
16
18
|
</div>
|
17
19
|
<% if @social_insurances %>
|
18
|
-
<div class="
|
20
|
+
<div class="py-2 px-4">
|
19
21
|
<div>
|
20
22
|
<span><%= @social_insurances.first.valid_from %></span>
|
21
23
|
<span>~</span>
|
@@ -54,20 +56,20 @@
|
|
54
56
|
<td class="text-center"><%= si.grade.grade %></td>
|
55
57
|
<% end %>
|
56
58
|
|
57
|
-
<td class="text-
|
58
|
-
<td class="text-
|
59
|
-
<td class="text-
|
60
|
-
<td class="text-
|
61
|
-
<td class="text-
|
62
|
-
<td class="text-
|
63
|
-
<td class="text-
|
64
|
-
<td class="text-
|
59
|
+
<td class="text-end"><%= si.grade.monthly_standard.to_s(:delimited) %></td>
|
60
|
+
<td class="text-end"><%= si.grade.daily_standard.to_s(:delimited) %></td>
|
61
|
+
<td class="text-end"><%= si.grade.salary_from.to_s(:delimited) %></td>
|
62
|
+
<td class="text-end"><%= si.grade.salary_to.to_s(:delimited) if si.grade.salary_to < TaxJp::INTEGER_MAX %></td>
|
63
|
+
<td class="text-end"><%= si.health_insurance.general_amount.to_s(:delimited) %></td>
|
64
|
+
<td class="text-end"><%= si.health_insurance.general_amount_half.to_s(:delimited) %></td>
|
65
|
+
<td class="text-end"><%= si.health_insurance.general_amount_care.to_s(:delimited) %></td>
|
66
|
+
<td class="text-end"><%= si.health_insurance.general_amount_care_half.to_s(:delimited) %></td>
|
65
67
|
|
66
68
|
<% if [0, TaxJp::INTEGER_MAX].exclude?(si.grade.pension_grade) %>
|
67
|
-
<td class="text-
|
68
|
-
<td class="text-
|
69
|
-
<td class="text-
|
70
|
-
<td class="text-
|
69
|
+
<td class="text-end"><%= number_to_currency(si.welfare_pension.general_amount, unit: '', precision: 2) if si.welfare_pension.general_amount > 0 %></td>
|
70
|
+
<td class="text-end"><%= number_to_currency(si.welfare_pension.general_amount_half, unit: '', precision: 2) if si.welfare_pension.general_amount_half > 0 %></td>
|
71
|
+
<td class="text-end"><%= number_to_currency(si.welfare_pension.particular_amount, unit: '', precision: 2) if si.welfare_pension.particular_amount > 0 %></td>
|
72
|
+
<td class="text-end"><%= number_to_currency(si.welfare_pension.particular_amount_half, unit: '', precision: 2) if si.welfare_pension.particular_amount_half > 0 %></td>
|
71
73
|
<% else %>
|
72
74
|
<td></td>
|
73
75
|
<td></td>
|
@@ -1,12 +1,10 @@
|
|
1
1
|
<div class="container">
|
2
|
-
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: '
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= f.submit '表示', class: 'btn btn-light' %>
|
9
|
-
</div>
|
2
|
+
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: 'row', local: true do |f| %>
|
3
|
+
<div class="col-auto my-auto">
|
4
|
+
<%= f.t_date_field :from %>
|
5
|
+
</div>
|
6
|
+
<div class="col-auto my-auto">
|
7
|
+
<%= f.submit '表示', class: 'btn btn-outline-primary' %>
|
10
8
|
</div>
|
11
9
|
<% end %>
|
12
10
|
</div>
|
@@ -33,9 +31,9 @@
|
|
33
31
|
<td class="text-center"><%= wt.salary_range_from.to_s(:delimited) %></td>
|
34
32
|
<td class="text-center"><%= wt.salary_range_to.to_s(:delimited) %></td>
|
35
33
|
<% 8.times do |i| %>
|
36
|
-
<td class="text-
|
34
|
+
<td class="text-end"><%= wt.__send__("dependent_#{i}").to_s(:delimited) %></td>
|
37
35
|
<% end %>
|
38
|
-
<td class="text-
|
36
|
+
<td class="text-end"><%= wt.sub_salary.to_s(:delimited) %></td>
|
39
37
|
</tr>
|
40
38
|
<% end %>
|
41
39
|
</tbody>
|
@@ -4,4 +4,4 @@
|
|
4
4
|
2010-04-01 2012-03-31 0.006 0.0095 0.007 0.0105 0.007 0.0115
|
5
5
|
2012-04-01 2016-03-31 0.005 0.0085 0.006 0.0095 0.006 0.0105
|
6
6
|
2016-04-01 2017-03-31 0.004 0.007 0.005 0.008 0.005 0.009
|
7
|
-
2017-04-01
|
7
|
+
2017-04-01 2022-03-31 0.003 0.006 0.004 0.007 0.004 0.008
|
Binary file
|
@@ -0,0 +1,48 @@
|
|
1
|
+
都道府県 一般保険料率(%) 介護保険料率(%) 特定保険料率(%) 基本保険料率(%)
|
2
|
+
北海道 10.45 1.8 3.53 6.92
|
3
|
+
青森県 9.96 1.8 3.53 6.43
|
4
|
+
岩手県 9.74 1.8 3.53 6.21
|
5
|
+
宮城県 10.01 1.8 3.53 6.48
|
6
|
+
秋田県 10.16 1.8 3.53 6.63
|
7
|
+
山形県 10.03 1.8 3.53 6.5
|
8
|
+
福島県 9.64 1.8 3.53 6.11
|
9
|
+
茨城県 9.74 1.8 3.53 6.21
|
10
|
+
栃木県 9.87 1.8 3.53 6.34
|
11
|
+
群馬県 9.66 1.8 3.53 6.13
|
12
|
+
埼玉県 9.8 1.8 3.53 6.27
|
13
|
+
千葉県 9.79 1.8 3.53 6.26
|
14
|
+
東京都 9.84 1.8 3.53 6.31
|
15
|
+
神奈川県 9.99 1.8 3.53 6.46
|
16
|
+
新潟県 9.5 1.8 3.53 5.97
|
17
|
+
富山県 9.59 1.8 3.53 6.06
|
18
|
+
石川県 10.11 1.8 3.53 6.58
|
19
|
+
福井県 9.98 1.8 3.53 6.45
|
20
|
+
山梨県 9.79 1.8 3.53 6.26
|
21
|
+
長野県 9.71 1.8 3.53 6.18
|
22
|
+
岐阜県 9.83 1.8 3.53 6.3
|
23
|
+
静岡県 9.72 1.8 3.53 6.19
|
24
|
+
愛知県 9.91 1.8 3.53 6.38
|
25
|
+
三重県 9.81 1.8 3.53 6.28
|
26
|
+
滋賀県 9.78 1.8 3.53 6.25
|
27
|
+
京都府 10.06 1.8 3.53 6.53
|
28
|
+
大阪府 10.29 1.8 3.53 6.76
|
29
|
+
兵庫県 10.24 1.8 3.53 6.71
|
30
|
+
奈良県 10 1.8 3.53 6.47
|
31
|
+
和歌山県 10.11 1.8 3.53 6.58
|
32
|
+
鳥取県 9.97 1.8 3.53 6.44
|
33
|
+
島根県 10.03 1.8 3.53 6.5
|
34
|
+
岡山県 10.18 1.8 3.53 6.65
|
35
|
+
広島県 10.04 1.8 3.53 6.51
|
36
|
+
山口県 10.22 1.8 3.53 6.69
|
37
|
+
徳島県 10.29 1.8 3.53 6.76
|
38
|
+
香川県 10.28 1.8 3.53 6.75
|
39
|
+
愛媛県 10.22 1.8 3.53 6.69
|
40
|
+
高知県 10.17 1.8 3.53 6.64
|
41
|
+
福岡県 10.22 1.8 3.53 6.69
|
42
|
+
佐賀県 10.68 1.8 3.53 7.15
|
43
|
+
長崎県 10.26 1.8 3.53 6.73
|
44
|
+
熊本県 10.29 1.8 3.53 6.76
|
45
|
+
大分県 10.3 1.8 3.53 6.77
|
46
|
+
宮崎県 9.83 1.8 3.53 6.3
|
47
|
+
鹿児島県 10.36 1.8 3.53 6.83
|
48
|
+
沖縄県 9.95 1.8 3.53 6.42
|
Binary file
|
data/lib/tax_jp/version.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: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichylinux
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -17,20 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 4.2.1
|
20
|
+
version: '5.0'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 4.2.1
|
27
|
+
version: '5.0'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: bootstrap4-datetime-picker-rails
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,14 +59,14 @@ dependencies:
|
|
65
59
|
requirements:
|
66
60
|
- - "~>"
|
67
61
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.
|
62
|
+
version: '4.4'
|
69
63
|
type: :runtime
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
66
|
requirements:
|
73
67
|
- - "~>"
|
74
68
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.
|
69
|
+
version: '4.4'
|
76
70
|
- !ruby/object:Gem::Dependency
|
77
71
|
name: rails
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,6 +176,7 @@ files:
|
|
182
176
|
- data/社会保険料/健康保険-20180301-20190228.tsv
|
183
177
|
- data/社会保険料/健康保険-20190301-20200229.tsv
|
184
178
|
- data/社会保険料/健康保険-20200301-20210228.tsv
|
179
|
+
- data/社会保険料/健康保険-20210301-20220228.tsv
|
185
180
|
- data/社会保険料/厚生年金.tsv
|
186
181
|
- data/社会保険料/旧健康保険.tsv
|
187
182
|
- data/社会保険料/等級-20001001-20080831.tsv
|
@@ -241,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
236
|
- !ruby/object:Gem::Version
|
242
237
|
version: '0'
|
243
238
|
requirements: []
|
244
|
-
rubygems_version: 3.
|
239
|
+
rubygems_version: 3.2.16
|
245
240
|
signing_key:
|
246
241
|
specification_version: 4
|
247
242
|
summary: 税金計算ライブラリ
|