@senior-gestao-empresarial/erpx-components 3.29.0 → 3.29.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 +21 -8
- 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 +3 -3
- package/esm2015/components/tributos/erp-tributos.component.js +8 -7
- package/esm2015/components/tributos/erp-tributos.types.js +3 -3
- package/esm2015/components/tributos/rules/rules.service.js +14 -1
- package/esm5/components/tributos/erp-tributos.component.js +8 -7
- package/esm5/components/tributos/erp-tributos.types.js +3 -3
- package/esm5/components/tributos/rules/rules.service.js +14 -1
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +21 -8
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +21 -8
- 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
|
@@ -689,14 +689,14 @@
|
|
|
689
689
|
EnumTipoDocumento["NF_ENTRADA_CONTROLADORIA"] = "nf_entrada_controladoria";
|
|
690
690
|
EnumTipoDocumento["NF_ENTRADA_COMPLEMENTAR"] = "nf_entrada_complementar";
|
|
691
691
|
EnumTipoDocumento["NF_ENTRADA_AJUSTE"] = "nf_entrada_ajuste";
|
|
692
|
+
EnumTipoDocumento["NF_ENTRADA_CREDITO"] = "nf_entrada_credito";
|
|
692
693
|
EnumTipoDocumento["NF_SAIDA"] = "nf_saida";
|
|
693
694
|
EnumTipoDocumento["NF_SAIDA_COMPLEMENTAR"] = "nf_saida_complementar";
|
|
694
695
|
EnumTipoDocumento["NF_SAIDA_AJUSTE"] = "nf_saida_ajuste";
|
|
695
696
|
EnumTipoDocumento["NF_SAIDA_CONTROLADORIA"] = "nf_saida_controladoria";
|
|
697
|
+
EnumTipoDocumento["NF_SAIDA_DEBITO"] = "nf_saida_debito";
|
|
696
698
|
EnumTipoDocumento["PEDIDO_COMPRA"] = "pedido_compra";
|
|
697
699
|
EnumTipoDocumento["PEDIDO_VENDA"] = "pedido_venda";
|
|
698
|
-
EnumTipoDocumento["NF_ENTRADA_CREDITO"] = "nf_entrada_credito";
|
|
699
|
-
EnumTipoDocumento["NF_SAIDA_DEBITO"] = "nf_saida_debito";
|
|
700
700
|
})(exports.EnumTipoDocumento || (exports.EnumTipoDocumento = {}));
|
|
701
701
|
|
|
702
702
|
(function (EnumModBc) {
|
|
@@ -5541,6 +5541,18 @@
|
|
|
5541
5541
|
var groups = _a.groups, group = _a.group, documentType = _a.documentType;
|
|
5542
5542
|
if (!isTaxFromTaxReform(getBaseTaxByGroupTax(group.grupoTributo)))
|
|
5543
5543
|
return;
|
|
5544
|
+
// Quebra galho para tratar débitos e créditos como entradas e saídas,
|
|
5545
|
+
// caso seja necessário um tratamento específico para débitos e créditos, deve ser implementado nas regras.
|
|
5546
|
+
switch (documentType) {
|
|
5547
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
5548
|
+
documentType = exports.EnumTipoDocumento.NF_ENTRADA;
|
|
5549
|
+
break;
|
|
5550
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
5551
|
+
documentType = exports.EnumTipoDocumento.NF_SAIDA;
|
|
5552
|
+
break;
|
|
5553
|
+
default:
|
|
5554
|
+
break;
|
|
5555
|
+
}
|
|
5544
5556
|
this.applyStatusRules({ groups: groups, group: group, documentType: documentType });
|
|
5545
5557
|
this.applyValidationRules({ groups: groups, group: group, documentType: documentType });
|
|
5546
5558
|
this.applyCalculationRules({ groups: groups, group: group, documentType: documentType });
|
|
@@ -6663,8 +6675,7 @@
|
|
|
6663
6675
|
return menu;
|
|
6664
6676
|
};
|
|
6665
6677
|
ErpTributosComponent.prototype.podeMostrarImpostos = function () {
|
|
6666
|
-
return this.documento !== exports.EnumTipoDocumento.NF_ENTRADA_CREDITO &&
|
|
6667
|
-
this.documento !== exports.EnumTipoDocumento.NF_SAIDA_DEBITO;
|
|
6678
|
+
return this.documento !== exports.EnumTipoDocumento.NF_ENTRADA_CREDITO && this.documento !== exports.EnumTipoDocumento.NF_SAIDA_DEBITO;
|
|
6668
6679
|
};
|
|
6669
6680
|
ErpTributosComponent.prototype.podeAdicionarImpostoManual = function () {
|
|
6670
6681
|
return (this.featureReformaTributaria &&
|
|
@@ -7701,10 +7712,12 @@
|
|
|
7701
7712
|
return item;
|
|
7702
7713
|
};
|
|
7703
7714
|
ErpTributosComponent.prototype.isDocumentoReformaTributaria = function () {
|
|
7704
|
-
return [
|
|
7715
|
+
return [
|
|
7716
|
+
exports.EnumTipoDocumento.NF_ENTRADA,
|
|
7705
7717
|
exports.EnumTipoDocumento.NF_SAIDA,
|
|
7706
7718
|
exports.EnumTipoDocumento.NF_ENTRADA_CREDITO,
|
|
7707
|
-
exports.EnumTipoDocumento.NF_SAIDA_DEBITO
|
|
7719
|
+
exports.EnumTipoDocumento.NF_SAIDA_DEBITO
|
|
7720
|
+
].includes(this.documento);
|
|
7708
7721
|
};
|
|
7709
7722
|
ErpTributosComponent.prototype.montaIBSEstadual = function () {
|
|
7710
7723
|
if (this.menuItemIBSEstadual)
|
|
@@ -7886,7 +7899,7 @@
|
|
|
7886
7899
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
7887
7900
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
7888
7901
|
];
|
|
7889
|
-
if (this.
|
|
7902
|
+
if (this.isDocumentoReformaTributaria()) {
|
|
7890
7903
|
campos.push({
|
|
7891
7904
|
campo: exports.EnumCampoTributo.ClassificacaoTributariaCreditoPresumido
|
|
7892
7905
|
}, {
|
|
@@ -7911,7 +7924,7 @@
|
|
|
7911
7924
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
7912
7925
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
7913
7926
|
];
|
|
7914
|
-
if (this.
|
|
7927
|
+
if (this.isDocumentoReformaTributaria()) {
|
|
7915
7928
|
campos.push({ campo: exports.EnumCampoTributo.SituacaoTributaria }, { campo: exports.EnumCampoTributo.ClassificacaoTributaria }, { campo: exports.EnumCampoTributo.AplicarValorLiquidoDocumento, grupo: exports.EnumGrupoTributo.IS });
|
|
7916
7929
|
}
|
|
7917
7930
|
item.unshift(__assign({ name: exports.EnumTipoTributo.IS, label: 'erpx.tributos.enum_tipo_tributo_is' }, this.montaCampos(campos, exports.EnumTipoTributo.IS)));
|