@senior-gestao-empresarial/erpx-components 3.3.2 → 3.3.3
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 +28 -3
- 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/components/tributos/erp-tributos.types.d.ts +2 -0
- package/esm2015/components/tributos/erp-tributos.component.js +28 -4
- package/esm2015/components/tributos/erp-tributos.types.js +2 -1
- package/esm5/components/tributos/erp-tributos.component.js +28 -4
- package/esm5/components/tributos/erp-tributos.types.js +2 -1
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +28 -3
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +28 -3
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -542,6 +542,7 @@
|
|
|
542
542
|
EnumCampoTributo["PercentualMargemValorAdicionado"] = "percentual_mva";
|
|
543
543
|
EnumCampoTributo["PercentualDiferimento"] = "percentual_diferimento";
|
|
544
544
|
EnumCampoTributo["PercentualSuportadoConsumidorFinal"] = "percentual_suportado_consumidor_final";
|
|
545
|
+
EnumCampoTributo["PercentualSuspensaoParcial"] = "percentual_suspensao_parcial";
|
|
545
546
|
EnumCampoTributo["ValorRecolhidoPeloSubstituto"] = "valor_recolhido_pelo_substituto";
|
|
546
547
|
EnumCampoTributo["ValorIcmsStRetido"] = "valor_icms_retido";
|
|
547
548
|
EnumCampoTributo["MotivoDesoneracaoIcms"] = "motivo_desoneracao_icms";
|
|
@@ -1499,7 +1500,8 @@
|
|
|
1499
1500
|
{ campo: exports.EnumCampoTributo.Valor }
|
|
1500
1501
|
], exports.EnumTipoTributo.FCP)), __assign({ name: exports.EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1501
1502
|
{ campo: exports.EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1502
|
-
{ campo: exports.EnumCampoTributo.Valor }
|
|
1503
|
+
{ campo: exports.EnumCampoTributo.Valor },
|
|
1504
|
+
{ campo: exports.EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1503
1505
|
], exports.EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: exports.EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1504
1506
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
1505
1507
|
{ campo: exports.EnumCampoTributo.PercentualDiferimento },
|
|
@@ -1576,7 +1578,8 @@
|
|
|
1576
1578
|
{ campo: exports.EnumCampoTributo.Valor }
|
|
1577
1579
|
], exports.EnumTipoTributo.FCP)), __assign({ name: exports.EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1578
1580
|
{ campo: exports.EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1579
|
-
{ campo: exports.EnumCampoTributo.Valor }
|
|
1581
|
+
{ campo: exports.EnumCampoTributo.Valor },
|
|
1582
|
+
{ campo: exports.EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1580
1583
|
], exports.EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: exports.EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1581
1584
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
1582
1585
|
{ campo: exports.EnumCampoTributo.PercentualDiferimento },
|
|
@@ -1643,7 +1646,8 @@
|
|
|
1643
1646
|
{ campo: exports.EnumCampoTributo.Valor }
|
|
1644
1647
|
], exports.EnumTipoTributo.FCP)), __assign({ name: exports.EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1645
1648
|
{ campo: exports.EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1646
|
-
{ campo: exports.EnumCampoTributo.Valor }
|
|
1649
|
+
{ campo: exports.EnumCampoTributo.Valor },
|
|
1650
|
+
{ campo: exports.EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1647
1651
|
], exports.EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: exports.EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1648
1652
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
1649
1653
|
{ campo: exports.EnumCampoTributo.PercentualDiferimento },
|
|
@@ -3681,6 +3685,27 @@
|
|
|
3681
3685
|
required: function () { return false; }
|
|
3682
3686
|
}));
|
|
3683
3687
|
}
|
|
3688
|
+
else if (it.campo == exports.EnumCampoTributo.PercentualSuspensaoParcial) {
|
|
3689
|
+
formGroup = __assign(__assign({}, formGroup), { percentualSuspensaoParcial: [{ value: null, disabled: false }, forms.Validators.compose([forms.Validators.max(100)])] });
|
|
3690
|
+
formField.push(new angularComponents$1.FormField({
|
|
3691
|
+
id: tributo + 'percentualSuspensaoParcial',
|
|
3692
|
+
name: 'percentualSuspensaoParcial',
|
|
3693
|
+
label: _this.translate.instant('erpx.tributos.fields_percentual_suspensao_parcial_label'),
|
|
3694
|
+
type: angularComponents$1.FieldType.Money,
|
|
3695
|
+
precision: 7,
|
|
3696
|
+
scale: 4,
|
|
3697
|
+
numberLocaleOptions: { currencySymbol: '%', decimalSeparator: ',', thousandsSeparator: '.' },
|
|
3698
|
+
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
3699
|
+
onBlur: function () {
|
|
3700
|
+
_this.backValue();
|
|
3701
|
+
_this.setValidators(tributo);
|
|
3702
|
+
},
|
|
3703
|
+
errorMessages: function () { return ({
|
|
3704
|
+
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 100 })
|
|
3705
|
+
}); },
|
|
3706
|
+
required: function () { return _this.setVariableRequired(tributo); }
|
|
3707
|
+
}));
|
|
3708
|
+
}
|
|
3684
3709
|
});
|
|
3685
3710
|
if (this.sugestoes) {
|
|
3686
3711
|
this.sugestoes
|