tax_jp 1.1.2 → 1.1.3

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: 26d20280c1a2483d5b86e85292868cfc28b299b55267c3e1bb631f65385b39af
4
- data.tar.gz: 993908ad64d34262cbcb2e18d8401c40c52c7d114fd50ff9f09522c4ac816d82
3
+ metadata.gz: 525fa9a1639ef44af3d8db2a3f10553e19bb063d36904d8f583d42209cc60261
4
+ data.tar.gz: 0b82b1c64ebdc989db116d082754afe7f6fe75b3ada7d07e987a9c760854c22b
5
5
  SHA512:
6
- metadata.gz: 4cd5871aa0530d3e4dd5a0fa30d37b6e7f42acb53771f32c30298f668eac832f3390d08081ccc523d26c077e4668751979476ca7600e5a1ab9a9927a76df9054
7
- data.tar.gz: 726f4b742a0d63fcaa52a618d27bbb87ab6fab5bbeffa28b1801476e323508c62000af468bdd9971149d9245b110fbf88a3bbf434c1bedbb3a152f91e136beab
6
+ metadata.gz: 79e95cc0007490e1b15552f87b0d8a839f41a37c94b335f8fd9ed0f57aa66ac0e0d14e84e00922cc4f4c7fd245922596d8c1c9147b92b50a3b0cf2f15ac22dc1
7
+ data.tar.gz: 2a4e7eb97a8c45a4df9ebc200c89e07f5b7fc4daa213630cb22ec963f8f6906284822b2b9e7033f43cd8b5d7a29dc0f86119930ab0b58e695b6d3f625f140eeb
@@ -15,6 +15,7 @@ module TaxJp
15
15
  def preload_finder
16
16
  @finder = TaxJp::Finder.new(finder_params)
17
17
  @finder.from ||= Date.today.strftime('%Y-%m-%d')
18
+ @finder.prefecture_code ||= '13' # 人口の多い東京都をデフォルトに
18
19
  end
19
20
 
20
21
  def finder_params
@@ -39,20 +39,20 @@
39
39
  <tbody>
40
40
  <% @withheld_taxes.each do |wt| %>
41
41
  <tr>
42
- <td class="text-center"><%= wt.tax_ratio_percent %></td>
42
+ <td class="text-center"><%= number_with_precision(wt.tax_ratio_percent, precision: 3) %></td>
43
43
  <% 8.times do |i| %>
44
44
  <%
45
45
  from = wt.__send__("dependent_#{i}_salary_from")
46
46
  to = wt.__send__("dependent_#{i}_salary_to")
47
- infinite = to == 2147483647
47
+ infinite = to == TaxJp::INTEGER_MAX
48
48
  %>
49
- <td class="text-right"><%= from == 2147483647 ? '-' : from.to_s(:delimited) %></td>
49
+ <td class="text-right"><%= from == TaxJp::INTEGER_MAX ? '-' : from.to_s(:delimited) %></td>
50
50
  <td class="<%= infinite ? 'text-center' : 'text-right' %>"><%= infinite ? '-' : to.to_s(:delimited) %></td>
51
51
  <% end %>
52
52
  <%
53
53
  from = wt.sub_salary_from
54
54
  to = wt.sub_salary_to
55
- infinite = to == 2147483647
55
+ infinite = to == TaxJp::INTEGER_MAX
56
56
  %>
57
57
  <td class="text-right"><%= from.to_s(:delimited) unless from == 0 && to == 0 %></td>
58
58
  <td class="<%= infinite ? 'text-center' : 'text-right' %>"><%= infinite ? '-' : to.to_s(:delimited) unless from == 0 && to == 0 %></td>
@@ -52,7 +52,7 @@
52
52
  <td class="text-right"><%= si.grade.monthly_standard.to_s(:delimited) %></td>
53
53
  <td class="text-right"><%= si.grade.daily_standard.to_s(:delimited) %></td>
54
54
  <td class="text-right"><%= si.grade.salary_from.to_s(:delimited) %></td>
55
- <td class="text-right"><%= si.grade.salary_to.to_s(:delimited) if si.grade.salary_to < 2_147_483_647 %></td>
55
+ <td class="text-right"><%= si.grade.salary_to.to_s(:delimited) if si.grade.salary_to < TaxJp::INTEGER_MAX %></td>
56
56
  <td class="text-right"><%= si.health_insurance.general_amount.to_s(:delimited) %></td>
57
57
  <td class="text-right"><%= si.health_insurance.general_amount_half.to_s(:delimited) %></td>
58
58
  <td class="text-right"><%= si.health_insurance.general_amount_care.to_s(:delimited) %></td>
