@senior-gestao-empresarial/erpx-components 3.35.0-develop-b37ce58c → 4.0.0-develop-a313cf68
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 +53 -50
- 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 +1 -1
- package/components/tributos/index.d.ts +6 -0
- package/esm2015/components/tributos/erp-tributos.component.js +54 -50
- package/esm2015/components/tributos/erp-tributos.types.js +1 -1
- package/esm2015/components/tributos/index.js +1 -1
- package/esm2015/components/tributos/tax-reform-utilities.js +2 -2
- package/esm5/components/tributos/erp-tributos.component.js +54 -51
- package/esm5/components/tributos/erp-tributos.types.js +1 -1
- package/esm5/components/tributos/index.js +1 -1
- package/esm5/components/tributos/tax-reform-utilities.js +2 -2
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +54 -50
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +53 -50
- 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
|
@@ -867,7 +867,7 @@
|
|
|
867
867
|
case exports.EnumGrupoTributo.CBS_IBS_ESTORNO_CREDITO:
|
|
868
868
|
return exports.EnumTipoTributo.CBS_ESTORNO_CREDITO;
|
|
869
869
|
default:
|
|
870
|
-
|
|
870
|
+
return null;
|
|
871
871
|
}
|
|
872
872
|
};
|
|
873
873
|
var getRegularTaxationTaxByGroupTax = function (groupTax) {
|
|
@@ -24310,6 +24310,10 @@
|
|
|
24310
24310
|
case exports.EnumTipoTributo.IS:
|
|
24311
24311
|
_this.montaIS();
|
|
24312
24312
|
break;
|
|
24313
|
+
case exports.EnumTipoTributo.CBS_ESTORNO_CREDITO:
|
|
24314
|
+
case exports.EnumTipoTributo.IBS_ESTORNO_CREDITO:
|
|
24315
|
+
_this.montaCBSIBSEstornoCredito();
|
|
24316
|
+
break;
|
|
24313
24317
|
case exports.EnumTipoTributo.PIS_RECUPERAR:
|
|
24314
24318
|
case exports.EnumTipoTributo.PIS_DEVOLVIDO:
|
|
24315
24319
|
case exports.EnumTipoTributo.PIS:
|
|
@@ -24875,7 +24879,7 @@
|
|
|
24875
24879
|
label: this.translate.instant('erpx.tributos.actions_cbs_ibs_estorno_credito_label'),
|
|
24876
24880
|
disabled: this.menuItemCBS_IBS_ESTORNO_CREDITO,
|
|
24877
24881
|
command: function () {
|
|
24878
|
-
(_this.
|
|
24882
|
+
(_this.montaCBSIBSEstornoCredito().forEach(function (value) {
|
|
24879
24883
|
_this.novoImpostoManual(value);
|
|
24880
24884
|
}),
|
|
24881
24885
|
(_this.indexAccordion = [0]));
|
|
@@ -24888,7 +24892,10 @@
|
|
|
24888
24892
|
context: _this.context
|
|
24889
24893
|
});
|
|
24890
24894
|
_this.changeDetector.detectChanges();
|
|
24891
|
-
}
|
|
24895
|
+
},
|
|
24896
|
+
visible: this.context.document === 'Outgoing Invoice' &&
|
|
24897
|
+
this.context.invoice.type === 'Debit' &&
|
|
24898
|
+
this.context.invoice.debitInvoiceType === 'Inventory Loss'
|
|
24892
24899
|
}, {
|
|
24893
24900
|
id: 'retencaoFunrural',
|
|
24894
24901
|
label: this.translate.instant('erpx.tributos.actions_retencao_funrural_label'),
|
|
@@ -26358,7 +26365,7 @@
|
|
|
26358
26365
|
});
|
|
26359
26366
|
return item;
|
|
26360
26367
|
};
|
|
26361
|
-
ErpTributosComponent.prototype.
|
|
26368
|
+
ErpTributosComponent.prototype.montaCBSIBSEstornoCredito = function () {
|
|
26362
26369
|
if (this.menuItemCBS_IBS_ESTORNO_CREDITO)
|
|
26363
26370
|
return;
|
|
26364
26371
|
this.menuItemCBS_IBS_ESTORNO_CREDITO = true;
|
|
@@ -27605,58 +27612,54 @@
|
|
|
27605
27612
|
}
|
|
27606
27613
|
];
|
|
27607
27614
|
}
|
|
27608
|
-
|
|
27609
|
-
|
|
27610
|
-
|
|
27611
|
-
|
|
27612
|
-
|
|
27613
|
-
|
|
27614
|
-
|
|
27615
|
-
|
|
27616
|
-
|
|
27617
|
-
|
|
27618
|
-
|
|
27619
|
-
|
|
27620
|
-
|
|
27621
|
-
|
|
27622
|
-
|
|
27623
|
-
|
|
27624
|
-
|
|
27625
|
-
|
|
27626
|
-
|
|
27627
|
-
|
|
27628
|
-
|
|
27629
|
-
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27639
|
-
|
|
27640
|
-
]
|
|
27641
|
-
},
|
|
27642
|
-
{
|
|
27643
|
-
field: 'situacao',
|
|
27644
|
-
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
27645
|
-
values: ['VATIVO']
|
|
27646
|
-
},
|
|
27615
|
+
var defaultFilter = [
|
|
27616
|
+
{
|
|
27617
|
+
field: 'excluido',
|
|
27618
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
27619
|
+
values: ['false']
|
|
27620
|
+
},
|
|
27621
|
+
{
|
|
27622
|
+
field: 'tipImp',
|
|
27623
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
27624
|
+
values: [mapEnumTipoTributoToEnumTipImpCst(tributo)]
|
|
27625
|
+
},
|
|
27626
|
+
{
|
|
27627
|
+
field: 'tipOpe',
|
|
27628
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
27629
|
+
values: _this.context.document === 'Outgoing Invoice' ||
|
|
27630
|
+
_this.context.document ===
|
|
27631
|
+
'Controllership Outgoing Invoice'
|
|
27632
|
+
? [exports.EnumTipOpe.VAMBOS, exports.EnumTipOpe.VSAIDA]
|
|
27633
|
+
: [exports.EnumTipOpe.VAMBOS, exports.EnumTipOpe.VENTRADA]
|
|
27634
|
+
},
|
|
27635
|
+
{
|
|
27636
|
+
field: 'situacao',
|
|
27637
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
27638
|
+
values: ['VATIVO']
|
|
27639
|
+
}
|
|
27640
|
+
];
|
|
27641
|
+
if (tributo === exports.EnumTipoTributo.CBS ||
|
|
27642
|
+
tributo === exports.EnumTipoTributo.IBS_ESTADUAL ||
|
|
27643
|
+
tributo === exports.EnumTipoTributo.IBS_MUNICIPAL ||
|
|
27644
|
+
tributo === exports.EnumTipoTributo.CBS_ESTORNO_CREDITO ||
|
|
27645
|
+
tributo === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO)
|
|
27646
|
+
defaultFilter = __spread(defaultFilter, [
|
|
27647
27647
|
{
|
|
27648
27648
|
field: 'classificacaoTributaria.indGEstornoCred',
|
|
27649
|
-
operator:
|
|
27650
|
-
|
|
27651
|
-
|
|
27652
|
-
_this.context.invoice
|
|
27653
|
-
.debitInvoiceType ===
|
|
27654
|
-
'Inventory Loss'
|
|
27649
|
+
operator: tributo ===
|
|
27650
|
+
exports.EnumTipoTributo.CBS_ESTORNO_CREDITO ||
|
|
27651
|
+
tributo === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO
|
|
27655
27652
|
? angularComponents.EnumLogicalOperator.Eq
|
|
27656
27653
|
: angularComponents.EnumLogicalOperator.Ne,
|
|
27657
27654
|
values: ['EXIGE']
|
|
27658
27655
|
}
|
|
27659
|
-
]
|
|
27656
|
+
]);
|
|
27657
|
+
formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.e027StrLookup.mountOptions({
|
|
27658
|
+
multiple: false,
|
|
27659
|
+
domain: _this.dominio,
|
|
27660
|
+
service: _this.servico,
|
|
27661
|
+
searchGridFields: searchGridFields,
|
|
27662
|
+
defaultFilter: defaultFilter
|
|
27660
27663
|
})), { onBlur: function () {
|
|
27661
27664
|
if (!isTaxFromTaxReform(tributo)) {
|
|
27662
27665
|
_this.setValidators(tributo);
|