@senior-gestao-empresarial/erpx-components 3.35.0 → 3.35.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 +18 -19
- 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 +16 -21
- package/esm5/components/tributos/erp-tributos.component.js +19 -20
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +15 -20
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +18 -19
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +2 -48
|
@@ -9686,14 +9686,6 @@
|
|
|
9686
9686
|
configurable: true
|
|
9687
9687
|
});
|
|
9688
9688
|
ErpTributosComponent.prototype.ngOnInit = function () {
|
|
9689
|
-
this.menuItemPis = false;
|
|
9690
|
-
this.menuItemCofins = false;
|
|
9691
|
-
this.menuItemIpi = false;
|
|
9692
|
-
this.menuItemIss = false;
|
|
9693
|
-
this.menuItemImportacoes = false;
|
|
9694
|
-
this.menuItemRetencoes = false;
|
|
9695
|
-
this.menuItemIcms = false;
|
|
9696
|
-
this.menuItemCideTecnologia = false;
|
|
9697
9689
|
this.dominio = this.dominio ? this.dominio : 'erpx_cpl_imp';
|
|
9698
9690
|
this.servico = this.servico ? this.servico : 'cadastros';
|
|
9699
9691
|
this.prefixLabel = this.dominio + "." + this.servico;
|
|
@@ -10080,10 +10072,10 @@
|
|
|
10080
10072
|
return grupo.item.map(function (item) {
|
|
10081
10073
|
_this.tributosValue.map(function (it) {
|
|
10082
10074
|
if (item.name === it.tipoImposto) {
|
|
10075
|
+
item.formGroup.patchValue(it, { emitEvent: false });
|
|
10083
10076
|
if (!isTaxFromTaxReform(it.tipoImposto)) {
|
|
10084
10077
|
_this.setValidators(it.tipoImposto);
|
|
10085
10078
|
}
|
|
10086
|
-
item.formGroup.patchValue(it, { emitEvent: false });
|
|
10087
10079
|
}
|
|
10088
10080
|
});
|
|
10089
10081
|
});
|
|
@@ -10127,16 +10119,14 @@
|
|
|
10127
10119
|
grupo.item
|
|
10128
10120
|
.filter(function (it) { return it.name == tributo; })
|
|
10129
10121
|
.map(function (it) {
|
|
10130
|
-
var hasValue =
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
}
|
|
10139
|
-
}
|
|
10122
|
+
var hasValue = Object.keys(it.formGroup.value)
|
|
10123
|
+
.filter(function (key) {
|
|
10124
|
+
return key !== 'impostoManual' &&
|
|
10125
|
+
key !== exports.EnumCampoTributo.TipoCalculoImposto;
|
|
10126
|
+
})
|
|
10127
|
+
.some(function (key) {
|
|
10128
|
+
return it.formGroup.get(key).value !== null &&
|
|
10129
|
+
it.formGroup.get(key).value !== undefined;
|
|
10140
10130
|
});
|
|
10141
10131
|
if (hasValue)
|
|
10142
10132
|
Object.keys(it.formGroup.value).forEach(function (item) {
|
|
@@ -10153,6 +10143,15 @@
|
|
|
10153
10143
|
it.formGroup.controls[item].updateValueAndValidity({ emitEvent: false });
|
|
10154
10144
|
_this.setRequired(tributo, true);
|
|
10155
10145
|
}
|
|
10146
|
+
else if (item === 'situacaoTributaria') {
|
|
10147
|
+
it.formGroup.controls[item].setValidators(forms.Validators.compose([
|
|
10148
|
+
forms.Validators.required
|
|
10149
|
+
]));
|
|
10150
|
+
it.formGroup.controls[item].updateValueAndValidity({
|
|
10151
|
+
emitEvent: false
|
|
10152
|
+
});
|
|
10153
|
+
_this.setRequired(tributo, true);
|
|
10154
|
+
}
|
|
10156
10155
|
else if (item === 'observacao') {
|
|
10157
10156
|
it.formGroup.controls[item].setValidators(forms.Validators.compose([forms.Validators.maxLength(120)]));
|
|
10158
10157
|
it.formGroup.controls[item].updateValueAndValidity({ emitEvent: false });
|