@senior-gestao-empresarial/erpx-components 3.5.2 → 3.5.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 +54 -1
- 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.component.d.ts +3 -0
- package/esm2015/components/tributos/erp-tributos.component.js +55 -2
- package/esm5/components/tributos/erp-tributos.component.js +55 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +54 -1
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +54 -1
- 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
|
@@ -788,6 +788,9 @@
|
|
|
788
788
|
this.menuItemIS = false;
|
|
789
789
|
this.menuItemIcmsCreditoPresumido = false;
|
|
790
790
|
this.requiredItemCBS = false;
|
|
791
|
+
this.requiredItemIBSEstadual = false;
|
|
792
|
+
this.requiredItemIBSMunicipal = false;
|
|
793
|
+
this.requiredItemIS = false;
|
|
791
794
|
this.requiredItemCideTecnologia = false;
|
|
792
795
|
this.requiredItemPisRecuperar = false;
|
|
793
796
|
this.requiredItemPisDevolvido = false;
|
|
@@ -2719,6 +2722,12 @@
|
|
|
2719
2722
|
switch (tributo) {
|
|
2720
2723
|
case exports.EnumTipoTributo.CBS:
|
|
2721
2724
|
return this.requiredItemCBS;
|
|
2725
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL:
|
|
2726
|
+
return this.requiredItemIBSEstadual;
|
|
2727
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL:
|
|
2728
|
+
return this.requiredItemIBSMunicipal;
|
|
2729
|
+
case exports.EnumTipoTributo.IS:
|
|
2730
|
+
return this.requiredItemIS;
|
|
2722
2731
|
case exports.EnumTipoTributo.CIDE_TECNOLOGIA:
|
|
2723
2732
|
return this.requiredItemCideTecnologia;
|
|
2724
2733
|
case exports.EnumTipoTributo.PIS_RECUPERAR:
|
|
@@ -2826,6 +2835,15 @@
|
|
|
2826
2835
|
case exports.EnumTipoTributo.CBS:
|
|
2827
2836
|
this.requiredItemCBS = value;
|
|
2828
2837
|
break;
|
|
2838
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL:
|
|
2839
|
+
this.requiredItemIBSEstadual = value;
|
|
2840
|
+
break;
|
|
2841
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL:
|
|
2842
|
+
this.requiredItemIBSMunicipal = value;
|
|
2843
|
+
break;
|
|
2844
|
+
case exports.EnumTipoTributo.IS:
|
|
2845
|
+
this.requiredItemIS = value;
|
|
2846
|
+
break;
|
|
2829
2847
|
case exports.EnumTipoTributo.CIDE_TECNOLOGIA: {
|
|
2830
2848
|
this.requiredItemCideTecnologia = value;
|
|
2831
2849
|
break;
|
|
@@ -3061,6 +3079,38 @@
|
|
|
3061
3079
|
100, 2));
|
|
3062
3080
|
return;
|
|
3063
3081
|
}
|
|
3082
|
+
if (tributo === exports.EnumTipoTributo.IBS_ESTADUAL) {
|
|
3083
|
+
it.formGroup.get('aliquotaEfetiva').patchValue(_this.roundImposto(new BigNumber(1)
|
|
3084
|
+
.minus(it.formGroup.get('reducaoAliquota').value
|
|
3085
|
+
? new BigNumber(it.formGroup.get('reducaoAliquota').value).dividedBy(100)
|
|
3086
|
+
: 0)
|
|
3087
|
+
.multipliedBy(it.formGroup.get('aliquota').value)
|
|
3088
|
+
.toNumber(), 2));
|
|
3089
|
+
if (it.formGroup.get('baseCalculo').value != undefined &&
|
|
3090
|
+
it.formGroup.get('aliquotaEfetiva').value != undefined)
|
|
3091
|
+
it.formGroup
|
|
3092
|
+
.get('valor')
|
|
3093
|
+
.patchValue(_this.roundImposto((it.formGroup.get('baseCalculo').value *
|
|
3094
|
+
it.formGroup.get('aliquotaEfetiva').value) /
|
|
3095
|
+
100, 2));
|
|
3096
|
+
return;
|
|
3097
|
+
}
|
|
3098
|
+
if (tributo === exports.EnumTipoTributo.IBS_MUNICIPAL) {
|
|
3099
|
+
it.formGroup.get('aliquotaEfetiva').patchValue(_this.roundImposto(new BigNumber(1)
|
|
3100
|
+
.minus(it.formGroup.get('reducaoAliquota').value
|
|
3101
|
+
? new BigNumber(it.formGroup.get('reducaoAliquota').value).dividedBy(100)
|
|
3102
|
+
: 0)
|
|
3103
|
+
.multipliedBy(it.formGroup.get('aliquota').value)
|
|
3104
|
+
.toNumber(), 2));
|
|
3105
|
+
if (it.formGroup.get('baseCalculo').value != undefined &&
|
|
3106
|
+
it.formGroup.get('aliquotaEfetiva').value != undefined)
|
|
3107
|
+
it.formGroup
|
|
3108
|
+
.get('valor')
|
|
3109
|
+
.patchValue(_this.roundImposto((it.formGroup.get('baseCalculo').value *
|
|
3110
|
+
it.formGroup.get('aliquotaEfetiva').value) /
|
|
3111
|
+
100, 2));
|
|
3112
|
+
return;
|
|
3113
|
+
}
|
|
3064
3114
|
if ((it.formGroup.controls.baseCalculo != undefined) &&
|
|
3065
3115
|
(it.formGroup.controls.aliquota != undefined)) {
|
|
3066
3116
|
if (tributo != exports.EnumTipoTributo.ICMS_UF_DESTINO) {
|
|
@@ -3305,7 +3355,6 @@
|
|
|
3305
3355
|
numberLocaleOptions: { currencySymbol: '%', decimalSeparator: ',', thousandsSeparator: '.' },
|
|
3306
3356
|
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
3307
3357
|
onBlur: function () {
|
|
3308
|
-
// this.calcularValor(tributo);
|
|
3309
3358
|
_this.backValue();
|
|
3310
3359
|
_this.setValidators(tributo);
|
|
3311
3360
|
},
|
|
@@ -4084,6 +4133,10 @@
|
|
|
4084
4133
|
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.FUNRURAL + '_label')
|
|
4085
4134
|
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.ISS + '_label')
|
|
4086
4135
|
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CIDE_TECNOLOGIA + '_label')
|
|
4136
|
+
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CBS + '_label')
|
|
4137
|
+
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IBS_ESTADUAL + '_label')
|
|
4138
|
+
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IBS_MUNICIPAL + '_label')
|
|
4139
|
+
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IS + '_label')
|
|
4087
4140
|
|| (it.grupo == 'erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IPI + '_label'); })
|
|
4088
4141
|
.map(function (grupo) { return grupo.item.map(function (item) {
|
|
4089
4142
|
if (item.formGroup.controls.impostoManual.value == true) {
|