@colijnit/transaction 12.1.31 → 12.1.33

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 (118) hide show
  1. package/bundles/colijnit-transaction.umd.js +3551 -2207
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +246 -238
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +247 -239
  6. package/esm2015/lib/assets/dictionary/text.properties.js +13 -1
  7. package/esm2015/lib/cache/cache-field.js +75 -0
  8. package/esm2015/lib/cache/parameter-cache-field.js +54 -0
  9. package/esm2015/lib/cache/service/business-object-cache-manager.service.js +150 -0
  10. package/esm2015/lib/cache/service/select-multiple-cache.service.js +38 -0
  11. package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +47 -0
  12. package/esm2015/lib/cache/service/select-single-cache.service.js +30 -0
  13. package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +2 -2
  14. package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.component.js +3 -3
  15. package/esm2015/lib/component/core/base/transaction-header-base.component.js +58 -0
  16. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.js +35 -0
  17. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.module.js +28 -0
  18. package/esm2015/lib/component/payment/payment.component.js +2 -2
  19. package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +2 -2
  20. package/esm2015/lib/component/relation/relation-general/relation-general.component.js +2 -2
  21. package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.module.js +4 -2
  22. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +17 -5
  23. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +17 -8
  24. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +7 -1
  25. package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +3 -3
  26. package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +30 -16
  27. package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +3 -3
  28. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +3 -3
  29. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-method.component.js +3 -3
  30. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-options.component.js +3 -3
  31. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +3 -3
  32. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +3 -3
  33. package/esm2015/lib/component/transaction-header-fields/transaction-header-marketing.component.js +19 -10
  34. package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +3 -3
  35. package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +3 -3
  36. package/esm2015/lib/component/transaction-header-fields/transaction-header-reference.component.js +3 -3
  37. package/esm2015/lib/component/transaction-header-fields/transaction-header-relation-reference.component.js +3 -3
  38. package/esm2015/lib/component/transaction-header-fields/transaction-header-remarks.component.js +3 -3
  39. package/esm2015/lib/component/transaction-line/transaction-line.component.js +29 -11
  40. package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
  41. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +35 -12
  42. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.module.js +4 -3
  43. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +4 -1
  44. package/esm2015/lib/component/transaction-lines/transaction-lines.module.js +4 -3
  45. package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-article/transaction-purchase-order-filter-content-article.component.js +14 -1
  46. package/esm2015/lib/enum/icon.enum.js +6 -2
  47. package/esm2015/lib/model/icon-svg.js +6 -2
  48. package/esm2015/lib/service/article-connector.service.js +24 -29
  49. package/esm2015/lib/service/article.service.js +8 -4
  50. package/esm2015/lib/service/error.service.js +33 -0
  51. package/esm2015/lib/service/payment.service.js +20 -13
  52. package/esm2015/lib/service/pending-reason.service.js +3 -2
  53. package/esm2015/lib/service/transaction-connector-adapter.service.js +1388 -0
  54. package/esm2015/lib/service/transaction-connector.service.js +163 -1067
  55. package/esm2015/lib/service/transaction-mapping.service.js +2 -2
  56. package/esm2015/lib/service/transaction.service.js +8 -4
  57. package/fesm2015/colijnit-transaction.js +2188 -1152
  58. package/fesm2015/colijnit-transaction.js.map +1 -1
  59. package/lib/cache/cache-field.d.ts +25 -0
  60. package/lib/cache/parameter-cache-field.d.ts +11 -0
  61. package/lib/cache/service/business-object-cache-manager.service.d.ts +57 -0
  62. package/lib/cache/service/select-multiple-cache.service.d.ts +15 -0
  63. package/lib/cache/service/select-multiple-parameterized-cache.service.d.ts +19 -0
  64. package/lib/cache/service/select-single-cache.service.d.ts +11 -0
  65. package/lib/component/core/base/transaction-header-base.component.d.ts +28 -0
  66. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.d.ts +4 -0
  67. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.module.d.ts +2 -0
  68. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_layout.scss +19 -0
  69. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_material-definition.scss +0 -0
  70. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_theme.scss +4 -0
  71. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/material.scss +5 -0
  72. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_layout.scss +19 -0
  73. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_material-definition.scss +0 -0
  74. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_theme.scss +4 -0
  75. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/material.scss +5 -0
  76. package/lib/component/relation/relation-contact-details/style/_layout.scss +11 -0
  77. package/lib/component/relation/relation-contact-details/style/_material-definition.scss +2 -0
  78. package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +3 -2
  79. package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +4 -2
  80. package/lib/component/transaction-header/transaction-header-delivery/style/_theme.scss +3 -1
  81. package/lib/component/transaction-header/transaction-header-relation/style/_layout.scss +3 -0
  82. package/lib/component/transaction-header/transaction-header-relation/style/material.scss +1 -0
  83. package/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.d.ts +2 -2
  84. package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +4 -9
  85. package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +2 -2
  86. package/lib/component/transaction-header-fields/transaction-header-delivery-date.component.d.ts +2 -2
  87. package/lib/component/transaction-header-fields/transaction-header-delivery-method.component.d.ts +2 -2
  88. package/lib/component/transaction-header-fields/transaction-header-delivery-options.component.d.ts +2 -2
  89. package/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.d.ts +2 -2
  90. package/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.d.ts +2 -2
  91. package/lib/component/transaction-header-fields/transaction-header-marketing.component.d.ts +2 -8
  92. package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +2 -2
  93. package/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.d.ts +2 -2
  94. package/lib/component/transaction-header-fields/transaction-header-reference.component.d.ts +2 -2
  95. package/lib/component/transaction-header-fields/transaction-header-relation-reference.component.d.ts +2 -2
  96. package/lib/component/transaction-header-fields/transaction-header-remarks.component.d.ts +2 -2
  97. package/lib/component/transaction-line/style/_layout.scss +20 -5
  98. package/lib/component/transaction-line/style/_material-definition.scss +8 -0
  99. package/lib/component/transaction-line/style/_theme.scss +2 -1
  100. package/lib/component/transaction-line/style/material.scss +1 -0
  101. package/lib/component/transaction-line/transaction-line.component.d.ts +2 -0
  102. package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +6 -2
  103. package/lib/component/transaction-lines/style/_layout.scss +16 -3
  104. package/lib/enum/icon.enum.d.ts +5 -1
  105. package/lib/service/article-connector.service.d.ts +1 -3
  106. package/lib/service/article.service.d.ts +3 -1
  107. package/lib/service/error.service.d.ts +8 -0
  108. package/lib/service/payment.service.d.ts +5 -3
  109. package/lib/service/pending-reason.service.d.ts +2 -1
  110. package/lib/service/transaction-connector-adapter.service.d.ts +152 -0
  111. package/lib/service/transaction-connector.service.d.ts +13 -13
  112. package/lib/style/_variables.scss +3 -1
  113. package/lib/style/transaction-globals.scss +6 -0
  114. package/package.json +1 -1
  115. package/esm2015/lib/component/transaction-header-fields/transaction-header-fields-base.component.js +0 -27
  116. package/esm2015/lib/service/collection-cache.service.js +0 -40
  117. package/lib/component/transaction-header-fields/transaction-header-fields-base.component.d.ts +0 -8
  118. package/lib/service/collection-cache.service.d.ts +0 -6
@@ -1,25 +1,37 @@
1
1
  import { __awaiter } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, Component, ViewEncapsulation, Input, HostBinding, EventEmitter, ChangeDetectorRef, Output, Directive, ComponentFactoryResolver, ApplicationRef, Injector, ViewChild, Pipe, NgModule, ElementRef, ContentChildren, HostListener } from '@angular/core';
3
+ import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, HostBinding, ChangeDetectorRef, Output, Directive, ComponentFactoryResolver, ApplicationRef, Injector, ViewChild, Pipe, NgModule, ElementRef, ContentChildren, HostListener } from '@angular/core';
4
4
  import { PendingReasonType } from '@colijnit/transactionapi/build/enum/pending-reason-type.enum';
5
5
  import { SequenceName } from '@colijnit/transactionapi/build/enum/sequence-name.enum';
6
6
  import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
7
7
  import { TransactionLineType } from '@colijnit/transactionapi/build/enum/transaction-line-type.enum';
8
8
  import { NULL_CUSTOMER_FULL_OBJECT, NULL_RELATION_OBJECT } from '@colijnit/transactionapi/build/model/nul-relation-object';
9
- import { BehaviorSubject, throwError, Subject } from 'rxjs';
9
+ import { BehaviorSubject, Subject, throwError } from 'rxjs';
10
10
  import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
11
11
  import { Marketing } from '@colijnit/transactionapi/build/model/marketing.bo';
12
12
  import { CustomerFullObject } from '@colijnit/transactionapi/build/model/customer-full-object.bo';
13
- import { RelationPrivacySetting } from '@colijnit/transactionapi/build/model/relation-privacy-setting.bo';
13
+ import { Country } from '@colijnit/transactionapi/build/model/country.bo';
14
+ import { PrivacySetting } from '@colijnit/transactionapi/build/model/privacy-setting.bo';
14
15
  import { DeliveryMethod } from '@colijnit/transactionapi/build/model/delivery-method.bo';
15
16
  import { DeliveryOption } from '@colijnit/transactionapi/build/model/delivery-option.bo';
16
- import { GetPostalCodeRetrievalOutputParams } from '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params';
17
- import { RelationListObject } from '@colijnit/transactionapi/build/model/relation-list-object.bo';
18
17
  import { CoDomainValue } from '@colijnit/transactionapi/build/model/co-domain-value.bo';
19
18
  import { ArticleFullObject } from '@colijnit/transactionapi/build/model/article-full-object';
19
+ import { CustomerGroup } from '@colijnit/transactionapi/build/model/customer-group.bo';
20
+ import { CashRegister } from '@colijnit/transactionapi/build/model/cash-register';
21
+ import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
22
+ import { Vat } from '@colijnit/transactionapi/build/model/vat';
23
+ import { BranchLov } from '@colijnit/transactionapi/build/model/branch-lov.bo';
24
+ import { SalesPerson } from '@colijnit/transactionapi/build/model/sales-person.bo';
25
+ import { Tag } from '@colijnit/transactionapi/build/model/tag';
26
+ import { OnHoldCode } from '@colijnit/transactionapi/build/model/on-hold-code.bo';
27
+ import { Warehouse } from '@colijnit/transactionapi/build/model/warehouse.bo';
28
+ import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
29
+ import { ObjectUtils } from '@colijnit/transactionapi/build/utils/object-utils';
30
+ import { RelationPrivacySetting } from '@colijnit/transactionapi/build/model/relation-privacy-setting.bo';
31
+ import { GetPostalCodeRetrievalOutputParams } from '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params';
32
+ import { RelationListObject } from '@colijnit/transactionapi/build/model/relation-list-object.bo';
20
33
  import { Transaction } from '@colijnit/transactionapi/build/transaction';
21
34
  import { notNill } from '@colijnit/transactionapi/build/utils/function/not-nill.function';
22
- import { ObjectUtils } from '@colijnit/transactionapi/build/utils/object-utils';
23
35
  import { GetYesNoDbBooleanValue } from '@colijnit/transactionapi/build/enum/yes-no-db-type.enum';
24
36
  import { GetTrueFalseDbBooleanValue } from '@colijnit/transactionapi/build/enum/true-false-db-type.enum';
25
37
  import { GetOneZeroDbBooleanValue } from '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum';
@@ -32,25 +44,15 @@ import { BooleanTextDecorator as BooleanTextDecorator$1 } from '@colijnit/transa
32
44
  import { JsonFieldFieldDecorator } from '@colijnit/transactionapi/build/factory/decorators/json.decorator';
33
45
  import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator';
34
46
  import { ImageUtils } from '@colijnit/transactionapi/build/utils/image-utils';
35
- import { CustomerGroup } from '@colijnit/transactionapi/build/model/customer-group.bo';
36
47
  import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
37
- import { CashRegister } from '@colijnit/transactionapi/build/model/cash-register';
38
- import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
39
- import { Vat } from '@colijnit/transactionapi/build/model/vat';
40
48
  import { TransactionSearchView } from '@colijnit/transactionapi/build/model/transaction-search-view.bo';
41
- import { BranchLov } from '@colijnit/transactionapi/build/model/branch-lov.bo';
42
- import { SalesPerson } from '@colijnit/transactionapi/build/model/sales-person.bo';
43
- import { Tag } from '@colijnit/transactionapi/build/model/tag';
44
- import { OnHoldCode } from '@colijnit/transactionapi/build/model/on-hold-code.bo';
45
- import { Warehouse } from '@colijnit/transactionapi/build/model/warehouse.bo';
46
49
  import { CodeDescription } from '@colijnit/transactionapi/build/model/code-description';
47
50
  import { GoodsReceiptStatusWithHistory } from '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo';
48
- import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
49
51
  import { PurchasePortalLine } from '@colijnit/transactionapi/build/model/purchase-portal-line.bo';
50
52
  import { CreatePaymentLinkResult } from '@colijnit/transactionapi/build/model/create-payment-link-result.bo';
51
53
  import { PaymentLinkStatus } from '@colijnit/transactionapi/build/model/payment-link-status.bo';
52
- import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
53
54
  import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
55
+ import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
54
56
  import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
55
57
  import { Articles } from '@colijnit/articleapi/build/articles';
56
58
  import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
