@senior-gestao-empresarial/erpx-components 3.27.2 → 3.28.0
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 +47 -6
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +2 -2
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/components/tributos/erp-tributos.component.d.ts +5 -9
- package/components/tributos/erp-tributos.types.d.ts +11 -1
- package/esm2015/components/tributos/erp-tributos.component.js +46 -7
- package/esm2015/components/tributos/erp-tributos.types.js +3 -1
- package/esm5/components/tributos/erp-tributos.component.js +46 -7
- package/esm5/components/tributos/erp-tributos.types.js +3 -1
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +47 -6
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +47 -6
- 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
|
@@ -695,6 +695,8 @@
|
|
|
695
695
|
EnumTipoDocumento["NF_SAIDA_CONTROLADORIA"] = "nf_saida_controladoria";
|
|
696
696
|
EnumTipoDocumento["PEDIDO_COMPRA"] = "pedido_compra";
|
|
697
697
|
EnumTipoDocumento["PEDIDO_VENDA"] = "pedido_venda";
|
|
698
|
+
EnumTipoDocumento["NF_ENTRADA_CREDITO"] = "nf_entrada_credito";
|
|
699
|
+
EnumTipoDocumento["NF_SAIDA_DEBITO"] = "nf_saida_debito";
|
|
698
700
|
})(exports.EnumTipoDocumento || (exports.EnumTipoDocumento = {}));
|
|
699
701
|
|
|
700
702
|
(function (EnumModBc) {
|
|
@@ -6501,6 +6503,7 @@
|
|
|
6501
6503
|
id: 'retencaoFunrural',
|
|
6502
6504
|
label: this.translate.instant('erpx.tributos.actions_retencao_funrural_label'),
|
|
6503
6505
|
disabled: this.menuItemRetencoesFunrural,
|
|
6506
|
+
visible: this.podeMostrarImpostos(),
|
|
6504
6507
|
command: function () {
|
|
6505
6508
|
(_this.montaRetencoesFunrural().forEach(function (value) {
|
|
6506
6509
|
_this.novoImpostoManual(value);
|
|
@@ -6512,6 +6515,7 @@
|
|
|
6512
6515
|
id: 'pis',
|
|
6513
6516
|
label: this.translate.instant('erpx.tributos.actions_pis_label'),
|
|
6514
6517
|
disabled: this.menuItemPis,
|
|
6518
|
+
visible: this.podeMostrarImpostos(),
|
|
6515
6519
|
command: function () {
|
|
6516
6520
|
(_this.montaPis().forEach(function (value) {
|
|
6517
6521
|
_this.novoImpostoManual(value);
|
|
@@ -6523,6 +6527,7 @@
|
|
|
6523
6527
|
id: 'cofins',
|
|
6524
6528
|
label: this.translate.instant('erpx.tributos.actions_cofins_label'),
|
|
6525
6529
|
disabled: this.menuItemCofins,
|
|
6530
|
+
visible: this.podeMostrarImpostos(),
|
|
6526
6531
|
command: function () {
|
|
6527
6532
|
(_this.montaCofins().forEach(function (value) {
|
|
6528
6533
|
_this.novoImpostoManual(value);
|
|
@@ -6534,6 +6539,7 @@
|
|
|
6534
6539
|
id: 'ipi',
|
|
6535
6540
|
label: this.translate.instant('erpx.tributos.actions_ipi_label'),
|
|
6536
6541
|
disabled: this.menuItemIpi,
|
|
6542
|
+
visible: this.podeMostrarImpostos(),
|
|
6537
6543
|
command: function () {
|
|
6538
6544
|
(_this.montaIpi().forEach(function (value) {
|
|
6539
6545
|
_this.novoImpostoManual(value);
|
|
@@ -6545,6 +6551,7 @@
|
|
|
6545
6551
|
id: 'icms',
|
|
6546
6552
|
label: this.translate.instant('erpx.tributos.actions_icms_label'),
|
|
6547
6553
|
disabled: this.menuItemIcms,
|
|
6554
|
+
visible: this.podeMostrarImpostos(),
|
|
6548
6555
|
command: function () {
|
|
6549
6556
|
(_this.montaIcms().forEach(function (value) {
|
|
6550
6557
|
_this.novoImpostoManual(value);
|
|
@@ -6558,6 +6565,7 @@
|
|
|
6558
6565
|
id: 'importacoes',
|
|
6559
6566
|
label: this.translate.instant('erpx.tributos.actions_importacoes_label'),
|
|
6560
6567
|
disabled: this.menuItemImportacoes,
|
|
6568
|
+
visible: this.podeMostrarImpostos(),
|
|
6561
6569
|
command: function () {
|
|
6562
6570
|
(_this.montaImportacoes().forEach(function (value) {
|
|
6563
6571
|
_this.novoImpostoManual(value, true);
|
|
@@ -6572,6 +6580,7 @@
|
|
|
6572
6580
|
id: 'iss',
|
|
6573
6581
|
label: this.translate.instant('erpx.tributos.actions_iss_label'),
|
|
6574
6582
|
disabled: this.menuItemIss,
|
|
6583
|
+
visible: this.podeMostrarImpostos(),
|
|
6575
6584
|
command: function () {
|
|
6576
6585
|
(_this.montaIss().forEach(function (value) {
|
|
6577
6586
|
_this.novoImpostoManual(value);
|
|
@@ -6583,6 +6592,7 @@
|
|
|
6583
6592
|
id: 'retencoes',
|
|
6584
6593
|
label: this.translate.instant('erpx.tributos.actions_retencoes_label'),
|
|
6585
6594
|
disabled: this.menuItemRetencoes,
|
|
6595
|
+
visible: this.podeMostrarImpostos(),
|
|
6586
6596
|
command: function () {
|
|
6587
6597
|
(_this.montaRetencoes().forEach(function (value) {
|
|
6588
6598
|
_this.novoImpostoManual(value);
|
|
@@ -6597,6 +6607,7 @@
|
|
|
6597
6607
|
id: 'cide',
|
|
6598
6608
|
label: this.translate.instant('erpx.tributos.actions_cide_label'),
|
|
6599
6609
|
disabled: this.menuItemCideTecnologia,
|
|
6610
|
+
visible: this.podeMostrarImpostos(),
|
|
6600
6611
|
command: function () {
|
|
6601
6612
|
(_this.montaCide().forEach(function (value) {
|
|
6602
6613
|
_this.novoImpostoManual(value);
|
|
@@ -6610,6 +6621,7 @@
|
|
|
6610
6621
|
menu.push({
|
|
6611
6622
|
label: this.translate.instant('erpx.tributos.actions_icms_credito_presumido_label'),
|
|
6612
6623
|
disabled: this.menuItemIcmsCreditoPresumido,
|
|
6624
|
+
visible: this.podeMostrarImpostos(),
|
|
6613
6625
|
command: function () {
|
|
6614
6626
|
(_this.montaIcmsCreditoPresumido().forEach(function (value) {
|
|
6615
6627
|
_this.novoImpostoManual(value);
|
|
@@ -6620,6 +6632,10 @@
|
|
|
6620
6632
|
});
|
|
6621
6633
|
return menu;
|
|
6622
6634
|
};
|
|
6635
|
+
ErpTributosComponent.prototype.podeMostrarImpostos = function () {
|
|
6636
|
+
return this.documento !== exports.EnumTipoDocumento.NF_ENTRADA_CREDITO &&
|
|
6637
|
+
this.documento !== exports.EnumTipoDocumento.NF_SAIDA_DEBITO;
|
|
6638
|
+
};
|
|
6623
6639
|
ErpTributosComponent.prototype.podeAdicionarImpostoManual = function () {
|
|
6624
6640
|
return (this.featureReformaTributaria &&
|
|
6625
6641
|
this.documento !== exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR &&
|
|
@@ -6654,6 +6670,8 @@
|
|
|
6654
6670
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
6655
6671
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
6656
6672
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
6673
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
6674
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
6657
6675
|
item.unshift(__assign({ name: exports.EnumTipoTributo.CIDE_TECNOLOGIA, label: 'erpx.tributos.enum_tipo_tributo_cide_tecnologia' }, this.montaCampos([
|
|
6658
6676
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
6659
6677
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
@@ -6686,6 +6704,8 @@
|
|
|
6686
6704
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
6687
6705
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
6688
6706
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
6707
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
6708
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
6689
6709
|
item.unshift(__assign({ name: exports.EnumTipoTributo.ICMS, label: 'erpx.tributos.enum_tipo_tributo_icms' }, this.montaCampos([
|
|
6690
6710
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
6691
6711
|
{
|
|
@@ -7236,6 +7256,8 @@
|
|
|
7236
7256
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
7237
7257
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
7238
7258
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
7259
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
7260
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
7239
7261
|
item.unshift(__assign({ name: exports.EnumTipoTributo.PIS_RETIDO, label: 'erpx.tributos.enum_tipo_tributo_pis_retido' }, this.montaCampos([
|
|
7240
7262
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
7241
7263
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
@@ -7511,6 +7533,8 @@
|
|
|
7511
7533
|
case exports.EnumTipoDocumento.NF_SAIDA_COMPLEMENTAR:
|
|
7512
7534
|
case exports.EnumTipoDocumento.NF_SAIDA_AJUSTE:
|
|
7513
7535
|
case exports.EnumTipoDocumento.PEDIDO_VENDA:
|
|
7536
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
7537
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
7514
7538
|
item.unshift(__assign({ name: exports.EnumTipoTributo.ISS, label: 'erpx.tributos.enum_tipo_tributo_iss' }, this.montaCampos([
|
|
7515
7539
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
7516
7540
|
{
|
|
@@ -7602,7 +7626,7 @@
|
|
|
7602
7626
|
},
|
|
7603
7627
|
{ campo: exports.EnumCampoTributo.Valor }
|
|
7604
7628
|
];
|
|
7605
|
-
if (this.
|
|
7629
|
+
if (this.isDocumentoReformaTributaria()) {
|
|
7606
7630
|
campos.push({ campo: exports.EnumCampoTributo.SituacaoTributaria }, {
|
|
7607
7631
|
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
7608
7632
|
}, {
|
|
@@ -7615,7 +7639,7 @@
|
|
|
7615
7639
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
7616
7640
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
7617
7641
|
];
|
|
7618
|
-
if (this.
|
|
7642
|
+
if (this.isDocumentoReformaTributaria()) {
|
|
7619
7643
|
campos_CBS_CREDITO_PRESUMIDO.push({
|
|
7620
7644
|
campo: exports.EnumCampoTributo.ClassificacaoTributariaCreditoPresumido
|
|
7621
7645
|
});
|
|
@@ -7625,7 +7649,7 @@
|
|
|
7625
7649
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
7626
7650
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
7627
7651
|
];
|
|
7628
|
-
if (this.
|
|
7652
|
+
if (this.isDocumentoReformaTributaria()) {
|
|
7629
7653
|
campos_CBS_TRIBUTACAO_REGULAR.push({ campo: exports.EnumCampoTributo.SituacaoTributaria }, {
|
|
7630
7654
|
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
7631
7655
|
});
|
|
@@ -7646,6 +7670,12 @@
|
|
|
7646
7670
|
});
|
|
7647
7671
|
return item;
|
|
7648
7672
|
};
|
|
7673
|
+
ErpTributosComponent.prototype.isDocumentoReformaTributaria = function () {
|
|
7674
|
+
return [exports.EnumTipoDocumento.NF_ENTRADA,
|
|
7675
|
+
exports.EnumTipoDocumento.NF_SAIDA,
|
|
7676
|
+
exports.EnumTipoDocumento.NF_ENTRADA_CREDITO,
|
|
7677
|
+
exports.EnumTipoDocumento.NF_SAIDA_DEBITO].includes(this.documento);
|
|
7678
|
+
};
|
|
7649
7679
|
ErpTributosComponent.prototype.montaIBSEstadual = function () {
|
|
7650
7680
|
if (this.menuItemIBSEstadual)
|
|
7651
7681
|
return;
|
|
@@ -7870,6 +7900,8 @@
|
|
|
7870
7900
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
7871
7901
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
7872
7902
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
7903
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
7904
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
7873
7905
|
item.unshift(__assign({ name: exports.EnumTipoTributo.PIS_RECUPERAR, label: 'erpx.tributos.enum_tipo_tributo_pis_recuperar' }, this.montaCampos([
|
|
7874
7906
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
7875
7907
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
@@ -7966,6 +7998,8 @@
|
|
|
7966
7998
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
7967
7999
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
7968
8000
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
8001
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
8002
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
7969
8003
|
item.unshift(__assign({ name: exports.EnumTipoTributo.COFINS_RECUPERAR, label: 'erpx.tributos.enum_tipo_tributo_cofins_recuperar' }, this.montaCampos([
|
|
7970
8004
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
7971
8005
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
@@ -8062,6 +8096,8 @@
|
|
|
8062
8096
|
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
8063
8097
|
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
8064
8098
|
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
8099
|
+
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
8100
|
+
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
8065
8101
|
item.unshift(__assign({ name: exports.EnumTipoTributo.IPI, label: 'erpx.tributos.enum_tipo_tributo_ipi' }, this.montaCampos([
|
|
8066
8102
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
8067
8103
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
@@ -8917,7 +8953,7 @@
|
|
|
8917
8953
|
}));
|
|
8918
8954
|
}
|
|
8919
8955
|
else if (it.campo == exports.EnumCampoTributo.SituacaoTributaria) {
|
|
8920
|
-
formGroup = __assign(__assign({}, formGroup), { situacaoTributaria: [{ value:
|
|
8956
|
+
formGroup = __assign(__assign({}, formGroup), { situacaoTributaria: [{ value: null, disabled: false }, forms.Validators.compose([])] });
|
|
8921
8957
|
var searchGridFields = void 0;
|
|
8922
8958
|
if (_this.documento === exports.EnumTipoDocumento.NF_SAIDA_CONTROLADORIA) {
|
|
8923
8959
|
searchGridFields = [
|
|
@@ -8990,8 +9026,7 @@
|
|
|
8990
9026
|
{
|
|
8991
9027
|
field: 'tipOpe',
|
|
8992
9028
|
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
8993
|
-
values: _this.
|
|
8994
|
-
_this.documento === exports.EnumTipoDocumento.NF_SAIDA_CONTROLADORIA
|
|
9029
|
+
values: _this.isOutboundInvoiceDocument()
|
|
8995
9030
|
? [exports.EnumTipOpe.VAMBOS, exports.EnumTipOpe.VSAIDA]
|
|
8996
9031
|
: [exports.EnumTipOpe.VAMBOS, exports.EnumTipOpe.VENTRADA]
|
|
8997
9032
|
},
|
|
@@ -9893,6 +9928,12 @@
|
|
|
9893
9928
|
this.documento === exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR ||
|
|
9894
9929
|
this.documento === exports.EnumTipoDocumento.NF_ENTRADA_CONTROLADORIA);
|
|
9895
9930
|
};
|
|
9931
|
+
ErpTributosComponent.prototype.isOutboundInvoiceDocument = function () {
|
|
9932
|
+
return (this.documento === exports.EnumTipoDocumento.NF_SAIDA ||
|
|
9933
|
+
this.documento === exports.EnumTipoDocumento.NF_SAIDA_AJUSTE ||
|
|
9934
|
+
this.documento === exports.EnumTipoDocumento.NF_SAIDA_COMPLEMENTAR ||
|
|
9935
|
+
this.documento === exports.EnumTipoDocumento.NF_SAIDA_CONTROLADORIA);
|
|
9936
|
+
};
|
|
9896
9937
|
ErpTributosComponent.prototype.isFieldRequired = function (field, taxType) {
|
|
9897
9938
|
var _a, _b, _c;
|
|
9898
9939
|
var item = this.grupos
|