@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.
@@ -3782,14 +3782,16 @@ var RegisterDocumentComponent = /** @class */ (function () {
3782
3782
  });
3783
3783
  };
3784
3784
  RegisterDocumentComponent.prototype.save = function () {
3785
- if (!this.planta.codigo) {
3786
- this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3787
- return;
3788
- }
3789
- var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
3790
- if (logistcUnitDocument !== this.planta.codigo) {
3791
- this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3792
- return;
3785
+ if (this.isWmsSeniorConnect()) {
3786
+ if (!this.planta.codigo) {
3787
+ this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3788
+ return;
3789
+ }
3790
+ var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
3791
+ if (logistcUnitDocument !== this.planta.codigo) {
3792
+ this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3793
+ return;
3794
+ }
3793
3795
  }
3794
3796
  this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
3795
3797
  this.formGroup.reset();
@@ -3978,13 +3980,15 @@ var InsertKeyComponent = /** @class */ (function () {
3978
3980
  return;
3979
3981
  }
3980
3982
  var document = content.contents[0];
3981
- if (!_this.planta.codigo) {
3982
- _this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3983
- return;
3984
- }
3985
- if (document.logistcUnitDocument !== _this.planta.codigo) {
3986
- _this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3987
- return;
3983
+ if (_this.isWmsSeniorConnect()) {
3984
+ if (!_this.planta.codigo) {
3985
+ _this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
3986
+ return;
3987
+ }
3988
+ if (document.logistcUnitDocument !== _this.planta.codigo) {
3989
+ _this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
3990
+ return;
3991
+ }
3988
3992
  }
3989
3993
  document.invoiceKey = _this.formGroup.get('key').value;
3990
3994
  document.invoiceCondition = InvoiceCondition.AUTHORIZED;