@colijnit/transaction 254.1.26 → 254.1.28

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.
@@ -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 = "254.1.26";
37
- this.publishDate = "22-7-2024 09:15:36";
36
+ this.symVer = "254.1.28";
37
+ this.publishDate = "13-8-2024 17:13:15";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -2327,6 +2327,26 @@
2327
2327
  });
2328
2328
  });
2329
2329
  };
2330
+ ArticleConnectorService.prototype.getArticleListWithBarcodeArticleNrEanCode = function (search) {
2331
+ return __awaiter(this, void 0, void 0, function () {
2332
+ var _this = this;
2333
+ return __generator(this, function (_a) {
2334
+ return [2 /*return*/, new Promise(function (resolve, reject) {
2335
+ return _this.connector.getArticleListWithBarcodeArticleNrEanCode(search).then(function (response) {
2336
+ if (response && response.validationResult && response.validationResult.success) {
2337
+ // return this._boFactory.makeWithRawBackendData(ArticleExtended, response.resultObject) as ArticleLight;
2338
+ var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(articleLight_bo.ArticleLight, response.resultObject);
2339
+ resolve(collection);
2340
+ }
2341
+ else {
2342
+ _this._handleExceptionFromResponse(response);
2343
+ reject(null);
2344
+ }
2345
+ });
2346
+ })];
2347
+ });
2348
+ });
2349
+ };
2330
2350
  ArticleConnectorService.prototype.getMainArticles = function () {
2331
2351
  return __awaiter(this, void 0, void 0, function () {
2332
2352
  var _this = this;
@@ -15037,6 +15057,9 @@
15037
15057
  TransactionService.prototype.getArticles = function (request) {
15038
15058
  return this.articleConnector.searchArticles(request);
15039
15059
  };
15060
+ TransactionService.prototype.getArticleListWithBarcodeArticleNrEanCode = function (search) {
15061
+ return this.articleConnector.getArticleListWithBarcodeArticleNrEanCode(search);
15062
+ };
15040
15063
  TransactionService.prototype.getMainArticles = function () {
15041
15064
  return this.articleConnector.getMainArticles();
15042
15065
  };
@@ -44818,6 +44841,7 @@
44818
44841
  _this.deliveryMethodFields = { text: "description", value: "code" };
44819
44842
  _this.warehouseFields = { text: "description", value: "warehouseNo" };
44820
44843
  _this.sourceWarehouseFields = { text: "description", value: "warehouseNo" };
44844
+ _this.partDeliveryFields = { text: "description", value: "code" };
44821
44845
  return _this;
44822
44846
  }
44823
44847
  TransactionPurchaseOrderFilterContentLogisticsComponent.prototype.showClass = function () {
@@ -44830,6 +44854,7 @@
44830
44854
  this._setDeliveryMethods();
44831
44855
  this._setWarehouses();
44832
44856
  this._setSourceWarehouses();
44857
+ this._setPartDelivery();
44833
44858
  };
44834
44859
  //Delivery Methods
44835
44860
  TransactionPurchaseOrderFilterContentLogisticsComponent.prototype._setDeliveryMethods = function () {
@@ -44852,12 +44877,18 @@
44852
44877
  _this.sourceWarehouses = new corecomponents_v12.FilterViewmodel(warehouses, _this.sourceWarehouseFields).filterItems;
44853
44878
  });
44854
44879
  };
44880
+ TransactionPurchaseOrderFilterContentLogisticsComponent.prototype._setPartDelivery = function () {
44881
+ var _this = this;
44882
+ this.transactionService.getYesNo("NL").then(function (partDelivery) {
44883
+ _this.partDelivery = new corecomponents_v12.FilterViewmodel(partDelivery, _this.partDeliveryFields).filterItems;
44884
+ });
44885
+ };
44855
44886
  return TransactionPurchaseOrderFilterContentLogisticsComponent;
44856
44887
  }(TransactionFilterContentBaseComponent));
44857
44888
  TransactionPurchaseOrderFilterContentLogisticsComponent.decorators = [
44858
44889
  { type: i0.Component, args: [{
44859
44890
  selector: 'co-transaction-purchase-order-filter-content-logistics',
44860
- 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 <!--Geleverd-->\n <div class=\"filter-item-wrapper\">\n <co-transaction-filter-historic-state [label]=\"'DELIVERED'\"\n [(model)]=\"searchService.searchRequest.quantityDelivered\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\">\n >\n </co-transaction-filter-historic-state>\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-historic-state [label]=\"'PART_DELIVERY'\"\n [(model)]=\"searchService.searchRequest.partialDelivery\"\n [mode]=\"modes.CheckboxToText\">\n >\n </co-transaction-filter-historic-state>\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 "
44891
+ 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 >\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 "
44861
44892
  },] }
44862
44893
  ];
44863
44894
  TransactionPurchaseOrderFilterContentLogisticsComponent.propDecorators = {
@@ -48568,7 +48599,7 @@
48568
48599
  };
48569
48600
  AddProductComponent.prototype.handleSearch = function (text) {
48570
48601
  return __awaiter(this, void 0, void 0, function () {
48571
- var foundArticles, article;
48602
+ var fullMatchSearch, article, foundArticles, article;
48572
48603
  return __generator(this, function (_a) {
48573
48604
  switch (_a.label) {
48574
48605
  case 0:
@@ -48580,21 +48611,32 @@
48580
48611
  this._prepareCatalogRequest();
48581
48612
  this.searchText = undefined;
48582
48613
  this._changeDetector.detectChanges();
48583
- return [4 /*yield*/, this.transactionService.getArticles(this.catalogParameters)];
48614
+ return [4 /*yield*/, this.transactionService.getArticleListWithBarcodeArticleNrEanCode(text)];
48584
48615
  case 1:
48585
- foundArticles = _a.sent();
48586
- if (!(foundArticles && foundArticles.length === 1)) return [3 /*break*/, 4];
48587
- return [4 /*yield*/, this.transactionService.getArticleExtended(foundArticles[0].articleNumber)];
48616
+ fullMatchSearch = _a.sent();
48617
+ if (!(fullMatchSearch && fullMatchSearch.length === 1)) return [3 /*break*/, 4];
48618
+ return [4 /*yield*/, this.transactionService.getArticleExtended(fullMatchSearch[0].articleNr)];
48588
48619
  case 2:
48589
48620
  article = _a.sent();
48590
48621
  return [4 /*yield*/, this.handleAddArticle(article)];
48591
48622
  case 3:
48592
48623
  _a.sent();
48593
- return [3 /*break*/, 5];
48594
- case 4:
48624
+ return [3 /*break*/, 9];
48625
+ case 4: return [4 /*yield*/, this.transactionService.getArticles(this.catalogParameters)];
48626
+ case 5:
48627
+ foundArticles = _a.sent();
48628
+ if (!(foundArticles && foundArticles.length === 1)) return [3 /*break*/, 8];
48629
+ return [4 /*yield*/, this.transactionService.getArticleExtended(foundArticles[0].articleNumber)];
48630
+ case 6:
48631
+ article = _a.sent();
48632
+ return [4 /*yield*/, this.handleAddArticle(article)];
48633
+ case 7:
48634
+ _a.sent();
48635
+ return [3 /*break*/, 9];
48636
+ case 8:
48595
48637
  this.showCatalogDialog();
48596
- _a.label = 5;
48597
- case 5: return [2 /*return*/];
48638
+ _a.label = 9;
48639
+ case 9: return [2 /*return*/];
48598
48640
  }
48599
48641
  });
48600
48642
  });