@@ -0,0 +1,294 @@
1
+ その月の社会保険料等控除後の給与等の金額(以上) その月の社会保険料等控除後の給与等の金額(未満) 扶養親族等の数(0人) 扶養親族等の数(1人) 扶養親族等の数(2人) 扶養親族等の数(3人) 扶養親族等の数(4人) 扶養親族等の数(5人) 扶養親族等の数(6人) 扶養親族等の数(7人) 乙
2
+ 88000 89000 130 0 0 0 0 0 0 0 3200
3
+ 89000 90000 180 0 0 0 0 0 0 0 3200
4
+ 90000 91000 230 0 0 0 0 0 0 0 3200
5
+ 91000 92000 290 0 0 0 0 0 0 0 3200
6
+ 92000 93000 340 0 0 0 0 0 0 0 3300
7
+
8
+ 93000 94000 390 0 0 0 0 0 0 0 3300
9
+ 94000 95000 440 0 0 0 0 0 0 0 3300
10
+ 95000 96000 490 0 0 0 0 0 0 0 3400
11
+ 96000 97000 540 0 0 0 0 0 0 0 3400
12
+ 97000 98000 590 0 0 0 0 0 0 0 3500
13
+
14
+ 98000 99000 640 0 0 0 0 0 0 0 3500
15
+ 99000 101000 720 0 0 0 0 0 0 0 3600
16
+ 101000 103000 830 0 0 0 0 0 0 0 3600
17
+ 103000 105000 930 0 0 0 0 0 0 0 3700
18
+ 105000 107000 1030 0 0 0 0 0 0 0 3800
19
+
20
+ 107000 109000 1130 0 0 0 0 0 0 0 3800
21
+ 109000 111000 1240 0 0 0 0 0 0 0 3900
22
+ 111000 113000 1340 0 0 0 0 0 0 0 4000
23
+ 113000 115000 1440 0 0 0 0 0 0 0 4100
24
+ 115000 117000 1540 0 0 0 0 0 0 0 4100
25
+
26
+ 117000 119000 1640 0 0 0 0 0 0 0 4200
27
+ 119000 121000 1750 120 0 0 0 0 0 0 4300
28
+ 121000 123000 1850 220 0 0 0 0 0 0 4500
29
+ 123000 125000 1950 330 0 0 0 0 0 0 4800
30
+ 125000 127000 2050 430 0 0 0 0 0 0 5100
31
+
32
+ 127000 129000 2150 530 0 0 0 0 0 0 5400
33
+ 129000 131000 2260 630 0 0 0 0 0 0 5700
34
+ 131000 133000 2360 740 0 0 0 0 0 0 6000
35
+ 133000 135000 2460 840 0 0 0 0 0 0 6300
36
+ 135000 137000 2550 930 0 0 0 0 0 0 6600
37
+
38
+ 137000 139000 2610 990 0 0 0 0 0 0 6800
39
+ 139000 141000 2680 1050 0 0 0 0 0 0 7100
40
+ 141000 143000 2740 1110 0 0 0 0 0 0 7500
41
+ 143000 145000 2800 1170 0 0 0 0 0 0 7800
42
+ 145000 147000 2860 1240 0 0 0 0 0 0 8100
43
+
44
+ 147000 149000 2920 1300 0 0 0 0 0 0 8400
45
+ 149000 151000 2980 1360 0 0 0 0 0 0 8700
46
+ 151000 153000 3050 1430 0 0 0 0 0 0 9000
47
+ 153000 155000 3120 1500 0 0 0 0 0 0 9300
48
+ 155000 157000 3200 1570 0 0 0 0 0 0 9600
49
+
50
+ 157000 159000 3270 1640 0 0 0 0 0 0 9900
51
+ 159000 161000 3340 1720 100 0 0 0 0 0 10200
52
+ 161000 163000 3410 1790 170 0 0 0 0 0 10500
53
+ 163000 165000 3480 1860 250 0 0 0 0 0 10800
54
+ 165000 167000 3550 1930 320 0 0 0 0 0 11100
55
+
56
+ 167000 169000 3620 2000 390 0 0 0 0 0 11400
57
+ 169000 171000 3700 2070 460 0 0 0 0 0 11700
58
+ 171000 173000 3770 2140 530 0 0 0 0 0 12000
59
+ 173000 175000 3840 2220 600 0 0 0 0 0 12400
60
+ 175000 177000 3910 2290 670 0 0 0 0 0 12700
61
+
62
+ 177000 179000 3980 2360 750 0 0 0 0 0 13200
63
+ 179000 181000 4050 2430 820 0 0 0 0 0 13900
64
+ 181000 183000 4120 2500 890 0 0 0 0 0 14600
65
+ 183000 185000 4200 2570 960 0 0 0 0 0 15300
66
+ 185000 187000 4270 2640 1030 0 0 0 0 0 16000
67
+
68
+ 187000 189000 4340 2720 1100 0 0 0 0 0 16700
69
+ 189000 191000 4410 2790 1170 0 0 0 0 0 17500
70
+ 191000 193000 4480 2860 1250 0 0 0 0 0 18100
71
+ 193000 195000 4550 2930 1320 0 0 0 0 0 18800
72
+ 195000 197000 4630 3000 1390 0 0 0 0 0 19500
73
+
74
+ 197000 199000 4700 3070 1460 0 0 0 0 0 20200
75
+ 199000 201000 4770 3140 1530 0 0 0 0 0 20900
76
+ 201000 203000 4840 3220 1600 0 0 0 0 0 21500
77
+ 203000 205000 4910 3290 1670 0 0 0 0 0 22200
78
+ 205000 207000 4980 3360 1750 130 0 0 0 0 22700
79
+
80
+ 207000 209000 5050 3430 1820 200 0 0 0 0 23300
81
+ 209000 211000 5130 3500 1890 280 0 0 0 0 23900
82
+ 211000 213000 5200 3570 1960 350 0 0 0 0 24400
83
+ 213000 215000 5270 3640 2030 420 0 0 0 0 25000
84
+ 215000 217000 5340 3720 2100 490 0 0 0 0 25500
85
+
86
+ 217000 219000 5410 3790 2170 560 0 0 0 0 26100
87
+ 219000 221000 5480 3860 2250 630 0 0 0 0 26800
88
+ 221000 224000 5560 3950 2340 710 0 0 0 0 27400
89
+ 224000 227000 5680 4060 2440 830 0 0 0 0 28400
90
+ 227000 230000 5780 4170 2550 930 0 0 0 0 29300
91
+
92
+ 230000 233000 5890 4280 2650 1040 0 0 0 0 30300
93
+ 233000 236000 5990 4380 2770 1140 0 0 0 0 31300
94
+ 236000 239000 6110 4490 2870 1260 0 0 0 0 32400
95
+ 239000 242000 6210 4590 2980 1360 0 0 0 0 33400
96
+ 242000 245000 6320 4710 3080 1470 0 0 0 0 34400
97
+
98
+ 245000 248000 6420 4810 3200 1570 0 0 0 0 35400
99
+ 248000 251000 6530 4920 3300 1680 0 0 0 0 36400
100
+ 251000 254000 6640 5020 3410 1790 170 0 0 0 37500
101
+ 254000 257000 6750 5140 3510 1900 290 0 0 0 38500
102
+ 257000 260000 6850 5240 3620 2000 390 0 0 0 39400
103
+
104
+ 260000 263000 6960 5350 3730 2110 500 0 0 0 40400
105
+ 263000 266000 7070 5450 3840 2220 600 0 0 0 41500
106
+ 266000 269000 7180 5560 3940 2330 710 0 0 0 42500
107
+ 269000 272000 7280 5670 4050 2430 820 0 0 0 43500
108
+ 272000 275000 7390 5780 4160 2540 930 0 0 0 44500
109
+
110
+ 275000 278000 7490 5880 4270 2640 1030 0 0 0 45500
111
+ 278000 281000 7610 5990 4370 2760 1140 0 0 0 46600
112
+ 281000 284000 7710 6100 4480 2860 1250 0 0 0 47600
113
+ 284000 287000 7820 6210 4580 2970 1360 0 0 0 48600
114
+ 287000 290000 7920 6310 4700 3070 1460 0 0 0 49700
115
+
116
+ 290000 293000 8040 6420 4800 3190 1570 0 0 0 50900
117
+ 293000 296000 8140 6520 4910 3290 1670 0 0 0 52100
118
+ 296000 299000 8250 6640 5010 3400 1790 160 0 0 52900
119
+ 299000 302000 8420 6740 5130 3510 1890 280 0 0 53700
120
+ 302000 305000 8670 6860 5250 3630 2010 400 0 0 54500
121
+
122
+ 305000 308000 8910 6980 5370 3760 2130 520 0 0 55200
123
+ 308000 311000 9160 7110 5490 3880 2260 640 0 0 56100
124
+ 311000 314000 9400 7230 5620 4000 2380 770 0 0 56900
125
+ 314000 317000 9650 7350 5740 4120 2500 890 0 0 57800
126
+ 317000 320000 9890 7470 5860 4250 2620 1010 0 0 58800
127
+
128
+ 320000 323000 10140 7600 5980 4370 2750 1130 0 0 59800
129
+ 323000 326000 10380 7720 6110 4490 2870 1260 0 0 60900
130
+ 326000 329000 10630 7840 6230 4610 2990 1380 0 0 61900
131
+ 329000 332000 10870 7960 6350 4740 3110 1500 0 0 62900
132
+ 332000 335000 11120 8090 6470 4860 3240 1620 0 0 63900
133
+
134
+ 335000 338000 11360 8210 6600 4980 3360 1750 130 0 64900
135
+ 338000 341000 11610 8370 6720 5110 3480 1870 260 0 66000
136
+ 341000 344000 11850 8620 6840 5230 3600 1990 380 0 67000
137
+ 344000 347000 12100 8860 6960 5350 3730 2110 500 0 68000
138
+ 347000 350000 12340 9110 7090 5470 3850 2240 620 0 69000
139
+
140
+ 350000 353000 12590 9350 7210 5600 3970 2360 750 0 70000
141
+ 353000 356000 12830 9600 7330 5720 4090 2480 870 0 71100
142
+ 356000 359000 13080 9840 7450 5840 4220 2600 990 0 72100
143
+ 359000 362000 13320 10090 7580 5960 4340 2730 1110 0 73100
144
+ 362000 365000 13570 10330 7700 6090 4460 2850 1240 0 74200
145
+
146
+ 365000 368000 13810 10580 7820 6210 4580 2970 1360 0 75200
147
+ 368000 371000 14060 10820 7940 6330 4710 3090 1480 0 76200
148
+ 371000 374000 14300 11070 8070 6450 4830 3220 1600 0 77100
149
+ 374000 377000 14550 11310 8190 6580 4950 3340 1730 100 78100
150
+ 377000 380000 14790 11560 8320 6700 5070 3460 1850 220 79000
151
+
152
+ 380000 383000 15040 11800 8570 6820 5200 3580 1970 350 79900
153
+ 383000 386000 15280 12050 8810 6940 5320 3710 2090 470 81400
154
+ 386000 389000 15530 12290 9060 7070 5440 3830 2220 590 83100
155
+ 389000 392000 15770 12540 9300 7190 5560 3950 2340 710 84700
156
+ 392000 395000 16020 12780 9550 7310 5690 4070 2460 840 86500
157
+
158
+ 395000 398000 16260 13030 9790 7430 5810 4200 2580 960 88200
159
+ 398000 401000 16510 13270 10040 7560 5930 4320 2710 1080 89800
160
+ 401000 404000 16750 13520 10280 7680 6050 4440 2830 1200 91600
161
+ 404000 407000 17000 13760 10530 7800 6180 4560 2950 1330 93300
162
+ 407000 410000 17240 14010 10770 7920 6300 4690 3070 1450 95000
163
+
164
+ 410000 413000 17490 14250 11020 8050 6420 4810 3200 1570 96700
165
+ 413000 416000 17730 14500 11260 8170 6540 4930 3320 1690 98300
166
+ 416000 419000 17980 14740 11510 8290 6670 5050 3440 1820 100100
167
+ 419000 422000 18220 14990 11750 8530 6790 5180 3560 1940 101800
168
+ 422000 425000 18470 15230 12000 8770 6910 5300 3690 2060 103400
169
+
170
+ 425000 428000 18710 15480 12240 9020 7030 5420 3810 2180 105200
171
+ 428000 431000 18960 15720 12490 9260 7160 5540 3930 2310 106900
172
+ 431000 434000 19210 15970 12730 9510 7280 5670 4050 2430 108500
173
+ 434000 437000 19450 16210 12980 9750 7400 5790 4180 2550 110300
174
+ 437000 440000 19700 16460 13220 10000 7520 5910 4300 2680 112000
175
+
176
+ 440000 443000 20090 16700 13470 10240 7650 6030 4420 2800 113600
177
+ 443000 446000 20580 16950 13710 10490 7770 6160 4540 2920 115400
178
+ 446000 449000 21070 17190 13960 10730 7890 6280 4670 3040 117100
179
+ 449000 452000 21560 17440 14200 10980 8010 6400 4790 3170 118700
180
+ 452000 455000 22050 17680 14450 11220 8140 6520 4910 3290 120500
181
+
182
+ 455000 458000 22540 17930 14690 11470 8260 6650 5030 3410 122200
183
+ 458000 461000 23030 18170 14940 11710 8470 6770 5160 3530 123800
184
+ 461000 464000 23520 18420 15180 11960 8720 6890 5280 3660 125600
185
+ 464000 467000 24010 18660 15430 12200 8960 7010 5400 3780 127300
186
+ 467000 470000 24500 18910 15670 12450 9210 7140 5520 3900 129000
187
+
188
+ 470000 473000 24990 19150 15920 12690 9450 7260 5650 4020 130700
189
+ 473000 476000 25480 19400 16160 12940 9700 7380 5770 4150 132300
190
+ 476000 479000 25970 19640 16410 13180 9940 7500 5890 4270 134000
191
+ 479000 482000 26460 20000 16650 13430 10190 7630 6010 4390 135600
192
+ 482000 485000 26950 20490 16900 13670 10430 7750 6140 4510 137200
193
+
194
+ 485000 488000 27440 20980 17140 13920 10680 7870 6260 4640 138800
195
+ 488000 491000 27930 21470 17390 14160 10920 7990 6380 4760 140400
196
+ 491000 494000 28420 21960 17630 14410 11170 8120 6500 4880 142000
197
+ 494000 497000 28910 22450 17880 14650 11410 8240 6630 5000 143700
198
+ 497000 500000 29400 22940 18120 14900 11660 8420 6750 5130 145200
199
+
200
+ 500000 503000 29890 23430 18370 15140 11900 8670 6870 5250 146800
201
+ 503000 506000 30380 23920 18610 15390 12150 8910 6990 5370 148500
202
+ 506000 509000 30880 24410 18860 15630 12390 9160 7120 5490 150100
203
+ 509000 512000 31370 24900 19100 15880 12640 9400 7240 5620 151600
204
+ 512000 515000 31860 25390 19350 16120 12890 9650 7360 5740 153300
205
+
206
+ 515000 518000 32350 25880 19590 16370 13130 9890 7480 5860 154900
207
+ 518000 521000 32840 26370 19900 16610 13380 10140 7610 5980 156500
208
+ 521000 524000 33330 26860 20390 16860 13620 10380 7730 6110 158100
209
+ 524000 527000 33820 27350 20880 17100 13870 10630 7850 6230 159600
210
+ 527000 530000 34310 27840 21370 17350 14110 10870 7970 6350 161000
211
+
212
+ 530000 533000 34800 28330 21860 17590 14360 11120 8100 6470 162500
213
+ 533000 536000 35290 28820 22350 17840 14600 11360 8220 6600 164000
214
+ 536000 539000 35780 29310 22840 18080 14850 11610 8380 6720 165400
215
+ 539000 542000 36270 29800 23330 18330 15090 11850 8630 6840 166900
216
+ 542000 545000 36760 30290 23820 18570 15340 12100 8870 6960 168400
217
+
218
+ 545000 548000 37250 30780 24310 18820 15580 12340 9120 7090 169900
219
+ 548000 551000 37740 31270 24800 19060 15830 12590 9360 7210 171300
220
+ 551000 554000 38280 31810 25340 19330 16100 12860 9630 7350 172800
221
+ 554000 557000 38830 32370 25890 19600 16380 13140 9900 7480 174300
222
+ 557000 560000 39380 32920 26440 19980 16650 13420 10180 7630 175700
223
+
224
+ 560000 563000 39930 33470 27000 20530 16930 13690 10460 7760 177200
225
+ 563000 566000 40480 34020 27550 21080 17200 13970 10730 7900 178700
226
+ 566000 569000 41030 34570 28100 21630 17480 14240 11010 8040 180100
227
+ 569000 572000 41590 35120 28650 22190 17760 14520 11280 8180 181600
228
+ 572000 575000 42140 35670 29200 22740 18030 14790 11560 8330 183100
229
+
230
+ 575000 578000 42690 36230 29750 23290 18310 15070 11830 8610 184600
231
+ 578000 581000 43240 36780 30300 23840 18580 15350 12110 8880 186000
232
+ 581000 584000 43790 37330 30850 24390 18860 15620 12380 9160 187500
233
+ 584000 587000 44340 37880 31410 24940 19130 15900 12660 9430 189000
234
+ 587000 590000 44890 38430 31960 25490 19410 16170 12940 9710 190400
235
+
236
+ 590000 593000 45440 38980 32510 26050 19680 16450 13210 9990 191900
237
+ 593000 596000 46000 39530 33060 26600 20130 16720 13490 10260 193400
238
+ 596000 599000 46550 40080 33610 27150 20690 17000 13760 10540 194800
239
+ 599000 602000 47100 40640 34160 27700 21240 17280 14040 10810 196300
240
+ 602000 605000 47650 41190 34710 28250 21790 17550 14310 11090 197800
241
+
242
+ 605000 608000 48200 41740 35270 28800 22340 17830 14590 11360 199300
243
+ 608000 611000 48750 42290 35820 29350 22890 18100 14870 11640 200700
244
+ 611000 614000 49300 42840 36370 29910 23440 18380 15140 11920 202200
245
+ 614000 617000 49860 43390 36920 30460 23990 18650 15420 12190 203700
246
+ 617000 620000 50410 43940 37470 31010 24540 18930 15690 12470 205100
247
+
248
+ 620000 623000 50960 44500 38020 31560 25100 19210 15970 12740 206700
249
+ 623000 626000 51510 45050 38570 32110 25650 19480 16240 13020 208100
250
+ 626000 629000 52060 45600 39120 32660 26200 19760 16520 13290 209500
251
+ 629000 632000 52610 46150 39680 33210 26750 20280 16800 13570 211000
252
+ 632000 635000 53160 46700 40230 33760 27300 20830 17070 13840 212500
253
+
254
+ 635000 638000 53710 47250 40780 34320 27850 21380 17350 14120 214000
255
+ 638000 641000 54270 47800 41330 34870 28400 21930 17620 14400 214900
256
+ 641000 644000 54820 48350 41880 35420 28960 22480 17900 14670 215900
257
+ 644000 647000 55370 48910 42430 35970 29510 23030 18170 14950 217000
258
+ 647000 650000 55920 49460 42980 36520 30060 23590 18450 15220 218000
259
+
260
+ 650000 653000 56470 50010 43540 37070 30610 24140 18730 15500 219000
261
+ 653000 656000 57020 50560 44090 37620 31160 24690 19000 15770 220000
262
+ 656000 659000 57570 51110 44640 38180 31710 25240 19280 16050 221000
263
+ 659000 662000 58130 51660 45190 38730 32260 25790 19550 16330 222100
264
+ 662000 665000 58680 52210 45740 39280 32810 26340 19880 16600 223100
265
+
266
+ 665000 668000 59230 52770 46290 39830 33370 26890 20430 16880 224100
267
+ 668000 671000 59780 53320 46840 40380 33920 27440 20980 17150 225000
268
+ 671000 674000 60330 53870 47390 40930 34470 28000 21530 17430 226000
269
+ 674000 677000 60880 54420 47950 41480 35020 28550 22080 17700 227100
270
+ 677000 680000 61430 54970 48500 42030 35570 29100 22640 17980 228100
271
+
272
+ 680000 683000 61980 55520 49050 42590 36120 29650 23190 18260 229100
273
+ 683000 686000 62540 56070 49600 43140 36670 30200 23740 18530 230400
274
+ 686000 689000 63090 56620 50150 43690 37230 30750 24290 18810 232100
275
+ 689000 692000 63640 57180 50700 44240 37780 31300 24840 19080 233600
276
+ 692000 695000 64190 57730 51250 44790 38330 31860 25390 19360 235100
277
+
278
+ 695000 698000 64740 58280 51810 45340 38880 32410 25940 19630 236700
279
+ 698000 701000 65290 58830 52360 45890 39430 32960 26490 20030 238200
280
+ 701000 704000 65840 59380 52910 46450 39980 33510 27050 20580 239700
281
+ 704000 707000 66400 59930 53460 47000 40530 34060 27600 21130 241300
282
+ 707000 710000 66960 60480 54020 47550 41090 34620 28150 21690 242900
283
+
284
+ 710000 713000 67570 61100 54630 48160 41700 35230 28760 22300 244400
285
+ 713000 716000 68180 61710 55250 48770 42310 35850 29370 22910 246000
286
+ 716000 719000 68790 62320 55860 49390 42920 36460 29990 23520 247500
287
+ 719000 722000 69410 62930 56470 50000 43540 37070 30600 24140 249000
288
+ 722000 725000 70020 63550 57080 50610 44150 37690 31210 24750 250600
289
+
290
+ 725000 728000 70630 64160 57700 51220 44760 38300 31820 25360 252200
291
+ 728000 731000 71250 64770 58310 51840 45370 38910 32440 25970 253700
292
+ 731000 734000 71860 65380 58920 52450 45990 39520 33050 26590 255300
293
+ 734000 737000 72470 66000 59530 53060 46600 40140 33660 27200 256800
294
+ 737000 740000 73080 66610 60150 53670 47210 40750 34270 27810 258300
@@ -1,4 +1,4 @@
1
- "賞与の金額に乗ずべき率" "扶養親族等の数(0人)
1
+ 賞与の金額に乗ずべき率 "扶養親族等の数(0人)
2
2
  前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(0人)
