luca-jp 0.2.4 → 0.12.0
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 +44 -12
- data/lib/luca/jp/aoiro.rb +71 -38
- data/lib/luca/jp/chihouzei.rb +86 -34
- data/lib/luca/jp/common.rb +156 -30
- data/lib/luca/jp/it_part.rb +1 -1
- data/lib/luca/jp/syouhizei.rb +11 -1
- data/lib/luca/jp/templates/beppyo1-next.xml.erb +4 -2
- data/lib/luca/jp/templates/beppyo1.xml.erb +1 -1
- data/lib/luca/jp/templates/beppyo2.xml.erb +2 -0
- data/lib/luca/jp/templates/beppyo4.xml.erb +60 -35
- data/lib/luca/jp/templates/beppyo51.xml.erb +36 -6
- data/lib/luca/jp/templates/beppyo52.xml.erb +1 -1
- data/lib/luca/jp/templates/el-no20.xml.erb +143 -0
- data/lib/luca/jp/templates/el-no6-43.xml.erb +10 -9
- data/lib/luca/jp/templates/el-no6-9.xml.erb +2 -2
- data/lib/luca/jp/templates/el-no6.xml.erb +24 -22
- data/lib/luca/jp/templates/eltax.xml.erb +13 -13
- data/lib/luca/jp/templates/gaikyo.xml.erb +82 -2
- data/lib/luca/jp/templates/shoken-meisai.xml.erb +13 -7
- data/lib/luca/jp/templates/syouhizei-shinkoku-kanni.xml.erb +1 -1
- data/lib/luca/jp/templates/yokin-meisai.xml.erb +1 -0
- data/lib/luca/jp/uchiwake.rb +8 -3
- data/lib/luca/jp/util.rb +20 -3
- data/lib/luca/jp/version.rb +1 -1
- metadata +10 -9
@@ -0,0 +1,143 @@
|
|
1
|
+
<R0504AA180 xmlns="http://eltax.jp/HOJIN_DOFUKEN" vr="180" page="" seiseiSoft="<%= @software %>" seiseiVr="1" seiseiDay="<%= Date.today.strftime('%Y%m%d') %>" seiseiNM="<%= it_part_config('nozeisha_nm') %>" koshinSoft="" koshinVr="" koshinDay="" koshinNM="" taari="">
|
2
|
+
<AAA00100 idref="SEIRI_NUM" />
|
3
|
+
<AAA00200 idref="JIMUSHO_NUM"></AAA00200>
|
4
|
+
<AAA00300 idref="HOJIN_NUM"></AAA00300>
|
5
|
+
<AAA00400 />
|
6
|
+
<AAA00500 idref="HOJIN_NUMBER"></AAA00500>
|
7
|
+
<AAA00700 idref="RPT_DATE">
|
8
|
+
<gen:era></gen:era>
|
9
|
+
<gen:yy></gen:yy>
|
10
|
+
<gen:mm></gen:mm>
|
11
|
+
<gen:dd></gen:dd>
|
12
|
+
</AAA00700>
|
13
|
+
<AAA00800>
|
14
|
+
<gen:era><%= gengou(@issue_date) %></gen:era>
|
15
|
+
<gen:yy><%= wareki(@issue_date) %></gen:yy>
|
16
|
+
<gen:mm><%= @issue_date.month %></gen:mm>
|
17
|
+
<gen:dd><%= @issue_date.day %></gen:dd>
|
18
|
+
</AAA00800>
|
19
|
+
<AAA00900 idref="ORG1_NAME"></AAA00900>
|
20
|
+
<AAA_HONTEN_ZIP idref="HONTEN_ZIP"></AAA_HONTEN_ZIP>
|
21
|
+
<AAA_HONTEN_ADDR idref="HONTEN_ADDR"></AAA_HONTEN_ADDR>
|
22
|
+
<AAA_HONTEN_TEL_NUM idref="HONTEN_TEL"></AAA_HONTEN_TEL_NUM>
|
23
|
+
<AAA_ZIP />
|
24
|
+
<AAA_ADDR />
|
25
|
+
<AAA_TEL_NUM />
|
26
|
+
<AAA_KANA idref="KANA"></AAA_KANA>
|
27
|
+
<AAA_NAME idref="NAME"></AAA_NAME>
|
28
|
+
<AAA_DAIHYO_KANA idref="DAIHYO_KANA"></AAA_DAIHYO_KANA>
|
29
|
+
<AAA_DAIHYO_NAME idref="DAIHYO_NAME"></AAA_DAIHYO_NAME>
|
30
|
+
<AAA01000>
|
31
|
+
<gen:era />
|
32
|
+
<gen:yy />
|
33
|
+
<gen:mm />
|
34
|
+
<gen:dd />
|
35
|
+
<gen:yyyymmdd />
|
36
|
+
</AAA01000>
|
37
|
+
<AAA01100 />
|
38
|
+
<AAA01200 />
|
39
|
+
<AAA_JIGYO_NAME idref="JIGYO_NAME"></AAA_JIGYO_NAME>
|
40
|
+
<AAA_SHIHON idref="SHIHON"></AAA_SHIHON>
|
41
|
+
<AAA_SHIHON2><%= 資本金等の額 %></AAA_SHIHON2>
|
42
|
+
<AAA_SHIHON3><%= @資本金準備金 %></AAA_SHIHON3>
|
43
|
+
<AAA_SHIHON4><%= 地方税資本金等の額 %></AAA_SHIHON4>
|
44
|
+
<AAA_KEIRI_KANA></AAA_KEIRI_KANA>
|
45
|
+
<AAA_KEIRI_NAME></AAA_KEIRI_NAME>
|
46
|
+
<AAA_JIGYO_SDATE idref="SDATE">
|
47
|
+
<gen:era></gen:era>
|
48
|
+
<gen:yy></gen:yy>
|
49
|
+
<gen:mm></gen:mm>
|
50
|
+
<gen:dd></gen:dd>
|
51
|
+
<gen:yyyymmdd></gen:yyyymmdd>
|
52
|
+
</AAA_JIGYO_SDATE>
|
53
|
+
<AAA_JIGYO_EDATE idref="EDATE">
|
54
|
+
<gen:era></gen:era>
|
55
|
+
<gen:yy></gen:yy>
|
56
|
+
<gen:mm></gen:mm>
|
57
|
+
<gen:dd></gen:dd>
|
58
|
+
<gen:yyyymmdd></gen:yyyymmdd>
|
59
|
+
</AAA_JIGYO_EDATE>
|
60
|
+
<AAA_RPT_KBN idref="RPT_NAME">確定</AAA_RPT_KBN>
|
61
|
+
<AAA01300 />
|
62
|
+
<AAB00100 />
|
63
|
+
<AAB00110><%= @税額.dig(:houjin, :kokuzei) %></AAB00110>
|
64
|
+
<AAB00200 />
|
65
|
+
<AAB00400 />
|
66
|
+
<AAB00500 />
|
67
|
+
<AAB00600><%= 法人税割課税標準 %></AAB00600>
|
68
|
+
<AAB00610><%= 法人税割税率[1] %></AAB00610>
|
69
|
+
<AAB00620><%= 法人税割[1] %></AAB00620>
|
70
|
+
<AAB00700 />
|
71
|
+
<AAB00710 />
|
72
|
+
<AAB00720 />
|
73
|
+
<AAB00730 />
|
74
|
+
<AAB00750 />
|
75
|
+
<AAB00800 />
|
76
|
+
<AAB00900 />
|
77
|
+
<AAB01000><%= 法人税割[1] %></AAB01000>
|
78
|
+
<AAB01100><%= @法人税割中間納付 %></AAB01100>
|
79
|
+
<AAB01200 />
|
80
|
+
<AAB01300><%= @確定法人税割 - @法人税割中間納付 %></AAB01300>
|
81
|
+
<AAB01400>12</AAB01400>
|
82
|
+
<AAB01410><%= @均等割 %></AAB01410>
|
83
|
+
<AAB01420><%= @均等割 %></AAB01420>
|
84
|
+
<AAB01500><%= @均等割中間納付 %></AAB01500>
|
85
|
+
<AAB01600><%= @均等割 - @均等割中間納付 %></AAB01600>
|
86
|
+
<AAB01700><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB01700>
|
87
|
+
<AAB01800 />
|
88
|
+
<AAB01900><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB01900>
|
89
|
+
<AAC00100>
|
90
|
+
<AAC00200><%= @jigyosho_name %></AAC00200>
|
91
|
+
<AAC00300><%= @address %></AAC00300>
|
92
|
+
<AAC00400><%= @employee %></AAC00400>
|
93
|
+
<AAC00500><%= @employee %></AAC00500>
|
94
|
+
</AAC00100>
|
95
|
+
<AAC00600><%# 全従業者数 %></AAC00600>
|
96
|
+
<AAC00700><%= @employee %></AAC00700>
|
97
|
+
<AAC00800><%= @employee %></AAC00800>
|
98
|
+
<AAD00100>
|
99
|
+
<AAD00200 />
|
100
|
+
<AAD00300 />
|
101
|
+
<AAD00400 />
|
102
|
+
<AAD00500 />
|
103
|
+
<AAD00600 />
|
104
|
+
</AAD00100>
|
105
|
+
<AAE00100>
|
106
|
+
<gen:era />
|
107
|
+
<gen:yy />
|
108
|
+
<gen:mm />
|
109
|
+
<gen:dd />
|
110
|
+
</AAE00100>
|
111
|
+
<AAE01000>
|
112
|
+
<gen:era />
|
113
|
+
<gen:yy />
|
114
|
+
<gen:mm />
|
115
|
+
<gen:dd />
|
116
|
+
</AAE01000>
|
117
|
+
<AAE01100>
|
118
|
+
<gen:era />
|
119
|
+
<gen:yy />
|
120
|
+
<gen:mm />
|
121
|
+
<gen:dd />
|
122
|
+
</AAE01100>
|
123
|
+
<AAE00200>1</AAE00200><%# 青色申告 %>
|
124
|
+
<AAE00300><%= @税額.dig(:houjin, :kokuzei) > 200000 ? 1 : 2 %></AAE00300>
|
125
|
+
<AAE00400>
|
126
|
+
<gen:era />
|
127
|
+
<gen:yy />
|
128
|
+
<gen:mm />
|
129
|
+
<gen:dd />
|
130
|
+
</AAE00400>
|
131
|
+
<AAE00500>
|
132
|
+
<gen:era />
|
133
|
+
<gen:yy />
|
134
|
+
<gen:mm />
|
135
|
+
<gen:dd />
|
136
|
+
</AAE00500>
|
137
|
+
<AAE00600>2</AAE00600>
|
138
|
+
<AAE00700><%= eltax_kouza %></AAE00700>
|
139
|
+
<AAE00800><%= 中間還付税額(@確定法人税割, @法人税割中間納付) %></AAE00800>
|
140
|
+
<AAE00900 />
|
141
|
+
<AAJ_DAIRI_NAME></AAJ_DAIRI_NAME>
|
142
|
+
<AAJ_DAIRI_TEL_NUM></AAJ_DAIRI_TEL_NUM>
|
143
|
+
</R0504AA180>
|
@@ -8,9 +8,9 @@
|
|
8
8
|
<gen:yyyymmdd></gen:yyyymmdd>
|
9
9
|
</AGA_JIGYO_EDATE>
|
10
10
|
<AGA_NAME idref="NAME"></AGA_NAME>
|
11
|
-
<AGB00100><%= @
|
11
|
+
<AGB00100><%= @address %></AGB00100>
|
12
12
|
<AGB00200>12</AGB00200>
|
13
|
-
<AGB00300
|
13
|
+
<AGB00300><%= @employee %></AGB00300>
|
14
14
|
<AGC00100 />
|
15
15
|
<AGC00110 />
|
16
16
|
<AGC00120 />
|
@@ -132,16 +132,17 @@
|
|
132
132
|
<AGE00710 />
|
133
133
|
<AGE00800 />
|
134
134
|
<AGE00900 />
|
135
|
-
<AGF00100
|
135
|
+
<AGF00100><%= @均等割 if @employee > 50 %></AGF00100>
|
136
136
|
<AGF00200 />
|
137
137
|
<AGF00300 />
|
138
|
-
<AGF00400
|
139
|
-
<AGF00500
|
140
|
-
<
|
138
|
+
<AGF00400><%= "12" if @employee > 50 %></AGF00400>
|
139
|
+
<AGF00500><%= @均等割 if @employee > 50 %></AGF00500>
|
140
|
+
<AGF00200 />
|
141
|
+
<AGF00600><%= @均等割 if @employee <= 50 %></AGF00600>
|
141
142
|
<AGF00700 />
|
142
143
|
<AGF00800 />
|
143
|
-
<AGF00900
|
144
|
-
<AGF01000
|
144
|
+
<AGF00900><%= "12" if @employee <= 50 %></AGF00900>
|
145
|
+
<AGF01000><%= @均等割 if @employee <= 50 %></AGF01000>
|
145
146
|
<AGF01100 />
|
146
147
|
<AGF01200 />
|
147
148
|
<AGF01300 />
|
@@ -173,6 +174,6 @@
|
|
173
174
|
<AGF03900 />
|
174
175
|
<AGF04000 />
|
175
176
|
<AGF04100 />
|
176
|
-
<AGF04200
|
177
|
+
<AGF04200><%= @均等割 %></AGF04200>
|
177
178
|
<AGG00100 />
|
178
179
|
</R0102AG120>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<
|
1
|
+
<R0102AM<%= @form_vers['R0102AM'] %> xmlns="http://eltax.jp/HOJIN_DOFUKEN" vr="<%= @form_vers['R0102AM'] %>" page="" seiseiSoft="<%= @software %>" seiseiVr="1" seiseiDay="<%= Date.today.strftime('%Y%m%d') %>" seiseiNM="<%= it_part_config('nozeisha_nm') %>" koshinSoft="" koshinVr="" koshinDay="" koshinNM="" taari="">
|
2
2
|
<AMA_JIGYO_SDATE idref="SDATE">
|
3
3
|
<gen:era></gen:era><gen:yy></gen:yy><gen:mm></gen:mm><gen:dd></gen:dd>
|
4
4
|
<gen:yyyymmdd></gen:yyyymmdd>
|
@@ -48,4 +48,4 @@
|
|
48
48
|
</AMC00500>
|
49
49
|
<AMC00600 />
|
50
50
|
<AMC00700 />
|
51
|
-
</
|
51
|
+
</R0102AM<%= @form_vers['R0102AM'] %>>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<
|
1
|
+
<R0102AA<%= @form_vers['R0102AA'] %> xmlns="http://eltax.jp/HOJIN_DOFUKEN" vr="<%= @form_vers['R0102AA'] %>" page="" seiseiSoft="<%= @software %>" seiseiVr="1" seiseiDay="<%= Date.today.strftime('%Y%m%d') %>" seiseiNM="<%= it_part_config('nozeisha_nm') %>" koshinSoft="" koshinVr="" koshinDay="" koshinNM="" taari="">
|
2
2
|
<AAA00100 idref="SEIRI_NUM" />
|
3
3
|
<AAA00200 idref="JIMUSHO_NUM"></AAA00200>
|
4
4
|
<AAA00300 idref="HOJIN_NUM"></AAA00300>
|
@@ -19,10 +19,10 @@
|
|
19
19
|
<gen:dd></gen:dd>
|
20
20
|
</AAA00700>
|
21
21
|
<AAA00800>
|
22
|
-
<gen:era
|
23
|
-
<gen:yy
|
24
|
-
<gen:mm
|
25
|
-
<gen:dd
|
22
|
+
<gen:era><%= gengou(@issue_date) %></gen:era>
|
23
|
+
<gen:yy><%= wareki(@issue_date) %></gen:yy>
|
24
|
+
<gen:mm><%= @issue_date.month %></gen:mm>
|
25
|
+
<gen:dd><%= @issue_date.day %></gen:dd>
|
26
26
|
</AAA00800>
|
27
27
|
<AAA00900 idref="ORG1_NAME"></AAA00900>
|
28
28
|
<AAA_HONTEN_ZIP idref="HONTEN_ZIP"></AAA_HONTEN_ZIP>
|
@@ -41,9 +41,9 @@
|
|
41
41
|
<AAA_SHIHON idref="SHIHON"></AAA_SHIHON>
|
42
42
|
<AAA_SHIHON3></AAA_SHIHON3>
|
43
43
|
<AAA_SHIHON4></AAA_SHIHON4>
|
44
|
-
<AAA_SHIHON2><%=
|
44
|
+
<AAA_SHIHON2><%= 資本金等の額 %></AAA_SHIHON2>
|
45
45
|
<AAA_SHIHON5><%= @資本金準備金 %></AAA_SHIHON5>
|
46
|
-
<AAA_SHIHON6><%=
|
46
|
+
<AAA_SHIHON6><%= 地方税資本金等の額 %></AAA_SHIHON6>
|
47
47
|
<AAA_JIGYO_SDATE idref="SDATE">
|
48
48
|
<gen:era></gen:era>
|
49
49
|
<gen:yy></gen:yy>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
<AAB00500 />
|
68
68
|
<AAB00600><%= 法人税割課税標準 %></AAB00600>
|
69
69
|
<AAB00700 />
|
70
|
-
<AAB00800
|
70
|
+
<AAB00800><%= 法人税割税率[0] unless tokyo23? %></AAB00800>
|
71
71
|
<AAB00810><%= 法人税割[0] %></AAB00810>
|
72
72
|
<AAB00820 />
|
73
73
|
<AAB00850 />
|
@@ -85,21 +85,21 @@
|
|
85
85
|
<AAB02100><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB02100>
|
86
86
|
<AAB02200 />
|
87
87
|
<AAB02300><%= 納付税額(@確定法人税割, @法人税割中間納付) + 納付税額(@均等割, @均等割中間納付) %></AAB02300>
|
88
|
-
<AAC00100><%= 法人税割課税標準 %></AAC00100>
|
89
|
-
<AAC00200
|
90
|
-
<AAC00210><%= 法人税割[0] %></AAC00210>
|
88
|
+
<AAC00100><%= 法人税割課税標準 if tokyo23? %></AAC00100>
|
89
|
+
<AAC00200><%= 法人税割税率[0] if tokyo23? %></AAC00200>
|
90
|
+
<AAC00210><%= 法人税割[0] if tokyo23? %></AAC00210>
|
91
91
|
<AAC00300 />
|
92
92
|
<AAC00400 />
|
93
93
|
<AAC00410 />
|
94
94
|
<AAE00100><%= 所得金額 %></AAE00100>
|
95
95
|
<AAE00200><%= 所得400万以下 %></AAE00200>
|
96
|
-
<AAE00210
|
96
|
+
<AAE00210><%= 所得割税率400万以下 %></AAE00210>
|
97
97
|
<AAE00220><%= 所得割400万以下 %></AAE00220>
|
98
98
|
<AAE00300><%= 所得800万以下 %></AAE00300>
|
99
|
-
<AAE00310
|
99
|
+
<AAE00310><%= 所得割税率800万以下 %></AAE00310>
|
100
100
|
<AAE00320><%= 所得割800万以下 %></AAE00320>
|
101
101
|
<AAE00400><%= 所得800万超 %></AAE00400>
|
102
|
-
<AAE00410
|
102
|
+
<AAE00410><%= 所得割税率800万超 %></AAE00410>
|
103
103
|
<AAE00420><%= 所得割800万超 %></AAE00420>
|
104
104
|
<AAE00500><%= 所得400万以下 + 所得800万以下 + 所得800万超 %></AAE00500>
|
105
105
|
<%= render_attr('AAE00510', @所得割) %>
|
@@ -119,7 +119,9 @@
|
|
119
119
|
<AAE00810 />
|
120
120
|
<AAE00820 />
|
121
121
|
<%= render_attr('AAE00900', @所得割) %>
|
122
|
-
|
122
|
+
<% if @form_vers['R0102AA'] == '190' %>
|
123
|
+
<AAE00950 />
|
124
|
+
<% end %>
|
123
125
|
<AAE00960 />
|
124
126
|
<AAE01000 />
|
125
127
|
<AAE01050 />
|
@@ -134,18 +136,18 @@
|
|
134
136
|
<AAE01500><%= @所得割 - 事業税中間納付 %></AAE01500>
|
135
137
|
<%= render_attr('AAK00100', @所得割) %>
|
136
138
|
<%= render_attr('AAK00200', 37) %>
|
137
|
-
<%= render_attr('AAK00300',
|
139
|
+
<%= render_attr('AAK00300', 特別法人事業税(@所得割)) %>
|
138
140
|
<AAK00400 />
|
139
141
|
<AAK00500 />
|
140
142
|
<AAK00600 />
|
141
|
-
<%= render_attr('AAK00700',
|
143
|
+
<%= render_attr('AAK00700', 特別法人事業税(@所得割)) %>
|
142
144
|
<AAK00800 />
|
143
|
-
<%= render_attr('AAK00850',
|
145
|
+
<%= render_attr('AAK00850', 特別法人事業税(@所得割)) %>
|
144
146
|
<%= render_attr('AAK00900', @地方特別法人事業税中間納付) %>
|
145
147
|
<AAK01000 />
|
146
|
-
<AAK01100><%=
|
148
|
+
<AAK01100><%= 特別法人事業税(@所得割) - @地方特別法人事業税中間納付 %></AAK01100>
|
147
149
|
<AAK01200 />
|
148
|
-
<AAK01300><%=
|
150
|
+
<AAK01300><%= 特別法人事業税(@所得割) - @地方特別法人事業税中間納付 %></AAK01300>
|
149
151
|
<%= render_attr('AAF00100', 当期所得金額) %>
|
150
152
|
<AAF00200 />
|
151
153
|
<AAF00300 />
|
@@ -155,7 +157,7 @@
|
|
155
157
|
<%= render_attr('AAF00700', @繰越損失管理.deduction) %>
|
156
158
|
<%= render_attr('AAG00100', 所得金額) %>
|
157
159
|
<AAH00100 />
|
158
|
-
<AAH00200><%= 中間還付税額(@確定法人税割, @法人税割中間納付) + 中間還付税額(@所得割, 事業税中間納付) + 中間還付税額(
|
160
|
+
<AAH00200><%= 中間還付税額(@確定法人税割, @法人税割中間納付) + 中間還付税額(@所得割, 事業税中間納付) + 中間還付税額(特別法人事業税(@所得割), @地方特別法人事業税中間納付) %></AAH00200>
|
159
161
|
<AAH00400><%= eltax_kouza %></AAH00400>
|
160
162
|
<AAI00100>
|
161
163
|
<gen:era />
|
@@ -195,4 +197,4 @@
|
|
195
197
|
<AAI00800 />
|
196
198
|
<AAJ_DAIRI_NAME></AAJ_DAIRI_NAME>
|
197
199
|
<AAJ_DAIRI_TEL_NUM></AAJ_DAIRI_TEL_NUM>
|
198
|
-
</
|
200
|
+
</R0102AA<%= @form_vers['R0102AA'] %>>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<KOUSEI_KANRI_INF id="KOUSEI_KANRI_INF">
|
4
4
|
<KOUSEI_KANRI id="KOUSEI_KANRI">
|
5
5
|
<KANRI_INF id="KANRI_INF">
|
6
|
-
<KOUSEI_KANRI_VR>0001</KOUSEI_KANRI_VR
|
7
|
-
<ORG1_CD
|
6
|
+
<KOUSEI_KANRI_VR>0001</KOUSEI_KANRI_VR><%# 固定値 %>
|
7
|
+
<ORG1_CD><%= @jichitai_code %></ORG1_CD><%# 地方公共団体コード %>
|
8
8
|
<PROC_ID><%= @procedure_code %></PROC_ID>
|
9
9
|
<PROC_NAME><%= @procedure_name %></PROC_NAME>
|
10
10
|
<FIRST_RCPT_NUM></FIRST_RCPT_NUM>
|
@@ -12,9 +12,9 @@
|
|
12
12
|
<%= @form_sec %>
|
13
13
|
<GYOMU_PROC id="GYOMU_PROC">
|
14
14
|
<PROC_INF id="PROC_INF">
|
15
|
-
<GYOMU_KBN id="GYOMU_KBN">R0</GYOMU_KBN
|
16
|
-
<ORG2_CD id="ORG2_CD"><%= @jimusho_code %></ORG2_CD
|
17
|
-
<ORG3_CD id="ORG3_CD">000000</ORG3_CD
|
15
|
+
<GYOMU_KBN id="GYOMU_KBN">R0</GYOMU_KBN><%# 申告 %>
|
16
|
+
<ORG2_CD id="ORG2_CD"><%= @jimusho_code %></ORG2_CD><%# 税務事務所 %>
|
17
|
+
<ORG3_CD id="ORG3_CD">000000</ORG3_CD><%# 固定値 %>
|
18
18
|
<ORG1_NAME id="ORG1_NAME"><%= @jimusho_name %></ORG1_NAME>
|
19
19
|
<SDATE id="SDATE">
|
20
20
|
<gen:era><%= gengou(@start_date) %></gen:era>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<RPT_KBN id="RPT_KBN">100</RPT_KBN>
|
41
41
|
<TAX_NAME id="TAX_NAME">法人都道府県民税・事業税・特別法人事業税又は地方法人特別税</TAX_NAME>
|
42
42
|
<RPT_NAME id="RPT_NAME">確定</RPT_NAME>
|
43
|
-
<MAKE_KBN id="MAKE_KBN">1</MAKE_KBN
|
43
|
+
<MAKE_KBN id="MAKE_KBN">1</MAKE_KBN><%# 新規 %>
|
44
44
|
<REV_RCPT_NUM id="REV_RCPT_NUM"></REV_RCPT_NUM>
|
45
45
|
</PROC_INF>
|
46
46
|
<%= @user_inf %>
|
@@ -74,15 +74,15 @@
|
|
74
74
|
<KAZEI_TEL id="KAZEI_TEL" />
|
75
75
|
<HOGEN_NUM id="HOGEN_NUM" />
|
76
76
|
<KANRI_NUM id="KANRI_NUM" />
|
77
|
-
<KAZEI_NUM id="KAZEI_NUM"><%=
|
77
|
+
<KAZEI_NUM id="KAZEI_NUM"><%= @kanri_bango %></KAZEI_NUM>
|
78
78
|
<HOJO_NUM id="HOJO_NUM" />
|
79
79
|
<STF_NUM id="STF_NUM" />
|
80
80
|
</ORG_INF>
|
81
|
-
<STIME id="STIME"
|
81
|
+
<STIME id="STIME"><%# @app_version %></STIME>
|
82
82
|
<HOJIN_DOFUKEN id="HOJIN_DOFUKEN">
|
83
83
|
<FORM_INF id="FORM_INF">
|
84
84
|
<JIGYO_NAME id="JIGYO_NAME"><%= it_part_config('jigyo_naiyo') %></JIGYO_NAME>
|
85
|
-
<SHIHON id="SHIHON"><%=
|
85
|
+
<SHIHON id="SHIHON"><%= 期末資本金 %></SHIHON>
|
86
86
|
<HOJIN_NUM id="HOJIN_NUM"></HOJIN_NUM>
|
87
87
|
<JIMUSHO_NUM id="JIMUSHO_NUM"><%= @jimusho_code %></JIMUSHO_NUM>
|
88
88
|
<SEIRI_NUM id="SEIRI_NUM" />
|
@@ -93,7 +93,7 @@
|
|
93
93
|
<TAX_DATA id="TAX_DATA">
|
94
94
|
<%= @form_data %>
|
95
95
|
<TENPU_INF>
|
96
|
-
<YUSO_KBN>0</YUSO_KBN
|
96
|
+
<YUSO_KBN>0</YUSO_KBN><%# 郵送添付書類なし %>
|
97
97
|
</TENPU_INF>
|
98
98
|
</TAX_DATA>
|
99
99
|
</KOUSEI_KANRI_INF>
|
@@ -108,9 +108,9 @@
|
|
108
108
|
<UDATE></UDATE>
|
109
109
|
<SIGN_DATE></SIGN_DATE>
|
110
110
|
<SEND_DATE></SEND_DATE>
|
111
|
-
<RPT_INF>10</RPT_INF
|
112
|
-
<CREATE_SYS>1</CREATE_SYS
|
113
|
-
<INP_KBN>1</INP_KBN
|
111
|
+
<RPT_INF>10</RPT_INF><%# 未入力 %>
|
112
|
+
<CREATE_SYS>1</CREATE_SYS><%# PCDesk作成 %>
|
113
|
+
<INP_KBN>1</INP_KBN><%# 通常入力モード %>
|
114
114
|
<USER_FILE_NM></USER_FILE_NM>
|
115
115
|
</NOUZEI_UPDATE>
|
116
116
|
</SYSTEM_INF>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<HOK010 page="1" VR="
|
1
|
+
<HOK010 page="1" VR="<%= @form_vers['HOK010'] %>" id="HOK010" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
2
|
<HOK010-1 page="1">
|
3
3
|
<IAA00000>
|
4
4
|
<IAA01000>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<IAA02400><kubun_CD><%= gaikyo_config('homepage') ? 1 : 2 %></kubun_CD></IAA02400>
|
14
14
|
<%= render_attr('IAA02500', gaikyo_config('homepage')) %>
|
15
15
|
</IAA00000>
|
16
|
-
<%= render_attr('
|
16
|
+
<%= render_attr('IAB00000', it_part_config('jigyo_naiyo')) %>
|
17
17
|
<IAC00000>
|
18
18
|
<IAC01000>
|
19
19
|
<%= render_attr('IAC01100', gaikyo_config('shiten_kokunai')) %>
|
@@ -23,21 +23,69 @@
|
|
23
23
|
<%= render_attr('IAC02050', gaikyo_config('kogaisha_kokunai')) %>
|
24
24
|
<%= render_attr('IAC02100', gaikyo_config('kogaisha_kaigai')) %>
|
25
25
|
</IAC02000>
|
26
|
+
<IAC03000>
|
27
|
+
<%= render_attr('IAC03100', gaikyo_config('yunyu') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
28
|
+
<%= render_attr('IAC03200', gaikyo_config('yushutsu') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
29
|
+
<%= render_attr('IAC03300', (!gaikyo_config('yunyu') && !gaikyo_config('yushutsu')) ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
30
|
+
</IAC03000>
|
31
|
+
<IAC04000>
|
32
|
+
<% if gaikyo_config('kaigai_torihiki') %>
|
33
|
+
<%= render_attr('IAC04100', '<kubun_CD>1</kubun_CD>') %>
|
34
|
+
<% elsif gaikyo_config('kaigai_torihiki') == false %>
|
35
|
+
<%= render_attr('IAC04100', '<kubun_CD>2</kubun_CD>') %>
|
36
|
+
<% end %>
|
37
|
+
</IAC04000>
|
26
38
|
</IAC00000>
|
27
39
|
<IAD00000>
|
28
40
|
<IAD01000>
|
29
41
|
<%= render_attr('IAD01100', gaikyo_config('yakuin')) %>
|
30
42
|
</IAD01000>
|
43
|
+
<% if gaikyo_config('chingin_kotei') && gaikyo_config('chingin_buai') %>
|
44
|
+
<%= render_attr('IAD02000', '<kubun_CD>3</kubun_CD>') %>
|
45
|
+
<% elsif gaikyo_config('chingin_kotei') %>
|
46
|
+
<%= render_attr('IAD02000', '<kubun_CD>1</kubun_CD>') %>
|
47
|
+
<% elsif gaikyo_config('chingin_buai') %>
|
48
|
+
<%= render_attr('IAD02000', '<kubun_CD>2</kubun_CD>') %>
|
49
|
+
<% end %>
|
50
|
+
<% if gaikyo_config('shataku') %>
|
51
|
+
<%= render_attr('IAD03000', '<kubun_CD>1</kubun_CD>') %>
|
52
|
+
<% elsif gaikyo_config('shataku') == false %>
|
53
|
+
<%= render_attr('IAD03000', '<kubun_CD>2</kubun_CD>') %>
|
54
|
+
<% end %>
|
31
55
|
</IAD00000>
|
32
56
|
<IAE00000>
|
33
57
|
<%= render_attr('IAE01000', gaikyo_config('software_kaikei') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
58
|
+
<IAE02100>
|
59
|
+
<%= render_attr('IAE02200', gaikyo_config('windows') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
60
|
+
<%= render_attr('IAE02300', gaikyo_config('mac') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
61
|
+
<%= render_attr('IAE02400', gaikyo_config('linux') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
62
|
+
</IAE02100>
|
34
63
|
<IAE03000>
|
64
|
+
<%= render_attr('IAE03100', gaikyo_config('pc_kyuuyo') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
65
|
+
<%= render_attr('IAE03300', gaikyo_config('pc_hanbai') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
66
|
+
<%= render_attr('IAE03400', gaikyo_config('pc_seisan') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
35
67
|
<%= render_attr('IAE03600', gaikyo_config('software_kaikei') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
36
68
|
</IAE03000>
|
37
69
|
<%= render_attr('IAE04300', gaikyo_config('software_kaikei') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
38
70
|
<%= render_attr('IAE04500', gaikyo_config('software_kaikei')) %>
|
39
71
|
<%= render_attr('IAE04600', gaikyo_config('software_mail')) %>
|
72
|
+
<IAE07000>
|
73
|
+
<%= render_attr('IAE07700', gaikyo_config('data_cloud') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
74
|
+
<%= render_attr('IAE07800', gaikyo_config('data_media') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
75
|
+
<%= render_attr('IAE07900', gaikyo_config('data_server') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
76
|
+
</IAE07000>
|
40
77
|
</IAE00000>
|
78
|
+
<IAT00000>
|
79
|
+
<IAT01000>
|
80
|
+
<%= render_attr('IAT01100', gaikyo_config('ec_uriage') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
81
|
+
<%= render_attr('IAT01200', gaikyo_config('ec_shiire') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
82
|
+
<%= render_attr('IAT01300', gaikyo_config('ec_keihi') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
83
|
+
</IAT01000>
|
84
|
+
<IAT01500>
|
85
|
+
<%= render_attr('IAT01600', gaikyo_config('ec_jisha') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
86
|
+
<%= render_attr('IAT01700', gaikyo_config('ec_tasha') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
87
|
+
</IAT01500>
|
88
|
+
</IAT00000>
|
41
89
|
<IAF00000>
|
42
90
|
<IAF01000>
|
43
91
|
<IAF01100>
|
@@ -47,12 +95,44 @@
|
|
47
95
|
<%= render_attr('IAF01210', gaikyo_config('tsucho_kanrisha')) %>
|
48
96
|
</IAF01200>
|
49
97
|
</IAF01000>
|
98
|
+
<IAF02000>
|
99
|
+
<% if gaikyo_config('shisanhyou') == 1 %>
|
100
|
+
<%= render_attr('IAF02100', '<kubun_CD>1</kubun_CD>') %>
|
101
|
+
<%= render_attr('IAF02200', '<kubun_CD>2</kubun_CD>') %>
|
102
|
+
<%= render_attr('IAF02300', '<kubun_CD>2</kubun_CD>') %>
|
103
|
+
<% elsif gaikyo_config('shisanhyou') == 12 %>
|
104
|
+
<%= render_attr('IAF02100', '<kubun_CD>2</kubun_CD>') %>
|
105
|
+
<%= render_attr('IAF02200', '<kubun_CD>2</kubun_CD>') %>
|
106
|
+
<%= render_attr('IAF02300', '<kubun_CD>1</kubun_CD>') %>
|
107
|
+
<% elsif gaikyo_config('shisanhyou') < 12 %>
|
108
|
+
<%= render_attr('IAF02100', '<kubun_CD>2</kubun_CD>') %>
|
109
|
+
<%= render_attr('IAF02200', '<kubun_CD>1</kubun_CD>') %>
|
110
|
+
<%= render_attr('IAF02250', gaikyo_config('shisanhyou')) %>
|
111
|
+
<%= render_attr('IAF02300', '<kubun_CD>2</kubun_CD>') %>
|
112
|
+
<% end %>
|
113
|
+
</IAF02000>
|
50
114
|
<IAF03000>
|
51
115
|
<%= 概況源泉徴収種類 %>
|
116
|
+
<%= render_attr('IAF03300', gaikyo_config('gensen_rishi') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
117
|
+
<%= render_attr('IAF03400', gaikyo_config('gensen_haitou') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
118
|
+
<%= render_attr('IAF03500', gaikyo_config('gensen_hikyoju') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
119
|
+
<%= render_attr('IAF03600', gaikyo_config('gensen_taishoku') ? '<kubun_CD>1</kubun_CD>' : nil) %>
|
52
120
|
</IAF03000>
|
53
121
|
<IAF04000>
|
54
122
|
<%= render_attr('IAF04200', 消費税課税売上高) %>
|
123
|
+
<% if gaikyo_config('keiri_zeinuki') %>
|
124
|
+
<%= render_attr('IAF04300', '<kubun_CD>1</kubun_CD>') %>
|
125
|
+
<% elsif gaikyo_config('keiri_zeikomi') %>
|
126
|
+
<%= render_attr('IAF04300', '<kubun_CD>2</kubun_CD>') %>
|
127
|
+
<% end %>
|
55
128
|
</IAF04000>
|
129
|
+
<IAF04400>
|
130
|
+
<% if gaikyo_config('kansa') %>
|
131
|
+
<%= render_attr('IAF04500', '<kubun_CD>1</kubun_CD>') %>
|
132
|
+
<% elsif gaikyo_config('kansa') == false %>
|
133
|
+
<%= render_attr('IAF04500', '<kubun_CD>2</kubun_CD>') %>
|
134
|
+
<% end %>
|
135
|
+
</IAF04400>
|
56
136
|
</IAF00000>
|
57
137
|
<IAI00000>
|
58
138
|
<%= render_attr('IAI01100', @概況売上) %>
|
@@ -1,21 +1,27 @@
|
|
1
1
|
<HOI060 page="1" VR="4.0" id="HOI060" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
|
-
<% @有価証券.values.each do |
|
2
|
+
<% @有価証券.values.each do |security| %>
|
3
3
|
<HFB00000>
|
4
4
|
<HFB00110>
|
5
|
-
<%= render_attr('HFB00120',
|
6
|
-
<%= render_attr('HFB00130',
|
7
|
-
<%= render_attr('HFB00140',
|
5
|
+
<%= render_attr('HFB00120', security[:security_purpose]) %>
|
6
|
+
<%= render_attr('HFB00130', security[:security_genre]) %>
|
7
|
+
<%= render_attr('HFB00140', security[:name]) %>
|
8
8
|
</HFB00110>
|
9
9
|
<HFB00200>
|
10
|
-
<%= render_attr('HFB00210',
|
10
|
+
<%= render_attr('HFB00210', security[:security_units]) %>
|
11
11
|
<HFB00215>
|
12
|
-
<%= render_attr('HFB00230',
|
12
|
+
<%= render_attr('HFB00230', security[:amount]) %>
|
13
13
|
</HFB00215>
|
14
14
|
</HFB00200>
|
15
|
-
|
15
|
+
<% unless security[:diff].nil? || security[:diff].zero? %>
|
16
|
+
<HFB00300>
|
17
|
+
<%= render_attr('HFB00340', security[:diff]) %>
|
18
|
+
</HFB00300>
|
19
|
+
<% end %>
|
20
|
+
<%= render_attr('HFB00400', security[:note]) %>
|
16
21
|
</HFB00000>
|
17
22
|
<% end %>
|
18
23
|
<HFC00000>
|
19
24
|
<%= render_attr('HFC00100', 有価証券合計) %>
|
25
|
+
<%= render_attr('HFC00200', @有価証券.values.map { |s| s[:diff] }.compact.sum) %>
|
20
26
|
</HFC00000>
|
21
27
|
</HOI060>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<SHA020 page="1" VR="
|
1
|
+
<SHA020 page="1" VR="<%= @form_vers['SHA020'] %>" id="SHA020" sakuseiNM="<%= @company %>" softNM="<%= @software %> <%= @company %>" sakuseiDay="<%= @issue_date %>">
|
2
2
|
<SHA020-1 page="1">
|
3
3
|
<ABH00000>
|
4
4
|
<ABH00010 IDREF="TEISYUTSU_DAY"/>
|
data/lib/luca/jp/uchiwake.rb
CHANGED
@@ -41,18 +41,23 @@ 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
|
44
|
+
next if v.nil? || v <= 0
|
45
45
|
|
46
|
+
inc = debit_amount(k, @start_date.year, @start_date.month, @end_date.year, @end_date.month) || 0
|
47
|
+
dec = credit_amount(k, @start_date.year, @start_date.month, @end_date.year, @end_date.month) || 0
|
46
48
|
h[k] = {
|
47
49
|
name: self.class.dict.dig(k)[:label],
|
48
|
-
amount: readable(v)
|
50
|
+
amount: readable(v),
|
51
|
+
diff: readable(inc - dec)
|
49
52
|
}
|
53
|
+
STDERR.puts "勘定科目内訳書(有価証券)異動の追記が必要: #{h[k][:name]}" unless (inc - dec).zero?
|
54
|
+
|
50
55
|
metadata = uchiwake_account_config(k).first
|
51
56
|
if metadata && metadata['name']
|
52
57
|
h[k][:name] = metadata['name'][0..9] if metadata['name']
|
53
58
|
h[k][:security_purpose] = metadata['security_purpose']
|
54
59
|
h[k][:security_genre] = metadata['security_genre']
|
55
|
-
h[k][:security_units] = metadata['security_units']
|
60
|
+
h[k][:security_units] = (h[k][:amount].nil? || h[k][:amount].zero?) ? 0 : metadata['security_units']
|
56
61
|
h[k][:note] = metadata['note']
|
57
62
|
end
|
58
63
|
h[k][:security_purpose] ||= 'その他' if /^332/.match(k.to_s)
|
data/lib/luca/jp/util.rb
CHANGED
@@ -21,10 +21,10 @@ module Luca
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
def prepaid_tax(code)
|
25
|
-
#LucaSupport::Code.readable(@bs_data.dig(code) || 0)
|
24
|
+
def prepaid_tax(code, customer = nil)
|
26
25
|
search_end = @end_date.prev_month # exclude year end adjustment
|
27
|
-
|
26
|
+
header = { customer: customer } unless customer.nil?
|
27
|
+
amount, _ = self.class.net(@start_date.year, @start_date.month, search_end.year, search_end.month, code: code, header: header)
|
28
28
|
LucaSupport::Code.readable(amount[code] || 0)
|
29
29
|
end
|
30
30
|
|
@@ -89,6 +89,23 @@ module Luca
|
|
89
89
|
def eltax_config(key)
|
90
90
|
config.dig('jp', 'eltax', key)
|
91
91
|
end
|
92
|
+
|
93
|
+
def tokyo23?
|
94
|
+
@report_category == '23ku'
|
95
|
+
end
|
96
|
+
|
97
|
+
def 期首期末残高(code)
|
98
|
+
pre = readable(@start_balance.dig(code))
|
99
|
+
post = readable(@bs_data.dig(code))
|
100
|
+
[readable(pre), readable(post)]
|
101
|
+
end
|
102
|
+
|
103
|
+
def 純資産期中増減(code)
|
104
|
+
inc = credit_amount(code, @start_date.year, @start_date.month, @end_date.year, @end_date.month)
|
105
|
+
dec = debit_amount(code, @start_date.year, @start_date.month, @end_date.year, @end_date.month)
|
106
|
+
|
107
|
+
[readable(dec), readable(inc)]
|
108
|
+
end
|
92
109
|
end
|
93
110
|
end
|
94
111
|
end
|