@senior-gestao-empresarial/erpx-components 4.2.1 → 4.3.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 +35 -10
- 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/rules/types/schemas/incoming-invoice.schema.d.ts +18 -18
- package/components/tributos/rules/types/schemas/outgoing-invoice.schema.d.ts +34 -34
- package/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.d.ts +5 -0
- package/esm2015/components/tributos/erp-tributos.component.js +30 -11
- package/esm2015/components/tributos/rules/types/schemas/incoming-invoice.schema.js +37 -19
- package/esm2015/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +67 -33
- package/esm2015/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/esm5/components/tributos/erp-tributos.component.js +30 -11
- package/esm5/components/tributos/rules/types/schemas/incoming-invoice.schema.js +37 -19
- package/esm5/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +67 -33
- package/esm5/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +35 -10
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +35 -10
- 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
|
@@ -529,6 +529,13 @@
|
|
|
529
529
|
EnumTipoCalculoImposto["MANUAL"] = "MANUAL";
|
|
530
530
|
})(EnumTipoCalculoImposto || (EnumTipoCalculoImposto = {}));
|
|
531
531
|
|
|
532
|
+
var EnumIndicativoPadrao;
|
|
533
|
+
(function (EnumIndicativoPadrao) {
|
|
534
|
+
EnumIndicativoPadrao["NAO_PERMITIDO"] = "NAO_PERMITIDO";
|
|
535
|
+
EnumIndicativoPadrao["EXIGE"] = "EXIGE";
|
|
536
|
+
EnumIndicativoPadrao["INDIFERENTE"] = "INDIFERENTE";
|
|
537
|
+
})(EnumIndicativoPadrao || (EnumIndicativoPadrao = {}));
|
|
538
|
+
|
|
532
539
|
var ErpTributosService = /** @class */ (function () {
|
|
533
540
|
function ErpTributosService(http, messageService) {
|
|
534
541
|
this.http = http;
|
|
@@ -26752,7 +26759,15 @@
|
|
|
26752
26759
|
(_this.indexAccordion = [0]));
|
|
26753
26760
|
_this.changeDetector.detectChanges();
|
|
26754
26761
|
}
|
|
26755
|
-
}
|
|
26762
|
+
});
|
|
26763
|
+
}
|
|
26764
|
+
if (this.context.document === 'Incoming Invoice' ||
|
|
26765
|
+
this.context.document === 'Outgoing Invoice' ||
|
|
26766
|
+
(this.context.document === 'Purchase Order' &&
|
|
26767
|
+
this.context.order.item.type === 'Service') ||
|
|
26768
|
+
(this.context.document === 'Sale Order' &&
|
|
26769
|
+
this.context.order.item.type === 'Service')) {
|
|
26770
|
+
menu.push({
|
|
26756
26771
|
id: 'retencoes',
|
|
26757
26772
|
label: this.translate.instant('erpx.tributos.actions_retencoes_label'),
|
|
26758
26773
|
disabled: this.menuItemRetencoes,
|
|
@@ -29477,7 +29492,7 @@
|
|
|
29477
29492
|
tributo === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO
|
|
29478
29493
|
? angularComponents.EnumLogicalOperator.Eq
|
|
29479
29494
|
: angularComponents.EnumLogicalOperator.Ne,
|
|
29480
|
-
values: [
|
|
29495
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29481
29496
|
},
|
|
29482
29497
|
{
|
|
29483
29498
|
field: 'indGAjusteCompet',
|
|
@@ -29485,7 +29500,7 @@
|
|
|
29485
29500
|
tributo === exports.EnumTipoTributo.IBS_AJUSTE
|
|
29486
29501
|
? angularComponents.EnumLogicalOperator.Eq
|
|
29487
29502
|
: angularComponents.EnumLogicalOperator.Ne,
|
|
29488
|
-
values: [
|
|
29503
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29489
29504
|
}
|
|
29490
29505
|
]);
|
|
29491
29506
|
formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.e027StrLookup.mountOptions({
|
|
@@ -29510,6 +29525,22 @@
|
|
|
29510
29525
|
{ value: undefined, disabled: false },
|
|
29511
29526
|
forms.Validators.compose([])
|
|
29512
29527
|
] });
|
|
29528
|
+
var defaultFilter = [
|
|
29529
|
+
{
|
|
29530
|
+
field: 'situacao',
|
|
29531
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
29532
|
+
values: ['ATIVO']
|
|
29533
|
+
}
|
|
29534
|
+
];
|
|
29535
|
+
if (_this.context.document === 'Outgoing Invoice' &&
|
|
29536
|
+
_this.context.invoice.type === 'Debit' &&
|
|
29537
|
+
(tributo === exports.EnumTipoTributo.CBS_ESTORNO_CREDITO ||
|
|
29538
|
+
tributo === exports.EnumTipoTributo.IBS_ESTORNO_CREDITO))
|
|
29539
|
+
defaultFilter.push({
|
|
29540
|
+
field: 'indGEstornoCred',
|
|
29541
|
+
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
29542
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29543
|
+
});
|
|
29513
29544
|
formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.classificacaoTributariaLookup.mountOptions({
|
|
29514
29545
|
multiple: false,
|
|
29515
29546
|
prefix: 'erpx_cpl_imp.impostos',
|
|
@@ -29517,13 +29548,7 @@
|
|
|
29517
29548
|
service: _this.servico,
|
|
29518
29549
|
entity: 'classificacaoTributaria',
|
|
29519
29550
|
formGroup: 'classificacaoTributaria',
|
|
29520
|
-
defaultFilter:
|
|
29521
|
-
{
|
|
29522
|
-
field: 'situacao',
|
|
29523
|
-
operator: angularComponents.EnumLogicalOperator.Eq,
|
|
29524
|
-
values: ['ATIVO']
|
|
29525
|
-
}
|
|
29526
|
-
],
|
|
29551
|
+
defaultFilter: defaultFilter,
|
|
29527
29552
|
queryFields: ['e027str.id'],
|
|
29528
29553
|
entityDependency: [
|
|
29529
29554
|
{
|