@colijnit/transaction 12.1.16 → 12.1.19

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.
Files changed (55) hide show
  1. package/bundles/colijnit-transaction.umd.js +546 -1559
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +85 -84
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +86 -85
  6. package/esm2015/lib/assets/dictionary/text.properties.js +16 -1
  7. package/esm2015/lib/component/payment/payment.component.js +1 -1
  8. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +2 -2
  9. package/esm2015/lib/component/transaction-search/service/filter-request.service.js +5 -20
  10. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +14 -2
  11. package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +43 -20
  12. package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +41 -55
  13. package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +6 -3
  14. package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +30 -15
  15. package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +60 -0
  16. package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.js +24 -0
  17. package/esm2015/lib/component/transaction-search/transaction-search.component.js +16 -4
  18. package/esm2015/lib/enum/icon.enum.js +2 -1
  19. package/esm2015/lib/model/icon-svg.js +2 -1
  20. package/esm2015/lib/service/article-connector.service.js +54 -1
  21. package/esm2015/lib/service/payment.service.js +5 -5
  22. package/esm2015/lib/service/pending-reason.service.js +8 -4
  23. package/esm2015/lib/service/transaction-connector.service.js +49 -13
  24. package/esm2015/lib/service/transaction-mapping.service.js +2 -2
  25. package/esm2015/lib/service/transaction.service.js +13 -2
  26. package/fesm2015/colijnit-transaction.js +472 -1219
  27. package/fesm2015/colijnit-transaction.js.map +1 -1
  28. package/lib/component/transaction-line-side-panel/style/_layout.scss +6 -4
  29. package/lib/component/transaction-line-side-panel/style/_material-definition.scss +1 -1
  30. package/lib/component/transaction-line-side-panel-default/style/_layout.scss +3 -0
  31. package/lib/component/transaction-search/service/filter-request.service.d.ts +2 -4
  32. package/lib/component/transaction-search/service/transaction-search.service.d.ts +4 -0
  33. package/lib/component/transaction-search/style/_material-definition.scss +1 -1
  34. package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +14 -1
  35. package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +1 -0
  36. package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +1 -0
  37. package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +2 -0
  38. package/lib/component/transaction-search/transaction-filter-historic-state/style/_layout.scss +9 -0
  39. package/lib/component/transaction-search/transaction-filter-historic-state/style/_material-definition.scss +0 -0
  40. package/lib/component/transaction-search/transaction-filter-historic-state/style/_theme.scss +4 -0
  41. package/lib/component/transaction-search/transaction-filter-historic-state/style/material.scss +4 -0
  42. package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.d.ts +22 -0
  43. package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.d.ts +2 -0
  44. package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +2 -2
  45. package/lib/component/transaction-search/transaction-search.component.d.ts +6 -1
  46. package/lib/enum/icon.enum.d.ts +1 -0
  47. package/lib/service/article-connector.service.d.ts +7 -0
  48. package/lib/service/payment.service.d.ts +2 -2
  49. package/lib/service/pending-reason.service.d.ts +3 -1
  50. package/lib/service/transaction-connector.service.d.ts +4 -1
  51. package/lib/service/transaction.service.d.ts +7 -0
  52. package/lib/style/_variables.scss +2 -0
  53. package/package.json +3 -3
  54. package/esm2015/lib/service/ione-connector-adapter.service.js +0 -1005
  55. package/lib/service/ione-connector-adapter.service.d.ts +0 -115
@@ -43,8 +43,14 @@ import { OnHoldCode } from '@colijnit/transactionapi/build/model/on-hold-code.bo
43
43
  import { Warehouse } from '@colijnit/transactionapi/build/model/warehouse.bo';
44
44
  import { CodeDescription } from '@colijnit/transactionapi/build/model/code-description';
45
45
  import { GoodsReceiptStatusWithHistory } from '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo';
46
+ import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
46
47
  import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
47
48
  import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
49
+ import { Articles } from '@colijnit/articleapi/build/articles';
50
+ import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
51
+ import { ArticleLight } from '@colijnit/articleapi/build/model/article-light.bo';
52
+ import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
53
+ import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
48
54
  import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, InputTextComponent, SimpleGridModule, GridToolbarButtonModule, InputSearchModule, FilterItemModule, InputDateRangePickerModule } from '@colijnit/corecomponents_v12';
49
55
  import { FlexModule } from '@angular/flex-layout';
50
56
  import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
@@ -65,18 +71,17 @@ import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-s
65
71
  import { RelationRequest } from '@colijnit/transactionapi/build/model/relation-request';
66
72
  import { Sharedapi } from '@colijnit/sharedapi/build/sharedapi';
67
73
  import { CoDocument } from '@colijnit/sharedapi/build/model/co-document.bo';
68
- import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
69
74
  import { KeyPadModule } from '@colijnit/sharedcomponents';
70
75
  import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
71
76
  import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
72
77
  import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
73
78
  import { PurchaseOrderLineReceiptDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo';
74
79
  import { ReceiveGoodsForPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo';
75
- import { Articles } from '@colijnit/articleapi/build/articles';
76
- import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
77
80
  import { GoodsReceiptStatus } from '@colijnit/transactionapi/build/model/goods-receipt-status.bo';
78
81
  import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
79
82
  import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
83
+ import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
84
+ import { QuantityInHistoricState } from '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum';
80
85
 
81
86
  var LanguageCode;
82
87
  (function (LanguageCode) {
@@ -267,6 +272,11 @@ class Dictionary {
267
272
  "FEMALE": "Vrouw",
268
273
  "FIRST_NAME": "Voornaam",
269
274
  "FREE": "Gratis",
275
+ "FULLY_ALLOCATED": "Volledig toegewezen",
276
+ "FULLY_DELIVERED": "Volledig geleverd",
277
+ "FULLY_INVOICED": "Volledig gefactureerd",
278
+ "FULLY_TO_BE_PICKED": "Volledig te picken",
279
+ "FULLY_PICKED": "Volledig gepickt",
270
280
  "GROSS_PRICE": "Bruto prijs",
271
281
  "GOOD_DESCRIPTION": "Artikelomschrijving",
272
282
  "HANDLED_BY": "Verkoper",
@@ -306,6 +316,11 @@ class Dictionary {
306
316
  "NO_IMAGE": "Geen afbeelding",
307
317
  "NOT_AFTER": "Niet later dan",
308
318
  "NOT_BEFORE": "Niet eerder dan",
319
+ "NOTHING_ALLOCATED": "Niets toegewezen",
320
+ "NOTHING_DELIVERED": "Niets geleverd",
321
+ "NOTHING_INVOICED": "Niets gefactureerd",
322
+ "NOTHING_TO_BE_PICKED": "Niets te picken",
323
+ "NOTHING_PICKED": "Niets gepickt",
309
324
  "NR": "Nummer",
310
325
  "NUMBER": "Aantal",
311
326
  "ON_DATE": "Op datum",
@@ -330,6 +345,11 @@ class Dictionary {
330
345
  "PAID_DOWN2": "Aanbetaald",
331
346
  "PART_DELIVERY": "Deellevering",
332
347
  "PART_DELIVERIES": "Deelleveringen",
348
+ "PARTLY_ALLOCATED": "Gedeeltelijk toegewezen",
349
+ "PARTLY_DELIVERED": "Gedeeltelijk geleverd",
350
+ "PARTLY_INVOICED": "Gedeeltelijk gefactureerd",
351
+ "PARTLY_TO_BE_PICKED": "Gedeeltelijk te picken",
352
+ "PARTLY_PICKED": "Gedeeltelijk gepickt",
333
353
  "PASSWORD": "Wachtwoord",
334
354
  "PAY": "Betalen",
335
355
  "PAYMENT": "Betaling",
@@ -1542,6 +1562,7 @@ class TransactionConnectorService {
1542
1562
  connect() {
1543
1563
  return __awaiter(this, void 0, void 0, function* () {
1544
1564
  this.connector = new Transaction(this._optionsService.options);
1565
+ this._optionsService.options.session = this.connector.session;
1545
1566
  });
1546
1567
  }
1547
1568
  getArticleFullObject(goodId) {
@@ -1597,18 +1618,6 @@ class TransactionConnectorService {
1597
1618
  });
1598
1619
  });
1599
1620
  }
1600
- getDocumentContent(id, thumbnail = true) {
1601
- return new Promise((resolve, reject) => {
1602
- return this.connector.getDocumentContent(id, thumbnail).then((result) => {
1603
- if (result.validationResult && result.validationResult.success) {
1604
- resolve(result.resultObject.documentContent);
1605
- }
1606
- else {
1607
- reject(result.validationMessagesAsString);
1608
- }
1609
- });
1610
- });
1611
- }
1612
1621
  getCountries() {
1613
1622
  if (this._countryList.length > 0) {
1614
1623
  return new Promise((resolve) => {
@@ -2234,6 +2243,19 @@ class TransactionConnectorService {
2234
2243
  });
2235
2244
  });
2236
2245
  }
2246
+ getPaymentMethods() {
2247
+ return __awaiter(this, void 0, void 0, function* () {
2248
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
2249
+ const result = yield this.connector.getPaymentMethods();
2250
+ if (result.validationResult && result.validationResult.success) {
2251
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObjects));
2252
+ }
2253
+ else {
2254
+ reject(result.validationMessagesAsString);
2255
+ }
2256
+ }));
2257
+ });
2258
+ }
2237
2259
  changeTransactionLineCommissionCode(uuid, lineUuid, code) {
2238
2260
  return __awaiter(this, void 0, void 0, function* () {
2239
2261
  const request = {
@@ -2460,6 +2482,39 @@ class TransactionConnectorService {
2460
2482
  }
2461
2483
  });
2462
2484
  }
2485
+ createOutstandingEntry(uuid, amount) {
2486
+ return __awaiter(this, void 0, void 0, function* () {
2487
+ const request = {
2488
+ transUUID: uuid,
2489
+ amount: amount
2490
+ };
2491
+ const response = yield this.connector.createOutstandingEntry(request);
2492
+ if (response && response.validationResult && response.validationResult.success) {
2493
+ console.log(response);
2494
+ }
2495
+ else {
2496
+ return Promise.reject(response.validationMessagesAsString);
2497
+ }
2498
+ });
2499
+ }
2500
+ registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
2501
+ return __awaiter(this, void 0, void 0, function* () {
2502
+ const request = {
2503
+ transUUID: uuid,
2504
+ amount: amount,
2505
+ currencyCode: currencyCode,
2506
+ paymentMethodCode: paymentMethod,
2507
+ cashRegisterGroupId: cashRegisterGroupId
2508
+ };
2509
+ const response = yield this.connector.registerSalesOrderPayment(request);
2510
+ if (response && response.validationResult && response.validationResult.success) {
2511
+ console.log(response);
2512
+ }
2513
+ else {
2514
+ return Promise.reject(response.validationMessagesAsString);
2515
+ }
2516
+ });
2517
+ }
2463
2518
  getGoodsReceiptStatus(transId, lineNr) {
2464
2519
  return __awaiter(this, void 0, void 0, function* () {
2465
2520
  const response = yield this.connector.getGoodsReceiptStatus(transId, lineNr);
@@ -2659,11 +2714,112 @@ DialogService.ctorParameters = () => [
2659
2714
  { type: Injector }
2660
2715
  ];
2661
2716
 
2717
+ class ArticleConnectorService {
2718
+ constructor(_optionsService, _collectionService) {
2719
+ this._optionsService = _optionsService;
2720
+ this._collectionService = _collectionService;
2721
+ this._boFactory = new BusinessObjectFactory();
2722
+ this._optionsService.optionsInitialized.subscribe((initialized) => {
2723
+ if (initialized) {
2724
+ this.connect();
2725
+ }
2726
+ });
2727
+ }
2728
+ connect() {
2729
+ return __awaiter(this, void 0, void 0, function* () {
2730
+ this.connector = new Articles(this._optionsService.options);
2731
+ });
2732
+ }
2733
+ getWarehouseLocations(warehouseNr) {
2734
+ return __awaiter(this, void 0, void 0, function* () {
2735
+ return new Promise((resolve, reject) => {
2736
+ const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
2737
+ if (collection) {
2738
+ resolve(collection);
2739
+ }
2740
+ else {
2741
+ return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
2742
+ if (response && response.validationResult && response.validationResult.success) {
2743
+ const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
2744
+ this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
2745
+ resolve(collection);
2746
+ }
2747
+ else {
2748
+ reject(response.validationMessagesAsString);
2749
+ }
2750
+ });
2751
+ }
2752
+ });
2753
+ });
2754
+ }
2755
+ searchArticles(request) {
2756
+ return __awaiter(this, void 0, void 0, function* () {
2757
+ return new Promise((resolve, reject) => {
2758
+ return this.connector.searchArticlesLight(request).then((response) => {
2759
+ if (response && response.validationResult && response.validationResult.success) {
2760
+ const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleLight, response.resultObjects);
2761
+ resolve(collection);
2762
+ }
2763
+ else {
2764
+ reject(response.validationMessagesAsString);
2765
+ }
2766
+ });
2767
+ });
2768
+ });
2769
+ }
2770
+ getMainArticles() {
2771
+ return __awaiter(this, void 0, void 0, function* () {
2772
+ return new Promise((resolve, reject) => {
2773
+ return this.connector.getMainArticles().then((response) => {
2774
+ if (response && response.validationResult && response.validationResult.success) {
2775
+ const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(MainArticle, response.resultObjects);
2776
+ resolve(collection);
2777
+ }
2778
+ else {
2779
+ reject(response.validationMessagesAsString);
2780
+ }
2781
+ });
2782
+ });
2783
+ });
2784
+ }
2785
+ getTurnoverGroups(category) {
2786
+ return __awaiter(this, void 0, void 0, function* () {
2787
+ return new Promise((resolve, reject) => {
2788
+ const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
2789
+ if (collection) {
2790
+ return resolve(collection);
2791
+ }
2792
+ return this.connector.getTurnoverGroups(category).then((result) => {
2793
+ if (result.validationResult && result.validationResult.success) {
2794
+ const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(TurnoverGroupImage, result.resultObjects);
2795
+ this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
2796
+ resolve(collection);
2797
+ }
2798
+ else {
2799
+ reject(result.validationMessagesAsString);
2800
+ }
2801
+ });
2802
+ });
2803
+ });
2804
+ }
2805
+ }
2806
+ ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
2807
+ ArticleConnectorService.decorators = [
2808
+ { type: Injectable, args: [{
2809
+ providedIn: "root"
2810
+ },] }
2811
+ ];
2812
+ ArticleConnectorService.ctorParameters = () => [
2813
+ { type: OptionsService },
2814
+ { type: CollectionCacheService }
2815
+ ];
2816
+
2662
2817
  class PendingReasonService {
2663
- constructor(dialogService, options, connector) {
2818
+ constructor(dialogService, options, connector, articleConnector) {
2664
2819
  this.dialogService = dialogService;
2665
2820
  this.options = options;
2666
2821
  this.connector = connector;
2822
+ this.articleConnector = articleConnector;
2667
2823
  this.transactionUpdated = new BehaviorSubject(undefined);
2668
2824
  this.applicationUser = false;
2669
2825
  this.currentTransaction = new TransactionInfoResponse();
@@ -2794,7 +2950,7 @@ class PendingReasonService {
2794
2950
  });
2795
2951
  }
2796
2952
  }