3
3
  前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(1人)
4
4
  前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(1人)
@@ -17,24 +17,24 @@
17
17
  前月の社会保険料等控除後の給与等の金額(未満)" "乙
18
18
  前月の社会保険料等控除後の給与等の金額(以上)" "乙
19
19
  前月の社会保険料等控除後の給与等の金額(未満)"
20
- 0 0 68000 0 94000 0 133000 0 171000 0 210000 0 243000 0 275000 0 308000
21
- 0.02042 68000 79000 94000 243000 133000 269000 171000 295000 210000 300000 243000 300000 275000 333000 308000 372000
22
- 0.04084 79000 252000 243000 282000 269000 312000 295000 345000 300000 378000 300000 406000 333000 431000 372000 456000
23
- 0.06126 252000 300000 282000 338000 312000 369000 345000 398000 378000 424000 406000 450000 431000 476000 456000 502000
24
- 0.08168 300000 334000 338000 365000 369000 393000 398000 417000 424000 444000 450000 472000 476000 499000 502000 527000
25
- 0.1021 334000 363000 365000 394000 393000 420000 417000 445000 444000 470000 472000 496000 499000 525000 527000 553000 0 239000
26
- 0.12252 363000 395000 394000 422000 420000 450000 445000 477000 470000 504000 496000 531000 525000 559000 553000 588000
27
- 0.14294 395000 426000 422000 455000 450000 484000 477000 513000 504000 543000 531000 574000 559000 602000 588000 627000
28
- 0.16336 426000 550000 455000 550000 484000 550000 513000 557000 543000 591000 574000 618000 602000 645000 627000 671000
29
- 0.18378 550000 647000 550000 663000 550000 678000 557000 693000 591000 708000 618000 723000 645000 739000 671000 754000
30
- 0.2042 647000 699000 663000 720000 678000 741000 693000 762000 708000 783000 723000 804000 739000 825000 754000 848000 239000 296000
31
- 0.22462 699000 730000 720000 752000 741000 774000 762000 796000 783000 818000 804000 841000 825000 865000 848000 890000
32
- 0.24504 730000 764000 752000 787000 774000 810000 796000 833000 818000 859000 841000 885000 865000 911000 890000 937000
33
- 0.26546 764000 804000 787000 826000 810000 852000 833000 879000 859000 906000 885000 934000 911000 961000 937000 988000
34
- 0.28588 804000 857000 826000 885000 852000 914000 879000 942000 906000 970000 934000 998000 961000 1026000 988000 1054000
35
- 0.3063 857000 926000 885000 956000 914000 987000 942000 1017000 970000 1048000 998000 1078000 1026000 1108000 1054000 1139000 296000 528000
36
- 0.32672 926000 1321000 956000 1346000 987000 1370000 1017000 1394000 1048000 1419000 1078000 1443000 1108000 1468000 1139000 1492000
37
- 0.35735 1321000 1532000 1346000 1560000 1370000 1589000 1394000 1617000 1419000 1645000 1443000 1674000 1468000 1702000 1492000 1730000
38
- 0.38798 1532000 2661000 1560000 2685000 1589000 2708000 1617000 2732000 1645000 2756000 1674000 2780000 1702000 2803000 1730000 2827000 528000 1135000
39
- 0.41861 2661000 3548000 2685000 3580000 2708000 3611000 2732000 3643000 2756000 3675000 2780000 3706000 2803000 3738000 2827000 3770000
40
- 0.45945 3548000 - 3580000 - 3611000 - 3643000 - 3675000 - 3706000 - 3738000 - 3770000 - 1135000 -
20
+ 0.000 0 68 0 94 0 133 0 171 0 210 0 243 0 275 0 308
21
+ 2.042 68 79 94 243 133 269 171 295 210 300 243 300 275 333 308 372
22
+ 4.084 79 252 243 282 269 312 295 345 300 378 300 406 333 431 372 456
23
+ 6.126 252 300 282 338 312 369 345 398 378 424 406 450 431 476 456 502
24
+ 8.168 300 334 338 365 369 393 398 417 424 444 450 472 476 499 502 527
25
+ 10.210 334 363 365 394 393 420 417 445 444 470 472 496 499 525 527 553 0 239
26
+ 12.252 363 395 394 422 420 450 445 477 470 504 496 531 525 559 553 588
27
+ 14.294 395 426 422 455 450 484 477 513 504 543 531 574 559 602 588 627
28
+ 16.336 426 550 455 550 484 550 513 557 543 591 574 618 602 645 627 671
29
+ 18.378 550 647 550 663 550 678 557 693 591 708 618 723 645 739 671 754
30
+ 20.420 647 699 663 720 678 741 693 762 708 783 723 804 739 825 754 848 239 296
31
+ 22.462 699 730 720 752 741 774 762 796 783 818 804 841 825 865 848 890
32
+ 24.504 730 764 752 787 774 810 796 833 818 859 841 885 865 911 890 937
33
+ 26.546 764 804 787 826 810 852 833 879 859 906 885 934 911 961 937 988
34
+ 28.588 804 857 826 885 852 914 879 942 906 970 934 998 961 1026 988 1054
35
+ 30.630 857 926 885 956 914 987 942 1017 970 1048 998 1078 1026 1108 1054 1139 296 528
36
+ 32.672 926 1321 956 1346 987 1370 1017 1394 1048 1419 1078 1443 1108 1468 1139 1492
37
+ 35.735 1321 1532 1346 1560 1370 1589 1394 1617 1419 1645 1443 1674 1468 1702 1492 1730
38
+ 38.798 1532 2661 1560 2685 1589 2708 1617 2732 1645 2756 1674 2780 1702 2803 1730 2827 528 1135
39
+ 41.861 2661 3548 2685 3580 2708 3611 2732 3643 2756 3675 2780 3706 2803 3738 2827 3770
40
+ 45.945 3548 - 3580 - 3611 - 3643 - 3675 - 3706 - 3738 - 3770 - 1135 -
@@ -0,0 +1,40 @@
1
+ 賞与の金額に乗ずべき率 "扶養親族等の数(0人)
2
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(0人)
3
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(1人)
4
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(1人)
5
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(2人)
6
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(2人)
7
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(3人)
8
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(3人)
9
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(4人)
10
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(4人)
11
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(5人)
12
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(5人)
13
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(6人)
14
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(6人)
15
+ 前月の社会保険料等控除後の給与等の金額(未満)" "扶養親族等の数(7人)
16
+ 前月の社会保険料等控除後の給与等の金額(以上)" "扶養親族等の数(7人)
17
+ 前月の社会保険料等控除後の給与等の金額(未満)" "乙
18
+ 前月の社会保険料等控除後の給与等の金額(以上)" "乙
19
+ 前月の社会保険料等控除後の給与等の金額(未満)"
20
+ 0.000 0 68 0 94 0 133 0 171 0 210 0 243 0 275 0 308
21
+ 2.042 68 79 94 243 133 269 171 295 210 300 243 300 275 333 308 372
22
+ 4.084 79 252 243 282 269 312 295 345 300 378 300 406 333 431 372 456
23
+ 6.126 252 300 282 338 312 369 345 398 378 424 406 450 431 476 456 502
24
+ 8.168 300 334 338 365 369 393 398 417 424 444 450 472 476 499 502 523
25
+ 10.210 334 363 365 394 393 420 417 445 444 470 472 496 499 521 523 545 0 222
26
+ 12.252 363 395 394 422 420 450 445 477 470 503 496 525 521 547 545 571
27
+ 14.294 395 426 422 455 450 484 477 510 503 534 525 557 547 582 571 607
28
+ 16.336 426 520 455 520 484 520 510 544 534 570 557 597 582 623 607 650
29
+ 18.378 520 601 520 617 520 632 544 647 570 662 597 677 623 693 650 708
30
+ 20.420 601 678 617 699 632 721 647 745 662 768 677 792 693 815 708 838 222 293
31
+ 22.462 678 708 699 733 721 757 745 782 768 806 792 831 815 856 838 880
32
+ 24.504 708 745 733 771 757 797 782 823 806 849 831 875 856 900 880 926
33
+ 26.546 745 788 771 814 797 841 823 868 849 896 875 923 900 950 926 978
34
+ 28.588 788 846 814 874 841 902 868 931 896 959 923 987 950 1015 978 1043
35
+ 30.630 846 914 874 944 902 975 931 1005 959 1036 987 1066 1015 1096 1043 1127 293 524
36
+ 32.672 914 1312 944 1336 975 1360 1005 1385 1036 1409 1066 1434 1096 1458 1127 1482
37
+ 35.735 1312 1521 1336 1526 1360 1526 1385 1538 1409 1555 1434 1555 1458 1555 1482 1583
38
+ 38.798 1521 2621 1526 2645 1526 2669 1538 2693 1555 2716 1555 2740 1555 2764 1583 2788 524 1118
39
+ 41.861 2621 3495 2645 3527 2669 3559 2693 3590 2716 3622 2740 3654 2764 3685 2788 3717
40
+ 45.945 3495 - 3527 - 3559 - 3590 - 3622 - 3654 - 3685 - 3717 - 1118 -
@@ -14,4 +14,6 @@ module TaxJp
14
14
  TAX_TYPE_EXCLUSIVE = 3 => '外税',
