@colijnit/transaction 12.1.32 → 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 (123) hide show
  1. package/bundles/colijnit-transaction.umd.js +3585 -2224
  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 +18 -4
  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/core/base/transaction-line-base.component.js +1 -1
  17. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.js +35 -0
  18. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.module.js +28 -0
  19. package/esm2015/lib/component/payment/payment.component.js +2 -2
  20. package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +2 -2
  21. package/esm2015/lib/component/relation/relation-general/relation-general.component.js +2 -2
  22. package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.module.js +4 -2
  23. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +17 -5
  24. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +17 -8
  25. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +7 -1
  26. package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +3 -3
  27. package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +30 -16
  28. package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +3 -3
  29. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +3 -3
  30. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-method.component.js +3 -3
  31. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-options.component.js +3 -3
  32. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +3 -3
  33. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +3 -3
  34. package/esm2015/lib/component/transaction-header-fields/transaction-header-marketing.component.js +19 -10
  35. package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +3 -3
  36. package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +3 -3
  37. package/esm2015/lib/component/transaction-header-fields/transaction-header-reference.component.js +3 -3
  38. package/esm2015/lib/component/transaction-header-fields/transaction-header-relation-reference.component.js +3 -3
  39. package/esm2015/lib/component/transaction-header-fields/transaction-header-remarks.component.js +3 -3
  40. package/esm2015/lib/component/transaction-line/transaction-line.component.js +29 -11
  41. package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
  42. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +8 -3
  43. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +9 -4
  44. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +35 -12
  45. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.module.js +4 -3
  46. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +12 -7
  47. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +4 -1
  48. package/esm2015/lib/component/transaction-lines/transaction-lines.module.js +4 -3
  49. package/esm2015/lib/enum/icon.enum.js +6 -2
  50. package/esm2015/lib/model/icon-svg.js +6 -2
  51. package/esm2015/lib/service/article-connector.service.js +24 -29
  52. package/esm2015/lib/service/article.service.js +8 -4
  53. package/esm2015/lib/service/error.service.js +33 -0
  54. package/esm2015/lib/service/payment.service.js +20 -13
  55. package/esm2015/lib/service/pending-reason.service.js +3 -2
  56. package/esm2015/lib/service/transaction-connector-adapter.service.js +1388 -0
  57. package/esm2015/lib/service/transaction-connector.service.js +163 -1067
  58. package/esm2015/lib/service/transaction-mapping.service.js +2 -2
  59. package/esm2015/lib/service/transaction.service.js +8 -4
  60. package/fesm2015/colijnit-transaction.js +2202 -1162
  61. package/fesm2015/colijnit-transaction.js.map +1 -1
  62. package/lib/cache/cache-field.d.ts +25 -0
  63. package/lib/cache/parameter-cache-field.d.ts +11 -0
  64. package/lib/cache/service/business-object-cache-manager.service.d.ts +57 -0
  65. package/lib/cache/service/select-multiple-cache.service.d.ts +15 -0
  66. package/lib/cache/service/select-multiple-parameterized-cache.service.d.ts +19 -0
  67. package/lib/cache/service/select-single-cache.service.d.ts +11 -0
  68. package/lib/component/core/base/transaction-header-base.component.d.ts +28 -0
  69. package/lib/component/core/base/transaction-line-base.component.d.ts +2 -0
  70. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.component.d.ts +4 -0
  71. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/dialog-transaction-line-vat.module.d.ts +2 -0
  72. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_layout.scss +19 -0
  73. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_material-definition.scss +0 -0
  74. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/_theme.scss +4 -0
  75. package/lib/component/dialog/transaction-line/dialog-transaction-line-vat/style/material.scss +5 -0
  76. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_layout.scss +19 -0
  77. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_material-definition.scss +0 -0
  78. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/_theme.scss +4 -0
  79. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-location/style/material.scss +5 -0
  80. package/lib/component/relation/relation-contact-details/style/_layout.scss +11 -0
  81. package/lib/component/relation/relation-contact-details/style/_material-definition.scss +2 -0
  82. package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +3 -2
  83. package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +4 -2
  84. package/lib/component/transaction-header/transaction-header-delivery/style/_theme.scss +3 -1
  85. package/lib/component/transaction-header/transaction-header-relation/style/_layout.scss +3 -0
  86. package/lib/component/transaction-header/transaction-header-relation/style/material.scss +1 -0
  87. package/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.d.ts +2 -2
  88. package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +4 -9
  89. package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +2 -2
  90. package/lib/component/transaction-header-fields/transaction-header-delivery-date.component.d.ts +2 -2
  91. package/lib/component/transaction-header-fields/transaction-header-delivery-method.component.d.ts +2 -2
  92. package/lib/component/transaction-header-fields/transaction-header-delivery-options.component.d.ts +2 -2
  93. package/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.d.ts +2 -2
  94. package/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.d.ts +2 -2
  95. package/lib/component/transaction-header-fields/transaction-header-marketing.component.d.ts +2 -8
  96. package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +2 -2
  97. package/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.d.ts +2 -2
  98. package/lib/component/transaction-header-fields/transaction-header-reference.component.d.ts +2 -2
  99. package/lib/component/transaction-header-fields/transaction-header-relation-reference.component.d.ts +2 -2
  100. package/lib/component/transaction-header-fields/transaction-header-remarks.component.d.ts +2 -2
  101. package/lib/component/transaction-line/style/_layout.scss +20 -5
  102. package/lib/component/transaction-line/style/_material-definition.scss +8 -0
  103. package/lib/component/transaction-line/style/_theme.scss +2 -1
  104. package/lib/component/transaction-line/style/material.scss +1 -0
  105. package/lib/component/transaction-line/transaction-line.component.d.ts +2 -0
  106. package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +6 -2
  107. package/lib/component/transaction-line-fields/transaction-line-warehouse.component.d.ts +1 -1
  108. package/lib/component/transaction-lines/style/_layout.scss +16 -3
  109. package/lib/enum/icon.enum.d.ts +5 -1
  110. package/lib/service/article-connector.service.d.ts +1 -3
  111. package/lib/service/article.service.d.ts +3 -1
  112. package/lib/service/error.service.d.ts +8 -0
  113. package/lib/service/payment.service.d.ts +5 -3
  114. package/lib/service/pending-reason.service.d.ts +2 -1
  115. package/lib/service/transaction-connector-adapter.service.d.ts +152 -0
  116. package/lib/service/transaction-connector.service.d.ts +13 -13
  117. package/lib/style/_variables.scss +3 -1
  118. package/lib/style/transaction-globals.scss +6 -0
  119. package/package.json +1 -1
  120. package/esm2015/lib/component/transaction-header-fields/transaction-header-fields-base.component.js +0 -27
  121. package/esm2015/lib/service/collection-cache.service.js +0 -40
  122. package/lib/component/transaction-header-fields/transaction-header-fields-base.component.d.ts +0 -8
  123. 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",
