teodoro 0.8.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/teodoro.rb +8 -2
- data/lib/teodoro/arquivo_data.rb +81 -0
- data/lib/teodoro/arquivo_de_evento.rb +12 -0
- data/lib/teodoro/arquivo_de_evento_de_tabela.rb +27 -9
- data/lib/teodoro/arquivo_de_evento_nao_periodico.rb +36 -13
- data/lib/teodoro/arquivo_xml.rb +10 -7
- data/lib/teodoro/empresa.rb +4 -2
- data/lib/teodoro/leiaute/arquivo_s1000.rb +5 -7
- data/lib/teodoro/leiaute/arquivo_s1005.rb +4 -4
- data/lib/teodoro/leiaute/arquivo_s1010.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s1020.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s1030.rb +3 -3
- data/lib/teodoro/leiaute/arquivo_s1040.rb +2 -2
- data/lib/teodoro/leiaute/arquivo_s1050.rb +3 -3
- data/lib/teodoro/leiaute/arquivo_s1070.rb +3 -3
- data/lib/teodoro/leiaute/arquivo_s2190.rb +14 -13
- data/lib/teodoro/leiaute/arquivo_s2200.rb +163 -146
- data/lib/teodoro/leiaute/arquivo_s2205.rb +130 -160
- data/lib/teodoro/leiaute/arquivo_s2206.rb +76 -67
- data/lib/teodoro/leiaute/arquivo_s2230.rb +85 -84
- data/lib/teodoro/leiaute/arquivo_s2250.rb +34 -34
- data/lib/teodoro/leiaute/arquivo_s2299.rb +170 -164
- data/lib/teodoro/leiaute/arquivo_s2300.rb +137 -123
- data/lib/teodoro/leiaute/arquivo_s2306.rb +145 -144
- data/lib/teodoro/leiaute/arquivo_s2399.rb +120 -120
- data/lib/teodoro/leiaute/arquivo_s3000.rb +2 -6
- metadata +3 -5
- data/lib/teodoro/arquivo_de_evento_criador_de_arquivo_data.rb +0 -52
- data/lib/teodoro/arquivo_de_evento_processador_de_arquivo_data.rb +0 -30
- data/lib/teodoro/arquivo_de_evento_retificavel.rb +0 -23
@@ -3,14 +3,14 @@ module Teodoro
|
|
3
3
|
class ArquivoS2399 # rubocop:disable Metrics/ClassLength
|
4
4
|
include ArquivoDeEventoNaoPeriodico
|
5
5
|
|
6
|
-
|
6
|
+
private
|
7
|
+
|
8
|
+
def criar_arquivos_data
|
7
9
|
super
|
8
10
|
|
9
11
|
registrar_termino_do_contrato
|
10
12
|
end
|
11
13
|
|
12
|
-
private
|
13
|
-
|
14
14
|
def registrar_termino_do_contrato
|
15
15
|
contrato_de_trabalho.data_do_termino = data_do_termino
|
16
16
|
end
|
@@ -31,11 +31,6 @@ module Teodoro
|
|
31
31
|
@data_do_termino ||= evento['infoTSVTermino/dtTerm']
|
32
32
|
end
|
33
33
|
|
34
|
-
def nome_do_arquivo_data
|
35
|
-
@nome_do_arquivo_data ||=
|
36
|
-
"TRA[#{cpf_do_trabalhador}][TSV_#{categoria_do_trabalhador}_#{data_de_inicio.delete('-')}]-GER"
|
37
|
-
end
|
38
|
-
|
39
34
|
def cpf_do_trabalhador
|
40
35
|
@cpf_do_trabalhador ||= evento['ideTrabSemVinculo/cpfTrab']
|
41
36
|
end
|
@@ -44,121 +39,126 @@ module Teodoro
|
|
44
39
|
@categoria_do_trabalhador ||= evento['ideTrabSemVinculo/codCateg']
|
45
40
|
end
|
46
41
|
|
47
|
-
def
|
48
|
-
contrato_de_trabalho.data_de_inicio
|
49
|
-
end
|
50
|
-
|
51
|
-
def itens_do_conteudo_do_arquivo_data # rubocop:disable Metrics/MethodLength
|
42
|
+
def dados_dos_arquivos_data # rubocop:disable Metrics/MethodLength
|
52
43
|
[
|
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
|
-
|
44
|
+
Obj.new(
|
45
|
+
nome: "TRA[#{cpf_do_trabalhador}][TSV_#{categoria_do_trabalhador}_#{data_de_inicio.delete('-')}]-GER",
|
46
|
+
itens_do_conteudo: [
|
47
|
+
# rubocop:disable Layout/LineLength
|
48
|
+
['ESX_CPF', cpf_do_trabalhador],
|
49
|
+
['ESX_CATEGORIA', categoria_do_trabalhador],
|
50
|
+
['ESX_SEMVINCULO'],
|
51
|
+
['ESX_DATAADMISSAO', data_de_inicio],
|
52
|
+
['ESX_DATADESLIGAMENTO', data_do_termino],
|
53
|
+
['ESX_INFOWEB_RESCISAO_RECIBO', numero_do_recibo],
|
54
|
+
['IdEventoXml'],
|
55
|
+
['NrReciboEventoOriginal'],
|
56
|
+
['EventoAdmissao_NrRecibo'],
|
57
|
+
['EventoAdmissao_DataAlteracaoCadastral'],
|
58
|
+
['EventoAdmissao_InformacoesInicio_IndicativoCadastramentoInicial'],
|
59
|
+
['EventoAdmissao_InformacoesInicio_DataInicio'],
|
60
|
+
['EventoAdmissao_DataAlteracaoContratual'],
|
61
|
+
['SomenteLeitura'],
|
62
|
+
['UrlRetorno'],
|
63
|
+
['IdEvento'],
|
64
|
+
['FiltroCargo'],
|
65
|
+
['FiltroFuncao'],
|
66
|
+
['IdContratoReferenciado'],
|
67
|
+
['EhAlteracaoCadastral'],
|
68
|
+
['autocomplete_EventoAdmissao_InfoTrabalhador_Nascimento_PaisNascimento'],
|
69
|
+
['autocomplete_EventoAdmissao_InfoTrabalhador_Nascimento_PaisNacionalidade'],
|
70
|
+
['EhAlteracaoContratual'],
|
71
|
+
['DescricaoProcEmi', processo_de_emissao_do_evento],
|
72
|
+
['VerProc'],
|
73
|
+
['EventoAdmissao_InfoTrabalhador_Cpf'],
|
74
|
+
['EventoAdmissao_InfoTrabalhador_Nome'],
|
75
|
+
['EventoAdmissao_InfoTrabalhador_Nis'],
|
76
|
+
['EventoAdmissao_InfoTrabalhador_Sexo'],
|
77
|
+
['EventoAdmissao_InfoTrabalhador_Sexo_TEXT'],
|
78
|
+
['EventoAdmissao_InfoTrabalhador_RacaCor'],
|
79
|
+
['EventoAdmissao_InfoTrabalhador_RacaCor_TEXT'],
|
80
|
+
['EventoAdmissao_InfoTrabalhador_EstadoCivil'],
|
81
|
+
['EventoAdmissao_InfoTrabalhador_EstadoCivil_TEXT'],
|
82
|
+
['EventoAdmissao_InfoTrabalhador_GrauInstrucao'],
|
83
|
+
['EventoAdmissao_InfoTrabalhador_GrauInstrucao_TEXT'],
|
84
|
+
['EventoAdmissao_InfoTrabalhador_NomeSocial'],
|
85
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_CodigoMunicipio'],
|
86
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_CodigoMunicipio_TEXT'],
|
87
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_DataNascimento'],
|
88
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_NomeMae'],
|
89
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_NomePai'],
|
90
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_PaisNascimento'],
|
91
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_PaisNascimento_TEXT'],
|
92
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_PaisNacionalidade'],
|
93
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_PaisNacionalidade_TEXT'],
|
94
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_Uf'],
|
95
|
+
['EventoAdmissao_InfoTrabalhador_Nascimento_Uf_TEXT'],
|
96
|
+
['SemNumeroLogradouroEnderecoBR'],
|
97
|
+
['ResideExterior'],
|
98
|
+
['SemNumeroLogradouroEnderecoEX'],
|
99
|
+
['EventoAdmissao_InfoTrabalhador_TrabalhadorEstrangeiro_CasadoComBrasileiro'],
|
100
|
+
['EventoAdmissao_InfoTrabalhador_TrabalhadorEstrangeiro_ClassificacaoCondicao'],
|
101
|
+
['EventoAdmissao_InfoTrabalhador_TrabalhadorEstrangeiro_ClassificacaoCondicao_TEXT'],
|
102
|
+
['EventoAdmissao_InfoTrabalhador_TrabalhadorEstrangeiro_DataChegada'],
|
103
|
+
['EventoAdmissao_InfoTrabalhador_TrabalhadorEstrangeiro_FilhosBrasileiros'],
|
104
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_CategoriaCnh'],
|
105
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_CategoriaCnh_TEXT'],
|
106
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_DataExpedicao'],
|
107
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_DataPrimeiraHabilitacao'],
|
108
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_DataValidade'],
|
109
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_NumeroCnh'],
|
110
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_UfCnh'],
|
111
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Cnh_UfCnh_TEXT'],
|
112
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Ctps_NumeroCtps'],
|
113
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Ctps_SerieCtps'],
|
114
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Ctps_UfCtps'],
|
115
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Ctps_UfCtps_TEXT'],
|
116
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Oc_DataExpedicao'],
|
117
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Oc_NumeroOc'],
|
118
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Oc_OrgaoEmissor'],
|
119
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Rg_DataExpedicao'],
|
120
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Rg_NumeroRg'],
|
121
|
+
['EventoAdmissao_InfoTrabalhador_Documentos_Rg_OrgaoEmissor'],
|
122
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_DeficienciaAuditiva'],
|
123
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_DeficienciaFisica'],
|
124
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_DeficienciaIntelectual'],
|
125
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_DeficienciaMental'],
|
126
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_DeficienciaVisual'],
|
127
|
+
['EventoAdmissao_InfoTrabalhador_Deficiencia_ReabilitadoOuReadaptado'],
|
128
|
+
['CodigoCBO'],
|
129
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_AreaAtuacao'],
|
130
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_DtPrevistaTermino'],
|
131
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_Bairro'],
|
132
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_Cep'],
|
133
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_Cnpj'],
|
134
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_CodigoMunicipio'],
|
135
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_DescricaoLogradouro'],
|
136
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_NumeroLogradouro'],
|
137
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_RazaoSocial'],
|
138
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoAgenteIntegracao_Uf'],
|
139
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_Bairro'],
|
140
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_Cep'],
|
141
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_Cnpj'],
|
142
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_CodigoMunicipio'],
|
143
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_DescricaoLogradouro'],
|
144
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_NumeroLogradouro'],
|
145
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_RazaoSocial'],
|
146
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoInstEnsino_Uf'],
|
147
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoSupervisorEstagio_Cpf'],
|
148
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_InfoSupervisorEstagio_Nome'],
|
149
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_NaturezaEstagio'],
|
150
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_NivelEstagio'],
|
151
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_NrApoliceSeguro'],
|
152
|
+
['EventoAdmissao_InformacoesInicio_InformacoesComplementares_InfoEstagiario_ValorBolsa']
|
153
|
+
# rubocop:enable Layout/LineLength
|
154
|
+
]
|
155
|
+
)
|
160
156
|
]
|
161
157
|
end
|
158
|
+
|
159
|
+
def data_de_inicio
|
160
|
+
contrato_de_trabalho.data_de_inicio
|
161
|
+
end
|
162
162
|
end
|
163
163
|
end
|
164
164
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Teodoro
|
2
2
|
module Leiaute
|
3
3
|
class ArquivoS3000
|
4
|
-
include
|
4
|
+
include ArquivoDeEvento
|
5
5
|
|
6
6
|
def processar
|
7
7
|
excluir_arquivos_data if tipo_de_evento_processavel?
|
@@ -20,11 +20,7 @@ module Teodoro
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def excluir_arquivos_data
|
23
|
-
arquivos_data.excluir(numero_de_recibo_do_evento_a_excluir)
|
24
|
-
end
|
25
|
-
|
26
|
-
def arquivos_data
|
27
|
-
empresa.arquivos_data
|
23
|
+
empresa.arquivos_data.excluir(numero_de_recibo_do_evento_a_excluir)
|
28
24
|
end
|
29
25
|
|
30
26
|
def numero_de_recibo_do_evento_a_excluir
|
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.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clavius Tales
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -187,12 +187,10 @@ extra_rdoc_files: []
|
|
187
187
|
files:
|
188
188
|
- bin/teodoro
|
189
189
|
- lib/teodoro.rb
|
190
|
+
- lib/teodoro/arquivo_data.rb
|
190
191
|
- lib/teodoro/arquivo_de_evento.rb
|
191
|
-
- lib/teodoro/arquivo_de_evento_criador_de_arquivo_data.rb
|
192
192
|
- lib/teodoro/arquivo_de_evento_de_tabela.rb
|
193
193
|
- lib/teodoro/arquivo_de_evento_nao_periodico.rb
|
194
|
-
- lib/teodoro/arquivo_de_evento_processador_de_arquivo_data.rb
|
195
|
-
- lib/teodoro/arquivo_de_evento_retificavel.rb
|
196
194
|
- lib/teodoro/arquivo_de_origem.rb
|
197
195
|
- lib/teodoro/arquivo_xml.rb
|
198
196
|
- lib/teodoro/cnpj.rb
|
@@ -1,52 +0,0 @@
|
|
1
|
-
module Teodoro
|
2
|
-
module ArquivoDeEventoCriadorDeArquivoData
|
3
|
-
include ArquivoDeEventoProcessadorDeArquivoData
|
4
|
-
|
5
|
-
private
|
6
|
-
|
7
|
-
def criar_arquivo_data
|
8
|
-
raise caminho_do_arquivo_data if File.exist?(caminho_do_arquivo_data)
|
9
|
-
|
10
|
-
File.write(caminho_do_arquivo_data, conteudo_do_arquivo_data)
|
11
|
-
end
|
12
|
-
|
13
|
-
def conteudo_do_arquivo_data
|
14
|
-
(itens_do_conteudo_do_arquivo_data.map { "#{_1}=#{Valor.new(_2)}" } + ['']).join("\r\n")
|
15
|
-
end
|
16
|
-
|
17
|
-
def tipo_de_inscricao_do_empregador
|
18
|
-
@tipo_de_inscricao_do_empregador ||= evento['ideEmpregador/tpInsc']
|
19
|
-
end
|
20
|
-
|
21
|
-
class Valor
|
22
|
-
FORMATADORES = {
|
23
|
-
bool: proc { _1 ? 'True' : 'False' },
|
24
|
-
data: proc { "#{_1[-2..]}/#{_1[5..6]}/#{_1[0..3]}" if _1 },
|
25
|
-
data_aaaammdd: proc { _1.delete('-') if _1 },
|
26
|
-
mes_ano: proc { "#{_1[-2..]}/#{_1[0..3]}" if _1 }
|
27
|
-
}.freeze
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def initialize(arg)
|
32
|
-
@arg = arg
|
33
|
-
end
|
34
|
-
|
35
|
-
attr_reader :arg
|
36
|
-
|
37
|
-
public
|
38
|
-
|
39
|
-
def to_s
|
40
|
-
@to_s ||= (tipo ? FORMATADORES[tipo].call(valor) : valor).to_s
|
41
|
-
end
|
42
|
-
|
43
|
-
def tipo
|
44
|
-
@tipo ||= arg[1] if arg.is_a?(Array)
|
45
|
-
end
|
46
|
-
|
47
|
-
def valor
|
48
|
-
@valor ||= arg.is_a?(Array) ? arg[0] : arg
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module Teodoro
|
2
|
-
module ArquivoDeEventoProcessadorDeArquivoData
|
3
|
-
include ArquivoDeEvento
|
4
|
-
|
5
|
-
private
|
6
|
-
|
7
|
-
def id_do_evento
|
8
|
-
evento.css('/*').first.attributes['Id'].value
|
9
|
-
end
|
10
|
-
|
11
|
-
def processo_de_emissao_do_evento
|
12
|
-
evento['ideEvento/procEmi']
|
13
|
-
end
|
14
|
-
|
15
|
-
def criar_caminho_do_arquivo_data(nome_do_arquivo)
|
16
|
-
File.join(
|
17
|
-
destino_dos_arquivos_data,
|
18
|
-
"#{windows? ? nome_do_arquivo.gsub(%r{[<|>:"/\\?*]}, '_') : nome_do_arquivo}.data"
|
19
|
-
)
|
20
|
-
end
|
21
|
-
|
22
|
-
def destino_dos_arquivos_data
|
23
|
-
empresa.destino_dos_arquivos_data
|
24
|
-
end
|
25
|
-
|
26
|
-
def windows?
|
27
|
-
OS.windows?
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Teodoro
|
2
|
-
module ArquivoDeEventoRetificavel
|
3
|
-
include ArquivoDeEvento
|
4
|
-
|
5
|
-
private
|
6
|
-
|
7
|
-
def retificado?
|
8
|
-
arquivo_xml_de_retificacao
|
9
|
-
end
|
10
|
-
|
11
|
-
def arquivo_xml_de_retificacao
|
12
|
-
@arquivo_xml_de_retificacao ||= arquivos_xml_por_recibo_a_retificar.delete(numero_do_recibo)
|
13
|
-
end
|
14
|
-
|
15
|
-
def arquivos_xml_por_recibo_a_retificar
|
16
|
-
empresa.arquivos_xml_por_recibo_a_retificar
|
17
|
-
end
|
18
|
-
|
19
|
-
def processar_retificacao
|
20
|
-
arquivo_xml_de_retificacao.processar
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|