@senior-gestao-empresarial/erpx-components 1.19.1 → 1.19.2

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.
@@ -2779,6 +2779,7 @@
2779
2779
  grupo.item
2780
2780
  .filter(function (it) { return it.name == tributo; })
2781
2781
  .map(function (it) {
2782
+ var _a, _b;
2782
2783
  var hasValue = false;
2783
2784
  Object.keys(it.formGroup.value).forEach(function (item) {
2784
2785
  if (it.formGroup.value[item] != undefined) {
@@ -2808,11 +2809,9 @@
2808
2809
  else if (tributo === exports.EnumTipoTributo.FUNRURAL_INSS ||
2809
2810
  tributo === exports.EnumTipoTributo.FUNRURAL_RAT ||
2810
2811
  tributo === exports.EnumTipoTributo.FUNRURAL_SENAR) {
2811
- var base = it.formGroup.controls.baseCalculo.value;
2812
- var aliquota = it.formGroup.controls.aliquota.value;
2813
- if ((base != undefined) && (aliquota != undefined)) {
2814
- it.formGroup.controls.valor.patchValue(Math.floor((base * aliquota)) / 100);
2815
- }
2812
+ var base = (_a = it.formGroup.get("baseCalculo").value) !== null && _a !== void 0 ? _a : null;
2813
+ var aliquota = (_b = it.formGroup.get("aliquota").value) !== null && _b !== void 0 ? _b : null;
2814
+ it.formGroup.controls.valor.patchValue(Math.floor((base * aliquota)) / 100);
2816
2815
  }
2817
2816
  else if (tributo != exports.EnumTipoTributo.ICMS) {
2818
2817
  var base = it.formGroup.controls.baseCalculo.value;