@@ -429,9 +435,11 @@ class Dictionary {
429
435
  "SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
430
436
  "SAVE": "Opslaan",
431
437
  "SEARCH": "Zoeken",
432
- "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
433
- "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
434
438
  "SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
439
+ "SEARCH_DELIVERY_METHOD": "Zoek levermethode",
440
+ "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
441
+ "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
442
+ "SEARCH_VAT": "Zoek btw",
435
443
  "SEARCH_WAREHOUSE": "Zoek magazijn",
436
444
  "SELECT": "Selecteren",
437
445
  "SELECT_A": "Selecteer een",
@@ -483,6 +491,7 @@ class Dictionary {
483
491
  "UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
484
492
  "USER": "Gebruiker",
485
493
  "VAT": "Btw",
494
+ "VAT2": "BTW",
486
495
  "VAT_AMOUNT": "BTW-bedrag",
487
496
  "VALUE": "Waarde",
488
497
  "WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
@@ -541,6 +550,7 @@ class Dictionary {
541
550
  "CHECKOUT_FINISH": "Finish checkout",
542
551
  "CITY": "City",
543
552
  "CLIENT_DATA": "Client data",
553
+ "CLIENT_INFORMATION": "Client information",
544
554
  "COMPANY": "Company",
545
555
  "COMPANY_NAME": "Company name",
546
556
  "COMMISSION_CODE": "Commission code",
@@ -579,6 +589,7 @@ class Dictionary {
579
589
  "DELIVERY_DATE_DEFINITIVE": "Delivery date definitive",
580
590
  "DELIVERY_DATE_FINAL": "Final delivery date",
581
591
  "DELIVERY_DIRECT": "Direct delivery",
592
+ "DELIVERY_INFORMATION": "Direct information",
582
593
  "DELIVERY_LOCATION": "Delivery location",
583
594
  "DELIVERY_NOTE": "Delivery note",
584
595
  "DELIVERY_OPTIONS": "Delivery options",
@@ -688,6 +699,7 @@ class Dictionary {
688
699
  "ORDER_TYPE": "Order type",
689
700
  "ORDERED": "Ordered",
690
701
  "OTHER": "Other",
702
+ "OVERVIEW": "Overview",
691
703
  "OVERVIEW_AND_PAYMENT": "Overview and payment",
692
704
  "OWN_REFERENCE": "Own reference",
693
705
  "PACKING_SLIP": "Packing slip",
@@ -704,6 +716,7 @@ class Dictionary {
704
716
  "PASSWORD": "Password",
705
717
  "PAY": "Pay",
706
718
  "PAYMENT": "Payment",
719
+ "PAYMENT_INFORMATION": "Payment information",
707
720
  "PAYMENT_METHOD": "Payment method",
708
721
  "PERSONAL_DATA": "Personal data",
709
722
  "PHONE_NO": "Telephone number",
@@ -740,9 +753,11 @@ class Dictionary {
740
753
  "SAME_AS_DELIVERY": "Same as delivery address",
741
754
  "SAVE": "Save",
742
755
  "SEARCH": "Search",
743
- "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
744
756
  "SEARCH_ADD_ARTICLE": "Search and add article",
757
+ "SEARCH_DELIVERY_METHOD": "Search deliverymethod",
745
758
  "SEARCH_IN_COLLECTION": "Search in collection...",
759
+ "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
760
+ "SEARCH_VAT": "Search vat",
746
761
  "SEARCH_WAREHOUSE": "Search warehouse",
747
762
  "SELECT": "Select",
748
763
  "SELECT_A": "Select a",
@@ -794,6 +809,7 @@ class Dictionary {
794
809
  "USER": "User",
795
810
  "VALUE": "Value",
796
811
  "VAT": "VAT",
812
+ "VAT2": "VAT",
797
813
  "VAT_AMOUNT": "VAT amount",
798
814
  "WAREHOUSE": "Warehouse",
799
815
  "WHERE_ARE_YOU_LOOKING_FOR": "Where are you looking for?",
@@ -942,6 +958,351 @@ OptionsService.ctorParameters = () => [
942
958
  { type: DictionaryService }
943
959
  ];
944
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
+
945
1306
  const PROP_META_KEY$3 = "complexField";
946
1307
  /**
947
1308
  * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
@@ -1601,166 +1962,554 @@ class BusinessObjectFactory {
1601
1962
  class StandardText {
1602
1963
  }
1603
1964
 
1604
- class CollectionCacheService {
1605
- constructor() {
1606
- this._collectionCacheMap = new Map();
1607
- this._collectionCacheParameterizedMap = []; // Map<string, Map<string, any[]>> = new Map<string, Map<string, any[]>>();
1608
- }
1609
- getCollection(clazz, params) {
1610
- if (params && params.length > 0) {
1611
- if (this._collectionCacheParameterizedMap[clazz]) {
1612
- return this._collectionCacheParameterizedMap[clazz][params.join('_')];
1613
- }
1614
- return undefined;
1615
- }
1616
- const coll = this._collectionCacheMap.get(clazz);
1617
- return coll;
1618
- }
1619
- cacheCollection(clazz, collection, params) {
1620
- if (params && params.length > 0) {
1621
- if (!this._collectionCacheParameterizedMap[clazz]) {
1622
- this._collectionCacheParameterizedMap[clazz] = [];
1623
- }
1624
- this._collectionCacheParameterizedMap[clazz][params.join('_')] = collection;
1625
- // const paramMap: Map<string, any[]> = new Map<string, any[]>();
1626
- // paramMap.set(params.join('_'), collection);
1627
- // const classMap: Map<string, any[]> = this._collectionCacheParameterizedMap.get(clazz);
1628
- // classMap.set(params.join('_'), collection);
1629
- }
1630
- else {
1631
- this._collectionCacheMap.set(clazz, collection);
1632
- }
1633
- }
1634
- }
1635
- CollectionCacheService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CollectionCacheService_Factory() { return new CollectionCacheService(); }, token: CollectionCacheService, providedIn: "root" });
1636
- CollectionCacheService.decorators = [
1637
- { type: Injectable, args: [{
1638
- providedIn: "root"
1639
- },] }
1640
- ];
1641
-
1642
1965
  class TransactionSearchResult {
1643
1966
  }
1644
1967
 
1645
- class TransactionConnectorService {
1646
- constructor(_optionsService, _collectionService) {
1647
- this._optionsService = _optionsService;
1648
- this._collectionService = _collectionService;
1649
- this._boFactory = new BusinessObjectFactory();
1650
- 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;
1651
1982
  }
1652
- connect() {
1653
- return __awaiter(this, void 0, void 0, function* () {
1654
- this.connector = new Transaction(this._optionsService.options);
1655
- this._optionsService.options.session = this.connector.session;
1656
- });
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;
1657
1997
  }
1658
- getArticleFullObject(goodId) {
1659
- return __awaiter(this, void 0, void 0, function* () {
1660
- return new Promise((resolve, reject) => {
1661
- return this.connector.getArticleFullObject(goodId).then((result) => {
1662
- if (result.validationResult && result.validationResult.success) {
1663
- if (result.resultObject) {
1664
- resolve(this._boFactory.makeWithRawBackendData(ArticleFullObject, result.resultObject));
1665
- }
1666
- }
1667
- else {
1668
- reject(result.validationMessagesAsString);
1669
- }
1670
- });
1671
- });
1672
- });
1998
+ showClass() {
1999
+ return true;
1673
2000
  }
1674
- getGoodIdFromArticleNr(articleNr) {
1675
- return new Promise((resolve, reject) => {
1676
- return this.connector.getGoodIdFromArticleNr(articleNr).then((result) => {
1677
- if (result.validationResult && result.validationResult.success) {
1678
- resolve(result.resultObject);
1679
- }
1680
- else {
1681
- reject(result.validationMessagesAsString);
1682
- }
1683
- });
1684
- });
2001
+ handleYesClick(event) {
2002
+ this.onClose(AppPopupButtonType.Yes);
1685
2003
  }
1686
- getSingleImage(nodeId, publication, includeMimetype, thumb) {
1687
- return new Promise((resolve, reject) => {
1688
- return this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then((result) => {
1689
- if (result.validationResult && result.validationResult.success) {
1690
- if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
1691
- return resolve(ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
1692
- }
1693
- else {
1694
- if (result.resultObject) {
1695
- if (includeMimetype) {
1696
- return resolve(ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
1697
- }
1698
- return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
1699
- }
1700
- else { // no image
1701
- resolve("");
1702
- }
1703
- }
1704
- }
1705
- else {
1706
- reject(result.validationMessagesAsString);
1707
- }
1708
- });
1709
- });
2004
+ handleNoClick(event) {
2005
+ this.onClose(AppPopupButtonType.No);
1710
2006
  }
1711
- getCountries() {
1712
- if (this._countryList.length > 0) {
1713
- return new Promise((resolve) => {
1714
- resolve(this._countryList);
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;
1715
2184
  });
1716
2185
  }
1717
- return new Promise((resolve, reject) => {
1718
- return this.connector.getCountries().then((result) => {
1719
- if (result.validationResult && result.validationResult.success) {
1720
- this._countryList = result.resultObjects;
1721
- resolve(result.resultObjects);
1722
- }
1723
- else {
1724
- reject(result.validationMessagesAsString);
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];
1725
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);
1726
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
+ };
1727
2366
  });
1728
2367
  }
1729
- 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() {
1730
2419
  return __awaiter(this, void 0, void 0, function* () {
1731
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1732
- const collection = this._collectionService.getCollection(CustomerGroup.name);
1733
- if (collection) {
1734
- return resolve(collection);
1735
- }
1736
- const response = yield this.connector.getCustomerGroups();
1737
- if (response && response.validationResult && response.validationResult.success) {
1738
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(CustomerGroup, response.resultObjects);
1739
- this._collectionService.cacheCollection(CustomerGroup.name, collection);
1740
- 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);
1741
2454
  }
1742
2455
  else {
1743
- 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
+ }
1744
2465
  }
1745
- }));
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
+ }
1746
2495
  });
1747
2496
  }
1748
2497
  getCountry(countryCode) {
1749
2498
  return __awaiter(this, void 0, void 0, function* () {
1750
- yield this.getCountries();
1751
- return this._countryList.find(country => country.code === countryCode);
2499
+ const countries = yield this.getCountries();
2500
+ return countries.find(country => country.code === countryCode);
1752
2501
  });
1753
2502
  }
1754
2503
  getPrivacySettings() {
1755
- return new Promise((resolve, reject) => {
1756
- return this.connector.getPrivacySettings().then((result) => {
1757
- if (result.validationResult && result.validationResult.success) {
1758
- resolve(result.resultObjects);
1759
- }
1760
- else {
1761
- reject(result.validationMessagesAsString);
1762
- }
1763
- });
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
+ }
1764
2513
  });
1765
2514
  }
1766
2515
  getRelationPrivacySettings() {
@@ -1777,33 +2526,15 @@ class TransactionConnectorService {
1777
2526
  });
1778
2527
  }
1779
2528
  getMarketingCodes() {
1780
- return new Promise((resolve, reject) => {
1781
- const collection = this._collectionService.getCollection(Marketing.name);
1782
- if (collection) {
1783
- 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 [];
1784
2537
  }
1785
- return this.connector.getMarketingCodes().then((result) => {
1786
- if (result.validationResult && result.validationResult.success) {
1787
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Marketing, result.resultObjects);
1788
- this._collectionService.cacheCollection(Marketing.name, collection);
1789
- resolve(collection);
1790
- }
1791
- else {
1792
- reject(result.validationMessagesAsString);
1793
- }
1794
- });
1795
- });
1796
- }
1797
- createTransaction(kind, branchNr) {
1798
- return new Promise((resolve, reject) => {
1799
- return this.connector.createTransaction(kind, branchNr).then((result) => {
1800
- if (result.validationResult && result.validationResult.success) {
1801
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1802
- }
1803
- else {
1804
- reject(result.validationMessagesAsString);
1805
- }
1806
- });
1807
2538
  });
1808
2539
  }
1809
2540
  getArticleBoundTextLinesOfArticleLine(articleLineUuid) {
@@ -1813,130 +2544,93 @@ class TransactionConnectorService {
1813
2544
  return this._boFactory.makeBOArrayFromRawBackendDataArray(TransactionLineInfo, result.resultObject);
1814
2545
  }
1815
2546
  else {
2547
+ this._handleValidationResult(result.validationResult);
1816
2548
  return [];
1817
2549
  }
1818
2550
  });
1819
2551
  }
1820
2552
  getTransactionByNrAndKind(kind, transactionNo) {
1821
- return new Promise((resolve, reject) => {
1822
- return this.connector.getTransactionByNrAndKind(kind, transactionNo).then((result) => {
1823
- if (result.validationResult && result.validationResult.success) {
1824
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1825
- }
1826
- else {
1827
- reject(result.validationMessagesAsString);
1828
- }
1829
- });
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
+ }
1830
2562
  });
1831
2563
  }
1832
2564
  getTransactionById(transactionId) {
1833
- return new Promise((resolve, reject) => {
1834
- return this.connector.getTransactionById(transactionId).then((result) => {
1835
- if (result.validationResult && result.validationResult.success) {
1836
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1837
- }
1838
- else {
1839
- reject(result.validationMessagesAsString);
1840
- }
1841
- });
1842
- });
1843
- }
1844
- commit() {
1845
- return this.connector.commit();
1846
- }
1847
- saveTransaction(uuid) {
1848
- return new Promise((resolve, reject) => {
1849
- return this.connector.saveTransaction(uuid).then((result) => {
1850
- if (result.validationResult && result.validationResult.success) {
1851
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1852
- }
1853
- else {
1854
- reject(result.validationResult.messages && result.validationResult.messages.length > 0 ? result.validationResult.messages[0] : '');
1855
- }
1856
- });
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
+ }
1857
2574
  });
1858
2575
  }
1859
2576
  getCustomerFullObject(relationNo) {
1860
- return new Promise((resolve, reject) => {
1861
- return this.connector.getCustomerFullObject(relationNo).then((result) => {
1862
- if (result.validationResult && result.validationResult.success) {
1863
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1864
- }
1865
- else {
1866
- reject(result.validationMessagesAsString);
1867
- }
1868
- });
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
+ }
1869
2586
  });
1870
2587
  }
1871
2588
  getCashRegisters(branch, group) {
1872
2589
  return __awaiter(this, void 0, void 0, function* () {
1873
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1874
- const collection = this._collectionService.getCollection(CashRegister.name, [branch, group]);
1875
- if (collection) {
1876
- return resolve(collection);
1877
- }
1878
- const response = yield this.connector.getCashRegister(branch, group);
1879
- if (response.validationResult && response.validationResult.success) {
1880
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(CashRegister, response.resultObjects);
1881
- this._collectionService.cacheCollection(CashRegister.name, collection, [branch, group]);
1882
- resolve(collection);
1883
- }
1884
- else {
1885
- reject(response.validationMessagesAsString);
1886
- }
1887
- }));
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
+ }
1888
2598
  });
1889
2599
  }
1890
2600
  getRelationNumber(relationId) {
1891
2601
  return __awaiter(this, void 0, void 0, function* () {
1892
- return new Promise((resolve, reject) => {
1893
- return this.connector.getRelationNumber(relationId).then((result) => {
1894
- if (result.validationResult && result.validationResult.success) {
1895
- resolve(result.resultObject);
1896
- }
1897
- else {
1898
- reject(result.validationMessagesAsString);
1899
- }
1900
- });
1901
- });
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
+ }
1902
2610
  });
1903
2611
  }
1904
2612
  getPriceLists(code) {
1905
2613
  return __awaiter(this, void 0, void 0, function* () {
1906
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1907
- const collection = this._collectionService.getCollection(PriceList.name);
1908
- if (collection) {
1909
- return resolve(collection);
1910
- }
1911
- const response = yield this.connector.getPriceLists(code);
1912
- if (response.validationResult && response.validationResult.success) {
1913
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, response.resultObjects);
1914
- this._collectionService.cacheCollection(PriceList.name, collection);
1915
- resolve(collection);
1916
- }
1917
- else {
1918
- reject(response.validationMessagesAsString);
1919
- }
1920
- }));
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
+ }
1921
2622
  });
1922
2623
  }
1923
2624
  getVatList(onlyValid = false) {
1924
2625
  return __awaiter(this, void 0, void 0, function* () {
1925
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
1926
- const collection = this._collectionService.getCollection(Vat.name, [onlyValid]);
1927
- if (collection) {
1928
- return resolve(collection);
1929
- }
1930
- const response = yield this.connector.getVatList(onlyValid);
1931
- if (response.validationResult && response.validationResult.success) {
1932
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Vat, response.resultObjects);
1933
- this._collectionService.cacheCollection(Vat.name, collection, [onlyValid]);
1934
- resolve(collection);
1935
- }
1936
- else {
1937
- reject(response.validationMessagesAsString);
1938
- }
1939
- }));
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
+ }
1940
2634
  });
1941
2635
  }
1942
2636
  searchTransactions(request) {
@@ -1949,7 +2643,8 @@ class TransactionConnectorService {
1949
2643
  return result;
1950
2644
  }
1951
2645
  else {
1952
- return null; // todo: handle error messages in a good way
2646
+ this._handleValidationResult(response.validationResult);
2647
+ return null;
1953
2648
  }
1954
2649
  });
1955
2650
  }
@@ -1961,470 +2656,452 @@ class TransactionConnectorService {
1961
2656
  resolve(result.resultObject);
1962
2657
  }
1963
2658
  else {
1964
- reject(result.validationMessagesAsString);
2659
+ this._handleValidationResult(result.validationResult);
2660
+ reject(null);
1965
2661
  }
1966
2662
  });
1967
2663
  });
1968
2664
  });
1969
2665
  }
1970
- insertCustomer(relation) {
2666
+ getDeliveryMethods() {
1971
2667
  return __awaiter(this, void 0, void 0, function* () {
1972
- return new Promise((resolve, reject) => {
1973
- return this.connector.insertCustomer(relation).then((result) => {
1974
- if (result.validationResult && result.validationResult.success) {
1975
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1976
- }
1977
- else {
1978
- reject(result.validationMessagesAsString);
1979
- }
1980
- });
1981
- });
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
+ }
1982
2676
  });
1983
2677
  }
1984
- updateCustomer(relation) {
2678
+ getDeliveryOptions() {
1985
2679
  return __awaiter(this, void 0, void 0, function* () {
1986
- return new Promise((resolve, reject) => {
1987
- return this.connector.updateCustomer(relation).then((result) => {
1988
- if (result.validationResult && result.validationResult.success) {
1989
- resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
1990
- }
1991
- else {
1992
- reject(result.validationMessagesAsString);
1993
- }
1994
- });
1995
- });
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
+ }
1996
2688
  });
1997
2689
  }
1998
- getDeliveryMethods() {
2690
+ getPostalCodeRetrieval(postcalCode, houseNo) {
1999
2691
  return __awaiter(this, void 0, void 0, function* () {
2000
- return new Promise((resolve, reject) => {
2001
- const collection = this._collectionService.getCollection(DeliveryMethod.name);
2002
- if (collection) {
2003
- return resolve(collection);
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;
2004
2701
  }
2005
- return this.connector.getDeliveryMethods().then((result) => {
2006
- if (result.validationResult && result.validationResult.success) {
2007
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2008
- this._collectionService.cacheCollection(DeliveryMethod.name, collection);
2009
- resolve(collection);
2010
- }
2011
- else {
2012
- reject(result.validationMessagesAsString);
2013
- }
2014
- });
2015
- });
2702
+ else {
2703
+ this._handleValidationResult(result.validationResult);
2704
+ return null;
2705
+ }
2706
+ }
2016
2707
  });
2017
2708
  }
2018
- getDeliveryOptions() {
2709
+ getRelationListObjects(relationRequest) {
2019
2710
  return __awaiter(this, void 0, void 0, function* () {
2020
- return new Promise((resolve, reject) => {
2021
- const collection = this._collectionService.getCollection(DeliveryOption.name);
2022
- if (collection) {
2023
- return resolve(collection);
2024
- }
2025
- return this.connector.getDeliveryOptions().then((result) => {
2026
- if (result.validationResult && result.validationResult.success) {
2027
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2028
- this._collectionService.cacheCollection(DeliveryOption.name, collection);
2029
- resolve(collection);
2030
- }
2031
- else {
2032
- reject(result.validationMessagesAsString);
2033
- }
2034
- });
2035
- });
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
+ }
2036
2719
  });
2037
2720
  }
2038
- addRelationToTransaction(uuid, relationId) {
2721
+ getCommissionCodes(languageCode) {
2039
2722
  return __awaiter(this, void 0, void 0, function* () {
2040
- return new Promise((resolve, reject) => {
2041
- return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
2042
- if (result.validationResult && result.validationResult.success) {
2043
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2044
- }
2045
- else {
2046
- reject(result.validationMessagesAsString);
2047
- }
2048
- });
2049
- });
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
+ }
2050
2731
  });
2051
2732
  }
2052
- setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
2733
+ getInOutCollection(languageCode) {
2734
+ return __awaiter(this, void 0, void 0, function* () {
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
+ }
2743
+ });
2744
+ }
2745
+ getTransactionArticleWarehouses(goodId) {
2053
2746
  return __awaiter(this, void 0, void 0, function* () {
2054
2747
  return new Promise((resolve, reject) => {
2055
- return this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then((result) => {
2748
+ return this.connector.getTransactionArticleWarehouses(goodId).then((result) => {
2056
2749
  if (result.validationResult && result.validationResult.success) {
2057
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2750
+ resolve(result.resultObjects);
2058
2751
  }
2059
2752
  else {
2060
- reject(result.validationMessagesAsString);
2753
+ this._handleValidationResult(result.validationResult);
2754
+ reject([]);
2061
2755
  }
2062
2756
  });
2063
2757
  });
2064
2758
  });
2065
2759
  }
2066
- getPostalCodeRetrieval(postcalCode, houseNo) {
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) {
2067
2799
  return __awaiter(this, void 0, void 0, function* () {
2068
- return new Promise((resolve, reject) => {
2069
- return this.connector.getPostalCodeRetrieval(postcalCode, houseNo).then((result) => {
2070
- if (result.validationResult && result.validationResult.success) {
2071
- const outputParams = new GetPostalCodeRetrievalOutputParams();
2072
- outputParams.city = result.resultObject.city;
2073
- outputParams.street = result.resultObject.street;
2074
- outputParams.status = result.resultObject.status;
2075
- outputParams.netNumber = result.resultObject.netNumber;
2076
- resolve(outputParams);
2077
- }
2078
- else {
2079
- reject(result.validationMessagesAsString);
2080
- }
2081
- });
2082
- });
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
+ }
2083
2808
  });
2084
2809
  }
2085
- getRelationListObjects(relationRequest) {
2810
+ getTags(category) {
2086
2811
  return __awaiter(this, void 0, void 0, function* () {
2087
- return new Promise((resolve, reject) => {
2088
- return this.connector.getRelationListObjects(relationRequest).then((result) => {
2089
- if (result.validationResult && result.validationResult.success) {
2090
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(RelationListObject, result.resultObjects));
2091
- }
2092
- else {
2093
- reject(result.validationMessagesAsString);
2094
- }
2095
- });
2096
- });
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
+ }
2097
2820
  });
2098
2821
  }
2099
- addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2822
+ getOnHoldCodes() {
2100
2823
  return __awaiter(this, void 0, void 0, function* () {
2101
- return new Promise((resolve, reject) => {
2102
- return this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then((result) => {
2103
- if (result.validationResult && result.validationResult.success) {
2104
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2105
- }
2106
- else {
2107
- reject(result.validationMessagesAsString);
2108
- }
2109
- });
2110
- });
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
+ }
2111
2832
  });
2112
2833
  }
2113
- addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
2834
+ getWarehouses(branchNr) {
2114
2835
  return __awaiter(this, void 0, void 0, function* () {
2115
- return new Promise((resolve, reject) => {
2116
- return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
2117
- if (result.validationResult && result.validationResult.success) {
2118
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2119
- }
2120
- else {
2121
- reject(result.validationMessagesAsString);
2122
- }
2123
- });
2124
- });
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
+ }
2125
2844
  });
2126
2845
  }
2127
- changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
2846
+ getHistoricStateValues() {
2128
2847
  return __awaiter(this, void 0, void 0, function* () {
2129
- return new Promise((resolve, reject) => {
2130
- const request = {
2131
- transactionUuid: uuid,
2132
- lineUuid: lineUuid,
2133
- aboveLineNr: aboveLineNr,
2134
- belowLineNr: belowLineNr
2135
- };
2136
- return this.connector.changeLineSequence(request).then((result) => {
2137
- if (result.validationResult && result.validationResult.success) {
2138
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2139
- }
2140
- else {
2141
- reject(result.validationMessagesAsString);
2142
- }
2143
- });
2144
- });
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
+ }
2145
2856
  });
2146
2857
  }
2147
- cancelAddTransactionLine(lineUuid) {
2858
+ getPaymentMethods() {
2148
2859
  return __awaiter(this, void 0, void 0, function* () {
2149
- return new Promise((resolve, reject) => {
2150
- return this.connector.cancelAddTransactionLine(lineUuid).then((result) => {
2151
- if (result.validationResult && result.validationResult.success) {
2152
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2153
- }
2154
- else {
2155
- reject(result.validationMessagesAsString);
2156
- }
2157
- });
2158
- });
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
+ }
2159
2868
  });
2160
2869
  }
2161
- deleteTransactionLine(uuid, lineUuid) {
2870
+ insertCustomer(relation) {
2162
2871
  return __awaiter(this, void 0, void 0, function* () {
2163
2872
  return new Promise((resolve, reject) => {
2164
- return this.connector.deleteTransactionLine(uuid, lineUuid).then((result) => {
2873
+ return this.connector.insertCustomer(relation).then((result) => {
2165
2874
  if (result.validationResult && result.validationResult.success) {
2166
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2875
+ resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
2167
2876
  }
2168
2877
  else {
2169
- reject(result.validationMessagesAsString);
2878
+ this._handleValidationResult(result.validationResult);
2879
+ reject(null);
2170
2880
  }
2171
2881
  });
2172
2882
  });
2173
2883
  });
2174
2884
  }
2175
- changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
2885
+ updateCustomer(relation) {
2176
2886
  return __awaiter(this, void 0, void 0, function* () {
2177
2887
  return new Promise((resolve, reject) => {
2178
- const request = {
2179
- transactionUuid: uuid,
2180
- lineUuid: lineUuid,
2181
- newQuantity: newQuantity
2182
- };
2183
- return this.connector.changeTransactionLineQuantity(request).then((result) => {
2888
+ return this.connector.updateCustomer(relation).then((result) => {
2184
2889
  if (result.validationResult && result.validationResult.success) {
2185
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2890
+ resolve(this._boFactory.makeWithRawBackendData(CustomerFullObject, result.resultObject));
2186
2891
  }
2187
2892
  else {
2188
- reject(result.validationMessagesAsString);
2893
+ this._handleValidationResult(result.validationResult);
2894
+ reject(null);
2189
2895
  }
2190
2896
  });
2191
2897
  });
2192
2898
  });
2193
2899
  }
2194
- resolvePendingLineReason(pendingLineValues) {
2195
- return __awaiter(this, void 0, void 0, function* () {
2196
- return new Promise((resolve, reject) => {
2197
- return this.connector.resolvePendingLineReason(pendingLineValues).then((result) => {
2198
- if (result.validationResult && result.validationResult.success) {
2199
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2200
- }
2201
- else {
2202
- reject(result.validationMessagesAsString);
2203
- }
2204
- });
2900
+ commit() {
2901
+ return this.connector.commit();
2902
+ }
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
+ }
2205
2913
  });
2206
2914
  });
2207
2915
  }
2208
- resolvePendingHeaderReason(pendingHeaderValues) {
2209
- return __awaiter(this, void 0, void 0, function* () {
2210
- return new Promise((resolve, reject) => {
2211
- return this.connector.resolvePendingHeaderReason(pendingHeaderValues).then((result) => {
2212
- if (result.validationResult && result.validationResult.success) {
2213
- resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2214
- }
2215
- else {
2216
- reject(result.validationMessagesAsString);
2217
- }
2218
- });
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
+ }
2219
2926
  });
2220
2927
  });
2221
2928
  }
2222
- getCommissionCodes(languageCode) {
2929
+ setRelationByUser(uuid, username, password) {
2223
2930
  return __awaiter(this, void 0, void 0, function* () {
2224
2931
  return new Promise((resolve, reject) => {
2225
- return this.connector.getCommissionCodes(languageCode).then((result) => {
2932
+ return this.connector.setRelationByUser(uuid, username, password).then((result) => {
2226
2933
  if (result.validationResult && result.validationResult.success) {
2227
- resolve(result.resultObjects);
2934
+ resolve(result.validationResult.success);
2228
2935
  }
2229
2936
  else {
2230
- reject(result.validationMessagesAsString);
2937
+ this._handleValidationResult(result.validationResult);
2938
+ reject(false);
2231
2939
  }
2232
2940
  });
2233
2941
  });
2234
2942
  });
2235
2943
  }
2236
- getInOutCollection(languageCode) {
2944
+ resolvePendingHeaderReason(pendingHeaderValues) {
2237
2945
  return __awaiter(this, void 0, void 0, function* () {
2238
2946
  return new Promise((resolve, reject) => {
2239
- return this.connector.getInOutCollection(languageCode).then((result) => {
2947
+ return this.connector.resolvePendingHeaderReason(pendingHeaderValues).then((result) => {
2240
2948
  if (result.validationResult && result.validationResult.success) {
2241
- resolve(result.resultObjects);
2949
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2242
2950
  }
2243
2951
  else {
2244
- reject(result.validationMessagesAsString);
2952
+ this._handleValidationResult(result.validationResult);
2953
+ reject(null);
2245
2954
  }
2246
2955
  });
2247
2956
  });
2248
2957
  });
2249
2958
  }
2250
- getTransactionArticleWarehouses(goodId) {
2959
+ resolvePendingLineReason(pendingLineValues) {
2251
2960
  return __awaiter(this, void 0, void 0, function* () {
2252
2961
  return new Promise((resolve, reject) => {
2253
- return this.connector.getTransactionArticleWarehouses(goodId).then((result) => {
2962
+ return this.connector.resolvePendingLineReason(pendingLineValues).then((result) => {
2254
2963
  if (result.validationResult && result.validationResult.success) {
2255
- resolve(result.resultObjects);
2964
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2256
2965
  }
2257
2966
  else {
2258
- reject(result.validationMessagesAsString);
2967
+ this._handleValidationResult(result.validationResult);
2968
+ reject(null);
2259
2969
  }
2260
2970
  });
2261
2971
  });
2262
2972
  });
2263
2973
  }
2264
- setRelationByUser(uuid, username, password) {
2974
+ addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2265
2975
  return __awaiter(this, void 0, void 0, function* () {
2266
2976
  return new Promise((resolve, reject) => {
2267
- 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) => {
2268
2978
  if (result.validationResult && result.validationResult.success) {
2269
- resolve(result.validationResult.success);
2979
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2270
2980
  }
2271
2981
  else {
2272
- reject(result.validationMessagesAsString);
2982
+ this._handleValidationResult(result.validationResult);
2983
+ reject(null);
2273
2984
  }
2274
2985
  });
2275
2986
  });
2276
2987
  });
2277
2988
  }
2278
- getTextTypes(languageCode) {
2989
+ addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
2279
2990
  return __awaiter(this, void 0, void 0, function* () {
2280
2991
  return new Promise((resolve, reject) => {
2281
- return this.connector.getTextTypes(languageCode).then((result) => {
2992
+ return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
2282
2993
  if (result.validationResult && result.validationResult.success) {
2283
- const texts = this._boFactory.makeBOArrayFromRawBackendDataArray(CoDomainValue, result.resultObjects);
2284
- texts.sort((a, b) => a.sequence > b.sequence ? 1 : -1);
2285
- resolve(texts);
2994
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2286
2995
  }
2287
2996
  else {
2288
- reject(result.validationMessagesAsString);
2997
+ this._handleValidationResult(result.validationResult);
2998
+ reject(null);
2289
2999
  }
2290
3000
  });
2291
3001
  });
2292
3002
  });
2293
3003
  }
2294
- getStandardTexts(languageCode) {
3004
+ addRelationToTransaction(uuid, relationId) {
2295
3005
  return __awaiter(this, void 0, void 0, function* () {
2296
3006
  return new Promise((resolve, reject) => {
2297
- return this.connector.getStandardTexts(languageCode).then((result) => {
3007
+ return this.connector.addRelationToTransaction(uuid, relationId).then((result) => {
2298
3008
  if (result.validationResult && result.validationResult.success) {
2299
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObject));
3009
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2300
3010
  }
2301
3011
  else {
2302
- reject(result.validationMessagesAsString);
3012
+ this._handleValidationResult(result.validationResult);
3013
+ reject(null);
2303
3014
  }
2304
3015
  });
2305
3016
  });
2306
3017
  });
2307
3018
  }
2308
- getBranches(branchNr) {
3019
+ setTransactionDeliveryOptions(transactionDeliveryOptionsRequest) {
2309
3020
  return __awaiter(this, void 0, void 0, function* () {
2310
3021
  return new Promise((resolve, reject) => {
2311
- return this.connector.getBranches(branchNr).then((result) => {
3022
+ return this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then((result) => {
2312
3023
  if (result.validationResult && result.validationResult.success) {
2313
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(BranchLov, result.resultObjects));
3024
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2314
3025
  }
2315
3026
  else {
2316
- reject(result.validationMessagesAsString);
3027
+ this._handleValidationResult(result.validationResult);
3028
+ reject(null);
2317
3029
  }
2318
3030
  });
2319
3031
  });
2320
3032
  });
2321
3033
  }
2322
- getSalesPersons(date) {
3034
+ changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
2323
3035
  return __awaiter(this, void 0, void 0, function* () {
2324
3036
  return new Promise((resolve, reject) => {
2325
- 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) => {
2326
3044
  if (result.validationResult && result.validationResult.success) {
2327
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(SalesPerson, result.resultObjects));
3045
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2328
3046
  }
2329
3047
  else {
2330
- reject(result.validationMessagesAsString);
3048
+ this._handleValidationResult(result.validationResult);
3049
+ reject(null);
2331
3050
  }
2332
3051
  });
2333
3052
  });
2334
3053
  });
2335
3054
  }
2336
- getTags(category) {
3055
+ cancelAddTransactionLine(lineUuid) {
2337
3056
  return __awaiter(this, void 0, void 0, function* () {
2338
3057
  return new Promise((resolve, reject) => {
2339
- const collection = this._collectionService.getCollection(Tag.name, [category]);
2340
- if (collection) {
2341
- return resolve(collection);
2342
- }
2343
- return this.connector.getTags(category).then((result) => {
3058
+ return this.connector.cancelAddTransactionLine(lineUuid).then((result) => {
2344
3059
  if (result.validationResult && result.validationResult.success) {
2345
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Tag, result.resultObjects);
2346
- this._collectionService.cacheCollection(Tag.name, collection, [category]);
2347
- resolve(collection);
3060
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2348
3061
  }
2349
3062
  else {
2350
- reject(result.validationMessagesAsString);
3063
+ this._handleValidationResult(result.validationResult);
3064
+ reject(null);
2351
3065
  }
2352
3066
  });
2353
3067
  });
2354
3068
  });
2355
3069
  }
2356
- getOnHoldCodes() {
3070
+ deleteTransactionLine(uuid, lineUuid) {
2357
3071
  return __awaiter(this, void 0, void 0, function* () {
2358
3072
  return new Promise((resolve, reject) => {
2359
- const collection = this._collectionService.getCollection(OnHoldCode.name);
2360
- if (collection) {
2361
- return resolve(collection);
2362
- }
2363
- return this.connector.getOnHoldCodes().then((result) => {
3073
+ return this.connector.deleteTransactionLine(uuid, lineUuid).then((result) => {
2364
3074
  if (result.validationResult && result.validationResult.success) {
2365
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(OnHoldCode, result.resultObjects);
2366
- this._collectionService.cacheCollection(OnHoldCode.name, collection);
2367
- resolve(collection);
3075
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2368
3076
  }
2369
3077
  else {
2370
- reject(result.validationMessagesAsString);
3078
+ this._handleValidationResult(result.validationResult);
3079
+ reject(null);
2371
3080
  }
2372
3081
  });
2373
3082
  });
2374
3083
  });
2375
3084
  }
2376
- getWarehouses(branchNr) {
3085
+ changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
2377
3086
  return __awaiter(this, void 0, void 0, function* () {
2378
3087
  return new Promise((resolve, reject) => {
2379
- const collection = this._collectionService.getCollection(Warehouse.name);
2380
- if (collection) {
2381
- return resolve(collection);
2382
- }
2383
- 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) => {
2384
3094
  if (result.validationResult && result.validationResult.success) {
2385
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Warehouse, result.resultObjects);
2386
- this._collectionService.cacheCollection(Warehouse.name, collection);
2387
- resolve(collection);
3095
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
2388
3096
  }
2389
3097
  else {
2390
- reject(result.validationMessagesAsString);
3098
+ this._handleValidationResult(result.validationResult);
3099
+ reject(null);
2391
3100
  }
2392
- });
2393
- });
2394
- });
2395
- }
2396
- getHistoricStateValues() {
2397
- return __awaiter(this, void 0, void 0, function* () {
2398
- return new Promise((resolve, reject) => {
2399
- const result = this.connector.getHistoricStateValues();
2400
- if (result.validationResult && result.validationResult.success) {
2401
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(CodeDescription, result.resultObjects));
2402
- }
2403
- else {
2404
- reject(result.validationMessagesAsString);
2405
- }
3101
+ });
2406
3102
  });
2407
3103
  });
2408
3104
  }
2409
- getPaymentMethods() {
2410
- return __awaiter(this, void 0, void 0, function* () {
2411
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
2412
- const collection = this._collectionService.getCollection(PaymentMethod.name);
2413
- if (collection) {
2414
- return resolve(collection);
2415
- }
2416
- const result = yield this.connector.getPaymentMethods();
2417
- if (result.validationResult && result.validationResult.success) {
2418
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObjects);
2419
- this._collectionService.cacheCollection(PaymentMethod.name, collection);
2420
- resolve(collection);
2421
- }
2422
- else {
2423
- reject(result.validationMessagesAsString);
2424
- }
2425
- }));
2426
- });
2427
- }
2428
3105
  changeTransactionLineCommissionCode(uuid, lineUuid, code) {
2429
3106
  return __awaiter(this, void 0, void 0, function* () {
2430
3107
  const request = {
@@ -2437,7 +3114,8 @@ class TransactionConnectorService {
2437
3114
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2438
3115
  }
2439
3116
  else {
2440
- return Promise.reject(response.validationMessagesAsString);
3117
+ this._handleValidationResult(response.validationResult);
3118
+ return null;
2441
3119
  }
2442
3120
  });
2443
3121
  }
@@ -2453,7 +3131,8 @@ class TransactionConnectorService {
2453
3131
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2454
3132
  }
2455
3133
  else {
2456
- return Promise.reject(response.validationMessagesAsString);
3134
+ this._handleValidationResult(response.validationResult);
3135
+ return null;
2457
3136
  }
2458
3137
  });
2459
3138
  }
@@ -2469,7 +3148,8 @@ class TransactionConnectorService {
2469
3148
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2470
3149
  }
2471
3150
  else {
2472
- return Promise.reject(response.validationMessagesAsString);
3151
+ this._handleValidationResult(response.validationResult);
3152
+ return null;
2473
3153
  }
2474
3154
  });
2475
3155
  }
@@ -2485,7 +3165,8 @@ class TransactionConnectorService {
2485
3165
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2486
3166
  }
2487
3167
  else {
2488
- return Promise.reject(response.validationMessagesAsString);
3168
+ this._handleValidationResult(response.validationResult);
3169
+ return null;
2489
3170
  }
2490
3171
  });
2491
3172
  }
@@ -2501,7 +3182,8 @@ class TransactionConnectorService {
2501
3182
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2502
3183
  }
2503
3184
  else {
2504
- return Promise.reject(response.validationMessagesAsString);
3185
+ this._handleValidationResult(response.validationResult);
3186
+ return null;
2505
3187
  }
2506
3188
  });
2507
3189
  }
@@ -2520,7 +3202,8 @@ class TransactionConnectorService {
2520
3202
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2521
3203
  }
2522
3204
  else {
2523
- return Promise.reject(response.validationMessagesAsString);
3205
+ this._handleValidationResult(response.validationResult);
3206
+ return null;
2524
3207
  }
2525
3208
  });
2526
3209
  }
@@ -2536,7 +3219,8 @@ class TransactionConnectorService {
2536
3219
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2537
3220
  }
2538
3221
  else {
2539
- return Promise.reject(response.validationMessagesAsString);
3222
+ this._handleValidationResult(response.validationResult);
3223
+ return null;
2540
3224
  }
2541
3225
  });
2542
3226
  }
@@ -2552,7 +3236,8 @@ class TransactionConnectorService {
2552
3236
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2553
3237
  }
2554
3238
  else {
2555
- return Promise.reject(response.validationMessagesAsString);
3239
+ this._handleValidationResult(response.validationResult);
3240
+ return null;
2556
3241
  }
2557
3242
  });
2558
3243
  }
@@ -2568,7 +3253,8 @@ class TransactionConnectorService {
2568
3253
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2569
3254
  }
2570
3255
  else {
2571
- return Promise.reject(response.validationMessagesAsString);
3256
+ this._handleValidationResult(response.validationResult);
3257
+ return null;
2572
3258
  }
2573
3259
  });
2574
3260
  }
@@ -2584,7 +3270,8 @@ class TransactionConnectorService {
2584
3270
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2585
3271
  }
2586
3272
  else {
2587
- return Promise.reject(response.validationMessagesAsString);
3273
+ this._handleValidationResult(response.validationResult);
3274
+ return null;
2588
3275
  }
2589
3276
  });
2590
3277
  }
@@ -2600,7 +3287,8 @@ class TransactionConnectorService {
2600
3287
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2601
3288
  }
2602
3289
  else {
2603
- return Promise.reject(response.validationMessagesAsString);
3290
+ this._handleValidationResult(response.validationResult);
3291
+ return null;
2604
3292
  }
2605
3293
  });
2606
3294
  }
@@ -2616,7 +3304,8 @@ class TransactionConnectorService {
2616
3304
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2617
3305
  }
2618
3306
  else {
2619
- return Promise.reject(response.validationMessagesAsString);
3307
+ this._handleValidationResult(response.validationResult);
3308
+ return null;
2620
3309
  }
2621
3310
  });
2622
3311
  }
@@ -2631,7 +3320,8 @@ class TransactionConnectorService {
2631
3320
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2632
3321
  }
2633
3322
  else {
2634
- return Promise.reject(response.validationMessagesAsString);
3323
+ this._handleValidationResult(response.validationResult);
3324
+ return null;
2635
3325
  }
2636
3326
  });
2637
3327
  }
@@ -2646,7 +3336,8 @@ class TransactionConnectorService {
2646
3336
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2647
3337
  }
2648
3338
  else {
2649
- return Promise.reject(response.validationMessagesAsString);
3339
+ this._handleValidationResult(response.validationResult);
3340
+ return null;
2650
3341
  }
2651
3342
  });
2652
3343
  }
@@ -2661,7 +3352,8 @@ class TransactionConnectorService {
2661
3352
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2662
3353
  }
2663
3354
  else {
2664
- return Promise.reject(response.validationMessagesAsString);
3355
+ this._handleValidationResult(response.validationResult);
3356
+ return null;
2665
3357
  }
2666
3358
  });
2667
3359
  }
@@ -2676,7 +3368,8 @@ class TransactionConnectorService {
2676
3368
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2677
3369
  }
2678
3370
  else {
2679
- return Promise.reject(response.validationMessagesAsString);
3371
+ this._handleValidationResult(response.validationResult);
3372
+ return null;
2680
3373
  }
2681
3374
  });
2682
3375
  }
@@ -2691,7 +3384,8 @@ class TransactionConnectorService {
2691
3384
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2692
3385
  }
2693
3386
  else {
2694
- return Promise.reject(response.validationMessagesAsString);
3387
+ this._handleValidationResult(response.validationResult);
3388
+ return null;
2695
3389
  }
2696
3390
  });
2697
3391
  }
@@ -2706,7 +3400,8 @@ class TransactionConnectorService {
2706
3400
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2707
3401
  }
2708
3402
  else {
2709
- return Promise.reject(response.validationMessagesAsString);
3403
+ this._handleValidationResult(response.validationResult);
3404
+ return null;
2710
3405
  }
2711
3406
  });
2712
3407
  }
@@ -2721,7 +3416,8 @@ class TransactionConnectorService {
2721
3416
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2722
3417
  }
2723
3418
  else {
2724
- return Promise.reject(response.validationMessagesAsString);
3419
+ this._handleValidationResult(response.validationResult);
3420
+ return null;
2725
3421
  }
2726
3422
  });
2727
3423
  }
@@ -2736,7 +3432,8 @@ class TransactionConnectorService {
2736
3432
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2737
3433
  }
2738
3434
  else {
2739
- return Promise.reject(response.validationMessagesAsString);
3435
+ this._handleValidationResult(response.validationResult);
3436
+ return null;
2740
3437
  }
2741
3438
  });
2742
3439
  }
@@ -2751,7 +3448,8 @@ class TransactionConnectorService {
2751
3448
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2752
3449
  }
2753
3450
  else {
2754
- return Promise.reject(response.validationMessagesAsString);
3451
+ this._handleValidationResult(response.validationResult);
3452
+ return null;
2755
3453
  }
2756
3454
  });
2757
3455
  }
@@ -2767,7 +3465,8 @@ class TransactionConnectorService {
2767
3465
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2768
3466
  }
2769
3467
  else {
2770
- return Promise.reject(response.validationMessagesAsString);
3468
+ this._handleValidationResult(response.validationResult);
3469
+ return null;
2771
3470
  }
2772
3471
  });
2773
3472
  }
@@ -2782,7 +3481,8 @@ class TransactionConnectorService {
2782
3481
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2783
3482
  }
2784
3483
  else {
2785
- return Promise.reject(response.validationMessagesAsString);
3484
+ this._handleValidationResult(response.validationResult);
3485
+ return null;
2786
3486
  }
2787
3487
  });
2788
3488
  }
@@ -2797,7 +3497,8 @@ class TransactionConnectorService {
2797
3497
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2798
3498
  }
2799
3499
  else {
2800
- return Promise.reject(response.validationMessagesAsString);
3500
+ this._handleValidationResult(response.validationResult);
3501
+ return null;
2801
3502
  }
2802
3503
  });
2803
3504
  }
@@ -2812,7 +3513,8 @@ class TransactionConnectorService {
2812
3513
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2813
3514
  }
2814
3515
  else {
2815
- return Promise.reject(response.validationMessagesAsString);
3516
+ this._handleValidationResult(response.validationResult);
3517
+ return null;
2816
3518
  }
2817
3519
  });
2818
3520
  }
@@ -2827,11 +3529,12 @@ class TransactionConnectorService {
2827
3529
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2828
3530
  }
2829
3531
  else {
2830
- return Promise.reject(response.validationMessagesAsString);
3532
+ this._handleValidationResult(response.validationResult);
3533
+ return null;
2831
3534
  }
2832
3535
  });
2833
3536
  }
2834
- updateHeaderTransactionAdmCoordinator(uuid, relation) {
3537
+ changeHeaderTransactionAdmCoordinator(uuid, relation) {
2835
3538
  return __awaiter(this, void 0, void 0, function* () {
2836
3539
  const request = {
2837
3540
  transactionUuid: uuid,
@@ -2842,11 +3545,12 @@ class TransactionConnectorService {
2842
3545
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2843
3546
  }
2844
3547
  else {
2845
- return Promise.reject(response.validationMessagesAsString);
3548
+ this._handleValidationResult(response.validationResult);
3549
+ return null;
2846
3550
  }
2847
3551
  });
2848
3552
  }
2849
- updateHeaderTransactionMarketing(uuid, code) {
3553
+ changeHeaderTransactionMarketing(uuid, code) {
2850
3554
  return __awaiter(this, void 0, void 0, function* () {
2851
3555
  const request = {
2852
3556
  transactionUuid: uuid,
@@ -2857,7 +3561,8 @@ class TransactionConnectorService {
2857
3561
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2858
3562
  }
2859
3563
  else {
2860
- return Promise.reject(response.validationMessagesAsString);
3564
+ this._handleValidationResult(response.validationResult);
3565
+ return null;
2861
3566
  }
2862
3567
  });
2863
3568
  }
@@ -2872,7 +3577,8 @@ class TransactionConnectorService {
2872
3577
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2873
3578
  }
2874
3579
  else {
2875
- return Promise.reject(response.validationMessagesAsString);
3580
+ this._handleValidationResult(response.validationResult);
3581
+ return null;
2876
3582
  }
2877
3583
  });
2878
3584
  }
@@ -2888,7 +3594,8 @@ class TransactionConnectorService {
2888
3594
  return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2889
3595
  }
2890
3596
  else {
2891
- return Promise.reject(response.validationMessagesAsString);
3597
+ this._handleValidationResult(response.validationResult);
3598
+ return null;
2892
3599
  }
2893
3600
  });
2894
3601
  }
@@ -2903,7 +3610,8 @@ class TransactionConnectorService {
2903
3610
  console.log(response);
2904
3611
  }
2905
3612
  else {
2906
- return Promise.reject(response.validationMessagesAsString);
3613
+ this._handleValidationResult(response.validationResult);
3614
+ return null;
2907
3615
  }
2908
3616
  });
2909
3617
  }
@@ -2921,7 +3629,8 @@ class TransactionConnectorService {
2921
3629
  console.log(response);
2922
3630
  }
2923
3631
  else {
2924
- return Promise.reject(response.validationMessagesAsString);
3632
+ this._handleValidationResult(response.validationResult);
3633
+ return null;
2925
3634
  }
2926
3635
  });
2927
3636
  }
@@ -2937,7 +3646,8 @@ class TransactionConnectorService {
2937
3646
  return this._boFactory.makeWithRawBackendData(CreatePaymentLinkResult, response.resultObject);
2938
3647
  }
2939
3648
  else {
2940
- return Promise.reject(response.validationMessagesAsString);
3649
+ this._handleValidationResult(response.validationResult);
3650
+ return null;
2941
3651
  }
2942
3652
  });
2943
3653
  }
@@ -2948,514 +3658,630 @@ class TransactionConnectorService {
2948
3658
  return this._boFactory.makeWithRawBackendData(PaymentLinkStatus, response.resultObject);
2949
3659
  }
2950
3660
  else {
2951
- 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;
2952
3711
  }
2953
3712
  });
2954
3713
  }
2955
- 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) {
2956
3971
  return __awaiter(this, void 0, void 0, function* () {
2957
- const response = yield this.connector.getGoodsReceiptStatus(transId, lineNr);
2958
- if (response && response.validationResult && response.validationResult.success) {
2959
- return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
2960
- }
2961
- else {
2962
- return Promise.reject(response.validationMessagesAsString);
2963
- }
3972
+ return this._adapterService.changeTransactionLineQuantity(uuid, lineUuid, newQuantity);
2964
3973
  });
2965
3974
  }
2966
- getGoodsReceiptStatusWithHistory(transId, lineNr) {
3975
+ resolvePendingLineReason(pendingLineValues) {
2967
3976
  return __awaiter(this, void 0, void 0, function* () {
2968
- const response = yield this.connector.getGoodsReceiptStatusWithHistory(transId, lineNr);
2969
- if (response && response.validationResult && response.validationResult.success) {
2970
- return this._boFactory.makeWithRawBackendData(GoodsReceiptStatusWithHistory, response.resultObject);
2971
- }
2972
- else {
2973
- return Promise.reject(response.validationMessagesAsString);
2974
- }
3977
+ return this._adapterService.resolvePendingLineReason(pendingLineValues);
2975
3978
  });
2976
3979
  }
2977
- receiveGoodsForPurchaseOrder(request) {
3980
+ resolvePendingHeaderReason(pendingHeaderValues) {
2978
3981
  return __awaiter(this, void 0, void 0, function* () {
2979
- const response = yield this.connector.receiveGoodsForPurchaseOrder(request);
2980
- if (response && response.validationResult && response.validationResult.success) {
2981
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2982
- }
2983
- else {
2984
- return Promise.reject(response.validationMessagesAsString);
2985
- }
3982
+ return this._adapterService.resolvePendingHeaderReason(pendingHeaderValues);
2986
3983
  });
2987
3984
  }
2988
- receiveGoodsForPurchaseOrderCorrection(request) {
3985
+ getCommissionCodes(languageCode) {
2989
3986
  return __awaiter(this, void 0, void 0, function* () {
2990
- const response = yield this.connector.receiveGoodsForPurchaseOrderCorrection(request);
2991
- if (response && response.validationResult && response.validationResult.success) {
2992
- return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2993
- }
2994
- else {
2995
- return Promise.reject(response.validationMessagesAsString);
2996
- }
3987
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
3988
+ return this._adapterService.getCommissionCodes(languageCode);
3989
+ }).getValue('CommissionCode', languageCode);
2997
3990
  });
2998
3991
  }
2999
- getPurchasePortalLines(request) {
3992
+ getInOutCollection(languageCode) {
3000
3993
  return __awaiter(this, void 0, void 0, function* () {
3001
- return new Promise((resolve, reject) => {
3002
- return this.connector.getPurchasePortalLines(request).then((result) => {
3003
- if (result.validationResult && result.validationResult.success) {
3004
- if (result.resultObjects) {
3005
- resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(PurchasePortalLine, result.resultObjects));
3006
- }
3007
- }
3008
- else {
3009
- reject(result.validationMessagesAsString);
3010
- }
3011
- });
3012
- });
3994
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
3995
+ return this._adapterService.getInOutCollection(languageCode);
3996
+ }).getValue('InOutCollection', languageCode);
3013
3997
  });
3014
3998
  }
3015
- updatePurchasePortalLines(purchasePortalLine) {
3999
+ getTransactionArticleWarehouses(goodId) {
3016
4000
  return __awaiter(this, void 0, void 0, function* () {
3017
- return new Promise((resolve, reject) => {
3018
- return this.connector.updatePurchasePortalLines(purchasePortalLine).then((result) => __awaiter(this, void 0, void 0, function* () {
3019
- if (result.validationResult && result.validationResult.success) {
3020
- yield this.commit();
3021
- resolve(true);
3022
- }
3023
- else {
3024
- reject(result.validationMessagesAsString);
3025
- }
3026
- }));
3027
- });
4001
+ return this._adapterService.getTransactionArticleWarehouses(goodId);
3028
4002
  });
3029
4003
  }
3030
- }
3031
- TransactionConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
3032
- TransactionConnectorService.decorators = [
3033
- { type: Injectable, args: [{
3034
- providedIn: "root"
3035
- },] }
3036
- ];
3037
- TransactionConnectorService.ctorParameters = () => [
3038
- { type: OptionsService },
3039
- { type: CollectionCacheService }
3040
- ];
3041
-
3042
- var AppPopupButtonType;
3043
- (function (AppPopupButtonType) {
3044
- AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
3045
- AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
3046
- AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
3047
- AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
3048
- AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
3049
- AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
3050
- AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
3051
- })(AppPopupButtonType || (AppPopupButtonType = {}));
3052
-
3053
- class DialogBaseComponent {
3054
- onClose(eventType, output) {
3055
- return;
3056
- }
3057
- }
3058
-
3059
- var AppPopupType;
3060
- (function (AppPopupType) {
3061
- AppPopupType[AppPopupType["Error"] = 0] = "Error";
3062
- AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
3063
- AppPopupType[AppPopupType["Information"] = 2] = "Information";
3064
- AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
3065
- })(AppPopupType || (AppPopupType = {}));
3066
-
3067
- class ConfirmationDialogComponent extends DialogBaseComponent {
3068
- constructor() {
3069
- super(...arguments);
3070
- this.ptype = AppPopupType;
3071
- }
3072
- showClass() {
3073
- return true;
4004
+ setRelationByUser(uuid, username, password) {
4005
+ return __awaiter(this, void 0, void 0, function* () {
4006
+ return this._adapterService.setRelationByUser(uuid, username, password);
4007
+ });
3074
4008
  }
3075
- handleYesClick(event) {
3076
- this.onClose(AppPopupButtonType.Yes);
4009
+ getTextTypes(languageCode) {
4010
+ return __awaiter(this, void 0, void 0, function* () {
4011
+ return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (domainValue, languageCode) => {
4012
+ return this._adapterService.getTextTypes(languageCode);
4013
+ }).getValue('TextTypes', languageCode);
4014
+ });
3077
4015
  }
3078
- handleNoClick(event) {
3079
- this.onClose(AppPopupButtonType.No);
4016
+ getStandardTexts(languageCode) {
4017
+ return __awaiter(this, void 0, void 0, function* () {
4018
+ return this._adapterService.getStandardTexts(languageCode);
4019
+ });
3080
4020
  }
3081
- handleOkClick(event) {
3082
- this.onClose(AppPopupButtonType.Ok);
4021
+ getBranches(branchNr) {
4022
+ return __awaiter(this, void 0, void 0, function* () {
4023
+ return this._selectMultipleParameterizedCacheService.requestCache(BranchLov, (branchNr) => {
4024
+ return this._adapterService.getBranches(branchNr);
4025
+ }).getValue(branchNr);
4026
+ });
3083
4027
  }
3084
- }
3085
- ConfirmationDialogComponent.decorators = [
3086
- { type: Component, args: [{
3087
- selector: "co-confirmation-dialog",
3088
- template: `
3089
- <co-dialog [showCloseIcon]="false" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
3090
- <div class="confirmation-dialog-wrapper">
3091
- <div class="text" [textContent]="text"></div>
3092
- </div>
3093
- </co-dialog>
3094
- <ng-template #headerTemplate>
3095
- <div class="title" [textContent]="title | localize"></div>
3096
- </ng-template>
3097
- <ng-template #footerTemplate>
3098
- <div class="button-wrapper">
3099
- <ng-container *ngIf="type === ptype.Confirmation">
3100
- <co-button [label]="'YES' | localize" (click)="handleYesClick($event)"></co-button>
3101
- <co-button [label]="'NO' | localize" (click)="handleNoClick($event)"></co-button>
3102
- </ng-container>
3103
- <ng-container *ngIf="type === ptype.Information">
3104
- <co-button [label]="'OK' | localize" (click)="handleOkClick($event)"></co-button>
3105
- </ng-container>
3106
- </div>
3107
- </ng-template>
3108
- `,
3109
- encapsulation: ViewEncapsulation.None
3110
- },] }
3111
- ];
3112
- ConfirmationDialogComponent.propDecorators = {
3113
- title: [{ type: Input }],
3114
- text: [{ type: Input }],
3115
- type: [{ type: Input }],
3116
- showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
3117
- };
3118
-
3119
- class CharacteristicAnswerComponent extends DialogBaseComponent {
3120
- constructor(_changeDetector) {
3121
- super();
3122
- this._changeDetector = _changeDetector;
3123
- this.title = "";
3124
- this.value = "";
3125
- this.okClick = new EventEmitter();
3126
- this.viewModels = [];
3127
- this._choices = [];
4028
+ getSalesPersons(date) {
4029
+ return __awaiter(this, void 0, void 0, function* () {
4030
+ return this._selectMultipleParameterizedCacheService.requestCache(SalesPerson, (date) => {
4031
+ return this._adapterService.getSalesPersons(date);
4032
+ }).getValue(date);
4033
+ });
3128
4034
  }
3129
- set choices(value) {
3130
- this._choices = value;
3131
- this._prepareViewModels();
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
+ });
3132
4041
  }
3133
- get choices() {
3134
- return this._choices;
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
+ });
3135
4048
  }
3136
- showClass() {
3137
- return true;
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
+ });
3138
4055
  }
3139
- handleChecked(event, choice) {
3140
- event.preventDefault();
3141
- event.stopImmediatePropagation();
3142
- this.value = choice;
3143
- this.viewModels.forEach(v => {
3144
- v.checked = v.value === choice;
4056
+ getHistoricStateValues() {
4057
+ return __awaiter(this, void 0, void 0, function* () {
4058
+ return this._adapterService.getHistoricStateValues();
3145
4059
  });
3146
- this._changeDetector.markForCheck();
3147
4060
  }
3148
- handleOkClick() {
3149
- this.onClose(AppPopupButtonType.Ok, this.value);
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
+ });
3150
4067
  }
3151
- _prepareViewModels() {
3152
- if (this._choices && this._choices.length > 0) {
3153
- for (let i = 0; i < this._choices.length; i++) {
3154
- this.viewModels.push({ value: this._choices[i].value, checked: i === 0 });
3155
- }
3156
- }
4068
+ changeTransactionLineCommissionCode(uuid, lineUuid, code) {
4069
+ return __awaiter(this, void 0, void 0, function* () {
4070
+ return this._adapterService.changeTransactionLineCommissionCode(uuid, lineUuid, code);
4071
+ });
3157
4072
  }
3158
- }
3159
- CharacteristicAnswerComponent.decorators = [
3160
- { type: Component, args: [{
3161
- selector: "co-characteristic-answer",
3162
- template: `
3163
- <co-dialog [showCloseIcon]="false" [modal]="true" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
3164
- <ng-container *ngIf="choices && choices.length > 0">
3165
- <div class="co-transaction-default-flex-row" *ngFor="let choice of viewModels">
3166
- <co-input-checkbox [model]="choice.checked" [label]="choice.value" (click)="handleChecked($event, choice.value)"></co-input-checkbox>
3167
- </div>
3168
- </ng-container>
3169
- <ng-container *ngIf="!choices || choices.length === 0">
3170
- <co-input-text
3171
- [(model)]="value"
3172
- (enter)="handleOkClick()"
3173
- ></co-input-text>
3174
- </ng-container>
3175
- </co-dialog>
3176
- <ng-template #headerTemplate>
3177
- <div class="title" [textContent]="title"></div>
3178
- </ng-template>
3179
- <ng-template #footerTemplate>
3180
- <div class="dialog-footer-button-wrapper">
3181
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3182
- </div>
3183
- </ng-template>
3184
- `,
3185
- encapsulation: ViewEncapsulation.None
3186
- },] }
3187
- ];
3188
- CharacteristicAnswerComponent.ctorParameters = () => [
3189
- { type: ChangeDetectorRef }
3190
- ];
3191
- CharacteristicAnswerComponent.propDecorators = {
3192
- title: [{ type: Input }],
3193
- choices: [{ type: Input }],
3194
- value: [{ type: Input }],
3195
- okClick: [{ type: Output }],
3196
- showClass: [{ type: HostBinding, args: ['class.co-characteristic-answer',] }]
3197
- };
3198
-
3199
- class TransactionLineBaseComponent {
3200
- constructor() {
3201
- /**
3202
- * Defaults to true
3203
- */
3204
- this.useTransactionLine = true;
3205
- this.valueChange = new EventEmitter();
3206
- this.readonly = false;
3207
- this.viewModels = [];
3208
- this.viewModelsFiltered = [];
3209
- this._transactionLine = new TransactionLineInfo();
3210
- this._transactionInfo = new TransactionInfo();
4073
+ changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber) {
4074
+ return __awaiter(this, void 0, void 0, function* () {
4075
+ return this._adapterService.changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber);
4076
+ });
3211
4077
  }
3212
- set searchText(value) {
3213
- this._searchText = value;
3214
- this._doSearch();
4078
+ changeTransactionLinePrice(uuid, lineUuid, price) {
4079
+ return __awaiter(this, void 0, void 0, function* () {
4080
+ return this._adapterService.changeTransactionLinePrice(uuid, lineUuid, price);
4081
+ });
3215
4082
  }
3216
- get searchText() {
3217
- return this._searchText;
4083
+ changeTransactionLinePriceList(uuid, lineUuid, priceList) {
4084
+ return __awaiter(this, void 0, void 0, function* () {
4085
+ return this._adapterService.changeTransactionLinePriceList(uuid, lineUuid, priceList);
4086
+ });
3218
4087
  }
3219
- set transactionLine(value) {
3220
- if (value) {
3221
- this._transactionLine = value;
3222
- this.readonly = this._transactionLine.hasInvoices;
3223
- this.transactionLineSet();
3224
- }
4088
+ changeTransactionLineVat(uuid, lineUuid, id) {
4089
+ return __awaiter(this, void 0, void 0, function* () {
4090
+ return this._adapterService.changeTransactionLineVat(uuid, lineUuid, id);
4091
+ });
3225
4092
  }
3226
- get transactionLine() {
3227
- return this._transactionLine;
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
+ });
3228
4097
  }
3229
- set transactionInfo(value) {
3230
- if (value) {
3231
- this._transactionInfo = value;
3232
- this.transactionInfoSet();
3233
- }
4098
+ changeTransactionLineDeliveryMethod(uuid, lineUuid, method) {
4099
+ return __awaiter(this, void 0, void 0, function* () {
4100
+ return this._adapterService.changeTransactionLineDeliveryMethod(uuid, lineUuid, method);
4101
+ });
3234
4102
  }
3235
- get transactionInfo() {
3236
- return this._transactionInfo;
4103
+ changeTransactionLineDeliveryDate(uuid, lineUuid, date) {
4104
+ return __awaiter(this, void 0, void 0, function* () {
4105
+ return this._adapterService.changeTransactionLineDeliveryDate(uuid, lineUuid, date);
4106
+ });
3237
4107
  }
3238
- ngOnInit() {
3239
- this.viewModelsFiltered = this.viewModels.slice();
4108
+ changeTransactionLineAssemblyTime(uuid, lineUuid, time) {
4109
+ return __awaiter(this, void 0, void 0, function* () {
4110
+ return this._adapterService.changeTransactionLineAssemblyTime(uuid, lineUuid, time);
4111
+ });
3240
4112
  }
3241
- // overridden by descendents
3242
- transactionLineSet() {
4113
+ changeTransactionLineEditTime(uuid, lineUuid, time) {
4114
+ return __awaiter(this, void 0, void 0, function* () {
4115
+ return this._adapterService.changeTransactionLineEditTime(uuid, lineUuid, time);
4116
+ });
3243
4117
  }
3244
- // overridden by descendents
3245
- transactionInfoSet() {
4118
+ changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber) {
4119
+ return __awaiter(this, void 0, void 0, function* () {
4120
+ return this._adapterService.changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber);
4121
+ });
3246
4122
  }
3247
- _doSearch() {
3248
- if (!this.searchText) {
3249
- this.viewModelsFiltered = this.viewModels.slice();
3250
- }
3251
- else {
3252
- this.viewModelsFiltered = this.viewModels.filter(v => {
3253
- const textFound = v.text ? v.text.indexOf(this.searchText) > -1 : false;
3254
- // const codeFound: boolean = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 :
3255
- // (typeof v.value === 'number' ? v.value + "".indexOf(this.searchText) > -1 : false);
3256
- const codeFound = (v.value && typeof v.value === 'string') ? v.value.indexOf(this.searchText) > -1 : false;
3257
- return codeFound || textFound;
3258
- });
3259
- }
4123
+ changeTransactionLineReference(uuid, lineUuid, reference) {
4124
+ return __awaiter(this, void 0, void 0, function* () {
4125
+ return this._adapterService.changeTransactionLineReference(uuid, lineUuid, reference);
4126
+ });
3260
4127
  }
3261
- }
3262
- TransactionLineBaseComponent.decorators = [
3263
- { type: Directive }
3264
- ];
3265
- TransactionLineBaseComponent.propDecorators = {
3266
- useTransactionLine: [{ type: Input }],
3267
- searchText: [{ type: Input }],
3268
- transactionLine: [{ type: Input }],
3269
- transactionInfo: [{ type: Input }],
3270
- valueChange: [{ type: Output }]
3271
- };
3272
-
3273
- class DialogTransactionLineBaseComponent extends TransactionLineBaseComponent {
3274
- constructor() {
3275
- super(...arguments);
3276
- this.buttonType = AppPopupButtonType;
4128
+ changeTransactionLineCollectionCode(uuid, lineUuid, code) {
4129
+ return __awaiter(this, void 0, void 0, function* () {
4130
+ return this._adapterService.changeTransactionLineCollectionCode(uuid, lineUuid, code);
4131
+ });
3277
4132
  }
3278
- onClose(eventType, output) {
3279
- return;
4133
+ changeHeaderTransactionDefinitive(uuid, definitive) {
4134
+ return __awaiter(this, void 0, void 0, function* () {
4135
+ return this._adapterService.changeHeaderTransactionDefinitive(uuid, definitive);
4136
+ });
3280
4137
  }
3281
- handleValueChange(value) {
3282
- this.value = value;
4138
+ changeHeaderDeliveryAddress(uuid, newNawNr) {
4139
+ return __awaiter(this, void 0, void 0, function* () {
4140
+ return this._adapterService.changeHeaderDeliveryAddress(uuid, newNawNr);
4141
+ });
3283
4142
  }
3284
- handleOkClick() {
3285
- this.onClose(AppPopupButtonType.Ok, this.value);
4143
+ changeHeaderInvoiceAddress(uuid, newNawNr) {
4144
+ return __awaiter(this, void 0, void 0, function* () {
4145
+ return this._adapterService.changeHeaderInvoiceAddress(uuid, newNawNr);
4146
+ });
3286
4147
  }
3287
- handleSearch(text) {
3288
- this.searchText = text;
4148
+ changeHeaderTransactionDeliveryDate(uuid, date) {
4149
+ return __awaiter(this, void 0, void 0, function* () {
4150
+ return this._adapterService.changeHeaderTransactionDeliveryDate(uuid, date);
4151
+ });
3289
4152
  }
3290
- }
3291
- DialogTransactionLineBaseComponent.decorators = [
3292
- { type: Directive }
3293
- ];
3294
-
3295
- class DialogTransactionLineWarehouseComponent extends DialogTransactionLineBaseComponent {
3296
- showClass() {
3297
- return true;
4153
+ changeHeaderTransactionRemark(uuid, remark) {
4154
+ return __awaiter(this, void 0, void 0, function* () {
4155
+ return this._adapterService.changeHeaderTransactionRemark(uuid, remark);
4156
+ });
3298
4157
  }
3299
- }
3300
- DialogTransactionLineWarehouseComponent.decorators = [
3301
- { type: Component, args: [{
3302
- selector: "co-dialog-transaction-line-warehouse",
3303
- template: `
3304
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
3305
- <co-transaction-line-warehouse
3306
- [useTransactionLine]="useTransactionLine"
3307
- [transactionLine]="transactionLine"
3308
- [searchText]="searchText"
3309
- (valueChange)="handleValueChange($event)"
3310
- ></co-transaction-line-warehouse>
3311
- </co-dialog>
3312
- <ng-template #dialogHeader>
3313
- <co-dialog-header-search [title]="'WAREHOUSE'" (search)="handleSearch($event)"></co-dialog-header-search>
3314
- </ng-template>
3315
- <ng-template #footerTemplate>
3316
- <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
3317
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3318
- </div>
3319
- </ng-template>
3320
- `,
3321
- encapsulation: ViewEncapsulation.None
3322
- },] }
3323
- ];
3324
- DialogTransactionLineWarehouseComponent.propDecorators = {
3325
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-warehouse",] }]
3326
- };
3327
-
3328
- class DialogTransactionLineCommissionCodeComponent extends DialogTransactionLineBaseComponent {
3329
- showClass() {
3330
- return true;
4158
+ changeHeaderTransactionReference(uuid, reference) {
4159
+ return __awaiter(this, void 0, void 0, function* () {
4160
+ return this._adapterService.changeHeaderTransactionReference(uuid, reference);
4161
+ });
3331
4162
  }
3332
- }
3333
- DialogTransactionLineCommissionCodeComponent.decorators = [
3334
- { type: Component, args: [{
3335
- selector: "co-dialog-transaction-line-commission-code",
3336
- template: `
3337
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useTransactionLine" (closeClick)="onClose(buttonType.Ok)">
3338
- <co-transaction-line-commission-code
3339
- [useTransactionLine]="useTransactionLine"
3340
- [transactionLine]="transactionLine"
3341
- (valueChange)="handleValueChange($event)"></co-transaction-line-commission-code>
3342
- </co-dialog>
3343
- <ng-template #dialogHeader>
3344
- <div class="dialog-header-title" [textContent]="'COMMISSION_CODE' | localize"></div>
3345
- </ng-template>
3346
- <ng-template #footerTemplate>
3347
- <div class="dialog-footer-button-wrapper" *ngIf="!useTransactionLine">
3348
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
3349
- </div>
3350
- </ng-template>
3351
- `,
3352
- encapsulation: ViewEncapsulation.None
3353
- },] }
3354
- ];
3355
- DialogTransactionLineCommissionCodeComponent.propDecorators = {
3356
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-commission-code",] }]
3357
- };
3358
-
3359
- class DialogService {
3360
- constructor(_compFactoryResolver, appRef, injector) {
3361
- this._compFactoryResolver = _compFactoryResolver;
3362
- this.appRef = appRef;
3363
- this.injector = injector;
4163
+ changeHeaderTransactionRelationReference(uuid, reference) {
4164
+ return __awaiter(this, void 0, void 0, function* () {
4165
+ return this._adapterService.changeHeaderTransactionRelationReference(uuid, reference);
4166
+ });
3364
4167
  }
3365
- showYesNo(title, text) {
4168
+ changeHeaderToDownPayPercentage(uuid, amount) {
3366
4169
  return __awaiter(this, void 0, void 0, function* () {
3367
- const data = {
3368
- title: title,
3369
- text: text,
3370
- type: AppPopupType.Confirmation
3371
- };
3372
- const response = yield this._createComponent(ConfirmationDialogComponent, data);
3373
- return response === AppPopupButtonType.Yes;
4170
+ return this._adapterService.changeHeaderToDownPayPercentage(uuid, amount);
3374
4171
  });
3375
4172
  }
3376
- showError(message) {
3377
- const data = {
3378
- title: 'ERROR',
3379
- text: message,
3380
- type: AppPopupType.Error
3381
- };
3382
- return this._createComponent(ConfirmationDialogComponent, data);
4173
+ changeHeaderToDownPayAmount(uuid, amount) {
4174
+ return __awaiter(this, void 0, void 0, function* () {
4175
+ return this._adapterService.changeHeaderToDownPayAmount(uuid, amount);
4176
+ });
3383
4177
  }
3384
- showInformation(message) {
3385
- const data = {
3386
- title: 'INFORMATION',
3387
- text: message,
3388
- type: AppPopupType.Information
3389
- };
3390
- return this._createComponent(ConfirmationDialogComponent, data);
4178
+ changeHeaderTransactionPreferredDeliveryDate(uuid, date) {
4179
+ return __awaiter(this, void 0, void 0, function* () {
4180
+ return this._adapterService.changeHeaderTransactionPreferredDeliveryDate(uuid, date);
4181
+ });
4182
+ }
4183
+ changeHeaderTransactionDeliveryMethod(uuid, method) {
4184
+ return __awaiter(this, void 0, void 0, function* () {
4185
+ return this._adapterService.changeHeaderTransactionDeliveryMethod(uuid, method);
4186
+ });
4187
+ }
4188
+ changeHeaderTransactionDeliveryOptions(uuid, options) {
4189
+ return __awaiter(this, void 0, void 0, function* () {
4190
+ return this._adapterService.changeHeaderTransactionDeliveryOptions(uuid, options);
4191
+ });
4192
+ }
4193
+ changeHeaderTransactionPartialDelivery(uuid, allowPartial) {
4194
+ return __awaiter(this, void 0, void 0, function* () {
4195
+ return this._adapterService.changeHeaderTransactionPartialDelivery(uuid, allowPartial);
4196
+ });
4197
+ }
4198
+ changeHeaderTransactionBranch(uuid, branch) {
4199
+ return __awaiter(this, void 0, void 0, function* () {
4200
+ return this._adapterService.changeHeaderTransactionBranch(uuid, branch);
4201
+ });
4202
+ }
4203
+ changeHeaderTransactionAdmCoordinator(uuid, relation) {
4204
+ return __awaiter(this, void 0, void 0, function* () {
4205
+ return this._adapterService.changeHeaderTransactionAdmCoordinator(uuid, relation);
4206
+ });
4207
+ }
4208
+ changeHeaderTransactionMarketing(uuid, code) {
4209
+ return __awaiter(this, void 0, void 0, function* () {
4210
+ return this._adapterService.changeHeaderTransactionMarketing(uuid, code);
4211
+ });
4212
+ }
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
+ });
3391
4232
  }
3392
- showTransactionLineComponent(comp, transLine) {
3393
- const data = {
3394
- transactionLine: transLine
3395
- };
3396
- return this._createComponent(comp, data);
4233
+ getPaymentLinkStatus(paymentLinkUUID) {
4234
+ return __awaiter(this, void 0, void 0, function* () {
4235
+ return this._adapterService.getPaymentLinkStatus(paymentLinkUUID);
4236
+ });
3397
4237
  }
3398
- showCharacteristics(title, choices, value) {
3399
- const data = {
3400
- title: title,
3401
- choices: choices,
3402
- value: value
3403
- };
3404
- return this._createComponent(CharacteristicAnswerComponent, data);
4238
+ getGoodsReceiptStatus(transId, lineNr) {
4239
+ return __awaiter(this, void 0, void 0, function* () {
4240
+ return this._adapterService.getGoodsReceiptStatus(transId, lineNr);
4241
+ });
3405
4242
  }
3406
- showWarehouse() {
3407
- const data = {
3408
- useTransactionLine: false
3409
- };
3410
- return this._createComponent(DialogTransactionLineWarehouseComponent, data);
4243
+ getGoodsReceiptStatusWithHistory(transId, lineNr) {
4244
+ return __awaiter(this, void 0, void 0, function* () {
4245
+ return this._adapterService.getGoodsReceiptStatusWithHistory(transId, lineNr);
4246
+ });
3411
4247
  }
3412
- showCommissionCode() {
3413
- const data = {
3414
- useTransactionLine: false
3415
- };
3416
- return this._createComponent(DialogTransactionLineCommissionCodeComponent, data);
4248
+ receiveGoodsForPurchaseOrder(request) {
4249
+ return __awaiter(this, void 0, void 0, function* () {
4250
+ return this._adapterService.receiveGoodsForPurchaseOrder(request);
4251
+ });
3417
4252
  }
3418
- _createComponent(componentClass, data) {
3419
- return new Promise((resolve) => {
3420
- this._componentRef = this._compFactoryResolver
3421
- .resolveComponentFactory(componentClass)
3422
- .create(this.injector);
3423
- for (let key in data) {
3424
- if (data.hasOwnProperty(key)) {
3425
- this._componentRef.instance[key] = data[key];
3426
- }
3427
- }
3428
- this.appRef.attachView(this._componentRef.hostView);
3429
- const domElem = this._componentRef.hostView
3430
- .rootNodes[0];
3431
- document.body.appendChild(domElem);
3432
- this._componentRef.onDestroy(() => {
3433
- this.appRef.detachView(this._componentRef.hostView);
3434
- });
3435
- this._componentRef.instance.onClose = (button, output) => {
3436
- this.appRef.detachView(this._componentRef.hostView);
3437
- this._componentRef = undefined;
3438
- resolve(output ? output : button);
3439
- };
4253
+ receiveGoodsForPurchaseOrderCorrection(request) {
4254
+ return __awaiter(this, void 0, void 0, function* () {
4255
+ return this._adapterService.receiveGoodsForPurchaseOrderCorrection(request);
4256
+ });
4257
+ }
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);
3440
4266
  });
3441
4267
  }
3442
4268
  }
3443
- 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" });
3444
- 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 = [
3445
4271
  { type: Injectable, args: [{
3446
4272
  providedIn: "root"
3447
4273
  },] }
3448
4274
  ];
3449
- DialogService.ctorParameters = () => [
3450
- { type: ComponentFactoryResolver },
3451
- { type: ApplicationRef },
3452
- { type: Injector }
4275
+ TransactionConnectorService.ctorParameters = () => [
4276
+ { type: TransactionConnectorAdapterService },
4277
+ { type: SelectSingleCacheService },
4278
+ { type: SelectMultipleCacheService },
4279
+ { type: SelectMultipleParameterizedCacheService }
3453
4280
  ];
3454
4281
 
3455
4282
  class ArticleConnectorService {
3456
- constructor(_optionsService, _collectionService) {
4283
+ constructor(_optionsService) {
3457
4284
  this._optionsService = _optionsService;
3458
- this._collectionService = _collectionService;
3459
4285
  this._boFactory = new BusinessObjectFactory();
3460
4286
  this._optionsService.optionsInitialized.subscribe((initialized) => {
3461
4287
  if (initialized) {
@@ -3471,22 +4297,21 @@ class ArticleConnectorService {
3471
4297
  getWarehouseLocations(warehouseNr) {
3472
4298
  return __awaiter(this, void 0, void 0, function* () {
3473
4299
  return new Promise((resolve, reject) => {
3474
- const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
3475
- if (collection) {
3476
- resolve(collection);
3477
- }
3478
- else {
3479
- return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
3480
- if (response && response.validationResult && response.validationResult.success) {
3481
- const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
3482
- this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
3483
- resolve(collection);
3484
- }
3485
- else {
3486
- reject(response.validationMessagesAsString);
3487
- }
3488
- });
3489
- }
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
+ // }
3490
4315
  });
3491
4316
  });
3492
4317
  }
@@ -3523,14 +4348,14 @@ class ArticleConnectorService {
3523
4348
  getTurnoverGroups(category) {
3524
4349
  return __awaiter(this, void 0, void 0, function* () {
3525
4350
  return new Promise((resolve, reject) => {
3526
- const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
3527
- if (collection) {
3528
- return resolve(collection);
3529
- }
4351
+ // const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
4352
+ // if (collection) {
4353
+ // return resolve(collection);
4354
+ // }
3530
4355
  return this.connector.getTurnoverGroups(category).then((result) => {
3531
4356
  if (result.validationResult && result.validationResult.success) {
3532
4357
  const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(TurnoverGroupImage, result.resultObjects);
3533
- this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
4358
+ // this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
3534
4359
  resolve(collection);
3535
4360
  }
3536
4361
  else {
@@ -3541,15 +4366,14 @@ class ArticleConnectorService {
3541
4366
  });
3542
4367
  }
3543
4368
  }
3544
- 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" });
3545
4370
  ArticleConnectorService.decorators = [
3546
4371
  { type: Injectable, args: [{
3547
4372
  providedIn: "root"
3548
4373
  },] }
3549
4374
  ];
3550
4375
  ArticleConnectorService.ctorParameters = () => [
3551
- { type: OptionsService },
3552
- { type: CollectionCacheService }
4376
+ { type: OptionsService }
3553
4377
  ];
3554
4378
 
3555
4379
  class PendingReasonService {
@@ -3558,6 +4382,7 @@ class PendingReasonService {
3558
4382
  this.options = options;
3559
4383
  this.connector = connector;
3560
4384
  this.articleConnector = articleConnector;
4385
+ this.logout = new Subject();
3561
4386
  this.transactionUpdated = new BehaviorSubject(undefined);
3562
4387
  this.applicationUser = false;
3563
4388
  this.invoiceAddressSameAsDelivery = true;
@@ -4029,7 +4854,7 @@ class TransactionService extends PendingReasonService {
4029
4854
  }
4030
4855
  updateHeaderTransactionAdmCoordinator(uuid, relation) {
4031
4856
  return __awaiter(this, void 0, void 0, function* () {
4032
- const response = yield this.connector.updateHeaderTransactionAdmCoordinator(uuid, relation)
4857
+ const response = yield this.connector.changeHeaderTransactionAdmCoordinator(uuid, relation)
4033
4858
  .catch((error) => {
4034
4859
  // todo: do something with the error
4035
4860
  return false;
@@ -4044,7 +4869,7 @@ class TransactionService extends PendingReasonService {
4044
4869
  }
4045
4870
  updateHeaderTransactionMarketing(uuid, code) {
4046
4871
  return __awaiter(this, void 0, void 0, function* () {
4047
- const response = yield this.connector.updateHeaderTransactionMarketing(uuid, code)
4872
+ const response = yield this.connector.changeHeaderTransactionMarketing(uuid, code)
4048
4873
  .catch((error) => {
4049
4874
  // todo: do something with the error
4050
4875
  return false;
@@ -4578,7 +5403,11 @@ class TransactionService extends PendingReasonService {
4578
5403
  }
4579
5404
  updatePurchasePortalLines(purchasePortalLine) {
4580
5405
  return __awaiter(this, void 0, void 0, function* () {
4581
- 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;
4582
5411
  });
4583
5412
  }
4584
5413
  // private _cleanRelationBeforeSave(): void {
@@ -4742,16 +5571,18 @@ var Icon;
4742
5571
  Icon["BarcodeSolid"] = "barcode_solid";
4743
5572
  Icon["BarsFilter"] = "bars_filter";
4744
5573
  Icon["CalendarDay"] = "calendar_day";
5574
+ Icon["CalendarDayRegular"] = "calendar_day_regular";
4745
5575
  Icon["Cancel"] = "cancel";
4746
5576
  Icon["CartCheck"] = "cart_check";
4747
5577
  Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
4748
5578
  Icon["CartShoppingSolid"] = "cart_shopping_solid";
4749
5579
  Icon["CashRegister"] = "cash_register";
4750
5580
  Icon["CreditCardSolid"] = "credit_card_solid";
4751
- Icon["DeliveryStatusUncheck"] = "delivery_status_uncheck";
4752
5581
  Icon["DeliveryTruck"] = "delivery_truck";
4753
5582
  Icon["EditPencil"] = "edit_pencil";
5583
+ Icon["GripDotsVerticalSolid"] = "grip_dots_vertical_solid";
4754
5584
  Icon["IdealLogo"] = "ideal_logo";
5585
+ Icon["ListRegular"] = "list_regular";
4755
5586
  Icon["ListView"] = "list_view";
4756
5587
  Icon["LocationDotSolid"] = "location_dot_solid";
4757
5588
  Icon["Lock"] = "lock";
@@ -4781,6 +5612,8 @@ var Icon;
4781
5612
  Icon["Truck"] = "truck";
4782
5613
  Icon["TruckArrowRightSolid"] = "truck_arrow_right_solid";
4783
5614
  Icon["TruckContainerSolid"] = "truck_container_solid";
5615
+ Icon["TruckFastSolid"] = "truck_fast_solid";
5616
+ Icon["TruckMovingSolid"] = "truck_moving_solid";
4784
5617
  Icon["Txt"] = "txt";
4785
5618
  Icon["Unlock"] = "unlock";
4786
5619
  Icon["Warehouse"] = "warehouse";
@@ -5098,16 +5931,18 @@ const IconSvg = {
5098
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>",
5099
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>",
5100
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>",
5101
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>",
5102
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>",
5103
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>",
5104
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>",
5105
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>",
5106
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>",
5107
- "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>",
5108
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>",
5109
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>",
5110
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>",
5111
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>",
5112
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>",
5113
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>",
@@ -5137,6 +5972,8 @@ const IconSvg = {
5137
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>",
5138
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>",
5139
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>",
5140
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>",
5141
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>",
5142
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>"
@@ -5401,7 +6238,7 @@ CheckoutOverviewDeliveryEditComponent.decorators = [
5401
6238
  </div>
5402
6239
  <div class="checkout-data-column">
5403
6240
  <div class="checkout-data-row">
5404
- <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>
5405
6242
  <co-transaction-header-administrative-relation [transactionInfo]="transaction.transactionInfo"></co-transaction-header-administrative-relation>
5406
6243
  </div>
5407
6244
  <div class="checkout-data-row">
@@ -7256,6 +8093,39 @@ DialogTransactionLineDeliveryMethodComponent.propDecorators = {
7256
8093
  showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
7257
8094
  };
7258
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
+
7259
8129
  class TransactionLineComponent {
7260
8130
  constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
7261
8131
  this.service = service;
@@ -7282,6 +8152,7 @@ class TransactionLineComponent {
7282
8152
  this._loadLineCommissionCode();
7283
8153
  this._loadLineWarehouse();
7284
8154
  this._loadLineDeliveryMethod();
8155
+ this._loadLineVat();
7285
8156
  }
7286
8157
  get line() {
7287
8158
  return this._line;
@@ -7331,6 +8202,9 @@ class TransactionLineComponent {
7331
8202
  openDeliveryMethodDialog() {
7332
8203
  this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
7333
8204
  }
8205
+ openVatDialog() {
8206
+ this._dialogService.showTransactionLineComponent(DialogTransactionLineVatComponent, this.line);
8207
+ }
7334
8208
  _loadLineImage() {
7335
8209
  return __awaiter(this, void 0, void 0, function* () {
7336
8210
  if (this.line && this.line.isArticle) {
@@ -7370,6 +8244,16 @@ class TransactionLineComponent {
7370
8244
  }
7371
8245
  });
7372
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
+ }
7373
8257
  }
7374
8258
  TransactionLineComponent.decorators = [
7375
8259
  { type: Component, args: [{
@@ -7403,27 +8287,30 @@ TransactionLineComponent.decorators = [
7403
8287
  </div>
7404
8288
  <div *ngIf=!preview class="transaction-line-stock">
7405
8289
  <div class="transaction-line-stock-wrapper">
7406
- <span [textContent]="'STOCK' | localize" class="small-font"></span>
7407
8290
  <stock-status-indicator [model]="stock"></stock-status-indicator>
7408
8291
  </div>
7409
- <div class="transaction-line-stock-wrapper">
7410
- <span [textContent]="'DELIVERY_DATE' | localize" class="small-font"></span>
7411
- <span [textContent]="line.deliveryDate | date:'dd MMM YYYY'"></span>
7412
- </div>
7413
8292
  </div>
7414
8293
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
7415
8294
  <div class="transaction-line-extended-row-wrapper" (click)="openCommissionCodeDialog()">
7416
- <div [textContent]="line.commissionDescription | append:' | ' | append:line.commissionCode"></div>
8295
+ <span class="co-transaction-overflow-ellipsis" [textContent]="line.commissionCode | append:' | ' | append:line.commissionDescription"></span>
7417
8296
  </div>
7418
8297
  <div class="transaction-line-extended-row-wrapper" (click)="openWarehouseDialog()">
7419
8298
  <co-icon class="header-warehouse-icon" [iconData]="iconCacheService.getIcon(icons.Warehouse)"></co-icon>
7420
- <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>
7421
8304
  </div>
7422
- <div class="transaction-line-extended-row-wrapper" (click)="openDeliveryMethodDialog()">
7423
- <co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)"></co-icon>
7424
- <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>
7425
8309
  </div>
7426
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>
7427
8314
  <div class="transaction-line-totals">
7428
8315
  <co-transaction-line-price class="transaction-line-totals-price price"
7429
8316
  [transactionLine]="line"
@@ -7943,7 +8830,8 @@ TransactionLineModule.decorators = [
7943
8830
  IconModule,
7944
8831
  EditableLabelModule,
7945
8832
  TransactionLinePriceModule,
7946
- TransactionLineDescriptionModule
8833
+ TransactionLineDescriptionModule,
8834
+ DragDropModule
7947
8835
  ],
7948
8836
  declarations: [
7949
8837
  TransactionLineComponent
@@ -8040,6 +8928,9 @@ TransactionLinesComponent.decorators = [
8040
8928
  (cdkDropListDropped)="handleDrop($event)"
8041
8929
  >
8042
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>
8043
8934
  <co-transaction-line
8044
8935
  [preview]="preview"
8045
8936
  [line]="line"
@@ -8089,7 +8980,8 @@ TransactionLinesModule.decorators = [
8089
8980
  DragDropModule,
8090
8981
  ButtonModule,
8091
8982
  TransactionArticleTextModule,
8092
- PipeModule
8983
+ PipeModule,
8984
+ IconModule
8093
8985
  ],
8094
8986
  declarations: [
8095
8987
  TransactionLinesComponent
@@ -8416,13 +9308,14 @@ DeliveryTypeTileModule.decorators = [
8416
9308
  ];
8417
9309
 
8418
9310
  class PaymentService {
8419
- constructor(_connector, _transactionService) {
8420
- this._connector = _connector;
9311
+ constructor(_adapterService, _selectMultipleCacheService, _transactionService) {
9312
+ this._adapterService = _adapterService;
9313
+ this._selectMultipleCacheService = _selectMultipleCacheService;
8421
9314
  this._transactionService = _transactionService;
8422
9315
  }
8423
9316
  updateHeaderTransactionToDownPay(uuid, downPayment) {
8424
9317
  return __awaiter(this, void 0, void 0, function* () {
8425
- const response = yield this._connector.changeHeaderTransactionToDownPay(uuid, downPayment)
9318
+ const response = yield this._adapterService.changeHeaderTransactionToDownPay(uuid, downPayment)
8426
9319
  .catch((error) => {
8427
9320
  // todo: do something with the error
8428
9321
  return false;
@@ -8437,7 +9330,7 @@ class PaymentService {
8437
9330
  }
8438
9331
  registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId) {
8439
9332
  return __awaiter(this, void 0, void 0, function* () {
8440
- const response = yield this._connector.registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId);
9333
+ const response = yield this._adapterService.registerSalesOrderPayment(uuid, amount, currencyId, paymentMethod, cashRegisterGroupId);
8441
9334
  // .catch((error) => {
8442
9335
  // // todo: do something with the error
8443
9336
  // // return;
@@ -8450,7 +9343,7 @@ class PaymentService {
8450
9343
  }
8451
9344
  createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode) {
8452
9345
  return __awaiter(this, void 0, void 0, function* () {
8453
- const response = yield this._connector.createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode);
9346
+ const response = yield this._adapterService.createIonePaymentLinkAndQRCode(uuid, amount, paymentMethodCode);
8454
9347
  // .catch((error) => {
8455
9348
  // // todo: do something with the error
8456
9349
  // // return;
@@ -8460,7 +9353,7 @@ class PaymentService {
8460
9353
  }
8461
9354
  getPaymentLinkStatus(paymentLinkUUID) {
8462
9355
  return __awaiter(this, void 0, void 0, function* () {
8463
- const response = yield this._connector.getPaymentLinkStatus(paymentLinkUUID);
9356
+ const response = yield this._adapterService.getPaymentLinkStatus(paymentLinkUUID);
8464
9357
  // .catch((error) => {
8465
9358
  // // todo: do something with the error
8466
9359
  // // return;
@@ -8470,18 +9363,21 @@ class PaymentService {
8470
9363
  }
8471
9364
  getPaymentMethods() {
8472
9365
  return __awaiter(this, void 0, void 0, function* () {
8473
- return this._connector.getPaymentMethods();
9366
+ return this._selectMultipleCacheService.requestCache(PaymentMethod, () => {
9367
+ return this._adapterService.getPaymentMethods();
9368
+ }).getValue();
8474
9369
  });
8475
9370
  }
8476
9371
  }
8477
- 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" });
8478
9373
  PaymentService.decorators = [
8479
9374
  { type: Injectable, args: [{
8480
9375
  providedIn: "root"
8481
9376
  },] }
8482
9377
  ];
8483
9378
  PaymentService.ctorParameters = () => [
8484
- { type: TransactionConnectorService },
9379
+ { type: TransactionConnectorAdapterService },
9380
+ { type: SelectMultipleCacheService },
8485
9381
  { type: TransactionService }
8486
9382
  ];
8487
9383
 
@@ -8594,7 +9490,7 @@ class PaymentComponent {
8594
9490
  if (paymentMethod && !paymentMethod.externalSourceId) {
8595
9491
  this.cashRegisters.length = 0;
8596
9492
  paymentMethod.posGroups.forEach(crg => {
8597
- this._getCashRegisters(crg.branchNo, crg.id);
9493
+ this._getCashRegisters(undefined, crg.id);
8598
9494
  });
8599
9495
  this.showCashRegisters = true;
8600
9496
  }
@@ -9022,7 +9918,7 @@ RelationGeneralComponent.decorators = [
9022
9918
  ></co-input-radio-button>
9023
9919
  </div>
9024
9920
  <div class="default-data-row">
9025
- <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>
9026
9922
  </div>
9027
9923
  </div>
9028
9924
  <div *ngIf="relation?.type === relType.Company" class="default-data-row collapseable" @showHideCompanyRelationFields>
@@ -9339,7 +10235,7 @@ RelationContactDetailsComponent.decorators = [
9339
10235
  <div class="default-data-row">
9340
10236
  <co-input-text [(model)]="emailAddress.value" [placeholder]="'EMAIL_ADDRESS' | localize " [type]="'email'" [required]="true"></co-input-text>
9341
10237
  </div>
9342
- <div class="checkout-data-row">
10238
+ <div class="default-data-row">
9343
10239
  <co-input-checkbox [label]="'INVITE_TO_ACCOUNT' | localize" [(model)]="inviteToAccount"></co-input-checkbox>
9344
10240
  </div>
9345
10241
  `,
@@ -9651,11 +10547,13 @@ TransactionHeaderDeliveryComponent.decorators = [
9651
10547
  </co-transaction-header-block>
9652
10548
  <ng-template #headerBlock>
9653
10549
  <div class="header-delivery-method" (click)="showDeliveryMethodDialog = true">
9654
- <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>
9655
10551
  <span [textContent]="deliveryMethod?.description"></span>
9656
10552
  </div>
9657
- <co-icon class="planning-request-button" [class.co-transaction-check]="transactionInfo.deliveryDateDefinitive"
9658
- [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>
9659
10557
  </ng-template>
9660
10558
  <ng-template #firstBlock>
9661
10559
  <div class="header-delivery-deliverydate-label co-transaction-label" [textContent]="'DELIVERY_DATE' | localize"></div>
@@ -9681,7 +10579,17 @@ TransactionHeaderDeliveryComponent.decorators = [
9681
10579
  <div class="header-delivery-partial-delivery-label co-transaction-label" [textContent]="'PART_DELIVERY' | localize"></div>
9682
10580
  <co-input-checkbox class="header-delivery-partial-delivery" [model]="transactionInfo.allowPartialDelivery"></co-input-checkbox>
9683
10581
  </ng-template>
9684
- <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>
9685
10593
  <co-transaction-header-delivery-options
9686
10594
  [transactionInfo]="transactionInfo"
9687
10595
  [deliveryMethod]="deliveryMethod"
@@ -9769,11 +10677,22 @@ TransactionHeaderBlockModule.decorators = [
9769
10677
  },] }
9770
10678
  ];
9771
10679
 
9772
- class TransactionHeaderFieldsBaseComponent {
10680
+ class TransactionHeaderBaseComponent {
9773
10681
  constructor() {
10682
+ this.useTransaction = true;
10683
+ this.valueChange = new EventEmitter();
9774
10684
  this.readonly = false;
10685
+ this.viewModels = [];
10686
+ this.viewModelsFiltered = [];
9775
10687
  this._transactionInfo = new TransactionInfo();
9776
10688
  }
10689
+ set searchText(value) {
10690
+ this._searchText = value;
10691
+ this._doSearch();
10692
+ }
10693
+ get searchText() {
10694
+ return this._searchText;
10695
+ }
9777
10696
  set transactionInfo(value) {
9778
10697
  if (value) {
9779
10698
  this._transactionInfo = value;
@@ -9783,18 +10702,38 @@ class TransactionHeaderFieldsBaseComponent {
9783
10702
  get transactionInfo() {
9784
10703
  return this._transactionInfo;
9785
10704
  }
10705
+ ngOnInit() {
10706
+ this.viewModelsFiltered = this.viewModels.slice();
10707
+ }
9786
10708
  // overridden by descendents
9787
10709
  transactionInfoSet() {
9788
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
+ }
9789
10725
  }
9790
- TransactionHeaderFieldsBaseComponent.decorators = [
10726
+ TransactionHeaderBaseComponent.decorators = [
9791
10727
  { type: Directive }
9792
10728
  ];
9793
- TransactionHeaderFieldsBaseComponent.propDecorators = {
9794
- transactionInfo: [{ type: Input }]
10729
+ TransactionHeaderBaseComponent.propDecorators = {
10730
+ useTransaction: [{ type: Input }],
10731
+ searchText: [{ type: Input }],
10732
+ transactionInfo: [{ type: Input }],
10733
+ valueChange: [{ type: Output }]
9795
10734
  };
9796
10735
 
9797
- class TransactionHeaderDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
10736
+ class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseComponent {
9798
10737
  constructor(_transactionService) {
9799
10738
  super();
9800
10739
  this._transactionService = _transactionService;
@@ -9887,7 +10826,7 @@ TransactionHeaderDeliveryDateModule.decorators = [
9887
10826
  },] }
9888
10827
  ];
9889
10828
 
9890
- class TransactionHeaderDeliveryOptionsComponent extends TransactionHeaderFieldsBaseComponent {
10829
+ class TransactionHeaderDeliveryOptionsComponent extends TransactionHeaderBaseComponent {
9891
10830
  constructor(_transactionService) {
9892
10831
  super();
9893
10832
  this._transactionService = _transactionService;
@@ -9970,7 +10909,7 @@ TransactionHeaderDeliveryOptionsModule.decorators = [
9970
10909
  },] }
9971
10910
  ];
9972
10911
 
9973
- class TransactionHeaderRemarksComponent extends TransactionHeaderFieldsBaseComponent {
10912
+ class TransactionHeaderRemarksComponent extends TransactionHeaderBaseComponent {
9974
10913
  constructor(_transactionService) {
9975
10914
  super();
9976
10915
  this._transactionService = _transactionService;
@@ -10063,7 +11002,7 @@ TransactionHeaderRemarksModule.decorators = [
10063
11002
  },] }
10064
11003
  ];
10065
11004
 
10066
- class TransactionHeaderReferenceComponent extends TransactionHeaderFieldsBaseComponent {
11005
+ class TransactionHeaderReferenceComponent extends TransactionHeaderBaseComponent {
10067
11006
  constructor(_transactionService) {
10068
11007
  super();
10069
11008
  this._transactionService = _transactionService;
@@ -10156,7 +11095,7 @@ TransactionHeaderReferenceModule.decorators = [
10156
11095
  },] }
10157
11096
  ];
10158
11097
 
10159
- class TransactionHeaderRelationReferenceComponent extends TransactionHeaderFieldsBaseComponent {
11098
+ class TransactionHeaderRelationReferenceComponent extends TransactionHeaderBaseComponent {
10160
11099
  constructor(_transactionService) {
10161
11100
  super();
10162
11101
  this._transactionService = _transactionService;
@@ -10249,7 +11188,7 @@ TransactionHeaderRelationReferenceModule.decorators = [
10249
11188
  },] }
10250
11189
  ];
10251
11190
 
10252
- class TransactionHeaderDeliveryMethodComponent extends TransactionHeaderFieldsBaseComponent {
11191
+ class TransactionHeaderDeliveryMethodComponent extends TransactionHeaderBaseComponent {
10253
11192
  constructor(_transactionService) {
10254
11193
  super();
10255
11194
  this._transactionService = _transactionService;
@@ -10333,7 +11272,7 @@ TransactionHeaderDeliveryMethodModule.decorators = [
10333
11272
  },] }
10334
11273
  ];
10335
11274
 
10336
- class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
11275
+ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderBaseComponent {
10337
11276
  constructor(_transactionService) {
10338
11277
  super();
10339
11278
  this._transactionService = _transactionService;
@@ -10456,7 +11395,7 @@ TransactionHeaderDeliveryModule.decorators = [
10456
11395
  },] }
10457
11396
  ];
10458
11397
 
10459
- class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderFieldsBaseComponent {
11398
+ class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderBaseComponent {
10460
11399
  constructor(_transactionService) {
10461
11400
  super();
10462
11401
  this._transactionService = _transactionService;
@@ -10514,7 +11453,7 @@ TransactionHeaderPartialDeliveryModule.decorators = [
10514
11453
  },] }
10515
11454
  ];
10516
11455
 
10517
- class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderFieldsBaseComponent {
11456
+ class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderBaseComponent {
10518
11457
  constructor(_transactionService) {
10519
11458
  super();
10520
11459
  this._transactionService = _transactionService;
@@ -10608,7 +11547,7 @@ TransactionHeaderDownpaymentPercentageModule.decorators = [
10608
11547
  },] }
10609
11548
  ];
10610
11549
 
10611
- class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderFieldsBaseComponent {
11550
+ class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderBaseComponent {
10612
11551
  constructor(_transactionService) {
10613
11552
  super();
10614
11553
  this._transactionService = _transactionService;
@@ -10702,7 +11641,7 @@ TransactionHeaderDownpaymentAmountModule.decorators = [
10702
11641
  },] }
10703
11642
  ];
10704
11643
 
10705
- class TransactionHeaderDefinitiveComponent extends TransactionHeaderFieldsBaseComponent {
11644
+ class TransactionHeaderDefinitiveComponent extends TransactionHeaderBaseComponent {
10706
11645
  constructor(_transactionService) {
10707
11646
  super();
10708
11647
  this._transactionService = _transactionService;
@@ -10760,22 +11699,27 @@ TransactionHeaderDefinitiveModule.decorators = [
10760
11699
  },] }
10761
11700
  ];
10762
11701
 
10763
- class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseComponent {
11702
+ class TransactionHeaderBranchComponent extends TransactionHeaderBaseComponent {
10764
11703
  constructor(_transactionService) {
10765
11704
  super();
10766
11705
  this._transactionService = _transactionService;
10767
- this.showExtended = false;
11706
+ this.simple = false;
10768
11707
  this.collection = [];
10769
11708
  this.fields = { text: "description", value: "relationId" };
10770
- this.viewModels = [];
10771
11709
  }
10772
11710
  ngOnInit() {
10773
11711
  this.viewModels.length = 0;
10774
11712
  this._transactionService.getBranches().then((branches) => {
10775
11713
  this.collection = branches;
10776
- this.collection.forEach(c => {
10777
- 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
+ });
10778
11721
  });
11722
+ super.ngOnInit();
10779
11723
  });
10780
11724
  }
10781
11725
  commitTransactionBranch(branch) {
@@ -10796,14 +11740,21 @@ class TransactionHeaderBranchComponent extends TransactionHeaderFieldsBaseCompon
10796
11740
  return true;
10797
11741
  });
10798
11742
  }
10799
- handleChecked(row) {
11743
+ handleChecked(event, row) {
11744
+ event.preventDefault();
11745
+ event.stopPropagation();
10800
11746
  row.checked = true;
10801
11747
  for (let i = 0; i < this.viewModels.length; i++) {
10802
11748
  if (this.viewModels[i].value !== row.value) {
10803
11749
  this.viewModels[i].checked = false;
10804
11750
  }
10805
11751
  }
10806
- 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
+ }
10807
11758
  }
10808
11759
  transactionInfoSet() {
10809
11760
  this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
@@ -10813,7 +11764,7 @@ TransactionHeaderBranchComponent.decorators = [
10813
11764
  { type: Component, args: [{
10814
11765
  selector: "co-transaction-header-branch",
10815
11766
  template: `
10816
- <ng-container *ngIf="!showExtended">
11767
+ <ng-container *ngIf="simple">
10817
11768
  <co-drop-down-list
10818
11769
  [readonly]="readonly"
10819
11770
  [placeholder]="'BRANCH' | localize"
@@ -10825,11 +11776,13 @@ TransactionHeaderBranchComponent.decorators = [
10825
11776
  (modelChange)="commitTransactionBranch($event)">
10826
11777
  </co-drop-down-list>
10827
11778
  </ng-container>
10828
- <ng-container *ngIf="showExtended">
10829
- <div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
10830
- <co-input-checkbox [model]="row.checked" (modelChange)="handleChecked(row)"></co-input-checkbox>
10831
- <span class="extended-row-code" [textContent]="row.value"></span>
10832
- <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>
10833
11786
  </div>
10834
11787
  </ng-container>
10835
11788
  `,
@@ -10840,7 +11793,7 @@ TransactionHeaderBranchComponent.ctorParameters = () => [
10840
11793
  { type: TransactionService }
10841
11794
  ];
10842
11795
  TransactionHeaderBranchComponent.propDecorators = {
10843
- showExtended: [{ type: Input }]
11796
+ simple: [{ type: Input }]
10844
11797
  };
10845
11798
 
10846
11799
  class TransactionHeaderBranchModule {
@@ -10862,7 +11815,7 @@ TransactionHeaderBranchModule.decorators = [
10862
11815
  },] }
10863
11816
  ];
10864
11817
 
10865
- class TransactionHeaderAdministrativeRelationComponent extends TransactionHeaderFieldsBaseComponent {
11818
+ class TransactionHeaderAdministrativeRelationComponent extends TransactionHeaderBaseComponent {
10866
11819
  constructor(_transactionService) {
10867
11820
  super();
10868
11821
  this._transactionService = _transactionService;
@@ -10934,21 +11887,25 @@ TransactionHeaderAdministrativeRelationModule.decorators = [
10934
11887
  },] }
10935
11888
  ];
10936
11889
 
10937
- class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseComponent {
11890
+ class TransactionHeaderMarketingComponent extends TransactionHeaderBaseComponent {
10938
11891
  constructor(_transactionService) {
10939
11892
  super();
10940
11893
  this._transactionService = _transactionService;
10941
11894
  this.collection = [];
10942
- this.fields = { text: "description", value: "code" };
10943
- this.viewModels = [];
10944
11895
  }
10945
11896
  ngOnInit() {
10946
11897
  this.viewModels.length = 0;
10947
11898
  this._transactionService.getMarketingCodes().then((marketingCodes) => {
10948
11899
  this.collection = marketingCodes;
10949
- this.collection.forEach(c => {
10950
- 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
+ });
10951
11907
  });
11908
+ super.ngOnInit();
10952
11909
  });
10953
11910
  }
10954
11911
  commitTransactionMarketing(code) {
@@ -10973,7 +11930,12 @@ class TransactionHeaderMarketingComponent extends TransactionHeaderFieldsBaseCom
10973
11930
  this.viewModels[i].checked = false;
10974
11931
  }
10975
11932
  }
10976
- 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
+ }
10977
11939
  }
10978
11940
  transactionInfoSet() {
10979
11941
  this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
@@ -10983,10 +11945,10 @@ TransactionHeaderMarketingComponent.decorators = [
10983
11945
  { type: Component, args: [{
10984
11946
  selector: "co-transaction-header-marketing",
10985
11947
  template: `
10986
- <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">
10987
11949
  <co-input-checkbox
10988
11950
  [model]="row.checked"
10989
- [label]="row.value + ' ' + row.text"
11951
+ [label]="row.label"
10990
11952
  (click)="handleChecked($event, row)"
10991
11953
  ></co-input-checkbox>
10992
11954
  </div>
@@ -11428,6 +12390,12 @@ TransactionHeaderRelationComponent.decorators = [
11428
12390
  </ng-template>
11429
12391
  <co-dialog *ngIf="showDialog" [headerTemplate]="dialogHeader" (closeClick)="showDialog = false">
11430
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>
11431
12399
  <co-transaction-filter-categories [categories]="categories" (categoryClick)="handleNavigationClick($event)"></co-transaction-filter-categories>
11432
12400
  </ng-template>
11433
12401
  <div #navigationItems class="header-relation-navigation-wrapper" data-ride="carousel">
@@ -11690,13 +12658,22 @@ TransactionHeaderPaymentComponent.decorators = [
11690
12658
  [showLabel]="false"
11691
12659
  ></co-transaction-header-downpayment-amount>
11692
12660
  </ng-template>
11693
- <co-dialog class="dialog" *ngIf="showDialog" (closeClick)="showDialog = false">
11694
- <div class="payment-dialog-section">
11695
- <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
11696
- </div>
11697
- <div class="payment-dialog-section">
11698
- <span [textContent]="'NOG_NIET_GEIMPLEMENTEERD'"></span>
11699
- </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>
11700
12677
  </co-dialog>
11701
12678
  <co-dialog class="payment-dialog" *ngIf="showPaymentDialog"
11702
12679
  [modal]="true"
@@ -12349,12 +13326,21 @@ class TransactionLineVatComponent extends TransactionLineBaseComponent {
12349
13326
  constructor(_transactionService) {
12350
13327
  super();
12351
13328
  this._transactionService = _transactionService;
12352
- this.data = [];
12353
- this.fields = { text: "description", value: "vatId" };
13329
+ this.collection = [];
12354
13330
  }
12355
13331
  ngOnInit() {
13332
+ this.viewModels.length = 0;
12356
13333
  this._transactionService.getVatLists().then((vatList) => {
12357
- 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();
12358
13344
  });
12359
13345
  }
12360
13346
  commitVat(id) {
@@ -12370,19 +13356,33 @@ class TransactionLineVatComponent extends TransactionLineBaseComponent {
12370
13356
  return true;
12371
13357
  });
12372
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
+ }
12373
13375
  }
12374
13376
  TransactionLineVatComponent.decorators = [
12375
13377
  { type: Component, args: [{
12376
13378
  selector: "co-transaction-line-vat",
12377
13379
  template: `
12378
- <co-input-combo-box
12379
- [collection]="data"
12380
- [placeholder]="'VAT' | localize"
12381
- [fields]="fields"
12382
- [readonly]="readonly"
12383
- [model]="transactionLine.vatId"
12384
- (modelChange)="commitVat($event)"
12385
- ></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>
12386
13386
  `,
12387
13387
  encapsulation: ViewEncapsulation.None
12388
13388
  },] }
@@ -12398,7 +13398,8 @@ TransactionLineVatModule.decorators = [
12398
13398
  imports: [
12399
13399
  CommonModule,
12400
13400
  PipeModule,
12401
- InputComboBoxModule
13401
+ InputComboBoxModule,
13402
+ InputCheckboxModule
12402
13403
  ],
12403
13404
  declarations: [
12404
13405
  TransactionLineVatComponent
@@ -12484,9 +13485,14 @@ class TransactionLineDeliveryMethodComponent extends TransactionLineBaseComponen
12484
13485
  this._transactionService.getDeliveryMethods().then((methods) => {
12485
13486
  this.data = methods.slice();
12486
13487
  this.data.forEach((d, index) => {
12487
- this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.deliveryMethodCode === d.code : index === 0 });
12488
- super.ngOnInit();
13488
+ this.viewModels.push({
13489
+ value: d.code,
13490
+ text: d.description,
13491
+ label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13492
+ checked: this.useTransactionLine ? this.transactionLine.deliveryMethodCode === d.code : index === 0
13493
+ });
12489
13494
  });
13495
+ super.ngOnInit();
12490
13496
  });
12491
13497
  }
12492
13498
  commitDeliveryMethod(method) {
@@ -12529,7 +13535,7 @@ TransactionLineDeliveryMethodComponent.decorators = [
12529
13535
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
12530
13536
  <co-input-checkbox
12531
13537
  [model]="row.checked"
12532
- [label]="row.value + ' ' + row.text"
13538
+ [label]="row.label"
12533
13539
  (click)="handleChecked($event, row)"
12534
13540
  ></co-input-checkbox>
12535
13541
  </div>
@@ -12703,7 +13709,12 @@ class TransactionLineCommissionCodeComponent extends TransactionLineBaseComponen
12703
13709
  this._transactionService.getCommissionCodes("NL").then((codes) => {
12704
13710
  this.data = codes.slice();
12705
13711
  this.data.forEach((d, index) => {
12706
- this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.commissionCode === d.code : index === 0 });
13712
+ this.viewModels.push({
13713
+ value: d.code,
13714
+ text: d.description,
13715
+ label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13716
+ checked: this.useTransactionLine ? this.transactionLine.commissionCode === d.code : index === 0
13717
+ });
12707
13718
  });
12708
13719
  });
12709
13720
  }
@@ -12747,7 +13758,7 @@ TransactionLineCommissionCodeComponent.decorators = [
12747
13758
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
12748
13759
  <co-input-checkbox
12749
13760
  [model]="row.checked"
12750
- [label]="row.value + ' ' + row.text"
13761
+ [label]="row.label"
12751
13762
  (click)="handleChecked($event, row)"
12752
13763
  ></co-input-checkbox>
12753
13764
  </div>
@@ -12782,16 +13793,21 @@ class TransactionLineWarehouseComponent extends TransactionLineBaseComponent {
12782
13793
  constructor(_transactionService) {
12783
13794
  super();
12784
13795
  this._transactionService = _transactionService;
12785
- this.data = [];
13796
+ this.collection = [];
12786
13797
  }
12787
13798
  ngOnInit() {
12788
13799
  this.viewModels.length = 0;
12789
13800
  this._transactionService.getWarehouses(this.branch).then((warehouses) => {
12790
- this.data = warehouses.slice();
12791
- this.data.forEach((d, index) => {
12792
- this.viewModels.push({ value: d.warehouseNo, text: d.description, checked: this.useTransactionLine ? this.transactionLine.warehouseNumber === d.warehouseNo : index === 0 });
12793
- super.ngOnInit();
13801
+ this.collection = warehouses.slice();
13802
+ this.collection.forEach((d, index) => {
13803
+ this.viewModels.push({
13804
+ value: d.warehouseNo,
13805
+ text: d.description,
13806
+ label: ((d.warehouseNo !== null && d.warehouseNo !== undefined) ? d.warehouseNo + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
13807
+ checked: this.useTransactionLine ? this.transactionLine.warehouseNumber === d.warehouseNo : index === 0
13808
+ });
12794
13809
  });
13810
+ super.ngOnInit();
12795
13811
  });
12796
13812
  }
12797
13813
  commitWarehouse(warehouse) {
@@ -12831,7 +13847,7 @@ TransactionLineWarehouseComponent.decorators = [
12831
13847
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
12832
13848
  <co-input-checkbox
12833
13849
  [model]="row.checked"
12834
- [label]="row.value + ' ' + row.text"
13850
+ [label]="row.label"
12835
13851
  (click)="handleChecked($event, row)"></co-input-checkbox>
12836
13852
  </div>
12837
13853
  `,
@@ -13451,8 +14467,9 @@ TransactionReceivingGoodsHistoryModule.decorators = [
13451
14467
  ];
13452
14468
 
13453
14469
  class ArticleService {
13454
- constructor(_articleConnectorService) {
14470
+ constructor(_articleConnectorService, _selectMultipleCacheService) {
13455
14471
  this._articleConnectorService = _articleConnectorService;
14472
+ this._selectMultipleCacheService = _selectMultipleCacheService;
13456
14473
  }
13457
14474
  getWarehouseLocations(warehouseNr) {
13458
14475
  return __awaiter(this, void 0, void 0, function* () {
@@ -13460,14 +14477,15 @@ class ArticleService {
13460
14477
  });
13461
14478
  }
13462
14479
  }
13463
- 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" });
13464
14481
  ArticleService.decorators = [
13465
14482
  { type: Injectable, args: [{
13466
14483
  providedIn: "root"
13467
14484
  },] }
13468
14485
  ];
13469
14486
  ArticleService.ctorParameters = () => [
13470
- { type: ArticleConnectorService }
14487
+ { type: ArticleConnectorService },
14488
+ { type: SelectMultipleCacheService }
13471
14489
  ];
13472
14490
 
13473
14491
  class TransactionReceivingGoodsDetailsComponent {
@@ -14567,7 +15585,7 @@ class TransactionMappingService {
14567
15585
  { title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderOverview },
14568
15586
  { title: 'PURCHASE', icon: Icon.PalletBoxesSolid, category: TransactionTypeCategory.SalesOrderPurchase },
14569
15587
  { title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
14570
- { title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
15588
+ { title: 'PLANNING', icon: Icon.TruckMovingSolid, category: TransactionTypeCategory.SalesOrderPlanning },
14571
15589
  { title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
14572
15590
  { title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
14573
15591
  ]],
@@ -15308,6 +16326,27 @@ DialogTransactionLineDeliveryMethodModule.decorators = [
15308
16326
  },] }
15309
16327
  ];
15310
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
+
15311
16350
  class TransactionLinesGridModule {
15312
16351
  }
15313
16352
  TransactionLinesGridModule.decorators = [
@@ -15323,7 +16362,8 @@ TransactionLinesGridModule.decorators = [
15323
16362
  TransactionBaseGridModule,
15324
16363
  DialogTransactionLineCommissionCodeModule,
15325
16364
  DialogTransactionLineWarehouseModule,
15326
- DialogTransactionLineDeliveryMethodModule
16365
+ DialogTransactionLineDeliveryMethodModule,
16366
+ DialogTransactionLineVatModule
15327
16367
  ],
15328
16368
  declarations: [
15329
16369
  TransactionLinesGridComponent
@@ -18639,5 +19679,5 @@ TransactionLineGridModule.decorators = [
18639
19679
  * Generated bundle index. Do not edit.
18640
19680
  */
18641
19681
 
18642
- 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 };
18643
19683
  //# sourceMappingURL=colijnit-transaction.js.map