lucabook 0.2.24 → 0.2.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/luca-book +28 -0
- data/lib/luca_book/journal.rb +2 -2
- data/lib/luca_book/list.rb +1 -1
- data/lib/luca_book/state.rb +113 -39
- data/lib/luca_book/templates/base-jp.xbrl.erb +23 -48
- data/lib/luca_book/templates/base-jp.xsd.erb +17 -0
- data/lib/luca_book/templates/dict-jp-edinet.tsv +167 -0
- data/lib/luca_book/templates/dict-jp.tsv +192 -166
- data/lib/luca_book/templates/monthly-report.html.erb +67 -0
- data/lib/luca_book/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c77f6025962d1697b99602db386367b08f037b4c9651c277729e3c16ae058dfa
|
4
|
+
data.tar.gz: eb3fa1abeda269e967699b974d5a3f1be504e85d39ddec9e080c4ceb5c28eabe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 960e0c3a36e2c2da145f398417813424820b924a34b7926b001ba024e0409246ed51dfc7922be8576ee9e58da8648ef7a89e38e4f0afcaa1cc85ba8c6cb164c9
|
7
|
+
data.tar.gz: ec88e8230a332139b4a136d6f28745cf0f733286f5023263d29036a7b41e2a6e5577b51bf9cb2374cb49aef4d0521b094f7d242c6a40fd6de00d4e03452bd5ff
|
data/exe/luca-book
CHANGED
@@ -51,6 +51,13 @@ class LucaCmd
|
|
51
51
|
end
|
52
52
|
|
53
53
|
class Report < LucaCmd
|
54
|
+
def self.xbrl(args, params)
|
55
|
+
level = params[:level] || 3
|
56
|
+
legal = params[:legal] || false
|
57
|
+
args = gen_range(params[:n] || 1) if args.empty?
|
58
|
+
LucaBook::State.range(*args).render_xbrl(params[:output])
|
59
|
+
end
|
60
|
+
|
54
61
|
def self.balancesheet(args, params)
|
55
62
|
level = params[:level] || 3
|
56
63
|
legal = params[:legal] || false
|
@@ -63,6 +70,12 @@ class LucaCmd
|
|
63
70
|
args = gen_range(params[:n]) if args.empty?
|
64
71
|
render(LucaBook::State.range(*args).pl(level), params)
|
65
72
|
end
|
73
|
+
|
74
|
+
def self.report_mail(args, params)
|
75
|
+
level = params[:level] || 3
|
76
|
+
args = gen_range(params[:n] || 12) if args.empty?
|
77
|
+
render(LucaBook::State.range(*args).report_mail(level), params)
|
78
|
+
end
|
66
79
|
end
|
67
80
|
|
68
81
|
def self.gen_range(count)
|
@@ -155,6 +168,13 @@ when 'new'
|
|
155
168
|
when /reports?/, 'r'
|
156
169
|
subcmd = ARGV.shift
|
157
170
|
case subcmd
|
171
|
+
when 'xbrl'
|
172
|
+
OptionParser.new do |opt|
|
173
|
+
opt.banner = 'Usage: luca-book reports bs [options] [YYYY M]'
|
174
|
+
opt.on('-o', '--output VAL', 'output filename') { |v| params[:output] = v }
|
175
|
+
args = opt.parse!(ARGV)
|
176
|
+
LucaCmd::Report.xbrl(args, params)
|
177
|
+
end
|
158
178
|
when 'bs'
|
159
179
|
OptionParser.new do |opt|
|
160
180
|
opt.banner = 'Usage: luca-book reports bs [options] [YYYY M]'
|
@@ -175,6 +195,14 @@ when /reports?/, 'r'
|
|
175
195
|
args = opt.parse!(ARGV)
|
176
196
|
LucaCmd::Report.profitloss(args, params)
|
177
197
|
end
|
198
|
+
when 'mail'
|
199
|
+
OptionParser.new do |opt|
|
200
|
+
opt.banner = 'Usage: luca-book reports mail [options] [YYYY M YYYY M]'
|
201
|
+
opt.on('-l', '--level VAL', 'account level') { |v| params[:level] = v.to_i }
|
202
|
+
opt.on('-n VAL', 'report count') { |v| params[:n] = v.to_i }
|
203
|
+
args = opt.parse!(ARGV)
|
204
|
+
LucaCmd::Report.report_mail(args, params)
|
205
|
+
end
|
178
206
|
else
|
179
207
|
puts 'Proper subcommand needed.'
|
180
208
|
puts
|
data/lib/luca_book/journal.rb
CHANGED
@@ -72,7 +72,7 @@ module LucaBook #:nodoc:
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
# Set accepted header with key/value
|
75
|
+
# Set accepted header with key/value, update record if exists.
|
76
76
|
#
|
77
77
|
def self.add_header(journal_hash, key, val)
|
78
78
|
return journal_hash if val.nil?
|
@@ -81,7 +81,7 @@ module LucaBook #:nodoc:
|
|
81
81
|
journal_hash.tap do |o|
|
82
82
|
o[:headers] = {} unless o.dig(:headers)
|
83
83
|
o[:headers][key] = val
|
84
|
-
save o
|
84
|
+
save o if o[:id]
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
data/lib/luca_book/list.rb
CHANGED
@@ -70,7 +70,7 @@ module LucaBook #:nodoc:
|
|
70
70
|
res['no'] = txid
|
71
71
|
res['id'] = dat[:id]
|
72
72
|
res['debit_code'] = dat[:debit].length == 1 ? dat[:debit][0][:code] : dat[:debit].map { |d| d[:code] }
|
73
|
-
res['debit_amount'] =
|
73
|
+
res['debit_amount'] = dat[:debit].inject(0) { |sum, d| sum + d[:amount] }
|
74
74
|
res['credit_code'] = dat[:credit].length == 1 ? dat[:credit][0][:code] : dat[:credit].map { |d| d[:code] }
|
75
75
|
res['credit_amount'] = dat[:credit].inject(0) { |sum, d| sum + d[:amount] }
|
76
76
|
res['note'] = dat[:note]
|
data/lib/luca_book/state.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'cgi/escape'
|
3
4
|
require 'csv'
|
5
|
+
require 'mail'
|
4
6
|
require 'pathname'
|
5
7
|
require 'date'
|
6
8
|
require 'luca_support'
|
@@ -15,13 +17,14 @@ module LucaBook
|
|
15
17
|
@dirname = 'journals'
|
16
18
|
@record_type = 'raw'
|
17
19
|
|
18
|
-
attr_reader :statement
|
20
|
+
attr_reader :statement, :pl_data, :bs_data, :start_balance
|
19
21
|
|
20
|
-
def initialize(data, count = nil,
|
21
|
-
@
|
22
|
+
def initialize(data, count = nil, start_d: nil, end_d: nil)
|
23
|
+
@monthly = data
|
22
24
|
@count = count
|
23
25
|
@dict = LucaRecord::Dict.load('base.tsv')
|
24
|
-
@start_date =
|
26
|
+
@start_date = start_d
|
27
|
+
@end_date = end_d
|
25
28
|
@start_balance = set_balance
|
26
29
|
end
|
27
30
|
|
@@ -39,7 +42,10 @@ module LucaBook
|
|
39
42
|
date = Date.new(date.next_month.year, date.next_month.month, -1)
|
40
43
|
end
|
41
44
|
end
|
42
|
-
new(reports, counts,
|
45
|
+
new(reports, counts,
|
46
|
+
start_d: Date.new(from_year.to_i, from_month.to_i, 1),
|
47
|
+
end_d: Date.new(to_year.to_i, to_month.to_i, -1)
|
48
|
+
)
|
43
49
|
end
|
44
50
|
|
45
51
|
def self.by_code(code, from_year, from_month, to_year = from_year, to_month = from_month)
|
@@ -70,7 +76,7 @@ module LucaBook
|
|
70
76
|
end
|
71
77
|
|
72
78
|
def code2label
|
73
|
-
@statement ||= @
|
79
|
+
@statement ||= @monthly
|
74
80
|
@statement.map do |report|
|
75
81
|
{}.tap do |h|
|
76
82
|
report.each { |k, v| h[@dict.dig(k, :label) || k] = v }
|
@@ -102,21 +108,41 @@ module LucaBook
|
|
102
108
|
@count
|
103
109
|
end
|
104
110
|
|
111
|
+
# TODO: pl/bs may not be immutable
|
112
|
+
def report_mail(level = 3)
|
113
|
+
@company = CONFIG.dig('company', 'name')
|
114
|
+
{}.tap do |res|
|
115
|
+
pl(level).reverse.each do |month|
|
116
|
+
month.each do |k, v|
|
117
|
+
res[k] ||= []
|
118
|
+
res[k] << v
|
119
|
+
end
|
120
|
+
end
|
121
|
+
@months = res['_d']
|
122
|
+
@pl = res.select{ |k,v| k != '_d' }
|
123
|
+
end
|
124
|
+
@bs = bs
|
125
|
+
|
126
|
+
mail = Mail.new
|
127
|
+
mail.to = CONFIG.dig('mail', 'preview') || CONFIG.dig('mail', 'from')
|
128
|
+
mail.subject = 'Financial Report available'
|
129
|
+
mail.html_part = Mail::Part.new(body: render_erb(search_template('monthly-report.html.erb')), content_type: 'text/html; charset=UTF-8')
|
130
|
+
LucaSupport::Mail.new(mail, PJDIR).deliver
|
131
|
+
end
|
132
|
+
|
105
133
|
def bs(level = 3, legal: false)
|
106
|
-
|
107
|
-
|
108
|
-
@data.map! { |data| code_sum(data).merge(data) } if legal
|
109
|
-
base = accumulate_balance(@data)
|
134
|
+
set_bs(level, legal: legal)
|
135
|
+
base = accumulate_balance(@bs_data)
|
110
136
|
rows = [base[:debit].length, base[:credit].length].max
|
111
137
|
@statement = [].tap do |a|
|
112
138
|
rows.times do |i|
|
113
139
|
{}.tap do |res|
|
114
140
|
res['debit_label'] = base[:debit][i] ? @dict.dig(base[:debit][i].keys[0], :label) : ''
|
115
|
-
res['debit_balance'] = base[:debit][i] ? (@start_balance.dig(base[:debit][i].keys[0]) || 0) + base[:debit][i].values[0] : ''
|
116
|
-
res['
|
141
|
+
#res['debit_balance'] = base[:debit][i] ? (@start_balance.dig(base[:debit][i].keys[0]) || 0) + base[:debit][i].values[0] : ''
|
142
|
+
res['debit_balance'] = base[:debit][i] ? base[:debit][i].values[0] : ''
|
117
143
|
res['credit_label'] = base[:credit][i] ? @dict.dig(base[:credit][i].keys[0], :label) : ''
|
118
|
-
res['credit_balance'] = base[:credit][i] ? (@start_balance.dig(base[:credit][i].keys[0]) || 0) + base[:credit][i].values[0] : ''
|
119
|
-
res['
|
144
|
+
#res['credit_balance'] = base[:credit][i] ? (@start_balance.dig(base[:credit][i].keys[0]) || 0) + base[:credit][i].values[0] : ''
|
145
|
+
res['credit_balance'] = base[:credit][i] ? base[:credit][i].values[0] : ''
|
120
146
|
a << res
|
121
147
|
end
|
122
148
|
end
|
@@ -124,12 +150,7 @@ module LucaBook
|
|
124
150
|
readable(@statement)
|
125
151
|
end
|
126
152
|
|
127
|
-
def accumulate_balance(
|
128
|
-
data = monthly_diffs.each_with_object({}) do |month, h|
|
129
|
-
month.each do |k, v|
|
130
|
-
h[k] = h[k].nil? ? v : h[k] + v
|
131
|
-
end
|
132
|
-
end
|
153
|
+
def accumulate_balance(data)
|
133
154
|
{ debit: [], credit: [] }.tap do |res|
|
134
155
|
data.sort.to_h.each do |k, v|
|
135
156
|
case k
|
@@ -143,28 +164,13 @@ module LucaBook
|
|
143
164
|
end
|
144
165
|
|
145
166
|
def pl(level = 2)
|
146
|
-
|
147
|
-
|
148
|
-
fy = @start_balance.select { |k, _v| /^[A-H].+/.match(k) }
|
149
|
-
keys = (term_keys + fy.keys).uniq.sort
|
150
|
-
keys.select! { |k| k.length <= level }
|
151
|
-
@statement = @data.map do |data|
|
167
|
+
set_pl(level)
|
168
|
+
@statement = @monthly.map do |data|
|
152
169
|
{}.tap do |h|
|
153
|
-
keys.each { |k| h[k] = data[k] || BigDecimal('0') }
|
154
|
-
end
|
155
|
-
end
|
156
|
-
term = @statement.each_with_object({}) do |item, h|
|
157
|
-
item.each do |k, v|
|
158
|
-
h[k] = h[k].nil? ? v : h[k] + v if /^[^_]/.match(k)
|
170
|
+
@pl_data.keys.each { |k| h[k] = data[k] || BigDecimal('0') }
|
159
171
|
end
|
160
172
|
end
|
161
|
-
|
162
|
-
keys.each do |k|
|
163
|
-
h[k] = BigDecimal(fy[k] || '0') + BigDecimal(term[k] || '0')
|
164
|
-
end
|
165
|
-
end
|
166
|
-
@statement << term.tap { |h| h['_d'] = 'Period Total' }
|
167
|
-
@statement << fy.tap { |h| h['_d'] = 'FY Total' }
|
173
|
+
@statement << @pl_data
|
168
174
|
readable(code2label)
|
169
175
|
end
|
170
176
|
|
@@ -234,6 +240,7 @@ module LucaBook
|
|
234
240
|
else
|
235
241
|
res[k[0, 3]] = v
|
236
242
|
end
|
243
|
+
res[k] = v
|
237
244
|
end
|
238
245
|
end
|
239
246
|
res.sort.to_h
|
@@ -348,8 +355,71 @@ module LucaBook
|
|
348
355
|
[diff, count]
|
349
356
|
end
|
350
357
|
|
358
|
+
def render_xbrl(filename = nil)
|
359
|
+
set_bs(3, legal: true)
|
360
|
+
set_pl(3)
|
361
|
+
country_suffix = CONFIG['country'] || 'en'
|
362
|
+
@company = CGI.escapeHTML(CONFIG.dig('company', 'name'))
|
363
|
+
@balance_sheet_selected = 'true'
|
364
|
+
@pl_selected = 'true'
|
365
|
+
@capital_change_selected = 'true'
|
366
|
+
@issue_date = Date.today
|
367
|
+
|
368
|
+
prior_bs = @start_balance.filter { |k, _v| /^[9]/.match(k) }
|
369
|
+
@xbrl_entries = @bs_data.map{ |k, v| xbrl_line(k, v, prior_bs[k]) }.compact.join("\n")
|
370
|
+
@xbrl_entries += @pl_data.map{ |k, v| xbrl_line(k, v) }.compact.join("\n")
|
371
|
+
@filename = filename || @issue_date.to_s
|
372
|
+
|
373
|
+
File.open("#{@filename}.xbrl", 'w') { |f| f.write render_erb(search_template("base-#{country_suffix}.xbrl.erb")) }
|
374
|
+
File.open("#{@filename}.xsd", 'w') { |f| f.write render_erb(search_template("base-#{country_suffix}.xsd.erb")) }
|
375
|
+
end
|
376
|
+
|
377
|
+
def xbrl_line(code, amount, prior_amount = nil)
|
378
|
+
return nil if /^_/.match(code)
|
379
|
+
|
380
|
+
context = /^[0-9]/.match(code) ? 'CurrentYearNonConsolidatedInstant' : 'CurrentYearNonConsolidatedDuration'
|
381
|
+
tag = @dict.dig(code, :xbrl_id)
|
382
|
+
#raise "xbrl_id not found: #{code}" if tag.nil?
|
383
|
+
return nil if tag.nil?
|
384
|
+
return nil if readable(amount).zero? && prior_amount.nil?
|
385
|
+
|
386
|
+
prior = prior_amount.nil? ? '' : "<#{tag} decimals=\"0\" unitRef=\"JPY\" contextRef=\"Prior1YearNonConsolidatedInstant\">#{readable(prior_amount)}</#{tag}>\n"
|
387
|
+
current = "<#{tag} decimals=\"0\" unitRef=\"JPY\" contextRef=\"#{context}\">#{readable(amount)}</#{tag}>"
|
388
|
+
|
389
|
+
prior + current
|
390
|
+
end
|
391
|
+
|
351
392
|
private
|
352
393
|
|
394
|
+
def set_bs(level = 3, legal: false)
|
395
|
+
@start_balance.each do |k, v|
|
396
|
+
next if /^_/.match(k)
|
397
|
+
@monthly.first[k] = (v || 0) + (@monthly.first[k] || 0)
|
398
|
+
end
|
399
|
+
list = @monthly.map { |data| data.select { |k, _v| k.length <= level } }
|
400
|
+
list.map! { |data| code_sum(data).merge(data) } if legal
|
401
|
+
@bs_data = list.each_with_object({}) do |month, h|
|
402
|
+
month.each do |k, v|
|
403
|
+
next if /^_/.match(k)
|
404
|
+
|
405
|
+
h[k] = (h[k] || BigDecimal('0')) + v
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
def set_pl(level = 2)
|
411
|
+
keys = @monthly.inject([]) { |a, data| a + data.keys }
|
412
|
+
.compact.select { |k| /^[A-H_].+/.match(k) }
|
413
|
+
.uniq.sort
|
414
|
+
keys.select! { |k| k.length <= level }
|
415
|
+
@pl_data = @monthly.each_with_object({}) do |item, h|
|
416
|
+
keys.each do |k|
|
417
|
+
h[k] = (h[k] || BigDecimal('0')) + (item[k] || BigDecimal('0')) if /^[^_]/.match(k)
|
418
|
+
end
|
419
|
+
h['_d'] = 'Period Total'
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
353
423
|
def legal_items
|
354
424
|
return [] unless CONFIG['country']
|
355
425
|
|
@@ -358,5 +428,9 @@ module LucaBook
|
|
358
428
|
['31', '32', '33', '91', '911', '912', '913', '9131', '9132', '914', '9141', '9142', '915', '916', '92', '93']
|
359
429
|
end
|
360
430
|
end
|
431
|
+
|
432
|
+
def lib_path
|
433
|
+
__dir__
|
434
|
+
end
|
361
435
|
end
|
362
436
|
end
|
@@ -1,57 +1,33 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<xbrli:xbrl xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jpfr-etax-di="http://xml.e-tax.nta.go.jp/jp/fr/etax/o/di/2013-03-25" xmlns:jpfr-oe="http://info.edinet-fsa.go.jp/jp/fr/gaap/o/oe/2012-01-25" xmlns:jppfs_cor="http://disclosure.edinet-fsa.go.jp/taxonomy/jppfs/2019-11-01/jppfs_cor">
|
3
|
-
|
4
|
-
<xbrli:context_id="CurrentYearNonConsolidatedInstant">
|
5
|
-
<xbrli:entity>
|
6
|
-
<xbrli:identifier scheme="http://www.e-tax.nta.go.jp"><%= @company %></xbrli:identifier>
|
7
|
-
</xbrli:entity>
|
8
|
-
<xbrli:period>
|
9
|
-
<xbrli:instant><%= @end_date %></xbrli:instant>
|
10
|
-
</xbrli:period>
|
11
|
-
<xbrli:scenario>
|
12
|
-
<jpfr-oe:NonConsolidated />
|
13
|
-
</xbrli:scenario>
|
14
|
-
</xbrli:context>
|
15
|
-
|
16
|
-
<xbrli:context_id="CurrentYearNonConsolidatedDuration">
|
17
|
-
<xbrli:entity>
|
18
|
-
<xbrli:identifier scheme="http://www.e-tax.nta.go.jp"><%= @company %></xbrli:identifier>
|
19
|
-
</xbrli:entity>
|
20
|
-
<xbrli:period>
|
21
|
-
<xbrli:startDate><%= @start_date %></xbrli:startDate>
|
22
|
-
<xbrli:endDate><%= @end_date %></xbrli:endDate>
|
23
|
-
</xbrli:period>
|
24
|
-
<xbrli:scenario>
|
25
|
-
<jpfr-oe:NonConsolidated />
|
26
|
-
</xbrli:scenario>
|
27
|
-
</xbrli:context>
|
2
|
+
<xbrli:xbrl xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jpfr-etax-di="http://xml.e-tax.nta.go.jp/jp/fr/etax/o/di/2013-03-25" xmlns:jpfr-oe="http://info.edinet-fsa.go.jp/jp/fr/gaap/o/oe/2012-01-25" xmlns:jpfr-t-cte="http://info.edinet-fsa.go.jp/jp/fr/gaap/t/cte/2012-01-25" xmlns:jppfs_cor="http://disclosure.edinet-fsa.go.jp/taxonomy/jppfs/2019-11-01/jppfs_cor" xmlns:jpfr-etax-t-cte="http://xml.e-tax.nta.go.jp/jp/fr/etax/t/cte/2013-03-25">
|
3
|
+
<link:schemaRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="<%= @filename %>.xsd" />
|
28
4
|
|
29
|
-
|
30
|
-
<xbrli:
|
31
|
-
<xbrli:identifier scheme="http://www.e-tax.nta.go.jp"><%= @company %></xbrli:identifier>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<jpfr-oe:NonConsolidated
|
38
|
-
|
39
|
-
|
5
|
+
<%# eTax spec Begin: conflict with EDINET %>
|
6
|
+
<xbrli:context id="Prior1YearNonConsolidatedInstant">
|
7
|
+
<xbrli:entity><xbrli:identifier scheme="http://www.e-tax.nta.go.jp/"><%= @company %></xbrli:identifier></xbrli:entity>
|
8
|
+
<xbrli:period><xbrli:instant><%= @start_date.prev_day %></xbrli:instant></xbrli:period>
|
9
|
+
<xbrli:scenario><jpfr-oe:NonConsolidated /></xbrli:scenario></xbrli:context>
|
10
|
+
<xbrli:context id="CurrentYearNonConsolidatedInstant">
|
11
|
+
<xbrli:entity><xbrli:identifier scheme="http://www.e-tax.nta.go.jp/"><%= @company %></xbrli:identifier></xbrli:entity>
|
12
|
+
<xbrli:period><xbrli:instant><%= @end_date %></xbrli:instant></xbrli:period>
|
13
|
+
<xbrli:scenario> <jpfr-oe:NonConsolidated /></xbrli:scenario></xbrli:context>
|
14
|
+
<xbrli:context id="CurrentYearNonConsolidatedDuration">
|
15
|
+
<xbrli:entity><xbrli:identifier scheme="http://www.e-tax.nta.go.jp/"><%= @company %></xbrli:identifier></xbrli:entity>
|
16
|
+
<xbrli:period><xbrli:startDate><%= @start_date %></xbrli:startDate><xbrli:endDate><%= @end_date %></xbrli:endDate></xbrli:period>
|
17
|
+
<xbrli:scenario> <jpfr-oe:NonConsolidated /></xbrli:scenario></xbrli:context>
|
40
18
|
<%# eTax spec End %>
|
41
19
|
|
20
|
+
<%# eTax spec Begin: extra items %>
|
21
|
+
<xbrli:context id="DocumentInfo">
|
22
|
+
<xbrli:entity><xbrli:identifier scheme="http://www.e-tax.nta.go.jp/"><%= @company %></xbrli:identifier></xbrli:entity>
|
23
|
+
<xbrli:period><xbrli:instant><%= @issue_date %></xbrli:instant></xbrli:period>
|
24
|
+
</xbrli:context>
|
25
|
+
|
42
26
|
<xbrli:unit id="JPY">
|
43
27
|
<xbrli:measure>iso4217:JPY</xbrli:measure>
|
44
28
|
</xbrli:unit>
|
45
29
|
|
46
|
-
|
47
|
-
<xbrli:context_id="DocumentInfo">
|
48
|
-
<xbrli:entity>
|
49
|
-
<xbrli:identifier scheme="http://www.e-tax.nta.go.jp"><%= @company %></xbrli:identifier>
|
50
|
-
</xbrli:entity>
|
51
|
-
<xbrli:period>
|
52
|
-
<xbrli:instant><%= @issue_date %></xbrli:instant>
|
53
|
-
</xbrli:period>
|
54
|
-
</xbrli:context>
|
30
|
+
<jpfr-etax-di:EntityName contextRef="DocumentInfo"><%= @company %></jpfr-etax-di:EntityName>
|
55
31
|
<jpfr-etax-di:NonconsolidatedBalanceSheetsDocInfo contextRef="DocumentInfo"><%= @balance_sheet_selected %></jpfr-etax-di:NonconsolidatedBalanceSheetsDocInfo>
|
56
32
|
<jpfr-etax-di:ExtendedLinkRoleLabelBalanceSheets contextRef="DocumentInfo">http://www.xbrl.org/2003/role/link</jpfr-etax-di:ExtendedLinkRoleLabelBalanceSheets>
|
57
33
|
<jpfr-etax-di:ExtendedLinkRolePresentationBalanceSheets contextRef="DocumentInfo">http://xml.e-tax.nta.go.jp/jp/fr/etax/role/NonConsolidatedBalanceSheets</jpfr-etax-di:ExtendedLinkRolePresentationBalanceSheets>
|
@@ -62,11 +38,10 @@
|
|
62
38
|
<jpfr-etax-di:ExtendedLinkRolePresentationStatementsOfIncome contextRef="DocumentInfo">http://xml.e-tax.nta.go.jp/jp/fr/etax/role/NonConsolidatedStatementsOfIncome</jpfr-etax-di:ExtendedLinkRolePresentationStatementsOfIncome>
|
63
39
|
<jpfr-etax-di:ContextIDPeriodStatementsOfIncome contextRef="DocumentInfo">CurrentYearNonConsolidatedDuration</jpfr-etax-di:ContextIDPeriodStatementsOfIncome>
|
64
40
|
|
65
|
-
|
66
41
|
<jpfr-etax-di:NonconsolidatedScheduleOfCostOfGoodsManufacturedDocInfo contextRef="DocumentInfo">false</jpfr-etax-di:NonconsolidatedScheduleOfCostOfGoodsManufacturedDocInfo>
|
67
42
|
<jpfr-etax-di:NonconsolidatedNotesDocInfo contextRef="DocumentInfo">false</jpfr-etax-di:NonconsolidatedNotesDocInfo>
|
68
43
|
|
69
|
-
<jpfr-etax-di:NonconsolidatedStatementsOfChangesInNetAssetsDocInfo contextRef="DocumentInfo"><%= @
|
44
|
+
<jpfr-etax-di:NonconsolidatedStatementsOfChangesInNetAssetsDocInfo contextRef="DocumentInfo"><%= @capital_change_selected %></jpfr-etax-di:NonconsolidatedStatementsOfChangesInNetAssetsDocInfo>
|
70
45
|
<jpfr-etax-di:ExtendedLinkRoleLabelStatementsOfChangesInNetAssets contextRef="DocumentInfo">http://www.xbrl.org/2003/role/link</jpfr-etax-di:ExtendedLinkRoleLabelStatementsOfChangesInNetAssets>
|
71
46
|
<jpfr-etax-di:ExtendedLinkRolePresentationStatementsOfChangesInNetAssets contextRef="DocumentInfo">http://xml.e-tax.nta.go.jp/jp/fr/etax/role/NonConsolidatedStatementsOfChangesInNetAssets</jpfr-etax-di:ExtendedLinkRolePresentationStatementsOfChangesInNetAssets>
|
72
47
|
<jpfr-etax-di:ContextIDBeginningOfPeriodStatementsOfChangesInNetAssets contextRef="DocumentInfo">Prior1YearNonConsolidatedInstant</jpfr-etax-di:ContextIDBeginningOfPeriodStatementsOfChangesInNetAssets>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:e-tax-pks-<%= @issue_date %>="http://xbrlsoft.e-tax.nta.go.jp/XSD/e-tax-pks-<%= @issue_date %>" targetNamespace="http://xbrlsoft.e-tax.nta.go.jp/XSD/e-tax-pks-<%= @issue_date %>" elementFormDefault="qualified">
|
3
|
+
<xsd:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />
|
4
|
+
<xsd:import namespace="http://xml.e-tax.nta.go.jp/jp/fr/etax/o/di/2013-03-25" schemaLocation="http://xml.e-tax.nta.go.jp/jp/fr/etax/o/di/2013-03-25/jpfr-etax-di-2013-03-25.xsd" />
|
5
|
+
<xsd:import namespace="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/pks/an/2013-03-25" schemaLocation="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/pks/an/2013-03-25/jpfr-etax-pks-an-2013-03-25.xsd" />
|
6
|
+
<xsd:annotation>
|
7
|
+
<xsd:appinfo>
|
8
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-1-BS-01-CA-Doubtful-2-ByGroup.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
9
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-1-BS-05-PPE-DepImp-2-ByGroup.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
10
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-1-BS-08-IOA-Doubtful-2-ByGroup.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
11
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-1-BS-11-IOA-DepImp-2-ByGroup.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
12
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-1-BS-13-Inventories-2-OneLine.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
13
|
+
<link:linkbaseRef xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-2-PL-01-Sales-1-Net.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"/>
|
14
|
+
<link:linkbaseRef xlink:type="simple" xlink:href="http://xml.e-tax.nta.go.jp/jp/fr/etax/r/cai/an/2013-03-25/jpfr-etax-cai-an-2013-03-25-presentation-2-PL-04-SGA-1-ByAccount.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" />
|
15
|
+
</xsd:appinfo>
|
16
|
+
</xsd:annotation>
|
17
|
+
</xsd:schema>
|
@@ -0,0 +1,167 @@
|
|
1
|
+
code label xbrl_id consumption_tax income_tax
|
2
|
+
1 資産合計 jppfs_cor:AssetsAbstract
|
3
|
+
10 流動資産 jppfs_cor:CurrentAssetsAbstract
|
4
|
+
10XX UNSETTLED_IMPORT
|
5
|
+
110 現金及び預金 jppfs_cor:CashAndDeposits
|
6
|
+
1101 現金
|
7
|
+
1102 小口現金
|
8
|
+
1103 普通預金
|
9
|
+
1104 当座預金
|
10
|
+
1105 定期預金
|
11
|
+
1106 通知預金
|
12
|
+
1107 納税準備預金
|
13
|
+
1108 別段預金
|
14
|
+
120 受取手形 jppfs_cor:NotesReceivableTrade
|
15
|
+
130 売掛金 jppfs_cor:AccountsReceivableTrade
|
16
|
+
140 短期貸付金 jppfs_cor:ShortTermLoansReceivable
|
17
|
+
150 未収入金 jppfs_cor:AccountsReceivableOther
|
18
|
+
1501 未収消費税等
|
19
|
+
160 棚卸資産 jppfs_cor:Inventories
|
20
|
+
161 商品 jppfs_cor:Merchandize
|
21
|
+
162 製品 jppfs_cor:FinishedGoods
|
22
|
+
163 仕掛品 jppfs_cor:WorkInProcess
|
23
|
+
164 貯蔵品 jppfs_cor:Supplies
|
24
|
+
180 その他流動資産 jppfs_cor:OtherCA
|
25
|
+
181 前渡金 jppfs_cor:AdvancePaymentsTrade
|
26
|
+
182 前払費用 jppfs_cor:AdvancePaymentsOther
|
27
|
+
183 立替金 jppfs_cor:AdvancesPaid
|
28
|
+
184 仮払金 jppfs_cor:SuspensePayments
|
29
|
+
1841 仮払消費税等
|
30
|
+
30 固定資産 jppfs_cor:NonCurrentAssetsAbstract
|
31
|
+
31 有形固定資産 jppfs_cor:PropertyPlantAndEquipmentAbstract
|
32
|
+
311 建物 jppfs_cor:Buildings
|
33
|
+
312 構築物 jppfs_cor:Structures
|
34
|
+
313 機械装置 jppfs_cor:MachineryAndEquipment
|
35
|
+
314 車両運搬具 jppfs_cor:Vehicles
|
36
|
+
315 工具器具備品 jppfs_cor:ToolsFurnitureAndFixtures
|
37
|
+
316 土地 jppfs_cor:Land
|
38
|
+
317 建設仮勘定 jppfs_cor:ConstructionInProgress
|
39
|
+
318 船舶 jppfs_cor:Vessels
|
40
|
+
32 無形固定資産 jppfs_cor:IntansibleAssetsAbstract
|
41
|
+
321 ソフトウェア jppfs_cor:Software
|
42
|
+
322 のれん jppfs_cor:Goodwill
|
43
|
+
323 特許権 jppfs_cor:PatentRight
|
44
|
+
324 借地権 jppfs_cor:LeaseholdRight
|
45
|
+
325 商標権 jppfs_cor:RightOfTrademark
|
46
|
+
326 電話加入権 jppfs_cor:TelephoneSubscriptionRight
|
47
|
+
33 投資その他の資産 jppfs_cor:InvestmentsAndOtherAssetsAbstract
|
48
|
+
331 投資有価証券 jppfs_cor:InvestmentSecurities
|
49
|
+
332 関係会社株式 jppfs_cor:StocksOfSubsidiariesAndAffiliates
|
50
|
+
333 長期貸付金 jppfs_cor:LongTermLoansReceivable
|
51
|
+
334 破産更正債権 jppfs_cor:ClaimsProvableInBankruptcyClaimsProvableInRehabilitationAndOther
|
52
|
+
335 長期前払費用 jppfs_cor:LongTermPrepaidExpenses
|
53
|
+
336 敷金保証金 jppfs_cor:LeaseAndGuaranteeDeposits
|
54
|
+
337 繰延税金資産 jppfs_cor:DiferredTaxAssets
|
55
|
+
4V 繰延資産 jppfs_cor:DeferredAssets
|
56
|
+
4V1 開業費 jppfs_cor:BusinessCommencementExpensesDA
|
57
|
+
4V2 創立費 jppfs_cor:DeferredOrganisationExpensesDA
|
58
|
+
4V3 新株発行費 jppfs_cor:StockIssuanceCostDA
|
59
|
+
4V4 社債発行費 jppfs_cor:BondIssuanceCostDA
|
60
|
+
4V5 開発費 jppfs_cor:DevelopmentExpensesDA
|
61
|
+
5 負債・純資産合計 jppfs_cor:LiabilitiesAndNetAssets
|
62
|
+
50 流動負債 jppfs_cor:CurrentLiabilitiesAbstract
|
63
|
+
50XX UNSETTLED_IMPORT
|
64
|
+
510 支払手形 jppfs_cor:NotePayableTrade
|
65
|
+
511 買掛金 jppfs_cor:AccountsPayableTrade
|
66
|
+
512 短期借入金 jppfs_cor:ShortTermLoansPayable
|
67
|
+
513 コマーシャルペーパー jppfs_cor:CommercialPapersLiabilities
|
68
|
+
514 未払金 jppfs_cor:AccountsPayableOther
|
69
|
+
515 未払法人税等 jppfs_cor:IncomeTaxesPayable
|
70
|
+
516 未払消費税等 jppfs_cor:AccruedConsumptionTaxes
|
71
|
+
517 未払費用 jppfs_cor:AccruedExpenses
|
72
|
+
518 前受金 jppfs_cor:AdvancesReceived
|
73
|
+
519 預り金 jppfs_cor:DepositsReceived
|
74
|
+
51A 仮受金 jppfs_cor:SuspenseReceipt
|
75
|
+
51A1 仮受消費税等 jppfs_cor:SuspenseReceiptOfConsumptionTaxes
|
76
|
+
70 固定負債 jppfs_cor:NoncurrentLiabilitiesAbstract
|
77
|
+
711 社債 jppfs_cor:BondsPayable
|
78
|
+
712 長期借入金 jppfs_cor:LongTermLoansPayable
|
79
|
+
713 退職給付引当金 jppfs_cor:ProvisionForRetirementBenefits
|
80
|
+
714 繰延税金負債 jppfs_cor:DeferredTaxLiabilities
|
81
|
+
8ZZ 負債合計 jppfs_cor:LiabilitiesAbstract
|
82
|
+
91 株主資本 jppfs_cor:ShareholdersAbstract
|
83
|
+
911 資本金 jppfs_cor:CapitalStock
|
84
|
+
912 新株式申込証拠金 jppfs_cor:DepositForSubscriptionsToShares
|
85
|
+
913 資本剰余金 jppfs_cor:LegalCapitalSurplus
|
86
|
+
9131 資本準備金 jppfs_cor:LegalCapitalSurplus
|
87
|
+
9132 その他資本剰余金 jppfs_cor:OtherCapitalSurplus
|
88
|
+
914 利益剰余金 jppfs_cor:RetainedEarnings
|
89
|
+
9141 利益準備金 jppfs_cor:LegalRetainedEarnings
|
90
|
+
9142 その他利益剰余金 jppfs_cor:OtherRetainedEarningsAbstract
|
91
|
+
915 自己株式 jppfs_cor:TreasuryStock
|
92
|
+
916 自己株式申込証拠金 jppfs_cor:DepositForSubscriptionsToTreasuryStock
|
93
|
+
92 評価換算差額等 jppfs_cor:ValuationAndTranslationAdjustments
|
94
|
+
921 有価証券評価差額金 jppfs_cor:ValuationDifferenceOnAvailableForSaleSecurities
|
95
|
+
922 為替換算調整勘定 jppfs_cor:ForeignCurrencyTranslationAdjustment
|
96
|
+
93 新株予約権 jppfs_cor:SubscriptionRightsToShares
|
97
|
+
940 非支配株主持分 jppfs_cor:NonControllingInterests
|
98
|
+
9ZZ 純資産合計 jppfs_cor:NetAssetsAbstract
|
99
|
+
A0 売上 jppfs_cor:NetSalesAbstract
|
100
|
+
A11 売上高 jppfs_cor:NetSales
|
101
|
+
B0 売上原価 jppfs_cor:CostOfSalesAbstract
|
102
|
+
B11 仕入 jppfs_cor:TotalPurchaseOfGoods
|
103
|
+
B12 材料費 jppfs_cor:CostOfRawMaterialSalesCOSExpOA
|
104
|
+
B13 当期製品製造原価 jppfs_cor:CostOfProductsManufactured
|
105
|
+
B131 労務費
|
106
|
+
BA 粗利益 jppfs_cor:GrossProfit
|
107
|
+
C0 販売費及び一般管理費 jppfs_cor:SellingGeneralAndAdministrativeExpensesAbstract
|
108
|
+
C11 役員報酬 jppfs_cor:DirectorsCompensationsSGA
|
109
|
+
C111 役員賞与
|
110
|
+
C12 給料手当 jppfs_cor:SalariesSGA
|
111
|
+
C13 賞与 jppfs_cor:BonusesSGA
|
112
|
+
C14 賃金 jpfrs_cor:WagesSGA
|
113
|
+
C15 退職金 jppfs_cor:RetirementPaymentsSGA
|
114
|
+
C16 法定福利費 jppfs_cor:LegalWelfareExpensesSGA
|
115
|
+
C17 旅費交通費 jppfs_cor:TravellingAndTransportationExpensesSGA
|
116
|
+
C18 通信費 jppfs_cor:CommunicationExpensesSGA
|
117
|
+
C19 修繕費 jppfs_cor:RepairExpensesSGA
|
118
|
+
C1A 広告宣伝費 jppfs_cor:AdvertisingExpensesSGA
|
119
|
+
C1B 接待交際費 jppfs_cor:EntertainmentExpensesSGA
|
120
|
+
C1C 荷造運賃 jppfs_cor:FreightageAndPackingExpensesSGA
|
121
|
+
C1D 福利厚生費 jppfs_cor:WelfareExpensesSGA
|
122
|
+
C1E 地代家賃 jppfs_cor:RentsSGA
|
123
|
+
C1F 水道光熱費 jppfs_cor:UtilitiesExpensesSGA
|
124
|
+
C1G 消耗品費 jppfs_cor:SuppliesExpensesSGA
|
125
|
+
C1H 保険料 jppfs_cor:InsuranceExpensesSGA
|
126
|
+
C1I 租税公課 jppfs_cor:TaxesAndDuesSGA
|
127
|
+
C1J 賃借料 jppfs_cor:RentExpensesSGA
|
128
|
+
C1K 新聞図書費 jppfs_cor:BookExpensesSGA
|
129
|
+
C1L 貸倒損失 jppfs_cor:BadDebtsExpensesSGA
|
130
|
+
C1M 諸会費 jppfs_cor:MembershipFeeSGA
|
131
|
+
C1N 支払手数料 jppfs_cor:CommissionFeeSGA
|
132
|
+
C1O 外注費 jppfs_cor:SubcontructExpensesSGA
|
133
|
+
C1P 減価償却費 jppfs_cor:DepreciationSGA
|
134
|
+
C1Q 雑費 jppfs_cor:MiscellaneousExpensesSGA
|
135
|
+
C1R 貸倒引当金繰入 jppfs_cor:ProvisionOfAllowanceForDebtfulAccountsSGA
|
136
|
+
C1S 支払報酬 jppfs_cor:CompensationsSGA
|
137
|
+
C1T 研修費 jppfs_cor:TrainingExpensesSGA
|
138
|
+
C1U 採用費 jppfs_cor:RecruitingExpensesSGA
|
139
|
+
C1V 業務委託費 jppfs_cor:BusinessConsignmentExpensesSGA
|
140
|
+
C1W 会議費 jppfs_cor:ConferenceExpensesSGA
|
141
|
+
CA 営業利益 jppfs_cor:OperatingIncome
|
142
|
+
D0 営業外収益 jppfs_cor:NonOperatingIncomeAbstract
|
143
|
+
D11 受取利息 jppfs_cor:InterestIncomeNOI
|
144
|
+
D12 受取配当金 jppfs_cor:DividendsIncomeNOI
|
145
|
+
D13 有価証券売却益 jppfs_cor:GainOnSalesOfSecuritiesNOI
|
146
|
+
D14 有価証券利息 jppfs_cor:InterestsOnSecuritiesNOI
|
147
|
+
D15 為替差益 jppfs_cor:ForeignExchangeGainsNOI
|
148
|
+
D16 雑収入 jppfs_cor:MiscellaneousIncomeNOI
|
149
|
+
E0 営業外費用 jppfs_cor:NonOperatingExpensesAbstract
|
150
|
+
E11 支払利息 jppfs_cor:InterestExpensesNOE
|
151
|
+
E12 手形売却損 jppfs_cor:LossOnSalesOfNotesPayableNOE
|
152
|
+
E13 有価証券売却損 jppfs_cor:LossOnSalesOfSecuritiesNOE
|
153
|
+
E14 有価証券評価損 jppfs_cor:LossOnValuationOfSecuritiesNOE
|
154
|
+
E15 為替差損 jppfs_cor:ForeignExchangeLossesNOE
|
155
|
+
E16 雑損失 jppfs_cor:MiscellaneousLossNOE
|
156
|
+
EA 経常利益 jppfs_cor:OrdinaryIncome
|
157
|
+
F0 特別利益 jppfs_cor:ExtraordinaryIncomeAbstract
|
158
|
+
F11 固定資産売却益 jppfs_cor:GainOnSalesOfNoncurrentAssetsEI
|
159
|
+
F12 償却債権取立益 jppfs_cor:GainOnBadDebtsRecoveredEI
|
160
|
+
G0 特別損失 jppfs_cor:ExtraordinaryLossAbstract
|
161
|
+
G11 固定資産売却損 jppfs_cor:LossOnSalesOfNoncurrentAssetsEL
|
162
|
+
G12 固定資産除却損 jppfs_cor:LossOnRetirementOfNoncurrentAssetsEL
|
163
|
+
G13 災害損失 jppfs_cor:LossOnDisasterEL
|
164
|
+
GA 税引前利益 jppfs_cor:IncomeBeforeIncomeTaxes
|
165
|
+
H0 法人税等 jppfs_cor:IncomeTaxes
|
166
|
+
H11 法人税、住民税及び事業税 jppfs_cor:IncomeTaxesCurrent
|
167
|
+
HA 当期利益 jppfs_cor:ProfitLoss
|
@@ -1,167 +1,193 @@
|
|
1
1
|
code label xbrl_id consumption_tax income_tax
|
2
|
-
1 資産合計
|
3
|
-
10 流動資産
|
4
|
-
10XX UNSETTLED_IMPORT
|
5
|
-
110 現金及び預金
|
6
|
-
1101 現金
|
7
|
-
1102 小口現金
|
8
|
-
1103 普通預金
|
9
|
-
1104 当座預金
|
10
|
-
1105 定期預金
|
11
|
-
1106 通知預金
|
12
|
-
1107 納税準備預金
|
13
|
-
1108 別段預金
|
14
|
-
120 受取手形
|
15
|
-
130 売掛金
|
16
|
-
140 短期貸付金
|
17
|
-
150 未収入金
|
18
|
-
1501 未収消費税等
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
2
|
+
1 資産合計 jpfr-t-cte:Assets
|
3
|
+
10 流動資産 jpfr-t-cte:CurrentAssets
|
4
|
+
10XX UNSETTLED_IMPORT
|
5
|
+
110 現金及び預金 jpfr-t-cte:CashAndDeposits
|
6
|
+
1101 現金 jpfr-etax-t-cte:CashHand
|
7
|
+
1102 小口現金 jpfr-etax-t-cte:PettyCash
|
8
|
+
1103 普通預金 jpfr-etax-t-cte:OrdinaryDeposit
|
9
|
+
1104 当座預金 jpfr-etax-t-cte:CheckingAccounts
|
10
|
+
1105 定期預金
|
11
|
+
1106 通知預金
|
12
|
+
1107 納税準備預金 jpfr-etax-t-cte:DepositsPreparationTaxPayment
|
13
|
+
1108 別段預金
|
14
|
+
120 受取手形 jpfr-t-cte:NotesReceivableTrade
|
15
|
+
130 売掛金 jpfr-t-cte:AccountsReceivableTrade
|
16
|
+
140 短期貸付金 jpfr-t-cte:ShortTermLoansReceivable
|
17
|
+
150 未収入金 jpfr-t-cte:AccruedIncome
|
18
|
+
1501 未収消費税等 jpfr-etax-t-cte:SuspenseAccountPaymentConsumptionTaxes
|
19
|
+
1502 未収法人税
|
20
|
+
1503 未収地方住民税
|
21
|
+
1504 未収地方事業税
|
22
|
+
160 棚卸資産
|
23
|
+
161 商品 jpfr-t-cte:Merchandise
|
24
|
+
162 製品 jpfr-t-cte:FinishedGoods
|
25
|
+
163 仕掛品 jpfr-t-cte:SemiFinishedGoods
|
26
|
+
164 貯蔵品 jpfr-t-cte:Supplies
|
27
|
+
180 その他流動資産 jpfr-t-cte:OtherCA
|
28
|
+
181 前渡金 jpfr-t-cte:AdvancePaymentsTrade
|
29
|
+
182 前払費用 jpfr-t-cte:PrepaidExpenses
|
30
|
+
183 立替金
|
31
|
+
184 仮払金
|
32
|
+
1841 仮払消費税等
|
33
|
+
185 仮払税金
|
34
|
+
1851 仮払法人税
|
35
|
+
1852 仮払法人税(地方)
|
36
|
+
1854 仮払地方税特別法人事業税
|
37
|
+
1855 仮払地方税所得割
|
38
|
+
1856 仮払地方税収入割
|
39
|
+
1857 仮払地方税資本割
|
40
|
+
1858 仮払地方税付加価値割
|
41
|
+
1859 仮払地方税法人税割
|
42
|
+
185A 仮払地方税均等割
|
43
|
+
185B 仮払消費税
|
44
|
+
185C 仮払地方消費税
|
45
|
+
30 固定資産 jpfr-t-cte:NoncurrentAssets
|
46
|
+
31 有形固定資産 jpfr-t-cte:PropertyPlantAndEquipment
|
47
|
+
311 建物 jpfr-t-cte:Buildings
|
48
|
+
312 構築物 jpfr-t-cte:Structures
|
49
|
+
313 機械装置 jpfr-t-cte:MachineryAndEquipment
|
50
|
+
314 車両運搬具 jpfr-t-cte:Vehicles
|
51
|
+
315 工具器具備品 jpfr-t-cte:ToolsFurnitureAndFixtures
|
52
|
+
316 土地 jpfr-t-cte:Land
|
53
|
+
317 建設仮勘定 jpfr-t-cte:ConstructionInProgress
|
54
|
+
318 船舶 jpfr-t-cte:Vessels
|
55
|
+
32 無形固定資産 jpfr-t-cte:IntangibleAssets
|
56
|
+
321 ソフトウェア jpfr-t-cte:Software
|
57
|
+
322 のれん jpfr-t-cte:Goodwill
|
58
|
+
323 特許権 jpfr-t-cte:PatentRight
|
59
|
+
324 借地権 jpfr-t-cte:LeaseholdRight
|
60
|
+
325 商標権 jpfr-t-cte:RightOfTrademark
|
61
|
+
326 電話加入権
|
62
|
+
33 投資その他の資産 jpfr-t-cte:InvestmentsAndOtherAssets
|
63
|
+
331 投資有価証券 jpfr-t-cte:InvestmentSecurities
|
64
|
+
332 関係会社株式 jpfr-t-cte:StocksOfSubsidiariesAndAffiliates
|
65
|
+
333 長期貸付金 jpfr-t-cte:LongTermLoansReceivable
|
66
|
+
334 破産更正債権 jpfr-t-cte:ClaimsProvableInBankruptcyClaimsProvableInRehabilitationAndOther
|
67
|
+
335 長期前払費用 jpfr-etax-t-cte:OtherLongTermPrepaidExpenses
|
68
|
+
336 敷金保証金 jpfr-t-cte:GuaranteeDepositsIOA
|
69
|
+
337 繰延税金資産 jpfr-t-cte:DeferredTaxAssetsCA
|
70
|
+
4V 繰延資産 jpfr-t-cte:DeferredAssets
|
71
|
+
4V1 開業費 jpfr-t-cte:BusinessCommencementExpensesDA
|
72
|
+
4V2 創立費 jpfr-t-cte:DeferredOrganizationExpensesDA
|
73
|
+
4V3 新株発行費 jpfr-t-cte:StockIssuanceCostDA
|
74
|
+
4V4 社債発行費 jpfr-t-cte:BondIssuanceCostDA
|
75
|
+
4V5 開発費 jpfr-t-cte:DevelopmentExpensesDA
|
76
|
+
5 負債・純資産合計 jpfr-t-cte:LiabilitiesAndNetAssets
|
77
|
+
50 流動負債 jpfr-t-cte:CurrentLiabilities
|
78
|
+
50XX UNSETTLED_IMPORT
|
79
|
+
510 支払手形 jpfr-t-cte:NotesPayableTrade
|
80
|
+
511 買掛金 jpfr-t-cte:AccountsPayableTrade
|
81
|
+
512 短期借入金 jpfr-t-cte:ShortTermLoansPayable
|
82
|
+
513 コマーシャルペーパー
|
83
|
+
514 未払金 jpfr-t-cte:AccountsPayableOther
|
84
|
+
515 未払法人税等 jpfr-t-cte:IncomeTaxesPayable
|
85
|
+
5151 未払法人税
|
86
|
+
5152 未払地方事業税
|
87
|
+
5153 未払都道府県民税
|
88
|
+
5154 未払市民税
|
89
|
+
516 未払消費税等 jpfr-t-cte:AccruedConsumptionTaxes
|
90
|
+
517 未払費用 jpfr-t-cte:AccruedExpenses
|
91
|
+
518 前受金 jpfr-t-cte:AdvancesReceived
|
92
|
+
519 預り金 jpfr-t-cte:DepositsReceived
|
93
|
+
5191 所得税源泉給与
|
94
|
+
5192 住民税
|
95
|
+
5193 所得税源泉士業
|
96
|
+
5194 所得税源泉報酬
|
97
|
+
51A 仮受金
|
98
|
+
51A1 仮受消費税等
|
99
|
+
70 固定負債 jpfr-t-cte:NoncurrentLiabilities
|
100
|
+
711 社債 jpfr-t-cte:BondsPayable
|
101
|
+
712 長期借入金 jpfr-t-cte:LongTermLoansPayable
|
102
|
+
713 退職給付引当金 jpfr-t-cte:ProvisionForRetirementBenefits
|
103
|
+
714 繰延税金負債 jpfr-t-cte:DeferredTaxLiabilitiesNCL
|
104
|
+
8ZZ 負債合計 jpfr-t-cte:Liabilities
|
105
|
+
91 株主資本 jpfr-t-cte:ShareholdersEquity
|
106
|
+
911 資本金 jpfr-t-cte:CapitalStock
|
107
|
+
912 新株式申込証拠金 jpfr-t-cte:DepositForSubscriptionsToShares
|
108
|
+
913 資本剰余金 jpfr-t-cte:LegalCapitalSurplus
|
109
|
+
9131 資本準備金 jpfr-t-cte:LegalCapitalSurplus
|
110
|
+
9132 その他資本剰余金 jpfr-t-cte:OtherCapitalSurplus
|
111
|
+
914 繰越利益剰余金 jpfr-t-cte:RetainedEarningsBroughtForward
|
112
|
+
9141 その他利益剰余金 jpfr-t-cte:OtherRetainedEarnings
|
113
|
+
9142 繰越利益剰余金
|
114
|
+
915 利益準備金 jpfr-t-cte:LegalRetainedEarnings
|
115
|
+
916 自己株式 jpfr-t-cte:TreasuryStock
|
116
|
+
917 自己株式申込証拠金 jpfr-t-cte:TreasurySubscriptionRightsToShares
|
117
|
+
92 評価換算差額等 jpfr-t-cte:ValuationAndTranslationAdjustments
|
118
|
+
921 有価証券評価差額金 jpfr-t-cte:ValuationDifferenceOnAvailableForSaleSecurities
|
119
|
+
922 為替換算調整勘定
|
120
|
+
93 新株予約権 jpfr-t-cte:TreasurySubscriptionRightsToShares
|
121
|
+
940 非支配株主持分
|
122
|
+
9ZZ 純資産合計 jpfr-t-cte:NetAssets
|
123
|
+
A0 売上 jpfr-t-cte:NetSales
|
124
|
+
A11 売上高 jpfr-t-cte:NetSales
|
125
|
+
B0 売上原価 jpfr-t-cte:CostOfSales
|
126
|
+
B11 仕入 jpfr-t-cte:CostOfPurchasedGoods
|
127
|
+
B12 材料費
|
128
|
+
B13 当期製品製造原価
|
129
|
+
B131 労務費
|
130
|
+
BA 粗利益 jpfr-t-cte:GrossProfit
|
131
|
+
C0 販売費及び一般管理費 jpfr-t-cte:SellingGeneralAndAdministrativeExpenses
|
132
|
+
C11 役員報酬 jpfr-t-cte:DirectorsCompensationsSGA
|
133
|
+
C111 役員賞与
|
134
|
+
C12 給料手当 jpfr-t-cte:SalariesSGA
|
135
|
+
C13 賞与 jpfr-t-cte:BonusesSGA
|
136
|
+
C14 賃金 jpfr-t-cte:WagesSGA
|
137
|
+
C15 退職金 jpfr-etax-t-cte:PensionExpense
|
138
|
+
C16 法定福利費 jpfr-t-cte:LegalWelfareExpensesSGA
|
139
|
+
C17 旅費交通費 jpfr-t-cte:TravelingExpensesSGA
|
140
|
+
C18 通信費 jpfr-t-cte:CommunicationExpensesSGA
|
141
|
+
C19 修繕費 jpfr-t-cte:RepairExpensesSGA
|
142
|
+
C1A 広告宣伝費 jpfr-t-cte:AdvertisingExpensesSGA
|
143
|
+
C1B 接待交際費 jpfr-t-cte:EntertainmentExpensesSGA
|
144
|
+
C1C 荷造運賃 jpfr-t-cte:HaulageExpensesSGA
|
145
|
+
C1D 福利厚生費 jpfr-t-cte:WelfareExpensesSGA
|
146
|
+
C1E 地代家賃 jpfr-t-cte:RentsSGA
|
147
|
+
C1F 水道光熱費 jpfr-t-cte:HeatingAndLightingExpensesSGA
|
148
|
+
C1G 消耗品費 jpfr-t-cte:SuppliesExpensesSGA
|
149
|
+
C1H 保険料 jpfr-t-cte:InsuranceExpensesSGA
|
150
|
+
C1I 租税公課 jpfr-t-cte:TaxesAndDuesSGA
|
151
|
+
C1I1 消費税
|
152
|
+
C1I2 事業税
|
153
|
+
C1J 賃借料 jpfr-etax-t-cte:LeaseExpense
|
154
|
+
C1K 新聞図書費 jpfr-etax-t-cte:PapersSubscriptionLibraryCost
|
155
|
+
C1L 貸倒損失 jpfr-t-cte:AllowanceSGA
|
156
|
+
C1M 諸会費 jpfr-t-cte:MembershipFeeSGA
|
157
|
+
C1N 支払手数料 jpfr-t-cte:CommissionFeeSGA
|
158
|
+
C1O 外注費 jpfr-t-cte:SubcontractExpensesSGA
|
159
|
+
C1P 減価償却費 jpfr-t-cte:DepreciationSGA
|
160
|
+
C1Q 雑費 jpfr-t-cte:MiscellaneousExpensesSGA
|
161
|
+
C1R 貸倒引当金繰入
|
162
|
+
C1S 支払報酬 jpfr-t-cte:CompensationsSGA
|
163
|
+
C1T 研修費 jpfr-etax-t-cte:RecruitmentEducationExpense
|
164
|
+
C1U 採用費
|
165
|
+
C1V 業務委託費
|
166
|
+
C1W 会議費
|
167
|
+
CA 営業利益 jpfr-t-cte:OperatingIncome
|
168
|
+
D0 営業外収益 jpfr-t-cte:NonOperatingIncome
|
169
|
+
D11 受取利息 jpfr-t-cte:InterestIncomeNOI
|
170
|
+
D12 受取配当金 jpfr-t-cte:DividendsIncomeNOI
|
171
|
+
D13 有価証券売却益
|
172
|
+
D14 有価証券利息 jpfr-t-cte:InterestOnSecuritiesNOI
|
173
|
+
D15 為替差益
|
174
|
+
D16 雑収入 jpfr-t-cte:MiscellaneousIncomeNOI
|
175
|
+
E0 営業外費用 jpfr-t-cte:NonOperatingExpenses
|
176
|
+
E11 支払利息 jpfr-t-cte:InterestExpensesNOE
|
177
|
+
E12 手形売却損
|
178
|
+
E13 有価証券売却損
|
179
|
+
E14 有価証券評価損
|
180
|
+
E15 為替差損
|
181
|
+
E16 雑損失
|
182
|
+
EA 経常利益 jpfr-t-cte:OrdinaryIncome
|
183
|
+
F0 特別利益 jpfr-t-cte:ExtraordinaryIncome
|
184
|
+
F11 固定資産売却益 jpfr-t-cte:GainOnSalesOfNoncurrentAssetsEI
|
185
|
+
F12 償却債権取立益
|
186
|
+
G0 特別損失 jpfr-t-cte:ExtraordinaryLoss
|
187
|
+
G11 固定資産売却損 jpfr-t-cte:LossOnSalesOfNoncurrentAssetsEL
|
188
|
+
G12 固定資産除却損
|
189
|
+
G13 災害損失 jpfr-t-cte:LossOnDisasterEL
|
190
|
+
GA 税引前利益 jpfr-t-cte:IncomeBeforeIncomeTaxes
|
191
|
+
H0 法人税等 jpfr-t-cte:IncomeTaxes
|
192
|
+
H11 法人税、住民税及び事業税 jpfr-t-cte:IncomeTaxesCurrent
|
193
|
+
HA 当期利益 jpfr-t-cte:NetIncome
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
5
|
+
<style>
|
6
|
+
td { text-align: right; line-height: 2em; min-width: 6em }
|
7
|
+
thead th, thead td { text-align: center }
|
8
|
+
thead { border-bottom: solid 1px #aaa }
|
9
|
+
tr#total { border-top: solid 1px #aaa }
|
10
|
+
tr.sub { font-size: .8em; color: #aaa }
|
11
|
+
.past { color: #777 }
|
12
|
+
</style>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div style="margin: 1em 0"><%= @company %></div>
|
16
|
+
|
17
|
+
<h2>Income Statement</h2>
|
18
|
+
<div style="overflow-x: scroll">
|
19
|
+
<table>
|
20
|
+
<thead>
|
21
|
+
<tr>
|
22
|
+
<th></th>
|
23
|
+
<% @months.each do |d| %>
|
24
|
+
<th><%= d %></th>
|
25
|
+
<% end %>
|
26
|
+
</tr>
|
27
|
+
</thead>
|
28
|
+
<tbody>
|
29
|
+
<% @pl.each.with_index(1) do |(key, val), i| %>
|
30
|
+
<tr>
|
31
|
+
<td><%= key %></td>
|
32
|
+
<% val.each do |v| %>
|
33
|
+
<td><%= delimit_num(v) %></td>
|
34
|
+
<% end %>
|
35
|
+
</tr>
|
36
|
+
<% end %>
|
37
|
+
</tbody>
|
38
|
+
</table>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<h2>Balance Sheet</h2>
|
42
|
+
<div style="overflow-x: scroll">
|
43
|
+
<table>
|
44
|
+
<thead>
|
45
|
+
<tr>
|
46
|
+
<th>Account</th><th>Balance</th><th>Change</th>
|
47
|
+
<th>Account</th><th>Balance</th><th>Change</th>
|
48
|
+
</tr>
|
49
|
+
</thead>
|
50
|
+
<tbody>
|
51
|
+
<% @bs.each.with_index(1) do |row, i| %>
|
52
|
+
<tr>
|
53
|
+
<td><%= row['debit_label'] %></td>
|
54
|
+
<td><%= delimit_num(row['debit_balance']) %></td>
|
55
|
+
<td><%= delimit_num(row['debit_diff']) %></td>
|
56
|
+
|
57
|
+
<td><%= row['credit_label'] %></td>
|
58
|
+
<td><%= delimit_num(row['credit_balance']) %></td>
|
59
|
+
<td><%= delimit_num(row['credit_diff']) %></td>
|
60
|
+
</tr>
|
61
|
+
<% end %>
|
62
|
+
</tbody>
|
63
|
+
</table>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
</body>
|
67
|
+
</html>
|
data/lib/luca_book/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucabook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.25
|
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-
|
11
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lucarecord
|
@@ -89,9 +89,12 @@ files:
|
|
89
89
|
- lib/luca_book/setup.rb
|
90
90
|
- lib/luca_book/state.rb
|
91
91
|
- lib/luca_book/templates/base-jp.xbrl.erb
|
92
|
+
- lib/luca_book/templates/base-jp.xsd.erb
|
92
93
|
- lib/luca_book/templates/config.yml
|
93
94
|
- lib/luca_book/templates/dict-en.tsv
|
95
|
+
- lib/luca_book/templates/dict-jp-edinet.tsv
|
94
96
|
- lib/luca_book/templates/dict-jp.tsv
|
97
|
+
- lib/luca_book/templates/monthly-report.html.erb
|
95
98
|
- lib/luca_book/util.rb
|
96
99
|
- lib/luca_book/version.rb
|
97
100
|
homepage: https://github.com/chumaltd/luca/tree/master/lucabook
|