luca-jp 0.17.2 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/luca-jp +2 -3
- data/lib/luca/jp/aoiro.rb +58 -10
- data/lib/luca/jp/chihouzei.rb +1 -1
- data/lib/luca/jp/common.rb +21 -1
- data/lib/luca/jp/templates/beppyo1.xml.erb +1 -1
- data/lib/luca/jp/templates/beppyo14-2.xml.erb +36 -0
- data/lib/luca/jp/templates/beppyo4.xml.erb +6 -3
- data/lib/luca/jp/templates/beppyo6-1.xml.erb +19 -0
- data/lib/luca/jp/templates/beppyo8-1.xml.erb +12 -0
- data/lib/luca/jp/uchiwake.rb +2 -1
- data/lib/luca/jp/urikake.rb +15 -16
- data/lib/luca/jp/version.rb +1 -1
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b480588d30ad8662d44c2ab3f2c0575fa91250b2b24928d4ccc089f1fee34f48
|
4
|
+
data.tar.gz: 3843a90218ddccc9969d80ec955783a799e3095b6a1a01abe870632a3831f356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a87556ce0b2da2c016624df23efa9e73d00816e0682713596841426d95be8a13b256e6b6ae848b3e6ef16ac10ef9b0e6763b964f6f2cf5a8f14057a6bb52add
|
7
|
+
data.tar.gz: f3dd2de0bc8686bc7643ade70cb584a1e8e5e3d3c9c6019249e8cbcff07ee85c36ac65465df408bc7cb82611624201988f3b42c277ee392128f961238206c1cb
|
data/exe/luca-jp
CHANGED
@@ -37,14 +37,14 @@ class LucaCmd
|
|
37
37
|
puts JSON.dump(accounts)
|
38
38
|
else
|
39
39
|
Luca::Jp::Util.eltax_config('reports').each do |report|
|
40
|
-
File.open("chihouzei-#{report['jichitai_code']}#{report['jimusho_code']}.xml", 'w') { |f| f.puts(Luca::Jp::Chihouzei.range(*auto_range(args, params)).kani(report))}
|
40
|
+
File.open("chihouzei-#{report['jichitai_code']}#{report['jimusho_code']}.xml", 'w') { |f| f.puts(Luca::Jp::Chihouzei.range(*auto_range(args, params)).kani(report, ext_config: ext_config))}
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.urikake(args, params)
|
46
46
|
date = "#{args[0]}-#{args[1]}-1"
|
47
|
-
Luca::Jp::Urikake.new(date).report(params[:
|
47
|
+
Luca::Jp::Urikake.new(date).report(params[:encode])
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.auto_range(args, params)
|
@@ -111,7 +111,6 @@ when 'c', /chihou?zei/
|
|
111
111
|
when /urikake/
|
112
112
|
OptionParser.new do |opt|
|
113
113
|
opt.banner = 'Usage: luca-jp urikake [options] yyyy mm'
|
114
|
-
opt.on('--total VAL', '売掛金総額') { |v| params[:total] = v&.to_i }
|
115
114
|
opt.on('--utf8', 'UTF-8でファイル生成') { |_v| params[:encode] = 'UTF-8' }
|
116
115
|
args = opt.parse!(ARGV)
|
117
116
|
LucaCmd.check_dir('invoices', ext_conf: EXT_CONF) do
|
data/lib/luca/jp/aoiro.rb
CHANGED
@@ -86,15 +86,17 @@ module Luca
|
|
86
86
|
@翌期還付法人税 = 中間還付税額(@確定法人税額 + @確定地方法人税額, @法人税中間納付 + @地方法人税中間納付)
|
87
87
|
@概況売上 = gaikyo('A0')
|
88
88
|
@form_sec = [
|
89
|
-
'HOA112', 'HOA116', 'HOA201', 'HOA420', 'HOA511', 'HOA522',
|
90
|
-
|
89
|
+
'HOA112', 'HOA116', 'HOA201', 'HOA420', 'HOA511', 'HOA522',
|
90
|
+
別表六一フォーム, 別表七フォーム, 別表八一フォーム, 別表十四二フォーム, 別表十五フォーム,
|
91
|
+
適用額明細フォーム,
|
91
92
|
'HOI010', 有価証券内訳フォーム, 買掛金内訳フォーム, 'HOI100', 借入金内訳フォーム, 'HOI141', 地代家賃内訳フォーム, 雑益雑損失内訳フォーム,
|
92
93
|
'HOK010'
|
93
94
|
].compact.map{ |c| form_rdf(c) }.join('')
|
94
95
|
#@extra_form_sec = ['HOI040']
|
95
96
|
@it = it_part
|
96
97
|
@form_data = [
|
97
|
-
別表一, 別表一次葉, 別表二, 別表四簡易, 別表五一, 別表五二,
|
98
|
+
別表一, 別表一次葉, 別表二, 別表四簡易, 別表五一, 別表五二,
|
99
|
+
別表六一, 別表七, 別表八一, 別表十四二, 別表十五,
|
98
100
|
適用額明細,
|
99
101
|
預貯金内訳, 有価証券内訳, 買掛金内訳, 仮受金内訳, 借入金内訳, 役員報酬内訳, 地代家賃内訳, 雑益雑損失内訳,
|
100
102
|
概況説明
|
@@ -203,7 +205,6 @@ module Luca
|
|
203
205
|
].compact.sum
|
204
206
|
|
205
207
|
### 益金不算入額の計算
|
206
|
-
STDERR.puts "別表八「受取配当等の益金算入に関する明細書」の追加作成が必要" if @受取配当金の益金不算入額
|
207
208
|
|
208
209
|
@翌期還付事業税 = ['1504', '1854', '1855', '1856', '1857', '1858']
|
209
210
|
.map{ |code| readable(@bs_data[code]) }
|
@@ -224,7 +225,7 @@ module Luca
|
|
224
225
|
@受取配当金の益金不算入額,
|
225
226
|
@受贈益の益金不算入額,
|
226
227
|
].compact.sum
|
227
|
-
# TODO:
|
228
|
+
# TODO: 外国法人税の損金不算入調整
|
228
229
|
|
229
230
|
render_erb(search_template('beppyo4.xml.erb'))
|
230
231
|
end
|
@@ -259,6 +260,19 @@ module Luca
|
|
259
260
|
render_erb(search_template('beppyo52.xml.erb'))
|
260
261
|
end
|
261
262
|
|
263
|
+
def 別表六一フォーム
|
264
|
+
return nil if @所得税等の税額控除額 <= 0
|
265
|
+
|
266
|
+
'HOB016'
|
267
|
+
end
|
268
|
+
|
269
|
+
def 別表六一
|
270
|
+
return nil if @所得税等の税額控除額 <= 0
|
271
|
+
|
272
|
+
STDERR.puts "別表六一「所得税額の控除に関する明細書」: 受取配当金など所得税額控除の収入金額追記、内訳の追加"
|
273
|
+
render_erb(search_template('beppyo6-1.xml.erb'))
|
274
|
+
end
|
275
|
+
|
262
276
|
def 別表七フォーム
|
263
277
|
return nil if @繰越損失管理.records.length == 0
|
264
278
|
|
@@ -271,9 +285,45 @@ module Luca
|
|
271
285
|
render_erb(search_template('beppyo7.xml.erb'))
|
272
286
|
end
|
273
287
|
|
288
|
+
def 別表八一フォーム
|
289
|
+
return nil unless @受取配当金の益金不算入額
|
290
|
+
|
291
|
+
'HOB800'
|
292
|
+
end
|
293
|
+
|
294
|
+
def 別表八一
|
295
|
+
return nil unless @受取配当金の益金不算入額
|
296
|
+
|
297
|
+
STDERR.puts "別表八(一)「受取配当等の益金算入に関する明細書」: 受取配当額や明細の追記が必要"
|
298
|
+
render_erb(search_template('beppyo8-1.xml.erb'))
|
299
|
+
end
|
300
|
+
|
301
|
+
def 別表十四二フォーム
|
302
|
+
return nil if readable(@pl_data.dig('C1X')||0) <= 0
|
303
|
+
|
304
|
+
'HOE099'
|
305
|
+
end
|
306
|
+
|
307
|
+
def 別表十四二
|
308
|
+
@寄付金 = readable(@pl_data.dig('C1X')||0)
|
309
|
+
return nil if @寄付金 <= 0
|
310
|
+
|
311
|
+
STDERR.puts "別表十四(二)「寄附金の損金算入に関する明細書」: 損金算入可能な寄付金の明細追記が必要"
|
312
|
+
@指定寄付金 = readable(@pl_data.dig('C1X1')||0)
|
313
|
+
render_erb(search_template('beppyo14-2.xml.erb'))
|
314
|
+
end
|
315
|
+
|
316
|
+
def 別表十五フォーム
|
317
|
+
return nil if readable(@pl_data.dig('C1B') || 0) <= 0
|
318
|
+
|
319
|
+
'HOE200'
|
320
|
+
end
|
321
|
+
|
274
322
|
def 別表十五
|
275
323
|
@交際費 = readable(@pl_data.dig('C1B') || 0)
|
276
|
-
|
324
|
+
return nil if @交際費 <= 0
|
325
|
+
|
326
|
+
STDERR.puts "別表十五「交際費等の損金算入に関する明細書」: 飲食費など明細の追記が必要"
|
277
327
|
@限度額 = @交際費 < 4_000_000 ? @交際費 : 4_000_000
|
278
328
|
@不算入額 = @交際費 < 4_000_000 ? 0 : @交際費 - 4_000_000
|
279
329
|
render_erb(search_template('beppyo15.xml.erb'))
|
@@ -482,6 +532,7 @@ module Luca
|
|
482
532
|
def 別表四調整所得合計
|
483
533
|
[
|
484
534
|
別表四調整所得仮計,
|
535
|
+
寄付金の損金不算入額,
|
485
536
|
@所得税等の損金不算入額,
|
486
537
|
].compact.sum
|
487
538
|
end
|
@@ -493,6 +544,7 @@ module Luca
|
|
493
544
|
def 別表四調整所得合計社外流出
|
494
545
|
[
|
495
546
|
別表四調整所得仮計社外流出,
|
547
|
+
寄付金の損金不算入額,
|
496
548
|
@所得税等の損金不算入額,
|
497
549
|
].compact.sum
|
498
550
|
end
|
@@ -685,10 +737,6 @@ module Luca
|
|
685
737
|
[@事業税中間納付, 確定事業税].min
|
686
738
|
end
|
687
739
|
|
688
|
-
def 期末未納事業税
|
689
|
-
readable(@bs_data['5152']) || 0
|
690
|
-
end
|
691
|
-
|
692
740
|
def 別表五一期首差引金額
|
693
741
|
[
|
694
742
|
@当期還付法人税,
|
data/lib/luca/jp/chihouzei.rb
CHANGED
@@ -40,7 +40,7 @@ module Luca
|
|
40
40
|
@地方特別法人事業税中間納付 = prepaid_tax('1854', @jimusho_name)
|
41
41
|
@所得割中間納付 = prepaid_tax('1855', @jimusho_name)
|
42
42
|
@法人税割中間納付 = prepaid_tax(
|
43
|
-
@report_category == 'city' ? '185D' :'1859',
|
43
|
+
@report_category == 'city' ? '185D' : '1859',
|
44
44
|
@jimusho_name
|
45
45
|
)
|
46
46
|
@均等割中間納付 = prepaid_tax(
|
data/lib/luca/jp/common.rb
CHANGED
@@ -109,7 +109,7 @@ module Luca
|
|
109
109
|
@受贈益の益金不算入額,
|
110
110
|
].compact.sum
|
111
111
|
|
112
|
-
@別表四調整所得 = @税引前損益 + @損金不算入額税額未確定 - @益金不算入額税額未確定
|
112
|
+
@別表四調整所得 = @税引前損益 + @損金不算入額税額未確定 - @益金不算入額税額未確定 + 寄付金の損金不算入額
|
113
113
|
# 税引前損益に含まれない税額控除対象所得税の認識
|
114
114
|
@所得税等の損金不算入額 = [
|
115
115
|
@所得税等の損金不算入額,
|
@@ -117,6 +117,26 @@ module Luca
|
|
117
117
|
].compact.sum
|
118
118
|
end
|
119
119
|
|
120
|
+
def 寄付金の損金不算入額
|
121
|
+
寄付金 = LucaSupport::Code.readable(@pl_data.dig('C1X')||0)
|
122
|
+
指定寄付金 = LucaSupport::Code.readable(@pl_data.dig('C1X1')||0)
|
123
|
+
|
124
|
+
[
|
125
|
+
寄付金 - 指定寄付金 - 一般寄付金の損金算入限度額,
|
126
|
+
0
|
127
|
+
].max
|
128
|
+
end
|
129
|
+
|
130
|
+
def 一般寄付金の損金算入限度額
|
131
|
+
寄付金算定所得 = @税引前損益 + @損金不算入額税額未確定 - @益金不算入額税額未確定 + LucaSupport::Code.readable(@pl_data.dig('C1X')||0)
|
132
|
+
期末資本準備金 = LucaSupport::Code.readable(@bs_data.dig('9131')||0)
|
133
|
+
|
134
|
+
([
|
135
|
+
([寄付金算定所得, 0].max * 2.5 / 100).floor,
|
136
|
+
([期末資本金, 期末資本準備金].compact.sum * 2.5 / 1000).floor
|
137
|
+
].compact.sum / 4).floor
|
138
|
+
end
|
139
|
+
|
120
140
|
# -----------------------------------------------------
|
121
141
|
# :section: 繰越損失の計算
|
122
142
|
# -----------------------------------------------------
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<%= render_attr('BGB00330', @所得税等の還付額) %>
|
59
59
|
<%= render_attr('BGB00340', 中間還付税額(@確定法人税額, @法人税中間納付)) %>
|
60
60
|
<BGB00380>
|
61
|
-
<%= render_attr('BGB00400', 中間還付税額(@確定法人税額, @法人税中間納付)) %>
|
61
|
+
<%= render_attr('BGB00400', @所得税等の還付額 + 中間還付税額(@確定法人税額, @法人税中間納付)) %>
|
62
62
|
</BGB00380>
|
63
63
|
</BGB00320>
|
64
64
|
<%= render_attr('BGB00460', 当期控除計) %>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<HOE099 page="1" VR="12.0" id="HOE099" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
|
+
<WWA00000>
|
3
|
+
<WWA00010>
|
4
|
+
<WWA00020 IDREF="JIGYO_NENDO_FROM"/>
|
5
|
+
<WWA00030 IDREF="JIGYO_NENDO_TO"/>
|
6
|
+
</WWA00010>
|
7
|
+
<WWA00040 IDREF="NOZEISHA_NM"/>
|
8
|
+
</WWA00000>
|
9
|
+
<WWB00000>
|
10
|
+
<WWB00010>
|
11
|
+
<WWB00020>
|
12
|
+
<%= render_attr('WWB00030', @指定寄付金) %>
|
13
|
+
<%= render_attr('WWB00050', @寄付金 - @指定寄付金) %>
|
14
|
+
<%= render_attr('WWB00060', @寄付金) %>
|
15
|
+
<%= render_attr('WWB00080', @寄付金) %>
|
16
|
+
</WWB00020>
|
17
|
+
<%= render_attr('WWB00090', 別表四調整所得仮計) %>
|
18
|
+
<%= render_attr('WWB00100', [@寄付金 + 別表四調整所得仮計, 0].max) %>
|
19
|
+
<%= render_attr('WWB00110', ([@寄付金 + 別表四調整所得仮計, 0].max * 2.5 / 100).floor) %>
|
20
|
+
<%= render_attr('WWB00120', [期末資本金, @期末資本準備金].sum) %>
|
21
|
+
<WWB00130>
|
22
|
+
<%= render_attr('WWB00150', [期末資本金, @期末資本準備金].compact.sum) %>
|
23
|
+
</WWB00130>
|
24
|
+
<%= render_attr('WWB00160', ([期末資本金, @期末資本準備金].compact.sum * 2.5 / 1000).floor) %>
|
25
|
+
<%= render_attr('WWB00170', 一般寄付金の損金算入限度額) %>
|
26
|
+
</WWB00010>
|
27
|
+
<%# WWB00180 特定公益増進法人等に対する寄附金の特別損金算入限度額の計算 %>
|
28
|
+
<%= render_attr('WWB00230', @指定寄付金) %>
|
29
|
+
<%# WWB00240 国外関連者に対する寄附金額及び本店等に対する内部寄附金額 %>
|
30
|
+
<%= render_attr('WWB00250', @寄付金) %>
|
31
|
+
<WWB00260>
|
32
|
+
<%= render_attr('WWB00270', 寄付金の損金不算入額) %>
|
33
|
+
<%= render_attr('WWB00300', 寄付金の損金不算入額) %>
|
34
|
+
</WWB00260>
|
35
|
+
</WWB00000>
|
36
|
+
</HOE099>
|
@@ -114,7 +114,10 @@
|
|
114
114
|
<%= render_attr('ARZ10050', 別表四調整所得仮計社外流出) %>
|
115
115
|
</ARZ10030>
|
116
116
|
</ARZ10000>
|
117
|
-
|
117
|
+
<ARF00000>
|
118
|
+
<%= render_attr('ARF00010', 寄付金の損金不算入額) %>
|
119
|
+
<%= render_attr('ARF00020', 寄付金の損金不算入額) %>
|
120
|
+
</ARF00000>
|
118
121
|
<% if @所得税等の損金不算入額 %>
|
119
122
|
<ARI00000>
|
120
123
|
<%= render_attr('ARI00010', @所得税等の損金不算入額) %>
|
@@ -130,10 +133,10 @@
|
|
130
133
|
</ARK00030>
|
131
134
|
</ARK00000>
|
132
135
|
<ARM00000>
|
133
|
-
<%= render_attr('ARM00010', 別表四調整所得合計) %>
|
136
|
+
<%= render_attr('ARM00010', 別表四調整所得合計 - @繰越損失管理.deduction) %>
|
134
137
|
<%= render_attr('ARM00020', 別表四調整所得合計留保) %>
|
135
138
|
<ARM00030>
|
136
|
-
<%= render_attr('ARM00050', 別表四調整所得合計社外流出) %>
|
139
|
+
<%= render_attr('ARM00050', 別表四調整所得合計社外流出 - @繰越損失管理.deduction) %>
|
137
140
|
</ARM00030>
|
138
141
|
</ARM00000>
|
139
142
|
<%# ARN10010 中間申告における繰戻しによる還付に係る災害損失欠損金額の益金算入額 %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<HOB016 page="1" VR="6.0" id="HOB016" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
|
+
<FZA00000>
|
3
|
+
<FZA00010>
|
4
|
+
<FZA00020 IDREF="JIGYO_NENDO_FROM"/>
|
5
|
+
<FZA00030 IDREF="JIGYO_NENDO_TO"/>
|
6
|
+
</FZA00010>
|
7
|
+
<FZA00040 IDREF="NOZEISHA_NM"/>
|
8
|
+
</FZA00000>
|
9
|
+
<FZC00000>
|
10
|
+
<FZC00260>
|
11
|
+
<%= render_attr('FZC00280', @所得税等の税額控除額) %>
|
12
|
+
<%= render_attr('FZC00290', @所得税等の税額控除額) %>
|
13
|
+
</FZC00260>
|
14
|
+
<FZC00300>
|
15
|
+
<%= render_attr('FZC00320', @所得税等の税額控除額) %>
|
16
|
+
<%= render_attr('FZC00330', @所得税等の税額控除額) %>
|
17
|
+
</FZC00300>
|
18
|
+
</FZC00000>
|
19
|
+
</HOB016>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<HOB800 page="1" VR="18.0" id="HOB800" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
|
+
<CBA00000>
|
3
|
+
<CBA00010>
|
4
|
+
<CBA00020 IDREF="JIGYO_NENDO_FROM"/>
|
5
|
+
<CBA00030 IDREF="JIGYO_NENDO_TO"/>
|
6
|
+
</CBA00010>
|
7
|
+
<CBA00040 IDREF="NOZEISHA_NM"/>
|
8
|
+
</CBA00000>
|
9
|
+
<CBB00000>
|
10
|
+
<%= render_attr('CBB00150', @受取配当金の益金不算入額) %>
|
11
|
+
</CBB00000>
|
12
|
+
</HOB800>
|
data/lib/luca/jp/uchiwake.rb
CHANGED
@@ -41,10 +41,11 @@ module Luca #:nodoc:
|
|
41
41
|
|
42
42
|
@有価証券 = @bs_data.each.with_object({}) do |(k, v), h|
|
43
43
|
next unless account_codes.include?(k.to_s)
|
44
|
-
next if v.nil? || v <= 0
|
45
44
|
|
46
45
|
inc = debit_amount(k, @start_date.year, @start_date.month, @end_date.year, @end_date.month) || 0
|
47
46
|
dec = credit_amount(k, @start_date.year, @start_date.month, @end_date.year, @end_date.month) || 0
|
47
|
+
next if v.nil? || (v <= 0 && inc <= 0 && dec <= 0)
|
48
|
+
|
48
49
|
h[k] = {
|
49
50
|
name: self.class.dict.dig(k)[:label],
|
50
51
|
amount: readable(v),
|
data/lib/luca/jp/urikake.rb
CHANGED
@@ -11,38 +11,37 @@ module Luca
|
|
11
11
|
class Urikake < LucaDeal::Invoice
|
12
12
|
@dirname = 'invoices'
|
13
13
|
|
14
|
-
def report(
|
14
|
+
def report(encoding = nil)
|
15
15
|
listed_amount = 0
|
16
16
|
encoding ||= 'SJIS'
|
17
|
+
customers, total = list
|
17
18
|
str = CSV.generate(String.new, headers: false, col_sep: ',', encoding: encoding) do |f|
|
18
|
-
|
19
|
-
amount = readable(
|
19
|
+
customers.map do |c|
|
20
|
+
amount = readable(c['unsettled'])
|
20
21
|
listed_amount += amount
|
21
|
-
f << ['3', '0', '売掛金',
|
22
|
+
f << ['3', '0', '売掛金', c['customer'], c['address'], amount, nil ]
|
22
23
|
end
|
23
|
-
if total
|
24
|
+
if total - listed_amount > 0
|
24
25
|
f << ['3', '0', '売掛金', 'その他', nil, total - listed_amount, nil ]
|
25
|
-
f << ['3', '1', nil, nil, nil, total, nil ]
|
26
|
-
else
|
27
|
-
f << ['3', '1', nil, nil, nil, listed_amount, nil ]
|
28
26
|
end
|
27
|
+
f << ['3', '1', nil, nil, nil, total, nil ]
|
29
28
|
end
|
30
29
|
File.open('HOI030_3.0.csv', 'w') { |f| f.write(str) }
|
31
30
|
end
|
32
31
|
|
33
32
|
def list
|
34
|
-
|
35
|
-
.
|
36
|
-
.sort_by { |invoice| invoice.dig('subtotal', 0, 'items') }
|
33
|
+
customers = self.class.report(@date, detail: true)
|
34
|
+
.sort_by { |customer| customer['unsettled'] }
|
37
35
|
.reverse
|
36
|
+
total = customers.inject(0) { |sum, customer| sum + customer['unsettled'] }
|
38
37
|
|
39
|
-
reports =
|
40
|
-
return reports if reports.length >= 5
|
38
|
+
reports = customers.filter { |customer| 500_000 <= customer['unsettled'] }
|
39
|
+
return [reports, total] if reports.length >= 5
|
41
40
|
|
42
|
-
additional =
|
43
|
-
.filter { |
|
41
|
+
additional = customers
|
42
|
+
.filter { |customer| 500_000 > customer['unsettled'] }
|
44
43
|
.take(5 - reports.length)
|
45
|
-
reports.concat(additional)
|
44
|
+
[reports.concat(additional), total]
|
46
45
|
end
|
47
46
|
end
|
48
47
|
end
|
data/lib/luca/jp/version.rb
CHANGED
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.
|
4
|
+
version: 0.18.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: 2024-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lucabook
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.5.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: lucadeal
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.5.5
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.5.5
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: lucasalary
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,12 +146,15 @@ files:
|
|
132
146
|
- lib/luca/jp/templates/aoiro.xtx.erb
|
133
147
|
- lib/luca/jp/templates/beppyo1-next.xml.erb
|
134
148
|
- lib/luca/jp/templates/beppyo1.xml.erb
|
149
|
+
- lib/luca/jp/templates/beppyo14-2.xml.erb
|
135
150
|
- lib/luca/jp/templates/beppyo15.xml.erb
|
136
151
|
- lib/luca/jp/templates/beppyo2.xml.erb
|
137
152
|
- lib/luca/jp/templates/beppyo4.xml.erb
|
138
153
|
- lib/luca/jp/templates/beppyo51.xml.erb
|
139
154
|
- lib/luca/jp/templates/beppyo52.xml.erb
|
155
|
+
- lib/luca/jp/templates/beppyo6-1.xml.erb
|
140
156
|
- lib/luca/jp/templates/beppyo7.xml.erb
|
157
|
+
- lib/luca/jp/templates/beppyo8-1.xml.erb
|
141
158
|
- lib/luca/jp/templates/chidai-meisai.xml.erb
|
142
159
|
- lib/luca/jp/templates/consumption.xtx.erb
|
143
160
|
- lib/luca/jp/templates/el-no20.xml.erb
|