luca-jp 0.2.3 → 0.2.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: 971706dfd736c70a5dffcdda324a58d897af8a50387c1a69c2af3e22e34c0eff
4
- data.tar.gz: 957ad4e2e2dc19be39a17f390a5f281544e07b7f3417e04be1f5db9f04f31e15
3
+ metadata.gz: b52a931f2268427904135b52cac066411eeb52256c0c136b30862a4ea0d4771e
4
+ data.tar.gz: c83a16ff2ae64a8199ce8768da53d0cc2987f2b1ee6955de47a6b5718aa14bbb
5
5
  SHA512:
6
- metadata.gz: e77e582ac90d74cb43695ee208ca3a9cb90621695d62205418498ebbd21fd59f0ef97640374d1d2094b8a64a91bccb79d10d26db0d5e658f4890ccd9ca53b11e
7
- data.tar.gz: 3b998804fa9e249471af0ce4b041bbba8e67d898e2a1fc9fffae8262257edb75845a0a228cc94fae06c13430d051d1b7e47db762e573de852dae7cc8650d19b4
6
+ metadata.gz: 85bad06f6af2920dda348d1a61b4521d16a143937dc710e6ea3dca650a65fd5ca1911beb0dd377c97d17eefab7c5e058490f7129339b7834ff476639b6d0f6e5
7
+ data.tar.gz: '048199e0f592eddc0a987ccb43d7b517955fb783db4484f00ed4d5cfa86e0b2ef1d2c577c7e3acec1e1c0f7ea888b0a42c840131152ba91c618544fb9ce753a6'
data/lib/luca/jp/aoiro.rb CHANGED
@@ -326,7 +326,9 @@ module Luca
326
326
  # TODO: 特定同族会社の判定
327
327
  #
328
328
  def 同族会社?
329
+ return nil if it_part_config('shihon_kin').nil?
329
330
  return nil if it_part_config('shihon_kin') > 100_000_000
331
+ return nil if 別表二上位議決権割合.nil? || 別表二上位株割合.nil?
330
332
 
331
333
  return true if 別表二上位議決権割合 > 50 || 別表二上位株割合 > 50
332
334
  false
@@ -30,7 +30,6 @@ module Luca
30
30
 
31
31
  @税額 = 税額計算
32
32
  @均等割 = @税額.dig(:kenmin, :kintou)
33
- @法人税割課税標準 = 法人税割課税標準
34
33
  @確定法人税割 = (@税額.dig(:kenmin, :houjinzei) / 100).floor * 100
35
34
  @地方特別法人事業税中間納付 = prepaid_tax('1854')
36
35
  @所得割中間納付 = prepaid_tax('1855')
@@ -123,7 +123,7 @@ module Luca
123
123
  課税標準 = if 法人税
124
124
  (法人税 / 1000).floor * 1000
125
125
  else
126
- @法人税割課税標準
126
+ 法人税割課税標準
127
127
  end
128
128
  if config.dig('jp', 'eltax', 'office_23ku')
129
129
  [(課税標準 * 7 / 100).floor, 0]
@@ -61,7 +61,7 @@
61
61
  <AAA_RPT_KBN idref="RPT_NAME">確定</AAA_RPT_KBN>
62
62
  <AAA01200 />
63
63
  <AAB00100 />
64
- <AAB00110><%= 法人税割課税標準 %></AAB00110>
64
+ <AAB00110><%= @税額.dig(:houjin, :kokuzei) %></AAB00110>
65
65
  <AAB00200 />
66
66
  <AAB00400 />
67
67
  <AAB00500 />
@@ -85,7 +85,7 @@
85
85
  <AAB02100><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB02100>
86
86
  <AAB02200 />
87
87
  <AAB02300><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB02300>
88
- <AAC00100><%= @法人税割課税標準 %></AAC00100>
88
+ <AAC00100><%= 法人税割課税標準 %></AAC00100>
89
89
  <AAC00200>7.0</AAC00200>
90
90
  <AAC00210><%= 法人税割[0] %></AAC00210>
91
91
  <AAC00300 />
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Luca
4
4
  module Jp
5
- VERSION = '0.2.3'
5
+ VERSION = '0.2.4'
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.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chuma Takahiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lucabook