luca-jp 0.20.0 → 0.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba1a44cc2c4fb3c68846033a3f74f4791a298a9d0c4efcd0786d9cebc75954ce
4
- data.tar.gz: 30ab64d9b5a8a733848ca07968f545958e8f28584ad68425763b0e7e13e8250e
3
+ metadata.gz: 86f9348cd5fe742fe66e493c0381f53847681f534757b6b8e708a3e271a5929b
4
+ data.tar.gz: 30596a7a821462a685f32ea8ebbccf8db802c68ccad60c11d963417a47c67014
5
5
  SHA512:
6
- metadata.gz: 47ced553bf51ef56c53875947c421ca42ff76d28aa29a8f1239c7b88908dcaf9a0d8e61491b69ec2e62e249d7d34e5c2329e158a4b086a359565f295217eec3c
7
- data.tar.gz: 217197462328275f4ccf4a59ec706d5515196036b1eb3f0950bd701a0017d24ba0a79f695170e11e7ca463c6aa23ef9c00aed5e570e92ed8279da2584b79f5d1
6
+ metadata.gz: '091a70016c17875a79e917a5c7d5e0001852ab6e64c00e0f1d372a6129f17de2deec91116cdcd73c5f22a6b59ae6eeb6ff9e55799788f0230f28cacf2b69c78e'
7
+ data.tar.gz: 41f7c60183071e68a1788f928bd3badf970eecb17da8e7dadba8b1556a6dac64b56e4517d49663579998e8dab637a5a23a23527bc5f45b07ca870e11731eb994
data/lib/luca/jp/aoiro.rb CHANGED
@@ -333,19 +333,16 @@ module Luca
333
333
  end
334
334
 
335
335
  def 適用額明細フォーム
336
- return nil if @確定法人税額 == 0
336
+ return nil if 中小企業の軽減税率対象所得(所得金額) == 0
337
337
 
338
338
  'HOE990'
339
339
  end
340
340
 
341
341
  def 適用額明細
342
- if 期末資本金 <= 10_000_000
342
+ unless 軽減税率不適用法人
343
343
  STDERR.puts "適用額明細: 必要に応じて「少額減価償却資産の損金算入」(67条の5第1項, 00277。別表16[7])の確認が必要"
344
344
  end
345
- if @確定法人税額 == 0
346
- STDERR.puts "別表一:適用額明細書の有無の確認が必要"
347
- return nil
348
- end
345
+ return nil if 適用額明細フォーム.nil?
349
346
 
350
347
  render_erb(search_template('tekiyougaku.xml.erb'))
351
348
  end
@@ -30,13 +30,13 @@ module Luca
30
30
  # -----------------------------------------------------
31
31
 
32
32
  def 中小企業の軽減税率対象所得(所得 = nil)
33
+ return 0 if 軽減税率不適用法人
34
+
33
35
  所得 ||= 所得金額
34
36
  return 0 if 所得 <= 0
35
37
 
36
38
  if 所得 >= 8_000_000
37
39
  8_000_000
38
- elsif 所得 < 0
39
- 0
40
40
  else
41
41
  (所得 / 1000).floor * 1000
42
42
  end
@@ -48,16 +48,19 @@ module Luca
48
48
 
49
49
  def 中小企業の軽減税率対象を超える所得(所得 = nil)
50
50
  所得 ||= 所得金額
51
- return 0 if 所得 <= 0
51
+ return 0 if 所得 <= 8_000_000
52
52
 
53
- if 所得 <= 8_000_000
54
- 0
55
- else
56
- ((所得 - 8_000_000) / 1000).floor * 1000
57
- end
53
+ ((所得 - 8_000_000) / 1000).floor * 1000
58
54
  end
59
55
 
60
56
  def 一般区分の税額(所得 = nil)
57
+ 所得 ||= 所得金額
58
+ return 0 if 所得 <= 0
59
+
60
+ if 軽減税率不適用法人
61
+ return ((所得 / 1000).floor * 1000 * 23.2 / 100).to_i
62
+ end
63
+
61
64
  (中小企業の軽減税率対象を超える所得(所得) * 23.2 / 100).to_i
62
65
  end
63
66
 
@@ -26,7 +26,7 @@
26
26
  <BGA00260><kubun_CD>1</kubun_CD></BGA00260>
27
27
  </BGA00210>
28
28
  <%= render_attr('BGA00290', @概況売上) %>
29
- <BGA00300><kubun_CD>1</kubun_CD></BGA00300>
29
+ <BGA00300><kubun_CD><%= 適用額明細フォーム ? "1" : "2" -%></kubun_CD></BGA00300>
30
30
  <BGA00330>
31
31
  <BGA00340 IDREF="JIGYO_NENDO_FROM"/>
32
32
  <BGA00350 IDREF="JIGYO_NENDO_TO"/>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Luca
4
4
  module Jp
5
- VERSION = '0.20.0'
5
+ VERSION = '0.20.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luca-jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-21 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lucabook