@seniorsistemas/yms-integration 1.38.0-591f5730-03b4-4f60-9cea-dcdc8ef07f02 → 1.38.0-84525130-8955-4de4-9dbd-cbae08fb1cda

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.
@@ -3841,14 +3841,16 @@
3841
3841
  });
3842
3842
  };
3843
3843
  RegisterDocumentComponent.prototype.save = function () {
3844
- if (!this.planta.codigo) {
3845
- this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3846
- return;
3847
- }
3848
- var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
3849
- if (logistcUnitDocument !== this.planta.codigo) {
3850
- this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3851
- return;
3844
+ if (this.isWmsSeniorConnect()) {
3845
+ if (!this.planta.codigo) {
3846
+ this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3847
+ return;
3848
+ }
3849
+ var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
3850
+ if (logistcUnitDocument !== this.planta.codigo) {
3851
+ this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3852
+ return;
3853
+ }
3852
3854
  }
3853
3855
  this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
3854
3856
  this.formGroup.reset();
@@ -4037,13 +4039,15 @@
4037
4039
  return;
4038
4040
  }
4039
4041
  var document = content.contents[0];
4040
- if (!_this.planta.codigo) {
4041
- _this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
4042
- return;
4043
- }
4044
- if (document.logistcUnitDocument !== _this.planta.codigo) {
4045
- _this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
4046
- return;
4042
+ if (_this.isWmsSeniorConnect()) {
4043
+ if (!_this.planta.codigo) {
4044
+ _this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
4045
+ return;
4046
+ }
4047
+ if (document.logistcUnitDocument !== _this.planta.codigo) {
4048
+ _this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
4049
+ return;
4050
+ }
4047
4051
  }
4048
4052
  document.invoiceKey = _this.formGroup.get('key').value;
4049
4053
  document.invoiceCondition = InvoiceCondition.AUTHORIZED;