flit-modulo-exportacoes 2.0.37 → 2.0.38

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.
@@ -71,7 +71,12 @@ class JornadasElastic extends elastic_base_1.ElasticBase {
71
71
  ],
72
72
  query: {
73
73
  bool: {
74
- must: queryMust
74
+ must: queryMust,
75
+ must_not: [{
76
+ match: {
77
+ ocultado_por_desligamento: true
78
+ }
79
+ }]
75
80
  }
76
81
  },
77
82
  sort: [{
package/dist/index.js CHANGED
@@ -328,7 +328,7 @@ async function calcularValoresExportacao({ contaId, dataFinal, dataInicial, elas
328
328
  ufEmpresaUsuarioJornada: jornada.usuario.empresa.uf,
329
329
  idEmpresaUsuarioJornada: jornada.usuario.empresa.uid,
330
330
  cidadeEmpresaUsuarioJornada: jornada.usuario.empresa.cidade,
331
- tipoOcorrenciaFrequenciaJornadaPrevista: jornada.jornada_prevista.ocorrencia_frequencia.tipo
331
+ tipoOcorrenciaFrequenciaJornadaPrevista: jornada.jornada_prevista?.ocorrencia_frequencia?.tipo ?? ''
332
332
  })) {
333
333
  valoresEventos.ValorExtraFeriado.Horas += jornada.horas_extras ?? 0;
334
334
  valoresEventos.ValorExtraFeriado.Minutos += (jornada.horas_extras ?? 0) * 60;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-modulo-exportacoes",
3
- "version": "2.0.37",
3
+ "version": "2.0.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": {
@@ -15,7 +15,7 @@
15
15
  "moment": "^2.29.4"
16
16
  },
17
17
  "devDependencies": {
18
- "@elastic/elasticsearch": "^8.9.0",
18
+ "@elastic/elasticsearch": "^8.10.0",
19
19
  "@types/luxon": "^3.3.2",
20
20
  "flit-calcular-jornada": "^2.1.20",
21
21
  "prettier": "^3.0.3",