teodoro 0.69.5 → 0.69.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teodoro/arquivo_xml.rb +1 -0
- data/lib/teodoro/leiaute/arquivo_s2500.rb +10 -24
- data/lib/teodoro/leiaute/arquivo_s2501.rb +16 -8
- data/lib/teodoro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '096300f06d481c55252537b7a49779e46ca4bf7de5bb918a7c7eb7c46bd250fe'
|
4
|
+
data.tar.gz: f7ec8952876277bbc937e2bc923a7de9bd5a441f176df071f2d003d616f2e922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 405a350c10b0db6f85da9fc9807b4738badfcf7ca50b2cc4dc2246240c43660869f3aaa1562f7a3fb2a288c032d48d98b5b96d808fabd72f47ea07639f28dc8a
|
7
|
+
data.tar.gz: 803455c3a24d46769573a9632d176715e62e0d50e99b6f925a162e78b59c1744b0f33e9f35fb44b5429001b826be591c632875cfd6904d287927eb4d4e4778e9
|
data/lib/teodoro/arquivo_xml.rb
CHANGED
@@ -5,6 +5,12 @@ module Teodoro
|
|
5
5
|
|
6
6
|
private
|
7
7
|
|
8
|
+
def processar_inclusao
|
9
|
+
return if arquivo_xml.versao_do_leiaute == '_S_01_01_00'
|
10
|
+
|
11
|
+
super
|
12
|
+
end
|
13
|
+
|
8
14
|
def dados_dos_arquivos_data
|
9
15
|
[
|
10
16
|
Obj.new(
|
@@ -23,7 +29,7 @@ module Teodoro
|
|
23
29
|
@cpf_do_trabalhador ||= evento['ideTrab/cpfTrab']
|
24
30
|
end
|
25
31
|
|
26
|
-
def itens_do_conteudo # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
32
|
+
def itens_do_conteudo # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity
|
27
33
|
[
|
28
34
|
# rubocop:disable Layout/LineLength
|
29
35
|
['Id', id_do_evento],
|
@@ -46,13 +52,6 @@ module Teodoro
|
|
46
52
|
['ideTrab/cpfTrab', cpf_do_trabalhador],
|
47
53
|
['ideTrab/nmTrab', evento['ideTrab/nmTrab']],
|
48
54
|
['ideTrab/dtNascto', evento['ideTrab/dtNascto']],
|
49
|
-
*evento.*('ideTrab/dependente').map.with_index(1) do |dependente, seq|
|
50
|
-
[
|
51
|
-
["ideTrab/dependente_#{seq}_cpfDep", dependente['cpfDep']],
|
52
|
-
["ideTrab/dependente_#{seq}_tpDep", dependente['tpDep']],
|
53
|
-
["ideTrab/dependente_#{seq}_descDep", dependente['descDep']]
|
54
|
-
]
|
55
|
-
end.sum([]),
|
56
55
|
*evento.*('ideTrab/infoContr').map.with_index(1) do |contrato_de_trabalho, seq| # rubocop:disable Metrics/BlockLength
|
57
56
|
[
|
58
57
|
["ideTrab/infoContr_#{seq}_tpContr", contrato_de_trabalho['tpContr']],
|
@@ -62,7 +61,6 @@ module Teodoro
|
|
62
61
|
["ideTrab/infoContr_#{seq}_indCateg", contrato_de_trabalho['indCateg']],
|
63
62
|
["ideTrab/infoContr_#{seq}_indNatAtiv", contrato_de_trabalho['indNatAtiv']],
|
64
63
|
["ideTrab/infoContr_#{seq}_indMotDeslig", contrato_de_trabalho['indMotDeslig']],
|
65
|
-
["ideTrab/infoContr_#{seq}_indUnic", contrato_de_trabalho['indUnic']],
|
66
64
|
["ideTrab/infoContr_#{seq}_matricula", contrato_de_trabalho['matricula']],
|
67
65
|
["ideTrab/infoContr_#{seq}_codCateg", contrato_de_trabalho['codCateg']],
|
68
66
|
["ideTrab/infoContr_#{seq}_dtInicio", contrato_de_trabalho['dtInicio']],
|
@@ -119,13 +117,6 @@ module Teodoro
|
|
119
117
|
["ideTrab/infoContr_#{seq}_ideEstab/nrInsc", contrato_de_trabalho['ideEstab/nrInsc']],
|
120
118
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/compIni", contrato_de_trabalho['ideEstab/infoVlr/compIni']],
|
121
119
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/compFim", contrato_de_trabalho['ideEstab/infoVlr/compFim']],
|
122
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/repercProc", contrato_de_trabalho['ideEstab/infoVlr/repercProc']],
|
123
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/vrRemun", contrato_de_trabalho['ideEstab/infoVlr/vrRemun']],
|
124
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/vrAPI", contrato_de_trabalho['ideEstab/infoVlr/vrAPI']],
|
125
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/vr13API", contrato_de_trabalho['ideEstab/infoVlr/vr13API']],
|
126
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/vrInden", contrato_de_trabalho['ideEstab/infoVlr/vrInden']],
|
127
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/vrBaseIndenFGTS", contrato_de_trabalho['ideEstab/infoVlr/vrBaseIndenFGTS']],
|
128
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/pagDiretoResc", contrato_de_trabalho['ideEstab/infoVlr/pagDiretoResc']],
|
129
120
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/indReperc", contrato_de_trabalho['ideEstab/infoVlr/indReperc']],
|
130
121
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/indenSD", contrato_de_trabalho['ideEstab/infoVlr/indenSD']],
|
131
122
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/indenAbono", contrato_de_trabalho['ideEstab/infoVlr/indenAbono']],
|
@@ -139,17 +130,12 @@ module Teodoro
|
|
139
130
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/perRef", periodo['perRef']],
|
140
131
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/vrBcCpMensal", periodo['baseCalculo/vrBcCpMensal']],
|
141
132
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/vrBcCp13", periodo['baseCalculo/vrBcCp13']],
|
142
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/vrBcFgts", periodo['baseCalculo/vrBcFgts']],
|
143
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/vrBcFgts13", periodo['baseCalculo/vrBcFgts13']],
|
144
133
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseCalculo/infoAgNocivo/grauExp", periodo['baseCalculo/infoAgNocivo/grauExp']],
|
145
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFgtsGuia", periodo['infoFGTS/vrBcFgtsGuia']],
|
146
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFgts13Guia", periodo['infoFGTS/vrBcFgts13Guia']],
|
147
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/pagDireto", periodo['infoFGTS/pagDireto']],
|
148
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseMudCateg/codCateg", periodo['baseMudCateg/codCateg']],
|
149
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseMudCateg/vrBcCPrev", periodo['baseMudCateg/vrBcCPrev']],
|
150
134
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFGTSProcTrab", periodo['infoFGTS/vrBcFGTSProcTrab']],
|
151
135
|
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFGTSSefip", periodo['infoFGTS/vrBcFGTSSefip']],
|
152
|
-
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFGTSDecAnt", periodo['infoFGTS/vrBcFGTSDecAnt']]
|
136
|
+
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_infoFGTS/vrBcFGTSDecAnt", periodo['infoFGTS/vrBcFGTSDecAnt']],
|
137
|
+
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseMudCateg/codCateg", periodo['baseMudCateg/codCateg']],
|
138
|
+
["ideTrab/infoContr_#{seq}_ideEstab/infoVlr/idePeriodo_#{periodo_seq}_baseMudCateg/vrBcCPrev", periodo['baseMudCateg/vrBcCPrev']]
|
153
139
|
]
|
154
140
|
end.sum([])
|
155
141
|
# rubocop:enable Layout/LineLength
|
@@ -5,6 +5,12 @@ module Teodoro
|
|
5
5
|
|
6
6
|
private
|
7
7
|
|
8
|
+
def processar_inclusao
|
9
|
+
return if arquivo_xml.versao_do_leiaute == '_S_01_01_00'
|
10
|
+
|
11
|
+
super
|
12
|
+
end
|
13
|
+
|
8
14
|
def dados_dos_arquivos_data
|
9
15
|
[
|
10
16
|
Obj.new(
|
@@ -42,8 +48,6 @@ module Teodoro
|
|
42
48
|
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_perRef", periodo['perRef']],
|
43
49
|
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_vrBcCpMensal", periodo['vrBcCpMensal']],
|
44
50
|
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_vrBcCp13", periodo['vrBcCp13']],
|
45
|
-
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_vrRendIRRF", periodo['vrRendIRRF']],
|
46
|
-
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_vrRendIRRF13", periodo['vrRendIRRF13']],
|
47
51
|
*periodo.*('infoCRContrib').map.with_index(1) do |contribuicao, contribuicao_seq|
|
48
52
|
[
|
49
53
|
["ideTrab_#{seq}_calcTrib_#{periodo_seq}_infoCRContrib_#{contribuicao_seq}_tpCR", contribuicao['tpCR']],
|
@@ -68,14 +72,18 @@ module Teodoro
|
|
68
72
|
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/qtdMesesRRA", irrf['infoRRA/qtdMesesRRA']],
|
69
73
|
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/despProcJud/vlrDespCustas", irrf['infoRRA/despProcJud/vlrDespCustas']],
|
70
74
|
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/despProcJud/vlrDespAdvogados", irrf['infoRRA/despProcJud/vlrDespAdvogados']],
|
71
|
-
|
72
|
-
|
73
|
-
|
75
|
+
*irrf.*('infoRRA/ideAdv').map.with_index(1) do |advogado, advogado_seq|
|
76
|
+
[
|
77
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/ideAdv_#{advogado_seq}_tpInsc", advogado['tpInsc']],
|
78
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/ideAdv_#{advogado_seq}_nrInsc", advogado['nrInsc']],
|
79
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_infoRRA/ideAdv_#{advogado_seq}_vlrAdv", advogado['vlrAdv']]
|
80
|
+
]
|
81
|
+
end.sum([]),
|
74
82
|
*irrf.*('dedDepen').map.with_index(1) do |deducao, deducao_seq|
|
75
83
|
[
|
76
|
-
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}
|
77
|
-
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}
|
78
|
-
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}
|
84
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_dedDepen_#{deducao_seq}_tpRend", deducao['tpRend']],
|
85
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_dedDepen_#{deducao_seq}_cpfDep", deducao['cpfDep']],
|
86
|
+
["ideTrab_#{seq}_infoCRIRRF_#{irrf_seq}_dedDepen_#{deducao_seq}_vlrDeducao", deducao['vlrDeducao']]
|
79
87
|
]
|
80
88
|
end.sum([]),
|
81
89
|
*irrf.*('penAlim').map.with_index(1) do |beneficiario, beneficiario_seq|
|
data/lib/teodoro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teodoro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.69.
|
4
|
+
version: 0.69.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fortes Tecnologia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|