@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
|
@@ -3199,7 +3199,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3199
3199
|
if (!data.schedulingId) {
|
|
3200
3200
|
data.schedulingId = _this.agenda.id;
|
|
3201
3201
|
}
|
|
3202
|
-
_this.
|
|
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.
|
|
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;
|