@@ -219,6 +221,7 @@ class Dictionary {
219
221
  "CHECKOUT_FINISH": "Bestelling afronden",
220
222
  "CITY": "Stad",
221
223
  "CLIENT_DATA": "Klantgegevens",
224
+ "CLIENT_INFORMATION": "Klantinformatie",
222
225
  "COMPANY": "Bedrijf",
223
226
  "COMPANY_NAME": "Bedrijfsnaam",
224
227
  "COMMISSION_CODE": "Commisiecode",
@@ -258,6 +261,7 @@ class Dictionary {
258
261
  "DELIVERY_DATE_DEFINITIVE": "Leverdatum definitief",
259
262
  "DELIVERY_DATE_FINAL": "Definitieve leverdatum",
260
263
  "DELIVERY_DIRECT": "Direct leverbaar",
264
+ "DELIVERY_INFORMATION": "Leverinformatie",
261
265
  "DELIVERY_LOCATION": "Bezorgingslocatie",
262
266
  "DELIVERY_NOTE": "Afleverbon",
263
267
  "DELIVERY_OPTIONS": "Leveropties",
@@ -368,6 +372,7 @@ class Dictionary {
368
372
  "ORDER_TYPE": "Type bestelling",
369
373
  "ORDERED": "Besteld",
370
374
  "OTHER": "Overig",
375
+ "OVERVIEW": "Overzicht",
371
376
  "OVERVIEW_AND_PAYMENT": "Overzicht en betaling",
372
377
  "OWN_REFERENCE": "Eigen referentie",
373
378
  "PACKING_SLIP": "Pakbon",
@@ -384,6 +389,7 @@ class Dictionary {
384
389
  "PASSWORD": "Wachtwoord",
385
390
  "PAY": "Betalen",
386
391
  "PAYMENT": "Betaling",
392
+ "PAYMENT_INFORMATION": "Betaalinformatie",
387
393
  "PAYMENT_METHOD": "Betaalmethode",
388
394
  "PERSONAL_DATA": "Basisgegevens",
389
395
  "PICKED": "Gepickt",
@@ -433,6 +439,7 @@ class Dictionary {
433
439
  "SEARCH_DELIVERY_METHOD": "Zoek levermethode",
434
440
  "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
435
441
  "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
442
+ "SEARCH_VAT": "Zoek btw",
436
443
  "SEARCH_WAREHOUSE": "Zoek magazijn",
437
444
  "SELECT": "Selecteren",
438
445
  "SELECT_A": "Selecteer een",
@@ -484,6 +491,7 @@ class Dictionary {
484
491
  "UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
485
492
  "USER": "Gebruiker",
486
493
  "VAT": "Btw",
494
+ "VAT2": "BTW",
487
495
  "VAT_AMOUNT": "BTW-bedrag",
488
496
  "VALUE": "Waarde",
489
497
  "WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
@@ -542,6 +550,7 @@ class Dictionary {
542
550
  "CHECKOUT_FINISH": "Finish checkout",
543
551
  "CITY": "City",
544
552
  "CLIENT_DATA": "Client data",
553
+ "CLIENT_INFORMATION": "Client information",
545
554
  "COMPANY": "Company",
546
555
  "COMPANY_NAME": "Company name",
547
556
  "COMMISSION_CODE": "Commission code",
@@ -580,6 +589,7 @@ class Dictionary {
580
589
  "DELIVERY_DATE_DEFINITIVE": "Delivery date definitive",
581
590
  "DELIVERY_DATE_FINAL": "Final delivery date",
582
591
  "DELIVERY_DIRECT": "Direct delivery",
592
+ "DELIVERY_INFORMATION": "Direct information",
583
593
  "DELIVERY_LOCATION": "Delivery location",
584
594
  "DELIVERY_NOTE": "Delivery note",
585
595
  "DELIVERY_OPTIONS": "Delivery options",
@@ -689,6 +699,7 @@ class Dictionary {
689
699
  "ORDER_TYPE": "Order type",
690
700
  "ORDERED": "Ordered",
691
701
  "OTHER": "Other",
702
+ "OVERVIEW": "Overview",
692
703
  "OVERVIEW_AND_PAYMENT": "Overview and payment",
693
704
  "OWN_REFERENCE": "Own reference",
694
705
  "PACKING_SLIP": "Packing slip",
@@ -705,6 +716,7 @@ class Dictionary {
705
716
  "PASSWORD": "Password",
706
717
  "PAY": "Pay",
707
718
  "PAYMENT": "Payment",
719
+ "PAYMENT_INFORMATION": "Payment information",
708
720
  "PAYMENT_METHOD": "Payment method",
709
721
  "PERSONAL_DATA": "Personal data",
710
722
  "PHONE_NO": "Telephone number",
@@ -745,6 +757,7 @@ class Dictionary {
745
757
  "SEARCH_DELIVERY_METHOD": "Search deliverymethod",
746
758
  "SEARCH_IN_COLLECTION": "Search in collection...",
747
759
  "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
760
+ "SEARCH_VAT": "Search vat",
748
761
  "SEARCH_WAREHOUSE": "Search warehouse",
749
762
  "SELECT": "Select",
750
763
  "SELECT_A": "Select a",
@@ -796,6 +809,7 @@ class Dictionary {
796
809
  "USER": "User",
797
810
  "VALUE": "Value",
798
811
  "VAT": "VAT",
812
+ "VAT2": "VAT",
799
813
  "VAT_AMOUNT": "VAT amount",
800
814
  "WAREHOUSE": "Warehouse",
801
815
  "WHERE_ARE_YOU_LOOKING_FOR": "Where are you looking for?",
@@ -944,6 +958,351 @@ OptionsService.ctorParameters = () => [
944
958
  { type: DictionaryService }
945
959
  ];
946
960
 
961
+ // Class represents a value that is to be loaded only once, lazily, by its .loadFunction, despite how many times or how fast its getValue() is called.
962
+ class CacheField {
963
+ constructor() {
964
+ this.onLoad = new EventEmitter();
965
+ this._isLoaded = false;
966
+ }
967
+ // The value of this cache field. Warning: might not have been loaded yet. Call ensureLoaded() or getvalue() for true value.
968
+ get value() {
969
+ return this._value;
970
+ }
971
+ set value(value) {
972
+ this._value = value;
973
+ this._promiseValue = Promise.resolve(value);
974
+ this._isLoaded = true;
975
+ }
976
+ // Whether the value has been loaded or not.
977
+ get isLoaded() {
978
+ return this._isLoaded;
979
+ }
980
+ // Whether the value is currently loading or not.
981
+ get isLoading() {
982
+ return !this._isLoaded && (this._promiseValue !== null && this._promiseValue !== undefined);
983
+ }
984
+ get loadNeverCalled() {
985
+ return !this.isLoading && !this.isLoaded;
986
+ }
987
+ // Loads and returns the value. Only loads from db if it wasn't loaded before (or forceReload was given true)
988
+ getValue(forceReload) {
989
+ return this.ensureLoaded(forceReload);
990
+ }
991
+ setValue(value) {
992
+ this.value = value;
993
+ }
994
+ /**
995
+ * POSTCONDITION: The .value of this cache field contains the loaded value as fetched by the resolve data of its .loadFunction.
996
+ * Will load only once, consecutive calls will resolve immediately or wait until the first original database fetch was finished.
997
+ * @returns {Promise<any>} Postcondition holds after resolve
998
+ */
999
+ ensureLoaded(forceReload) {
1000
+ if (!forceReload && this._promiseValue) {
1001
+ return this._promiseValue;
1002
+ }
1003
+ else {
1004
+ return this._load();
1005
+ }
1006
+ }
1007
+ // POSTCONDITION: The .value of this cache field contains a freshly loaded value as fetched by the resolve data of its loadFunction.
1008
+ reload() {
1009
+ return this.ensureLoaded(true);
1010
+ }
1011
+ // Resets / invaldates this cache field. Makes sure that the next load() will really perform its load function body again (e.g. visit the DB,
1012
+ // if that's ur function)
1013
+ reset() {
1014
+ this._value = undefined;
1015
+ this._promiseValue = undefined;
1016
+ this._isLoaded = false;
1017
+ }
1018
+ _load() {
1019
+ if (this.loadFunction) {
1020
+ this._promiseValue = this.loadFunction.call(this);
1021
+ this._promiseValue.then((value) => {
1022
+ this._value = value;
1023
+ this._isLoaded = true;
1024
+ this.onLoad.emit();
1025
+ return value;
1026
+ });
1027
+ return this._promiseValue;
1028
+ }
1029
+ else {
1030
+ return Promise.resolve(undefined);
1031
+ }
1032
+ }
1033
+ }
1034
+
1035
+ // Class represents cached values retrieved by a load function that is to be called only once per unique input parameter combination.
1036
+ class ParameterCacheField {
1037
+ constructor() {
1038
+ // A map from cache params (keys: the loadFunction arguments) to their cache fields
1039
+ this._paramsToCacheItems = new Map();
1040
+ }
1041
+ // Returns the value for given loadfunction parameters. Loads if not yet loaded.
1042
+ getValue(...params) {
1043
+ return this._getCacheField(params).getValue();
1044
+ }
1045
+ setValue(value, ...params) {
1046
+ return this._getCacheField(params).setValue(value);
1047
+ }
1048
+ // Returns the freshly reloaded value for given loadfunction parameters.
1049
+ reload(...params) {
1050
+ return this._getCacheField(params).reload();
1051
+ }
1052
+ // Resets one or all cache items. If no params given, resets ALL cache items.
1053
+ reset(...params) {
1054
+ if (params && params.length > 0) {
1055
+ this._getCacheField(params).reset();
1056
+ }
1057
+ else {
1058
+ this._paramsToCacheItems.forEach(cacheItem => cacheItem.reset());
1059
+ this._paramsToCacheItems.clear();
1060
+ this._paramsToCacheItems = new Map(); // not sure if clear() is enough for garbage collector?
1061
+ }
1062
+ }
1063
+ // Makes a new cache field if none existed for these params. Returns the cache field that matches given params.
1064
+ _getCacheField(params) {
1065
+ let existingCacheField = undefined;
1066
+ this._paramsToCacheItems.forEach((value, key) => {
1067
+ if (!existingCacheField && ObjectUtils.DeepEquals(params, key)) {
1068
+ existingCacheField = value;
1069
+ }
1070
+ });
1071
+ if (existingCacheField) {
1072
+ return existingCacheField;
1073
+ }
1074
+ else {
1075
+ return this._makeNewCacheField(params);
1076
+ }
1077
+ }
1078
+ // Creates and returns a new loadField for given params
1079
+ _makeNewCacheField(params) {
1080
+ const cacheField = new CacheField();
1081
+ cacheField.loadFunction = this.loadFunction.bind(cacheField, ...params);
1082
+ this._paramsToCacheItems.set(params, cacheField);
1083
+ return cacheField;
1084
+ }
1085
+ }
1086
+
1087
+ /**
1088
+ * App-wide, top-level, 'dumb' BO cache manager service. It stores and returns simple and parameterized business object cache items.
1089
+ *
1090
+ * Several other services register cache items onto this manager, such as repositories or the more generic SelectMultipleSimpleCacheService.
1091
+ *
1092
+ * This is a dumb cache manager. It just functions as a point to add and retrieve generic cache items, but does not know how to actually
1093
+ * LOAD these cache items from the database, or what exact types the items are.
1094
+ *
1095
+ * All caches are reset when the user logs out.
1096
+ */
1097
+ class BusinessObjectCacheManagerService {
1098
+ constructor() {
1099
+ // emits after this BO cache manager has been reset (e.g. after user logs out)
1100
+ this.reset = new Subject();
1101
+ // key: global cache id's, e.g. a model classe or any other arbitrary key for cache items
1102
+ this._selectMultipleCache = new Map();
1103
+ // key: global cache id's, e.g. a model classe or any other arbitrary key for cache items
1104
+ this._selectMultipleParameterizedCache = new Map();
1105
+ this._selectSingleCache = new Map();
1106
+ this._selectSingleParameterizedCache = new Map();
1107
+ }
1108
+ // constructor(private _transactionService: TransactionService) {
1109
+ // this._logoutSub = this._transactionService.logout.subscribe(() => {
1110
+ // this._reset();
1111
+ // });
1112
+ // }
1113
+ ngOnDestroy() {
1114
+ this._logoutSub.unsubscribe();
1115
+ }
1116
+ /**
1117
+ * Creates and adds a new simple cache item for the given key with the given load function.
1118
+ * @param key
1119
+ * @param loadFunction e.g. () => { return this._dataService.selectMultiple(Color); }
1120
+ * @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
1121
+ * @returns The newly created cache item.
1122
+ */
1123
+ addNewSelectMultipleCacheItem(key, loadFunction, overrideOld = false) {
1124
+ if (!overrideOld && this._selectMultipleCache.has(key)) {
1125
+ return;
1126
+ }
1127
+ const newCacheItem = new CacheField();
1128
+ newCacheItem.loadFunction = loadFunction;
1129
+ this._selectMultipleCache.set(key, newCacheItem);
1130
+ return newCacheItem;
1131
+ }
1132
+ addNewSelectSingleCacheItem(key, id = BusinessObjectCacheManagerService._NullBoId, loadFunction, overrideOld = false) {
1133
+ const cacheId = id.toString();
1134
+ if (!overrideOld && this.hasSingleCacheItem(key, id)) {
1135
+ return;
1136
+ }
1137
+ if (!this._selectSingleCache.has(key)) {
1138
+ this._selectSingleCache.set(key, {});
1139
+ }
1140
+ const newCacheItem = new CacheField();
1141
+ newCacheItem.loadFunction = loadFunction;
1142
+ this._selectSingleCache.get(key)[cacheId] = newCacheItem;
1143
+ return newCacheItem;
1144
+ }
1145
+ addNewSelectSingleParameterizedCacheItem(key, loadFunction, overrideOld = false) {
1146
+ if (!overrideOld && this._selectSingleParameterizedCache.has(key)) {
1147
+ return;
1148
+ }
1149
+ const newCacheItem = new ParameterCacheField();
1150
+ newCacheItem.loadFunction = loadFunction;
1151
+ this._selectSingleParameterizedCache.set(key, newCacheItem);
1152
+ return newCacheItem;
1153
+ }
1154
+ /**
1155
+ * Creates and adds a new parameterized cache item for the given key with the given load function.
1156
+ * @param key
1157
+ * @param loadFunction e.g. (category: ArticleCategory) => { return this._dataService.selectMultiple(TurnoverGroupImage, category); }
1158
+ * @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
1159
+ */
1160
+ addNewSelectMultipleParameterizedCacheItem(key, loadFunction, overrideOld = false) {
1161
+ if (!overrideOld && this._selectMultipleParameterizedCache.has(key)) {
1162
+ return;
1163
+ }
1164
+ const newCacheItem = new ParameterCacheField();
1165
+ newCacheItem.loadFunction = loadFunction;
1166
+ this._selectMultipleParameterizedCache.set(key, newCacheItem);
1167
+ return newCacheItem;
1168
+ }
1169
+ hasSelectMultipleCacheItem(key) {
1170
+ return this._selectMultipleCache.has(key);
1171
+ }
1172
+ hasSingleCacheItem(key, id = BusinessObjectCacheManagerService._NullBoId) {
1173
+ const cacheId = id.toString();
1174
+ return this._selectSingleCache.has(key) && !!this._selectSingleCache.get(key)[cacheId];
1175
+ }
1176
+ hasSelectMultipleParameterizedCacheItem(key) {
1177
+ return this._selectMultipleParameterizedCache.has(key);
1178
+ }
1179
+ hasSelectSingleParameterizedCacheItem(key) {
1180
+ return this._selectSingleParameterizedCache.has(key);
1181
+ }
1182
+ // Returns the simple cache item with the given key. T is the type of the cache value items requested, e.g. Color.
1183
+ getSelectMultipleCacheItem(key) {
1184
+ return this._selectMultipleCache.get(key);
1185
+ }
1186
+ getSingleCacheItem(key, id = BusinessObjectCacheManagerService._NullBoId) {
1187
+ const cacheId = id.toString();
1188
+ return this._selectSingleCache.has(key) && this._selectSingleCache.get(key)[cacheId];
1189
+ }
1190
+ // Returns the parameterized cache item with the given key. T is the type of the cache value items requested, e.g. Color.
1191
+ getSelectMultipleParameterCacheItem(key) {
1192
+ return this._selectMultipleParameterizedCache.get(key);
1193
+ }
1194
+ getSelectSingleParameterCacheItem(key) {
1195
+ return this._selectSingleParameterizedCache.get(key);
1196
+ }
1197
+ _reset() {
1198
+ this._selectMultipleCache.forEach((cacheItem) => {
1199
+ if (cacheItem) {
1200
+ cacheItem.reset();
1201
+ }
1202
+ });
1203
+ this._selectSingleCache.forEach((cache) => {
1204
+ if (cache) {
1205
+ ObjectUtils.ForOwnProperty(cache, (cacheField) => {
1206
+ cacheField.reset();
1207
+ });
1208
+ }
1209
+ });
1210
+ this._selectSingleParameterizedCache.forEach((selSinParamCacheItem) => {
1211
+ if (selSinParamCacheItem) {
1212
+ selSinParamCacheItem.reset();
1213
+ }
1214
+ });
1215
+ this._selectMultipleParameterizedCache.forEach((selMulParamCacheItem) => {
1216
+ if (selMulParamCacheItem) {
1217
+ selMulParamCacheItem.reset();
1218
+ }
1219
+ });
1220
+ this.reset.next();
1221
+ }
1222
+ }
1223
+ BusinessObjectCacheManagerService._NullBoId = -1;
1224
+ BusinessObjectCacheManagerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function BusinessObjectCacheManagerService_Factory() { return new BusinessObjectCacheManagerService(); }, token: BusinessObjectCacheManagerService, providedIn: "root" });
1225
+ BusinessObjectCacheManagerService.decorators = [
1226
+ { type: Injectable, args: [{
1227
+ providedIn: "root"
1228
+ },] }
1229
+ ];
1230
+
1231
+ class SelectMultipleCacheService {
1232
+ constructor(_boCacheManager) {
1233
+ this._boCacheManager = _boCacheManager;
1234
+ }
1235
+ /**
1236
+ * Returns the global cache item for the select multiple of the given business object class. Creates a new cache item if not yet exists.
1237
+ * @param clazz The BO class, e.g. CustomerFullObject
1238
+ * @returns {CacheField<T[]>}
1239
+ */
1240
+ requestCache(clazz, loadFunction) {
1241
+ if (!this._boCacheManager.hasSelectMultipleCacheItem(clazz)) {
1242
+ this._createCacheItem(clazz, loadFunction);
1243
+ }
1244
+ // noinspection TypeScriptValidateTypes
1245
+ return this._boCacheManager.getSelectMultipleCacheItem(clazz);
1246
+ }
1247
+ // Creates and returns a new select multiple cache item into the global business object cache manager for given business object class.
1248
+ _createCacheItem(clazz, loadFunction) {
1249
+ // noinspection TypeScriptValidateTypes
1250
+ return this._boCacheManager.addNewSelectMultipleCacheItem(clazz, loadFunction);
1251
+ }
1252
+ }
1253
+ SelectMultipleCacheService._NullCache = new CacheField();
1254
+ SelectMultipleCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectMultipleCacheService_Factory() { return new SelectMultipleCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleCacheService, providedIn: "root" });
1255
+ SelectMultipleCacheService.decorators = [
1256
+ { type: Injectable, args: [{
1257
+ providedIn: "root"
1258
+ },] }
1259
+ ];
1260
+ SelectMultipleCacheService.ctorParameters = () => [
1261
+ { type: BusinessObjectCacheManagerService }
1262
+ ];
1263
+
1264
+ // service resonsible for filling the global BO cache manager service with parameterized select multiple cache items
1265
+ class SelectMultipleParameterizedCacheService {
1266
+ constructor(_boCacheManager) {
1267
+ this._boCacheManager = _boCacheManager;
1268
+ // emits after this select multiple parameterized cache service has been reset (e.g. after user logs out)
1269
+ this.reset = new Subject();
1270
+ this._subs = [];
1271
+ this._subs.push(this._boCacheManager.reset.subscribe(() => {
1272
+ this.reset.next();
1273
+ }));
1274
+ }
1275
+ ngOnDestroy() {
1276
+ this._subs.forEach(sub => sub.unsubscribe());
1277
+ }
1278
+ /**
1279
+ * Returns the global cache item for the parameterized select multiple of the given business object class. Creates a new cache item if not yet exists.
1280
+ * @param clazz The BO class, used for undeflying dataService.selectMultiple(clazz) call.
1281
+ * @returns {CacheField<T[]>}
1282
+ */
1283
+ requestCache(clazz, loadFunction) {
1284
+ if (!this._boCacheManager.hasSelectMultipleParameterizedCacheItem(clazz)) {
1285
+ this._createParameterizedCacheItem(clazz, loadFunction);
1286
+ }
1287
+ // noinspection TypeScriptValidateTypes
1288
+ return this._boCacheManager.getSelectMultipleParameterCacheItem(clazz);
1289
+ }
1290
+ // Creates and returns a new parameterized select multiple cache item into the global business object cache manager for given business object class.
1291
+ _createParameterizedCacheItem(clazz, loadFunction) {
1292
+ // noinspection TypeScriptValidateTypes
1293
+ return this._boCacheManager.addNewSelectMultipleParameterizedCacheItem(clazz, loadFunction);
1294
+ }
1295
+ }
1296
+ SelectMultipleParameterizedCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectMultipleParameterizedCacheService_Factory() { return new SelectMultipleParameterizedCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectMultipleParameterizedCacheService, providedIn: "root" });
1297
+ SelectMultipleParameterizedCacheService.decorators = [
1298
+ { type: Injectable, args: [{
1299
+ providedIn: "root"
1300
+ },] }
1301
+ ];
1302
+ SelectMultipleParameterizedCacheService.ctorParameters = () => [
1303
+ { type: BusinessObjectCacheManagerService }
1304
+ ];
1305
+
947
1306
  const PROP_META_KEY$3 = "complexField";
948
1307
  /**
949
1308
  * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
@@ -1603,166 +1962,554 @@ class BusinessObjectFactory {
1603
1962
  class StandardText {
1604
1963
  }
1605
1964
 
1606
- class CollectionCacheService {
1607
- constructor() {
1608
- this._collectionCacheMap = new Map();
1609
- this._collectionCacheParameterizedMap = []; // Map<string, Map<string, any[]>> = new Map<string, Map<string, any[]>>();
1610
- }
1611
- getCollection(clazz, params) {
1612
- if (params && params.length > 0) {
1613
- if (this._collectionCacheParameterizedMap[clazz]) {
1614
- return this._collectionCacheParameterizedMap[clazz][params.join('_')];
1615
- }
1616
- return undefined;
1617
- }
1618
- const coll = this._collectionCacheMap.get(clazz);
1619
- return coll;
1620
- }
1621
- cacheCollection(clazz, collection, params) {
1622
- if (params && params.length > 0) {
1623
- if (!this._collectionCacheParameterizedMap[clazz]) {
1624
- this._collectionCacheParameterizedMap[clazz] = [];
1625
- }
1626
- this._collectionCacheParameterizedMap[clazz][params.join('_')] = collection;
1627
- // const paramMap: Map<string, any[]> = new Map<string, any[]>();
1628
- // paramMap.set(params.join('_'), collection);
1629
- // const classMap: Map<string, any[]> = this._collectionCacheParameterizedMap.get(clazz);
1630
- // classMap.set(params.join('_'), collection);
1631
- }
1632
- else {
1633
- this._collectionCacheMap.set(clazz, collection);
1634
- }
1635
- }
1636
- }
1637
- CollectionCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CollectionCacheService_Factory() { return new CollectionCacheService(); }, token: CollectionCacheService, providedIn: "root" });
1638
- CollectionCacheService.decorators = [
1639
- { type: Injectable, args: [{
1640
- providedIn: "root"
1641
- },] }
1642
- ];
1643
-
1644
1965
  class TransactionSearchResult {
1645
1966
  }
1646
1967
 
1647
- class TransactionConnectorService {
1648
- constructor(_optionsService, _collectionService) {
1649
- this._optionsService = _optionsService;
1650
- this._collectionService = _collectionService;
1651
- this._boFactory = new BusinessObjectFactory();
1652
- this._countryList = [];
1968
+ var AppPopupButtonType;
1969
+ (function (AppPopupButtonType) {
1970
+ AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
1971
+ AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
1972
+ AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
1973
+ AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
1974
+ AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
1975
+ AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
1976
+ AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
1977
+ })(AppPopupButtonType || (AppPopupButtonType = {}));
1978
+
1979
+ class DialogBaseComponent {
1980
+ onClose(eventType, output) {
1981
+ return;
1653
1982
  }
1654
- connect() {
1655
- return __awaiter(this, void 0, void 0, function* () {
1656
- this.connector = new Transaction(this._optionsService.options);
1657
- this._optionsService.options.session = this.connector.session;
1658
- });
1983
+ }
1984
+
1985
+ var AppPopupType;
1986
+ (function (AppPopupType) {
1987
+ AppPopupType[AppPopupType["Error"] = 0] = "Error";
1988
+ AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
1989
+ AppPopupType[AppPopupType["Information"] = 2] = "Information";
1990
+ AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
1991
+ })(AppPopupType || (AppPopupType = {}));
1992
+
1993
+ class ConfirmationDialogComponent extends DialogBaseComponent {
1994
+ constructor() {
1995
+ super(...arguments);
1996
+ this.ptype = AppPopupType;
1659
1997
  }
1660
- getArticleFullObject(goodId) {
1661
- return __awaiter(this, void 0, void 0, function* () {
1662
- return new Promise((resolve, reject) => {
1663
- return this.connector.getArticleFullObject(goodId).then((result) => {
1664
- if (result.validationResult && result.validationResult.success) {
1665
- if (result.resultObject) {
1666
- resolve(this._boFactory.makeWithRawBackendData(ArticleFullObject, result.resultObject));
1667
- }
1668
- }
1669
- else {
1670
- reject(result.validationMessagesAsString);
1671
- }
1672
- });
1673
- });
1674
- });
1998
+ showClass() {
1999
+ return true;
1675
2000
  }
1676
- getGoodIdFromArticleNr(articleNr) {
1677
- return new Promise((resolve, reject) => {
1678
- return this.connector.getGoodIdFromArticleNr(articleNr).then((result) => {
1679
- if (result.validationResult && result.validationResult.success) {
1680
- resolve(result.resultObject);
1681
- }
1682
- else {
1683
- reject(result.validationMessagesAsString);
1684
- }
1685
- });
1686
- });
2001
+ handleYesClick(event) {
2002
+ this.onClose(AppPopupButtonType.Yes);
1687
2003
  }
1688
- getSingleImage(nodeId, publication, includeMimetype, thumb) {
1689
- return new Promise((resolve, reject) => {
1690
- return this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then((result) => {
1691
- if (result.validationResult && result.validationResult.success) {
1692
- if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
1693
- return resolve(ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
1694
- }
1695
- else {
1696
- if (result.resultObject) {
1697
- if (includeMimetype) {
1698
- return resolve(ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
1699
- }
1700
- return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
1701
- }
1702
- else { // no image
1703
- resolve("");
1704
- }
1705
- }
1706
- }
1707
- else {
1708
- reject(result.validationMessagesAsString);
1709
- }
1710
- });
1711
- });
2004
+ handleNoClick(event) {
2005
+ this.onClose(AppPopupButtonType.No);
1712
2006
  }
1713
- getCountries() {
1714
- if (this._countryList.length > 0) {
1715
- return new Promise((resolve) => {
1716
- resolve(this._countryList);
1717
- });
1718
- }
1719
- return new Promise((resolve, reject) => {
1720
- return this.connector.getCountries().then((result) => {
1721
- if (result.validationResult && result.validationResult.success) {
1722
- this._countryList = result.resultObjects;
1723
- resolve(result.resultObjects);
1724
- }
1725
- else {
1726
- reject(result.validationMessagesAsString);
2007
+ handleOkClick(event) {
2008
+ this.onClose(AppPopupButtonType.Ok);
2009
+ }
2010
+ }
2011
+ ConfirmationDialogComponent.decorators = [
2012
+ { type: Component, args: [{
2013
+ selector: "co-confirmation-dialog",
2014
+ template: `
2015
+ <co-dialog [showCloseIcon]="false" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
2016
+ <div class="confirmation-dialog-wrapper">
2017
+ <div class="text" [innerHTML]="text"></div>
2018
+ </div>
2019
+ </co-dialog>
2020
+ <ng-template #headerTemplate>
2021
+ <div class="title" [textContent]="title | localize"></div>
2022
+ </ng-template>
2023
+ <ng-template #footerTemplate>
2024
+ <div class="button-wrapper">
2025
+ <ng-container *ngIf="type === ptype.Confirmation">
2026
+ <co-button [label]="'YES' | localize" (click)="handleYesClick($event)"></co-button>
2027
+ <co-button [label]="'NO' | localize" (click)="handleNoClick($event)"></co-button>
2028
+ </ng-container>
2029
+ <ng-container *ngIf="type === ptype.Information || type === ptype.Error">
2030
+ <co-button [label]="'OK' | localize" (click)="handleOkClick($event)"></co-button>
2031
+ </ng-container>
2032
+ </div>
2033
+ </ng-template>
2034
+ `,
2035
+ encapsulation: ViewEncapsulation.None
2036
+ },] }
2037
+ ];
2038
+ ConfirmationDialogComponent.propDecorators = {
2039
+ title: [{ type: Input }],
2040
+ text: [{ type: Input }],
2041
+ type: [{ type: Input }],
2042
+ showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
2043
+ };
2044
+
2045
+ class CharacteristicAnswerComponent extends DialogBaseComponent {
2046
+ constructor(_changeDetector) {
2047
+ super();
2048
+ this._changeDetector = _changeDetector;
2049
+ this.title = "";
2050
+ this.value = "";
2051
+ this.okClick = new EventEmitter();
2052
+ this.viewModels = [];
2053
+ this._choices = [];
2054
+ }
2055
+ set choices(value) {
2056
+ this._choices = value;
2057
+ this._prepareViewModels();
2058
+ }
2059
+ get choices() {
2060
+ return this._choices;
2061
+ }
2062
+ showClass() {
2063
+ return true;
2064
+ }
2065
+ handleChecked(event, choice) {
2066
+ event.preventDefault();
2067
+ event.stopImmediatePropagation();
2068
+ this.value = choice;
2069
+ this.viewModels.forEach(v => {
2070
+ v.checked = v.value === choice;
2071
+ });
2072
+ this._changeDetector.markForCheck();
2073
+ }
2074
+ handleOkClick() {
2075
+ this.onClose(AppPopupButtonType.Ok, this.value);
2076
+ }
2077
+ _prepareViewModels() {
2078
+ if (this._choices && this._choices.length > 0) {
2079
+ for (let i = 0; i < this._choices.length; i++) {
2080
+ this.viewModels.push({ value: this._choices[i].value, checked: i === 0 });
2081
+ }
2082
+ }
2083
+ }
2084
+ }
2085
+ CharacteristicAnswerComponent.decorators = [
2086
+ { type: Component, args: [{
2087
+ selector: "co-characteristic-answer",
2088
+ template: `
2089
+ <co-dialog [showCloseIcon]="false" [modal]="true" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
2090
+ <ng-container *ngIf="choices && choices.length > 0">
2091
+ <div class="co-transaction-default-flex-row" *ngFor="let choice of viewModels">
2092
+ <co-input-checkbox [model]="choice.checked" [label]="choice.value" (click)="handleChecked($event, choice.value)"></co-input-checkbox>
2093
+ </div>
2094
+ </ng-container>
2095
+ <ng-container *ngIf="!choices || choices.length === 0">
2096
+ <co-input-text
2097
+ [(model)]="value"
2098
+ (enter)="handleOkClick()"
2099
+ ></co-input-text>
2100
+ </ng-container>
2101
+ </co-dialog>
2102
+ <ng-template #headerTemplate>
2103
+ <div class="title" [textContent]="title"></div>
2104
+ </ng-template>
2105
+ <ng-template #footerTemplate>
2106
+ <div class="dialog-footer-button-wrapper">
2107
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
2108
+ </div>
2109
+ </ng-template>
2110
+ `,
2111
+ encapsulation: ViewEncapsulation.None
2112
+ },] }
2113
+ ];
2114
+ CharacteristicAnswerComponent.ctorParameters = () => [
2115
+ { type: ChangeDetectorRef }
2116
+ ];
2117
+ CharacteristicAnswerComponent.propDecorators = {
2118
+ title: [{ type: Input }],
2119
+ choices: [{ type: Input }],
2120
+ value: [{ type: Input }],
2121
+ okClick: [{ type: Output }],
2122
+ showClass: [{ type: HostBinding, args: ['class.co-characteristic-answer',] }]
2123
+ };
2124
+
2125
+ class TransactionLineBaseComponent {
2126
+ constructor() {
2127
+ /**
2128
+ * Defaults to true
2129
+ */
2130
+ this.useTransactionLine = true;
2131
+ this.valueChange = new EventEmitter();
2132
+ this.readonly = false;
2133
+ this.viewModels = [];
2134
+ this.viewModelsFiltered = [];
2135
+ this._transactionLine = new TransactionLineInfo();
2136
+ this._transactionInfo = new TransactionInfo();
2137
+ }
2138
+ set searchText(value) {
2139
+ this._searchText = value;
2140
+ this._doSearch();
2141
+ }
2142
+ get searchText() {
2143
+ return this._searchText;
2144
+ }
2145
+ set transactionLine(value) {
2146
+ if (value) {
2147
+ this._transactionLine = value;
2148
+ this.readonly = this._transactionLine.hasInvoices;
2149
+ this.transactionLineSet();
2150
+ }
2151
+ }
2152
+ get transactionLine() {
2153
+ return this._transactionLine;
2154
+ }
2155
+ set transactionInfo(value) {
2156
+ if (value) {
2157
+ this._transactionInfo = value;
2158
+ this.transactionInfoSet();
2159
+ }
2160
+ }
2161
+ get transactionInfo() {
2162
+ return this._transactionInfo;
2163
+ }
2164
+ ngOnInit() {
2165
+ this.viewModelsFiltered = this.viewModels.slice();
2166
+ }
2167
+ // overridden by descendents
2168
+ transactionLineSet() {
2169
+ }
2170
+ // overridden by descendents
2171
+ transactionInfoSet() {
2172
+ }
2173
+ _doSearch() {
2174
+ if (!this.searchText) {
2175
+ this.viewModelsFiltered = this.viewModels.slice();
2176
+ }
2177
+ else {
2178
+ this.viewModelsFiltered = this.viewModels.filter(v => {
2179
+ const textFound = v.text ? v.text.indexOf(this.searchText) > -1 : false;
2180
+ // const codeFound: boolean = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 :
2181
+ // (typeof v.value === 'number' ? v.value + "".indexOf(this.searchText) > -1 : false);
2182
+ const codeFound = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 : false;
2183
+ return codeFound || textFound;
2184
+ });
2185
+ }
2186
+ }
2187
+ }
2188
+ TransactionLineBaseComponent.decorators = [
2189
+ { type: Directive }
2190
+ ];
2191
+ TransactionLineBaseComponent.propDecorators = {
2192
+ useTransactionLine: [{ type: Input }],
2193
+ searchText: [{ type: Input }],
2194
+ transactionLine: [{ type: Input }],
2195
+ transactionInfo: [{ type: Input }],
2196
+ valueChange: [{ type: Output }]
2197
+ };
2198
+
2199
+ class DialogTransactionLineBaseComponent extends TransactionLineBaseComponent {
2200
+ constructor() {
2201
+ super(...arguments);
2202
+ this.buttonType = AppPopupButtonType;
2203
+ }
2204
+ onClose(eventType, output) {
2205
+ return;
2206
+ }
2207
+ handleValueChange(value) {
2208
+ this.value = value;
2209
+ }
2210
+ handleOkClick() {
2211
+ this.onClose(AppPopupButtonType.Ok, this.value);
2212
+ }
2213
+ handleSearch(text) {
2214
+ this.searchText = text;
2215
+ }
2216
+ }
2217
+ DialogTransactionLineBaseComponent.decorators = [
2218
+ { type: Directive }
2219
+ ];
2220
+
2221
+ class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent {
2222
+ showClass() {
2223
+ return true;
2224
+ }
2225
+ }
2226
+ DialogTransactionLineWarehouseComponent.decorators = [
2227
+ { type: Component, args: [{
2228
+ selector: "co-dialog-transaction-line-warehouse",
2229
+ template: `
2230
+ <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
2231
+ <co-transaction-line-warehouse
2232
+ [useTransactionLine]="useTransactionLine"
2233
+ [transactionLine]="transactionLine"
2234
+ [searchText]="searchText"
2235
+ (valueChange)="handleValueChange($event)"
2236
+ ></co-transaction-line-warehouse>
2237
+ </co-dialog>
2238
+ <ng-template #dialogHeader>
2239
+ <co-dialog-header-search [title]="'WAREHOUSE'" (search)="handleSearch($event)"></co-dialog-header-search>
2240
+ </ng-template>
2241
+ <ng-template #footerTemplate>
2242
+ <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
2243
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
2244
+ </div>
2245
+ </ng-template>
2246
+ `,
2247
+ encapsulation: ViewEncapsulation.None
2248
+ },] }
2249
+ ];
2250
+ DialogTransactionLineWarehouseComponent.propDecorators = {
2251
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-warehouse",] }]
2252
+ };
2253
+
2254
+ class DialogTransactionLineCommissionCodeComponent extends DialogTransactionLineBaseComponent {
2255
+ showClass() {
2256
+ return true;
2257
+ }
2258
+ }
2259
+ DialogTransactionLineCommissionCodeComponent.decorators = [
2260
+ { type: Component, args: [{
2261
+ selector: "co-dialog-transaction-line-commission-code",
2262
+ template: `
2263
+ <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
2264
+ <co-transaction-line-commission-code
2265
+ [useTransactionLine]="useTransactionLine"
2266
+ [transactionLine]="transactionLine"
2267
+ (valueChange)="handleValueChange($event)"></co-transaction-line-commission-code>
2268
+ </co-dialog>
2269
+ <ng-template #dialogHeader>
2270
+ <div class="dialog-header-title" [textContent]="'COMMISSION_CODE' | localize"></div>
2271
+ </ng-template>
2272
+ <ng-template #footerTemplate>
2273
+ <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
2274
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
2275
+ </div>
2276
+ </ng-template>
2277
+ `,
2278
+ encapsulation: ViewEncapsulation.None
2279
+ },] }
2280
+ ];
2281
+ DialogTransactionLineCommissionCodeComponent.propDecorators = {
2282
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
2283
+ };
2284
+
2285
+ class DialogService {
2286
+ constructor(_compFactoryResolver, appRef, injector) {
2287
+ this._compFactoryResolver = _compFactoryResolver;
2288
+ this.appRef = appRef;
2289
+ this.injector = injector;
2290
+ }
2291
+ showYesNo(title, text) {
2292
+ return __awaiter(this, void 0, void 0, function* () {
2293
+ const data = {
2294
+ title: title,
2295
+ text: text,
2296
+ type: AppPopupType.Confirmation
2297
+ };
2298
+ const response = yield this._createComponent(ConfirmationDialogComponent, data);
2299
+ return response === AppPopupButtonType.Yes;
2300
+ });
2301
+ }
2302
+ showError(message) {
2303
+ const data = {
2304
+ title: 'ERROR',
2305
+ text: message,
2306
+ type: AppPopupType.Error
2307
+ };
2308
+ return this._createComponent(ConfirmationDialogComponent, data);
2309
+ }
2310
+ showInformation(message) {
2311
+ const data = {
2312
+ title: 'INFORMATION',
2313
+ text: message,
2314
+ type: AppPopupType.Information
2315
+ };
2316
+ return this._createComponent(ConfirmationDialogComponent, data);
2317
+ }
2318
+ showTransactionLineComponent(comp, transLine) {
2319
+ const data = {
2320
+ transactionLine: transLine
2321
+ };
2322
+ return this._createComponent(comp, data);
2323
+ }
2324
+ showCharacteristics(title, choices, value) {
2325
+ const data = {
2326
+ title: title,
2327
+ choices: choices,
2328
+ value: value
2329
+ };
2330
+ return this._createComponent(CharacteristicAnswerComponent, data);
2331
+ }
2332
+ showWarehouse() {
2333
+ const data = {
2334
+ useTransactionLine: false
2335
+ };
2336
+ return this._createComponent(DialogTransactionLineWarehouseComponent, data);
2337
+ }
2338
+ showCommissionCode() {
2339
+ const data = {
2340
+ useTransactionLine: false
2341
+ };
2342
+ return this._createComponent(DialogTransactionLineCommissionCodeComponent, data);
2343
+ }
2344
+ _createComponent(componentClass, data) {
2345
+ return new Promise((resolve) => {
2346
+ this._componentRef = this._compFactoryResolver
2347
+ .resolveComponentFactory(componentClass)
2348
+ .create(this.injector);
2349
+ for (let key in data) {
2350
+ if (data.hasOwnProperty(key)) {
2351
+ this._componentRef.instance[key] = data[key];
1727
2352
  }
2353
+ }
2354
+ this.appRef.attachView(this._componentRef.hostView);
2355
+ const domElem = this._componentRef.hostView
2356
+ .rootNodes[0];
2357
+ document.body.appendChild(domElem);
2358
+ this._componentRef.onDestroy(() => {
2359
+ this.appRef.detachView(this._componentRef.hostView);
1728
2360
  });
2361
+ this._componentRef.instance.onClose = (button, output) => {
2362
+ this.appRef.detachView(this._componentRef.hostView);
2363
+ this._componentRef = undefined;
2364
+ resolve(output ? output : button);
2365
+ };
1729
2366
  });
1730
2367
  }
1731
- getCustomerGroups() {
2368
+ }
2369
+ DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR)); }, token: DialogService, providedIn: "root" });
2370
+ DialogService.decorators = [
2371
+ { type: Injectable, args: [{
2372
+ providedIn: "root"
2373
+ },] }
2374
+ ];
2375
+ DialogService.ctorParameters = () => [
2376
+ { type: ComponentFactoryResolver },
2377
+ { type: ApplicationRef },
2378
+ { type: Injector }
2379
+ ];
2380
+
2381
+ class ErrorService {
2382
+ constructor(_dialogService) {
2383
+ this._dialogService = _dialogService;
2384
+ }
2385
+ showError(message) {
2386
+ this._dialogService.showError(message);
2387
+ }
2388
+ showValidationError(validationResult) {
2389
+ const messages = [];
2390
+ if (validationResult && !validationResult.success) {
2391
+ if (validationResult.messages && validationResult.messages.length > 0) {
2392
+ validationResult.messages.forEach(m => {
2393
+ messages.push(`<div class="dialog-validation-error" [textContent]="'${m.message}'"</div>`);
2394
+ });
2395
+ }
2396
+ this.showError(messages.join());
2397
+ }
2398
+ }
2399
+ }
2400
+ ErrorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ErrorService_Factory() { return new ErrorService(i0.ɵɵinject(DialogService)); }, token: ErrorService, providedIn: "root" });
2401
+ ErrorService.decorators = [
2402
+ { type: Injectable, args: [{
2403
+ providedIn: "root"
2404
+ },] }
2405
+ ];
2406
+ ErrorService.ctorParameters = () => [
2407
+ { type: DialogService }
2408
+ ];
2409
+
2410
+ class TransactionConnectorAdapterService {
2411
+ constructor(_optionsService, _selectMultipleCacheService, _selectMultipleParameterizedCacheService, _errorService) {
2412
+ this._optionsService = _optionsService;
2413
+ this._selectMultipleCacheService = _selectMultipleCacheService;
2414
+ this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
2415
+ this._errorService = _errorService;
2416
+ this._boFactory = new BusinessObjectFactory();
2417
+ }
2418
+ connect() {
1732
2419
  return __awaiter(this, void 0, void 0, function* () {
1733
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1734
- const collection = this._collectionService.getCollection(CustomerGroup.name);
1735
- if (collection) {
1736
- return resolve(collection);
1737
- }
1738
- const response = yield this.connector.getCustomerGroups();
1739
- if (response && response.validationResult && response.validationResult.success) {
1740
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(CustomerGroup, response.resultObjects);
1741
- this._collectionService.cacheCollection(CustomerGroup.name, collection);
1742
- resolve(collection);
2420
+ this.connector = new Transaction(this._optionsService.options);
2421
+ this._optionsService.options.session = this.connector.session;
2422
+ });
2423
+ }
2424
+ getArticleFullObject(goodId) {
2425
+ return __awaiter(this, void 0, void 0, function* () {
2426
+ const result = yield this.connector.getArticleFullObject(goodId);
2427
+ if (result.validationResult && result.validationResult.success) {
2428
+ return this._boFactory.makeWithRawBackendData(ArticleFullObject, result.resultObject);
2429
+ }
2430
+ else {
2431
+ this._handleValidationResult(result.validationResult);
2432
+ return null;
2433
+ }
2434
+ });
2435
+ }
2436
+ getGoodIdFromArticleNr(articleNr) {
2437
+ return __awaiter(this, void 0, void 0, function* () {
2438
+ const result = yield this.connector.getGoodIdFromArticleNr(articleNr);
2439
+ if (result.validationResult && result.validationResult.success) {
2440
+ return result.resultObject;
2441
+ }
2442
+ else {
2443
+ this._handleValidationResult(result.validationResult);
2444
+ return null;
2445
+ }
2446
+ });
2447
+ }
2448
+ getSingleImage(nodeId, publication, includeMimetype, thumb) {
2449
+ return __awaiter(this, void 0, void 0, function* () {
2450
+ const result = yield this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb);
2451
+ if (result.validationResult && result.validationResult.success) {
2452
+ if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
2453
+ return ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath);
1743
2454
  }
1744
2455
  else {
1745
- reject(response.validationMessagesAsString);
2456
+ if (result.resultObject) {
2457
+ if (includeMimetype) {
2458
+ return ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
2459
+ }
2460
+ return thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody;
2461
+ }
2462
+ else { // no image
2463
+ return "";
2464
+ }
1746
2465
  }
1747
- }));
2466
+ }
2467
+ else {
2468
+ this._handleValidationResult(result.validationResult);
2469
+ return null;
2470
+ }
2471
+ });
2472
+ }
2473
+ getCountries() {
2474
+ return __awaiter(this, void 0, void 0, function* () {
2475
+ const result = yield this.connector.getCountries();
2476
+ if (result.validationResult && result.validationResult.success) {
2477
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Country, result.resultObjects);
2478
+ }
2479
+ else {
2480
+ this._handleValidationResult(result.validationResult);
2481
+ return [];
2482
+ }
2483
+ });
2484
+ }
2485
+ getCustomerGroups() {
2486
+ return __awaiter(this, void 0, void 0, function* () {
2487
+ const result = yield this.connector.getCustomerGroups();
2488
+ if (result.validationResult && result.validationResult.success) {
2489
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(CustomerGroup, result.resultObjects);
2490
+ }
2491
+ else {
2492
+ this._handleValidationResult(result.validationResult);
2493
+ return [];
2494
+ }
1748
2495
  });
1749
2496
  }
1750
2497
  getCountry(countryCode) {
1751
2498
  return __awaiter(this, void 0, void 0, function* () {
1752
- yield this.getCountries();
1753
- return this._countryList.find(country => country.code === countryCode);
2499
+ const countries = yield this.getCountries();
2500
+ return countries.find(country => country.code === countryCode);
1754
2501
  });
1755
2502
  }
