@colijnit/transaction 12.1.31 → 12.1.32

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.
@@ -685,10 +685,9 @@
685
685
  "SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
686
686
  "SAVE": "Opslaan",
687
687
  "SEARCH": "Zoeken",
688
- "SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
689
- "SEARCH_DELIVERY_METHOD": "Zoek levermethode",
690
- "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
691
688
  "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
689
+ "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
690
+ "SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
692
691
  "SEARCH_WAREHOUSE": "Zoek magazijn",
693
692
  "SELECT": "Selecteren",
694
693
  "SELECT_A": "Selecteer een",
@@ -997,10 +996,9 @@
997
996
  "SAME_AS_DELIVERY": "Same as delivery address",
998
997
  "SAVE": "Save",
999
998
  "SEARCH": "Search",
999
+ "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
1000
1000
  "SEARCH_ADD_ARTICLE": "Search and add article",
1001
- "SEARCH_DELIVERY_METHOD": "Search deliverymethod",
1002
1001
  "SEARCH_IN_COLLECTION": "Search in collection...",
1003
- "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
1004
1002
  "SEARCH_WAREHOUSE": "Search warehouse",
1005
1003
  "SELECT": "Select",
1006
1004
  "SELECT_A": "Select a",
@@ -2431,15 +2429,15 @@
2431
2429
  var _this = this;
