@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.
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js +4 -5
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/esm2015/components/tributos/erp-tributos.component.js +5 -6
- package/esm5/components/tributos/erp-tributos.component.js +5 -6
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +4 -5
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +4 -5
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
2812
|
-
var aliquota = it.formGroup.
|
|
2813
|
-
|
|
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;
|