@senior-gestao-empresarial/erpx-components 1.15.13 → 1.15.14

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.
@@ -3958,6 +3958,14 @@
3958
3958
  }
3959
3959
  }
3960
3960
  });
3961
+ this.formGroupBatchOrSeries.controls.serie.valueChanges.subscribe(function (value) {
3962
+ if (value) {
3963
+ if (_this.validateInvalidChars && /\t|\r|\n/g.exec(value)) {
3964
+ _this.formGroupBatchOrSeries.controls.serie.setErrors({ 'existsInvalidChar': true });
3965
+ return;
3966
+ }
3967
+ }
3968
+ });
3961
3969
  };
3962
3970
  ErpLoteSerieComponent.prototype.validaDados = function () {
3963
3971
  var _this = this;
@@ -4675,7 +4683,12 @@
4675
4683
  if (this.validateInvalidChars) {
4676
4684
  var newValue = value.trim();
4677
4685
  if (value !== newValue) {
4678
- this.formGroupBatchOrSeries.controls.lote.patchValue(newValue);
4686
+ if (this.loteSerieParams.tipoControleProduto == exports.EnumTipoControleProduto.Serie) {
4687
+ this.formGroupBatchOrSeries.controls.serie.patchValue(newValue);
4688
+ }
4689
+ else {
4690
+ this.formGroupBatchOrSeries.controls.lote.patchValue(newValue);
4691
+ }
4679
4692
  }
4680
4693
  }
4681
4694
  this.getDatas(value.toUpperCase());