@senior-gestao-empresarial/erpx-components 3.6.11 → 3.7.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.
@@ -3693,15 +3693,20 @@
3693
3693
  domain: _this.dominio,
3694
3694
  service: _this.servico,
3695
3695
  searchGridFields: searchGridFields,
3696
- formGroup: 'situacaoTributaria',
3697
3696
  defaultFilter: [{ field: 'excluido', operator: angularComponents.EnumLogicalOperator.Eq, values: ['false'] },
3698
3697
  { field: 'tipImp', operator: angularComponents.EnumLogicalOperator.Eq, values: [_this.filterByImposto(tributo)] },
3699
- { field: 'tipOpe', operator: angularComponents.EnumLogicalOperator.Eq, values: [movimento, 'VAMBOS'] },
3698
+ {
3699
+ field: 'tipOpe', operator: angularComponents.EnumLogicalOperator.Eq,
3700
+ values: [_this.documento === exports.EnumTipoDocumento.NF_SAIDA ?
3701
+ exports.EnumTipOpe.VSAIDA : _this.documento === exports.EnumTipoDocumento.NF_ENTRADA ? exports.EnumTipOpe.VENTRADA : exports.EnumTipOpe.VAMBOS,
3702
+ exports.EnumTipOpe.VAMBOS
3703
+ ]
3704
+ },
3700
3705
  { field: 'situacao', operator: angularComponents.EnumLogicalOperator.Eq, values: ['VATIVO'] }]
3701
3706
  })), { onBlur: function () {
3702
3707
  _this.backValue();
3703
3708
  _this.setValidators(tributo);
3704
- }, id: tributo + 'SituacaoTributaria', label: _this.translate.instant('erpx.tributos.fields_situacao_tributaria_label'), size: { sm: 12, md: 6, lg: 6, xl: 3 }, required: function () { return _this.setVariableRequired(tributo); } })));
3709
+ }, id: tributo + 'SituacaoTributaria', name: 'situacaoTributaria', label: _this.translate.instant('erpx.tributos.fields_situacao_tributaria_label'), size: { sm: 12, md: 6, lg: 6, xl: 3 }, required: function () { return _this.setVariableRequired(tributo); } })));
3705
3710
  }
3706
3711
  else if (it.campo == exports.EnumCampoTributo.ClassificacaoTributaria) {
3707
3712
  formGroup = __assign(__assign({}, formGroup), { classificacaoTributaria: [{ value: undefined, disabled: false }, forms.Validators.compose([])] });
@@ -3710,7 +3715,16 @@
3710
3715
  prefix: "erpx_cpl_imp.impostos",
3711
3716
  entity: 'classificacaoTributaria',
3712
3717
  formGroup: 'classificacaoTributaria',
3713
- defaultFilter: [{ field: 'situacao', operator: angularComponents.EnumLogicalOperator.Eq, values: ['ATIVO'] }]
3718
+ defaultFilter: [
3719
+ { field: 'situacao', operator: angularComponents.EnumLogicalOperator.Eq, values: ['ATIVO'] }
3720
+ ],
3721
+ entityDependency: [
3722
+ {
3723
+ name: 'e027str',
3724
+ field: 'id',
3725
+ value: function () { return retorno.formGroup.get('situacaoTributaria').value; }
3726
+ }
3727
+ ]
3714
3728
  })), { onBlur: function () {
3715
3729
  _this.backValue();
3716
3730
  _this.setValidators(tributo);