2432
2430
  return __generator(this, function (_a) {
2433
2431
  return [2 /*return*/, new Promise(function (resolve, reject) {
2434
- // const collection = this._collectionService.getCollection(DeliveryMethod.name);
2435
- // if (collection) {
2436
- // return resolve(collection);
2437
- // }
2432
+ var collection = _this._collectionService.getCollection(deliveryMethod_bo.DeliveryMethod.name);
2433
+ if (collection) {
2434
+ return resolve(collection);
2435
+ }
2438
2436
  return _this.connector.getDeliveryMethods().then(function (result) {
2439
2437
  if (result.validationResult && result.validationResult.success) {
2440
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects);
2441
- // this._collectionService.cacheCollection(DeliveryMethod.name, collection);
2442
- resolve(collection);
2438
+ var collection_6 = _this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects);
2439
+ _this._collectionService.cacheCollection(deliveryMethod_bo.DeliveryMethod.name, collection_6);
2440
+ resolve(collection_6);
2443
2441
  }
2444
2442
  else {
2445
2443
  reject(result.validationMessagesAsString);
@@ -2460,9 +2458,9 @@
2460
2458
  }
2461
2459
  return _this.connector.getDeliveryOptions().then(function (result) {
2462
2460
  if (result.validationResult && result.validationResult.success) {
2463
- var collection_6 = _this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects);
2464
- _this._collectionService.cacheCollection(deliveryOption_bo.DeliveryOption.name, collection_6);
2465
- resolve(collection_6);
2461
+ var collection_7 = _this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects);
2462
+ _this._collectionService.cacheCollection(deliveryOption_bo.DeliveryOption.name, collection_7);
2463
+ resolve(collection_7);
2466
2464
  }
2467
2465
  else {
2468
2466
  reject(result.validationMessagesAsString);
@@ -2841,9 +2839,9 @@
2841
2839
  }
2842
2840
  return _this.connector.getTags(category).then(function (result) {
2843
2841
  if (result.validationResult && result.validationResult.success) {
2844
- var collection_7 = _this._boFactory.makeBOArrayFromRawBackendDataArray(tag.Tag, result.resultObjects);
2845
- _this._collectionService.cacheCollection(tag.Tag.name, collection_7, [category]);
2846
- resolve(collection_7);
2842
+ var collection_8 = _this._boFactory.makeBOArrayFromRawBackendDataArray(tag.Tag, result.resultObjects);
2843
+ _this._collectionService.cacheCollection(tag.Tag.name, collection_8, [category]);
2844
+ resolve(collection_8);
2847
2845
  }
2848
2846
  else {
2849
2847
  reject(result.validationMessagesAsString);
@@ -2864,9 +2862,9 @@
2864
2862
  }
2865
2863
  return _this.connector.getOnHoldCodes().then(function (result) {
2866
2864
  if (result.validationResult && result.validationResult.success) {
2867
- var collection_8 = _this._boFactory.makeBOArrayFromRawBackendDataArray(onHoldCode_bo.OnHoldCode, result.resultObjects);
2868
- _this._collectionService.cacheCollection(onHoldCode_bo.OnHoldCode.name, collection_8);
2869
- resolve(collection_8);
2865
+ var collection_9 = _this._boFactory.makeBOArrayFromRawBackendDataArray(onHoldCode_bo.OnHoldCode, result.resultObjects);
2866
+ _this._collectionService.cacheCollection(onHoldCode_bo.OnHoldCode.name, collection_9);
2867
+ resolve(collection_9);
2870
2868
  }
2871
2869
  else {
2872
2870
  reject(result.validationMessagesAsString);
@@ -2881,15 +2879,15 @@
2881
2879
  var _this = this;
2882
2880
  return __generator(this, function (_a) {
2883
2881
  return [2 /*return*/, new Promise(function (resolve, reject) {
2884
- // const collection = this._collectionService.getCollection(Warehouse.name);
2885
- // if (collection) {
2886
- // return resolve(collection);
2887
- // }
2882
+ var collection = _this._collectionService.getCollection(warehouse_bo.Warehouse.name);
2883
+ if (collection) {
2884
+ return resolve(collection);
2885
+ }
2888
2886
  return _this.connector.getWarehouses(branchNr).then(function (result) {
2889
2887
  if (result.validationResult && result.validationResult.success) {
2890
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(warehouse_bo.Warehouse, result.resultObjects);
2891
- // this._collectionService.cacheCollection(Warehouse.name, collection);
2892
- resolve(collection);
2888
+ var collection_10 = _this._boFactory.makeBOArrayFromRawBackendDataArray(warehouse_bo.Warehouse, result.resultObjects);
2889
+ _this._collectionService.cacheCollection(warehouse_bo.Warehouse.name, collection_10);
2890
+ resolve(collection_10);
2893
2891
  }
2894
2892
  else {
2895
2893
  reject(result.validationMessagesAsString);
@@ -2920,7 +2918,7 @@
2920
2918
  var _this = this;
2921
2919
  return __generator(this, function (_a) {
2922
2920
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
2923
- var collection, result, collection_9;
2921
+ var collection, result, collection_11;
2924
2922
  return __generator(this, function (_a) {
2925
2923
  switch (_a.label) {
2926
2924
  case 0:
@@ -2932,9 +2930,9 @@
2932
2930
  case 1:
2933
2931
  result = _a.sent();
2934
2932
  if (result.validationResult && result.validationResult.success) {
2935
- collection_9 = this._boFactory.makeBOArrayFromRawBackendDataArray(paymentMethod_bo.PaymentMethod, result.resultObjects);
2936
- this._collectionService.cacheCollection(paymentMethod_bo.PaymentMethod.name, collection_9);
2937
- resolve(collection_9);
2933
+ collection_11 = this._boFactory.makeBOArrayFromRawBackendDataArray(paymentMethod_bo.PaymentMethod, result.resultObjects);
2934
+ this._collectionService.cacheCollection(paymentMethod_bo.PaymentMethod.name, collection_11);
2935
+ resolve(collection_11);
2938
2936
  }
2939
2937
  else {
2940
2938
  reject(result.validationMessagesAsString);
@@ -13162,14 +13160,9 @@
13162
13160
  this._transactionService.getDeliveryMethods().then(function (methods) {
13163
13161
  _this.data = methods.slice();
13164
13162
  _this.data.forEach(function (d, index) {
13165
- _this.viewModels.push({
13166
- value: d.code,
13167
- text: d.description,
13168
- label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13169
- checked: _this.useTransactionLine ? _this.transactionLine.deliveryMethodCode === d.code : index === 0
13170
- });
13163
+ _this.viewModels.push({ value: d.code, text: d.description, checked: _this.useTransactionLine ? _this.transactionLine.deliveryMethodCode === d.code : index === 0 });
13164
+ _super.prototype.ngOnInit.call(_this);
13171
13165
  });
13172
- _super.prototype.ngOnInit.call(_this);
13173
13166
  });
13174
13167
  };
13175
13168
  TransactionLineDeliveryMethodComponent.prototype.commitDeliveryMethod = function (method) {
@@ -13216,7 +13209,7 @@
13216
13209
  TransactionLineDeliveryMethodComponent.decorators = [
13217
13210
  { type: i0.Component, args: [{
13218
13211
  selector: "co-transaction-line-delivery-method",
13219
- template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModelsFiltered\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.label\"\n (click)=\"handleChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n<!--\n\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'DELIVERY_METHOD' | localize\"\n [fields]=\"fields\"\n [readonly]=\"readonly\"\n (modelChange)=\"commitDeliveryMethod($event)\"\n ></co-input-combo-box>\n-->\n ",
13212
+ template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModelsFiltered\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.value + ' ' + row.text\"\n (click)=\"handleChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n<!--\n\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'DELIVERY_METHOD' | localize\"\n [fields]=\"fields\"\n [readonly]=\"readonly\"\n (modelChange)=\"commitDeliveryMethod($event)\"\n ></co-input-combo-box>\n-->\n ",
13220
13213
  encapsulation: i0.ViewEncapsulation.None
13221
13214
  },] }
13222
13215
  ];
@@ -13399,12 +13392,7 @@
13399
13392
  this._transactionService.getCommissionCodes("NL").then(function (codes) {
13400
13393
  _this.data = codes.slice();
13401
13394
  _this.data.forEach(function (d, index) {
13402
- _this.viewModels.push({
13403
- value: d.code,
13404
- text: d.description,
13405
- label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13406
- checked: _this.useTransactionLine ? _this.transactionLine.commissionCode === d.code : index === 0
13407
- });
13395
+ _this.viewModels.push({ value: d.code, text: d.description, checked: _this.useTransactionLine ? _this.transactionLine.commissionCode === d.code : index === 0 });
13408
13396
  });
13409
13397
  });
13410
13398
  };
@@ -13452,7 +13440,7 @@
13452
13440
  TransactionLineCommissionCodeComponent.decorators = [
13453
13441
  { type: i0.Component, args: [{
13454
13442
  selector: "co-transaction-line-commission-code",
13455
- template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModels\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.label\"\n (click)=\"handleChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n ",
13443
+ template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModels\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.value + ' ' + row.text\"\n (click)=\"handleChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n ",
13456
13444
  encapsulation: i0.ViewEncapsulation.None
13457
13445
  },] }
13458
13446
  ];
@@ -13487,23 +13475,18 @@
13487
13475
  function TransactionLineWarehouseComponent(_transactionService) {
13488
13476
  var _this = _super.call(this) || this;
13489
13477
  _this._transactionService = _transactionService;
13490
- _this.collection = [];
13478
+ _this.data = [];
13491
13479
  return _this;
13492
13480
  }
13493
13481
  TransactionLineWarehouseComponent.prototype.ngOnInit = function () {
13494
13482
  var _this = this;
13495
13483
  this.viewModels.length = 0;
13496
13484
  this._transactionService.getWarehouses(this.branch).then(function (warehouses) {
13497
- _this.collection = warehouses.slice();
13498
- _this.collection.forEach(function (d, index) {
13499
- _this.viewModels.push({
13500
- value: d.warehouseNo,
13501
- text: d.description,
13502
- label: ((d.warehouseNo !== null && d.warehouseNo !== undefined) ? d.warehouseNo + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13503
- checked: _this.useTransactionLine ? _this.transactionLine.warehouseNumber === d.warehouseNo : index === 0
13504
- });
13485
+ _this.data = warehouses.slice();
13486
+ _this.data.forEach(function (d, index) {
13487
+ _this.viewModels.push({ value: d.warehouseNo, text: d.description, checked: _this.useTransactionLine ? _this.transactionLine.warehouseNumber === d.warehouseNo : index === 0 });
13488
+ _super.prototype.ngOnInit.call(_this);
13505
13489
  });
13506
- _super.prototype.ngOnInit.call(_this);
13507
13490
  });
13508
13491
  };
13509
13492
  TransactionLineWarehouseComponent.prototype.commitWarehouse = function (warehouse) {
@@ -13547,7 +13530,7 @@
13547
13530
  TransactionLineWarehouseComponent.decorators = [
13548
13531
  { type: i0.Component, args: [{
13549
13532
  selector: "co-transaction-line-warehouse",
13550
- template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModelsFiltered\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.label\"\n (click)=\"handleChecked($event, row)\"></co-input-checkbox>\n </div>\n ",
13533
+ template: "\n <div class=\"co-transaction-default-flex-row\" *ngFor=\"let row of viewModelsFiltered\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [label]=\"row.value + ' ' + row.text\"\n (click)=\"handleChecked($event, row)\"></co-input-checkbox>\n </div>\n ",
13551
13534
  encapsulation: i0.ViewEncapsulation.None
13552
13535
  },] }
13553
13536
  ];
@@ -16856,7 +16839,7 @@
16856
16839
  TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
16857
16840
  { type: i0.Component, args: [{
16858
16841
  selector: 'co-transaction-purchase-order-filter-content-article',
16859
- template: "\n <div class=\"transaction-filter-content-article-wrapper\">\n\n <!--Artikelnummer-->\n <co-filter-item\n [placeholder]=\"'ARTICLE_NR' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [minSearchCharsToLoadCollection]=\"3\"\n [collectionLoadFn]=\"getArticles\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForSingleSelect($event, 'articleNr')\"\n >\n </co-filter-item>\n\n <!--Omzetgroep-->\n <co-filter-item\n [placeholder]=\"'TURNOVER_GROUP' | localize\"\n [expanded]=\"true\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n [collection]=\"turnoverGroups\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')\"\n >\n </co-filter-item>\n\n <!--Uitloopcode -->\n <co-filter-item\n [placeholder]=\"'EXCEEDENCE_CODE' | localize\"\n [expanded]=\"true\"\n [collection]=\"exceedanceCodes\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')\"\n >\n </co-filter-item>\n\n <!--Serienummer -->\n <co-filter-item\n [placeholder]=\"'SERIAL_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.serialNumber\"\n [placeholder]=\"searchPlaceholder | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Batchnummer -->\n <co-filter-item\n [placeholder]=\"'BATCH_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.batchNumber\" [placeholder]=\"searchPlaceholder | localize\"></co-input-text>\n </co-filter-item>\n\n <div class=\"filter-button-container\">\n <co-button class=\"clickable\" [label]=\"'Filter'\" (click)=\"onFilterButtonClick()\"></co-button>\n </div>\n </div>\n "
16842
+ template: "\n <div class=\"transaction-filter-content-article-wrapper\">\n\n <!--Artikelnummer-->\n <co-filter-item\n [placeholder]=\"'ARTICLE_NR' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [minSearchCharsToLoadCollection]=\"3\"\n [collectionLoadFn]=\"getArticles\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForSingleSelect($event, 'articleNr')\"\n >\n </co-filter-item>\n\n <!--Omzetgroep-->\n <co-filter-item\n [placeholder]=\"'TURNOVER_GROUP' | localize\"\n [expanded]=\"true\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n [collection]=\"turnoverGroups\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')\"\n >\n </co-filter-item>\n\n <!--Uitloopcode -->\n <co-filter-item\n [placeholder]=\"'EXCEEDENCE_CODE' | localize\"\n [expanded]=\"true\"\n [collection]=\"exceedanceCodes\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')\"\n >\n </co-filter-item>\n\n <!--Serienummer -->\n <co-filter-item\n [placeholder]=\"'SERIAL_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.serialNumber\"\n [placeholder]=\"searchPlaceholder | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Batchnummer -->\n <co-filter-item\n [placeholder]=\"'BATCH_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.batchNumber\" [placeholder]=\"searchPlaceholder | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Leverancier-->\n <co-filter-item\n [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n [searchPlaceholder]=\"searchCollectionPlaceholder | localize\"\n [noResultsLabel]=\"noResultsLabel | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')\"\n >\n </co-filter-item>\n\n <div class=\"filter-button-container\">\n <co-button class=\"clickable\" [label]=\"'Filter'\" (click)=\"onFilterButtonClick()\"></co-button>\n </div>\n </div>\n "
16860
16843
  },] }
16861
16844
  ];
16862
16845
  TransactionPurchaseOrderFilterContentArticleComponent.ctorParameters = function () { return [