@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.
- package/bundles/seniorsistemas-yms-integration.umd.js +3 -2
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +4 -3
- package/esm5/src/wms/components/document-grid/document-grid.component.js +4 -3
- package/fesm2015/seniorsistemas-yms-integration.js +3 -2
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +3 -2
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +1 -1
|
@@ -3258,7 +3258,7 @@
|
|
|
3258
3258
|
if (!data.schedulingId) {
|
|
3259
3259
|
data.schedulingId = _this.agenda.id;
|
|
3260
3260
|
}
|
|
3261
|
-
_this.
|
|
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.
|
|
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;
|