2797
- PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService)); }, token: PendingReasonService, providedIn: "root" });
2953
+ PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(ArticleConnectorService)); }, token: PendingReasonService, providedIn: "root" });
2798
2954
  PendingReasonService.decorators = [
2799
2955
  { type: Injectable, args: [{
2800
2956
  providedIn: "root"
@@ -2803,7 +2959,8 @@ PendingReasonService.decorators = [
2803
2959
  PendingReasonService.ctorParameters = () => [
2804
2960
  { type: DialogService },
2805
2961
  { type: OptionsService },
2806
- { type: TransactionConnectorService }
2962
+ { type: TransactionConnectorService },
2963
+ { type: ArticleConnectorService }
2807
2964
  ];
2808
2965
 
2809
2966
  class TransactionService extends PendingReasonService {
@@ -3106,12 +3263,21 @@ class TransactionService extends PendingReasonService {
3106
3263
  getInOutCollection(languageCode) {
3107
3264
  return this.connector.getInOutCollection(languageCode);
3108
3265
  }
3266
+ getTurnoverGroups() {
3267
+ return this.articleConnector.getTurnoverGroups();
3268
+ }
3109
3269
  getTransactionArticleWarehouses(goodId) {
3110
3270
  return this.connector.getTransactionArticleWarehouses(goodId);
3111
3271
  }
3112
3272
  getMarketingCodes() {
3113
3273
  return this.connector.getMarketingCodes();
3114
3274
  }
3275
+ getArticles(request) {
3276
+ return this.articleConnector.searchArticles(request);
3277
+ }
3278
+ getMainArticles() {
3279
+ return this.articleConnector.getMainArticles();
3280
+ }
3115
3281
  insertCustomer(relation) {
3116
3282
  return this.connector.insertCustomer(relation);
3117
3283
  }
@@ -3134,6 +3300,7 @@ class TransactionService extends PendingReasonService {
3134
3300
  getDeliveryOptions() {
3135
3301
  return this.connector.getDeliveryOptions();
3136
3302
  }
3303
+ // todo: move to relation api?
3137
3304
  getRelationListObjects(relationRequest) {
3138
3305
  return this.connector.getRelationListObjects(relationRequest);
3139
3306
  }
@@ -3381,7 +3548,7 @@ class TransactionService extends PendingReasonService {
3381
3548
  });
3382
3549
  }
3383
3550
  }
3384
- TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService)); }, token: TransactionService, providedIn: "root" });
3551
+ TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(ArticleConnectorService)); }, token: TransactionService, providedIn: "root" });
3385
3552
  TransactionService.decorators = [
3386
3553
  { type: Injectable, args: [{
3387
3554
  providedIn: "root"
@@ -3528,6 +3695,7 @@ var Icon;
3528
3695
  Icon["BarsFilter"] = "bars_filter";
3529
3696
  Icon["CalendarDay"] = "calendar_day";
3530
3697
  Icon["Cancel"] = "cancel";
3698
+ Icon["CartCheck"] = "cart_check";
3531
3699
  Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
3532
3700
  Icon["CartShoppingSolid"] = "cart_shopping_solid";
3533
3701
  Icon["CashRegister"] = "cash_register";
@@ -4091,6 +4259,7 @@ const IconSvg = {
4091
4259
  "bars_filter": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M264 392H183.1C170.8 392 160 402.8 160 415.1C160 429.2 170.8 440 183.1 440h80C277.2 440 288 429.2 288 416C288 402.8 277.2 392 264 392zM424 72H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zM360 232H87.1C74.8 232 64 242.8 64 255.1C64 269.2 74.8 280 87.1 280h272C373.2 280 384 269.2 384 256C384 242.8 373.2 232 360 232z\"/></svg>",
4092
4260
  "calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
4093
4261
  "cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
4262
+ "cart_check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g ><g ><g><g opacity=\".75\"><path d=\"M16.58,29.12c-.99,0-1.8,.81-1.8,1.8s.81,1.8,1.8,1.8,1.8-.81,1.8-1.8-.81-1.8-1.8-1.8Z\" fill=\"#484f60\"/><path d=\"M16.51,24.98c-.67,0-1.38-.52-1.57-1.16l-2.31-5.61c-.19-.64,.19-1.22,.86-1.28l19.71-2.51c.67-.06,1.12,.42,1,1.08l-.89,3.99c.66,.15,1.3,.36,1.91,.63l1.38-6.84c.12-.66-.34-1.15-1-1.08l-24.68,2.93c-.67,.06-1.06,.64-.87,1.28l3.34,9.44c.19,.64,.89,1.17,1.56,1.17h5.92c.19-.71,.45-1.38,.77-2.02h-5.13Z\" fill=\"#484f60\"/><path d=\"M39.01,11.31c-.66,.14-1.27,.79-1.37,1.46l-.42,2.9c-.1,.66,.31,.98,.9,.7,.59-.28,1.19-1.04,1.33-1.7l.51-2.42c.14-.66-.28-1.08-.94-.94h-.02Z\" fill=\"#484f60\"/></g><g><path d=\"M31,21.72c4.41,0,8,3.59,8,8s-3.59,8-8,8-8-3.59-8-8,3.59-8,8-8m0-1c-4.97,0-9,4.03-9,9s4.03,9,9,9,9-4.03,9-9-4.03-9-9-9h0Z\" fill=\"#484f60\"/><polygon points=\"30.63 34.72 26.79 29.33 28.31 28.25 30.34 31.11 33.54 24.72 35.21 25.55 30.63 34.72\" fill=\"#484f60\"/></g></g></g></g><g /></svg>",
4094
4263
  "cart_flatbed_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M448 160h64c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32h-64c-17.6 0-32 14.4-32 32v64C416 145.6 430.4 160 448 160zM448 320h128c17.6 0 32-14.4 32-32V224c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v64C416 305.6 430.4 320 448 320zM224 320h128c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32H224C206.4 32 192 46.4 192 64v224C192 305.6 206.4 320 224 320zM640 415.1c0 17.6-14.4 32-32 31.1l-66.88-.0011c1.787 5.027 2.907 10.36 2.907 16c0 26.51-21.5 48-48.01 48c-26.51 0-47.99-21.49-47.99-48c0-5.641 1.141-10.97 2.928-16H253.1C254.9 453 256 458.4 256 464C256 490.5 234.5 512 208 512S160 490.5 160 464c0-5.641 1.13-10.97 2.917-16l-66.92 .0011C78.4 448 64 433.6 64 415.1V80C64 71.16 56.84 64 48 64H31.1C14.4 64 0 49.6 0 32S14.4 0 31.1 0H64c35.2 0 64 28.8 64 64v320h480C625.6 384 640 398.4 640 415.1z\"/></svg>",
4095
4264
  "cart_shopping_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M96 0C107.5 0 117.4 8.19 119.6 19.51L121.1 32H541.8C562.1 32 578.3 52.25 572.6 72.66L518.6 264.7C514.7 278.5 502.1 288 487.8 288H170.7L179.9 336H488C501.3 336 512 346.7 512 360C512 373.3 501.3 384 488 384H159.1C148.5 384 138.6 375.8 136.4 364.5L76.14 48H24C10.75 48 0 37.25 0 24C0 10.75 10.75 0 24 0H96zM128 464C128 437.5 149.5 416 176 416C202.5 416 224 437.5 224 464C224 490.5 202.5 512 176 512C149.5 512 128 490.5 128 464zM512 464C512 490.5 490.5 512 464 512C437.5 512 416 490.5 416 464C416 437.5 437.5 416 464 416C490.5 416 512 437.5 512 464z\"/></svg>",
4096
4265
  "cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
@@ -6782,1029 +6951,55 @@ DeliveryTypeTileModule.decorators = [
6782
6951
  },] }
6783
6952
  ];
6784
6953
 
6785
- class IOneConnectorAdapterService {
6786
- constructor(_optionsService, _collectionService) {
6787
- this._optionsService = _optionsService;
6788
- this._collectionService = _collectionService;
6789
- this._boFactory = new BusinessObjectFactory();
6790
- this._countryList = [];
6954
+ class PaymentService {
6955
+ constructor(_connector) {
6956
+ this._connector = _connector;
6791
6957
  }
6792
- connect() {
6958
+ createOutstandingEntry(uuid, amount) {
6793
6959
  return __awaiter(this, void 0, void 0, function* () {
6794
- this.connector = new Transaction(this._optionsService.options);
6960
+ const response = yield this._connector.createOutstandingEntry(uuid, amount)
6961
+ .catch((error) => {
6962
+ // todo: do something with the error
6963
+ return false;
6964
+ });
6965
+ if (response) {
6966
+ return true;
6967
+ }
6968
+ return false;
6795
6969
  });
6796
6970
  }
6797
- getArticleFullObject(goodId) {
6971
+ registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
6798
6972
  return __awaiter(this, void 0, void 0, function* () {
6799
- return new Promise((resolve, reject) => {
6800
- return this.connector.getArticleFullObject(goodId).then((result) => {
6801
- if (result.validationResult && result.validationResult.success) {
6802
- if (result.resultObject) {
6803
- resolve(this._boFactory.makeWithRawBackendData(ArticleFullObject, result.resultObject));
6804
- }
6805
- }
6806
- else {
6807
- reject(result.validationMessagesAsString);
6808
- }
6809
- });
6810
- });
6973
+ const response = yield this._connector.registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId);
6974
+ // .catch((error) => {
6975
+ // // todo: do something with the error
6976
+ // // return;
6977
+ // });
6978
+ if (response) {
6979
+ return true;
6980
+ }
6981
+ return false;
6811
6982
  });
6812
6983
  }
6813
- getGoodIdFromArticleNr(articleNr) {
6814
- return new Promise((resolve, reject) => {
6815
- return this.connector.getGoodIdFromArticleNr(articleNr).then((result) => {
6816
- if (result.validationResult && result.validationResult.success) {
6817
- resolve(result.resultObject);
6818
- }
6819
- else {
6820
- reject(result.validationMessagesAsString);
6821
- }
6822
- });
6984
+ getPaymentMethods() {
6985
+ return __awaiter(this, void 0, void 0, function* () {
6986
+ return this._connector.getPaymentMethods();
6823
6987
  });
6824
6988
  }
6825
- getSingleImage(nodeId, publication, includeMimetype, thumb) {
6826
- return new Promise((resolve, reject) => {
6827
- return this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then((result) => {
6828
- if (result.validationResult && result.validationResult.success) {
6829
- if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
6830
- return resolve(ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
6831
- }
6832
- else {
6833
- if (result.resultObject) {
6834
- if (includeMimetype) {
6835
- return resolve(ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
6836
- }
6837
- return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
6838
- }
6839
- else { // no image
6840
- resolve("");
6841
- }
6842
- }
6843
- }
6844
- else {
6845
- reject(result.validationMessagesAsString);
6846
- }
6847
- });
6848
- });
6849
- }
6850
- getCountries() {
6851
- if (this._countryList.length > 0) {
6852
- return new Promise((resolve) => {
6853
- resolve(this._countryList);
6854
- });
6855
- }
6856
- return new Promise((resolve, reject) => {
6857
- return this.connector.getCountries().then((result) => {
6858
- if (result.validationResult && result.validationResult.success) {
6859
- this._countryList = result.resultObjects;
6860
- resolve(result.resultObjects);
6861
- }
6862
- else {
6863
- reject(result.validationMessagesAsString);
6864
- }
6865
- });
6866
- });
6867
- }
6868
- getCustomerGroups() {
6869
- return __awaiter(this, void 0, void 0, function* () {
6870
- const response = yield this.connector.getCustomerGroups();
6871
- if (response && response.validationResult && response.validationResult.success) {
6872
- return response.resultObjects;
6873
- }
6874
- else {
6875
- return [];
6876
- }
6877
- });
6878
- }
6879
- getCountry(countryCode) {
6880
- return __awaiter(this, void 0, void 0, function* () {
6881
- yield this.getCountries();
6882
- return this._countryList.find(country => country.code === countryCode);
6883
- });
6884
- }
6885
- getPrivacySettings() {
6886
- return new Promise((resolve, reject) => {
6887
- return this.connector.getPrivacySettings().then((result) => {
6888
- if (result.validationResult && result.validationResult.success) {
6889
- resolve(result.resultObjects);
6890
- }
6891
- else {
6892
- reject(result.validationMessagesAsString);
6893
- }
6894
- });
6895
- });
6896
- }
6897
- getRelationPrivacySettings() {
6898
- return __awaiter(this, void 0, void 0, function* () {
6899
- const privacySettings = [];
6900
- const basePrivacySettings = yield this.getPrivacySettings();
6901
- for (let i = 0, len = basePrivacySettings.length; i < len; i++) {
6902
- const basePrivSetting = basePrivacySettings[i];
6903
- const newRelPrivSet = this._boFactory.instantiateNewBo(RelationPrivacySetting);
6904
- newRelPrivSet.applyBasePrivacySettingValues(basePrivSetting);
6905
- privacySettings.push(newRelPrivSet);
6906
- }
6907
- return privacySettings;
6908
- });
6909
- }
6910
- getMarketingCodes() {
6911
- return new Promise((resolve, reject) => {
6912
- return this.connector.getMarketingCodes().then((result) => {
6913
- if (result.validationResult && result.validationResult.success) {
6914
- resolve(result.resultObjects);
6915
- }
6916
- else {
6917
- reject(result.validationMessagesAsString);
6918
- }
6919
- });
6920
- });
6921
- }
6922
- createTransaction(kind, branchNr) {
6923
- return new Promise((resolve, reject) => {
6924
- return this.connector.createTransaction(kind, branchNr).then((result) => {
6925
- if (result.validationResult && result.validationResult.success) {
6926
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
6927
- }
6928
- else {
6929
- reject(result.validationMessagesAsString);
6930
- }
6931
- });
6932
- });
6933
- }
6934
- getArticleBoundTextLinesOfArticleLine(articleLineUuid) {
6935
- return __awaiter(this, void 0, void 0, function* () {
6936
- const result = yield this.connector.getArticleBoundTextLinesOfArticleLine(articleLineUuid);
6937
- if (result.validationResult && result.validationResult.success) {
6938
- return this._boFactory.makeBOArrayFromRawBackendDataArray(TransactionLineInfo, result.resultObject);
6939
- }
6940
- else {
6941
- return [];
6942
- }
6943
- });
6944
- }
6945
- getTransactionByNrAndKind(kind, transactionNo) {
6946
- return new Promise((resolve, reject) => {
6947
- return this.connector.getTransactionByNrAndKind(kind, transactionNo).then((result) => {
6948
- if (result.validationResult && result.validationResult.success) {
6949
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
6950
- }
6951
- else {
6952
- reject(result.validationMessagesAsString);
6953
- }
6954
- });
6955
- });
6956
- }
6957
- getTransactionById(transactionId) {
6958
- return new Promise((resolve, reject) => {
6959
- return this.connector.getTransactionById(transactionId).then((result) => {
6960
- if (result.validationResult && result.validationResult.success) {
6961
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
6962
- }
6963
- else {
6964
- reject(result.validationMessagesAsString);
6965
- }
6966
- });
6967
- });
6968
- }
6969
- commit() {
6970
- return this.connector.commit();
6971
- }
6972
- saveTransaction(uuid) {
6973
- return new Promise((resolve, reject) => {
6974
- return this.connector.saveTransaction(uuid).then((result) => {
6975
- if (result.validationResult && result.validationResult.success) {
6976
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
6977
- }
6978
- else {
6979
- reject(result.validationMessagesAsString);
6980
- }
6981
- });
6982
- });
6983
- }
6984
- getCustomerFullObject(relationNo) {
6985
- return new Promise((resolve, reject) => {
6986
- return this.connector.getCustomerFullObject(relationNo).then((result) => {
6987
- if (result.validationResult && result.validationResult.success) {
6988
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
6989
- }
6990
- else {
6991
- reject(result.validationMessagesAsString);
6992
- }
6993
- });
6994
- });
6995
- }
6996
- getCashRegisters(branch, group) {
6997
- return __awaiter(this, void 0, void 0, function* () {
6998
- const response = yield this.connector.getCashRegister(branch, group);
6999
- if (response.validationResult && response.validationResult.success) {
7000
- return this._boFactory.makeBOArrayFromRawBackendDataArray(CashRegister, response.resultObjects);
7001
- }
7002
- else {
7003
- return [];
7004
- }
7005
- });
7006
- }
7007
- getRelationNumber(relationId) {
7008
- return __awaiter(this, void 0, void 0, function* () {
7009
- return new Promise((resolve, reject) => {
7010
- return this.connector.getRelationNumber(relationId).then((result) => {
7011
- if (result.validationResult && result.validationResult.success) {
7012
- resolve(result.resultObject);
7013
- }
7014
- else {
7015
- reject(result.validationMessagesAsString);
7016
- }
7017
- });
7018
- });
7019
- });
7020
- }
7021
- getPriceLists(code) {
7022
- return __awaiter(this, void 0, void 0, function* () {
7023
- const response = yield this.connector.getPriceLists(code);
7024
- if (response.validationResult && response.validationResult.success) {
7025
- return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, response.resultObjects);
7026
- }
7027
- else {
7028
- return []; // todo: handle error messages in a good way
7029
- }
7030
- });
7031
- }
7032
- getVatList(onlyValid = false) {
7033
- return __awaiter(this, void 0, void 0, function* () {
7034
- const response = yield this.connector.getVatList(onlyValid);
7035
- if (response.validationResult && response.validationResult.success) {
7036
- return this._boFactory.makeBOArrayFromRawBackendDataArray(Vat, response.resultObjects);
7037
- }
7038
- else {
7039
- return []; // todo: handle error messages in a good way
7040
- }
7041
- });
7042
- }
7043
- searchTransactions(request) {
7044
- return __awaiter(this, void 0, void 0, function* () {
7045
- const response = yield this.connector.searchTransactions(request);
7046
- if (response.validationResult && response.validationResult.success) {
7047
- return this._boFactory.makeBOArrayFromRawBackendDataArray(TransactionSearchView, response.resultObjects);
7048
- }
7049
- else {
7050
- return []; // todo: handle error messages in a good way
7051
- }
7052
- });
7053
- }
7054
- getSequenceValue(sequenceName) {
7055
- return __awaiter(this, void 0, void 0, function* () {
7056
- return new Promise((resolve, reject) => {
7057
- return this.connector.getSequenceValue(sequenceName).then((result) => {
7058
- if (result.validationResult && result.validationResult.success) {
7059
- resolve(result.resultObject);
7060
- }
7061
- else {
7062
- reject(result.validationMessagesAsString);
7063
- }
7064
- });
7065
- });
7066
- });
7067
- }
7068
- insertCustomer(relation) {
7069
- return __awaiter(this, void 0, void 0, function* () {
7070
- return new Promise((resolve, reject) => {
7071
- return this.connector.insertCustomer(relation).then((result) => {
7072
- if (result.validationResult && result.validationResult.success) {
7073
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
7074
- }
7075
- else {
7076
- reject(result.validationMessagesAsString);
7077
- }
7078
- });
7079
- });
7080
- });
7081
- }
7082
- updateCustomer(relation) {
7083
- return __awaiter(this, void 0, void 0, function* () {
7084
- return new Promise((resolve, reject) => {
7085
- return this.connector.updateCustomer(relation).then((result) => {
7086
- if (result.validationResult && result.validationResult.success) {
7087
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
7088
- }
7089
- else {
7090
- reject(result.validationMessagesAsString);
7091
- }
7092
- });
7093
- });
7094
- });
7095
- }
7096
- getDeliveryMethods() {
7097
- return __awaiter(this, void 0, void 0, function* () {
7098
- return new Promise((resolve, reject) => {
7099
- return this.connector.getDeliveryMethods().then((result) => {
7100
- if (result.validationResult && result.validationResult.success) {
7101
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects));
7102
- }
7103
- else {
7104
- reject(result.validationMessagesAsString);
7105
- }
7106
- });
7107
- });
7108
- });
7109
- }
7110
- getDeliveryOptions() {
7111
- return __awaiter(this, void 0, void 0, function* () {
7112
- return new Promise((resolve, reject) => {
7113
- return this.connector.getDeliveryOptions().then((result) => {
7114
- if (result.validationResult && result.validationResult.success) {
7115
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects));
7116
- }
7117
- else {
7118
- reject(result.validationMessagesAsString);
7119
- }
7120
- });
7121
- });
7122
- });
7123
- }
7124
- addRelationToTransaction(uuid, relationId) {
7125
- return __awaiter(this, void 0, void 0, function* () {
7126
- return new Promise((resolve, reject) => {
7127
- return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
7128
- if (result.validationResult && result.validationResult.success) {
7129
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7130
- }
7131
- else {
7132
- reject(result.validationMessagesAsString);
7133
- }
7134
- });
7135
- });
7136
- });
7137
- }
7138
- setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
7139
- return __awaiter(this, void 0, void 0, function* () {
7140
- return new Promise((resolve, reject) => {
7141
- return this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then((result) => {
7142
- if (result.validationResult && result.validationResult.success) {
7143
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7144
- }
7145
- else {
7146
- reject(result.validationMessagesAsString);
7147
- }
7148
- });
7149
- });
7150
- });
7151
- }
7152
- getPostalCodeRetrieval(postcalCode, houseNo) {
7153
- return __awaiter(this, void 0, void 0, function* () {
7154
- return new Promise((resolve, reject) => {
7155
- return this.connector.getPostalCodeRetrieval(postcalCode, houseNo).then((result) => {
7156
- if (result.validationResult && result.validationResult.success) {
7157
- const outputParams = new GetPostalCodeRetrievalOutputParams();
7158
- outputParams.city = result.resultObject.city;
7159
- outputParams.street = result.resultObject.street;
7160
- outputParams.status = result.resultObject.status;
7161
- outputParams.netNumber = result.resultObject.netNumber;
7162
- resolve(outputParams);
7163
- }
7164
- else {
7165
- reject(result.validationMessagesAsString);
7166
- }
7167
- });
7168
- });
7169
- });
7170
- }
7171
- getRelationListObjects(relationRequest) {
7172
- return __awaiter(this, void 0, void 0, function* () {
7173
- return new Promise((resolve, reject) => {
7174
- return this.connector.getRelationListObjects(relationRequest).then((result) => {
7175
- if (result.validationResult && result.validationResult.success) {
7176
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, result.resultObjects));
7177
- }
7178
- else {
7179
- reject(result.validationMessagesAsString);
7180
- }
7181
- });
7182
- });
7183
- });
7184
- }
7185
- addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
7186
- return __awaiter(this, void 0, void 0, function* () {
7187
- return new Promise((resolve, reject) => {
7188
- return this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then((result) => {
7189
- if (result.validationResult && result.validationResult.success) {
7190
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7191
- }
7192
- else {
7193
- reject(result.validationMessagesAsString);
7194
- }
7195
- });
7196
- });
7197
- });
7198
- }
7199
- addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
7200
- return __awaiter(this, void 0, void 0, function* () {
7201
- return new Promise((resolve, reject) => {
7202
- return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
7203
- if (result.validationResult && result.validationResult.success) {
7204
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7205
- }
7206
- else {
7207
- reject(result.validationMessagesAsString);
7208
- }
7209
- });
7210
- });
7211
- });
7212
- }
7213
- changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
7214
- return __awaiter(this, void 0, void 0, function* () {
7215
- return new Promise((resolve, reject) => {
7216
- const request = {
7217
- transactionUuid: uuid,
7218
- lineUuid: lineUuid,
7219
- aboveLineNr: aboveLineNr,
7220
- belowLineNr: belowLineNr
7221
- };
7222
- return this.connector.changeLineSequence(request).then((result) => {
7223
- if (result.validationResult && result.validationResult.success) {
7224
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7225
- }
7226
- else {
7227
- reject(result.validationMessagesAsString);
7228
- }
7229
- });
7230
- });
7231
- });
7232
- }
7233
- cancelAddTransactionLine(lineUuid) {
7234
- return __awaiter(this, void 0, void 0, function* () {
7235
- return new Promise((resolve, reject) => {
7236
- return this.connector.cancelAddTransactionLine(lineUuid).then((result) => {
7237
- if (result.validationResult && result.validationResult.success) {
7238
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7239
- }
7240
- else {
7241
- reject(result.validationMessagesAsString);
7242
- }
7243
- });
7244
- });
7245
- });
7246
- }
7247
- deleteTransactionLine(uuid, lineUuid) {
7248
- return __awaiter(this, void 0, void 0, function* () {
7249
- return new Promise((resolve, reject) => {
7250
- return this.connector.deleteTransactionLine(uuid, lineUuid).then((result) => {
7251
- if (result.validationResult && result.validationResult.success) {
7252
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7253
- }
7254
- else {
7255
- reject(result.validationMessagesAsString);
7256
- }
7257
- });
7258
- });
7259
- });
7260
- }
7261
- changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
7262
- return __awaiter(this, void 0, void 0, function* () {
7263
- return new Promise((resolve, reject) => {
7264
- const request = {
7265
- transactionUuid: uuid,
7266
- lineUuid: lineUuid,
7267
- newQuantity: newQuantity
7268
- };
7269
- return this.connector.changeTransactionLineQuantity(request).then((result) => {
7270
- if (result.validationResult && result.validationResult.success) {
7271
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7272
- }
7273
- else {
7274
- reject(result.validationMessagesAsString);
7275
- }
7276
- });
7277
- });
7278
- });
7279
- }
7280
- resolvePendingLineReason(pendingLineValues) {
7281
- return __awaiter(this, void 0, void 0, function* () {
7282
- return new Promise((resolve, reject) => {
7283
- return this.connector.resolvePendingLineReason(pendingLineValues).then((result) => {
7284
- if (result.validationResult && result.validationResult.success) {
7285
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
7286
- }
7287
- else {
7288
- reject(result.validationMessagesAsString);
7289
- }
7290
- });
7291
- });
7292
- });
7293
- }
7294
- getCommissionCodes(languageCode) {
7295
- return __awaiter(this, void 0, void 0, function* () {
7296
- return new Promise((resolve, reject) => {
7297
- return this.connector.getCommissionCodes(languageCode).then((result) => {
7298
- if (result.validationResult && result.validationResult.success) {
7299
- resolve(result.resultObjects);
7300
- }
7301
- else {
7302
- reject(result.validationMessagesAsString);
7303
- }
7304
- });
7305
- });
7306
- });
7307
- }
7308
- getInOutCollection(languageCode) {
7309
- return __awaiter(this, void 0, void 0, function* () {
7310
- return new Promise((resolve, reject) => {
7311
- return this.connector.getInOutCollection(languageCode).then((result) => {
7312
- if (result.validationResult && result.validationResult.success) {
7313
- resolve(result.resultObjects);
7314
- }
7315
- else {
7316
- reject(result.validationMessagesAsString);
7317
- }
7318
- });
7319
- });
7320
- });
7321
- }
7322
- getTransactionArticleWarehouses(goodId) {
7323
- return __awaiter(this, void 0, void 0, function* () {
7324
- return new Promise((resolve, reject) => {
7325
- return this.connector.getTransactionArticleWarehouses(goodId).then((result) => {
7326
- if (result.validationResult && result.validationResult.success) {
7327
- resolve(result.resultObjects);
7328
- }
7329
- else {
7330
- reject(result.validationMessagesAsString);
7331
- }
7332
- });
7333
- });
7334
- });
7335
- }
7336
- setRelationByUser(uuid, username, password) {
7337
- return __awaiter(this, void 0, void 0, function* () {
7338
- return new Promise((resolve, reject) => {
7339
- return this.connector.setRelationByUser(uuid, username, password).then((result) => {
7340
- if (result.validationResult && result.validationResult.success) {
7341
- resolve(result.validationResult.success);
7342
- }
7343
- else {
7344
- reject(result.validationMessagesAsString);
7345
- }
7346
- });
7347
- });
7348
- });
7349
- }
7350
- getTextTypes(languageCode) {
7351
- return __awaiter(this, void 0, void 0, function* () {
7352
- return new Promise((resolve, reject) => {
7353
- return this.connector.getTextTypes(languageCode).then((result) => {
7354
- if (result.validationResult && result.validationResult.success) {
7355
- const texts = this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
7356
- texts.sort((a, b) => a.sequence > b.sequence ? 1 : -1);
7357
- resolve(texts);
7358
- }
7359
- else {
7360
- reject(result.validationMessagesAsString);
7361
- }
7362
- });
7363
- });
7364
- });
7365
- }
7366
- getStandardTexts(languageCode) {
7367
- return __awaiter(this, void 0, void 0, function* () {
7368
- return new Promise((resolve, reject) => {
7369
- return this.connector.getStandardTexts(languageCode).then((result) => {
7370
- if (result.validationResult && result.validationResult.success) {
7371
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObject));
7372
- }
7373
- else {
7374
- reject(result.validationMessagesAsString);
7375
- }
7376
- });
7377
- });
7378
- });
7379
- }
7380
- getBranches(branchNr) {
7381
- return __awaiter(this, void 0, void 0, function* () {
7382
- return new Promise((resolve, reject) => {
7383
- return this.connector.getBranches(branchNr).then((result) => {
7384
- if (result.validationResult && result.validationResult.success) {
7385
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(BranchLov, result.resultObjects));
7386
- }
7387
- else {
7388
- reject(result.validationMessagesAsString);
7389
- }
7390
- });
7391
- });
7392
- });
7393
- }
7394
- getSalesPersons(date) {
7395
- return __awaiter(this, void 0, void 0, function* () {
7396
- return new Promise((resolve, reject) => {
7397
- return this.connector.getSalesPersons(date).then((result) => {
7398
- if (result.validationResult && result.validationResult.success) {
7399
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(SalesPerson, result.resultObjects));
7400
- }
7401
- else {
7402
- reject(result.validationMessagesAsString);
7403
- }
7404
- });
7405
- });
7406
- });
7407
- }
7408
- getTags(category) {
7409
- return __awaiter(this, void 0, void 0, function* () {
7410
- return new Promise((resolve, reject) => {
7411
- const collection = this._collectionService.getCollection(Tag.name, [category]);
7412
- if (collection) {
7413
- return resolve(collection);
7414
- }
7415
- return this.connector.getTags(category).then((result) => {
7416
- if (result.validationResult && result.validationResult.success) {
7417
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Tag, result.resultObjects);
7418
- this._collectionService.cacheCollection(Tag.name, collection, [category]);
7419
- resolve(collection);
7420
- }
7421
- else {
7422
- reject(result.validationMessagesAsString);
7423
- }
7424
- });
7425
- });
7426
- });
7427
- }
7428
- getOnHoldCodes() {
7429
- return __awaiter(this, void 0, void 0, function* () {
7430
- return new Promise((resolve, reject) => {
7431
- const collection = this._collectionService.getCollection(OnHoldCode.name);
7432
- if (collection) {
7433
- return resolve(collection);
7434
- }
7435
- return this.connector.getOnHoldCodes().then((result) => {
7436
- if (result.validationResult && result.validationResult.success) {
7437
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(OnHoldCode, result.resultObjects);
7438
- this._collectionService.cacheCollection(OnHoldCode.name, collection);
7439
- resolve(collection);
7440
- }
7441
- else {
7442
- reject(result.validationMessagesAsString);
7443
- }
7444
- });
7445
- });
7446
- });
7447
- }
7448
- getWarehouses(branchNr) {
7449
- return __awaiter(this, void 0, void 0, function* () {
7450
- return new Promise((resolve, reject) => {
7451
- return this.connector.getWarehouses(branchNr).then((result) => {
7452
- if (result.validationResult && result.validationResult.success) {
7453
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(Warehouse, result.resultObjects));
7454
- }
7455
- else {
7456
- reject(result.validationMessagesAsString);
7457
- }
7458
- });
7459
- });
7460
- });
7461
- }
7462
- getHistoricStateValues() {
7463
- return __awaiter(this, void 0, void 0, function* () {
7464
- return new Promise((resolve, reject) => {
7465
- const result = this.connector.getHistoricStateValues();
7466
- if (result.validationResult && result.validationResult.success) {
7467
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(CodeDescription, result.resultObjects));
7468
- }
7469
- else {
7470
- reject(result.validationMessagesAsString);
7471
- }
7472
- });
7473
- });
7474
- }
7475
- getPaymentMethods() {
7476
- return __awaiter(this, void 0, void 0, function* () {
7477
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
7478
- const result = yield this.connector.getPaymentMethods();
7479
- if (result.validationResult && result.validationResult.success) {
7480
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObjects));
7481
- }
7482
- else {
7483
- reject(result.validationMessagesAsString);
7484
- }
7485
- }));
7486
- });
7487
- }
7488
- changeTransactionLineCommissionCode(uuid, lineUuid, code) {
7489
- return __awaiter(this, void 0, void 0, function* () {
7490
- const request = {
7491
- transactionUuid: uuid,
7492
- lineUuid: lineUuid,
7493
- newCommissionCode: code
7494
- };
7495
- const response = yield this.connector.changeTransactionLineCommissionCode(request);
7496
- if (response && response.validationResult && response.validationResult.success) {
7497
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7498
- }
7499
- else {
7500
- return Promise.reject(response.validationMessagesAsString);
7501
- }
7502
- });
7503
- }
7504
- changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber) {
7505
- return __awaiter(this, void 0, void 0, function* () {
7506
- const request = {
7507
- transactionUuid: uuid,
7508
- lineUuid: lineUuid,
7509
- newWarehouseNumber: warehouseNumber
7510
- };
7511
- const response = yield this.connector.changeTransactionLineWarehouse(request);
7512
- if (response && response.validationResult && response.validationResult.success) {
7513
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7514
- }
7515
- else {
7516
- return Promise.reject(response.validationMessagesAsString);
7517
- }
7518
- });
7519
- }
7520
- changeTransactionLinePrice(uuid, lineUuid, price) {
7521
- return __awaiter(this, void 0, void 0, function* () {
7522
- const request = {
7523
- transactionUuid: uuid,
7524
- lineUuid: lineUuid,
7525
- newPrice: price
7526
- };
7527
- const response = yield this.connector.changeTransactionLinePrice(request);
7528
- if (response && response.validationResult && response.validationResult.success) {
7529
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7530
- }
7531
- else {
7532
- return Promise.reject(response.validationMessagesAsString);
7533
- }
7534
- });
7535
- }
7536
- changeTransactionLinePriceList(uuid, lineUuid, priceList) {
7537
- return __awaiter(this, void 0, void 0, function* () {
7538
- const request = {
7539
- transactionUuid: uuid,
7540
- lineUuid: lineUuid,
7541
- newPriceListCode: priceList
7542
- };
7543
- const response = yield this.connector.changeTransactionLinePriceList(request);
7544
- if (response && response.validationResult && response.validationResult.success) {
7545
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7546
- }
7547
- else {
7548
- return Promise.reject(response.validationMessagesAsString);
7549
- }
7550
- });
7551
- }
7552
- changeTransactionLineVat(uuid, lineUuid, id) {
7553
- return __awaiter(this, void 0, void 0, function* () {
7554
- const request = {
7555
- transactionUuid: uuid,
7556
- lineUuid: lineUuid,
7557
- newVatId: id
7558
- };
7559
- const response = yield this.connector.changeTransactionLineVat(request);
7560
- if (response && response.validationResult && response.validationResult.success) {
7561
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7562
- }
7563
- else {
7564
- return Promise.reject(response.validationMessagesAsString);
7565
- }
7566
- });
7567
- }
7568
- changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code) {
7569
- return __awaiter(this, void 0, void 0, function* () {
7570
- const request = {
7571
- transactionUuid: uuid,
7572
- lineUuid: lineUuid,
7573
- discountType: type,
7574
- newDiscount: discount,
7575
- newDiscountReason: reason,
7576
- newDiscountCode: code
7577
- };
7578
- const response = yield this.connector.changeTransactionLineDiscount(request);
7579
- if (response && response.validationResult && response.validationResult.success) {
7580
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7581
- }
7582
- else {
7583
- return Promise.reject(response.validationMessagesAsString);
7584
- }
7585
- });
7586
- }
7587
- changeTransactionLineDeliveryMethod(uuid, lineUuid, method) {
7588
- return __awaiter(this, void 0, void 0, function* () {
7589
- const request = {
7590
- transactionUuid: uuid,
7591
- lineUuid: lineUuid,
7592
- newDeliveryMethodCode: method
7593
- };
7594
- const response = yield this.connector.changeTransactionLineDeliveryMethod(request);
7595
- if (response && response.validationResult && response.validationResult.success) {
7596
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7597
- }
7598
- else {
7599
- return Promise.reject(response.validationMessagesAsString);
7600
- }
7601
- });
7602
- }
7603
- changeTransactionLineDeliveryDate(uuid, lineUuid, date) {
7604
- return __awaiter(this, void 0, void 0, function* () {
7605
- const request = {
7606
- transactionUuid: uuid,
7607
- lineUuid: lineUuid,
7608
- newDeliveryDate: date
7609
- };
7610
- const response = yield this.connector.changeTransactionLineDeliveryDate(request);
7611
- if (response && response.validationResult && response.validationResult.success) {
7612
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7613
- }
7614
- else {
7615
- return Promise.reject(response.validationMessagesAsString);
7616
- }
7617
- });
7618
- }
7619
- changeTransactionLineAssemblyTime(uuid, lineUuid, time) {
7620
- return __awaiter(this, void 0, void 0, function* () {
7621
- const request = {
7622
- transactionUuid: uuid,
7623
- lineUuid: lineUuid,
7624
- newAssemblyTime: time
7625
- };
7626
- const response = yield this.connector.changeTransactionLineAssemblyTime(request);
7627
- if (response && response.validationResult && response.validationResult.success) {
7628
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7629
- }
7630
- else {
7631
- return Promise.reject(response.validationMessagesAsString);
7632
- }
7633
- });
7634
- }
7635
- changeTransactionLineEditTime(uuid, lineUuid, time) {
7636
- return __awaiter(this, void 0, void 0, function* () {
7637
- const request = {
7638
- transactionUuid: uuid,
7639
- lineUuid: lineUuid,
7640
- newEditTime: time
7641
- };
7642
- const response = yield this.connector.changeTransactionLineEditTime(request);
7643
- if (response && response.validationResult && response.validationResult.success) {
7644
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7645
- }
7646
- else {
7647
- return Promise.reject(response.validationMessagesAsString);
7648
- }
7649
- });
7650
- }
7651
- changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber) {
7652
- return __awaiter(this, void 0, void 0, function* () {
7653
- const request = {
7654
- transactionUuid: uuid,
7655
- lineUuid: lineUuid,
7656
- newSupplierArticleNumber: articleNumber
7657
- };
7658
- const response = yield this.connector.changeTransactionLineSupplierArticleNumber(request);
7659
- if (response && response.validationResult && response.validationResult.success) {
7660
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7661
- }
7662
- else {
7663
- return Promise.reject(response.validationMessagesAsString);
7664
- }
7665
- });
7666
- }
7667
- changeTransactionLineReference(uuid, lineUuid, reference) {
7668
- return __awaiter(this, void 0, void 0, function* () {
7669
- const request = {
7670
- transactionUuid: uuid,
7671
- lineUuid: lineUuid,
7672
- newReference: reference
7673
- };
7674
- const response = yield this.connector.changeTransactionLineReference(request);
7675
- if (response && response.validationResult && response.validationResult.success) {
7676
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7677
- }
7678
- else {
7679
- return Promise.reject(response.validationMessagesAsString);
7680
- }
7681
- });
7682
- }
7683
- changeHeaderTransactionDefinitive(uuid, definitive) {
7684
- return __awaiter(this, void 0, void 0, function* () {
7685
- const request = {
7686
- transactionUuid: uuid,
7687
- newTransactionDefinitive: definitive
7688
- };
7689
- const response = yield this.connector.changeHeaderTransactionDefinitive(request);
7690
- if (response && response.validationResult && response.validationResult.success) {
7691
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7692
- }
7693
- else {
7694
- return Promise.reject(response.validationMessagesAsString);
7695
- }
7696
- });
7697
- }
7698
- changeTransactionLineCollectionCode(uuid, lineUuid, code) {
7699
- return __awaiter(this, void 0, void 0, function* () {
7700
- const request = {
7701
- transactionUuid: uuid,
7702
- lineUuid: lineUuid,
7703
- newCollectionCode: code
7704
- };
7705
- const response = yield this.connector.changeTransactionLineCollectionCode(request);
7706
- if (response && response.validationResult && response.validationResult.success) {
7707
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
7708
- }
7709
- else {
7710
- return Promise.reject(response.validationMessagesAsString);
7711
- }
7712
- });
7713
- }
7714
- createOutstandingEntry(uuid, amount) {
7715
- return __awaiter(this, void 0, void 0, function* () {
7716
- const request = {
7717
- transUUID: uuid,
7718
- amount: amount
7719
- };
7720
- const response = yield this.connector.createOutstandingEntry(request);
7721
- if (response && response.validationResult && response.validationResult.success) {
7722
- console.log(response);
7723
- }
7724
- else {
7725
- return Promise.reject(response.validationMessagesAsString);
7726
- }
7727
- });
7728
- }
7729
- registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
7730
- return __awaiter(this, void 0, void 0, function* () {
7731
- const request = {
7732
- transUUID: uuid,
7733
- amount: amount,
7734
- currencyCode: currencyCode,
7735
- paymentMethodCode: paymentMethod,
7736
- cashRegisterGroupId: cashRegisterGroupId
7737
- };
7738
- const response = yield this.connector.registerSalesOrderPayment(request);
7739
- if (response && response.validationResult && response.validationResult.success) {
7740
- console.log(response);
7741
- }
7742
- else {
7743
- return Promise.reject(response.validationMessagesAsString);
7744
- }
7745
- });
7746
- }
7747
- }
7748
- IOneConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IOneConnectorAdapterService_Factory() { return new IOneConnectorAdapterService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: IOneConnectorAdapterService, providedIn: "root" });
7749
- IOneConnectorAdapterService.decorators = [
7750
- { type: Injectable, args: [{
7751
- providedIn: "root"
7752
- },] }
7753
- ];
7754
- IOneConnectorAdapterService.ctorParameters = () => [
7755
- { type: OptionsService },
7756
- { type: CollectionCacheService }
7757
- ];
7758
-
7759
- class PaymentService {
7760
- constructor(_connector) {
7761
- this._connector = _connector;
7762
- }
7763
- createOutstandingEntry(uuid, amount) {
7764
- return __awaiter(this, void 0, void 0, function* () {
7765
- const response = yield this._connector.createOutstandingEntry(uuid, amount)
7766
- .catch((error) => {
7767
- // todo: do something with the error
7768
- return false;
7769
- });
7770
- if (response) {
7771
- return true;
7772
- }
7773
- return false;
7774
- });
7775
- }
7776
- registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
7777
- return __awaiter(this, void 0, void 0, function* () {
7778
- const response = yield this._connector.registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId);
7779
- // .catch((error) => {
7780
- // // todo: do something with the error
7781
- // // return;
7782
- // });
7783
- if (response) {
7784
- return true;
7785
- }
7786
- return false;
7787
- });
7788
- }
7789
- getPaymentMethods() {
7790
- return __awaiter(this, void 0, void 0, function* () {
7791
- return this._connector.getPaymentMethods();
7792
- });
7793
- }
7794
- }
7795
- PaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PaymentService_Factory() { return new PaymentService(i0.ɵɵinject(IOneConnectorAdapterService)); }, token: PaymentService, providedIn: "root" });
7796
- PaymentService.decorators = [
7797
- { type: Injectable, args: [{
7798
- providedIn: "root"
7799
- },] }
7800
- ];
7801
- PaymentService.ctorParameters = () => [
7802
- { type: IOneConnectorAdapterService }
7803
- ];
7804
-
7805
- class PaymentViewmodel {
7806
- constructor(method) {
7807
- this.payment = method;
6989
+ }
6990
+ PaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PaymentService_Factory() { return new PaymentService(i0.ɵɵinject(TransactionConnectorService)); }, token: PaymentService, providedIn: "root" });
6991
+ PaymentService.decorators = [
6992
+ { type: Injectable, args: [{
6993
+ providedIn: "root"
6994
+ },] }
6995
+ ];
6996
+ PaymentService.ctorParameters = () => [
6997
+ { type: TransactionConnectorService }
6998
+ ];
6999
+
7000
+ class PaymentViewmodel {
7001
+ constructor(method) {
7002
+ this.payment = method;
7808
7003
  }
7809
7004
  }