1756
2503
  getPrivacySettings() {
1757
- return new Promise((resolve, reject) => {
1758
- return this.connector.getPrivacySettings().then((result) => {
1759
- if (result.validationResult && result.validationResult.success) {
1760
- resolve(result.resultObjects);
1761
- }
1762
- else {
1763
- reject(result.validationMessagesAsString);
1764
- }
1765
- });
2504
+ return __awaiter(this, void 0, void 0, function* () {
2505
+ const result = yield this.connector.getPrivacySettings();
2506
+ if (result.validationResult && result.validationResult.success) {
2507
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(PrivacySetting, result.resultObjects);
2508
+ }
2509
+ else {
2510
+ this._handleValidationResult(result.validationResult);
2511
+ return [];
2512
+ }
1766
2513
  });
1767
2514
  }
1768
2515
  getRelationPrivacySettings() {
@@ -1779,33 +2526,15 @@ class TransactionConnectorService {
1779
2526
  });
1780
2527
  }
1781
2528
  getMarketingCodes() {
1782
- return new Promise((resolve, reject) => {
1783
- const collection = this._collectionService.getCollection(Marketing.name);
1784
- if (collection) {
1785
- return resolve(collection);
2529
+ return __awaiter(this, void 0, void 0, function* () {
2530
+ const result = yield this.connector.getMarketingCodes();
2531
+ if (result.validationResult && result.validationResult.success) {
2532
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Marketing, result.resultObjects);
2533
+ }
2534
+ else {
2535
+ this._handleValidationResult(result.validationResult);
2536
+ return [];
1786
2537
  }
1787
- return this.connector.getMarketingCodes().then((result) => {
1788
- if (result.validationResult && result.validationResult.success) {
1789
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Marketing, result.resultObjects);
1790
- this._collectionService.cacheCollection(Marketing.name, collection);
1791
- resolve(collection);
1792
- }
1793
- else {
1794
- reject(result.validationMessagesAsString);
1795
- }
1796
- });
1797
- });
1798
- }
1799
- createTransaction(kind, branchNr) {
1800
- return new Promise((resolve, reject) => {
1801
- return this.connector.createTransaction(kind, branchNr).then((result) => {
1802
- if (result.validationResult && result.validationResult.success) {
1803
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1804
- }
1805
- else {
1806
- reject(result.validationMessagesAsString);
1807
- }
1808
- });
1809
2538
  });
1810
2539
  }
1811
2540
  getArticleBoundTextLinesOfArticleLine(articleLineUuid) {
@@ -1815,130 +2544,93 @@ class TransactionConnectorService {
1815
2544
  return this._boFactory.makeBOArrayFromRawBackendDataArray(TransactionLineInfo, result.resultObject);
1816
2545
  }
1817
2546
  else {
2547
+ this._handleValidationResult(result.validationResult);
1818
2548
  return [];
1819
2549
  }
1820
2550
  });
1821
2551
  }
1822
2552
  getTransactionByNrAndKind(kind, transactionNo) {
1823
- return new Promise((resolve, reject) => {
1824
- return this.connector.getTransactionByNrAndKind(kind, transactionNo).then((result) => {
1825
- if (result.validationResult && result.validationResult.success) {
1826
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1827
- }
1828
- else {
1829
- reject(result.validationMessagesAsString);
1830
- }
1831
- });
2553
+ return __awaiter(this, void 0, void 0, function* () {
2554
+ const result = yield this.connector.getTransactionByNrAndKind(kind, transactionNo);
2555
+ if (result.validationResult && result.validationResult.success) {
2556
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject);
2557
+ }
2558
+ else {
2559
+ this._handleValidationResult(result.validationResult);
2560
+ return null;
2561
+ }
1832
2562
  });
1833
2563
  }
1834
2564
  getTransactionById(transactionId) {
1835
- return new Promise((resolve, reject) => {
1836
- return this.connector.getTransactionById(transactionId).then((result) => {
1837
- if (result.validationResult && result.validationResult.success) {
1838
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1839
- }
1840
- else {
1841
- reject(result.validationMessagesAsString);
1842
- }
1843
- });
1844
- });
1845
- }
1846
- commit() {
1847
- return this.connector.commit();
1848
- }
1849
- saveTransaction(uuid) {
1850
- return new Promise((resolve, reject) => {
1851
- return this.connector.saveTransaction(uuid).then((result) => {
1852
- if (result.validationResult && result.validationResult.success) {
1853
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1854
- }
1855
- else {
1856
- reject(result.validationResult.messages && result.validationResult.messages.length > 0 ? result.validationResult.messages[0] : '');
1857
- }
1858
- });
2565
+ return __awaiter(this, void 0, void 0, function* () {
2566
+ const result = yield this.connector.getTransactionById(transactionId);
2567
+ if (result.validationResult && result.validationResult.success) {
2568
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject);
2569
+ }
2570
+ else {
2571
+ this._handleValidationResult(result.validationResult);
2572
+ return null;
2573
+ }
1859
2574
  });
1860
2575
  }
1861
2576
  getCustomerFullObject(relationNo) {
1862
- return new Promise((resolve, reject) => {
1863
- return this.connector.getCustomerFullObject(relationNo).then((result) => {
1864
- if (result.validationResult && result.validationResult.success) {
1865
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1866
- }
1867
- else {
1868
- reject(result.validationMessagesAsString);
1869
- }
1870
- });
2577
+ return __awaiter(this, void 0, void 0, function* () {
2578
+ const result = yield this.connector.getCustomerFullObject(relationNo);
2579
+ if (result.validationResult && result.validationResult.success) {
2580
+ return this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject);
2581
+ }
2582
+ else {
2583
+ this._handleValidationResult(result.validationResult);
2584
+ return null;
2585
+ }
1871
2586
  });
1872
2587
  }
1873
2588
  getCashRegisters(branch, group) {
1874
2589
  return __awaiter(this, void 0, void 0, function* () {
1875
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1876
- const collection = this._collectionService.getCollection(CashRegister.name, [branch, group]);
1877
- if (collection) {
1878
- return resolve(collection);
1879
- }
1880
- const response = yield this.connector.getCashRegister(branch, group);
1881
- if (response.validationResult && response.validationResult.success) {
1882
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(CashRegister, response.resultObjects);
1883
- this._collectionService.cacheCollection(CashRegister.name, collection, [branch, group]);
1884
- resolve(collection);
1885
- }
1886
- else {
1887
- reject(response.validationMessagesAsString);
1888
- }
1889
- }));
2590
+ const result = yield this.connector.getCashRegister(branch, group);
2591
+ if (result.validationResult && result.validationResult.success) {
2592
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(CashRegister, result.resultObjects);
2593
+ }
2594
+ else {
2595
+ this._handleValidationResult(result.validationResult);
2596
+ return [];
2597
+ }
1890
2598
  });
1891
2599
  }
1892
2600
  getRelationNumber(relationId) {
1893
2601
  return __awaiter(this, void 0, void 0, function* () {
1894
- return new Promise((resolve, reject) => {
1895
- return this.connector.getRelationNumber(relationId).then((result) => {
1896
- if (result.validationResult && result.validationResult.success) {
1897
- resolve(result.resultObject);
1898
- }
1899
- else {
1900
- reject(result.validationMessagesAsString);
1901
- }
1902
- });
1903
- });
2602
+ const result = yield this.connector.getRelationNumber(relationId);
2603
+ if (result.validationResult && result.validationResult.success) {
2604
+ return result.resultObject;
2605
+ }
2606
+ else {
2607
+ this._handleValidationResult(result.validationResult);
2608
+ return "";
2609
+ }
1904
2610
  });
1905
2611
  }
1906
2612
  getPriceLists(code) {
1907
2613
  return __awaiter(this, void 0, void 0, function* () {
1908
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1909
- const collection = this._collectionService.getCollection(PriceList.name);
1910
- if (collection) {
1911
- return resolve(collection);
1912
- }
1913
- const response = yield this.connector.getPriceLists(code);
1914
- if (response.validationResult && response.validationResult.success) {
1915
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, response.resultObjects);
1916
- this._collectionService.cacheCollection(PriceList.name, collection);
1917
- resolve(collection);
1918
- }
1919
- else {
1920
- reject(response.validationMessagesAsString);
1921
- }
1922
- }));
2614
+ const result = yield this.connector.getPriceLists(code);
2615
+ if (result.validationResult && result.validationResult.success) {
2616
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, result.resultObjects);
2617
+ }
2618
+ else {
2619
+ this._handleValidationResult(result.validationResult);
2620
+ return [];
2621
+ }
1923
2622
  });
1924
2623
  }
1925
2624
  getVatList(onlyValid = false) {
1926
2625
  return __awaiter(this, void 0, void 0, function* () {
1927
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1928
- const collection = this._collectionService.getCollection(Vat.name, [onlyValid]);
1929
- if (collection) {
1930
- return resolve(collection);
1931
- }
1932
- const response = yield this.connector.getVatList(onlyValid);
1933
- if (response.validationResult && response.validationResult.success) {
1934
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Vat, response.resultObjects);
1935
- this._collectionService.cacheCollection(Vat.name, collection, [onlyValid]);
1936
- resolve(collection);
1937
- }
1938
- else {
1939
- reject(response.validationMessagesAsString);
1940
- }
1941
- }));
2626
+ const result = yield this.connector.getVatList(onlyValid);
2627
+ if (result.validationResult && result.validationResult.success) {
2628
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Vat, result.resultObjects);
2629
+ }
2630
+ else {
2631
+ this._handleValidationResult(result.validationResult);
2632
+ return [];
2633
+ }
1942
2634
  });
1943
2635
  }
1944
2636
  searchTransactions(request) {
@@ -1951,7 +2643,8 @@ class TransactionConnectorService {
1951
2643
  return result;
1952
2644
  }
1953
2645
  else {
1954
- return null; // todo: handle error messages in a good way
2646
+ this._handleValidationResult(response.validationResult);
2647
+ return null;
1955
2648
  }
1956
2649
  });
1957
2650
  }
@@ -1963,470 +2656,452 @@ class TransactionConnectorService {
1963
2656
  resolve(result.resultObject);
1964
2657
  }
1965
2658
  else {
1966
- reject(result.validationMessagesAsString);
2659
+ this._handleValidationResult(result.validationResult);
2660
+ reject(null);
1967
2661
  }
1968
2662
  });
1969
2663
  });
1970
2664
  });
1971
2665
  }
1972
- insertCustomer(relation) {
2666
+ getDeliveryMethods() {
1973
2667
  return __awaiter(this, void 0, void 0, function* () {
1974
- return new Promise((resolve, reject) => {
1975
- return this.connector.insertCustomer(relation).then((result) => {
1976
- if (result.validationResult && result.validationResult.success) {
1977
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1978
- }
1979
- else {
1980
- reject(result.validationMessagesAsString);
1981
- }
1982
- });
1983
- });
2668
+ const result = yield this.connector.getDeliveryMethods();
2669
+ if (result.validationResult && result.validationResult.success) {
2670
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2671
+ }
2672
+ else {
2673
+ this._handleValidationResult(result.validationResult);
2674
+ return [];
2675
+ }
1984
2676
  });
1985
2677
  }
1986
- updateCustomer(relation) {
2678
+ getDeliveryOptions() {
1987
2679
  return __awaiter(this, void 0, void 0, function* () {
1988
- return new Promise((resolve, reject) => {
1989
- return this.connector.updateCustomer(relation).then((result) => {
1990
- if (result.validationResult && result.validationResult.success) {
1991
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1992
- }
1993
- else {
1994
- reject(result.validationMessagesAsString);
1995
- }
1996
- });
1997
- });
2680
+ const result = yield this.connector.getDeliveryOptions();
2681
+ if (result.validationResult && result.validationResult.success) {
2682
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryOption, result.resultObjects);
2683
+ }
2684
+ else {
2685
+ this._handleValidationResult(result.validationResult);
2686
+ return [];
2687
+ }
1998
2688
  });
1999
2689
  }
2000
- getDeliveryMethods() {
2690
+ getPostalCodeRetrieval(postcalCode, houseNo) {
2001
2691
  return __awaiter(this, void 0, void 0, function* () {
2002
- return new Promise((resolve, reject) => {
2003
- // const collection = this._collectionService.getCollection(DeliveryMethod.name);
2004
- // if (collection) {
2005
- // return resolve(collection);
2006
- // }
2007
- return this.connector.getDeliveryMethods().then((result) => {
2008
- if (result.validationResult && result.validationResult.success) {
2009
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2010
- // this._collectionService.cacheCollection(DeliveryMethod.name, collection);
2011
- resolve(collection);
2012
- }
2013
- else {
2014
- reject(result.validationMessagesAsString);
2015
- }
2016
- });
2017
- });
2692
+ const result = yield this.connector.getPostalCodeRetrieval(postcalCode, houseNo);
2693
+ if (result.validationResult && result.validationResult.success) {
2694
+ if (result.validationResult && result.validationResult.success) {
2695
+ const outputParams = new GetPostalCodeRetrievalOutputParams();
2696
+ outputParams.city = result.resultObject.city;
2697
+ outputParams.street = result.resultObject.street;
2698
+ outputParams.status = result.resultObject.status;
2699
+ outputParams.netNumber = result.resultObject.netNumber;
2700
+ return outputParams;
2701
+ }
2702
+ else {
2703
+ this._handleValidationResult(result.validationResult);
2704
+ return null;
2705
+ }
2706
+ }
2018
2707
  });
2019
2708
  }
2020
- getDeliveryOptions() {
2709
+ getRelationListObjects(relationRequest) {
2021
2710
  return __awaiter(this, void 0, void 0, function* () {
2022
- return new Promise((resolve, reject) => {
2023
- const collection = this._collectionService.getCollection(DeliveryOption.name);
2024
- if (collection) {
2025
- return resolve(collection);
2026
- }
2027
- return this.connector.getDeliveryOptions().then((result) => {
2028
- if (result.validationResult && result.validationResult.success) {
2029
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2030
- this._collectionService.cacheCollection(DeliveryOption.name, collection);
2031
- resolve(collection);
2032
- }
2033
- else {
2034
- reject(result.validationMessagesAsString);
2035
- }
2036
- });
2037
- });
2711
+ const result = yield this.connector.getRelationListObjects(relationRequest);
2712
+ if (result.validationResult && result.validationResult.success) {
2713
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, result.resultObjects);
2714
+ }
2715
+ else {
2716
+ this._handleValidationResult(result.validationResult);
2717
+ return [];
2718
+ }
2038
2719
  });
2039
2720
  }
2040
- addRelationToTransaction(uuid, relationId) {
2721
+ getCommissionCodes(languageCode) {
2041
2722
  return __awaiter(this, void 0, void 0, function* () {
2042
- return new Promise((resolve, reject) => {
2043
- return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
2044
- if (result.validationResult && result.validationResult.success) {
2045
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2046
- }
2047
- else {
2048
- reject(result.validationMessagesAsString);
2049
- }
2050
- });
2051
- });
2723
+ const result = yield this.connector.getCommissionCodes(languageCode);
2724
+ if (result.validationResult && result.validationResult.success) {
2725
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
2726
+ }
2727
+ else {
2728
+ this._handleValidationResult(result.validationResult);
2729
+ return [];
2730
+ }
2052
2731
  });
2053
2732
  }
2054
- setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
2733
+ getInOutCollection(languageCode) {
2055
2734
  return __awaiter(this, void 0, void 0, function* () {
2056
- return new Promise((resolve, reject) => {
2057
- return this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then((result) => {
2058
- if (result.validationResult && result.validationResult.success) {
2059
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2060
- }
2061
- else {
2062
- reject(result.validationMessagesAsString);
2063
- }
2064
- });
2065
- });
2735
+ const result = yield this.connector.getInOutCollection(languageCode);
2736
+ if (result.validationResult && result.validationResult.success) {
2737
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
2738
+ }
2739
+ else {
2740
+ this._handleValidationResult(result.validationResult);
2741
+ return [];
2742
+ }
2066
2743
  });
2067
2744
  }
2068
- getPostalCodeRetrieval(postcalCode, houseNo) {
2745
+ getTransactionArticleWarehouses(goodId) {
2069
2746
  return __awaiter(this, void 0, void 0, function* () {
2070
2747
  return new Promise((resolve, reject) => {
2071
- return this.connector.getPostalCodeRetrieval(postcalCode, houseNo).then((result) => {
2748
+ return this.connector.getTransactionArticleWarehouses(goodId).then((result) => {
2072
2749
  if (result.validationResult && result.validationResult.success) {
2073
- const outputParams = new GetPostalCodeRetrievalOutputParams();
2074
- outputParams.city = result.resultObject.city;
2075
- outputParams.street = result.resultObject.street;
2076
- outputParams.status = result.resultObject.status;
2077
- outputParams.netNumber = result.resultObject.netNumber;
2078
- resolve(outputParams);
2750
+ resolve(result.resultObjects);
2079
2751
  }
2080
2752
  else {
2081
- reject(result.validationMessagesAsString);
2753
+ this._handleValidationResult(result.validationResult);
2754
+ reject([]);
2082
2755
  }
2083
2756
  });
2084
2757
  });
2085
2758
  });
2086
2759
  }
2087
- getRelationListObjects(relationRequest) {
2760
+ getTextTypes(languageCode) {
2761
+ return __awaiter(this, void 0, void 0, function* () {
2762
+ const result = yield this.connector.getTextTypes(languageCode);
2763
+ if (result.validationResult && result.validationResult.success) {
2764
+ const texts = this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
2765
+ texts.sort((a, b) => a.sequence > b.sequence ? 1 : -1);
2766
+ return texts;
2767
+ }
2768
+ else {
2769
+ this._handleValidationResult(result.validationResult);
2770
+ return [];
2771
+ }
2772
+ });
2773
+ }
2774
+ getStandardTexts(languageCode) {
2775
+ return __awaiter(this, void 0, void 0, function* () {
2776
+ const result = yield this.connector.getStandardTexts(languageCode);
2777
+ if (result.validationResult && result.validationResult.success) {
2778
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObjects);
2779
+ }
2780
+ else {
2781
+ this._handleValidationResult(result.validationResult);
2782
+ return [];
2783
+ }
2784
+ });
2785
+ }
2786
+ getBranches(branchNr) {
2787
+ return __awaiter(this, void 0, void 0, function* () {
2788
+ const result = yield this.connector.getBranches(branchNr);
2789
+ if (result.validationResult && result.validationResult.success) {
2790
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(BranchLov, result.resultObjects);
2791
+ }
2792
+ else {
2793
+ this._handleValidationResult(result.validationResult);
2794
+ return [];
2795
+ }
2796
+ });
2797
+ }
2798
+ getSalesPersons(date) {
2799
+ return __awaiter(this, void 0, void 0, function* () {
2800
+ const result = yield this.connector.getSalesPersons(date);
2801
+ if (result.validationResult && result.validationResult.success) {
2802
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(SalesPerson, result.resultObjects);
2803
+ }
2804
+ else {
2805
+ this._handleValidationResult(result.validationResult);
2806
+ return [];
2807
+ }
2808
+ });
2809
+ }
2810
+ getTags(category) {
2811
+ return __awaiter(this, void 0, void 0, function* () {
2812
+ const result = yield this.connector.getTags(category);
2813
+ if (result.validationResult && result.validationResult.success) {
2814
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Tag, result.resultObjects);
2815
+ }
2816
+ else {
2817
+ this._handleValidationResult(result.validationResult);
2818
+ return [];
2819
+ }
2820
+ });
2821
+ }
2822
+ getOnHoldCodes() {
2088
2823
  return __awaiter(this, void 0, void 0, function* () {
2089
- return new Promise((resolve, reject) => {
2090
- return this.connector.getRelationListObjects(relationRequest).then((result) => {
2091
- if (result.validationResult && result.validationResult.success) {
2092
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, result.resultObjects));
2093
- }
2094
- else {
2095
- reject(result.validationMessagesAsString);
2096
- }
2097
- });
2098
- });
2824
+ const result = yield this.connector.getOnHoldCodes();
2825
+ if (result.validationResult && result.validationResult.success) {
2826
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(OnHoldCode, result.resultObjects);
2827
+ }
2828
+ else {
2829
+ this._handleValidationResult(result.validationResult);
2830
+ return [];
2831
+ }
2099
2832
  });
2100
2833
  }
2101
- addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2834
+ getWarehouses(branchNr) {
2102
2835
  return __awaiter(this, void 0, void 0, function* () {
2103
- return new Promise((resolve, reject) => {
2104
- return this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then((result) => {
2105
- if (result.validationResult && result.validationResult.success) {
2106
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2107
- }
2108
- else {
2109
- reject(result.validationMessagesAsString);
2110
- }
2111
- });
2112
- });
2836
+ const result = yield this.connector.getWarehouses(branchNr);
2837
+ if (result.validationResult && result.validationResult.success) {
2838
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Warehouse, result.resultObjects);
2839
+ }
2840
+ else {
2841
+ this._handleValidationResult(result.validationResult);
2842
+ return [];
2843
+ }
2113
2844
  });
2114
2845
  }
2115
- addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
2846
+ getHistoricStateValues() {
2116
2847
  return __awaiter(this, void 0, void 0, function* () {
2117
- return new Promise((resolve, reject) => {
2118
- return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
2119
- if (result.validationResult && result.validationResult.success) {
2120
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2121
- }
2122
- else {
2123
- reject(result.validationMessagesAsString);
2124
- }
2125
- });
2126
- });
2848
+ const result = yield this.connector.getHistoricStateValues();
2849
+ if (result.validationResult && result.validationResult.success) {
2850
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(CodeDescription, result.resultObjects);
2851
+ }
2852
+ else {
2853
+ this._handleValidationResult(result.validationResult);
2854
+ return [];
2855
+ }
2127
2856
  });
2128
2857
  }
2129
- changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
2858
+ getPaymentMethods() {
2130
2859
  return __awaiter(this, void 0, void 0, function* () {
2131
- return new Promise((resolve, reject) => {
2132
- const request = {
2133
- transactionUuid: uuid,
2134
- lineUuid: lineUuid,
2135
- aboveLineNr: aboveLineNr,
2136
- belowLineNr: belowLineNr
2137
- };
2138
- return this.connector.changeLineSequence(request).then((result) => {
2139
- if (result.validationResult && result.validationResult.success) {
2140
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2141
- }
2142
- else {
2143
- reject(result.validationMessagesAsString);
2144
- }
2145
- });
2146
- });
2860
+ const result = yield this.connector.getPaymentMethodsForSalesOrder();
2861
+ if (result.validationResult && result.validationResult.success) {
2862
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObject);
2863
+ }
2864
+ else {
2865
+ this._handleValidationResult(result.validationResult);
2866
+ return [];
2867
+ }
2147
2868
  });
2148
2869
  }
