@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.
@@ -3199,7 +3199,7 @@ var DocumentGridComponent = /** @class */ (function () {
3199
3199
  if (!data.schedulingId) {
3200
3200
  data.schedulingId = _this.agenda.id;
3201
3201
  }
3202
- _this.updateKey(data);
3202
+ data.key = _this.updateKeyByWms(data);
3203
3203
  _this.documentService.insert(data).subscribe(function () {
3204
3204
  _this.message("success", "saved_message_title", "saved_message_content");
3205
3205
  });
@@ -3208,13 +3208,14 @@ var DocumentGridComponent = /** @class */ (function () {
3208
3208
  });
3209
3209
  }
3210
3210
  };
3211
- DocumentGridComponent.prototype.updateKey = function (data) {
3211
+ DocumentGridComponent.prototype.updateKeyByWms = function (data) {
3212
3212
  if (data.key === undefined) {
3213
3213
  data.key = data.invoiceKey;
3214
3214
  }
3215
3215
  if (this.wmsSystem === WmsSystem.WIS) {
3216
3216
  data.key = data.invoiceNumber + ":" + data.invoiceSerialNumber + ":" + data.partnerDocument;
3217
3217
  }
3218
+ return data.key;
3218
3219
  };
3219
3220
  DocumentGridComponent.prototype.onDelete = function () {
3220
3221
  var _this = this;