flit-modulo-exportacoes 2.0.47 → 2.0.49

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.
package/dist/index.js CHANGED
@@ -318,8 +318,8 @@ async function calcularValoresExportacao({ contaId, dataFinal, dataInicial, elas
318
318
  valoresEventos.ValorExtraIntrajornadaComReducao.Horas += valorExtraIntrajornadaComReducao;
319
319
  valoresEventos.ValorExtraIntrajornadaComReducao.Minutos += valorExtraIntrajornadaComReducao * 60;
320
320
  if ((jornada.regime_compensacao ?? flit_calcular_jornada_1.RegimesCompensacao.HorasExtras) === flit_calcular_jornada_1.RegimesCompensacao.HorasExtras) {
321
- valoresEventos.ValorAtraso.Horas += jornada.horas_negativas ?? 0;
322
- valoresEventos.ValorAtraso.Minutos += (jornada.horas_negativas ?? 0) * 60;
321
+ valoresEventos.ValorAtraso.Horas += Math.abs(jornada.horas_negativas ?? 0);
322
+ valoresEventos.ValorAtraso.Minutos += Math.abs(jornada.horas_negativas ?? 0) * 60;
323
323
  valoresEventos.FaixaSemanal.ValorFaixa1.Horas += jornada.faixas_horas_extras?.semanal?.faixa1 ?? 0;
324
324
  valoresEventos.FaixaSemanal.ValorFaixa1.Minutos += (jornada.faixas_horas_extras?.semanal?.faixa1 ?? 0) * 60;
325
325
  valoresEventos.FaixaSemanal.ValorFaixa2.Horas += jornada.faixas_horas_extras?.semanal?.faixa2 ?? 0;
@@ -27,8 +27,8 @@ class UnificacaoEventosRepetidos {
27
27
  somatorioHoras += valoresEventos.ValorFaltas.Horas ?? 0;
28
28
  somatorioMinutos += valoresEventos.ValorFaltas.Minutos ?? 0;
29
29
  if (index > 0) {
30
- valoresEventos.ValorAtraso.Horas = 0;
31
- valoresEventos.ValorAtraso.Minutos = 0;
30
+ valoresEventos.ValorFaltas.Horas = 0;
31
+ valoresEventos.ValorFaltas.Minutos = 0;
32
32
  }
33
33
  break;
34
34
  case models_1.TipoEventoExportacao.ATRASO:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-modulo-exportacoes",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": {