teodoro 0.60.0 → 0.61.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: 84cda12f90717c2ae887f52ea700afee07ffae0c47ddac78fca16f8337436897
4
- data.tar.gz: 57f2adfcaf28f64c5096d002eea98a6531f71acc67302e7fe310eb48624e061c
3
+ metadata.gz: 18cf988dba134dfdb7680d1fffab3f256b19abad0b88694dedddb24017e7dafd
4
+ data.tar.gz: aa538bbb06354a1d57720ee44aae25c5966ade86e0de5460a6224fd50a234a91
5
5
  SHA512:
6
- metadata.gz: 42850781c225c8da81554a611c71a922ccf00d7be41864905f26077e38ea22e46b28192da2d4f3539934df962a9245d491f18d5246fe3a71e1189523c453437f
7
- data.tar.gz: 207967023834323165a86c7e3ce57c999c0e976aee778417486a788a472f121bb2dfd105ebc75c2863253f8f14265c2900310662b589d651bdb2d78b8e02b4ec
6
+ metadata.gz: 5e75d39400f87b2b72fb353a5d2eb20f8bf94bbc0e7d5344f80219a8d58d215c52521ad6bbb113359e6b5e806188cd1c35dc699ac87219f821d861e6baad4c6b
7
+ data.tar.gz: 1b609a1ccd98d253b6519445dfeed7c22ee60a5ac585069721a1967c053e9804fe4309c8b25b47cee4f85ef663944d4e98a7e7b71283a759c85e6bab15a32a54
@@ -276,8 +276,10 @@ module Teodoro
276
276
  ['EventoAdmissao_InfoVinculo_DataInicioAfastamento', evento['vinculo/afastamento/dtIniAfast'], :data],
277
277
  ['EventoAdmissao_InfoVinculo_CodigoMotivoAfastamento', evento['vinculo/afastamento/codMotAfast']],
278
278
  ['EventoAdmissao_InfoVinculo_SucessaoVinculo_DataTransferencia', evento['vinculo/sucessaoVinc/dtTransf'], :data],
279
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_TipoInscricaoAnterior', leiaute.tipo_de_inscricao_do_empregador_anterior],
279
280
  ['EventoAdmissao_InfoVinculo_SucessaoVinculo_CnpjEmpregadorAnterior', leiaute.cnpj_do_empregador_anterior],
280
281
  ['EventoAdmissao_InfoVinculo_SucessaoVinculo_MatriculaAnterior', evento['vinculo/sucessaoVinc/matricAnt']],
282
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_Observacao', evento['vinculo/sucessaoVinc/observacao']],
281
283
  *(
282
284
  if leiaute_simplificado?
283
285
  evento.*('vinculo/infoContrato/treiCap').map.with_index(1) do |treinamento_capacitacao, seq|
@@ -385,6 +387,11 @@ module Teodoro
385
387
  ['InfoVinculo_InformacoesRegimeTrabalhista_InformacoesTrabalhadorCeletista_InfoFgts_OptanteFGTS', leiaute.opcao_pelo_fgts],
386
388
  ['InfoVinculo_InformacoesRegimeTrabalhista_InformacoesTrabalhadorCeletista_NaturezaAtividade', admissao.natureza_da_atividade],
387
389
  ['InfoVinculo_InformacoesRegimeTrabalhista_InformacoesTrabalhadorCeletista_TipoAdmissao', admissao.tipo_de_admissao],
390
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_DataTransferencia', evento['vinculo/sucessaoVinc/dtTransf'], :data],
391
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_TipoInscricaoAnterior', leiaute.tipo_de_inscricao_do_empregador_anterior],
392
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_CnpjEmpregadorAnterior', leiaute.cnpj_do_empregador_anterior],
393
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_MatriculaAnterior', evento['vinculo/sucessaoVinc/matricAnt']],
394
+ ['EventoAdmissao_InfoVinculo_SucessaoVinculo_Observacao', evento['vinculo/sucessaoVinc/observacao']],
388
395
  *evento.*('trabalhador/dependente').map.with_index do |dependente, seq|
389
396
  [
390
397
  ["EventoAdmissao_Dependente_#{seq}_CPFDependente", dependente['cpfDep']],
@@ -460,6 +467,10 @@ module Teodoro
460
467
  @codigo_da_funcao ||= evento['vinculo/infoContrato/codFuncao']
461
468
  end
462
469
 
470
+ def tipo_de_inscricao_do_empregador_anterior
471
+ @tipo_de_inscricao_do_empregador_anterior ||= evento['vinculo/sucessaoVinc/tpInscAnt']
472
+ end
473
+
463
474
  def cnpj_do_empregador_anterior
464
475
  @cnpj_do_empregador_anterior ||= evento['vinculo/sucessaoVinc/cnpjEmpregAnt']
465
476
  end
@@ -508,6 +519,10 @@ module Teodoro
508
519
  funcao&.codigo
509
520
  end
510
521
 
522
+ def tipo_de_inscricao_do_empregador_anterior
523
+ @tipo_de_inscricao_do_empregador_anterior ||= evento['vinculo/sucessaoVinc/tpInsc']
524
+ end
525
+
511
526
  def cnpj_do_empregador_anterior
512
527
  @cnpj_do_empregador_anterior ||= evento['vinculo/sucessaoVinc/nrInsc']
513
528
  end
@@ -389,11 +389,18 @@ module Teodoro
389
389
  include ContratoDeTrabalho
390
390
 
391
391
  def nome_do_arquivo_data_identificacao_do_contrato
392
- "[TSV_#{categoria_do_trabalhador}_#{data_de_inicio.delete('-')}]"
392
+ "[#{
393
+ [
394
+ 'TSV',
395
+ categoria_do_trabalhador,
396
+ data_de_inicio.delete('-'),
397
+ *matricula_do_trabalhador
398
+ ].join('_')
399
+ }]"
393
400
  end
394
401
 
395
402
  def matricula_do_trabalhador
396
- nil
403
+ contrato.matricula_do_trabalhador
397
404
  end
398
405
 
399
406
  def categoria_do_trabalhador
@@ -1,3 +1,3 @@
1
1
  module Teodoro
2
- VERSION = '0.60.0'.freeze
2
+ VERSION = '0.61.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.60.0
4
+ version: 0.61.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: 2023-06-16 00:00:00.000000000 Z
11
+ date: 2023-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.4.13
152
+ rubygems_version: 3.4.14
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: ''