@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.
@@ -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
- throw new Error("Unsupported value for EnumGrupoTributo: " + groupTax);
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.montaCBS_IBS_ESTORNO_CREDITO().forEach(function (value) {
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.montaCBS_IBS_ESTORNO_CREDITO = function () {
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
- formField.push(new angularComponents$1.FormField(__assign(__assign({}, _this.e027StrLookup.mountOptions({
27609
- multiple: false,
27610
- domain: _this.dominio,
27611
- service: _this.servico,
27612
- searchGridFields: searchGridFields,
27613
- defaultFilter: [
27614
- {
27615
- field: 'excluido',
27616
- operator: angularComponents.EnumLogicalOperator.Eq,
27617
- values: ['false']
27618
- },
27619
- {
27620
- field: 'tipImp',
27621
- operator: angularComponents.EnumLogicalOperator.Eq,
27622
- values: [
27623
- mapEnumTipoTributoToEnumTipImpCst(tributo)
27624
- ]
27625
- },
27626
- {
27627
- field: 'tipOpe',
27628
- operator: angularComponents.EnumLogicalOperator.Eq,
27629
- values: _this.context.document ===
27630
- 'Outgoing Invoice' ||
27631
- _this.context.document ===
27632
- 'Controllership Outgoing Invoice'
27633
- ? [
27634
- exports.EnumTipOpe.VAMBOS,
27635
- exports.EnumTipOpe.VSAIDA
27636
- ]
27637
- : [
27638
- exports.EnumTipOpe.VAMBOS,
27639
- exports.EnumTipOpe.VENTRADA
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: _this.context.document ===
27650
- 'Outgoing Invoice' &&
27651
- _this.context.invoice.type === 'Debit' &&
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);