7810
7005
 
@@ -9019,6 +8214,7 @@ TransactionLineSidePanelComponent.decorators = [
9019
8214
  { type: Component, args: [{
9020
8215
  selector: "co-transaction-line-side-panel",
9021
8216
  template: `
8217
+ <icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
9022
8218
  <div class="transaction-line-side-panel-header">
9023
8219
  <div class="transaction-line-side-panel-header-item">
9024
8220
  <span class="side-panel-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
@@ -9041,7 +8237,6 @@ TransactionLineSidePanelComponent.decorators = [
9041
8237
  <span class="side-panel-header-field"
9042
8238
  [textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)"></span>
9043
8239
  </div>
9044
- <icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
9045
8240
  </div>
9046
8241
  <div class="transaction-line-side-panel-nav-bar">
9047
8242
  <co-transaction-button-bar
@@ -10304,56 +9499,6 @@ TransactionReceivingGoodsHistoryModule.decorators = [
10304
9499
  },] }
10305
9500
  ];
10306
9501
 
10307
- class ArticleConnectorService {
10308
- constructor(_optionsService, _collectionService) {
10309
- this._optionsService = _optionsService;
10310
- this._collectionService = _collectionService;
10311
- this._boFactory = new BusinessObjectFactory();
10312
- this._optionsService.optionsInitialized.subscribe((initialized) => {
10313
- if (initialized) {
10314
- this.connect();
10315
- }
10316
- });
10317
- }
10318
- connect() {
10319
- return __awaiter(this, void 0, void 0, function* () {
10320
- this.connector = new Articles(this._optionsService.options);
10321
- });
10322
- }
10323
- getWarehouseLocations(warehouseNr) {
10324
- return __awaiter(this, void 0, void 0, function* () {
10325
- return new Promise((resolve, reject) => {
10326
- const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
10327
- if (collection) {
10328
- resolve(collection);
10329
- }
10330
- else {
10331
- return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
10332
- if (response && response.validationResult && response.validationResult.success) {
10333
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
10334
- this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
10335
- resolve(collection);
10336
- }
10337
- else {
10338
- reject(response.validationMessagesAsString);
10339
- }
10340
- });
10341
- }
10342
- });
10343
- });
10344
- }
10345
- }
10346
- ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
10347
- ArticleConnectorService.decorators = [
10348
- { type: Injectable, args: [{
10349
- providedIn: "root"
10350
- },] }
10351
- ];
10352
- ArticleConnectorService.ctorParameters = () => [
10353
- { type: OptionsService },
10354
- { type: CollectionCacheService }
10355
- ];
10356
-
10357
9502
  class ArticleService {
10358
9503
  constructor(_articleConnectorService) {
10359
9504
  this._articleConnectorService = _articleConnectorService;
@@ -10879,7 +10024,7 @@ class TransactionMappingService {
10879
10024
  { title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
10880
10025
  { title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
10881
10026
  { title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
10882
- { title: 'INVOICE', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderInvoice }
10027
+ { title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
10883
10028
  ]],
10884
10029
  ]);
10885
10030
  this._quickAccessComponent = new Map([
@@ -11814,11 +10959,59 @@ ShoppingCartModule.decorators = [
11814
10959
  },] }
11815
10960
  ];
11816
10961
 
10962
+ class TransactionSearchService {
10963
+ constructor(_transactionService) {
10964
+ this._transactionService = _transactionService;
10965
+ this.searchRequest = new TransactionSearchViewRequest();
10966
+ this.transactions = [];
10967
+ }
10968
+ set transactionType(value) {
10969
+ this._resetRequest();
10970
+ this.transactions.length = 0;
10971
+ this._transactionType = value;
10972
+ }
10973
+ get transactionType() {
10974
+ return this._transactionType;
10975
+ }
10976
+ searchTransactions() {
10977
+ this.searchRequest.transactionKind = this.transactionType;
10978
+ this._transactionService.searchTransactions(this.searchRequest).then((transactions) => {
10979
+ this.transactions = transactions;
10980
+ });
10981
+ }
10982
+ resetFilters() {
10983
+ const oldSearchRequest = Object.assign({}, this.searchRequest);
10984
+ this._resetRequest();
10985
+ this.searchRequest.general = oldSearchRequest.general;
10986
+ this.searchTransactions();
10987
+ }
10988
+ _resetRequest() {
10989
+ this.searchRequest = new TransactionSearchViewRequest();
10990
+ }
10991
+ }
10992
+ TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
10993
+ TransactionSearchService.decorators = [
10994
+ { type: Injectable, args: [{
10995
+ providedIn: "root"
10996
+ },] }
10997
+ ];
10998
+ TransactionSearchService.ctorParameters = () => [
10999
+ { type: TransactionService }
11000
+ ];
11001
+
11817
11002
  class TransactionSearchComponent {
11818
- constructor() {
11003
+ constructor(_transactionSearchService) {
11004
+ this._transactionSearchService = _transactionSearchService;
11819
11005
  this.transactionClick = new EventEmitter();
11820
11006
  this.showFilterSidebar = false;
11821
11007
  }
11008
+ set transactionType(value) {
11009
+ this._transactionType = value;
11010
+ this._transactionSearchService.transactionType = this._transactionType;
11011
+ }
11012
+ get transactionType() {
11013
+ return this._transactionType;
11014
+ }
11822
11015
  showClass() {
11823
11016
  return true;
11824
11017
  }
@@ -11861,8 +11054,11 @@ TransactionSearchComponent.decorators = [
11861
11054
  encapsulation: ViewEncapsulation.None
11862
11055
  },] }
11863
11056
  ];
11864
- TransactionSearchComponent.ctorParameters = () => [];
11057
+ TransactionSearchComponent.ctorParameters = () => [
11058
+ { type: TransactionSearchService }
11059
+ ];
11865
11060
  TransactionSearchComponent.propDecorators = {
11061
+ transactionType: [{ type: Input }],
11866
11062
  transactionClick: [{ type: Output }],
11867
11063
  showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
11868
11064
  };
@@ -12066,34 +11262,6 @@ TransactionTileModule.decorators = [
12066
11262
  },] }
12067
11263
  ];
12068
11264
 
12069
- class TransactionSearchService {
12070
- constructor(_transactionService) {
12071
- this._transactionService = _transactionService;
12072
- this.searchRequest = new TransactionSearchViewRequest();
12073
- this.transactions = [];
12074
- }
12075
- searchTransactions() {
12076
- this._transactionService.searchTransactions(this.searchRequest).then((transactions) => {
12077
- this.transactions = transactions;
12078
- });
12079
- }
12080
- resetFilters() {
12081
- const oldSearchRequest = Object.assign({}, this.searchRequest);
12082
- this.searchRequest = new TransactionSearchViewRequest();
12083
- this.searchRequest.general = oldSearchRequest.general;
12084
- this.searchTransactions();
12085
- }
12086
- }
12087
- TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
12088
- TransactionSearchService.decorators = [
12089
- { type: Injectable, args: [{
12090
- providedIn: "root"
12091
- },] }
12092
- ];
12093
- TransactionSearchService.ctorParameters = () => [
12094
- { type: TransactionService }
12095
- ];
12096
-
12097
11265
  class TransactionSearchResultComponent {
12098
11266
  constructor(searchService, iconCacheService) {
12099
11267
  this.searchService = searchService;
@@ -12204,12 +11372,12 @@ class FilterRequestService {
12204
11372
  this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionArray(collection);
12205
11373
  }
12206
11374
  //todo: tijdelijk totdat filter-item single select ondersteunt
12207
- handleCollectionChangeForSingleValue(collection, modelName) {
12208
- this.searchService.searchRequest[modelName] = this._getFilterRequestForSingleCollectionValue(collection);
11375
+ handleCollectionChangeForSingleValue(value, modelName) {
11376
+ this.searchService.searchRequest[modelName] = value;
12209
11377
  }
12210
11378
  //todo: tijdelijk totdat filter-item single select ondersteunt
12211
- handleCollectionChangeForSingleNumber(collection, modelName) {
12212
- this.searchService.searchRequest[modelName] = collection ? this._getFilterRequestForSingleCollectionNumber(collection) : -1;
11379
+ handleCollectionChangeForSingleNumber(value, modelName) {
11380
+ this.searchService.searchRequest[modelName] = value;
12213
11381
  }
12214
11382
  handleCheckboxValueChangeForString(value, modelName) {
12215
11383
  this.searchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
@@ -12265,21 +11433,6 @@ class FilterRequestService {
12265
11433
  });
12266
11434
  return filterRequest;
12267
11435
  }
12268
- //todo: tijdelijk totdat filter-item single select ondersteunt
12269
- _getFilterRequestForSingleCollectionValue(collection) {
12270
- let filterRequest = '';
12271
- const firstValue = collection.find(item => item.checked).code.toString();
12272
- if (firstValue) {
12273
- filterRequest = `?=\'${firstValue}\'`;
12274
- }
12275
- return filterRequest;
12276
- }
12277
- //todo: tijdelijk totdat filter-item single select ondersteunt
12278
- _getFilterRequestForSingleCollectionNumber(collection) {
12279
- var _a;
12280
- const firstValue = Number((_a = collection.find(item => item.checked)) === null || _a === void 0 ? void 0 : _a.code);
12281
- return firstValue !== null && firstValue !== void 0 ? firstValue : -1;
12282
- }
12283
11436
  _getFilterRequestForDateRange(startDate, endDate) {
12284
11437
  const startDateRequest = startDate ? this._formatDateToString(startDate) : '';
12285
11438
  const endDateRequest = endDate ? this._formatDateToString(endDate) : '';
@@ -12314,27 +11467,48 @@ class TransactionFilterContentArticleComponent {
12314
11467
  this.showLessLabel = "SHOW_LESS";
12315
11468
  this.articleNumberFields = { text: "description", value: "code" };
12316
11469
  this.exceedanceCodeFields = { text: "description", value: "code" };
11470
+ this.turnoverGroupFields = { text: "description", value: "turnovergroupNr" };
11471
+ this.mainArticleFields = { text: "description", value: "articlenumber" };
12317
11472
  this.supplierFields = { text: "displayName", value: "relationId" };
11473
+ this.getArticles = (text) => {
11474
+ const request = new ArticleExtendedRequest();
11475
+ request.articleNumber = text;
11476
+ return this._transactionService.getArticles(request).then((articles) => {
11477
+ return new FilterViewmodel(articles, { text: 'articleNumber', value: 'articleNumber' }).filterItems;
11478
+ });
11479
+ };
12318
11480
  }
12319
11481
  showClass() {
12320
11482
  return true;
12321
11483
  }
12322
11484
  ngOnInit() {
12323
- this._setArticleNumbers();
12324
11485
  this._setExceedanceCodes();
12325
11486
  this._setSuppliers();
11487
+ this._setTurnoverGroups();
11488
+ this._setMainArticles();
12326
11489
  }
12327
11490
  onFilterButtonClick() {
12328
11491
  this.searchService.searchTransactions();
12329
11492
  }
12330
- //Artikelnummer
12331
- _setArticleNumbers() {
11493
+ handleCollectionChangeArticleNumber(collection) {
11494
+ const checkedItem = collection.find(c => c.checked);
11495
+ this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'articleNr');
12332
11496
  }
12333
11497
  _setExceedanceCodes() {
12334
11498
  this._transactionService.getInOutCollection("NL").then((exceedanceCodes) => {
12335
11499
  this.exceedanceCodes = new FilterViewmodel(exceedanceCodes, this.exceedanceCodeFields).filterItems;
12336
11500
  });
12337
11501
  }
11502
+ _setTurnoverGroups() {
11503
+ this._transactionService.getTurnoverGroups().then((turnoverGroups) => {
11504
+ this.turnoverGroups = new FilterViewmodel(turnoverGroups, this.turnoverGroupFields).filterItems;
11505
+ });
11506
+ }
11507
+ _setMainArticles() {
11508
+ this._transactionService.getMainArticles().then((articles) => {
11509
+ this.mainArticles = new FilterViewmodel(articles, this.mainArticleFields).filterItems;
11510
+ });
11511
+ }
12338
11512
  _setSuppliers() {
12339
11513
  const request = new RelationRequest();
12340
11514
  request.relationType = RelationKind.Supplier;
@@ -12349,32 +11523,33 @@ TransactionFilterContentArticleComponent.decorators = [
12349
11523
  template: `
12350
11524
  <div class="transaction-filter-content-article-wrapper">
12351
11525
 
12352
- <!--Artikelnummer: todo: wachten op API call -->
11526
+ <!--Artikelnummer-->
12353
11527
  <co-filter-item
12354
11528
  [placeholder]="'ARTICLE_NR' | localize"
12355
11529
  [expanded]="true"
12356
- [customContent]="true"
11530
+ [singleSelect]="true"
11531
+ [minSearchCharsToLoadCollection]="3"
11532
+ [collectionLoadFn]="getArticles"
11533
+ (collectionChange)="handleCollectionChangeArticleNumber($event)"
12357
11534
  >
12358
- <co-input-text [(model)]="searchRequest.mainArticleNrRange"
12359
- [placeholder]="'ARTICLE_NR' | localize"></co-input-text>
12360
11535
  </co-filter-item>
12361
11536
 
12362
- <!--Omzetgroep: todo: wachten op API call -->
11537
+ <!--Omzetgroep-->
12363
11538
  <co-filter-item
12364
11539
  [placeholder]="'TURNOVER_GROUP' | localize"
12365
- [customContent]="true"
12366
- [expanded]="true">
12367
- <co-input-text [(model)]="searchRequest.rangeTurnoverGroup"
12368
- [placeholder]="'TURNOVER_GROUP' | localize"></co-input-text>
11540
+ [expanded]="true"
11541
+ [collection]="turnoverGroups"
11542
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')"
11543
+ >
12369
11544
  </co-filter-item>
12370
11545
 
12371
- <!--Hoofdartikel: todo: wachten op API call -->
11546
+ <!--Hoofdartikel-->
12372
11547
  <co-filter-item
12373
11548
  [placeholder]="'MAIN_ARTICLE' | localize"
12374
- [customContent]="true"
12375
- [expanded]="true">
12376
- <co-input-text [(model)]="searchRequest.mainArticleNrRange"
12377
- [placeholder]="'MAIN_ARTICLE' | localize"></co-input-text>
11549
+ [expanded]="true"
11550
+ [collection]="mainArticles"
11551
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'mainArticleNrRange')"
11552
+ >
12378
11553
  </co-filter-item>
12379
11554
 
12380
11555
  <!--Uitloopcode -->
@@ -12385,7 +11560,7 @@ TransactionFilterContentArticleComponent.decorators = [
12385
11560
  [searchPlaceholder]="searchPlaceholder | localize"
12386
11561
  [showMoreLabel]="showMoreLabel | localize"
12387
11562
  [showLessLabel]="showLessLabel | localize"
12388
- (collectionChange)="this.filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')"
11563
+ (collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')"
12389
11564
  >
12390
11565
  </co-filter-item>
12391
11566
 
@@ -12397,7 +11572,7 @@ TransactionFilterContentArticleComponent.decorators = [
12397
11572
  [searchPlaceholder]="searchPlaceholder | localize"
12398
11573
  [showMoreLabel]="showMoreLabel | localize"
12399
11574
  [showLessLabel]="showLessLabel | localize"
12400
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
11575
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
12401
11576
  >
12402
11577
  </co-filter-item>
12403
11578
  <div class="filter-button-container">
@@ -12460,6 +11635,9 @@ class TransactionFilterContentLogisticsComponent {
12460
11635
  onFilterButtonClick() {
12461
11636
  this.searchService.searchTransactions();
12462
11637
  }
11638
+ handleAllocatedChange(value) {
11639
+ console.log(value);
11640
+ }
12463
11641
  _setRangeDates() {
12464
11642
  this.confirmedDeliveryStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 0);
12465
11643
  this.confirmedDeliveryEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 1);
@@ -12493,7 +11671,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12493
11671
  [searchPlaceholder]="searchPlaceholder | localize"
12494
11672
  [showMoreLabel]="showMoreLabel | localize"
12495
11673
  [showLessLabel]="showLessLabel | localize"
12496
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')">
11674
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')">
12497
11675
  </co-filter-item>
12498
11676
 
12499
11677
 
@@ -12504,56 +11682,39 @@ TransactionFilterContentLogisticsComponent.decorators = [
12504
11682
  [expanded]="true">
12505
11683
  <co-input-checkbox
12506
11684
  [model]="searchRequest.deliveryDateDefinitive === 'J'"
12507
- (modelChange)="this.filterRequestService.handleCheckboxValueChangeForString($event, 'deliveryDateDefinitive')"
11685
+ (modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'deliveryDateDefinitive')"
12508
11686
  [label]="'DELIVERY_DATE_FINAL' | localize"></co-input-checkbox>
12509
11687
  </co-filter-item>
12510
11688
 
12511
- <!--Toegewezen: todo: enum uizoeken en verwerken-->
12512
- <co-filter-item
12513
- [placeholder]="'ALLOCATED' | localize"
12514
- [customContent]="true"
12515
- [expanded]="true">
12516
- <co-input-text [(model)]="searchRequest.quantityAllocated"
12517
- [placeholder]="'ALLOCATED' | localize"></co-input-text>
12518
- </co-filter-item>
11689
+ <!--Toegewezen-->
11690
+ <co-transaction-filter-historic-state
11691
+ [label]="'ALLOCATED'"
11692
+ (filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityAllocated')"
11693
+ ></co-transaction-filter-historic-state>
12519
11694
 
12520
- <!--Geleverd: todo: enum uizoeken en verwerken-->
12521
- <co-filter-item
12522
- [placeholder]="'DELIVERED' | localize"
12523
- [customContent]="true"
12524
- [expanded]="true">
12525
- <co-input-text [(model)]="searchRequest.quantityDelivered"
12526
- [placeholder]="'DELIVERED' | localize"></co-input-text>
12527
- </co-filter-item>
11695
+ <!--Geleverd-->
11696
+ <co-transaction-filter-historic-state
11697
+ [label]="'DELIVERED'"
11698
+ (filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityDelivered')"
11699
+ ></co-transaction-filter-historic-state>
12528
11700
 
12529
- <!--Gefactureerd: todo: enum uizoeken en verwerken-->
12530
- <co-filter-item
12531
- [placeholder]="'INVOICED' | localize"
12532
- [customContent]="true"
12533
- [expanded]="true">
12534
- <co-input-text
12535
- [(model)]="searchRequest.quantityInvoiced"
12536
- [placeholder]="'INVOICED' | localize"></co-input-text>
12537
- </co-filter-item>
11701
+ <!--Gefactureerd-->
11702
+ <co-transaction-filter-historic-state
11703
+ [label]="'INVOICED'"
11704
+ (filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityInvoiced')"
11705
+ ></co-transaction-filter-historic-state>
12538
11706
 
12539
- <!--Te picken: todo: enum uizoeken en verwerken-->
12540
- <co-filter-item
12541
- [placeholder]="'TO_BE_PICKED' | localize"
12542
- [customContent]="true"
12543
- [expanded]="true">
12544
- <co-input-text [(model)]="searchRequest.quantityToBePicked"
12545
- [placeholder]="'TO_BE_PICKED' | localize"></co-input-text>
12546
- </co-filter-item>
11707
+ <!--Te picken-->
11708
+ <co-transaction-filter-historic-state
11709
+ [label]="'TO_BE_PICKED'"
11710
+ (filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityToBePicked')"
11711
+ ></co-transaction-filter-historic-state>
12547
11712
 
12548
- <!--Gepicked: todo: enum uizoeken en verwerken-->
12549
- <co-filter-item
12550
- [placeholder]="'PICKED' | localize"
12551
- [customContent]="true"
12552
- [expanded]="true">
12553
- <co-input-text
12554
- [(model)]="searchRequest.quantityPicked"
12555
- [placeholder]="'PICKED' | localize"></co-input-text>
12556
- </co-filter-item>
11713
+ <!--Gepicked-->
11714
+ <co-transaction-filter-historic-state
11715
+ [label]="'PICKED'"
11716
+ (filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityPicked')"
11717
+ ></co-transaction-filter-historic-state>
12557
11718
 
12558
11719
  <!--Bevestigde leverdatum-->
12559
11720
  <co-filter-item
@@ -12563,7 +11724,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12563
11724
  <co-input-date-range
12564
11725
  [startDate]="confirmedDeliveryStartDate"
12565
11726
  [endDate]="confirmedDeliveryEndDate"
12566
- (dateRangeChange)="this.filterRequestService.handleDateRangeChange($event, 'confirmedDeliveryDateRange')"
11727
+ (dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'confirmedDeliveryDateRange')"
12567
11728
  [placeholder]="'SELECT_DATE' | localize">
12568
11729
  </co-input-date-range>
12569
11730
  </co-filter-item>
@@ -12576,7 +11737,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12576
11737
  <co-input-date-range
12577
11738
  [startDate]="arrivalStartDate"
12578
11739
  [endDate]="arrivalEndDate"
12579
- (dateRangeChange)="this.filterRequestService.handleDateRangeChange($event, 'arrivalDateRange')"
11740
+ (dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'arrivalDateRange')"
12580
11741
  [placeholder]="'SELECT_DATE' | localize">
12581
11742
  </co-input-date-range>
12582
11743
  </co-filter-item>
@@ -12588,7 +11749,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12588
11749
  [expanded]="true">
12589
11750
  <co-input-checkbox
12590
11751
  [model]="searchRequest.partialDelivery === 'J'"
12591
- (modelChange)="this.filterRequestService.handleCheckboxValueChangeForString($event, 'partialDelivery')"
11752
+ (modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'partialDelivery')"
12592
11753
  [label]="'PART_DELIVERY' | localize">
12593
11754
  </co-input-checkbox>
12594
11755
  </co-filter-item>
@@ -12601,7 +11762,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12601
11762
  [searchPlaceholder]="searchPlaceholder | localize"
12602
11763
  [showMoreLabel]="showMoreLabel | localize"
12603
11764
  [showLessLabel]="showLessLabel | localize"
12604
- (collectionChange)="this.filterRequestService.handleCollectionChangeForSingleNumber($event, 'warehouse')">
11765
+ (collectionChange)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'warehouse')">
12605
11766
  </co-filter-item>
12606
11767
 
12607
11768
 
@@ -12613,7 +11774,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12613
11774
  [searchPlaceholder]="searchPlaceholder | localize"
12614
11775
  [showMoreLabel]="showMoreLabel | localize"
12615
11776
  [showLessLabel]="showLessLabel | localize"
12616
- (collectionChange)="this.filterRequestService.handleCollectionChangeForSingleNumber($event, 'sourceWarehouse')">
11777
+ (collectionChange)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'sourceWarehouse')">
12617
11778
  </co-filter-item>
12618
11779
 
12619
11780
 
@@ -12642,7 +11803,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
12642
11803
  <co-input-checkbox
12643
11804
  [label]="'INCLUDING_RETURNS' | localize"
12644
11805
  [model]="searchRequest.includingReturns === 1"
12645
- (modelChange)="this.filterRequestService.handleCheckboxValueChangeForNumber($event, 'includingReturns')"
11806
+ (modelChange)="filterRequestService.handleCheckboxValueChangeForNumber($event, 'includingReturns')"
12646
11807
  >
12647
11808
  </co-input-checkbox>
12648
11809
  </co-filter-item>
@@ -12673,6 +11834,83 @@ TransactionFilterContentLogisticsComponent.propDecorators = {
12673
11834
  showClass: [{ type: HostBinding, args: ["class.co-transaction-filter-content-logistics",] }]
12674
11835
  };
12675
11836
 
11837
+ class TransactionFilterHistoricStateComponent {
11838
+ constructor() {
11839
+ this.expanded = true;
11840
+ this.filterClicked = new EventEmitter();
11841
+ this.states = [];
11842
+ }
11843
+ set label(value) {
11844
+ this._label = value;
11845
+ this.groupName = this._label.toLowerCase() + "_group";
11846
+ this.labelNothing = "NOTHING_" + this._label.toUpperCase();
11847
+ this.labelPartly = "PARTLY_" + this._label.toUpperCase();
11848
+ this.labelFully = "FULLY_" + this._label.toUpperCase();
11849
+ this._setStates();
11850
+ }
11851
+ get label() {
11852
+ return this._label;
11853
+ }
11854
+ showClass() {
11855
+ return true;
11856
+ }
11857
+ handleStateChange(value) {
11858
+ this.filterClicked.emit(value);
11859
+ }
11860
+ _setStates() {
11861
+ this.states = [
11862
+ { label: this.labelNothing, value: QuantityInHistoricState.Nothing, checked: false },
11863
+ { label: this.labelPartly, value: QuantityInHistoricState.Partly, checked: false },
11864
+ { label: this.labelFully, value: QuantityInHistoricState.Fully, checked: false }
11865
+ ];
11866
+ }
11867
+ }
11868
+ TransactionFilterHistoricStateComponent.decorators = [
11869
+ { type: Component, args: [{
11870
+ selector: "co-transaction-filter-historic-state",
11871
+ template: `
11872
+ <co-filter-item
11873
+ [placeholder]="label | localize"
11874
+ [customContent]="true"
11875
+ [expanded]="expanded">
11876
+ <co-input-radio-button *ngFor="let state of states"
11877
+ [name]="groupName"
11878
+ [value]="state.value"
11879
+ [model]="state.checked"
11880
+ [label]="state.label | localize"
11881
+ (modelChange)="handleStateChange($event)"
11882
+ ></co-input-radio-button>
11883
+ </co-filter-item>
11884
+ `,
11885
+ encapsulation: ViewEncapsulation.None
11886
+ },] }
11887
+ ];
11888
+ TransactionFilterHistoricStateComponent.propDecorators = {
11889
+ label: [{ type: Input }],
11890
+ expanded: [{ type: Input }],
11891
+ filterClicked: [{ type: Output }],
11892
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-filter-historic-state",] }]
11893
+ };
11894
+
11895
+ class TransactionFilterHistoricStateModule {
11896
+ }
11897
+ TransactionFilterHistoricStateModule.decorators = [
11898
+ { type: NgModule, args: [{
11899
+ imports: [
11900
+ CommonModule,
11901
+ FilterItemModule,
11902
+ PipeModule,
11903
+ InputRadioButtonModule
11904
+ ],
11905
+ declarations: [
11906
+ TransactionFilterHistoricStateComponent
11907
+ ],
11908
+ exports: [
11909
+ TransactionFilterHistoricStateComponent
11910
+ ]
11911
+ },] }
11912
+ ];
11913
+
12676
11914
  class TransactionFilterContentLogisticsModule {
12677
11915
  }
12678
11916
  TransactionFilterContentLogisticsModule.decorators = [
@@ -12685,7 +11923,9 @@ TransactionFilterContentLogisticsModule.decorators = [
12685
11923
  PipeModule,
12686
11924
  InputDatePickerModule,
12687
11925
  ButtonModule,
12688
- InputCheckboxModule
11926
+ InputCheckboxModule,
11927
+ InputRadioButtonModule,
11928
+ TransactionFilterHistoricStateModule
12689
11929
  ],
12690
11930
  declarations: [
12691
11931
  TransactionFilterContentLogisticsComponent
@@ -12711,6 +11951,13 @@ class TransactionFilterContentOrderComponent {
12711
11951
  this.onHoldCodeFields = { text: "description", value: "onHoldCode" };
12712
11952
  this.commissionCodeFields = { text: "description", value: "code" };
12713
11953
  this.customerGroupFields = { text: "naam", value: "groepsnummer" };
11954
+ this.loadCustomers = (nameFilter) => __awaiter(this, void 0, void 0, function* () {
11955
+ const request = new RelationRequest();
11956
+ request.familyName = nameFilter;
11957
+ return this._transactionService.getRelationListObjects(request).then((relations) => {
11958
+ return new FilterViewmodel(relations, { text: 'familyName', value: 'familyName' }).filterItems;
11959
+ });
11960
+ });
12714
11961
  }
12715
11962
  showClass() {
12716
11963
  return true;
@@ -12727,6 +11974,10 @@ class TransactionFilterContentOrderComponent {
12727
11974
  onFilterButtonClick() {
12728
11975
  this.searchService.searchTransactions();
12729
11976
  }
11977
+ handleCollectionChangeCustomerName(collection) {
11978
+ const checkedItem = collection.find(c => c.checked);
11979
+ this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'relationName');
11980
+ }
12730
11981
  _setRangeDates() {
12731
11982
  this.transStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 0);
12732
11983
  this.transEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 1);
@@ -12784,7 +12035,7 @@ TransactionFilterContentOrderComponent.decorators = [
12784
12035
  <co-input-date-range
12785
12036
  [startDate]="transStartDate"
12786
12037
  [endDate]="transEndDate"
12787
- (dateRangeChange)="this.filterRequestService.handleDateRangeChange($event, 'rangeTransDate')"
12038
+ (dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'rangeTransDate')"
12788
12039
  [placeholder]="'SELECT_DATE' | localize">
12789
12040
  </co-input-date-range>
12790
12041
  </co-filter-item>
@@ -12797,7 +12048,7 @@ TransactionFilterContentOrderComponent.decorators = [
12797
12048
  <co-input-date-range
12798
12049
  [startDate]="deliveryStartDate"
12799
12050
  [endDate]="deliveryEndDate"
12800
- (dateRangeChange)="this.filterRequestService.handleDateRangeChange($event, 'deliveryDateRange')"
12051
+ (dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'deliveryDateRange')"
12801
12052
  [placeholder]="'SELECT_DATE' | localize">
12802
12053
  </co-input-date-range>
12803
12054
  </co-filter-item>
@@ -12810,7 +12061,7 @@ TransactionFilterContentOrderComponent.decorators = [
12810
12061
  [searchPlaceholder]="searchPlaceholder | localize"
12811
12062
  [showMoreLabel]="showMoreLabel | localize"
12812
12063
  [showLessLabel]="showLessLabel | localize"
12813
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')"
12064
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')"
12814
12065
  >
12815
12066
  </co-filter-item>
12816
12067
 
@@ -12822,7 +12073,7 @@ TransactionFilterContentOrderComponent.decorators = [
12822
12073
  [searchPlaceholder]="searchPlaceholder | localize"
12823
12074
  [showMoreLabel]="showMoreLabel | localize"
12824
12075
  [showLessLabel]="showLessLabel | localize"
12825
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')"
12076
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')"
12826
12077
  >
12827
12078
  </co-filter-item>
12828
12079
 
@@ -12843,7 +12094,7 @@ TransactionFilterContentOrderComponent.decorators = [
12843
12094
  [searchPlaceholder]="searchPlaceholder | localize"
12844
12095
  [showMoreLabel]="showMoreLabel | localize"
12845
12096
  [showLessLabel]="showLessLabel | localize"
12846
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event, 'tagRange')"
12097
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'tagRange')"
12847
12098
  >
12848
12099
  <co-input-text [(model)]="searchRequest.tagRange" [placeholder]="'TAGS' | localize"></co-input-text>
12849
12100
  </co-filter-item>
@@ -12856,7 +12107,7 @@ TransactionFilterContentOrderComponent.decorators = [
12856
12107
  [searchPlaceholder]="searchPlaceholder | localize"
12857
12108
  [showMoreLabel]="showMoreLabel | localize"
12858
12109
  [showLessLabel]="showLessLabel | localize"
12859
- (collectionChange)="this.filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')"
12110
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')"
12860
12111
  >
12861
12112
  <co-input-text [(model)]="searchRequest.tagRange" [placeholder]="'TAGS' | localize"></co-input-text>
12862
12113
  </co-filter-item>
@@ -12868,7 +12119,7 @@ TransactionFilterContentOrderComponent.decorators = [
12868
12119
  [expanded]="true">
12869
12120
  <co-input-checkbox
12870
12121
  [model]="searchRequest.transactionDefinitive === 'J'"
12871
- (modelChange)="this.filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')"
12122
+ (modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')"
12872
12123
  [label]="'ORDER_DEFINITIVE' | localize"></co-input-checkbox>
12873
12124
  </co-filter-item>
12874
12125
 
@@ -12880,7 +12131,7 @@ TransactionFilterContentOrderComponent.decorators = [
12880
12131
  [searchPlaceholder]="searchPlaceholder | localize"
12881
12132
  [showMoreLabel]="showMoreLabel | localize"
12882
12133
  [showLessLabel]="showLessLabel | localize"
12883
- (collectionChange)="this.filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')"
12134
+ (collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')"
12884
12135
  >
12885
12136
  </co-filter-item>
12886
12137
 
@@ -12896,13 +12147,15 @@ TransactionFilterContentOrderComponent.decorators = [
12896
12147
  ></co-input-checkbox>
12897
12148
  </co-filter-item>
12898
12149
 
12899
- <!--Klantnaam: voorlopig met input-text. todo: aanpassen als er een collection API is-->
12150
+ <!--Klantnaam-->
12900
12151
  <co-filter-item
12901
12152
  [placeholder]="'CUSTOMER_NAME' | localize"
12902
- [customContent]="true"
12903
- [expanded]="true">
12904
- <co-input-text [(model)]="searchRequest.relationName"
12905
- [placeholder]="'CUSTOMER_NAME' | localize"></co-input-text>
12153
+ [expanded]="true"
12154
+ [singleSelect]="true"
12155
+ [minSearchCharsToLoadCollection]="3"
12156
+ [collectionLoadFn]="loadCustomers"
12157
+ (collectionChange)="handleCollectionChangeCustomerName($event)"
12158
+ >
12906
12159
  </co-filter-item>
12907
12160
 
12908
12161
  <!--Klantgroep-->
@@ -12913,7 +12166,7 @@ TransactionFilterContentOrderComponent.decorators = [
12913
12166
  [searchPlaceholder]="searchPlaceholder | localize"
12914
12167
  [showMoreLabel]="showMoreLabel | localize"
12915
12168
  [showLessLabel]="showLessLabel | localize"
12916
- (collectionChange)="this.filterRequestService.handleCollectionChangeForSingleValue($event, 'customerGroupId')">
12169
+ (collectionChange)="filterRequestService.handleCollectionChangeForSingleValue($event, 'customerGroupId')">
12917
12170
  </co-filter-item>
12918
12171
  <div class="filter-button-container">
12919
12172
  <co-button class="clickable" [label]="'Filter'" (click)="onFilterButtonClick()"></co-button>
@@ -13242,5 +12495,5 @@ TransactionLineGridModule.decorators = [
13242
12495
  * Generated bundle index. Do not edit.
13243
12496
  */
13244
12497
 
13245
- export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressTileModule as ɵba, TileModule as ɵbb, TileComponent as ɵbc, RelationAddressTileComponent as ɵbd, RelationAddressSelectComponent as ɵbe, BusinessObjectFactory as ɵbf, StepperModule as ɵbg, StepperComponent as ɵbh, StepperStepComponent as ɵbi, TransactionArticleTextModule as ɵbj, TransactionArticleTextComponent as ɵbk, TransactionArticleTextOverviewModule as ɵbl, TransactionArticleTextOverviewComponent as ɵbm, TransactionImageService as ɵbn, AvatarModule as ɵbo, AvatarComponent as ɵbp, SharedService as ɵbq, SharedConnectorService as ɵbr, DeliveryTypeTileModule as ɵbs, DeliveryTypeTileComponent as ɵbt, PaymentModule as ɵbu, PaymentTileModule as ɵbv, PaymentTileComponent as ɵbw, PaymentComponent as ɵbx, PaymentService as ɵby, IOneConnectorAdapterService as ɵbz, OptionsService as ɵc, CheckoutOverviewRelationEditComponent as ɵca, CheckoutOverviewDeliveryEditComponent as ɵcb, CheckoutOverviewDeliveryAddressComponent as ɵcc, CheckOutRelationSuggestionsListComponent as ɵcd, CheckOutRelationSuggestionsListItemComponent as ɵce, CheckoutLoginComponent as ɵcf, TransactionHeaderModule$1 as ɵcg, TransactionHeaderBlockModule as ɵch, TransactionHeaderBlockComponent as ɵci, TransactionBaseComponent as ɵcj, TransactionHeaderPaymentModule as ɵck, TransactionHeaderPaymentComponent as ɵcl, TransactionHeaderComponent$1 as ɵcm, TransactionLinesGridModule as ɵcn, TransactionBaseGridModule as ɵco, TransactionLineSidePanelModule as ɵcp, TransactionLineSidePanelDefaultModule as ɵcq, TransactionLinePriceModule as ɵcr, TransactionLinePriceComponent as ɵcs, TransactionLineFieldsBaseComponent as ɵct, TransactionLinePriceListModule as ɵcu, TransactionLinePriceListComponent as ɵcv, TransactionLineVatModule as ɵcw, TransactionLineVatComponent as ɵcx, TransactionLineQuantityModule as ɵcy, TransactionLineQuantityComponent as ɵcz, DictionaryService as ɵd, TransactionLineLineDiscountModule as ɵda, TransactionLineLineDiscountComponent as ɵdb, TransactionLineDeliveryMethodModule as ɵdc, TransactionLineDeliveryMethodComponent as ɵdd, TransactionLineDeliveryDateModule as ɵde, TransactionLineDeliveryDateComponent as ɵdf, TransactionLineReferenceModule as ɵdg, TransactionLineReferenceComponent as ɵdh, TransactionLineCommissionCodeModule as ɵdi, TransactionLineCommissionCodeComponent as ɵdj, TransactionLineWarehouseModule as ɵdk, TransactionLineWarehouseComponent as ɵdl, TransactionLineDiscountAmountModule as ɵdm, TransactionLineDiscountAmountComponent as ɵdn, TransactionLineQuantumDiscountModule as ɵdo, TransactionLineQuantumDiscountComponent as ɵdp, TransactionLineSpecialDiscountModule as ɵdq, TransactionLineSpecialDiscountComponent as ɵdr, TransactionLineSidePanelDefaultComponent as ɵds, TransactionReceivingGoodsHistoryModule as ɵdt, TransactionHistoryGridModule as ɵdu, TransactionHistoryGridStatusModule as ɵdv, TransactionHistoryGridStatusComponent as ɵdw, TransactionHistoryGridComponent as ɵdx, TransactionReceivingGoodsHistoryComponent as ɵdy, TransactionReceivingGoodsDetailsModule as ɵdz, TransactionConnectorService as ɵe, TransactionReceivingGoodsDetailsComponent as ɵea, ArticleService as ɵeb, ArticleConnectorService as ɵec, TransactionButtonBarModule as ɵed, TransactionButtonBarComponent as ɵee, TransactionMappingService as ɵef, TransactionButtonBarButtonComponent as ɵeg, TransactionConfirmationHistoryModule as ɵeh, TransactionConfirmationHistoryComponent as ɵei, TransactionLineSidePanelPurchaseModule as ɵej, TransactionLineSidePanelPurchaseComponent as ɵek, TransactionEventService as ɵel, TransactionLineSidePanelComponent as ɵem, TransactionBaseGridComponent as ɵen, TransactionGridBaseComponent as ɵeo, TransactionLinesGridComponent as ɵep, DiscountModule as ɵeq, DiscountComponent as ɵer, TransactionQuickAccessOverviewModule as ɵes, TransactionQuickAccessOverviewComponent as ɵet, TransactionOrderConfirmationGridModule as ɵeu, TransactionOrderConfirmationGridComponent as ɵev, TransactionReceivedGoodsGridModule as ɵew, TransactionReceivedGoodsGridComponent as ɵex, ViewModeButtonsModule as ɵey, ViewModeButtonsComponent as ɵez, CollectionCacheService as ɵf, TransactionGridModule as ɵfa, TransactionGridComponent as ɵfb, TransactionSearchResultModule as ɵfc, TransactionTileModule as ɵfd, TransactionTileComponent as ɵfe, TransactionSearchGridModule as ɵff, TransactionSearchGridComponent as ɵfg, TransactionSearchResultComponent as ɵfh, TransactionSearchService as ɵfi, TransactionFilterModule as ɵfj, TransactionFilterCategoriesModule as ɵfk, TransactionFilterCategoriesComponent as ɵfl, TransactionFilterContentOrderModule as ɵfm, TransactionFilterContentOrderComponent as ɵfn, FilterRequestService as ɵfo, TransactionFilterContentLogisticsModule as ɵfp, TransactionFilterContentLogisticsComponent as ɵfq, TransactionFilterContentArticleModule as ɵfr, TransactionFilterContentArticleComponent as ɵfs, TransactionFilterComponent as ɵft, CoreModule as ɵg, ConfirmationDialogModule as ɵh, PipeModule as ɵi, AppendPipe as ɵj, DeliveryTimePipe as ɵk, DateDurationPipe as ɵl, LocalizePipe as ɵm, CoCurrencyPipe as ɵn, SafeStylePipe as ɵo, SafeHtmlPipe as ɵp, ConfirmationDialogComponent as ɵq, DialogBaseComponent as ɵr, ImageDisplayComponent as ɵs, IconComponent as ɵt, IconCacheService as ɵu, CustomerGroupsComponent as ɵv, StockStatusIndicatorComponent as ɵw, RelationAddressModule as ɵx, RelationAddressComponent as ɵy, RelationAddressSelectModule as ɵz };
12498
+ export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressSelectModule as ɵba, RelationAddressTileModule as ɵbb, TileModule as ɵbc, TileComponent as ɵbd, RelationAddressTileComponent as ɵbe, RelationAddressSelectComponent as ɵbf, BusinessObjectFactory as ɵbg, StepperModule as ɵbh, StepperComponent as ɵbi, StepperStepComponent as ɵbj, TransactionArticleTextModule as ɵbk, TransactionArticleTextComponent as ɵbl, TransactionArticleTextOverviewModule as ɵbm, TransactionArticleTextOverviewComponent as ɵbn, TransactionImageService as ɵbo, AvatarModule as ɵbp, AvatarComponent as ɵbq, SharedService as ɵbr, SharedConnectorService as ɵbs, DeliveryTypeTileModule as ɵbt, DeliveryTypeTileComponent as ɵbu, PaymentModule as ɵbv, PaymentTileModule as ɵbw, PaymentTileComponent as ɵbx, PaymentComponent as ɵby, PaymentService as ɵbz, OptionsService as ɵc, CheckoutOverviewRelationEditComponent as ɵca, CheckoutOverviewDeliveryEditComponent as ɵcb, CheckoutOverviewDeliveryAddressComponent as ɵcc, CheckOutRelationSuggestionsListComponent as ɵcd, CheckOutRelationSuggestionsListItemComponent as ɵce, CheckoutLoginComponent as ɵcf, TransactionHeaderModule$1 as ɵcg, TransactionHeaderBlockModule as ɵch, TransactionHeaderBlockComponent as ɵci, TransactionBaseComponent as ɵcj, TransactionHeaderPaymentModule as ɵck, TransactionHeaderPaymentComponent as ɵcl, TransactionHeaderComponent$1 as ɵcm, TransactionLinesGridModule as ɵcn, TransactionBaseGridModule as ɵco, TransactionLineSidePanelModule as ɵcp, TransactionLineSidePanelDefaultModule as ɵcq, TransactionLinePriceModule as ɵcr, TransactionLinePriceComponent as ɵcs, TransactionLineFieldsBaseComponent as ɵct, TransactionLinePriceListModule as ɵcu, TransactionLinePriceListComponent as ɵcv, TransactionLineVatModule as ɵcw, TransactionLineVatComponent as ɵcx, TransactionLineQuantityModule as ɵcy, TransactionLineQuantityComponent as ɵcz, DictionaryService as ɵd, TransactionLineLineDiscountModule as ɵda, TransactionLineLineDiscountComponent as ɵdb, TransactionLineDeliveryMethodModule as ɵdc, TransactionLineDeliveryMethodComponent as ɵdd, TransactionLineDeliveryDateModule as ɵde, TransactionLineDeliveryDateComponent as ɵdf, TransactionLineReferenceModule as ɵdg, TransactionLineReferenceComponent as ɵdh, TransactionLineCommissionCodeModule as ɵdi, TransactionLineCommissionCodeComponent as ɵdj, TransactionLineWarehouseModule as ɵdk, TransactionLineWarehouseComponent as ɵdl, TransactionLineDiscountAmountModule as ɵdm, TransactionLineDiscountAmountComponent as ɵdn, TransactionLineQuantumDiscountModule as ɵdo, TransactionLineQuantumDiscountComponent as ɵdp, TransactionLineSpecialDiscountModule as ɵdq, TransactionLineSpecialDiscountComponent as ɵdr, TransactionLineSidePanelDefaultComponent as ɵds, TransactionReceivingGoodsHistoryModule as ɵdt, TransactionHistoryGridModule as ɵdu, TransactionHistoryGridStatusModule as ɵdv, TransactionHistoryGridStatusComponent as ɵdw, TransactionHistoryGridComponent as ɵdx, TransactionReceivingGoodsHistoryComponent as ɵdy, TransactionReceivingGoodsDetailsModule as ɵdz, TransactionConnectorService as ɵe, TransactionReceivingGoodsDetailsComponent as ɵea, ArticleService as ɵeb, TransactionButtonBarModule as ɵec, TransactionButtonBarComponent as ɵed, TransactionMappingService as ɵee, TransactionButtonBarButtonComponent as ɵef, TransactionConfirmationHistoryModule as ɵeg, TransactionConfirmationHistoryComponent as ɵeh, TransactionLineSidePanelPurchaseModule as ɵei, TransactionLineSidePanelPurchaseComponent as ɵej, TransactionEventService as ɵek, TransactionLineSidePanelComponent as ɵel, TransactionBaseGridComponent as ɵem, TransactionGridBaseComponent as ɵen, TransactionLinesGridComponent as ɵeo, DiscountModule as ɵep, DiscountComponent as ɵeq, TransactionQuickAccessOverviewModule as ɵer, TransactionQuickAccessOverviewComponent as ɵes, TransactionOrderConfirmationGridModule as ɵet, TransactionOrderConfirmationGridComponent as ɵeu, TransactionReceivedGoodsGridModule as ɵev, TransactionReceivedGoodsGridComponent as ɵew, ViewModeButtonsModule as ɵex, ViewModeButtonsComponent as ɵey, TransactionGridModule as ɵez, CollectionCacheService as ɵf, TransactionGridComponent as ɵfa, TransactionSearchService as ɵfb, TransactionSearchResultModule as ɵfc, TransactionTileModule as ɵfd, TransactionTileComponent as ɵfe, TransactionSearchGridModule as ɵff, TransactionSearchGridComponent as ɵfg, TransactionSearchResultComponent as ɵfh, TransactionFilterModule as ɵfi, TransactionFilterCategoriesModule as ɵfj, TransactionFilterCategoriesComponent as ɵfk, TransactionFilterContentOrderModule as ɵfl, TransactionFilterContentOrderComponent as ɵfm, FilterRequestService as ɵfn, TransactionFilterContentLogisticsModule as ɵfo, TransactionFilterHistoricStateModule as ɵfp, TransactionFilterHistoricStateComponent as ɵfq, TransactionFilterContentLogisticsComponent as ɵfr, TransactionFilterContentArticleModule as ɵfs, TransactionFilterContentArticleComponent as ɵft, TransactionFilterComponent as ɵfu, ArticleConnectorService as ɵg, CoreModule as ɵh, ConfirmationDialogModule as ɵi, PipeModule as ɵj, AppendPipe as ɵk, DeliveryTimePipe as ɵl, DateDurationPipe as ɵm, LocalizePipe as ɵn, CoCurrencyPipe as ɵo, SafeStylePipe as ɵp, SafeHtmlPipe as ɵq, ConfirmationDialogComponent as ɵr, DialogBaseComponent as ɵs, ImageDisplayComponent as ɵt, IconComponent as ɵu, IconCacheService as ɵv, CustomerGroupsComponent as ɵw, StockStatusIndicatorComponent as ɵx, RelationAddressModule as ɵy, RelationAddressComponent as ɵz };
13246
12499
  //# sourceMappingURL=colijnit-transaction.js.map