2149
- cancelAddTransactionLine(lineUuid) {
2870
+ insertCustomer(relation) {
2150
2871
  return __awaiter(this, void 0, void 0, function* () {
2151
2872
  return new Promise((resolve, reject) => {
2152
- return this.connector.cancelAddTransactionLine(lineUuid).then((result) => {
2873
+ return this.connector.insertCustomer(relation).then((result) => {
2153
2874
  if (result.validationResult && result.validationResult.success) {
2154
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2875
+ resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
2155
2876
  }
2156
2877
  else {
2157
- reject(result.validationMessagesAsString);
2878
+ this._handleValidationResult(result.validationResult);
2879
+ reject(null);
2158
2880
  }
2159
2881
  });
2160
2882
  });
2161
2883
  });
2162
2884
  }
2163
- deleteTransactionLine(uuid, lineUuid) {
2885
+ updateCustomer(relation) {
2164
2886
  return __awaiter(this, void 0, void 0, function* () {
2165
2887
  return new Promise((resolve, reject) => {
2166
- return this.connector.deleteTransactionLine(uuid, lineUuid).then((result) => {
2888
+ return this.connector.updateCustomer(relation).then((result) => {
2167
2889
  if (result.validationResult && result.validationResult.success) {
2168
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2890
+ resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
2169
2891
  }
2170
2892
  else {
2171
- reject(result.validationMessagesAsString);
2893
+ this._handleValidationResult(result.validationResult);
2894
+ reject(null);
2172
2895
  }
2173
2896
  });
2174
2897
  });
2175
2898
  });
2176
2899
  }
2177
- changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
2178
- return __awaiter(this, void 0, void 0, function* () {
2179
- return new Promise((resolve, reject) => {
2180
- const request = {
2181
- transactionUuid: uuid,
2182
- lineUuid: lineUuid,
2183
- newQuantity: newQuantity
2184
- };
2185
- return this.connector.changeTransactionLineQuantity(request).then((result) => {
2186
- if (result.validationResult && result.validationResult.success) {
2187
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2188
- }
2189
- else {
2190
- reject(result.validationMessagesAsString);
2191
- }
2192
- });
2193
- });
2194
- });
2900
+ commit() {
2901
+ return this.connector.commit();
2195
2902
  }
2196
- resolvePendingLineReason(pendingLineValues) {
2197
- return __awaiter(this, void 0, void 0, function* () {
2198
- return new Promise((resolve, reject) => {
2199
- return this.connector.resolvePendingLineReason(pendingLineValues).then((result) => {
2200
- if (result.validationResult && result.validationResult.success) {
2201
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2202
- }
2203
- else {
2204
- reject(result.validationMessagesAsString);
2205
- }
2206
- });
2903
+ createTransaction(kind, branchNr) {
2904
+ return new Promise((resolve, reject) => {
2905
+ return this.connector.createTransaction(kind, branchNr).then((result) => {
2906
+ if (result.validationResult && result.validationResult.success) {
2907
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2908
+ }
2909
+ else {
2910
+ this._handleValidationResult(result.validationResult);
2911
+ reject(null);
2912
+ }
2207
2913
  });
2208
2914
  });
2209
2915
  }
2210
- resolvePendingHeaderReason(pendingHeaderValues) {
2211
- return __awaiter(this, void 0, void 0, function* () {
2212
- return new Promise((resolve, reject) => {
2213
- return this.connector.resolvePendingHeaderReason(pendingHeaderValues).then((result) => {
2214
- if (result.validationResult && result.validationResult.success) {
2215
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2216
- }
2217
- else {
2218
- reject(result.validationMessagesAsString);
2219
- }
2220
- });
2916
+ saveTransaction(uuid) {
2917
+ return new Promise((resolve, reject) => {
2918
+ return this.connector.saveTransaction(uuid).then((result) => {
2919
+ if (result.validationResult && result.validationResult.success) {
2920
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2921
+ }
2922
+ else {
2923
+ this._handleValidationResult(result.validationResult);
2924
+ reject(null);
2925
+ }
2221
2926
  });
2222
2927
  });
2223
2928
  }
2224
- getCommissionCodes(languageCode) {
2929
+ setRelationByUser(uuid, username, password) {
2225
2930
  return __awaiter(this, void 0, void 0, function* () {
2226
2931
  return new Promise((resolve, reject) => {
2227
- return this.connector.getCommissionCodes(languageCode).then((result) => {
2932
+ return this.connector.setRelationByUser(uuid, username, password).then((result) => {
2228
2933
  if (result.validationResult && result.validationResult.success) {
2229
- resolve(result.resultObjects);
2934
+ resolve(result.validationResult.success);
2230
2935
  }
2231
2936
  else {
2232
- reject(result.validationMessagesAsString);
2937
+ this._handleValidationResult(result.validationResult);
2938
+ reject(false);
2233
2939
  }
2234
2940
  });
2235
2941
  });
2236
2942
  });
2237
2943
  }
2238
- getInOutCollection(languageCode) {
2944
+ resolvePendingHeaderReason(pendingHeaderValues) {
2239
2945
  return __awaiter(this, void 0, void 0, function* () {
2240
2946
  return new Promise((resolve, reject) => {
2241
- return this.connector.getInOutCollection(languageCode).then((result) => {
2947
+ return this.connector.resolvePendingHeaderReason(pendingHeaderValues).then((result) => {
2242
2948
  if (result.validationResult && result.validationResult.success) {
2243
- resolve(result.resultObjects);
2949
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2244
2950
  }
2245
2951
  else {
2246
- reject(result.validationMessagesAsString);
2952
+ this._handleValidationResult(result.validationResult);
2953
+ reject(null);
2247
2954
  }
2248
2955
  });
2249
2956
  });
2250
2957
  });
2251
2958
  }
2252
- getTransactionArticleWarehouses(goodId) {
2959
+ resolvePendingLineReason(pendingLineValues) {
2253
2960
  return __awaiter(this, void 0, void 0, function* () {
2254
2961
  return new Promise((resolve, reject) => {
2255
- return this.connector.getTransactionArticleWarehouses(goodId).then((result) => {
2962
+ return this.connector.resolvePendingLineReason(pendingLineValues).then((result) => {
2256
2963
  if (result.validationResult && result.validationResult.success) {
2257
- resolve(result.resultObjects);
2964
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2258
2965
  }
2259
2966
  else {
2260
- reject(result.validationMessagesAsString);
2967
+ this._handleValidationResult(result.validationResult);
2968
+ reject(null);
2261
2969
  }
2262
2970
  });
2263
2971
  });
2264
2972
  });
2265
2973
  }
2266
- setRelationByUser(uuid, username, password) {
2974
+ addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2267
2975
  return __awaiter(this, void 0, void 0, function* () {
2268
2976
  return new Promise((resolve, reject) => {
2269
- return this.connector.setRelationByUser(uuid, username, password).then((result) => {
2977
+ return this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then((result) => {
2270
2978
  if (result.validationResult && result.validationResult.success) {
2271
- resolve(result.validationResult.success);
2979
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2272
2980
  }
2273
2981
  else {
2274
- reject(result.validationMessagesAsString);
2982
+ this._handleValidationResult(result.validationResult);
2983
+ reject(null);
2275
2984
  }
2276
2985
  });
2277
2986
  });
2278
2987
  });
2279
2988
  }
2280
- getTextTypes(languageCode) {
2989
+ addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
2281
2990
  return __awaiter(this, void 0, void 0, function* () {
2282
2991
  return new Promise((resolve, reject) => {
2283
- return this.connector.getTextTypes(languageCode).then((result) => {
2992
+ return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
2284
2993
  if (result.validationResult && result.validationResult.success) {
2285
- const texts = this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
2286
- texts.sort((a, b) => a.sequence > b.sequence ? 1 : -1);
2287
- resolve(texts);
2994
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2288
2995
  }
2289
2996
  else {
2290
- reject(result.validationMessagesAsString);
2997
+ this._handleValidationResult(result.validationResult);
2998
+ reject(null);
2291
2999
  }
2292
3000
  });
2293
3001
  });
2294
3002
  });
2295
3003
  }
2296
- getStandardTexts(languageCode) {
3004
+ addRelationToTransaction(uuid, relationId) {
2297
3005
  return __awaiter(this, void 0, void 0, function* () {
2298
3006
  return new Promise((resolve, reject) => {
2299
- return this.connector.getStandardTexts(languageCode).then((result) => {
3007
+ return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
2300
3008
  if (result.validationResult && result.validationResult.success) {
2301
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObject));
3009
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2302
3010
  }
2303
3011
  else {
2304
- reject(result.validationMessagesAsString);
3012
+ this._handleValidationResult(result.validationResult);
3013
+ reject(null);
2305
3014
  }
2306
3015
  });
2307
3016
  });
2308
3017
  });
2309
3018
  }
2310
- getBranches(branchNr) {
3019
+ setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
2311
3020
  return __awaiter(this, void 0, void 0, function* () {
2312
3021
  return new Promise((resolve, reject) => {
2313
- return this.connector.getBranches(branchNr).then((result) => {
3022
+ return this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then((result) => {
2314
3023
  if (result.validationResult && result.validationResult.success) {
2315
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(BranchLov, result.resultObjects));
3024
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2316
3025
  }
2317
3026
  else {
2318
- reject(result.validationMessagesAsString);
3027
+ this._handleValidationResult(result.validationResult);
3028
+ reject(null);
2319
3029
  }
2320
3030
  });
2321
3031
  });
2322
3032
  });
2323
3033
  }
2324
- getSalesPersons(date) {
3034
+ changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
2325
3035
  return __awaiter(this, void 0, void 0, function* () {
2326
3036
  return new Promise((resolve, reject) => {
2327
- return this.connector.getSalesPersons(date).then((result) => {
3037
+ const request = {
3038
+ transactionUuid: uuid,
3039
+ lineUuid: lineUuid,
3040
+ aboveLineNr: aboveLineNr,
3041
+ belowLineNr: belowLineNr
3042
+ };
3043
+ return this.connector.changeLineSequence(request).then((result) => {
2328
3044
  if (result.validationResult && result.validationResult.success) {
2329
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(SalesPerson, result.resultObjects));
3045
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2330
3046
  }
2331
3047
  else {
2332
- reject(result.validationMessagesAsString);
3048
+ this._handleValidationResult(result.validationResult);
3049
+ reject(null);
2333
3050
  }
2334
3051
  });
2335
3052
  });
2336
3053
  });
2337
3054
  }
2338
- getTags(category) {
3055
+ cancelAddTransactionLine(lineUuid) {
2339
3056
  return __awaiter(this, void 0, void 0, function* () {
2340
3057
  return new Promise((resolve, reject) => {
2341
- const collection = this._collectionService.getCollection(Tag.name, [category]);
2342
- if (collection) {
2343
- return resolve(collection);
2344
- }
2345
- return this.connector.getTags(category).then((result) => {
3058
+ return this.connector.cancelAddTransactionLine(lineUuid).then((result) => {
2346
3059
  if (result.validationResult && result.validationResult.success) {
2347
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Tag, result.resultObjects);
2348
- this._collectionService.cacheCollection(Tag.name, collection, [category]);
2349
- resolve(collection);
3060
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2350
3061
  }
2351
3062
  else {
2352
- reject(result.validationMessagesAsString);
3063
+ this._handleValidationResult(result.validationResult);
3064
+ reject(null);
2353
3065
  }
2354
3066
  });
2355
3067
  });
2356
3068
  });
2357
3069
  }
2358
- getOnHoldCodes() {
3070
+ deleteTransactionLine(uuid, lineUuid) {
2359
3071
  return __awaiter(this, void 0, void 0, function* () {
2360
3072
  return new Promise((resolve, reject) => {
2361
- const collection = this._collectionService.getCollection(OnHoldCode.name);
2362
- if (collection) {
2363
- return resolve(collection);
2364
- }
2365
- return this.connector.getOnHoldCodes().then((result) => {
3073
+ return this.connector.deleteTransactionLine(uuid, lineUuid).then((result) => {
2366
3074
  if (result.validationResult && result.validationResult.success) {
2367
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(OnHoldCode, result.resultObjects);
2368
- this._collectionService.cacheCollection(OnHoldCode.name, collection);
2369
- resolve(collection);
3075
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2370
3076
  }
2371
3077
  else {
2372
- reject(result.validationMessagesAsString);
3078
+ this._handleValidationResult(result.validationResult);
3079
+ reject(null);
2373
3080
  }
2374
3081
  });
2375
3082
  });
2376
3083
  });
2377
3084
  }
2378
- getWarehouses(branchNr) {
3085
+ changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
2379
3086
  return __awaiter(this, void 0, void 0, function* () {
2380
3087
  return new Promise((resolve, reject) => {
2381
- // const collection = this._collectionService.getCollection(Warehouse.name);
2382
- // if (collection) {
2383
- // return resolve(collection);
2384
- // }
2385
- return this.connector.getWarehouses(branchNr).then((result) => {
3088
+ const request = {
3089
+ transactionUuid: uuid,
3090
+ lineUuid: lineUuid,
3091
+ newQuantity: newQuantity
3092
+ };
3093
+ return this.connector.changeTransactionLineQuantity(request).then((result) => {
2386
3094
  if (result.validationResult && result.validationResult.success) {
2387
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Warehouse, result.resultObjects);
2388
- // this._collectionService.cacheCollection(Warehouse.name, collection);
2389
- resolve(collection);
3095
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2390
3096
  }
2391
3097
  else {
2392
- reject(result.validationMessagesAsString);
3098
+ this._handleValidationResult(result.validationResult);
3099
+ reject(null);
2393
3100
  }
2394
3101
  });
2395
3102
  });
2396
3103
  });
2397
3104
  }
2398
- getHistoricStateValues() {
2399
- return __awaiter(this, void 0, void 0, function* () {
2400
- return new Promise((resolve, reject) => {
2401
- const result = this.connector.getHistoricStateValues();
2402
- if (result.validationResult && result.validationResult.success) {
2403
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(CodeDescription, result.resultObjects));
2404
- }
2405
- else {
2406
- reject(result.validationMessagesAsString);
2407
- }
2408
- });
2409
- });
2410
- }
2411
- getPaymentMethods() {
2412
- return __awaiter(this, void 0, void 0, function* () {
2413
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
2414
- const collection = this._collectionService.getCollection(PaymentMethod.name);
2415
- if (collection) {
2416
- return resolve(collection);
2417
- }
2418
- const result = yield this.connector.getPaymentMethods();
2419
- if (result.validationResult && result.validationResult.success) {
2420
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObjects);
2421
- this._collectionService.cacheCollection(PaymentMethod.name, collection);
2422
- resolve(collection);
2423
- }
2424
- else {
2425
- reject(result.validationMessagesAsString);
2426
- }
2427
- }));
2428
- });
2429
- }
2430
3105
  changeTransactionLineCommissionCode(uuid, lineUuid, code) {
2431
3106
  return __awaiter(this, void 0, void 0, function* () {
2432
3107
  const request = {
@@ -2439,7 +3114,8 @@ class TransactionConnectorService {
2439
3114
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2440
3115
  }
2441
3116
  else {
2442
- return Promise.reject(response.validationMessagesAsString);
3117
+ this._handleValidationResult(response.validationResult);
3118
+ return null;
2443
3119
  }
2444
3120
  });
2445
3121
  }
@@ -2455,7 +3131,8 @@ class TransactionConnectorService {
2455
3131
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2456
3132
  }
2457
3133
  else {
2458
- return Promise.reject(response.validationMessagesAsString);
3134
+ this._handleValidationResult(response.validationResult);
3135
+ return null;
2459
3136
  }
2460
3137
  });
2461
3138
  }
@@ -2471,7 +3148,8 @@ class TransactionConnectorService {
2471
3148
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2472
3149
  }
2473
3150
  else {
2474
- return Promise.reject(response.validationMessagesAsString);
3151
+ this._handleValidationResult(response.validationResult);
3152
+ return null;
2475
3153
  }
2476
3154
  });
2477
3155
  }
@@ -2487,7 +3165,8 @@ class TransactionConnectorService {
2487
3165
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2488
3166
  }
2489
3167
  else {
2490
- return Promise.reject(response.validationMessagesAsString);
3168
+ this._handleValidationResult(response.validationResult);
3169
+ return null;
2491
3170
  }
2492
3171
  });
2493
3172
  }
@@ -2503,7 +3182,8 @@ class TransactionConnectorService {
2503
3182
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2504
3183
  }
2505
3184
  else {
2506
- return Promise.reject(response.validationMessagesAsString);
3185
+ this._handleValidationResult(response.validationResult);
3186
+ return null;
2507
3187
  }
2508
3188
  });
2509
3189
  }
@@ -2522,7 +3202,8 @@ class TransactionConnectorService {
2522
3202
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2523
3203
  }
2524
3204
  else {
2525
- return Promise.reject(response.validationMessagesAsString);
3205
+ this._handleValidationResult(response.validationResult);
3206
+ return null;
2526
3207
  }
2527
3208
  });
2528
3209
  }
@@ -2538,7 +3219,8 @@ class TransactionConnectorService {
2538
3219
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2539
3220
  }
2540
3221
  else {
2541
- return Promise.reject(response.validationMessagesAsString);
3222
+ this._handleValidationResult(response.validationResult);
3223
+ return null;
2542
3224
  }
2543
3225
  });
2544
3226
  }
@@ -2554,7 +3236,8 @@ class TransactionConnectorService {
2554
3236
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2555
3237
  }
2556
3238
  else {
2557
- return Promise.reject(response.validationMessagesAsString);
3239
+ this._handleValidationResult(response.validationResult);
3240
+ return null;
2558
3241
  }
2559
3242
  });
2560
3243
  }
@@ -2570,7 +3253,8 @@ class TransactionConnectorService {
2570
3253
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2571
3254
  }
2572
3255
  else {
2573
- return Promise.reject(response.validationMessagesAsString);
3256
+ this._handleValidationResult(response.validationResult);
3257
+ return null;
2574
3258
  }
2575
3259
  });
2576
3260
  }
@@ -2586,7 +3270,8 @@ class TransactionConnectorService {
2586
3270
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2587
3271
  }
2588
3272
  else {
2589
- return Promise.reject(response.validationMessagesAsString);
3273
+ this._handleValidationResult(response.validationResult);
3274
+ return null;
2590
3275
  }
2591
3276
  });
2592
3277
  }
@@ -2602,7 +3287,8 @@ class TransactionConnectorService {
2602
3287
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2603
3288
  }
2604
3289
  else {
2605
- return Promise.reject(response.validationMessagesAsString);
3290
+ this._handleValidationResult(response.validationResult);
3291
+ return null;
2606
3292
  }
2607
3293
  });
2608
3294
  }
@@ -2618,7 +3304,8 @@ class TransactionConnectorService {
2618
3304
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2619
3305
  }
2620
3306
  else {
2621
- return Promise.reject(response.validationMessagesAsString);
3307
+ this._handleValidationResult(response.validationResult);
3308
+ return null;
2622
3309
  }
2623
3310
  });
2624
3311
  }
@@ -2633,7 +3320,8 @@ class TransactionConnectorService {
2633
3320
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2634
3321
  }
2635
3322
  else {
2636
- return Promise.reject(response.validationMessagesAsString);
3323
+ this._handleValidationResult(response.validationResult);
3324
+ return null;
2637
3325
  }
2638
3326
  });
2639
3327
  }
@@ -2648,7 +3336,8 @@ class TransactionConnectorService {
2648
3336
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2649
3337
  }
2650
3338
  else {
2651
- return Promise.reject(response.validationMessagesAsString);
3339
+ this._handleValidationResult(response.validationResult);
3340
+ return null;
2652
3341
  }
2653
3342
  });
2654
3343
  }
@@ -2663,7 +3352,8 @@ class TransactionConnectorService {
2663
3352
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2664
3353
  }
2665
3354
  else {
2666
- return Promise.reject(response.validationMessagesAsString);
3355
+ this._handleValidationResult(response.validationResult);
3356
+ return null;
2667
3357
  }
2668
3358
  });
2669
3359
  }
@@ -2678,7 +3368,8 @@ class TransactionConnectorService {
2678
3368
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2679
3369
  }
2680
3370
  else {
2681
- return Promise.reject(response.validationMessagesAsString);
3371
+ this._handleValidationResult(response.validationResult);
3372
+ return null;
2682
3373
  }
2683
3374
  });
2684
3375
  }
@@ -2693,7 +3384,8 @@ class TransactionConnectorService {
2693
3384
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2694
3385
  }
2695
3386
  else {
2696
- return Promise.reject(response.validationMessagesAsString);
3387
+ this._handleValidationResult(response.validationResult);
3388
+ return null;
2697
3389
  }
2698
3390
  });
2699
3391
  }
@@ -2708,7 +3400,8 @@ class TransactionConnectorService {
2708
3400
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2709
3401
  }
2710
3402
  else {
2711
- return Promise.reject(response.validationMessagesAsString);
3403
+ this._handleValidationResult(response.validationResult);
3404
+ return null;
2712
3405
  }
2713
3406
  });
2714
3407
  }
@@ -2723,7 +3416,8 @@ class TransactionConnectorService {
2723
3416
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2724
3417
  }
2725
3418
  else {
2726
- return Promise.reject(response.validationMessagesAsString);
3419
+ this._handleValidationResult(response.validationResult);
3420
+ return null;
2727
3421
  }
2728
3422
  });
2729
3423
  }
@@ -2738,7 +3432,8 @@ class TransactionConnectorService {
2738
3432
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2739
3433
  }
2740
3434
  else {
2741
- return Promise.reject(response.validationMessagesAsString);
3435
+ this._handleValidationResult(response.validationResult);
3436
+ return null;
2742
3437
  }
2743
3438
  });
2744
3439
  }
@@ -2753,7 +3448,8 @@ class TransactionConnectorService {
2753
3448
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2754
3449
  }
2755
3450
  else {
2756
- return Promise.reject(response.validationMessagesAsString);
3451
+ this._handleValidationResult(response.validationResult);
3452
+ return null;
2757
3453
  }
2758
3454
  });
2759
3455
  }
@@ -2769,7 +3465,8 @@ class TransactionConnectorService {
2769
3465
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2770
3466
  }
2771
3467
  else {
2772
- return Promise.reject(response.validationMessagesAsString);
3468
+ this._handleValidationResult(response.validationResult);
3469
+ return null;
2773
3470
  }
2774
3471
  });
2775
3472
  }
@@ -2784,7 +3481,8 @@ class TransactionConnectorService {
2784
3481
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2785
3482
  }
2786
3483
  else {
2787
- return Promise.reject(response.validationMessagesAsString);
3484
+ this._handleValidationResult(response.validationResult);
3485
+ return null;
2788
3486
  }
2789
3487
  });
2790
3488
  }
@@ -2799,7 +3497,8 @@ class TransactionConnectorService {
2799
3497
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2800
3498
  }
2801
3499
  else {
2802
- return Promise.reject(response.validationMessagesAsString);
3500
+ this._handleValidationResult(response.validationResult);
3501
+ return null;
2803
3502
  }
2804
3503
  });
2805
3504
  }
@@ -2814,7 +3513,8 @@ class TransactionConnectorService {
2814
3513
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2815
3514
  }
2816
3515
  else {
2817
- return Promise.reject(response.validationMessagesAsString);
3516
+ this._handleValidationResult(response.validationResult);
3517
+ return null;
2818
3518
  }
2819
3519
  });
2820
3520
  }
@@ -2829,11 +3529,12 @@ class TransactionConnectorService {
2829
3529
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2830
3530
  }
2831
3531
  else {
2832
- return Promise.reject(response.validationMessagesAsString);
3532
+ this._handleValidationResult(response.validationResult);
3533
+ return null;
2833
3534
  }
2834
3535
  });
2835
3536
  }
2836
- updateHeaderTransactionAdmCoordinator(uuid, relation) {
3537
+ changeHeaderTransactionAdmCoordinator(uuid, relation) {
2837
3538
  return __awaiter(this, void 0, void 0, function* () {
2838
3539
  const request = {
2839
3540
  transactionUuid: uuid,
@@ -2844,11 +3545,12 @@ class TransactionConnectorService {
2844
3545
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2845
3546
  }
2846
3547
  else {
2847
- return Promise.reject(response.validationMessagesAsString);
3548
+ this._handleValidationResult(response.validationResult);
3549
+ return null;
2848
3550
  }
2849
3551
  });
2850
3552
  }
2851
- updateHeaderTransactionMarketing(uuid, code) {
3553
+ changeHeaderTransactionMarketing(uuid, code) {
2852
3554
  return __awaiter(this, void 0, void 0, function* () {
2853
3555
  const request = {
2854
3556
  transactionUuid: uuid,
@@ -2859,7 +3561,8 @@ class TransactionConnectorService {
2859
3561
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2860
3562
  }
2861
3563
  else {
2862
- return Promise.reject(response.validationMessagesAsString);
3564
+ this._handleValidationResult(response.validationResult);
3565
+ return null;
2863
3566
  }
2864
3567
  });
2865
3568
  }
@@ -2874,7 +3577,8 @@ class TransactionConnectorService {
2874
3577
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2875
3578
  }
2876
3579
  else {
2877
- return Promise.reject(response.validationMessagesAsString);
3580
+ this._handleValidationResult(response.validationResult);
3581
+ return null;
2878
3582
  }
2879
3583
  });
2880
3584
  }
@@ -2890,7 +3594,8 @@ class TransactionConnectorService {
2890
3594
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2891
3595
  }
2892
3596
  else {
2893
- return Promise.reject(response.validationMessagesAsString);
3597
+ this._handleValidationResult(response.validationResult);
3598
+ return null;
2894
3599
  }
2895
3600
  });
2896
3601
  }
@@ -2905,7 +3610,8 @@ class TransactionConnectorService {
2905
3610
  console.log(response);
2906
3611
  }
2907
3612
  else {
2908
- return Promise.reject(response.validationMessagesAsString);
3613
+ this._handleValidationResult(response.validationResult);
3614
+ return null;
2909
3615
  }
2910
3616
  });
2911
3617
  }
@@ -2923,7 +3629,8 @@ class TransactionConnectorService {
2923
3629
  console.log(response);
2924
3630
  }
2925
3631
  else {
2926
- return Promise.reject(response.validationMessagesAsString);
3632
+ this._handleValidationResult(response.validationResult);
3633
+ return null;
2927
3634
  }
2928
3635
  });
2929
3636
  }
@@ -2939,7 +3646,8 @@ class TransactionConnectorService {
2939
3646
  return this._boFactory.makeWithRawBackendData(CreatePaymentLinkResult, response.resultObject);
2940
3647
  }
2941
3648
  else {
2942
- return Promise.reject(response.validationMessagesAsString);
3649
+ this._handleValidationResult(response.validationResult);
3650
+ return null;
2943
3651
  }
2944
3652
  });
2945
3653
  }
@@ -2950,514 +3658,630 @@ class TransactionConnectorService {
2950
3658
  return this._boFactory.makeWithRawBackendData(PaymentLinkStatus, response.resultObject);
2951
3659
  }
2952
3660
  else {
2953
- return Promise.reject(response.validationMessagesAsString);
3661
+ this._handleValidationResult(response.validationResult);
3662
+ return null;
3663
+ }
3664
+ });
3665
+ }
3666
+ getGoodsReceiptStatus(transId, lineNr) {
3667
+ return __awaiter(this, void 0, void 0, function* () {
3668
+ const response = yield this.connector.getGoodsReceiptStatus(transId, lineNr);
3669
+ if (response && response.validationResult && response.validationResult.success) {
3670
+ return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
3671
+ }
3672
+ else {
3673
+ this._handleValidationResult(response.validationResult);
3674
+ return null;
3675
+ }
3676
+ });
3677
+ }
3678
+ getGoodsReceiptStatusWithHistory(transId, lineNr) {
3679
+ return __awaiter(this, void 0, void 0, function* () {
3680
+ const response = yield this.connector.getGoodsReceiptStatusWithHistory(transId, lineNr);
3681
+ if (response && response.validationResult && response.validationResult.success) {
3682
+ return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
3683
+ }
3684
+ else {
3685
+ this._handleValidationResult(response.validationResult);
3686
+ return null;
3687
+ }
3688
+ });
3689
+ }
3690
+ receiveGoodsForPurchaseOrder(request) {
3691
+ return __awaiter(this, void 0, void 0, function* () {
3692
+ const response = yield this.connector.receiveGoodsForPurchaseOrder(request);
3693
+ if (response && response.validationResult && response.validationResult.success) {
3694
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
3695
+ }
3696
+ else {
3697
+ this._handleValidationResult(response.validationResult);
3698
+ return null;
3699
+ }
3700
+ });
3701
+ }
3702
+ receiveGoodsForPurchaseOrderCorrection(request) {
3703
+ return __awaiter(this, void 0, void 0, function* () {
3704
+ const response = yield this.connector.receiveGoodsForPurchaseOrderCorrection(request);
3705
+ if (response && response.validationResult && response.validationResult.success) {
3706
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
3707
+ }
3708
+ else {
3709
+ this._handleValidationResult(response.validationResult);
3710
+ return null;
2954
3711
  }
2955
3712
  });
2956
3713
  }
2957
- getGoodsReceiptStatus(transId, lineNr) {
3714
+ getPurchasePortalLines(request) {
3715
+ return __awaiter(this, void 0, void 0, function* () {
3716
+ return new Promise((resolve, reject) => {
3717
+ return this.connector.getPurchasePortalLines(request).then((result) => {
3718
+ if (result.validationResult && result.validationResult.success) {
3719
+ if (result.resultObjects) {
3720
+ resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(PurchasePortalLine, result.resultObjects));
3721
+ }
3722
+ }
3723
+ else {
3724
+ this._handleValidationResult(result.validationResult);
3725
+ reject(null);
3726
+ }
3727
+ });
3728
+ });
3729
+ });
3730
+ }
3731
+ updatePurchasePortalLines(purchasePortalLine) {
3732
+ return __awaiter(this, void 0, void 0, function* () {
3733
+ return this.connector.updatePurchasePortalLines(purchasePortalLine);
3734
+ });
3735
+ }
3736
+ _handleValidationResult(result) {
3737
+ this._errorService.showValidationError(result);
3738
+ }
3739
+ }
3740
+ TransactionConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionConnectorAdapterService_Factory() { return new TransactionConnectorAdapterService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService), i0.ɵɵinject(ErrorService)); }, token: TransactionConnectorAdapterService, providedIn: "root" });
3741
+ TransactionConnectorAdapterService.decorators = [
3742
+ { type: Injectable, args: [{
3743
+ providedIn: "root"
3744
+ },] }
3745
+ ];
3746
+ TransactionConnectorAdapterService.ctorParameters = () => [
3747
+ { type: OptionsService },
3748
+ { type: SelectMultipleCacheService },
3749
+ { type: SelectMultipleParameterizedCacheService },
3750
+ { type: ErrorService }
3751
+ ];
3752
+
3753
+ class SelectSingleCacheService {
3754
+ constructor(_boCacheManager) {
3755
+ this._boCacheManager = _boCacheManager;
3756
+ }
3757
+ requestCache(clazz, sourceId, loadFunction) {
3758
+ if (!this._boCacheManager.hasSingleCacheItem(clazz, sourceId)) {
3759
+ this._createCacheItem(clazz, sourceId, loadFunction);
3760
+ }
3761
+ // noinspection TypeScriptValidateTypes
3762
+ return this._boCacheManager.getSingleCacheItem(clazz, sourceId);
3763
+ }
3764
+ _createCacheItem(clazz, sourceId, loadFunction) {
3765
+ // noinspection TypeScriptValidateTypes
3766
+ return this._boCacheManager.addNewSelectSingleCacheItem(clazz, sourceId, loadFunction);
3767
+ }
3768
+ }
3769
+ SelectSingleCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SelectSingleCacheService_Factory() { return new SelectSingleCacheService(i0.ɵɵinject(BusinessObjectCacheManagerService)); }, token: SelectSingleCacheService, providedIn: "root" });
3770
+ SelectSingleCacheService.decorators = [
3771
+ { type: Injectable, args: [{
3772
+ providedIn: "root"
3773
+ },] }
3774
+ ];
3775
+ SelectSingleCacheService.ctorParameters = () => [
3776
+ { type: BusinessObjectCacheManagerService }
3777
+ ];
3778
+
3779
+ class TransactionConnectorService {
3780
+ constructor(_adapterService, _selectSingleCacheService, _selectMultipleCacheService, _selectMultipleParameterizedCacheService) {
3781
+ this._adapterService = _adapterService;
3782
+ this._selectSingleCacheService = _selectSingleCacheService;
3783
+ this._selectMultipleCacheService = _selectMultipleCacheService;
3784
+ this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
3785
+ }
3786
+ connect() {
3787
+ return __awaiter(this, void 0, void 0, function* () {
3788
+ this._adapterService.connect();
3789
+ });
3790
+ }
3791
+ getArticleFullObject(goodId) {
3792
+ return __awaiter(this, void 0, void 0, function* () {
3793
+ return this._selectSingleCacheService.requestCache(ArticleFullObject, goodId, () => {
3794
+ return this._adapterService.getArticleFullObject(goodId);
3795
+ }).getValue();
3796
+ });
3797
+ }
3798
+ getGoodIdFromArticleNr(articleNr) {
3799
+ return this._adapterService.getGoodIdFromArticleNr(articleNr);
3800
+ }
3801
+ getSingleImage(nodeId, publication, includeMimetype, thumb) {
3802
+ return this._adapterService.getSingleImage(nodeId, publication, includeMimetype, thumb);
3803
+ }
3804
+ getCountries() {
3805
+ return this._selectMultipleCacheService.requestCache(Country, () => {
3806
+ return this._adapterService.getCountries();
3807
+ }).getValue();
3808
+ }
3809
+ getCustomerGroups() {
3810
+ return __awaiter(this, void 0, void 0, function* () {
3811
+ return this._selectMultipleCacheService.requestCache(CustomerGroup, () => {
3812
+ return this._adapterService.getCustomerGroups();
3813
+ }).getValue();
3814
+ });
3815
+ }
3816
+ getCountry(countryCode) {
3817
+ return __awaiter(this, void 0, void 0, function* () {
3818
+ return this._adapterService.getCountry(countryCode);
3819
+ });
3820
+ }
3821
+ getPrivacySettings() {
3822
+ return this._selectMultipleCacheService.requestCache(PrivacySetting, () => {
3823
+ return this._adapterService.getPrivacySettings();
3824
+ }).getValue();
3825
+ }
3826
+ getRelationPrivacySettings() {
3827
+ return __awaiter(this, void 0, void 0, function* () {
3828
+ return this._adapterService.getRelationPrivacySettings();
3829
+ });
3830
+ }
3831
+ getMarketingCodes() {
3832
+ return this._selectMultipleCacheService.requestCache(Marketing, () => {
3833
+ return this._adapterService.getMarketingCodes();
3834
+ }).getValue();
3835
+ }
3836
+ createTransaction(kind, branchNr) {
3837
+ return this._adapterService.createTransaction(kind, branchNr);
3838
+ }
3839
+ getArticleBoundTextLinesOfArticleLine(articleLineUuid) {
3840
+ return __awaiter(this, void 0, void 0, function* () {
3841
+ return this._adapterService.getArticleBoundTextLinesOfArticleLine(articleLineUuid);
3842
+ });
3843
+ }
3844
+ getTransactionByNrAndKind(kind, transactionNo) {
3845
+ return this._adapterService.getTransactionByNrAndKind(kind, transactionNo);
3846
+ }
3847
+ getTransactionById(transactionId) {
3848
+ return this._adapterService.getTransactionById(transactionId);
3849
+ }
3850
+ commit() {
3851
+ return this._adapterService.commit();
3852
+ }
3853
+ saveTransaction(uuid) {
3854
+ return this._adapterService.saveTransaction(uuid);
3855
+ }
3856
+ getCustomerFullObject(relationNo) {
3857
+ return this._selectSingleCacheService.requestCache(CustomerFullObject, relationNo, () => {
3858
+ return this._adapterService.getCustomerFullObject(relationNo);
3859
+ }).getValue();
3860
+ }
3861
+ getCashRegisters(branch, group) {
3862
+ return __awaiter(this, void 0, void 0, function* () {
3863
+ const params = {
3864
+ branch: branch,
3865
+ group: group
3866
+ };
3867
+ return this._selectMultipleParameterizedCacheService.requestCache(CashRegister, (branch, group) => {
3868
+ return this._adapterService.getCashRegisters(branch, group);
3869
+ }).getValue(branch, group);
3870
+ });
3871
+ }
3872
+ getRelationNumber(relationId) {
3873
+ return __awaiter(this, void 0, void 0, function* () {
3874
+ return this._adapterService.getRelationNumber(relationId);
3875
+ });
3876
+ }
3877
+ getPriceLists(code) {
3878
+ return __awaiter(this, void 0, void 0, function* () {
3879
+ return this._selectMultipleParameterizedCacheService.requestCache(PriceList, (code) => {
3880
+ return this._adapterService.getPriceLists(code);
3881
+ }).getValue(code);
3882
+ });
3883
+ }
3884
+ getVatList(onlyValid = false) {
3885
+ return __awaiter(this, void 0, void 0, function* () {
3886
+ return this._selectMultipleParameterizedCacheService.requestCache(Vat, (onlyValid = false) => {
3887
+ return this._adapterService.getVatList(onlyValid);
3888
+ }).getValue(onlyValid);
3889
+ });
3890
+ }
3891
+ searchTransactions(request) {
3892
+ return __awaiter(this, void 0, void 0, function* () {
3893
+ return this._adapterService.searchTransactions(request);
3894
+ });
3895
+ }
3896
+ getSequenceValue(sequenceName) {
3897
+ return __awaiter(this, void 0, void 0, function* () {
3898
+ return this._adapterService.getSequenceValue(sequenceName);
3899
+ });
3900
+ }
3901
+ insertCustomer(relation) {
3902
+ return __awaiter(this, void 0, void 0, function* () {
3903
+ return this._adapterService.insertCustomer(relation);
3904
+ });
3905
+ }
3906
+ updateCustomer(relation) {
3907
+ return __awaiter(this, void 0, void 0, function* () {
3908
+ return this._adapterService.updateCustomer(relation);
3909
+ });
3910
+ }
3911
+ getDeliveryMethods() {
3912
+ return __awaiter(this, void 0, void 0, function* () {
3913
+ return this._selectMultipleCacheService.requestCache(DeliveryMethod, () => {
3914
+ return this._adapterService.getDeliveryMethods();
3915
+ }).getValue();
3916
+ });
3917
+ }
3918
+ getDeliveryOptions() {
3919
+ return __awaiter(this, void 0, void 0, function* () {
3920
+ return this._selectMultipleCacheService.requestCache(DeliveryOption, () => {
3921
+ return this._adapterService.getDeliveryOptions();
3922
+ }).getValue();
3923
+ });
3924
+ }
3925
+ addRelationToTransaction(uuid, relationId) {
3926
+ return __awaiter(this, void 0, void 0, function* () {
3927
+ return this._adapterService.addRelationToTransaction(uuid, relationId);
3928
+ });
3929
+ }
3930
+ setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
3931
+ return __awaiter(this, void 0, void 0, function* () {
3932
+ return this._adapterService.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest);
3933
+ });
3934
+ }
3935
+ getPostalCodeRetrieval(postcalCode, houseNo) {
3936
+ return __awaiter(this, void 0, void 0, function* () {
3937
+ return this._adapterService.getPostalCodeRetrieval(postcalCode, houseNo);
3938
+ });
3939
+ }
3940
+ getRelationListObjects(relationRequest) {
3941
+ return __awaiter(this, void 0, void 0, function* () {
3942
+ return this._adapterService.getRelationListObjects(relationRequest);
3943
+ });
3944
+ }
3945
+ addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
3946
+ return __awaiter(this, void 0, void 0, function* () {
3947
+ return this._adapterService.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr);
3948
+ });
3949
+ }
3950
+ addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
3951
+ return __awaiter(this, void 0, void 0, function* () {
3952
+ return this._adapterService.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr);
3953
+ });
3954
+ }
3955
+ changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
3956
+ return __awaiter(this, void 0, void 0, function* () {
3957
+ return this._adapterService.changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr);
3958
+ });
3959
+ }
3960
+ cancelAddTransactionLine(lineUuid) {
3961
+ return __awaiter(this, void 0, void 0, function* () {
3962
+ return this._adapterService.cancelAddTransactionLine(lineUuid);
3963
+ });
3964
+ }
3965
+ deleteTransactionLine(uuid, lineUuid) {
3966
+ return __awaiter(this, void 0, void 0, function* () {
3967
+ return this._adapterService.deleteTransactionLine(uuid, lineUuid);
3968
+ });
3969
+ }
3970
+ changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
3971
+ return __awaiter(this, void 0, void 0, function* () {
3972
+ return this._adapterService.changeTransactionLineQuantity(uuid, lineUuid, newQuantity);
3973
+ });
3974
+ }
3975
+ resolvePendingLineReason(pendingLineValues) {
3976
+ return __awaiter(this, void 0, void 0, function* () {
3977
+ return this._adapterService.resolvePendingLineReason(pendingLineValues);
3978
+ });
3979
+ }
3980
+ resolvePendingHeaderReason(pendingHeaderValues) {
3981
+ return __awaiter(this, void 0, void 0, function* () {
3982
+ return this._adapterService.resolvePendingHeaderReason(pendingHeaderValues);
3983
+ });
3984
+ }
3985
+ getCommissionCodes(languageCode) {
3986
+ return __awaiter(this, void 0, void 0, function* () {
3987
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
3988
+ return this._adapterService.getCommissionCodes(languageCode);
3989
+ }).getValue('CommissionCode', languageCode);
3990
+ });
3991
+ }
3992
+ getInOutCollection(languageCode) {
3993
+ return __awaiter(this, void 0, void 0, function* () {
3994
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
3995
+ return this._adapterService.getInOutCollection(languageCode);
3996
+ }).getValue('InOutCollection', languageCode);
3997
+ });
3998
+ }
3999
+ getTransactionArticleWarehouses(goodId) {
2958
4000
  return __awaiter(this, void 0, void 0, function* () {
2959
- const response = yield this.connector.getGoodsReceiptStatus(transId, lineNr);
2960
- if (response && response.validationResult && response.validationResult.success) {
2961
- return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
2962
- }
2963
- else {
2964
- return Promise.reject(response.validationMessagesAsString);
2965
- }
4001
+ return this._adapterService.getTransactionArticleWarehouses(goodId);
2966
4002
  });
2967
4003
  }
