teodoro 0.66.0 → 0.67.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a5e2909b07b05de7f674a4b0edf3aa00d1a1e4dc088b7a1a842852f72ad22b2
4
- data.tar.gz: b09e623cd732da535fa5040bb11860de377a0e9c0693518c64c86a1978b98a88
3
+ metadata.gz: a8a399ca03b69218699d768b2c7b4c197a0e02ac9fd3003b3b8fa8b0a1cf4beb
4
+ data.tar.gz: 1fda3521df017423beef8571d80b3bcfdcc0601ee092e9c001a508bb0b270e54
5
5
  SHA512:
6
- metadata.gz: 517bcb5129658d712c8f94c60ab4ccd2a086e4b563921c7e697ad0248841070414420ea33b4a7affc1745a7e037272fb4b55b2fd7aae4dfcdfc36f4b7e5c41bd
7
- data.tar.gz: 45e87f264edf4ecae5f4c0425521143f41a4be05348f64efec4eafd7c56947bca3f542497d62d7998f82e69434c0d495a11086660b9a29a095559068987ccb54
6
+ metadata.gz: 3aba5fe5d9934e5b5018c98fc9d64faa56f5ece04f8d0136b3c659b10aec5f1a6d12d415716d8ba684963b660a3c322b1b1ff1676414edb727fe5e5de1a8645f
7
+ data.tar.gz: 9acd509bb073498ae5b64383737600fb9bf8a66b4bbffb1e146e02534c42d4415a1fea88977f9ac427acc5e58dbea772d11f56e7788542b6d132f6e259b09d96
@@ -23,6 +23,7 @@ require_relative 'leiaute/arquivo_s2220'
23
23
  require_relative 'leiaute/arquivo_s2230'
24
24
  require_relative 'leiaute/arquivo_s2240'
25
25
  require_relative 'leiaute/arquivo_s2250'
26
+ require_relative 'leiaute/arquivo_s2298'
26
27
  require_relative 'leiaute/arquivo_s2299'
27
28
  require_relative 'leiaute/arquivo_s2300'
28
29
  require_relative 'leiaute/arquivo_s2306'
@@ -55,6 +56,7 @@ module Teodoro
55
56
  S2230
56
57
  S2240
57
58
  S2250
59
+ S2298
58
60
  S2299
59
61
  S2300
60
62
  S2306
@@ -0,0 +1,62 @@
1
+ module Teodoro
2
+ module Leiaute
3
+ class ArquivoS2298
4
+ include ArquivoDeEventoNaoPeriodicoNaoCancelavel
5
+
6
+ private
7
+
8
+ def dados_dos_arquivos_data # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
9
+ [
10
+ Obj.new(
11
+ operacao: :inclusao,
12
+ nome: [
13
+ 'TRA',
14
+ "[#{cpf_do_trabalhador}]",
15
+ "[EPG_#{matricula_do_trabalhador}_#{data_de_admissao.delete('-')}]",
16
+ '-',
17
+ "REI[#{data_do_efetivo_retorno.delete('-')}]"
18
+ ].join,
19
+ itens_do_conteudo: [
20
+ ['IdeVinculo_Cpf', cpf_do_trabalhador],
21
+ ['IdeVinculo_Matricula', matricula_do_trabalhador],
22
+ ['TipoReintegracao', evento['infoReintegr/tpReint']],
23
+ ['DataEfetivoRetorno', data_do_efetivo_retorno, :data],
24
+ ['DataEfeito', evento['infoReintegr/dtEfeito'], :data],
25
+ ['IdEventoXml', id_do_evento],
26
+ ['NrReciboEventoOriginal', numero_do_recibo],
27
+ ['VerProc', versao_do_processo_de_emissao_do_evento],
28
+ ['ESX_CPF', cpf_do_trabalhador],
29
+ ['ESX_MATRICULA', matricula_do_trabalhador],
30
+ ['ESX_DATAADMISSAO', data_de_admissao.delete('-')],
31
+ ['NumeroProcessoJudicial', evento['infoReintegr/nrProcJud']]
32
+ ]
33
+ )
34
+ ]
35
+ end
36
+
37
+ def cpf_do_trabalhador
38
+ @cpf_do_trabalhador ||= evento['ideVinculo/cpfTrab']
39
+ end
40
+
41
+ def matricula_do_trabalhador
42
+ @matricula_do_trabalhador ||= evento['ideVinculo/matricula']
43
+ end
44
+
45
+ def data_de_admissao
46
+ contrato_de_emprego.data_de_admissao
47
+ end
48
+
49
+ def contrato_de_emprego
50
+ @contrato_de_emprego ||= contratos_de_emprego[matricula_do_trabalhador]
51
+ end
52
+
53
+ def contratos_de_emprego
54
+ empresa.contratos_de_emprego
55
+ end
56
+
57
+ def data_do_efetivo_retorno
58
+ evento['infoReintegr/dtEfetRetorno']
59
+ end
60
+ end
61
+ end
62
+ end
@@ -1,3 +1,3 @@
1
1
  module Teodoro
2
- VERSION = '0.66.0'.freeze
2
+ VERSION = '0.67.0'.freeze
3
3
  end
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.66.0
4
+ version: 0.67.0
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-01-16 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -118,6 +118,7 @@ files:
118
118
  - lib/teodoro/leiaute/arquivo_s2230.rb
119
119
  - lib/teodoro/leiaute/arquivo_s2240.rb
120
120
  - lib/teodoro/leiaute/arquivo_s2250.rb
121
+ - lib/teodoro/leiaute/arquivo_s2298.rb
121
122
  - lib/teodoro/leiaute/arquivo_s2299.rb
122
123
  - lib/teodoro/leiaute/arquivo_s2300.rb
123
124
  - lib/teodoro/leiaute/arquivo_s2306.rb