@colijnit/transaction 253.1.9 → 253.1.11
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/colijnit-transaction.umd.js +54 -12
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/add-product/add-product.component.js +17 -6
- package/esm2015/lib/component/core/base/transaction-payment-base.component.js +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-logistics/transaction-purchase-order-filter-content-logistics.component.js +13 -15
- package/esm2015/lib/service/article-connector.service.js +18 -1
- package/esm2015/lib/service/transaction.service.js +4 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +50 -21
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-logistics/transaction-purchase-order-filter-content-logistics.component.d.ts +6 -0
- package/lib/service/article-connector.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "253.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "253.1.11";
|
|
37
|
+
this.publishDate = "13-8-2024 17:30:09";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -2370,6 +2370,26 @@
|
|
|
2370
2370
|
});
|
|
2371
2371
|
});
|
|
2372
2372
|
};
|
|
2373
|
+
ArticleConnectorService.prototype.getArticleListWithBarcodeArticleNrEanCode = function (search) {
|
|
2374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2375
|
+
var _this = this;
|
|
2376
|
+
return __generator(this, function (_a) {
|
|
2377
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2378
|
+
return _this.connector.getArticleListWithBarcodeArticleNrEanCode(search).then(function (response) {
|
|
2379
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2380
|
+
// return this._boFactory.makeWithRawBackendData(ArticleExtended, response.resultObject) as ArticleLight;
|
|
2381
|
+
var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(articleLight_bo.ArticleLight, response.resultObject);
|
|
2382
|
+
resolve(collection);
|
|
2383
|
+
}
|
|
2384
|
+
else {
|
|
2385
|
+
_this._handleExceptionFromResponse(response);
|
|
2386
|
+
reject(null);
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
})];
|
|
2390
|
+
});
|
|
2391
|
+
});
|
|
2392
|
+
};
|
|
2373
2393
|
ArticleConnectorService.prototype.getMainArticles = function () {
|
|
2374
2394
|
return __awaiter(this, void 0, void 0, function () {
|
|
2375
2395
|
var _this = this;
|
|
@@ -14737,6 +14757,9 @@
|
|
|
14737
14757
|
TransactionService.prototype.getArticles = function (request) {
|
|
14738
14758
|
return this.articleConnector.searchArticles(request);
|
|
14739
14759
|
};
|
|
14760
|
+
TransactionService.prototype.getArticleListWithBarcodeArticleNrEanCode = function (search) {
|
|
14761
|
+
return this.articleConnector.getArticleListWithBarcodeArticleNrEanCode(search);
|
|
14762
|
+
};
|
|
14740
14763
|
TransactionService.prototype.getMainArticles = function () {
|
|
14741
14764
|
return this.articleConnector.getMainArticles();
|
|
14742
14765
|
};
|
|
@@ -43756,6 +43779,7 @@
|
|
|
43756
43779
|
_this.deliveryMethodFields = { text: "description", value: "code" };
|
|
43757
43780
|
_this.warehouseFields = { text: "description", value: "warehouseNo" };
|
|
43758
43781
|
_this.sourceWarehouseFields = { text: "description", value: "warehouseNo" };
|
|
43782
|
+
_this.partDeliveryFields = { text: "description", value: "code" };
|
|
43759
43783
|
return _this;
|
|
43760
43784
|
}
|
|
43761
43785
|
TransactionPurchaseOrderFilterContentLogisticsComponent.prototype.showClass = function () {
|
|
@@ -43768,6 +43792,7 @@
|
|
|
43768
43792
|
this._setDeliveryMethods();
|
|
43769
43793
|
this._setWarehouses();
|
|
43770
43794
|
this._setSourceWarehouses();
|
|
43795
|
+
this._setPartDelivery();
|
|
43771
43796
|
};
|
|
43772
43797
|
//Delivery Methods
|
|
43773
43798
|
TransactionPurchaseOrderFilterContentLogisticsComponent.prototype._setDeliveryMethods = function () {
|
|
@@ -43790,12 +43815,18 @@
|
|
|
43790
43815
|
_this.sourceWarehouses = new corecomponents_v12.FilterViewmodel(warehouses, _this.sourceWarehouseFields).filterItems;
|
|
43791
43816
|
});
|
|
43792
43817
|
};
|
|
43818
|
+
TransactionPurchaseOrderFilterContentLogisticsComponent.prototype._setPartDelivery = function () {
|
|
43819
|
+
var _this = this;
|
|
43820
|
+
this.transactionService.getYesNo("NL").then(function (partDelivery) {
|
|
43821
|
+
_this.partDelivery = new corecomponents_v12.FilterViewmodel(partDelivery, _this.partDeliveryFields).filterItems;
|
|
43822
|
+
});
|
|
43823
|
+
};
|
|
43793
43824
|
return TransactionPurchaseOrderFilterContentLogisticsComponent;
|
|
43794
43825
|
}(TransactionFilterContentBaseComponent));
|
|
43795
43826
|
TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
|
|
43796
43827
|
{ type: i0.Component, args: [{
|
|
43797
43828
|
selector: 'co-transaction-purchase-order-filter-content-logistics',
|
|
43798
|
-
template: "\n <div class=\"transaction-filter-content-logistics-wrapper transaction-filter-content-wrapper\">\n\n <!--Bevestigde leverdatum-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'CONFIRMED_DELIVERY_DATE'\"\n [(model)]=\"searchService.searchRequest.confirmedDeliveryDateRange\"\n [mode]=\"modes.DateRangeField\">\n </co-transaction-filter-item>\n </div>\n\n <!--Serienummer -->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'SERIAL_NUMBER'\"\n [(model)]=\"searchService.searchRequest.serialNumber\"\n [mode]=\"modes.TextField\"\n >\n </co-transaction-filter-item>\n </div>\n\n <!--Batchnummer -->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'BATCH_NUMBER'\"\n [(model)]=\"searchService.searchRequest.batchNumber\"\n [mode]=\"modes.TextField\"\n >\n </co-transaction-filter-item>\n </div>\n\n <!--
|
|
43829
|
+
template: "\n <div class=\"transaction-filter-content-logistics-wrapper transaction-filter-content-wrapper\">\n\n <!--Bevestigde leverdatum-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'CONFIRMED_DELIVERY_DATE'\"\n [(model)]=\"searchService.searchRequest.confirmedDeliveryDateRange\"\n [mode]=\"modes.DateRangeField\">\n </co-transaction-filter-item>\n </div>\n\n <!--Serienummer -->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'SERIAL_NUMBER'\"\n [(model)]=\"searchService.searchRequest.serialNumber\"\n [mode]=\"modes.TextField\"\n >\n </co-transaction-filter-item>\n </div>\n\n <!--Batchnummer -->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'BATCH_NUMBER'\"\n [(model)]=\"searchService.searchRequest.batchNumber\"\n [mode]=\"modes.TextField\"\n >\n </co-transaction-filter-item>\n </div>\n\n <!--Gefactureerd-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'INVOICED'\"\n [(model)]=\"searchService.searchRequest.quantityInvoiced\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Binnengemeld / Geleverd -->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'RECEIVED_DELIVERED'\"\n [(model)]=\"searchService.searchRequest.quantityReceived\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Bevestigd-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'CONFIRMED'\"\n [(model)]=\"searchService.searchRequest.quantityConfirmed\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Aankomstdatum-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'ARRIVAL_DATE'\"\n [(model)]=\"searchService.searchRequest.arrivalDateRange\"\n [mode]=\"modes.DateRangeField\">\n </co-transaction-filter-item>\n </div>\n\n <!--Toegewezen-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'ALLOCATED'\"\n [(model)]=\"searchService.searchRequest.quantityAllocated\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Te picken-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'TO_BE_PICKED'\"\n [(model)]=\"searchService.searchRequest.quantityToBePicked\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Gepicked-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'PICKED'\"\n [(model)]=\"searchService.searchRequest.quantityPicked\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\n </div>\n\n <!--Deellevering-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'PART_DELIVERY'\"\n [collection]=\"partDelivery\"\n [(model)]=\"searchService.searchRequest.partialDelivery\"\n [mode]=\"modes.Filterlist\">\n </co-transaction-filter-item>\n </div>\n\n <!--Magazijn-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'WAREHOUSE'\"\n [collection]=\"warehouses\"\n [(model)]=\"searchService.searchRequest.warehouse\"\n [mode]=\"modes.Filterlist\">\n </co-transaction-filter-item>\n </div>\n\n <!--Bron magazijn-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'SOURCE_WAREHOUSE'\"\n [(model)]=\"searchService.searchRequest.sourceWarehouse\"\n [mode]=\"modes.Filterlist\"\n [collection]=\"sourceWarehouses\"\n (modelChange)=\"modelChange($event)\">\n </co-transaction-filter-item>\n </div>\n\n <!--Levermethode-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'DELIVERY_METHOD'\"\n [collection]=\"deliveryMethods\"\n [(model)]=\"searchService.searchRequest.rangeDeliveryMethod\"\n [mode]=\"modes.Filterlist\"\n >\n </co-transaction-filter-item>\n </div>\n\n <!--Leverdatum definitief-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-item [placeholder]=\"'DELIVERY_DATE_FINAL'\"\n [(model)]=\"searchService.searchRequest.deliveryDateDefinitive\"\n [mode]=\"modes.CheckboxToText\">\n </co-transaction-filter-item>\n </div>\n\n <!--Uitvoerbaar: todo: vraag staat uit wat hiermee bedoeld wordt. Daarna hier aanvullen -->\n </div>\n "
|
|
43799
43830
|
},] }
|
|
43800
43831
|
];
|
|
43801
43832
|
TransactionPurchaseOrderFilterContentLogisticsComponent.propDecorators = {
|
|
@@ -47188,7 +47219,7 @@
|
|
|
47188
47219
|
};
|
|
47189
47220
|
AddProductComponent.prototype.handleSearch = function (text) {
|
|
47190
47221
|
return __awaiter(this, void 0, void 0, function () {
|
|
47191
|
-
var foundArticles, article;
|
|
47222
|
+
var fullMatchSearch, article, foundArticles, article;
|
|
47192
47223
|
return __generator(this, function (_a) {
|
|
47193
47224
|
switch (_a.label) {
|
|
47194
47225
|
case 0:
|
|
@@ -47200,21 +47231,32 @@
|
|
|
47200
47231
|
this._prepareCatalogRequest();
|
|
47201
47232
|
this.searchText = undefined;
|
|
47202
47233
|
this._changeDetector.detectChanges();
|
|
47203
|
-
return [4 /*yield*/, this.transactionService.
|
|
47234
|
+
return [4 /*yield*/, this.transactionService.getArticleListWithBarcodeArticleNrEanCode(text)];
|
|
47204
47235
|
case 1:
|
|
47205
|
-
|
|
47206
|
-
if (!(
|
|
47207
|
-
return [4 /*yield*/, this.transactionService.getArticleExtended(
|
|
47236
|
+
fullMatchSearch = _a.sent();
|
|
47237
|
+
if (!(fullMatchSearch && fullMatchSearch.length === 1)) return [3 /*break*/, 4];
|
|
47238
|
+
return [4 /*yield*/, this.transactionService.getArticleExtended(fullMatchSearch[0].articleNr)];
|
|
47208
47239
|
case 2:
|
|
47209
47240
|
article = _a.sent();
|
|
47210
47241
|
return [4 /*yield*/, this.handleAddArticle(article)];
|
|
47211
47242
|
case 3:
|
|
47212
47243
|
_a.sent();
|
|
47213
|
-
return [3 /*break*/,
|
|
47214
|
-
case 4:
|
|
47244
|
+
return [3 /*break*/, 9];
|
|
47245
|
+
case 4: return [4 /*yield*/, this.transactionService.getArticles(this.catalogParameters)];
|
|
47246
|
+
case 5:
|
|
47247
|
+
foundArticles = _a.sent();
|
|
47248
|
+
if (!(foundArticles && foundArticles.length === 1)) return [3 /*break*/, 8];
|
|
47249
|
+
return [4 /*yield*/, this.transactionService.getArticleExtended(foundArticles[0].articleNumber)];
|
|
47250
|
+
case 6:
|
|
47251
|
+
article = _a.sent();
|
|
47252
|
+
return [4 /*yield*/, this.handleAddArticle(article)];
|
|
47253
|
+
case 7:
|
|
47254
|
+
_a.sent();
|
|
47255
|
+
return [3 /*break*/, 9];
|
|
47256
|
+
case 8:
|
|
47215
47257
|
this.showCatalogDialog();
|
|
47216
|
-
_a.label =
|
|
47217
|
-
case
|
|
47258
|
+
_a.label = 9;
|
|
47259
|
+
case 9: return [2 /*return*/];
|
|
47218
47260
|
}
|
|
47219
47261
|
});
|
|
47220
47262
|
});
|