15
15
  }
16
16
 
17
+ INTEGER_MAX = 2147483647
18
+
17
19
  end
@@ -77,7 +77,7 @@ module TaxJp
77
77
  ret = amount.to_s
78
78
 
79
79
  if ret == '-'
80
- ret = 2147483647
80
+ ret = TaxJp::INTEGER_MAX
81
81
  else
82
82
  ret = ret.gsub(',', '')
83
83
  if ret.index('.')
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -14,7 +14,10 @@ class TaxJp::WithheldTaxes::BonusDbBuilder < TaxJp::DbBuilder
14
14
 
15
15
  CSV.foreach(filename, col_sep: "\t") do |row|
16
16
  next if row[1].to_i == 0 && row[2].to_i == 0
17
- db.execute(insert_sql, [valid_from.to_s, valid_until.to_s] + row.map{|col| TaxJp::Utils.normalize_amount(col)})
17
+ values = row.map{|col| TaxJp::Utils.normalize_amount(col)}
18
+ ratio = values.shift / 100
19
+ values = values.map{|value| value < TaxJp::INTEGER_MAX ? value * 1000 : value }
20
+ db.execute(insert_sql, [valid_from.to_s, valid_until.to_s, ratio] + values)
18
21
  end
19
22
  end
20
23
  end
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.1.2
4
+ version: 1.1.3
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: 2019-11-04 00:00:00.000000000 Z
12
+ date: 2020-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap
@@ -161,7 +161,9 @@ files:
161
161
  - data/源泉徴収税/源泉徴収税月額-20130101-20151231.tsv
162
162
  - data/源泉徴収税/源泉徴収税月額-20160101-20161231.tsv
163
163
  - data/源泉徴収税/源泉徴収税月額-20170101-20191231.tsv
164
+ - data/源泉徴収税/源泉徴収税月額-20200101-20201231.tsv
164
165
  - data/源泉徴収税/源泉徴収税賞与-20180101-20191231.tsv
166
+ - data/源泉徴収税/源泉徴収税賞与-20200101-20201231.tsv
165
167
  - data/源泉徴収税月額.db
166
168
  - data/源泉徴収税賞与.db
167
169
  - data/社会保険料.db