@seniorsistemas/yms-integration 1.27.1 → 1.27.2

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.
@@ -3258,7 +3258,7 @@
3258
3258
  if (!data.schedulingId) {
3259
3259
  data.schedulingId = _this.agenda.id;
3260
3260
  }
3261
- _this.updateKey(data);
3261
+ data.key = _this.updateKeyByWms(data);
3262
3262
  _this.documentService.insert(data).subscribe(function () {
3263
3263
  _this.message("success", "saved_message_title", "saved_message_content");
3264
3264
  });
@@ -3267,13 +3267,14 @@
3267
3267
  });
3268
3268
  }
3269
3269
  };
3270
- DocumentGridComponent.prototype.updateKey = function (data) {
3270
+ DocumentGridComponent.prototype.updateKeyByWms = function (data) {
3271
3271
  if (data.key === undefined) {
3272
3272
  data.key = data.invoiceKey;
3273
3273
  }
3274
3274
  if (this.wmsSystem === WmsSystem.WIS) {
3275
3275
  data.key = data.invoiceNumber + ":" + data.invoiceSerialNumber + ":" + data.partnerDocument;
3276
3276
  }
3277
+ return data.key;
3277
3278
  };
3278
3279
  DocumentGridComponent.prototype.onDelete = function () {
3279
3280
  var _this = this;