@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
|
@@ -341,6 +341,7 @@ var EnumCampoTributo;
|
|
|
341
341
|
EnumCampoTributo["PercentualMargemValorAdicionado"] = "percentual_mva";
|
|
342
342
|
EnumCampoTributo["PercentualDiferimento"] = "percentual_diferimento";
|
|
343
343
|
EnumCampoTributo["PercentualSuportadoConsumidorFinal"] = "percentual_suportado_consumidor_final";
|
|
344
|
+
EnumCampoTributo["PercentualSuspensaoParcial"] = "percentual_suspensao_parcial";
|
|
344
345
|
EnumCampoTributo["ValorRecolhidoPeloSubstituto"] = "valor_recolhido_pelo_substituto";
|
|
345
346
|
EnumCampoTributo["ValorIcmsStRetido"] = "valor_icms_retido";
|
|
346
347
|
EnumCampoTributo["MotivoDesoneracaoIcms"] = "motivo_desoneracao_icms";
|
|
@@ -1298,7 +1299,8 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
1298
1299
|
{ campo: EnumCampoTributo.Valor }
|
|
1299
1300
|
], EnumTipoTributo.FCP)), __assign({ name: EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1300
1301
|
{ campo: EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1301
|
-
{ campo: EnumCampoTributo.Valor }
|
|
1302
|
+
{ campo: EnumCampoTributo.Valor },
|
|
1303
|
+
{ campo: EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1302
1304
|
], EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1303
1305
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
1304
1306
|
{ campo: EnumCampoTributo.PercentualDiferimento },
|
|
@@ -1375,7 +1377,8 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
1375
1377
|
{ campo: EnumCampoTributo.Valor }
|
|
1376
1378
|
], EnumTipoTributo.FCP)), __assign({ name: EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1377
1379
|
{ campo: EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1378
|
-
{ campo: EnumCampoTributo.Valor }
|
|
1380
|
+
{ campo: EnumCampoTributo.Valor },
|
|
1381
|
+
{ campo: EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1379
1382
|
], EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1380
1383
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
1381
1384
|
{ campo: EnumCampoTributo.PercentualDiferimento },
|
|
@@ -1442,7 +1445,8 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
1442
1445
|
{ campo: EnumCampoTributo.Valor }
|
|
1443
1446
|
], EnumTipoTributo.FCP)), __assign({ name: EnumTipoTributo.ICMS_DESONERADO, label: 'erpx.tributos.enum_tipo_tributo_icms_desonerado' }, this.montaCampos([
|
|
1444
1447
|
{ campo: EnumCampoTributo.MotivoDesoneracaoIcms },
|
|
1445
|
-
{ campo: EnumCampoTributo.Valor }
|
|
1448
|
+
{ campo: EnumCampoTributo.Valor },
|
|
1449
|
+
{ campo: EnumCampoTributo.PercentualSuspensaoParcial }
|
|
1446
1450
|
], EnumTipoTributo.ICMS_DESONERADO)), __assign({ name: EnumTipoTributo.ICMS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_icms_diferido' }, this.montaCampos([
|
|
1447
1451
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
1448
1452
|
{ campo: EnumCampoTributo.PercentualDiferimento },
|
|
@@ -3480,6 +3484,27 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
3480
3484
|
required: function () { return false; }
|
|
3481
3485
|
}));
|
|
3482
3486
|
}
|
|
3487
|
+
else if (it.campo == EnumCampoTributo.PercentualSuspensaoParcial) {
|
|
3488
|
+
formGroup = __assign(__assign({}, formGroup), { percentualSuspensaoParcial: [{ value: null, disabled: false }, Validators.compose([Validators.max(100)])] });
|
|
3489
|
+
formField.push(new FormField({
|
|
3490
|
+
id: tributo + 'percentualSuspensaoParcial',
|
|
3491
|
+
name: 'percentualSuspensaoParcial',
|
|
3492
|
+
label: _this.translate.instant('erpx.tributos.fields_percentual_suspensao_parcial_label'),
|
|
3493
|
+
type: FieldType.Money,
|
|
3494
|
+
precision: 7,
|
|
3495
|
+
scale: 4,
|
|
3496
|
+
numberLocaleOptions: { currencySymbol: '%', decimalSeparator: ',', thousandsSeparator: '.' },
|
|
3497
|
+
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
3498
|
+
onBlur: function () {
|
|
3499
|
+
_this.backValue();
|
|
3500
|
+
_this.setValidators(tributo);
|
|
3501
|
+
},
|
|
3502
|
+
errorMessages: function () { return ({
|
|
3503
|
+
max: _this.translate.instant('erpx.tributos.fields_max_validator', { value: 100 })
|
|
3504
|
+
}); },
|
|
3505
|
+
required: function () { return _this.setVariableRequired(tributo); }
|
|
3506
|
+
}));
|
|
3507
|
+
}
|
|
3483
3508
|
});
|
|
3484
3509
|
if (this.sugestoes) {
|
|
3485
3510
|
this.sugestoes
|