tax_jp 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb57ffb800c9774815ec28f56da7502c30b112cf9c3d05b3b38126b018bfc15
|
4
|
+
data.tar.gz: ec84cbcd5120b0dc413655e928fba77abcf2a0349b6eafd3069416d090ae35a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22312abd7983472c40ac53d72c84fb0eba92c83db5fa45eab749fa0972a7318a5f50ca1e4d951cfe556f3f97077243ff02d0e8fd67996fcd833d1ce2e5ff3d59
|
7
|
+
data.tar.gz: 19a6f2f3ce1d7587976fd096be36dd32715ec415459c552430ee02a0e5aa1b9271447a7f2a81c8b2ba16184fcb852aa74f0bb682cee44ad8425e839fc4ab0601
|
data/README.md
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
require_dependency "tax_jp/application_controller"
|
2
|
+
|
3
|
+
module TaxJp
|
4
|
+
class WithheldTaxesController < ApplicationController
|
5
|
+
before_action :preload_finder
|
6
|
+
|
7
|
+
def index
|
8
|
+
@withheld_taxes = TaxJp::WithheldTax.find_all_by_date(@finder.from)
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def preload_finder
|
14
|
+
@finder = TaxJp::Finder.new(finder_params)
|
15
|
+
@finder.from ||= Date.today.strftime('%Y-%m-%d')
|
16
|
+
end
|
17
|
+
|
18
|
+
def finder_params
|
19
|
+
if params[:finder].present?
|
20
|
+
params.require(:finder).permit(:from)
|
21
|
+
else
|
22
|
+
{}
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<nav class="nav justify-content-center">
|
2
|
+
<%= link_to '源泉徴収税', withheld_taxes_path, class: "nav-link #{controller_name == 'withheld_taxes' ? 'active' : nil}" %>
|
2
3
|
<%= link_to '源泉徴収税(賞与)', bonus_withheld_taxes_path, class: "nav-link #{controller_name == 'bonus_withheld_taxes' ? 'active' : nil}" %>
|
3
4
|
<%= link_to '雇用保険料', employment_insurances_path, class: "nav-link #{controller_name == 'employment_insurances' ? 'active' : nil}" %>
|
4
5
|
<%= link_to '減価償却率', depreciation_rates_path, class: "nav-link #{controller_name == 'depreciation_rates' ? 'active' : nil}" %>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<%= form_with model: @finder, url: {action: 'index'}, method: 'get', class: 'form form-vertical', local: true do |f| %>
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-sm-3 form-group">
|
5
|
+
<div class="input-group date" id="datetimepicker4" data-target-input="nearest">
|
6
|
+
<label for="datetimepicker1" class="pt-2 pr-2">年月日:</label>
|
7
|
+
<%= f.text_field :from, class: 'form-control datetimepicker-input', data: {target: '#datetimepicker4'} %>
|
8
|
+
<div class="input-group-append" data-target="#datetimepicker4" data-toggle="datetimepicker">
|
9
|
+
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<div class="col">
|
14
|
+
<%= f.submit '表示', class: 'btn btn-sm btn-default mt-1' %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<script>
|
18
|
+
$(function () {
|
19
|
+
$('#datetimepicker4').datetimepicker({
|
20
|
+
format: 'YYYY-MM-DD',
|
21
|
+
locale: 'ja',
|
22
|
+
buttons: {
|
23
|
+
showClose: true
|
24
|
+
}
|
25
|
+
});
|
26
|
+
});
|
27
|
+
</script>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
30
|
+
<div class="pl-4 pr-4">
|
31
|
+
<table class="table table-striped table-bordered table-hover table-sm">
|
32
|
+
<thead>
|
33
|
+
<tr>
|
34
|
+
<th class="text-center">社会保険料控除後の<br/>給与範囲(以上)</th>
|
35
|
+
<th class="text-center">社会保険料控除後の<br/>給与範囲(未満)</th>
|
36
|
+
<th class="text-center">扶養親族<br/>0人</th>
|
37
|
+
<th class="text-center">扶養親族<br/>1人</th>
|
38
|
+
<th class="text-center">扶養親族<br/>2人</th>
|
39
|
+
<th class="text-center">扶養親族<br/>3人</th>
|
40
|
+
<th class="text-center">扶養親族<br/>4人</th>
|
41
|
+
<th class="text-center">扶養親族<br/>5人</th>
|
42
|
+
<th class="text-center">扶養親族<br/>6人</th>
|
43
|
+
<th class="text-center">扶養親族<br/>7人</th>
|
44
|
+
<th class="text-center">乙</th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
47
|
+
<tbody>
|
48
|
+
<% @withheld_taxes.each do |wt| %>
|
49
|
+
<tr>
|
50
|
+
<td class="text-center"><%= wt.salary_range_from.to_s(:delimited) %></td>
|
51
|
+
<td class="text-center"><%= wt.salary_range_to.to_s(:delimited) %></td>
|
52
|
+
<% 8.times do |i| %>
|
53
|
+
<td class="text-right"><%= wt.__send__("dependent_#{i}").to_s(:delimited) %></td>
|
54
|
+
<% end %>
|
55
|
+
<td class="text-right"><%= wt.sub_salary.to_s(:delimited) %></td>
|
56
|
+
</tr>
|
57
|
+
<% end %>
|
58
|
+
</tbody>
|
59
|
+
</table>
|
60
|
+
</div>
|
data/config/routes.rb
CHANGED
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: 0.5.
|
4
|
+
version: 0.5.4
|
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: 2018-12-
|
12
|
+
date: 2018-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- app/controllers/tax_jp/depreciation_rates_controller.rb
|
116
116
|
- app/controllers/tax_jp/employment_insurances_controller.rb
|
117
117
|
- app/controllers/tax_jp/top_controller.rb
|
118
|
+
- app/controllers/tax_jp/withheld_taxes_controller.rb
|
118
119
|
- app/helpers/tax_jp/application_helper.rb
|
119
120
|
- app/jobs/tax_jp/application_job.rb
|
120
121
|
- app/mailers/tax_jp/application_mailer.rb
|
@@ -126,6 +127,7 @@ files:
|
|
126
127
|
- app/views/tax_jp/depreciation_rates/index.html.erb
|
127
128
|
- app/views/tax_jp/employment_insurances/index.html.erb
|
128
129
|
- app/views/tax_jp/top/index.html.erb
|
130
|
+
- app/views/tax_jp/withheld_taxes/index.html.erb
|
129
131
|
- config/routes.rb
|
130
132
|
- data/住所.db
|
131
133
|
- data/住所/addresses.csv
|
@@ -222,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
224
|
version: '0'
|
223
225
|
requirements: []
|
224
226
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.7.
|
227
|
+
rubygems_version: 2.7.7
|
226
228
|
signing_key:
|
227
229
|
specification_version: 4
|
228
230
|
summary: 税金計算ライブラリ
|