2968
- getGoodsReceiptStatusWithHistory(transId, lineNr) {
4004
+ setRelationByUser(uuid, username, password) {
2969
4005
  return __awaiter(this, void 0, void 0, function* () {
2970
- const response = yield this.connector.getGoodsReceiptStatusWithHistory(transId, lineNr);
2971
- if (response && response.validationResult && response.validationResult.success) {
2972
- return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
2973
- }
2974
- else {
2975
- return Promise.reject(response.validationMessagesAsString);
2976
- }
4006
+ return this._adapterService.setRelationByUser(uuid, username, password);
2977
4007
  });
2978
4008
  }
2979
- receiveGoodsForPurchaseOrder(request) {
4009
+ getTextTypes(languageCode) {
2980
4010
  return __awaiter(this, void 0, void 0, function* () {
2981
- const response = yield this.connector.receiveGoodsForPurchaseOrder(request);
2982
- if (response && response.validationResult && response.validationResult.success) {
2983
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2984
- }
2985
- else {
2986
- return Promise.reject(response.validationMessagesAsString);
2987
- }
4011
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
4012
+ return this._adapterService.getTextTypes(languageCode);
4013
+ }).getValue('TextTypes', languageCode);
2988
4014
  });
2989
4015
  }
2990
- receiveGoodsForPurchaseOrderCorrection(request) {
4016
+ getStandardTexts(languageCode) {
2991
4017
  return __awaiter(this, void 0, void 0, function* () {
2992
- const response = yield this.connector.receiveGoodsForPurchaseOrderCorrection(request);
2993
- if (response && response.validationResult && response.validationResult.success) {
2994
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2995
- }
2996
- else {
2997
- return Promise.reject(response.validationMessagesAsString);
2998
- }
4018
+ return this._adapterService.getStandardTexts(languageCode);
2999
4019
  });
3000
4020
  }
3001
- getPurchasePortalLines(request) {
4021
+ getBranches(branchNr) {
3002
4022
  return __awaiter(this, void 0, void 0, function* () {
3003
- return new Promise((resolve, reject) => {
3004
- return this.connector.getPurchasePortalLines(request).then((result) => {
3005
- if (result.validationResult && result.validationResult.success) {
3006
- if (result.resultObjects) {
3007
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(PurchasePortalLine, result.resultObjects));
3008
- }
3009
- }
3010
- else {
3011
- reject(result.validationMessagesAsString);
3012
- }
3013
- });
3014
- });
4023
+ return this._selectMultipleParameterizedCacheService.requestCache(BranchLov, (branchNr) => {
4024
+ return this._adapterService.getBranches(branchNr);
4025
+ }).getValue(branchNr);
3015
4026
  });
3016
4027
  }
3017
- updatePurchasePortalLines(purchasePortalLine) {
4028
+ getSalesPersons(date) {
3018
4029
  return __awaiter(this, void 0, void 0, function* () {
3019
- return new Promise((resolve, reject) => {
3020
- return this.connector.updatePurchasePortalLines(purchasePortalLine).then((result) => __awaiter(this, void 0, void 0, function* () {
3021
- if (result.validationResult && result.validationResult.success) {
3022
- yield this.commit();
3023
- resolve(true);
3024
- }
3025
- else {
3026
- reject(result.validationMessagesAsString);
3027
- }
3028
- }));
3029
- });
4030
+ return this._selectMultipleParameterizedCacheService.requestCache(SalesPerson, (date) => {
4031
+ return this._adapterService.getSalesPersons(date);
4032
+ }).getValue(date);
3030
4033
  });
3031
4034
  }
3032
- }
3033
- TransactionConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
3034
- TransactionConnectorService.decorators = [
3035
- { type: Injectable, args: [{
3036
- providedIn: "root"
3037
- },] }
3038
- ];
3039
- TransactionConnectorService.ctorParameters = () => [
3040
- { type: OptionsService },
3041
- { type: CollectionCacheService }
3042
- ];
3043
-
3044
- var AppPopupButtonType;
3045
- (function (AppPopupButtonType) {
3046
- AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
3047
- AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
3048
- AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
3049
- AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
3050
- AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
3051
- AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
3052
- AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
3053
- })(AppPopupButtonType || (AppPopupButtonType = {}));
3054
-
3055
- class DialogBaseComponent {
3056
- onClose(eventType, output) {
3057
- return;
3058
- }
3059
- }
3060
-
3061
- var AppPopupType;
3062
- (function (AppPopupType) {
3063
- AppPopupType[AppPopupType["Error"] = 0] = "Error";
3064
- AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
3065
- AppPopupType[AppPopupType["Information"] = 2] = "Information";
3066
- AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
3067
- })(AppPopupType || (AppPopupType = {}));
3068
-
3069
- class ConfirmationDialogComponent extends DialogBaseComponent {
3070
- constructor() {
3071
- super(...arguments);
3072
- this.ptype = AppPopupType;
3073
- }
3074
- showClass() {
3075
- return true;
4035
+ getTags(category) {
4036
+ return __awaiter(this, void 0, void 0, function* () {
4037
+ return this._selectMultipleParameterizedCacheService.requestCache(Tag, (category) => {
4038
+ return this._adapterService.getTags(category);
4039
+ }).getValue(category);
4040
+ });
3076
4041
  }
3077
- handleYesClick(event) {
3078
- this.onClose(AppPopupButtonType.Yes);
4042
+ getOnHoldCodes() {
4043
+ return __awaiter(this, void 0, void 0, function* () {
4044
+ return this._selectMultipleCacheService.requestCache(OnHoldCode, () => {
4045
+ return this._adapterService.getOnHoldCodes();
4046
+ }).getValue();
4047
+ });
3079
4048
  }
3080
- handleNoClick(event) {
3081
- this.onClose(AppPopupButtonType.No);
4049
+ getWarehouses(branchNr) {
4050
+ return __awaiter(this, void 0, void 0, function* () {
4051
+ return this._selectMultipleParameterizedCacheService.requestCache(Warehouse, (branchNr) => {
4052
+ return this._adapterService.getWarehouses(branchNr);
4053
+ }).getValue(branchNr);
4054
+ });
3082
4055
  }
3083
- handleOkClick(event) {
3084
- this.onClose(AppPopupButtonType.Ok);
4056
+ getHistoricStateValues() {
4057
+ return __awaiter(this, void 0, void 0, function* () {
4058
+ return this._adapterService.getHistoricStateValues();
4059
+ });
3085
4060
  }
3086
- }
3087
- ConfirmationDialogComponent.decorators = [
3088
- { type: Component, args: [{
3089
- selector: "co-confirmation-dialog",
3090
- template: `
3091
- <co-dialog [showCloseIcon]="false" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
3092
- <div class="confirmation-dialog-wrapper">
3093
- <div class="text" [textContent]="text"></div>
3094
- </div>
3095
- </co-dialog>
3096
- <ng-template #headerTemplate>
3097
- <div class="title" [textContent]="title | localize"></div>
3098
- </ng-template>
3099
- <ng-template #footerTemplate>
3100
- <div class="button-wrapper">
3101
- <ng-container *ngIf="type === ptype.Confirmation">
3102
- <co-button [label]="'YES' | localize" (click)="handleYesClick($event)"></co-button>
3103
- <co-button [label]="'NO' | localize" (click)="handleNoClick($event)"></co-button>
3104
- </ng-container>
3105
- <ng-container *ngIf="type === ptype.Information">
3106
- <co-button [label]="'OK' | localize" (click)="handleOkClick($event)"></co-button>
3107
- </ng-container>
3108
- </div>
3109
- </ng-template>
3110
- `,
3111
- encapsulation: ViewEncapsulation.None
3112
- },] }
3113
- ];
3114
- ConfirmationDialogComponent.propDecorators = {
3115
- title: [{ type: Input }],
3116
- text: [{ type: Input }],
3117
- type: [{ type: Input }],
3118
- showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
3119
- };
3120
-
3121
- class CharacteristicAnswerComponent extends DialogBaseComponent {
3122
- constructor(_changeDetector) {
3123
- super();
3124
- this._changeDetector = _changeDetector;
3125
- this.title = "";
3126
- this.value = "";
3127
- this.okClick = new EventEmitter();
3128
- this.viewModels = [];
3129
- this._choices = [];
4061
+ getPaymentMethods() {
4062
+ return __awaiter(this, void 0, void 0, function* () {
4063
+ return this._selectMultipleCacheService.requestCache(PaymentMethod, () => {
4064
+ return this._adapterService.getPaymentMethods();
4065
+ }).getValue();
4066
+ });
3130
4067
  }
3131
- set choices(value) {
3132
- this._choices = value;
3133
- this._prepareViewModels();
4068
+ changeTransactionLineCommissionCode(uuid, lineUuid, code) {
4069
+ return __awaiter(this, void 0, void 0, function* () {
4070
+ return this._adapterService.changeTransactionLineCommissionCode(uuid, lineUuid, code);
4071
+ });
3134
4072
  }
3135
- get choices() {
3136
- return this._choices;
4073
+ changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber) {
4074
+ return __awaiter(this, void 0, void 0, function* () {
4075
+ return this._adapterService.changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber);
4076
+ });
3137
4077
  }
3138
- showClass() {
3139
- return true;
4078
+ changeTransactionLinePrice(uuid, lineUuid, price) {
4079
+ return __awaiter(this, void 0, void 0, function* () {
4080
+ return this._adapterService.changeTransactionLinePrice(uuid, lineUuid, price);
4081
+ });
3140
4082
  }
3141
- handleChecked(event, choice) {
3142
- event.preventDefault();
3143
- event.stopImmediatePropagation();
3144
- this.value = choice;
3145
- this.viewModels.forEach(v => {
3146
- v.checked = v.value === choice;
4083
+ changeTransactionLinePriceList(uuid, lineUuid, priceList) {
4084
+ return __awaiter(this, void 0, void 0, function* () {
4085
+ return this._adapterService.changeTransactionLinePriceList(uuid, lineUuid, priceList);
3147
4086
  });
3148
- this._changeDetector.markForCheck();
3149
4087
  }
3150
- handleOkClick() {
3151
- this.onClose(AppPopupButtonType.Ok, this.value);
4088
+ changeTransactionLineVat(uuid, lineUuid, id) {
4089
+ return __awaiter(this, void 0, void 0, function* () {
4090
+ return this._adapterService.changeTransactionLineVat(uuid, lineUuid, id);
4091
+ });
3152
4092
  }
3153
- _prepareViewModels() {
3154
- if (this._choices && this._choices.length > 0) {
3155
- for (let i = 0; i < this._choices.length; i++) {
3156
- this.viewModels.push({ value: this._choices[i].value, checked: i === 0 });
3157
- }
3158
- }
4093
+ changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code) {
4094
+ return __awaiter(this, void 0, void 0, function* () {
4095
+ return this._adapterService.changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code);
4096
+ });
3159
4097
  }
3160
- }
3161
- CharacteristicAnswerComponent.decorators = [
3162
- { type: Component, args: [{
3163
- selector: "co-characteristic-answer",
3164
- template: `
3165
- <co-dialog [showCloseIcon]="false" [modal]="true" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
3166
- <ng-container *ngIf="choices && choices.length > 0">
3167
- <div class="co-transaction-default-flex-row" *ngFor="let choice of viewModels">
3168
- <co-input-checkbox [model]="choice.checked" [label]="choice.value" (click)="handleChecked($event, choice.value)"></co-input-checkbox>
3169
- </div>
3170
- </ng-container>
3171
- <ng-container *ngIf="!choices || choices.length === 0">
3172
- <co-input-text
3173
- [(model)]="value"
3174
- (enter)="handleOkClick()"
3175
- ></co-input-text>
3176
- </ng-container>
3177
- </co-dialog>
3178
- <ng-template #headerTemplate>
3179
- <div class="title" [textContent]="title"></div>
3180
- </ng-template>
3181
- <ng-template #footerTemplate>
3182
- <div class="dialog-footer-button-wrapper">
3183
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3184
- </div>
3185
- </ng-template>
3186
- `,
3187
- encapsulation: ViewEncapsulation.None
3188
- },] }
3189
- ];
3190
- CharacteristicAnswerComponent.ctorParameters = () => [
3191
- { type: ChangeDetectorRef }
3192
- ];
3193
- CharacteristicAnswerComponent.propDecorators = {
3194
- title: [{ type: Input }],
3195
- choices: [{ type: Input }],
3196
- value: [{ type: Input }],
3197
- okClick: [{ type: Output }],
3198
- showClass: [{ type: HostBinding, args: ['class.co-characteristic-answer',] }]
3199
- };
3200
-
3201
- class TransactionLineBaseComponent {
3202
- constructor() {
3203
- /**
3204
- * Defaults to true
3205
- */
3206
- this.useTransactionLine = true;
3207
- this.valueChange = new EventEmitter();
3208
- this.readonly = false;
3209
- this.viewModels = [];
3210
- this.viewModelsFiltered = [];
3211
- this._transactionLine = new TransactionLineInfo();
3212
- this._transactionInfo = new TransactionInfo();
4098
+ changeTransactionLineDeliveryMethod(uuid, lineUuid, method) {
4099
+ return __awaiter(this, void 0, void 0, function* () {
4100
+ return this._adapterService.changeTransactionLineDeliveryMethod(uuid, lineUuid, method);
4101
+ });
3213
4102
  }
3214
- set searchText(value) {
3215
- this._searchText = value;
3216
- this._doSearch();
4103
+ changeTransactionLineDeliveryDate(uuid, lineUuid, date) {
4104
+ return __awaiter(this, void 0, void 0, function* () {
4105
+ return this._adapterService.changeTransactionLineDeliveryDate(uuid, lineUuid, date);
4106
+ });
3217
4107
  }
3218
- get searchText() {
3219
- return this._searchText;
4108
+ changeTransactionLineAssemblyTime(uuid, lineUuid, time) {
4109
+ return __awaiter(this, void 0, void 0, function* () {
4110
+ return this._adapterService.changeTransactionLineAssemblyTime(uuid, lineUuid, time);
4111
+ });
3220
4112
  }
3221
- set transactionLine(value) {
3222
- if (value) {
3223
- this._transactionLine = value;
3224
- this.readonly = this._transactionLine.hasInvoices;
3225
- this.transactionLineSet();
3226
- }
4113
+ changeTransactionLineEditTime(uuid, lineUuid, time) {
4114
+ return __awaiter(this, void 0, void 0, function* () {
4115
+ return this._adapterService.changeTransactionLineEditTime(uuid, lineUuid, time);
4116
+ });
3227
4117
  }
3228
- get transactionLine() {
3229
- return this._transactionLine;
4118
+ changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber) {
4119
+ return __awaiter(this, void 0, void 0, function* () {
4120
+ return this._adapterService.changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber);
4121
+ });
3230
4122
  }
3231
- set transactionInfo(value) {
3232
- if (value) {
3233
- this._transactionInfo = value;
3234
- this.transactionInfoSet();
3235
- }
4123
+ changeTransactionLineReference(uuid, lineUuid, reference) {
4124
+ return __awaiter(this, void 0, void 0, function* () {
4125
+ return this._adapterService.changeTransactionLineReference(uuid, lineUuid, reference);
4126
+ });
3236
4127
  }
3237
- get transactionInfo() {
3238
- return this._transactionInfo;
4128
+ changeTransactionLineCollectionCode(uuid, lineUuid, code) {
4129
+ return __awaiter(this, void 0, void 0, function* () {
4130
+ return this._adapterService.changeTransactionLineCollectionCode(uuid, lineUuid, code);
4131
+ });
3239
4132
  }
3240
- ngOnInit() {
3241
- this.viewModelsFiltered = this.viewModels.slice();
4133
+ changeHeaderTransactionDefinitive(uuid, definitive) {
4134
+ return __awaiter(this, void 0, void 0, function* () {
4135
+ return this._adapterService.changeHeaderTransactionDefinitive(uuid, definitive);
4136
+ });
3242
4137
  }
3243
- // overridden by descendents
3244
- transactionLineSet() {
4138
+ changeHeaderDeliveryAddress(uuid, newNawNr) {
4139
+ return __awaiter(this, void 0, void 0, function* () {
4140
+ return this._adapterService.changeHeaderDeliveryAddress(uuid, newNawNr);
4141
+ });
3245
4142
  }
3246
- // overridden by descendents
3247
- transactionInfoSet() {
4143
+ changeHeaderInvoiceAddress(uuid, newNawNr) {
4144
+ return __awaiter(this, void 0, void 0, function* () {
4145
+ return this._adapterService.changeHeaderInvoiceAddress(uuid, newNawNr);
4146
+ });
3248
4147
  }
3249
- _doSearch() {
3250
- if (!this.searchText) {
3251
- this.viewModelsFiltered = this.viewModels.slice();
3252
- }
3253
- else {
3254
- this.viewModelsFiltered = this.viewModels.filter(v => {
3255
- const textFound = v.text ? v.text.indexOf(this.searchText) > -1 : false;
3256
- // const codeFound: boolean = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 :
3257
- // (typeof v.value === 'number' ? v.value + "".indexOf(this.searchText) > -1 : false);
3258
- const codeFound = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 : false;
3259
- return codeFound || textFound;
3260
- });
3261
- }
4148
+ changeHeaderTransactionDeliveryDate(uuid, date) {
4149
+ return __awaiter(this, void 0, void 0, function* () {
4150
+ return this._adapterService.changeHeaderTransactionDeliveryDate(uuid, date);
4151
+ });
3262
4152
  }
3263
- }
3264
- TransactionLineBaseComponent.decorators = [
3265
- { type: Directive }
3266
- ];
3267
- TransactionLineBaseComponent.propDecorators = {
3268
- useTransactionLine: [{ type: Input }],
3269
- searchText: [{ type: Input }],
3270
- transactionLine: [{ type: Input }],
3271
- transactionInfo: [{ type: Input }],
3272
- valueChange: [{ type: Output }]
3273
- };
3274
-
3275
- class DialogTransactionLineBaseComponent extends TransactionLineBaseComponent {
3276
- constructor() {
3277
- super(...arguments);
3278
- this.buttonType = AppPopupButtonType;
4153
+ changeHeaderTransactionRemark(uuid, remark) {
4154
+ return __awaiter(this, void 0, void 0, function* () {
4155
+ return this._adapterService.changeHeaderTransactionRemark(uuid, remark);
4156
+ });
3279
4157
  }
3280
- onClose(eventType, output) {
3281
- return;
4158
+ changeHeaderTransactionReference(uuid, reference) {
4159
+ return __awaiter(this, void 0, void 0, function* () {
4160
+ return this._adapterService.changeHeaderTransactionReference(uuid, reference);
4161
+ });
3282
4162
  }
3283
- handleValueChange(value) {
3284
- this.value = value;
4163
+ changeHeaderTransactionRelationReference(uuid, reference) {
4164
+ return __awaiter(this, void 0, void 0, function* () {
4165
+ return this._adapterService.changeHeaderTransactionRelationReference(uuid, reference);
4166
+ });
3285
4167
  }
3286
- handleOkClick() {
3287
- this.onClose(AppPopupButtonType.Ok, this.value);
4168
+ changeHeaderToDownPayPercentage(uuid, amount) {
4169
+ return __awaiter(this, void 0, void 0, function* () {
4170
+ return this._adapterService.changeHeaderToDownPayPercentage(uuid, amount);
4171
+ });
3288
4172
  }
3289
- handleSearch(text) {
3290
- this.searchText = text;
4173
+ changeHeaderToDownPayAmount(uuid, amount) {
4174
+ return __awaiter(this, void 0, void 0, function* () {
4175
+ return this._adapterService.changeHeaderToDownPayAmount(uuid, amount);
4176
+ });
3291
4177
  }
3292
- }
3293
- DialogTransactionLineBaseComponent.decorators = [
3294
- { type: Directive }
3295
- ];
3296
-
3297
- class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent {
3298
- showClass() {
3299
- return true;
4178
+ changeHeaderTransactionPreferredDeliveryDate(uuid, date) {
4179
+ return __awaiter(this, void 0, void 0, function* () {
4180
+ return this._adapterService.changeHeaderTransactionPreferredDeliveryDate(uuid, date);
4181
+ });
3300
4182
  }
3301
- }
3302
- DialogTransactionLineWarehouseComponent.decorators = [
3303
- { type: Component, args: [{
3304
- selector: "co-dialog-transaction-line-warehouse",
3305
- template: `
3306
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
3307
- <co-transaction-line-warehouse
3308
- [useTransactionLine]="useTransactionLine"
3309
- [transactionLine]="transactionLine"
3310
- [searchText]="searchText"
3311
- (valueChange)="handleValueChange($event)"
3312
- ></co-transaction-line-warehouse>
3313
- </co-dialog>
3314
- <ng-template #dialogHeader>
3315
- <co-dialog-header-search [title]="'WAREHOUSE'" (search)="handleSearch($event)"></co-dialog-header-search>
3316
- </ng-template>
3317
- <ng-template #footerTemplate>
3318
- <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
3319
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3320
- </div>
3321
- </ng-template>
3322
- `,
3323
- encapsulation: ViewEncapsulation.None
3324
- },] }
3325
- ];
3326
- DialogTransactionLineWarehouseComponent.propDecorators = {
3327
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-warehouse",] }]
3328
- };
3329
-
3330
- class DialogTransactionLineCommissionCodeComponent extends DialogTransactionLineBaseComponent {
3331
- showClass() {
3332
- return true;
4183
+ changeHeaderTransactionDeliveryMethod(uuid, method) {
4184
+ return __awaiter(this, void 0, void 0, function* () {
4185
+ return this._adapterService.changeHeaderTransactionDeliveryMethod(uuid, method);
4186
+ });
3333
4187
  }
3334
- }
3335
- DialogTransactionLineCommissionCodeComponent.decorators = [
3336
- { type: Component, args: [{
3337
- selector: "co-dialog-transaction-line-commission-code",
3338
- template: `
3339
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
3340
- <co-transaction-line-commission-code
3341
- [useTransactionLine]="useTransactionLine"
3342
- [transactionLine]="transactionLine"
3343
- (valueChange)="handleValueChange($event)"></co-transaction-line-commission-code>
3344
- </co-dialog>
3345
- <ng-template #dialogHeader>
3346
- <div class="dialog-header-title" [textContent]="'COMMISSION_CODE' | localize"></div>
3347
- </ng-template>
3348
- <ng-template #footerTemplate>
3349
- <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
3350
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3351
- </div>
3352
- </ng-template>
3353
- `,
3354
- encapsulation: ViewEncapsulation.None
3355
- },] }
3356
- ];
3357
- DialogTransactionLineCommissionCodeComponent.propDecorators = {
3358
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
3359
- };
3360
-
3361
- class DialogService {
3362
- constructor(_compFactoryResolver, appRef, injector) {
3363
- this._compFactoryResolver = _compFactoryResolver;
3364
- this.appRef = appRef;
3365
- this.injector = injector;
4188
+ changeHeaderTransactionDeliveryOptions(uuid, options) {
4189
+ return __awaiter(this, void 0, void 0, function* () {
4190
+ return this._adapterService.changeHeaderTransactionDeliveryOptions(uuid, options);
4191
+ });
3366
4192
  }
3367
- showYesNo(title, text) {
4193
+ changeHeaderTransactionPartialDelivery(uuid, allowPartial) {
3368
4194
  return __awaiter(this, void 0, void 0, function* () {
3369
- const data = {
3370
- title: title,
3371
- text: text,
3372
- type: AppPopupType.Confirmation
3373
- };
3374
- const response = yield this._createComponent(ConfirmationDialogComponent, data);
3375
- return response === AppPopupButtonType.Yes;
4195
+ return this._adapterService.changeHeaderTransactionPartialDelivery(uuid, allowPartial);
3376
4196
  });
3377
4197
  }
3378
- showError(message) {
3379
- const data = {
3380
- title: 'ERROR',
3381
- text: message,
3382
- type: AppPopupType.Error
3383
- };
3384
- return this._createComponent(ConfirmationDialogComponent, data);
4198
+ changeHeaderTransactionBranch(uuid, branch) {
4199
+ return __awaiter(this, void 0, void 0, function* () {
4200
+ return this._adapterService.changeHeaderTransactionBranch(uuid, branch);
4201
+ });
3385
4202
  }
3386
- showInformation(message) {
3387
- const data = {
3388
- title: 'INFORMATION',
3389
- text: message,
3390
- type: AppPopupType.Information
3391
- };
3392
- return this._createComponent(ConfirmationDialogComponent, data);
4203
+ changeHeaderTransactionAdmCoordinator(uuid, relation) {
4204
+ return __awaiter(this, void 0, void 0, function* () {
4205
+ return this._adapterService.changeHeaderTransactionAdmCoordinator(uuid, relation);
4206
+ });
3393
4207
  }
3394
- showTransactionLineComponent(comp, transLine) {
3395
- const data = {
3396
- transactionLine: transLine
3397
- };
3398
- return this._createComponent(comp, data);
4208
+ changeHeaderTransactionMarketing(uuid, code) {
4209
+ return __awaiter(this, void 0, void 0, function* () {
4210
+ return this._adapterService.changeHeaderTransactionMarketing(uuid, code);
4211
+ });
3399
4212
  }
3400
- showCharacteristics(title, choices, value) {
3401
- const data = {
3402
- title: title,
3403
- choices: choices,
3404
- value: value
3405
- };
3406
- return this._createComponent(CharacteristicAnswerComponent, data);
4213
+ changeHeaderTransactionToDownPay(uuid, downPayment) {
4214
+ return __awaiter(this, void 0, void 0, function* () {
4215
+ return this._adapterService.changeHeaderTransactionToDownPay(uuid, downPayment);
4216
+ });
4217
+ }
4218
+ createOutstandingEntry(uuid, amount) {
4219
+ return __awaiter(this, void 0, void 0, function* () {
4220
+ return this._adapterService.createOutstandingEntry(uuid, amount);
4221
+ });
4222
+ }
4223
+ registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId) {
4224
+ return __awaiter(this, void 0, void 0, function* () {
4225
+ return this._adapterService.registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId);
4226
+ });
4227
+ }
4228
+ createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode) {
4229
+ return __awaiter(this, void 0, void 0, function* () {
4230
+ return this._adapterService.createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode);
4231
+ });
4232
+ }
4233
+ getPaymentLinkStatus(paymentLinkUUID) {
4234
+ return __awaiter(this, void 0, void 0, function* () {
4235
+ return this._adapterService.getPaymentLinkStatus(paymentLinkUUID);
4236
+ });
4237
+ }
4238
+ getGoodsReceiptStatus(transId, lineNr) {
4239
+ return __awaiter(this, void 0, void 0, function* () {
4240
+ return this._adapterService.getGoodsReceiptStatus(transId, lineNr);
4241
+ });
4242
+ }
4243
+ getGoodsReceiptStatusWithHistory(transId, lineNr) {
4244
+ return __awaiter(this, void 0, void 0, function* () {
4245
+ return this._adapterService.getGoodsReceiptStatusWithHistory(transId, lineNr);
4246
+ });
3407
4247
  }
3408
- showWarehouse() {
3409
- const data = {
3410
- useTransactionLine: false
3411
- };
3412
- return this._createComponent(DialogTransactionLineWarehouseComponent, data);
4248
+ receiveGoodsForPurchaseOrder(request) {
4249
+ return __awaiter(this, void 0, void 0, function* () {
4250
+ return this._adapterService.receiveGoodsForPurchaseOrder(request);
4251
+ });
3413
4252
  }
3414
- showCommissionCode() {
3415
- const data = {
3416
- useTransactionLine: false
3417
- };
3418
- return this._createComponent(DialogTransactionLineCommissionCodeComponent, data);
4253
+ receiveGoodsForPurchaseOrderCorrection(request) {
4254
+ return __awaiter(this, void 0, void 0, function* () {
4255
+ return this._adapterService.receiveGoodsForPurchaseOrderCorrection(request);
4256
+ });
3419
4257
  }
3420
- _createComponent(componentClass, data) {
3421
- return new Promise((resolve) => {
3422
- this._componentRef = this._compFactoryResolver
3423
- .resolveComponentFactory(componentClass)
3424
- .create(this.injector);
3425
- for (let key in data) {
3426
- if (data.hasOwnProperty(key)) {
3427
- this._componentRef.instance[key] = data[key];
3428
- }
3429
- }
3430
- this.appRef.attachView(this._componentRef.hostView);
3431
- const domElem = this._componentRef.hostView
3432
- .rootNodes[0];
3433
- document.body.appendChild(domElem);
3434
- this._componentRef.onDestroy(() => {
3435
- this.appRef.detachView(this._componentRef.hostView);
3436
- });
3437
- this._componentRef.instance.onClose = (button, output) => {
3438
- this.appRef.detachView(this._componentRef.hostView);
3439
- this._componentRef = undefined;
3440
- resolve(output ? output : button);
3441
- };
4258
+ getPurchasePortalLines(request) {
4259
+ return __awaiter(this, void 0, void 0, function* () {
4260
+ return this._adapterService.getPurchasePortalLines(request);
4261
+ });
4262
+ }
4263
+ updatePurchasePortalLines(purchasePortalLine) {
4264
+ return __awaiter(this, void 0, void 0, function* () {
4265
+ return this._adapterService.updatePurchasePortalLines(purchasePortalLine);
3442
4266
  });
3443
4267
  }
3444
4268
  }
3445
- DialogService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DialogService_Factory() { return new DialogService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR)); }, token: DialogService, providedIn: "root" });
3446
- DialogService.decorators = [
4269
+ TransactionConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0.ɵɵinject(TransactionConnectorAdapterService), i0.ɵɵinject(SelectSingleCacheService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
4270
+ TransactionConnectorService.decorators = [
3447
4271
  { type: Injectable, args: [{
3448
4272
  providedIn: "root"
3449
4273
  },] }
3450
4274
  ];
3451
- DialogService.ctorParameters = () => [
3452
- { type: ComponentFactoryResolver },
3453
- { type: ApplicationRef },
3454
- { type: Injector }
4275
+ TransactionConnectorService.ctorParameters = () => [
4276
+ { type: TransactionConnectorAdapterService },
4277
+ { type: SelectSingleCacheService },
4278
+ { type: SelectMultipleCacheService },
4279
+ { type: SelectMultipleParameterizedCacheService }
3455
4280
  ];
3456
4281
 
3457
4282
  class ArticleConnectorService {
3458
- constructor(_optionsService, _collectionService) {
4283
+ constructor(_optionsService) {
3459
4284
  this._optionsService = _optionsService;
3460
- this._collectionService = _collectionService;
3461
4285
  this._boFactory = new BusinessObjectFactory();
3462
4286
  this._optionsService.optionsInitialized.subscribe((initialized) => {
3463
4287
  if (initialized) {
@@ -3473,22 +4297,21 @@ class ArticleConnectorService {
3473
4297
  getWarehouseLocations(warehouseNr) {
3474
4298
  return __awaiter(this, void 0, void 0, function* () {
3475
4299
  return new Promise((resolve, reject) => {
3476
- const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
3477
- if (collection) {
3478
- resolve(collection);
3479
- }
3480
- else {
3481
- return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
3482
- if (response && response.validationResult && response.validationResult.success) {
3483
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
3484
- this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
3485
- resolve(collection);
3486
- }
3487
- else {
3488
- reject(response.validationMessagesAsString);
3489
- }
3490
- });
3491
- }
4300
+ // const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
4301
+ // if (collection) {
4302
+ // resolve(collection);
4303
+ // } else {
4304
+ return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
4305
+ if (response && response.validationResult && response.validationResult.success) {
4306
+ const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
4307
+ // this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
4308
+ resolve(collection);
4309
+ }
4310
+ else {
4311
+ reject(response.validationMessagesAsString);
4312
+ }
4313
+ });
4314
+ // }
3492
4315
  });
3493
4316
  });
3494
4317
  }
@@ -3525,14 +4348,14 @@ class ArticleConnectorService {
3525
4348
  getTurnoverGroups(category) {
3526
4349
  return __awaiter(this, void 0, void 0, function* () {
3527
4350
  return new Promise((resolve, reject) => {
3528
- const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
3529
- if (collection) {
3530
- return resolve(collection);
3531
- }
4351
+ // const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
4352
+ // if (collection) {
4353
+ // return resolve(collection);
4354
+ // }
3532
4355
  return this.connector.getTurnoverGroups(category).then((result) => {
3533
4356
  if (result.validationResult && result.validationResult.success) {
3534
4357
  const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(TurnoverGroupImage, result.resultObjects);
3535
- this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
4358
+ // this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
3536
4359
  resolve(collection);
3537
4360
  }
3538
4361
  else {
@@ -3543,15 +4366,14 @@ class ArticleConnectorService {
3543
4366
  });
3544
4367
  }
3545
4368
  }
3546
- ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
4369
+ ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService)); }, token: ArticleConnectorService, providedIn: "root" });
3547
4370
  ArticleConnectorService.decorators = [
3548
4371
  { type: Injectable, args: [{
3549
4372
  providedIn: "root"
3550
4373
  },] }
3551
4374
  ];
3552
4375
  ArticleConnectorService.ctorParameters = () => [
3553
- { type: OptionsService },
3554
- { type: CollectionCacheService }
4376
+ { type: OptionsService }
3555
4377
  ];
3556
4378
 
3557
4379
  class PendingReasonService {
@@ -3560,6 +4382,7 @@ class PendingReasonService {
3560
4382
  this.options = options;
3561
4383
  this.connector = connector;
3562
4384
  this.articleConnector = articleConnector;
4385
+ this.logout = new Subject();
3563
4386
  this.transactionUpdated = new BehaviorSubject(undefined);
3564
4387
  this.applicationUser = false;
3565
4388
  this.invoiceAddressSameAsDelivery = true;
@@ -4031,7 +4854,7 @@ class TransactionService extends PendingReasonService {
4031
4854
  }
4032
4855
  updateHeaderTransactionAdmCoordinator(uuid, relation) {
4033
4856
  return __awaiter(this, void 0, void 0, function* () {
4034
- const response = yield this.connector.updateHeaderTransactionAdmCoordinator(uuid, relation)
4857
+ const response = yield this.connector.changeHeaderTransactionAdmCoordinator(uuid, relation)
4035
4858
  .catch((error) => {
4036
4859
  // todo: do something with the error
4037
4860
  return false;
@@ -4046,7 +4869,7 @@ class TransactionService extends PendingReasonService {
4046
4869
  }
4047
4870
  updateHeaderTransactionMarketing(uuid, code) {
4048
4871
  return __awaiter(this, void 0, void 0, function* () {
4049
- const response = yield this.connector.updateHeaderTransactionMarketing(uuid, code)
4872
+ const response = yield this.connector.changeHeaderTransactionMarketing(uuid, code)
4050
4873
  .catch((error) => {
4051
4874
  // todo: do something with the error
4052
4875
  return false;
@@ -4580,7 +5403,11 @@ class TransactionService extends PendingReasonService {
4580
5403
  }
4581
5404
  updatePurchasePortalLines(purchasePortalLine) {
4582
5405
  return __awaiter(this, void 0, void 0, function* () {
4583
- return yield this.connector.updatePurchasePortalLines(purchasePortalLine);
5406
+ let result = yield this.connector.updatePurchasePortalLines(purchasePortalLine);
5407
+ if (result && result.validationResult && result.validationResult.success) {
5408
+ result = yield this.connector.commit();
5409
+ }
5410
+ return result.validationResult.success;
4584
5411
  });
4585
5412
  }
4586
5413
  // private _cleanRelationBeforeSave(): void {
@@ -4744,16 +5571,18 @@ var Icon;
4744
5571
  Icon["BarcodeSolid"] = "barcode_solid";
4745
5572
  Icon["BarsFilter"] = "bars_filter";
4746
5573
  Icon["CalendarDay"] = "calendar_day";
5574
+ Icon["CalendarDayRegular"] = "calendar_day_regular";
4747
5575
  Icon["Cancel"] = "cancel";
4748
5576
  Icon["CartCheck"] = "cart_check";
4749
5577
  Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
4750
5578
  Icon["CartShoppingSolid"] = "cart_shopping_solid";
4751
5579
  Icon["CashRegister"] = "cash_register";
4752
5580
  Icon["CreditCardSolid"] = "credit_card_solid";
4753
- Icon["DeliveryStatusUncheck"] = "delivery_status_uncheck";
4754
5581
  Icon["DeliveryTruck"] = "delivery_truck";
4755
5582
  Icon["EditPencil"] = "edit_pencil";
5583
+ Icon["GripDotsVerticalSolid"] = "grip_dots_vertical_solid";
4756
5584
  Icon["IdealLogo"] = "ideal_logo";
5585
+ Icon["ListRegular"] = "list_regular";
4757
5586
  Icon["ListView"] = "list_view";
4758
5587
  Icon["LocationDotSolid"] = "location_dot_solid";
4759
5588
  Icon["Lock"] = "lock";
@@ -4783,6 +5612,8 @@ var Icon;
4783
5612
  Icon["Truck"] = "truck";
4784
5613
  Icon["TruckArrowRightSolid"] = "truck_arrow_right_solid";
4785
5614
  Icon["TruckContainerSolid"] = "truck_container_solid";
5615
+ Icon["TruckFastSolid"] = "truck_fast_solid";
5616
+ Icon["TruckMovingSolid"] = "truck_moving_solid";
4786
5617
  Icon["Txt"] = "txt";
4787
5618
  Icon["Unlock"] = "unlock";
4788
5619
  Icon["Warehouse"] = "warehouse";
@@ -5100,16 +5931,18 @@ const IconSvg = {
5100
5931
  "barcode_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M40 32C53.25 32 64 42.75 64 56V456C64 469.3 53.25 480 40 480H24C10.75 480 0 469.3 0 456V56C0 42.75 10.75 32 24 32H40zM128 48V464C128 472.8 120.8 480 112 480C103.2 480 96 472.8 96 464V48C96 39.16 103.2 32 112 32C120.8 32 128 39.16 128 48zM200 32C213.3 32 224 42.75 224 56V456C224 469.3 213.3 480 200 480H184C170.7 480 160 469.3 160 456V56C160 42.75 170.7 32 184 32H200zM296 32C309.3 32 320 42.75 320 56V456C320 469.3 309.3 480 296 480H280C266.7 480 256 469.3 256 456V56C256 42.75 266.7 32 280 32H296zM448 56C448 42.75 458.7 32 472 32H488C501.3 32 512 42.75 512 56V456C512 469.3 501.3 480 488 480H472C458.7 480 448 469.3 448 456V56zM384 48C384 39.16 391.2 32 400 32C408.8 32 416 39.16 416 48V464C416 472.8 408.8 480 400 480C391.2 480 384 472.8 384 464V48z\"/></svg>",
5101
5932
  "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>",
5102
5933
  "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>",
5934
+ "calendar_day_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M208 256C216.8 256 224 263.2 224 272V368C224 376.8 216.8 384 208 384H112C103.2 384 96 376.8 96 368V272C96 263.2 103.2 256 112 256H208zM128 0C141.3 0 152 10.75 152 24V64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0zM400 192H48V448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192z\"/></svg>",
5103
5935
  "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>",
5104
5936
  "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>",
5105
5937
  "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>",
5106
5938
  "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>",
5107
5939
  "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>",
5108
5940
  "credit_card_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M512 32C547.3 32 576 60.65 576 96V128H0V96C0 60.65 28.65 32 64 32H512zM576 416C576 451.3 547.3 480 512 480H64C28.65 480 0 451.3 0 416V224H576V416zM112 352C103.2 352 96 359.2 96 368C96 376.8 103.2 384 112 384H176C184.8 384 192 376.8 192 368C192 359.2 184.8 352 176 352H112zM240 384H368C376.8 384 384 376.8 384 368C384 359.2 376.8 352 368 352H240C231.2 352 224 359.2 224 368C224 376.8 231.2 384 240 384z\"/></svg>",
5109
- "delivery_status_uncheck": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50;\" ><style type=\"text/css\">.rect{fill:#514F4F;}</style><path class=\"rect\" d=\"M50,50H0.1V0H50V50z M41.5,8.2H8.6v33.2h32.9V8.2z\"/></svg>",
5110
5941
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
5111
5942
  "edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
5943
+ "grip_dots_vertical_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 512\"><path d=\"M48 144c26.5 0 48-21.5 48-48s-21.5-48-48-48S0 69.5 0 96s21.5 48 48 48zm0 160c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zM96 416c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM208 144c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48zm48 112c0-26.5-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48s48-21.5 48-48zM208 464c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48z\"/></svg>",
5112
5944
  "ideal_logo": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 306.1 269.8\" style=\"enable-background:new 0 0 306.1 269.8;\" ><style type=\"text/css\">.st0{fill:#FFFFFF;}.st1{fill:#CC0066;}</style><g><g><path class=\"st0\" d=\"M0,20v229.8c0,11,9,20,20,20h137.3c103.8,0,148.8-58.1,148.8-135.2C306.1,57.9,261.1,0,157.3,0H20C9,0,0,9,0,20z\"/><path class=\"st1\" d=\"M91.9,56.4v169.8h73.9c67.1,0,96.2-37.9,96.2-91.5c0-51.3-29.1-91.1-96.2-91.1h-61.1C97.6,43.6,91.9,49.4,91.9,56.4z\"/><g><g><path d=\"M157.3,251.5H37.9c-10.6,0-19.2-8.6-19.2-19.2V37.6c0-10.6,8.6-19.2,19.2-19.2h119.4c113.3,0,130.2,72.9,130.2,116.3C287.5,210,241.2,251.5,157.3,251.5z M37.9,24.8c-7.1,0-12.8,5.7-12.8,12.8v194.7c0,7.1,5.7,12.8,12.8,12.8h119.4c79.8,0,123.8-39.2,123.8-110.4c0-95.6-77.6-109.9-123.8-109.9H37.9z\"/></g></g></g><g><path class=\"st0\" d=\"M117.9,111.8c2.6,0,5,0.4,7.3,1.2c2.3,0.8,4.2,2.1,5.9,3.7c1.6,1.7,2.9,3.8,3.9,6.2c0.9,2.5,1.4,5.4,1.4,8.8c0,3-0.4,5.7-1.1,8.2c-0.8,2.5-1.9,4.7-3.4,6.5c-1.5,1.8-3.4,3.2-5.7,4.3c-2.3,1-5,1.6-8.1,1.6h-17.5v-40.6H117.9z M117.3,144.9c1.3,0,2.5-0.2,3.8-0.6c1.2-0.4,2.3-1.1,3.2-2.1c0.9-1,1.7-2.2,2.3-3.8c0.6-1.6,0.9-3.4,0.9-5.7c0-2-0.2-3.9-0.6-5.5c-0.4-1.6-1.1-3.1-2-4.2s-2.1-2.1-3.6-2.7c-1.5-0.6-3.3-0.9-5.5-0.9h-6.4v25.6H117.3z\"/><path class=\"st0\" d=\"M172.5,111.8v7.5h-21.4v8.7h19.7v6.9h-19.7v9.9H173v7.5h-30.8v-40.6H172.5z\"/><path class=\"st0\" d=\"M203.1,111.8l15.2,40.6H209l-3.1-9h-15.2l-3.2,9h-9l15.3-40.6H203.1z M203.6,136.7l-5.1-14.9h-0.1l-5.3,14.9H203.6z\"/><path class=\"st0\" d=\"M232.8,111.8v33.1h19.8v7.5h-28.7v-40.6H232.8z\"/></g><g><circle cx=\"58.5\" cy=\"132.1\" r=\"18.7\"/></g><path d=\"M72.6,226.2L72.6,226.2c-15.7,0-28.3-12.7-28.3-28.3v-22.1c0-7.8,6.3-14.2,14.2-14.2h0c7.8,0,14.2,6.3,14.2,14.2V226.2z\"/></g></svg>",
5945
+ "list_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M88 48C101.3 48 112 58.75 112 72V120C112 133.3 101.3 144 88 144H40C26.75 144 16 133.3 16 120V72C16 58.75 26.75 48 40 48H88zM488 72C501.3 72 512 82.75 512 96C512 109.3 501.3 120 488 120H184C170.7 120 160 109.3 160 96C160 82.75 170.7 72 184 72H488zM488 232C501.3 232 512 242.7 512 256C512 269.3 501.3 280 488 280H184C170.7 280 160 269.3 160 256C160 242.7 170.7 232 184 232H488zM488 392C501.3 392 512 402.7 512 416C512 429.3 501.3 440 488 440H184C170.7 440 160 429.3 160 416C160 402.7 170.7 392 184 392H488zM16 232C16 218.7 26.75 208 40 208H88C101.3 208 112 218.7 112 232V280C112 293.3 101.3 304 88 304H40C26.75 304 16 293.3 16 280V232zM88 368C101.3 368 112 378.7 112 392V440C112 453.3 101.3 464 88 464H40C26.75 464 16 453.3 16 440V392C16 378.7 26.75 368 40 368H88z\"/></svg>",
5113
5946
  "list_view": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><rect x=\"26.5\" y=\"13\" width=\"14\" height=\"7\" fill=\"#4d5050\"/><rect x=\"10.5\" y=\"13\" width=\"14\" height=\"7\" fill=\"#4d5050\"/><rect x=\"10.5\" y=\"22\" width=\"14\" height=\"7\" fill=\"#4d5050\"/><rect x=\"26.5\" y=\"22\" width=\"14\" height=\"7\" fill=\"#4d5050\"/><rect x=\"10.5\" y=\"31\" width=\"14\" height=\"7\" fill=\"#4d5050\"/><rect x=\"26.5\" y=\"31\" width=\"14\" height=\"7\" fill=\"#4d5050\"/></svg>",
5114
5947
  "location_dot_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M168.3 499.2C116.1 435 0 279.4 0 192C0 85.96 85.96 0 192 0C298 0 384 85.96 384 192C384 279.4 267 435 215.7 499.2C203.4 514.5 180.6 514.5 168.3 499.2H168.3zM192 256C227.3 256 256 227.3 256 192C256 156.7 227.3 128 192 128C156.7 128 128 156.7 128 192C128 227.3 156.7 256 192 256z\"/></svg>",
5115
5948
  "lock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M32.65,21.67H17.35c-2.81,0-3.06,2.29-3.06,5.12v8.09c0,2.83.25,5.12,3.06,5.12h15.3c2.81,0,3.06-2.29,3.06-5.12V26.79C35.71,24,35.46,21.67,32.65,21.67ZM20.22,37.49l2.61-6.32a3.82,3.82,0,1,1,4.35,0l2.6,6.32Z\" fill=\"#484f60\"/><path d=\"M29.51,16.64c0-3.6-2-4.07-4.51-4.07h0c-2.49,0-4.51.47-4.51,4.07v3h-2.7v-3C17.79,11.62,21,10,25,10h0c4,0,7.21,1.62,7.21,6.64v3h-2.7Z\" fill=\"#484f60\"/></svg>",
@@ -5139,6 +5972,8 @@ const IconSvg = {
5139
5972
  "truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.75\" width=\"17.47\" height=\"12.62\" fill=\"#484f60\"/><path d=\"M37,18.11h-8V28.84H20.22a4.42,4.42,0,0,1,1.41,2.73H30a4.41,4.41,0,0,1,8.76,0H40V24.63Zm-.26,6.73H32.25a.57.57,0,0,1-.57-.57V20a.57.57,0,0,1,.57-.58h2.63a.58.58,0,0,1,.52.35L37.31,24A.58.58,0,0,1,36.78,24.84Z\" fill=\"#484f60\"/><path d=\"M14.28,28.84a4.39,4.39,0,0,0-1.42,2.73H12l-2-1.26V28.84Z\" fill=\"#484f60\"/><path d=\"M31.25,32.1a3.16,3.16,0,1,0,3.16-3.16A3.16,3.16,0,0,0,31.25,32.1Z\" fill=\"#484f60\"/><path d=\"M14.09,32.1a3.16,3.16,0,1,0,3.16-3.16A3.15,3.15,0,0,0,14.09,32.1Z\" fill=\"#484f60\"/></svg>",
5140
5973
  "truck_arrow_right_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 48C0 21.49 21.49 0 48 0H368C394.5 0 416 21.49 416 48V96H466.7C483.7 96 499.1 102.7 512 114.7L589.3 192C601.3 204 608 220.3 608 237.3V352C625.7 352 640 366.3 640 384C640 401.7 625.7 416 608 416H576C576 469 533 512 480 512C426.1 512 384 469 384 416H256C256 469 213 512 160 512C106.1 512 64 469 64 416H48C21.49 416 0 394.5 0 368V48zM544 256V237.3L466.7 160H416V256H544zM160 464C186.5 464 208 442.5 208 416C208 389.5 186.5 368 160 368C133.5 368 112 389.5 112 416C112 442.5 133.5 464 160 464zM480 368C453.5 368 432 389.5 432 416C432 442.5 453.5 464 480 464C506.5 464 528 442.5 528 416C528 389.5 506.5 368 480 368zM256.1 95.03C247.6 85.66 232.4 85.66 223 95.03C213.7 104.4 213.7 119.6 223 128.1L262.1 168H96C82.75 168 72 178.7 72 192C72 205.3 82.75 216 96 216H262.1L223 255C213.7 264.4 213.7 279.6 223 288.1C232.4 298.3 247.6 298.3 256.1 288.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175L256.1 95.03z\"/></svg>",
5141
5974
  "truck_container_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M352 32C378.5 32 400 53.49 400 80V240C400 266.5 378.5 288 352 288H48C21.49 288 0 266.5 0 240V80C0 53.49 21.49 32 48 32H352zM80 80C71.16 80 64 87.16 64 96V224C64 232.8 71.16 240 80 240C88.84 240 96 232.8 96 224V96C96 87.16 88.84 80 80 80zM224 224C224 232.8 231.2 240 240 240C248.8 240 256 232.8 256 224V96C256 87.16 248.8 80 240 80C231.2 80 224 87.16 224 96V224zM160 80C151.2 80 144 87.16 144 96V224C144 232.8 151.2 240 160 240C168.8 240 176 232.8 176 224V96C176 87.16 168.8 80 160 80zM304 224C304 232.8 311.2 240 320 240C328.8 240 336 232.8 336 224V96C336 87.16 328.8 80 320 80C311.2 80 304 87.16 304 96V224zM432 168C432 154.7 442.7 144 456 144H528.8C545.6 144 561.5 151.5 572.2 164.5L630.1 236.4C636.8 243.5 640 252.5 640 261.7V352C640 369.7 625.7 384 608 384H606.4C607.4 389.2 608 394.5 608 400C608 444.2 572.2 480 528 480C483.8 480 448 444.2 448 400C448 394.5 448.6 389.2 449.6 384H286.4C287.4 389.2 288 394.5 288 400C288 444.2 252.2 480 208 480C181.8 480 158.6 467.4 144 448C129.4 467.4 106.2 480 80 480C35.82 480 0 444.2 0 400V352C0 334.3 14.33 320 32 320H432V168zM480 256H584.1L535 194.9C533.5 193.1 531.2 192 528.8 192H480V256zM528 368C510.3 368 496 382.3 496 400C496 417.7 510.3 432 528 432C545.7 432 560 417.7 560 400C560 382.3 545.7 368 528 368zM208 432C225.7 432 240 417.7 240 400C240 382.3 225.7 368 208 368C190.3 368 176 382.3 176 400C176 417.7 190.3 432 208 432zM80 368C62.33 368 48 382.3 48 400C48 417.7 62.33 432 80 432C97.67 432 112 417.7 112 400C112 382.3 97.67 368 80 368z\"/></svg>",
5975
+ "truck_fast_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M416 0H64V96H0v32H64 288v32H64 32v32H64 256v32H64 0v32H64 224v32H64V416c0 53 43 96 96 96s96-43 96-96H384c0 53 43 96 96 96s96-43 96-96h32 32V352H608V288 256 224 210.7l-9.4-9.4-96-96L493.3 96H480 416V0zM544 237.3V256H416V160h50.7L544 237.3zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48zm368-48c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48z\"/></svg>",
5976
+ "truck_moving_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M64 32C28.7 32 0 60.7 0 96V304v80 16c0 44.2 35.8 80 80 80c26.2 0 49.4-12.6 64-32c14.6 19.4 37.8 32 64 32c44.2 0 80-35.8 80-80c0-5.5-.6-10.8-1.6-16H416h33.6c-1 5.2-1.6 10.5-1.6 16c0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H608c17.7 0 32-14.3 32-32V288 272 261.7c0-9.2-3.2-18.2-9-25.3l-58.8-71.8c-10.6-13-26.5-20.5-43.3-20.5H480V96c0-35.3-28.7-64-64-64H64zM585 256H480V192h48.8c2.4 0 4.7 1.1 6.2 2.9L585 256zM528 432c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM240 400c0 17.7-14.3 32-32 32s-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32zM80 432c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z\"/></svg>",
5142
5977
  "txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
5143
5978
  "unlock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M32.65,21.67H17.35c-2.81,0-3.06,2.29-3.06,5.12v8.09c0,2.83.25,5.12,3.06,5.12h15.3c2.81,0,3.06-2.29,3.06-5.12V26.79C35.71,24,35.46,21.67,32.65,21.67ZM20.22,37.49l2.61-6.32a3.82,3.82,0,1,1,4.35,0l2.6,6.32Z\" fill=\"#484f60\"/><path d=\"M35.51,16.64c0-3.6-2-4.07-4.51-4.07h0c-2.49,0-4.51.47-4.51,4.07v3h-2.7v-3C23.79,11.62,27,10,31,10h0c4,0,7.21,1.62,7.21,6.64Z\" fill=\"#484f60\"/></svg>",
5144
5979
  "warehouse": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M6 19H8V21H6V19M12 3L2 8V21H4V13H20V21H22V8L12 3M8 11H4V9H8V11M14 11H10V9H14V11M20 11H16V9H20V11M6 15H8V17H6V15M10 15H12V17H10V15M10 19H12V21H10V19M14 19H16V21H14V19Z\" /></svg>"
@@ -5403,7 +6238,7 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
5403
6238
  </div>
5404
6239
  <div class="checkout-data-column">
5405
6240
  <div class="checkout-data-row">
5406
- <co-transaction-header-branch [transactionInfo]="transaction.transactionInfo"></co-transaction-header-branch>
6241
+ <co-transaction-header-branch [simple]="true" [transactionInfo]="transaction.transactionInfo"></co-transaction-header-branch>
5407
6242
  <co-transaction-header-administrative-relation [transactionInfo]="transaction.transactionInfo"></co-transaction-header-administrative-relation>
5408
6243
  </div>
5409
6244
  <div class="checkout-data-row">
@@ -7258,6 +8093,39 @@ DialogTransactionLineDeliveryMethodComponent.propDecorators = {
7258
8093
  showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
7259
8094
  };
7260
8095
 
8096
+ class DialogTransactionLineVatComponent extends DialogTransactionLineBaseComponent {
8097
+ showClass() {
8098
+ return true;
8099
+ }
8100
+ }
8101
+ DialogTransactionLineVatComponent.decorators = [
8102
+ { type: Component, args: [{
8103
+ selector: "co-dialog-transaction-line-vat",
8104
+ template: `
8105
+ <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
8106
+ <co-transaction-line-vat
8107
+ [useTransactionLine]="useTransactionLine"
8108
+ [transactionLine]="transactionLine"
8109
+ [searchText]="searchText"
8110
+ (valueChange)="handleValueChange($event)"
8111
+ ></co-transaction-line-vat>
8112
+ </co-dialog>
8113
+ <ng-template #dialogHeader>
8114
+ <co-dialog-header-search [title]="'VAT'" (search)="handleSearch($event)"></co-dialog-header-search>
8115
+ </ng-template>
8116
+ <ng-template #footerTemplate>
8117
+ <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
8118
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
8119
+ </div>
8120
+ </ng-template>
8121
+ `,
8122
+ encapsulation: ViewEncapsulation.None
8123
+ },] }
8124
+ ];
8125
+ DialogTransactionLineVatComponent.propDecorators = {
8126
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
8127
+ };
8128
+
7261
8129
  class TransactionLineComponent {
7262
8130
  constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
7263
8131
  this.service = service;
@@ -7284,6 +8152,7 @@ class TransactionLineComponent {
7284
8152
  this._loadLineCommissionCode();
7285
8153
  this._loadLineWarehouse();
7286
8154
  this._loadLineDeliveryMethod();
8155
+ this._loadLineVat();
7287
8156
  }
7288
8157
  get line() {
7289
8158
  return this._line;
@@ -7333,6 +8202,9 @@ class TransactionLineComponent {
7333
8202
  openDeliveryMethodDialog() {
7334
8203
  this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
7335
8204
  }
8205
+ openVatDialog() {
8206
+ this._dialogService.showTransactionLineComponent(DialogTransactionLineVatComponent, this.line);
8207
+ }
7336
8208
  _loadLineImage() {
7337
8209
  return __awaiter(this, void 0, void 0, function* () {
7338
8210
  if (this.line && this.line.isArticle) {
@@ -7372,6 +8244,16 @@ class TransactionLineComponent {
7372
8244
  }
7373
8245
  });
7374
8246
  }
8247
+ _loadLineVat() {
8248
+ return __awaiter(this, void 0, void 0, function* () {
8249
+ if (this.line && this.line.isArticle) {
8250
+ this.service.getVatLists().then((vatList) => {
8251
+ const vat = vatList.find(v => v.vatId === this.line.vatId);
8252
+ this.line.vatDescription = vat ? (`${vat.percentage}% ${this._dictionaryService.get('VAT2')}`) : "";
8253
+ });
8254
+ }
8255
+ });
8256
+ }
7375
8257
  }
7376
8258
  TransactionLineComponent.decorators = [
7377
8259
  { type: Component, args: [{
@@ -7405,27 +8287,30 @@ TransactionLineComponent.decorators = [
7405
8287
  </div>
7406
8288
  <div *ngIf=!preview class="transaction-line-stock">
7407
8289
  <div class="transaction-line-stock-wrapper">
7408
- <span [textContent]="'STOCK' | localize" class="small-font"></span>
7409
8290
  <stock-status-indicator [model]="stock"></stock-status-indicator>
7410
8291
  </div>
7411
- <div class="transaction-line-stock-wrapper">
7412
- <span [textContent]="'DELIVERY_DATE' | localize" class="small-font"></span>
7413
- <span [textContent]="line.deliveryDate | date:'dd MMM YYYY'"></span>
7414
- </div>
7415
8292
  </div>
7416
8293
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
7417
8294
  <div class="transaction-line-extended-row-wrapper" (click)="openCommissionCodeDialog()">
7418
- <div [textContent]="line.commissionDescription | append:' | ' | append:line.commissionCode"></div>
8295
+ <span class="co-transaction-overflow-ellipsis" [textContent]="line.commissionCode | append:' | ' | append:line.commissionDescription"></span>
7419
8296
  </div>
7420
8297
  <div class="transaction-line-extended-row-wrapper" (click)="openWarehouseDialog()">
7421
8298
  <co-icon class="header-warehouse-icon" [iconData]="iconCacheService.getIcon(icons.Warehouse)"></co-icon>
7422
- <div [textContent]="line.warehouseDescription"></div>
8299
+ <span class="co-transaction-overflow-ellipsis" [textContent]="line.warehouseNumber"></span>
8300
+ </div>
8301
+ <div class="transaction-line-extended-row-wrapper last-two-columns" (click)="openDeliveryMethodDialog()">
8302
+ <co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"></co-icon>
8303
+ <span class="co-transaction-overflow-ellipsis" [textContent]="line.deliveryMethodDescription"></span>
7423
8304
  </div>
7424
- <div class="transaction-line-extended-row-wrapper" (click)="openDeliveryMethodDialog()">
7425
- <co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)"></co-icon>
7426
- <span [textContent]="line.deliveryMethodDescription"></span>
8305
+ <div class="transaction-line-extended-row-wrapper no-border two-column">
8306
+ <span [textContent]="'DELIVERY_DATE' | localize | append:':'" class="small-font"></span>
8307
+ <span [textContent]="line.deliveryDate | date:'dd MMM YYYY'"></span>
8308
+ <co-icon class="header-delivery-date-icon" [iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
7427
8309
  </div>
7428
8310
  </div>
8311
+ <div class="transaction-line-extended-row-wrapper transaction-line-extended-button" (click)="openVatDialog()">
8312
+ <span class="co-transaction-overflow-ellipsis" [textContent]="line.vatDescription"></span>
8313
+ </div>
7429
8314
  <div class="transaction-line-totals">
7430
8315
  <co-transaction-line-price class="transaction-line-totals-price price"
7431
8316
  [transactionLine]="line"
@@ -7945,7 +8830,8 @@ TransactionLineModule.decorators = [
7945
8830
  IconModule,
7946
8831
  EditableLabelModule,
7947
8832
  TransactionLinePriceModule,
7948
- TransactionLineDescriptionModule
8833
+ TransactionLineDescriptionModule,
8834
+ DragDropModule
7949
8835
  ],
7950
8836
  declarations: [
7951
8837
  TransactionLineComponent
@@ -8042,6 +8928,9 @@ TransactionLinesComponent.decorators = [
8042
8928
  (cdkDropListDropped)="handleDrop($event)"
8043
8929
  >
8044
8930
  <div class="draggable-transaction-line" *ngFor="let line of transactionLines; trackBy:trackByFn;" cdkDrag>
8931
+ <co-icon class="transaction-line-drag-handle" [class.show]="line === selectedTransactionLine && transactionLines.length > 1" cdkDragHandle
8932
+ [iconData]="iconCacheService.getIcon(icons.GripDotsVerticalSolid)">
8933
+ </co-icon>
8045
8934
  <co-transaction-line
8046
8935
  [preview]="preview"
8047
8936
  [line]="line"
@@ -8091,7 +8980,8 @@ TransactionLinesModule.decorators = [
8091
8980
  DragDropModule,
8092
8981
  ButtonModule,
8093
8982
  TransactionArticleTextModule,
8094
- PipeModule
8983
+ PipeModule,
8984
+ IconModule
8095
8985
  ],
8096
8986
  declarations: [
8097
8987
  TransactionLinesComponent
@@ -8418,13 +9308,14 @@ DeliveryTypeTileModule.decorators = [
8418
9308
  ];
8419
9309
 
8420
9310
  class PaymentService {
8421
- constructor(_connector, _transactionService) {
8422
- this._connector = _connector;
9311
+ constructor(_adapterService, _selectMultipleCacheService, _transactionService) {
9312
+ this._adapterService = _adapterService;
9313
+ this._selectMultipleCacheService = _selectMultipleCacheService;
8423
9314
  this._transactionService = _transactionService;
8424
9315
  }
8425
9316
  updateHeaderTransactionToDownPay(uuid, downPayment) {
8426
9317
  return __awaiter(this, void 0, void 0, function* () {
8427
- const response = yield this._connector.changeHeaderTransactionToDownPay(uuid, downPayment)
9318
+ const response = yield this._adapterService.changeHeaderTransactionToDownPay(uuid, downPayment)
8428
9319
  .catch((error) => {
8429
9320
  // todo: do something with the error
8430
9321
  return false;
@@ -8439,7 +9330,7 @@ class PaymentService {
8439
9330
  }
8440
9331
  registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId) {
8441
9332
  return __awaiter(this, void 0, void 0, function* () {
8442
- const response = yield this._connector.registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId);
9333
+ const response = yield this._adapterService.registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId);
8443
9334
  // .catch((error) => {
8444
9335
  // // todo: do something with the error
8445
9336
  // // return;
@@ -8452,7 +9343,7 @@ class PaymentService {
8452
9343
  }
8453
9344
  createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode) {
8454
9345
  return __awaiter(this, void 0, void 0, function* () {
8455
- const response = yield this._connector.createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode);
9346
+ const response = yield this._adapterService.createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode);
8456
9347
  // .catch((error) => {
8457
9348
  // // todo: do something with the error
8458
9349
  // // return;
@@ -8462,7 +9353,7 @@ class PaymentService {
8462
9353
  }
8463
9354
  getPaymentLinkStatus(paymentLinkUUID) {
8464
9355
  return __awaiter(this, void 0, void 0, function* () {
8465
- const response = yield this._connector.getPaymentLinkStatus(paymentLinkUUID);
9356
+ const response = yield this._adapterService.getPaymentLinkStatus(paymentLinkUUID);
8466
9357
  // .catch((error) => {
8467
9358
  // // todo: do something with the error
8468
9359
  // // return;
@@ -8472,18 +9363,21 @@ class PaymentService {
8472
9363
  }
8473
9364
  getPaymentMethods() {
8474
9365
  return __awaiter(this, void 0, void 0, function* () {
8475
- return this._connector.getPaymentMethods();
9366
+ return this._selectMultipleCacheService.requestCache(PaymentMethod, () => {
9367
+ return this._adapterService.getPaymentMethods();
9368
+ }).getValue();
8476
9369
  });
8477
9370
  }
8478
9371
  }
8479
- PaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PaymentService_Factory() { return new PaymentService(i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(TransactionService)); }, token: PaymentService, providedIn: "root" });
9372
+ PaymentService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PaymentService_Factory() { return new PaymentService(i0.ɵɵinject(TransactionConnectorAdapterService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(TransactionService)); }, token: PaymentService, providedIn: "root" });
8480
9373
  PaymentService.decorators = [
8481
9374
  { type: Injectable, args: [{
8482
9375
  providedIn: "root"
8483
9376
  },] }
8484
9377
  ];
8485
9378
  PaymentService.ctorParameters = () => [
8486
- { type: TransactionConnectorService },
9379
+ { type: TransactionConnectorAdapterService },
9380
+ { type: SelectMultipleCacheService },
8487
9381
  { type: TransactionService }
8488
9382
  ];
8489
9383
 
@@ -8596,7 +9490,7 @@ class PaymentComponent {
8596
9490
  if (paymentMethod && !paymentMethod.externalSourceId) {
8597
9491
  this.cashRegisters.length = 0;
8598
9492
  paymentMethod.posGroups.forEach(crg => {
8599
- this._getCashRegisters(crg.branchNo, crg.id);
9493
+ this._getCashRegisters(undefined, crg.id);
8600
9494
  });
8601
9495
  this.showCashRegisters = true;
8602
9496
  }
@@ -9024,7 +9918,7 @@ RelationGeneralComponent.decorators = [
9024
9918
  ></co-input-radio-button>
9025
9919
  </div>
9026
9920
  <div class="default-data-row">
9027
- <co-input-date [placeholder]="'DATE_OF_BIRTH' | localize " [(model)]="dateOfBirth" [required]="true"></co-input-date>
9921
+ <co-input-date [placeholder]="'DATE_OF_BIRTH' | localize " [(model)]="dateOfBirth"></co-input-date>
9028
9922
  </div>
9029
9923
  </div>
9030
9924
  <div *ngIf="relation?.type === relType.Company" class="default-data-row collapseable" @showHideCompanyRelationFields>
@@ -9341,7 +10235,7 @@ RelationContactDetailsComponent.decorators = [
9341
10235
  <div class="default-data-row">
9342
10236
  <co-input-text [(model)]="emailAddress.value" [placeholder]="'EMAIL_ADDRESS' | localize " [type]="'email'" [required]="true"></co-input-text>
9343
10237
  </div>
9344
- <div class="checkout-data-row">
10238
+ <div class="default-data-row">
9345
10239
  <co-input-checkbox [label]="'INVITE_TO_ACCOUNT' | localize" [(model)]="inviteToAccount"></co-input-checkbox>
9346
10240
  </div>
9347
10241
  `,
@@ -9653,11 +10547,13 @@ TransactionHeaderDeliveryComponent.decorators = [
9653
10547
  </co-transaction-header-block>
9654
10548
  <ng-template #headerBlock>
9655
10549
  <div class="header-delivery-method" (click)="showDeliveryMethodDialog = true">
9656
- <co-icon class="header-delivery-truck-icon" [iconData]="iconService.getIcon(icons.DeliveryTruck)"></co-icon>
10550
+ <co-icon class="header-delivery-truck-icon" [iconData]="iconService.getIcon(icons.TruckFastSolid)"></co-icon>
9657
10551
  <span [textContent]="deliveryMethod?.description"></span>
9658
10552
  </div>
9659
- <co-icon class="planning-request-button" [class.co-transaction-check]="transactionInfo.deliveryDateDefinitive"
9660
- [iconData]="iconService.getIcon(icons.CalendarDay)"></co-icon>
10553
+ <div class="header-planning-request-button">
10554
+ <co-icon class="planning-request-button" [class.co-transaction-check]="transactionInfo.deliveryDateDefinitive"
10555
+ [iconData]="iconService.getIcon(icons.CalendarDayRegular)"></co-icon>
10556
+ </div>
9661
10557
  </ng-template>
9662
10558
  <ng-template #firstBlock>
9663
10559
  <div class="header-delivery-deliverydate-label co-transaction-label" [textContent]="'DELIVERY_DATE' | localize"></div>
@@ -9683,7 +10579,17 @@ TransactionHeaderDeliveryComponent.decorators = [
9683
10579
  <div class="header-delivery-partial-delivery-label co-transaction-label" [textContent]="'PART_DELIVERY' | localize"></div>
9684
10580
  <co-input-checkbox class="header-delivery-partial-delivery" [model]="transactionInfo.allowPartialDelivery"></co-input-checkbox>
9685
10581
  </ng-template>
9686
- <co-dialog *ngIf="showDialog" (closeClick)="showDialog = false">
10582
+ <co-dialog *ngIf="showDialog" [headerTemplate]="headerTemplate" (closeClick)="showDialog = false">
10583
+ <ng-template #headerTemplate>
10584
+ <div class="header-title" [textContent]="'DELIVERY_INFORMATION' | localize"></div>
10585
+ <co-transaction-header-block
10586
+ [headerBlockTemplate]="headerBlock"
10587
+ [firstBlockTemplate]="firstBlock"
10588
+ [secondBlockTemplate]="secondBlock"
10589
+ [thirdBlockTemplate]="thirdBlock"
10590
+ >
10591
+ </co-transaction-header-block>
10592
+ </ng-template>
9687
10593
  <co-transaction-header-delivery-options
9688
10594
  [transactionInfo]="transactionInfo"
9689
10595
  [deliveryMethod]="deliveryMethod"
@@ -9771,11 +10677,22 @@ TransactionHeaderBlockModule.decorators = [
9771
10677
  },] }
9772
10678
  ];
9773
10679
 
9774
- class TransactionHeaderFieldsBaseComponent {
10680
+ class TransactionHeaderBaseComponent {
9775
10681
  constructor() {
10682
+ this.useTransaction = true;
10683
+ this.valueChange = new EventEmitter();
9776
10684
  this.readonly = false;
10685
+ this.viewModels = [];
10686
+ this.viewModelsFiltered = [];
9777
10687
  this._transactionInfo = new TransactionInfo();
9778
10688
  }
10689
+ set searchText(value) {
10690
+ this._searchText = value;
10691
+ this._doSearch();
10692
+ }
10693
+ get searchText() {
10694
+ return this._searchText;
10695
+ }
9779
10696
  set transactionInfo(value) {
9780
10697
  if (value) {
9781
10698
  this._transactionInfo = value;
@@ -9785,18 +10702,38 @@ class TransactionHeaderFieldsBaseComponent {
9785
10702
  get transactionInfo() {
9786
10703
  return this._transactionInfo;
9787
10704
  }
10705
+ ngOnInit() {
10706
+ this.viewModelsFiltered = this.viewModels.slice();
10707
+ }
9788
10708
  // overridden by descendents
9789
10709
  transactionInfoSet() {
9790
10710
  }
10711
+ _doSearch() {
10712
+ if (!this.searchText) {
10713
+ this.viewModelsFiltered = this.viewModels.slice();
10714
+ }
10715
+ else {
10716
+ this.viewModelsFiltered = this.viewModels.filter(v => {
10717
+ const textFound = v.text ? v.text.indexOf(this.searchText) > -1 : false;
10718
+ // const codeFound: boolean = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 :
10719
+ // (typeof v.value === 'number' ? v.value + "".indexOf(this.searchText) > -1 : false);
10720
+ const codeFound = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 : false;
10721
+ return codeFound || textFound;
10722
+ });
10723
+ }
10724
+ }
9791
10725
  }
9792
- TransactionHeaderFieldsBaseComponent.decorators = [
10726
+ TransactionHeaderBaseComponent.decorators = [
9793
10727
  { type: Directive }
9794
10728
  ];
9795
- TransactionHeaderFieldsBaseComponent.propDecorators = {
9796
- transactionInfo: [{ type: Input }]
10729
+ TransactionHeaderBaseComponent.propDecorators = {
10730
+ useTransaction: [{ type: Input }],
10731
+ searchText: [{ type: Input }],
10732
+ transactionInfo: [{ type: Input }],
10733
+ valueChange: [{ type: Output }]
9797
10734
  };
9798
10735
 
9799
- class TransactionHeaderDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
10736
+ class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseComponent {
9800
10737
  constructor(_transactionService) {
9801
10738
  super();
9802
10739
  this._transactionService = _transactionService;
@@ -9889,7 +10826,7 @@ TransactionHeaderDeliveryDateModule.decorators = [
9889
10826
  },] }
9890
10827
  ];
9891
10828
 
9892
- class TransactionHeaderDeliveryOptionsComponent extends TransactionHeaderFieldsBaseComponent {
10829
+ class TransactionHeaderDeliveryOptionsComponent extends TransactionHeaderBaseComponent {
9893
10830
  constructor(_transactionService) {
9894
10831
  super();
9895
10832
  this._transactionService = _transactionService;
@@ -9972,7 +10909,7 @@ TransactionHeaderDeliveryOptionsModule.decorators = [
9972
10909
  },] }
9973
10910
  ];
9974
10911
 
9975
- class TransactionHeaderRemarksComponent extends TransactionHeaderFieldsBaseComponent {
10912
+ class TransactionHeaderRemarksComponent extends TransactionHeaderBaseComponent {
9976
10913
  constructor(_transactionService) {
9977
10914
  super();
9978
10915
  this._transactionService = _transactionService;
@@ -10065,7 +11002,7 @@ TransactionHeaderRemarksModule.decorators = [
10065
11002
  },] }
10066
11003
  ];
10067
11004
 
10068
- class TransactionHeaderReferenceComponent extends TransactionHeaderFieldsBaseComponent {
11005
+ class TransactionHeaderReferenceComponent extends TransactionHeaderBaseComponent {
10069
11006
  constructor(_transactionService) {
10070
11007
  super();
10071
11008
  this._transactionService = _transactionService;
@@ -10158,7 +11095,7 @@ TransactionHeaderReferenceModule.decorators = [
10158
11095
  },] }
10159
11096
  ];
10160
11097
 
10161
- class TransactionHeaderRelationReferenceComponent extends TransactionHeaderFieldsBaseComponent {
11098
+ class TransactionHeaderRelationReferenceComponent extends TransactionHeaderBaseComponent {
10162
11099
  constructor(_transactionService) {
10163
11100
  super();
10164
11101
  this._transactionService = _transactionService;
@@ -10251,7 +11188,7 @@ TransactionHeaderRelationReferenceModule.decorators = [
10251
11188
  },] }
10252
11189
  ];
10253
11190
 
10254
- class TransactionHeaderDeliveryMethodComponent extends TransactionHeaderFieldsBaseComponent {
11191
+ class TransactionHeaderDeliveryMethodComponent extends TransactionHeaderBaseComponent {
10255
11192
  constructor(_transactionService) {
10256
11193
  super();
10257
11194
  this._transactionService = _transactionService;
@@ -10335,7 +11272,7 @@ TransactionHeaderDeliveryMethodModule.decorators = [
10335
11272
  },] }
10336
11273
  ];
10337
11274
 
10338
- class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
11275
+ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderBaseComponent {
10339
11276
  constructor(_transactionService) {
10340
11277
  super();
10341
11278
  this._transactionService = _transactionService;
@@ -10458,7 +11395,7 @@ TransactionHeaderDeliveryModule.decorators = [
10458
11395
  },] }
10459
11396
  ];
10460
11397
 
10461
- class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderFieldsBaseComponent {
11398
+ class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderBaseComponent {
10462
11399
  constructor(_transactionService) {
10463
11400
  super();
10464
11401
  this._transactionService = _transactionService;
@@ -10516,7 +11453,7 @@ TransactionHeaderPartialDeliveryModule.decorators = [
10516
11453
  },] }
10517
11454
  ];
10518
11455
 
10519
- class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderFieldsBaseComponent {
11456
+ class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderBaseComponent {
10520
11457
  constructor(_transactionService) {
10521
11458
  super();
10522
11459
  this._transactionService = _transactionService;
@@ -10610,7 +11547,7 @@ TransactionHeaderDownpaymentPercentageModule.decorators = [
10610
11547
  },] }
10611
11548
  ];
10612
11549
 
10613
- class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderFieldsBaseComponent {
11550
+ class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderBaseComponent {
10614
11551
  constructor(_transactionService) {
10615
11552
  super();
10616
11553
  this._transactionService = _transactionService;
@@ -10704,7 +11641,7 @@ TransactionHeaderDownpaymentAmountModule.decorators = [
10704
11641
  },] }
10705
11642
  ];
10706
11643
 
10707
- class TransactionHeaderDefinitiveComponent extends TransactionHeaderFieldsBaseComponent {
11644
+ class TransactionHeaderDefinitiveComponent extends TransactionHeaderBaseComponent {
10708
11645
  constructor(_transactionService) {
10709
11646
  super();
10710
11647
  this._transactionService = _transactionService;
@@ -10762,22 +11699,27 @@ TransactionHeaderDefinitiveModule.decorators = [
10762
11699
  },] }
10763
11700
  ];
10764
11701
 
10765
- class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseComponent {
11702
+ class TransactionHeaderBranchComponent extends TransactionHeaderBaseComponent {
10766
11703
  constructor(_transactionService) {
10767
11704
  super();
10768
11705
  this._transactionService = _transactionService;
10769
- this.showExtended = false;
11706
+ this.simple = false;
10770
11707
  this.collection = [];
10771
11708
  this.fields = { text: "description", value: "relationId" };
10772
- this.viewModels = [];
10773
11709
  }
10774
11710
  ngOnInit() {
10775
11711
  this.viewModels.length = 0;
10776
11712
  this._transactionService.getBranches().then((branches) => {
10777
11713
  this.collection = branches;
10778
- this.collection.forEach(c => {
10779
- this.viewModels.push({ value: c.relationId, text: c.description, checked: this.transactionInfo.branch && this.transactionInfo.branch.relationId === c.relationId });
11714
+ this.collection.forEach((c, index) => {
11715
+ this.viewModels.push({
11716
+ value: c.relationId,
11717
+ text: c.description,
11718
+ label: ((c.relationId !== null && c.relationId !== undefined) ? c.relationId + ' ' : '') + ((c.description !== null && c.description !== undefined) ? c.description : ''),
11719
+ checked: this.useTransaction ? this.transactionInfo.branch && this.transactionInfo.branch.relationId === c.relationId : index === 0
11720
+ });
10780
11721
  });
11722
+ super.ngOnInit();
10781
11723
  });
10782
11724
  }
10783
11725
  commitTransactionBranch(branch) {
@@ -10798,14 +11740,21 @@ class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseCompon
10798
11740
  return true;
10799
11741
  });
10800
11742
  }
10801
- handleChecked(row) {
11743
+ handleChecked(event, row) {
11744
+ event.preventDefault();
11745
+ event.stopPropagation();
10802
11746
  row.checked = true;
10803
11747
  for (let i = 0; i < this.viewModels.length; i++) {
10804
11748
  if (this.viewModels[i].value !== row.value) {
10805
11749
  this.viewModels[i].checked = false;
10806
11750
  }
10807
11751
  }
10808
- this.commitTransactionBranch(this.viewModels.find(v => v.checked).value);
11752
+ if (this.useTransaction) {
11753
+ this.commitTransactionBranch(this.viewModels.find(v => v.checked).value);
11754
+ }
11755
+ else {
11756
+ this.valueChange.emit(row.value);
11757
+ }
10809
11758
  }
10810
11759
  transactionInfoSet() {
10811
11760
  this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
@@ -10815,7 +11764,7 @@ TransactionHeaderBranchComponent.decorators = [
10815
11764
  { type: Component, args: [{
10816
11765
  selector: "co-transaction-header-branch",
10817
11766
  template: `
10818
- <ng-container *ngIf="!showExtended">
11767
+ <ng-container *ngIf="simple">
10819
11768
  <co-drop-down-list
10820
11769
  [readonly]="readonly"
10821
11770
  [placeholder]="'BRANCH' | localize"
@@ -10827,11 +11776,13 @@ TransactionHeaderBranchComponent.decorators = [
10827
11776
  (modelChange)="commitTransactionBranch($event)">
10828
11777
  </co-drop-down-list>
10829
11778
  </ng-container>
10830
- <ng-container *ngIf="showExtended">
10831
- <div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
10832
- <co-input-checkbox [model]="row.checked" (modelChange)="handleChecked(row)"></co-input-checkbox>
10833
- <span class="extended-row-code" [textContent]="row.value"></span>
10834
- <span class="extended-row-description" [textContent]="row.text"></span>
11779
+ <ng-container *ngIf="!simple">
11780
+ <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
11781
+ <co-input-checkbox
11782
+ [model]="row.checked"
11783
+ [label]="row.label"
11784
+ (click)="handleChecked($event, row)"
11785
+ ></co-input-checkbox>
10835
11786
  </div>
10836
11787
  </ng-container>
10837
11788
  `,
@@ -10842,7 +11793,7 @@ TransactionHeaderBranchComponent.ctorParameters = () => [
10842
11793
  { type: TransactionService }
10843
11794
  ];
10844
11795
  TransactionHeaderBranchComponent.propDecorators = {
10845
- showExtended: [{ type: Input }]
11796
+ simple: [{ type: Input }]
10846
11797
  };
10847
11798
 
10848
11799
  class TransactionHeaderBranchModule {
@@ -10864,7 +11815,7 @@ TransactionHeaderBranchModule.decorators = [
10864
11815
  },] }
10865
11816
  ];
10866
11817
 
10867
- class TransactionHeaderAdministrativeRelationComponent extends TransactionHeaderFieldsBaseComponent {
11818
+ class TransactionHeaderAdministrativeRelationComponent extends TransactionHeaderBaseComponent {
10868
11819
  constructor(_transactionService) {
10869
11820
  super();
10870
11821
  this._transactionService = _transactionService;
@@ -10936,21 +11887,25 @@ TransactionHeaderAdministrativeRelationModule.decorators = [
10936
11887
  },] }
10937
11888
  ];
10938
11889
 
10939
- class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseComponent {
11890
+ class TransactionHeaderMarketingComponent extends TransactionHeaderBaseComponent {
10940
11891
  constructor(_transactionService) {
10941
11892
  super();
10942
11893
  this._transactionService = _transactionService;
10943
11894
  this.collection = [];
10944
- this.fields = { text: "description", value: "code" };
10945
- this.viewModels = [];
10946
11895
  }
10947
11896
  ngOnInit() {
10948
11897
  this.viewModels.length = 0;
10949
11898
  this._transactionService.getMarketingCodes().then((marketingCodes) => {
10950
11899
  this.collection = marketingCodes;
10951
- this.collection.forEach(c => {
10952
- this.viewModels.push({ value: c.code, text: c.description, checked: this.transactionInfo.marketingCode && this.transactionInfo.marketingCode === c.code });
11900
+ this.collection.forEach((c, index) => {
11901
+ this.viewModels.push({
11902
+ value: c.code,
11903
+ text: c.description,
11904
+ label: ((c.code !== null && c.code !== undefined) ? c.code + ' ' : '') + ((c.description !== null && c.description !== undefined) ? c.description : ''),
11905
+ checked: this.useTransaction ? this.transactionInfo.marketingCode === c.code : index === 0
11906
+ });
10953
11907
  });
11908
+ super.ngOnInit();
10954
11909
  });
10955
11910
  }
10956
11911
  commitTransactionMarketing(code) {
@@ -10975,7 +11930,12 @@ class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseCom
10975
11930
  this.viewModels[i].checked = false;
10976
11931
  }
10977
11932
  }
10978
- this.commitTransactionMarketing(this.viewModels.find(v => v.checked).value);
11933
+ if (this.useTransaction) {
11934
+ this.commitTransactionMarketing(this.viewModels.find(v => v.checked).value);
11935
+ }
11936
+ else {
11937
+ this.valueChange.emit(row.value);
11938
+ }
10979
11939
  }
10980
11940
  transactionInfoSet() {
10981
11941
  this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
@@ -10985,10 +11945,10 @@ TransactionHeaderMarketingComponent.decorators = [
10985
11945
  { type: Component, args: [{
10986
11946
  selector: "co-transaction-header-marketing",
10987
11947
  template: `
10988
- <div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
11948
+ <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
10989
11949
  <co-input-checkbox
10990
11950
  [model]="row.checked"
10991
- [label]="row.value + ' ' + row.text"
11951
+ [label]="row.label"
10992
11952
  (click)="handleChecked($event, row)"
10993
11953
  ></co-input-checkbox>
10994
11954
  </div>
@@ -11430,6 +12390,12 @@ TransactionHeaderRelationComponent.decorators = [
11430
12390
  </ng-template>
11431
12391
  <co-dialog *ngIf="showDialog" [headerTemplate]="dialogHeader" (closeClick)="showDialog = false">
11432
12392
  <ng-template #dialogHeader>
12393
+ <div class="header-title" [textContent]="'CLIENT_INFORMATION' | localize"></div>
12394
+ <co-transaction-header-block
12395
+ [headerBlockTemplate]="headerBlock"
12396
+ [firstBlockTemplate]="firstBlock"
12397
+ [secondBlockTemplate]="secondBlock"
12398
+ ></co-transaction-header-block>
11433
12399
  <co-transaction-filter-categories [categories]="categories" (categoryClick)="handleNavigationClick($event)"></co-transaction-filter-categories>
11434
12400
  </ng-template>
11435
12401
  <div #navigationItems class="header-relation-navigation-wrapper" data-ride="carousel">
@@ -11692,13 +12658,22 @@ TransactionHeaderPaymentComponent.decorators = [
11692
12658
  [showLabel]="false"
11693
12659
  ></co-transaction-header-downpayment-amount>
11694
12660
  </ng-template>
11695
- <co-dialog class="dialog" *ngIf="showDialog" (closeClick)="showDialog = false">
11696
- <div class="payment-dialog-section">
11697
- <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
11698
- </div>
11699
- <div class="payment-dialog-section">
11700
- <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
11701
- </div>
12661
+ <co-dialog class="dialog" [headerTemplate]="headerTemplate" *ngIf="showDialog" (closeClick)="showDialog = false">
12662
+ <ng-template #headerTemplate>
12663
+ <div class="header-title" [textContent]="'PAYMENT_INFORMATION' | localize"></div>
12664
+ <co-transaction-header-block
12665
+ [headerBlockTemplate]="headerBlock"
12666
+ [firstBlockTemplate]="firstBlock"
12667
+ [secondBlockTemplate]="secondBlock"
12668
+ >
12669
+ </co-transaction-header-block>
12670
+ </ng-template>
12671
+ <div class="payment-dialog-section">
12672
+ <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
12673
+ </div>
12674
+ <div class="payment-dialog-section">
12675
+ <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
12676
+ </div>
11702
12677
  </co-dialog>
11703
12678
  <co-dialog class="payment-dialog" *ngIf="showPaymentDialog"
11704
12679
  [modal]="true"
@@ -12351,12 +13326,21 @@ class TransactionLineVatComponent extends TransactionLineBaseComponent {
12351
13326
  constructor(_transactionService) {
12352
13327
  super();
12353
13328
  this._transactionService = _transactionService;
12354
- this.data = [];
12355
- this.fields = { text: "description", value: "vatId" };
13329
+ this.collection = [];
12356
13330
  }
12357
13331
  ngOnInit() {
13332
+ this.viewModels.length = 0;
12358
13333
  this._transactionService.getVatLists().then((vatList) => {
12359
- this.data = vatList.slice();
13334
+ this.collection = vatList.slice();
13335
+ this.collection.forEach((d, index) => {
13336
+ this.viewModels.push({
13337
+ value: d.vatId,
13338
+ text: d.description,
13339
+ label: ((d.vatId !== null && d.vatId !== undefined) ? d.vatId + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13340
+ checked: this.useTransactionLine ? this.transactionLine.vatId === d.vatId : index === 0
13341
+ });
13342
+ });
13343
+ super.ngOnInit();
12360
13344
  });
12361
13345
  }
12362
13346
  commitVat(id) {
@@ -12372,19 +13356,33 @@ class TransactionLineVatComponent extends TransactionLineBaseComponent {
12372
13356
  return true;
12373
13357
  });
12374
13358
  }
13359
+ handleChecked(event, row) {
13360
+ event.preventDefault();
13361
+ event.stopPropagation();
13362
+ row.checked = true;
13363
+ for (let i = 0; i < this.viewModels.length; i++) {
13364
+ if (this.viewModels[i].value !== row.value) {
13365
+ this.viewModels[i].checked = false;
13366
+ }
13367
+ }
13368
+ if (this.useTransactionLine) {
13369
+ this.commitVat(this.viewModels.find(v => v.checked).value);
13370
+ }
13371
+ else {
13372
+ this.valueChange.emit(row.value);
13373
+ }
13374
+ }
12375
13375
  }
12376
13376
  TransactionLineVatComponent.decorators = [
12377
13377
  { type: Component, args: [{
12378
13378
  selector: "co-transaction-line-vat",
12379
13379
  template: `
12380
- <co-input-combo-box
12381
- [collection]="data"
12382
- [placeholder]="'VAT' | localize"
12383
- [fields]="fields"
12384
- [readonly]="readonly"
12385
- [model]="transactionLine.vatId"
12386
- (modelChange)="commitVat($event)"
12387
- ></co-input-combo-box>
13380
+ <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
13381
+ <co-input-checkbox
13382
+ [model]="row.checked"
13383
+ [label]="row.label"
13384
+ (click)="handleChecked($event, row)"></co-input-checkbox>
13385
+ </div>
12388
13386
  `,
12389
13387
  encapsulation: ViewEncapsulation.None
12390
13388
  },] }
@@ -12400,7 +13398,8 @@ TransactionLineVatModule.decorators = [
12400
13398
  imports: [
12401
13399
  CommonModule,
12402
13400
  PipeModule,
12403
- InputComboBoxModule
13401
+ InputComboBoxModule,
13402
+ InputCheckboxModule
12404
13403
  ],
12405
13404
  declarations: [
12406
13405
  TransactionLineVatComponent
@@ -13468,8 +14467,9 @@ TransactionReceivingGoodsHistoryModule.decorators = [
13468
14467
  ];
13469
14468
 
13470
14469
  class ArticleService {
13471
- constructor(_articleConnectorService) {
14470
+ constructor(_articleConnectorService, _selectMultipleCacheService) {
13472
14471
  this._articleConnectorService = _articleConnectorService;
14472
+ this._selectMultipleCacheService = _selectMultipleCacheService;
13473
14473
  }
13474
14474
  getWarehouseLocations(warehouseNr) {
13475
14475
  return __awaiter(this, void 0, void 0, function* () {
@@ -13477,14 +14477,15 @@ class ArticleService {
13477
14477
  });
13478
14478
  }
13479
14479
  }
13480
- ArticleService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleService_Factory() { return new ArticleService(i0.ɵɵinject(ArticleConnectorService)); }, token: ArticleService, providedIn: "root" });
14480
+ ArticleService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleService_Factory() { return new ArticleService(i0.ɵɵinject(ArticleConnectorService), i0.ɵɵinject(SelectMultipleCacheService)); }, token: ArticleService, providedIn: "root" });
13481
14481
  ArticleService.decorators = [
13482
14482
  { type: Injectable, args: [{
13483
14483
  providedIn: "root"
13484
14484
  },] }
13485
14485
  ];
13486
14486
  ArticleService.ctorParameters = () => [
13487
- { type: ArticleConnectorService }
14487
+ { type: ArticleConnectorService },
14488
+ { type: SelectMultipleCacheService }
13488
14489
  ];
13489
14490
 
13490
14491
  class TransactionReceivingGoodsDetailsComponent {
@@ -14584,7 +15585,7 @@ class TransactionMappingService {
14584
15585
  { title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderOverview },
14585
15586
  { title: 'PURCHASE', icon: Icon.PalletBoxesSolid, category: TransactionTypeCategory.SalesOrderPurchase },
14586
15587
  { title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
14587
- { title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
15588
+ { title: 'PLANNING', icon: Icon.TruckMovingSolid, category: TransactionTypeCategory.SalesOrderPlanning },
14588
15589
  { title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
14589
15590
  { title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
14590
15591
  ]],
@@ -15325,6 +16326,27 @@ DialogTransactionLineDeliveryMethodModule.decorators = [
15325
16326
  },] }
15326
16327
  ];
15327
16328
 
16329
+ class DialogTransactionLineVatModule {
16330
+ }
16331
+ DialogTransactionLineVatModule.decorators = [
16332
+ { type: NgModule, args: [{
16333
+ imports: [
16334
+ CommonModule,
16335
+ CoDialogModule,
16336
+ TransactionLineVatModule,
16337
+ ButtonModule,
16338
+ PipeModule,
16339
+ DialogHeaderSearchModule
16340
+ ],
16341
+ declarations: [
16342
+ DialogTransactionLineVatComponent
16343
+ ],
16344
+ exports: [
16345
+ DialogTransactionLineVatComponent
16346
+ ]
16347
+ },] }
16348
+ ];
16349
+
15328
16350
  class TransactionLinesGridModule {
15329
16351
  }
15330
16352
  TransactionLinesGridModule.decorators = [
@@ -15340,7 +16362,8 @@ TransactionLinesGridModule.decorators = [
15340
16362
  TransactionBaseGridModule,
15341
16363
  DialogTransactionLineCommissionCodeModule,
15342
16364
  DialogTransactionLineWarehouseModule,
15343
- DialogTransactionLineDeliveryMethodModule
16365
+ DialogTransactionLineDeliveryMethodModule,
16366
+ DialogTransactionLineVatModule
15344
16367
  ],
15345
16368
  declarations: [
15346
16369
  TransactionLinesGridComponent
@@ -16662,6 +17685,19 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
16662
17685
  <co-input-text [(model)]="searchRequest.batchNumber" [placeholder]="searchPlaceholder | localize"></co-input-text>
16663
17686
  </co-filter-item>
16664
17687
 
17688
+ <!--Leverancier-->
17689
+ <co-filter-item
17690
+ [placeholder]="'SUPPLIER' | localize"
17691
+ [expanded]="true"
17692
+ [collection]="suppliers"
17693
+ [searchPlaceholder]="searchCollectionPlaceholder | localize"
17694
+ [noResultsLabel]="noResultsLabel | localize"
17695
+ [showMoreLabel]="showMoreLabel | localize"
17696
+ [showLessLabel]="showLessLabel | localize"
17697
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
17698
+ >
17699
+ </co-filter-item>
17700
+
16665
17701
  <div class="filter-button-container">
16666
17702
  <co-button class="clickable" [label]="'Filter'" (click)="onFilterButtonClick()"></co-button>
16667
17703
  </div>
@@ -18643,5 +19679,5 @@ TransactionLineGridModule.decorators = [
18643
19679
  * Generated bundle index. Do not edit.
18644
19680
  */
18645
19681
 
18646
- export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, CustomerGroupsComponent as ɵba, StockStatusIndicatorComponent as ɵbb, LoaderComponent as ɵbc, RelationAddressModule as ɵbd, RelationAddressComponent as ɵbe, RelationBaseComponent as ɵbf, RelationAddressSelectModule as ɵbg, RelationAddressTileModule as ɵbh, TileModule as ɵbi, TileComponent as ɵbj, RelationAddressTileComponent as ɵbk, RelationAddressSelectComponent as ɵbl, BusinessObjectFactory as ɵbm, StepperModule as ɵbn, StepperComponent as ɵbo, StepperStepComponent as ɵbp, TransactionArticleTextModule as ɵbq, TransactionArticleTextComponent as ɵbr, TransactionArticleTextOverviewModule as ɵbs, TransactionArticleTextOverviewComponent as ɵbt, TransactionLineActionButtonsModule as ɵbu, TransactionLineActionButtonsComponent as ɵbv, EditableLabelModule as ɵbw, EditableLabelComponent as ɵbx, TransactionLinePriceModule as ɵby, TransactionLinePriceComponent as ɵbz, OptionsService as ɵc, TransactionLineBaseComponent as ɵca, TransactionLineDescriptionModule as ɵcb, TransactionLineDescriptionComponent as ɵcc, TransactionImageService as ɵcd, AvatarModule as ɵce, AvatarComponent as ɵcf, SharedService as ɵcg, SharedConnectorService as ɵch, DeliveryTypeTileModule as ɵci, DeliveryTypeTileComponent as ɵcj, PaymentModule as ɵck, PaymentTileModule as ɵcl, PaymentTileComponent as ɵcm, PaymentQrCodeModule as ɵcn, PaymentQrCodeComponent as ɵco, PaymentComponent as ɵcp, PaymentService as ɵcq, RelationTypeModule as ɵcr, RelationTypeComponent as ɵcs, RelationGeneralModule as ɵct, RelationSuggestionsListModule as ɵcu, RelationSuggestionsListItemModule as ɵcv, RelationSuggestionsListItemComponent as ɵcw, RelationSuggestionsListComponent as ɵcx, RelationGeneralComponent as ɵcy, RelationAddressesModule as ɵcz, DictionaryService as ɵd, RelationAddressesComponent as ɵda, RelationContactDetailsModule as ɵdb, RelationContactDetailsComponent as ɵdc, RelationPreferencesModule as ɵdd, RelationPreferencesComponent as ɵde, TransactionHeaderBlockModule as ɵdf, TransactionHeaderBlockComponent as ɵdg, TransactionHeaderDeliveryDateModule as ɵdh, TransactionHeaderDeliveryDateComponent as ɵdi, TransactionHeaderFieldsBaseComponent as ɵdj, TransactionHeaderDeliveryOptionsModule as ɵdk, TransactionHeaderDeliveryOptionsComponent as ɵdl, TransactionHeaderRemarksModule as ɵdm, TransactionHeaderRemarksComponent as ɵdn, TransactionHeaderReferenceModule as ɵdo, TransactionHeaderReferenceComponent as ɵdp, TransactionHeaderRelationReferenceModule as ɵdq, TransactionHeaderRelationReferenceComponent as ɵdr, TransactionHeaderDeliveryMethodModule as ɵds, TransactionHeaderDeliveryMethodComponent as ɵdt, TransactionHeaderPreferredDeliveryDateModule as ɵdu, TransactionHeaderPreferredDeliveryDateComponent as ɵdv, TransactionBaseComponent as ɵdw, TransactionHeaderPartialDeliveryModule as ɵdx, TransactionHeaderPartialDeliveryComponent as ɵdy, TransactionHeaderDownpaymentPercentageModule as ɵdz, TransactionConnectorService as ɵe, TransactionHeaderDownpaymentPercentageComponent as ɵea, TransactionHeaderDownpaymentAmountModule as ɵeb, TransactionHeaderDownpaymentAmountComponent as ɵec, TransactionHeaderDefinitiveModule as ɵed, TransactionHeaderDefinitiveComponent as ɵee, TransactionHeaderBranchModule as ɵef, TransactionHeaderBranchComponent as ɵeg, TransactionHeaderAdministrativeRelationModule as ɵeh, TransactionHeaderAdministrativeRelationComponent as ɵei, TransactionHeaderMarketingModule as ɵej, TransactionHeaderMarketingComponent as ɵek, CheckoutOverviewRelationEditComponent as ɵel, CheckoutOverviewDeliveryEditComponent as ɵem, CheckoutOverviewDeliveryAddressComponent as ɵen, CheckoutOverviewPaymentComponent as ɵeo, CheckoutLoginComponent as ɵep, TransactionFilterCategoriesModule as ɵeq, TransactionFilterCategoriesComponent as ɵer, TransactionHeaderPaymentModule as ɵes, TransactionHeaderPaymentComponent as ɵet, TransactionLinesGridModule as ɵeu, TransactionBaseGridModule as ɵev, TransactionLineSidePanelModule as ɵew, TransactionLineSidePanelDefaultModule as ɵex, TransactionLinePriceListModule as ɵey, TransactionLinePriceListComponent as ɵez, CollectionCacheService as ɵf, TransactionLineVatModule as ɵfa, TransactionLineVatComponent as ɵfb, TransactionLineQuantityModule as ɵfc, TransactionLineQuantityComponent as ɵfd, TransactionLineLineDiscountModule as ɵfe, TransactionLineLineDiscountComponent as ɵff, TransactionLineDeliveryMethodModule as ɵfg, TransactionLineDeliveryMethodComponent as ɵfh, TransactionLineDeliveryDateModule as ɵfi, TransactionLineDeliveryDateComponent as ɵfj, TransactionLineReferenceModule as ɵfk, TransactionLineReferenceComponent as ɵfl, TransactionLineCommissionCodeModule as ɵfm, TransactionLineCommissionCodeComponent as ɵfn, TransactionLineWarehouseModule as ɵfo, TransactionLineWarehouseComponent as ɵfp, TransactionLineDiscountAmountModule as ɵfq, TransactionLineDiscountAmountComponent as ɵfr, TransactionLineQuantumDiscountModule as ɵfs, TransactionLineQuantumDiscountComponent as ɵft, TransactionLineSpecialDiscountModule as ɵfu, TransactionLineSpecialDiscountComponent as ɵfv, TransactionLineSupplierModule as ɵfw, TransactionLineSupplierComponent as ɵfx, TransactionLineSidePanelDefaultComponent as ɵfy, TransactionReceivingGoodsHistoryModule as ɵfz, ArticleConnectorService as ɵg, TransactionHistoryGridModule as ɵga, TransactionHistoryGridStatusModule as ɵgb, TransactionHistoryGridStatusComponent as ɵgc, TransactionHistoryGridComponent as ɵgd, TransactionReceivingGoodsHistoryComponent as ɵge, TransactionReceivingGoodsDetailsModule as ɵgf, TransactionReceivingGoodsDetailsComponent as ɵgg, ArticleService as ɵgh, TransactionButtonBarModule as ɵgi, TransactionButtonBarComponent as ɵgj, TransactionMappingService as ɵgk, TransactionButtonBarButtonComponent as ɵgl, TransactionLineSidePanelPurchaseModule as ɵgm, DefaultOkCancelButtonsModule as ɵgn, DefaultOkCancelButtonsComponent as ɵgo, TransactionLineSidePanelPurchaseComponent as ɵgp, TransactionEventService as ɵgq, TransactionLineSidePanelComponent as ɵgr, TransactionBaseGridComponent as ɵgs, TransactionGridBaseComponent as ɵgt, DialogTransactionLineCommissionCodeModule as ɵgu, DialogHeaderSearchModule as ɵgv, DialogHeaderSearchComponent as ɵgw, DialogTransactionLineCommissionCodeComponent as ɵgx, DialogTransactionLineBaseComponent as ɵgy, DialogTransactionLineWarehouseModule as ɵgz, CoreModule as ɵh, DialogTransactionLineWarehouseComponent as ɵha, DialogTransactionLineDeliveryMethodModule as ɵhb, DialogTransactionLineDeliveryMethodComponent as ɵhc, TransactionLinesGridComponent as ɵhd, DiscountModule as ɵhe, DiscountComponent as ɵhf, TransactionQuickAccessOverviewModule as ɵhg, TransactionQuickAccessOverviewComponent as ɵhh, TransactionOrderConfirmationGridModule as ɵhi, TransactionOrderConfirmationGridComponent as ɵhj, TransactionReceivedGoodsGridModule as ɵhk, TransactionReceivedGoodsGridComponent as ɵhl, ViewModeButtonsModule as ɵhm, ViewModeButtonsComponent as ɵhn, TransactionGridModule as ɵho, TransactionGridComponent as ɵhp, TransactionTileModule as ɵhq, TransactionTileComponent as ɵhr, TransactionSearchResultModule as ɵhs, TransactionSearchSalesOrderTileModule as ɵht, StatusBarModule as ɵhu, StatusBarComponent as ɵhv, TransactionSearchSalesOrderTileComponent as ɵhw, TransactionSearchTileBaseComponent as ɵhx, TransactionSearchPurchaseOrderTileModule as ɵhy, TransactionSearchPurchaseOrderTileComponent as ɵhz, ConfirmationDialogModule as ɵi, TransactionSearchSalesOrderGridModule as ɵia, TransactionSearchSalesOrderGridComponent as ɵib, TransactionSearchGridBaseComponent as ɵic, TransactionSearchPurchaseOrderGridModule as ɵid, TransactionSearchPurchaseOrderGridComponent as ɵie, TransactionSearchHeaderModule as ɵif, TransactionSearchHeaderComponent as ɵig, TransactionSearchGridModule as ɵih, TransactionSearchGridComponent as ɵii, TransactionSearchTileModule as ɵij, TransactionSearchTileComponent as ɵik, TransactionSearchResultComponent as ɵil, TransactionSalesOrderFilterModule as ɵim, TransactionSalesOrderFilterContentOrderModule as ɵin, TransactionSalesOrderFilterContentOrderComponent as ɵio, TransactionFilterContentBaseComponent as ɵip, FilterRequestService as ɵiq, TransactionSalesOrderFilterContentLogisticsModule as ɵir, TransactionFilterHistoricStateModule as ɵis, TransactionFilterHistoricStateComponent as ɵit, TransactionSalesOrderFilterContentLogisticsComponent as ɵiu, TransactionSalesOrderFilterContentArticleModule as ɵiv, TransactionSalesOrderFilterContentArticleComponent as ɵiw, TransactionSalesOrderFilterComponent as ɵix, TransactionFilterBaseComponent as ɵiy, TransactionPurchaseOrderFilterModule as ɵiz, PipeModule as ɵj, TransactionPurchaseOrderFilterContentOrderModule as ɵja, TransactionPurchaseOrderFilterContentOrderComponent as ɵjb, TransactionPurchaseOrderFilterContentLogisticsModule as ɵjc, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵjd, TransactionPurchaseOrderFilterContentArticleModule as ɵje, TransactionPurchaseOrderFilterContentArticleComponent as ɵjf, TransactionPurchaseOrderFilterComponent as ɵjg, TransactionFilterModule as ɵjh, TransactionFilterComponent as ɵji, 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, CharacteristicAnswerModule as ɵt, CharacteristicAnswerComponent as ɵu, WarehouseModule as ɵv, WarehouseComponent as ɵw, ImageDisplayComponent as ɵx, IconComponent as ɵy, IconCacheService as ɵz };
19682
+ export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, CharacteristicAnswerComponent as ɵba, WarehouseModule as ɵbb, WarehouseComponent as ɵbc, ImageDisplayComponent as ɵbd, IconComponent as ɵbe, IconCacheService as ɵbf, CustomerGroupsComponent as ɵbg, StockStatusIndicatorComponent as ɵbh, LoaderComponent as ɵbi, RelationAddressModule as ɵbj, RelationAddressComponent as ɵbk, RelationBaseComponent as ɵbl, RelationAddressSelectModule as ɵbm, RelationAddressTileModule as ɵbn, TileModule as ɵbo, TileComponent as ɵbp, RelationAddressTileComponent as ɵbq, RelationAddressSelectComponent as ɵbr, BusinessObjectFactory as ɵbs, StepperModule as ɵbt, StepperComponent as ɵbu, StepperStepComponent as ɵbv, TransactionArticleTextModule as ɵbw, TransactionArticleTextComponent as ɵbx, TransactionArticleTextOverviewModule as ɵby, TransactionArticleTextOverviewComponent as ɵbz, OptionsService as ɵc, TransactionLineActionButtonsModule as ɵca, TransactionLineActionButtonsComponent as ɵcb, EditableLabelModule as ɵcc, EditableLabelComponent as ɵcd, TransactionLinePriceModule as ɵce, TransactionLinePriceComponent as ɵcf, TransactionLineBaseComponent as ɵcg, TransactionLineDescriptionModule as ɵch, TransactionLineDescriptionComponent as ɵci, TransactionImageService as ɵcj, AvatarModule as ɵck, AvatarComponent as ɵcl, SharedService as ɵcm, SharedConnectorService as ɵcn, DeliveryTypeTileModule as ɵco, DeliveryTypeTileComponent as ɵcp, PaymentModule as ɵcq, PaymentTileModule as ɵcr, PaymentTileComponent as ɵcs, PaymentQrCodeModule as ɵct, PaymentQrCodeComponent as ɵcu, PaymentComponent as ɵcv, PaymentService as ɵcw, RelationTypeModule as ɵcx, RelationTypeComponent as ɵcy, RelationGeneralModule as ɵcz, DictionaryService as ɵd, RelationSuggestionsListModule as ɵda, RelationSuggestionsListItemModule as ɵdb, RelationSuggestionsListItemComponent as ɵdc, RelationSuggestionsListComponent as ɵdd, RelationGeneralComponent as ɵde, RelationAddressesModule as ɵdf, RelationAddressesComponent as ɵdg, RelationContactDetailsModule as ɵdh, RelationContactDetailsComponent as ɵdi, RelationPreferencesModule as ɵdj, RelationPreferencesComponent as ɵdk, TransactionHeaderBlockModule as ɵdl, TransactionHeaderBlockComponent as ɵdm, TransactionHeaderDeliveryDateModule as ɵdn, TransactionHeaderDeliveryDateComponent as ɵdo, TransactionHeaderBaseComponent as ɵdp, TransactionHeaderDeliveryOptionsModule as ɵdq, TransactionHeaderDeliveryOptionsComponent as ɵdr, TransactionHeaderRemarksModule as ɵds, TransactionHeaderRemarksComponent as ɵdt, TransactionHeaderReferenceModule as ɵdu, TransactionHeaderReferenceComponent as ɵdv, TransactionHeaderRelationReferenceModule as ɵdw, TransactionHeaderRelationReferenceComponent as ɵdx, TransactionHeaderDeliveryMethodModule as ɵdy, TransactionHeaderDeliveryMethodComponent as ɵdz, TransactionConnectorService as ɵe, TransactionHeaderPreferredDeliveryDateModule as ɵea, TransactionHeaderPreferredDeliveryDateComponent as ɵeb, TransactionBaseComponent as ɵec, TransactionHeaderPartialDeliveryModule as ɵed, TransactionHeaderPartialDeliveryComponent as ɵee, TransactionHeaderDownpaymentPercentageModule as ɵef, TransactionHeaderDownpaymentPercentageComponent as ɵeg, TransactionHeaderDownpaymentAmountModule as ɵeh, TransactionHeaderDownpaymentAmountComponent as ɵei, TransactionHeaderDefinitiveModule as ɵej, TransactionHeaderDefinitiveComponent as ɵek, TransactionHeaderBranchModule as ɵel, TransactionHeaderBranchComponent as ɵem, TransactionHeaderAdministrativeRelationModule as ɵen, TransactionHeaderAdministrativeRelationComponent as ɵeo, TransactionHeaderMarketingModule as ɵep, TransactionHeaderMarketingComponent as ɵeq, CheckoutOverviewRelationEditComponent as ɵer, CheckoutOverviewDeliveryEditComponent as ɵes, CheckoutOverviewDeliveryAddressComponent as ɵet, CheckoutOverviewPaymentComponent as ɵeu, CheckoutLoginComponent as ɵev, TransactionFilterCategoriesModule as ɵew, TransactionFilterCategoriesComponent as ɵex, TransactionHeaderPaymentModule as ɵey, TransactionHeaderPaymentComponent as ɵez, TransactionConnectorAdapterService as ɵf, TransactionLinesGridModule as ɵfa, TransactionBaseGridModule as ɵfb, TransactionLineSidePanelModule as ɵfc, TransactionLineSidePanelDefaultModule as ɵfd, TransactionLinePriceListModule as ɵfe, TransactionLinePriceListComponent as ɵff, TransactionLineVatModule as ɵfg, TransactionLineVatComponent as ɵfh, TransactionLineQuantityModule as ɵfi, TransactionLineQuantityComponent as ɵfj, TransactionLineLineDiscountModule as ɵfk, TransactionLineLineDiscountComponent as ɵfl, TransactionLineDeliveryMethodModule as ɵfm, TransactionLineDeliveryMethodComponent as ɵfn, TransactionLineDeliveryDateModule as ɵfo, TransactionLineDeliveryDateComponent as ɵfp, TransactionLineReferenceModule as ɵfq, TransactionLineReferenceComponent as ɵfr, TransactionLineCommissionCodeModule as ɵfs, TransactionLineCommissionCodeComponent as ɵft, TransactionLineWarehouseModule as ɵfu, TransactionLineWarehouseComponent as ɵfv, TransactionLineDiscountAmountModule as ɵfw, TransactionLineDiscountAmountComponent as ɵfx, TransactionLineQuantumDiscountModule as ɵfy, TransactionLineQuantumDiscountComponent as ɵfz, SelectMultipleCacheService as ɵg, TransactionLineSpecialDiscountModule as ɵga, TransactionLineSpecialDiscountComponent as ɵgb, TransactionLineSupplierModule as ɵgc, TransactionLineSupplierComponent as ɵgd, TransactionLineSidePanelDefaultComponent as ɵge, TransactionReceivingGoodsHistoryModule as ɵgf, TransactionHistoryGridModule as ɵgg, TransactionHistoryGridStatusModule as ɵgh, TransactionHistoryGridStatusComponent as ɵgi, TransactionHistoryGridComponent as ɵgj, TransactionReceivingGoodsHistoryComponent as ɵgk, TransactionReceivingGoodsDetailsModule as ɵgl, TransactionReceivingGoodsDetailsComponent as ɵgm, ArticleService as ɵgn, TransactionButtonBarModule as ɵgo, TransactionButtonBarComponent as ɵgp, TransactionMappingService as ɵgq, TransactionButtonBarButtonComponent as ɵgr, TransactionLineSidePanelPurchaseModule as ɵgs, DefaultOkCancelButtonsModule as ɵgt, DefaultOkCancelButtonsComponent as ɵgu, TransactionLineSidePanelPurchaseComponent as ɵgv, TransactionEventService as ɵgw, TransactionLineSidePanelComponent as ɵgx, TransactionBaseGridComponent as ɵgy, TransactionGridBaseComponent as ɵgz, BusinessObjectCacheManagerService as ɵh, DialogTransactionLineCommissionCodeModule as ɵha, DialogHeaderSearchModule as ɵhb, DialogHeaderSearchComponent as ɵhc, DialogTransactionLineCommissionCodeComponent as ɵhd, DialogTransactionLineBaseComponent as ɵhe, DialogTransactionLineWarehouseModule as ɵhf, DialogTransactionLineWarehouseComponent as ɵhg, DialogTransactionLineDeliveryMethodModule as ɵhh, DialogTransactionLineDeliveryMethodComponent as ɵhi, DialogTransactionLineVatModule as ɵhj, DialogTransactionLineVatComponent as ɵhk, TransactionLinesGridComponent as ɵhl, DiscountModule as ɵhm, DiscountComponent as ɵhn, TransactionQuickAccessOverviewModule as ɵho, TransactionQuickAccessOverviewComponent as ɵhp, TransactionOrderConfirmationGridModule as ɵhq, TransactionOrderConfirmationGridComponent as ɵhr, TransactionReceivedGoodsGridModule as ɵhs, TransactionReceivedGoodsGridComponent as ɵht, ViewModeButtonsModule as ɵhu, ViewModeButtonsComponent as ɵhv, TransactionGridModule as ɵhw, TransactionGridComponent as ɵhx, TransactionTileModule as ɵhy, TransactionTileComponent as ɵhz, CacheField as ɵi, TransactionSearchResultModule as ɵia, TransactionSearchSalesOrderTileModule as ɵib, StatusBarModule as ɵic, StatusBarComponent as ɵid, TransactionSearchSalesOrderTileComponent as ɵie, TransactionSearchTileBaseComponent as ɵif, TransactionSearchPurchaseOrderTileModule as ɵig, TransactionSearchPurchaseOrderTileComponent as ɵih, TransactionSearchSalesOrderGridModule as ɵii, TransactionSearchSalesOrderGridComponent as ɵij, TransactionSearchGridBaseComponent as ɵik, TransactionSearchPurchaseOrderGridModule as ɵil, TransactionSearchPurchaseOrderGridComponent as ɵim, TransactionSearchHeaderModule as ɵin, TransactionSearchHeaderComponent as ɵio, TransactionSearchGridModule as ɵip, TransactionSearchGridComponent as ɵiq, TransactionSearchTileModule as ɵir, TransactionSearchTileComponent as ɵis, TransactionSearchResultComponent as ɵit, TransactionSalesOrderFilterModule as ɵiu, TransactionSalesOrderFilterContentOrderModule as ɵiv, TransactionSalesOrderFilterContentOrderComponent as ɵiw, TransactionFilterContentBaseComponent as ɵix, FilterRequestService as ɵiy, TransactionSalesOrderFilterContentLogisticsModule as ɵiz, SelectMultipleParameterizedCacheService as ɵj, TransactionFilterHistoricStateModule as ɵja, TransactionFilterHistoricStateComponent as ɵjb, TransactionSalesOrderFilterContentLogisticsComponent as ɵjc, TransactionSalesOrderFilterContentArticleModule as ɵjd, TransactionSalesOrderFilterContentArticleComponent as ɵje, TransactionSalesOrderFilterComponent as ɵjf, TransactionFilterBaseComponent as ɵjg, TransactionPurchaseOrderFilterModule as ɵjh, TransactionPurchaseOrderFilterContentOrderModule as ɵji, TransactionPurchaseOrderFilterContentOrderComponent as ɵjj, TransactionPurchaseOrderFilterContentLogisticsModule as ɵjk, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵjl, TransactionPurchaseOrderFilterContentArticleModule as ɵjm, TransactionPurchaseOrderFilterContentArticleComponent as ɵjn, TransactionPurchaseOrderFilterComponent as ɵjo, TransactionFilterModule as ɵjp, TransactionFilterComponent as ɵjq, ErrorService as ɵk, SelectSingleCacheService as ɵl, ArticleConnectorService as ɵm, CoreModule as ɵn, ConfirmationDialogModule as ɵo, PipeModule as ɵp, AppendPipe as ɵq, DeliveryTimePipe as ɵr, DateDurationPipe as ɵs, LocalizePipe as ɵt, CoCurrencyPipe as ɵu, SafeStylePipe as ɵv, SafeHtmlPipe as ɵw, ConfirmationDialogComponent as ɵx, DialogBaseComponent as ɵy, CharacteristicAnswerModule as ɵz };
18647
19683
  //# sourceMappingURL=colijnit-transaction.js.map