@colijnit/transaction 12.1.49 → 12.1.52

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 (174) hide show
  1. package/bundles/colijnit-transaction.umd.js +1879 -1282
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +250 -244
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +251 -245
  6. package/esm2015/lib/assets/dictionary/text.properties.js +7 -1
  7. package/esm2015/lib/component/avatar/avatar.component.js +20 -4
  8. package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +3 -3
  9. package/esm2015/lib/component/core/base/transaction-filter-popup-base.component.js +2 -2
  10. package/esm2015/lib/component/core/base/transaction-header-base.component.js +17 -2
  11. package/esm2015/lib/component/core/base/transaction-lines-line-base.component.js +3 -1
  12. package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.js +78 -0
  13. package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.module.js +29 -0
  14. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-discount/dialog-transaction-line-discount.component.js +5 -5
  15. package/esm2015/lib/component/editable-label/editable-label.component.js +3 -1
  16. package/esm2015/lib/component/relation/relation-general/relation-general.component.js +4 -10
  17. package/esm2015/lib/component/relation/relation-suggestions-list-item/relation-suggestions-list-item.component.js +3 -1
  18. package/esm2015/lib/component/relation/relation-type/relation-type.component.js +3 -8
  19. package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.component.js +62 -15
  20. package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +6 -3
  21. package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +5 -2
  22. package/esm2015/lib/component/tile/tile.component.js +2 -2
  23. package/esm2015/lib/component/transaction/transaction.component.js +8 -12
  24. package/esm2015/lib/component/transaction/transaction.module.js +6 -3
  25. package/esm2015/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.js +13 -12
  26. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +38 -18
  27. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.js +4 -3
  28. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +6 -5
  29. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +4 -2
  30. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +25 -5
  31. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.js +6 -2
  32. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +5 -3
  33. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +4 -2
  34. package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +6 -2
  35. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +3 -1
  36. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.component.js +84 -0
  37. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.module.js +23 -0
  38. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.js +84 -0
  39. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.js +23 -0
  40. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.js +85 -0
  41. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.js +23 -0
  42. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +3 -1
  43. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +3 -1
  44. package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +7 -3
  45. package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +3 -1
  46. package/esm2015/lib/component/transaction-header-fields/transaction-header-reference.component.js +3 -1
  47. package/esm2015/lib/component/transaction-header-fields/transaction-header-relation-reference.component.js +3 -1
  48. package/esm2015/lib/component/transaction-header-fields/transaction-header-remarks.component.js +3 -1
  49. package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +16 -8
  50. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +6 -5
  51. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.module.js +4 -4
  52. package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +26 -61
  53. package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.module.js +8 -2
  54. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
  55. package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +18 -14
  56. package/esm2015/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.js +6 -3
  57. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.component.js +28 -13
  58. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.module.js +4 -2
  59. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.component.js +28 -13
  60. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.module.js +4 -2
  61. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +3 -3
  62. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +3 -1
  63. package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +3 -1
  64. package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +3 -1
  65. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.js +28 -17
  66. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.module.js +4 -2
  67. package/esm2015/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.js +11 -6
  68. package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +6 -1
  69. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +7 -9
  70. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +19 -3
  71. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +1 -1
  72. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +6 -6
  73. package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter/transaction-filter.component.js +2 -1
  74. package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +2 -4
  75. package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +3 -2
  76. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.component.js +2 -2
  77. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.js +3 -3
  78. package/esm2015/lib/component/transaction-search/transaction-search.component.js +4 -8
  79. package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +2 -14
  80. package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +4 -2
  81. package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +18 -11
  82. package/esm2015/lib/component/transaction-totals/transaction-totals.module.js +4 -2
  83. package/esm2015/lib/enum/icon.enum.js +7 -1
  84. package/esm2015/lib/enum/searchbar-view-mode.enum.js +7 -0
  85. package/esm2015/lib/model/icon-svg.js +7 -1
  86. package/esm2015/lib/service/pending-reason.service.js +2 -3
  87. package/esm2015/lib/service/transaction-connector-adapter.service.js +48 -4
  88. package/esm2015/lib/service/transaction-connector.service.js +12 -12
  89. package/esm2015/lib/service/transaction.service.js +18 -6
  90. package/esm2015/public_api.js +3 -1
  91. package/fesm2015/colijnit-transaction.js +1693 -1085
  92. package/fesm2015/colijnit-transaction.js.map +1 -1
  93. package/lib/component/avatar/avatar.component.d.ts +8 -2
  94. package/lib/component/avatar/style/_layout.scss +1 -1
  95. package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +2 -2
  96. package/lib/component/core/base/transaction-header-base.component.d.ts +5 -0
  97. package/lib/component/core/base/transaction-lines-line-base.component.d.ts +1 -0
  98. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.d.ts +8 -0
  99. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.module.d.ts +2 -0
  100. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_layout.scss +44 -0
  101. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_material-definition.scss +11 -0
  102. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_theme.scss +11 -0
  103. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/material.scss +4 -0
  104. package/lib/component/dialog/transaction-line/dialog-transaction-line-discount/style/_theme.scss +0 -3
  105. package/lib/component/shared/transaction-article-text/style/_layout.scss +68 -7
  106. package/lib/component/shared/transaction-article-text/style/_material-definition.scss +1 -1
  107. package/lib/component/shared/transaction-article-text/style/_theme.scss +11 -3
  108. package/lib/component/shared/transaction-article-text/transaction-article-text.component.d.ts +14 -2
  109. package/lib/component/shared/transaction-article-text-overview/style/_layout.scss +4 -0
  110. package/lib/component/transaction/style/_layout.scss +23 -0
  111. package/lib/component/transaction/style/_material-definition.scss +7 -0
  112. package/lib/component/transaction/transaction.component.d.ts +0 -2
  113. package/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.d.ts +2 -3
  114. package/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.d.ts +6 -8
  115. package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -0
  116. package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +1 -1
  117. package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +13 -0
  118. package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +1 -0
  119. package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +2 -0
  120. package/lib/component/transaction-header/transaction-header-payment/style/material.scss +1 -0
  121. package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +1 -1
  122. package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +1 -0
  123. package/lib/component/transaction-header-fields/transaction-header-discount-amount.component.d.ts +17 -0
  124. package/lib/component/transaction-header-fields/transaction-header-discount-amount.module.d.ts +2 -0
  125. package/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.d.ts +17 -0
  126. package/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.d.ts +2 -0
  127. package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.d.ts +18 -0
  128. package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.d.ts +2 -0
  129. package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +1 -0
  130. package/lib/component/transaction-line/transaction-line/transaction-line.component.d.ts +4 -2
  131. package/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.d.ts +2 -0
  132. package/lib/component/transaction-line/transaction-overview-line/style/_material-definition.scss +2 -1
  133. package/lib/component/transaction-line/transaction-overview-line/style/_theme.scss +1 -4
  134. package/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.d.ts +6 -9
  135. package/lib/component/transaction-line-action-buttons/style/_layout.scss +31 -38
  136. package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +3 -2
  137. package/lib/component/transaction-line-action-buttons/style/_theme.scss +11 -0
  138. package/lib/component/transaction-line-checkbox-list/style/_layout.scss +1 -0
  139. package/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.d.ts +5 -0
  140. package/lib/component/transaction-line-fields/transaction-line-commission-button.component.d.ts +7 -7
  141. package/lib/component/transaction-line-fields/transaction-line-delivery-button.component.d.ts +7 -7
  142. package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +1 -1
  143. package/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.d.ts +7 -8
  144. package/lib/component/transaction-line-image-and-description/style/_layout.scss +5 -0
  145. package/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.d.ts +1 -0
  146. package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +2 -0
  147. package/lib/component/transaction-lines/style/_layout.scss +16 -0
  148. package/lib/component/transaction-lines/style/_material-definition.scss +1 -1
  149. package/lib/component/transaction-lines/style/_theme.scss +4 -3
  150. package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -1
  151. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +3 -0
  152. package/lib/component/transaction-search/service/transaction-search.service.d.ts +2 -2
  153. package/lib/component/transaction-search/style/material.scss +1 -0
  154. package/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.d.ts +1 -1
  155. package/lib/component/transaction-search/transaction-search.component.d.ts +0 -4
  156. package/lib/component/transaction-tile/transaction-tile.component.d.ts +0 -1
  157. package/lib/component/transaction-totals/transaction-totals.component.d.ts +4 -1
  158. package/lib/enum/icon.enum.d.ts +6 -0
  159. package/lib/enum/searchbar-view-mode.enum.d.ts +4 -0
  160. package/lib/service/pending-reason.service.d.ts +1 -1
  161. package/lib/service/transaction-connector-adapter.service.d.ts +4 -0
  162. package/lib/service/transaction-connector.service.d.ts +3 -0
  163. package/lib/service/transaction.service.d.ts +4 -1
  164. package/lib/style/transaction-globals.scss +4 -0
  165. package/package.json +1 -1
  166. package/public_api.d.ts +2 -0
  167. package/esm2015/lib/component/status-bar/status-bar.component.js +0 -37
  168. package/esm2015/lib/component/status-bar/status-bar.module.js +0 -21
  169. package/lib/component/status-bar/status-bar.component.d.ts +0 -8
  170. package/lib/component/status-bar/status-bar.module.d.ts +0 -2
  171. package/lib/component/status-bar/style/_layout.scss +0 -14
  172. package/lib/component/status-bar/style/_material-definition.scss +0 -5
  173. package/lib/component/status-bar/style/_theme.scss +0 -15
  174. package/lib/component/status-bar/style/material.scss +0 -3
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, HostBinding, ChangeDetectorRef, Output, Directive, Injector, ComponentFactoryResolver, ApplicationRef, ViewChild, Pipe, NgModule, ElementRef, ContentChildren, HostListener } from '@angular/core';
3
+ import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, HostBinding, ChangeDetectorRef, Output, Directive, Injector, ComponentFactoryResolver, ApplicationRef, ViewChild, Pipe, NgModule, ElementRef, ContentChildren, HostListener, ChangeDetectionStrategy } 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';
@@ -65,18 +65,21 @@ import { ResolveHeaderPendingReasonRequest } from '@colijnit/transactionapi/buil
65
65
  import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
66
66
  import { NULL_CUSTOMER_FULL_OBJECT, NULL_RELATION_OBJECT } from '@colijnit/transactionapi/build/model/nul-relation-object';
67
67
  import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
68
- import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputListboxModule, DropDownModule, CoOrientation, CoDirection, ColumnAlign, SimpleGridColumnDirective, ObserveVisibilityModule, PriceDisplayPipeModule, InputDatePickerModule, Carousel3dModule, InputDatePickerComponent, InputTextareaComponent, InputTextareaModule, InputTextComponent, InputSearchModule, InputNumberPickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, CarouselModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, ClickoutsideModule, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
68
+ import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputTextComponent, InputListboxModule, DropDownModule, InputSearchModule, ColumnAlign, SimpleGridColumnDirective, ObserveVisibilityModule, ColorSequenceService, PriceDisplayPipeModule, InputDatePickerModule, Carousel3dModule, InputDatePickerComponent, InputTextareaComponent, InputTextareaModule, InputNumberPickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, CarouselModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, ClickoutsideModule, CoOrientation, CoDirection, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
69
69
  import { FlexModule } from '@angular/flex-layout';
70
70
  import { AddressType } from '@colijnit/transactionapi/build/enum/address-type.enum';
71
71
  import { trigger, state, style, transition, animate } from '@angular/animations';
72
72
  import { CommonModule, DatePipe } from '@angular/common';
73
73
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
74
74
  import { Address } from '@colijnit/transactionapi/build/model/address.bo';
75
+ import { TransactionTotal } from '@colijnit/transactionapi/build/model/transaction-total.bo';
76
+ import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
75
77
  import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
76
78
  import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
77
- import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
78
79
  import { PagingParameters } from '@colijnit/transactionapi/build/model/paging-parameters';
80
+ import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
79
81
  import { RelationKind as RelationKind$1 } from '@colijnit/articleapi/build/enum/relation-kind.enum';
82
+ import { GetPurchaseOrderConfirmation } from '@colijnit/transactionapi/build/model/get-purchase-order-confirmation';
80
83
  import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
81
84
  import { ReceiveGoodsForPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo';
82
85
  import { PurchaseOrderLineReceiptDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo';
@@ -92,7 +95,6 @@ import { ContactOption } from '@colijnit/transactionapi/build/model/contact-opti
92
95
  import { BusinessObjectUtils } from '@colijnit/transactionapi/build/utils/business-object-utils';
93
96
  import { ScrollingModule } from '@angular/cdk/scrolling';
94
97
  import { RelationSmallObject } from '@colijnit/transactionapi/build/model/relation-small-object.bo';
95
- import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
96
98
  import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
97
99
  import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
98
100
  import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
@@ -422,6 +424,7 @@ class Dictionary {
422
424
  "PRIVATE_PERSON": "Particulier",
423
425
  "PRODUCT": "Product",
424
426
  "PRODUCT_TYPE": "Productsoort",
427
+ "PRODUCT_DESCRIPTION_AND_TEXTS": "Productomschrijving & teksten",
425
428
  "PURCHASE": "Inkoop",
426
429
  "PURCHASENUMBER": "Inkoopnummer",
427
430
  "PURCHASEORDERS": "Inkooporders",
@@ -441,6 +444,7 @@ class Dictionary {
441
444
  "RECEIVED": "Ontvangst",
442
445
  "RECEIVED_DELIVERED": "Binnengemeld / geleverd",
443
446
  "RECEIVED_DATE": "Ontvangst datum",
447
+ "REDISTRIBUTE_DISCOUNT": "Herverdeel korting",
444
448
  "REFERENCE": "Referentie",
445
449
  "REFERENCE_RELATION": "Ref. relatie",
446
450
  "RELATION_NUMBER": "Relatienummer",
@@ -509,6 +513,7 @@ class Dictionary {
509
513
  "TRANSPORT_COST_LINE_TOTAL": "Transportkosten regeltotaal",
510
514
  "TURNOVER_GROUP": "Omzetgroep",
511
515
  "TYPE": "Soort",
516
+ "TYPE_OR_SEARCH_TEXT": "Type of zoek de tekst die u wilt toevoegen...",
512
517
  "UNKNOWN": "Onbekend",
513
518
  "UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
514
519
  "USER": "Gebruiker",
@@ -764,6 +769,7 @@ class Dictionary {
764
769
  "PLANNING_PREFERRED_DATE_ENTERED": "Planning preferred date entered",
765
770
  "PRODUCT": "Product",
766
771
  "PRODUCT_TYPE": "Product type",
772
+ "PRODUCT_DESCRIPTION_AND_TEXTS": "Product description & texts",
767
773
  "PURCHASE": "Purchase",
768
774
  "PURCHASENUMBER": "Purchase number",
769
775
  "PURCHASEORDERS": "Purchase orders",
@@ -773,6 +779,7 @@ class Dictionary {
773
779
  "RECEIPT_DETAILS": "Receipt details",
774
780
  "RECEIVED": "Received",
775
781
  "RECEIVED_DATE": "Received date",
782
+ "REDISTRIBUTE_DISCOUNT": "Redistribute discount",
776
783
  "RECEIVED_DELIVERED": "Received / delivered",
777
784
  "REFERENCE": "Reference",
778
785
  "REFERENCE_RELATION": "Ref. relation",
@@ -840,6 +847,7 @@ class Dictionary {
840
847
  "TRANSPORT_NOTIFICATION": "Transport notification",
841
848
  "TURNOVER_GROUP": "Turnover group",
842
849
  "TYPE": "Type",
850
+ "TYPE_OR_SEARCH_TEXT": "Type or search the text you want to add...",
843
851
  "UNKNOWN": "unknown",
844
852
  "UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
845
853
  "USER": "User",
@@ -2034,6 +2042,7 @@ var Icon;
2034
2042
  Icon["ArrowPointRight"] = "arrow_point_right";
2035
2043
  Icon["Article"] = "article";
2036
2044
  Icon["AtSolid"] = "at_solid";
2045
+ Icon["BarcodeRegular"] = "barcode_regular";
2037
2046
  Icon["BarcodeSolid"] = "barcode_solid";
2038
2047
  Icon["BarsFilter"] = "bars_filter";
2039
2048
  Icon["CalendarDay"] = "calendar_day";
@@ -2046,6 +2055,7 @@ var Icon;
2046
2055
  Icon["CreditCardSolid"] = "credit_card_solid";
2047
2056
  Icon["DeliveryTruck"] = "delivery_truck";
2048
2057
  Icon["EditPencil"] = "edit_pencil";
2058
+ Icon["EllipsisLight"] = "ellipsis_light";
2049
2059
  Icon["FileCircleInfoSolid"] = "file_circle_info_solid";
2050
2060
  Icon["FilePdfSolid"] = "file_pdf_solid";
2051
2061
  Icon["GripDotsVerticalSolid"] = "grip_dots_vertical_solid";
@@ -2057,10 +2067,12 @@ var Icon;
2057
2067
  Icon["Lock"] = "lock";
2058
2068
  Icon["LockKeyholeOpenSolid"] = "lock_keyhole_open_solid";
2059
2069
  Icon["LockKeyholeSolid"] = "lock_keyhole_solid";
2070
+ Icon["Magnifier"] = "magnifier";
2060
2071
  Icon["MapMarker"] = "map_marker";
2061
2072
  Icon["MasterDetail"] = "master_detail";
2062
2073
  Icon["MemoCircleCheckSolid"] = "memo_circle_check_solid";
2063
2074
  Icon["Menu"] = "menu";
2075
+ Icon["ObjectIntersectSolid"] = "object_intersect_solid";
2064
2076
  Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
2065
2077
  Icon["PlusRound"] = "plus_round";
2066
2078
  Icon["PrintSolid"] = "print_solid";
@@ -2075,6 +2087,8 @@ var Icon;
2075
2087
  Icon["SquareFullSolid"] = "square_full_solid";
2076
2088
  Icon["SyncAlt"] = "sync_alt";
2077
2089
  Icon["Tag"] = "tag";
2090
+ Icon["TextSizeSolid"] = "text_size_solid";
2091
+ Icon["TextSolid"] = "text_solid";
2078
2092
  Icon["ThickLines"] = "thick_lines";
2079
2093
  Icon["ThinLines"] = "thin_lines";
2080
2094
  Icon["TrashBin"] = "trash_bin";
@@ -2098,6 +2112,7 @@ const IconSvg = {
2098
2112
  "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
2099
2113
  "article": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M37.43,15.14H12.57A2.57,2.57,0,0,0,10,17.71V32.29a2.57,2.57,0,0,0,2.57,2.57H37.43A2.57,2.57,0,0,0,40,32.29V17.71A2.57,2.57,0,0,0,37.43,15.14ZM14.29,32.71H12.15V17.29h2.14Zm2,0H15V17.29h1.29Zm2.57,0H17.54V17.29h1.29Zm3.52,0H20.2V17.29h2.15Zm2,0H23.11V17.29H24.4Zm2.06,0H25.17V17.29h1.29Zm2.66,0H27.83V17.29h1.29Zm3.51,0H31.34V17.29h1.29Zm3.34,0H33.4V17.29H36Zm2.32,0H37V17.29h1.29Z\" fill=\"#484f60\"/></svg>",
2100
2114
  "at_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M207.8 20.73c-93.45 18.32-168.7 93.66-187 187.1c-27.64 140.9 68.65 266.2 199.1 285.1c19.01 2.888 36.17-12.26 36.17-31.49l.0001-.6631c0-15.74-11.44-28.88-26.84-31.24c-84.35-12.98-149.2-86.13-149.2-174.2c0-102.9 88.61-185.5 193.4-175.4c91.54 8.869 158.6 91.25 158.6 183.2l0 16.16c0 22.09-17.94 40.05-40 40.05s-40.01-17.96-40.01-40.05v-120.1c0-8.847-7.161-16.02-16.01-16.02l-31.98 .0036c-7.299 0-13.2 4.992-15.12 11.68c-24.85-12.15-54.24-16.38-86.06-5.106c-38.75 13.73-68.12 48.91-73.72 89.64c-9.483 69.01 43.81 128 110.9 128c26.44 0 50.43-9.544 69.59-24.88c24 31.3 65.23 48.69 109.4 37.49C465.2 369.3 496 324.1 495.1 277.2V256.3C495.1 107.1 361.2-9.332 207.8 20.73zM239.1 304.3c-26.47 0-48-21.56-48-48.05s21.53-48.05 48-48.05s48 21.56 48 48.05S266.5 304.3 239.1 304.3z\"/></svg>",
2115
+ "barcode_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M48 55.1V455.1C48 469.3 37.25 479.1 24 479.1C10.75 479.1 0 469.3 0 455.1V55.1C0 42.74 10.75 31.1 24 31.1C37.25 31.1 48 42.74 48 55.1V55.1zM128 47.1V463.1C128 472.8 120.8 479.1 112 479.1C103.2 479.1 96 472.8 96 463.1V47.1C96 39.16 103.2 31.1 112 31.1C120.8 31.1 128 39.16 128 47.1V47.1zM208 55.1V455.1C208 469.3 197.3 479.1 184 479.1C170.7 479.1 160 469.3 160 455.1V55.1C160 42.74 170.7 31.1 184 31.1C197.3 31.1 208 42.74 208 55.1V55.1zM320 55.1V455.1C320 469.3 309.3 479.1 296 479.1C282.7 479.1 272 469.3 272 455.1V55.1C272 42.74 282.7 31.1 296 31.1C309.3 31.1 320 42.74 320 55.1V55.1zM464 55.1C464 42.74 474.7 31.1 488 31.1C501.3 31.1 512 42.74 512 55.1V455.1C512 469.3 501.3 479.1 488 479.1C474.7 479.1 464 469.3 464 455.1V55.1zM400 47.1C400 39.16 407.2 31.1 416 31.1C424.8 31.1 432 39.16 432 47.1V463.1C432 472.8 424.8 479.1 416 479.1C407.2 479.1 400 472.8 400 463.1V47.1z\"/></svg>",
2101
2116
  "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>",
2102
2117
  "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>",
2103
2118
  "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>",
@@ -2110,6 +2125,7 @@ const IconSvg = {
2110
2125
  "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>",
2111
2126
  "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>",
2112
2127
  "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>",
2128
+ "ellipsis_light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M352 256C352 238.3 366.3 224 384 224C401.7 224 416 238.3 416 256C416 273.7 401.7 288 384 288C366.3 288 352 273.7 352 256zM192 256C192 238.3 206.3 224 224 224C241.7 224 256 238.3 256 256C256 273.7 241.7 288 224 288C206.3 288 192 273.7 192 256zM96 256C96 273.7 81.67 288 64 288C46.33 288 32 273.7 32 256C32 238.3 46.33 224 64 224C81.67 224 96 238.3 96 256z\"/></svg>",
2113
2129
  "file_circle_info_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M0 64C0 28.65 28.65 0 64 0H224V128C224 145.7 238.3 160 256 160H384V198.6C310.1 219.5 256 287.4 256 368C256 427.1 285.1 479.3 329.7 511.3C326.6 511.7 323.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM256 128V0L384 128H256zM288 368C288 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368C576 447.5 511.5 512 432 512C352.5 512 288 447.5 288 368zM432 320C445.3 320 456 309.3 456 296C456 282.7 445.3 272 432 272C418.7 272 408 282.7 408 296C408 309.3 418.7 320 432 320zM416 384L416 432C407.2 432 400 439.2 400 448C400 456.8 407.2 464 416 464H448C456.8 464 464 456.8 464 448C464 439.2 456.8 432 448 432V368C448 359.2 440.8 352 432 352H416C407.2 352 400 359.2 400 368C400 376.8 407.2 384 416 384z\"/></svg>",
2114
2130
  "file_pdf_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M88 304H80V256H88C101.3 256 112 266.7 112 280C112 293.3 101.3 304 88 304zM192 256H200C208.8 256 216 263.2 216 272V336C216 344.8 208.8 352 200 352H192V256zM224 0V128C224 145.7 238.3 160 256 160H384V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H224zM64 224C55.16 224 48 231.2 48 240V368C48 376.8 55.16 384 64 384C72.84 384 80 376.8 80 368V336H88C118.9 336 144 310.9 144 280C144 249.1 118.9 224 88 224H64zM160 368C160 376.8 167.2 384 176 384H200C226.5 384 248 362.5 248 336V272C248 245.5 226.5 224 200 224H176C167.2 224 160 231.2 160 240V368zM288 224C279.2 224 272 231.2 272 240V368C272 376.8 279.2 384 288 384C296.8 384 304 376.8 304 368V320H336C344.8 320 352 312.8 352 304C352 295.2 344.8 288 336 288H304V256H336C344.8 256 352 248.8 352 240C352 231.2 344.8 224 336 224H288zM256 0L384 128H256V0z\"/></svg>",
2115
2131
  "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>",
@@ -2121,10 +2137,12 @@ const IconSvg = {
2121
2137
  "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>",
2122
2138
  "lock_keyhole_open_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432 64C387.8 64 352 99.82 352 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H288V144C288 64.47 352.5 0 432 0C511.5 0 576 64.47 576 144V192C576 209.7 561.7 224 544 224C526.3 224 512 209.7 512 192V144C512 99.82 476.2 64 432 64zM256 384C273.7 384 288 369.7 288 352C288 334.3 273.7 320 256 320H192C174.3 320 160 334.3 160 352C160 369.7 174.3 384 192 384H256z\"/></svg>",
2123
2139
  "lock_keyhole_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80V144C80 64.47 144.5 0 224 0zM224 64C179.8 64 144 99.82 144 144V192H304V144C304 99.82 268.2 64 224 64zM256 320C256 302.3 241.7 288 224 288C206.3 288 192 302.3 192 320V384C192 401.7 206.3 416 224 416C241.7 416 256 401.7 256 384V320z\"/></svg>",
2140
+ "magnifier": "<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=\"#29363E\" d=\"M27.8,15.5c-3.4-3.4-8.9-3.4-12.3,0c-3.4,3.4-3.4,8.9,0,12.3c3.4,3.4,8.9,3.4,12.3,0C31.2,24.4,31.2,18.9,27.8,15.5z M26.4,26.4c-2.6,2.6-6.8,2.6-9.4,0c-2.6-2.6-2.6-6.8,0-9.4c2.6-2.6,6.8-2.6,9.4,0C29,19.6,29,23.8,26.4,26.4z\"/><path fill=\"#29363E\" d=\"M36.4,32.8l-4.3-4.3c-0.8-0.8-2.1-0.8-2.9,0l-0.7,0.7c-0.8,0.8-0.8,2.1,0,2.9l4.3,4.3c0.8,0.8,2.1,0.8,2.9,0l0.7-0.7C37.2,34.9,37.2,33.6,36.4,32.8z\"/></g></svg>",
2124
2141
  "map_marker": "<!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=\"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z\" /></svg>",
2125
2142
  "master_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"22\" y=\"32.17\" width=\"18\" height=\"4\" transform=\"translate(62 68.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"26.17\" width=\"18\" height=\"4\" transform=\"translate(62 56.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"20.17\" width=\"18\" height=\"4\" transform=\"translate(62 44.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"14.17\" width=\"18\" height=\"4\" transform=\"translate(62 32.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"10\" y=\"14.17\" width=\"10\" height=\"22\" transform=\"translate(30 50.33) rotate(180)\" fill=\"#484f60\"/></svg>",
2126
2143
  "memo_circle_check_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M288 368C288 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368C576 447.5 511.5 512 432 512C352.5 512 288 447.5 288 368zM499.3 347.3C505.6 341.1 505.6 330.9 499.3 324.7C493.1 318.4 482.9 318.4 476.7 324.7L416 385.4L387.3 356.7C381.1 350.4 370.9 350.4 364.7 356.7C358.4 362.9 358.4 373.1 364.7 379.3L404.7 419.3C410.9 425.6 421.1 425.6 427.3 419.3L499.3 347.3zM320 0C355.3 0 384 28.65 384 64V198.6C310.1 219.5 256 287.4 256 368C256 427.1 285.1 479.3 329.7 511.3C326.6 511.7 323.3 512 320 512H64C28.65 512 0 483.3 0 448V64C0 28.65 28.65 0 64 0H320zM80 128C71.16 128 64 135.2 64 144C64 152.8 71.16 160 80 160H304C312.8 160 320 152.8 320 144C320 135.2 312.8 128 304 128H80zM80 256H240C248.8 256 256 248.8 256 240C256 231.2 248.8 224 240 224H80C71.16 224 64 231.2 64 240C64 248.8 71.16 256 80 256zM80 352H176C184.8 352 192 344.8 192 336C192 327.2 184.8 320 176 320H80C71.16 320 64 327.2 64 336C64 344.8 71.16 352 80 352z\"/></svg>",
2127
2144
  "menu": "<!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=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" /></svg>",
2145
+ "object_intersect_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M288 64v96H224c-35.3 0-64 28.7-64 64v64H64V64H288zM64 352h96v96c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64H352V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64V288c0 35.3 28.7 64 64 64zM448 224V448H224V352h64c35.3 0 64-28.7 64-64V224h96z\"/></svg>",
2128
2146
  "pallet_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M96 255.1L288 256c17.6 0 32-14.4 32-32V31.1c0-17.6-14.4-31.1-32-31.1L96 0c-17.6 0-32 14.4-32 32V224C64 241.6 78.4 255.1 96 255.1zM416 255.1h128c17.6 0 32-14.4 32-31.1v-128c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v128C384 241.6 398.4 255.1 416 255.1zM624 384c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16h-608C7.25 320 0 327.3 0 336v32C0 376.8 7.25 384 16 384H64v64H16C7.25 448 0 455.3 0 464v32C0 504.8 7.25 512 16 512h608c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16H576v-64H624zM288 448H128v-64h160V448zM512 448h-160v-64h160V448z\"/></svg>",
2129
2147
  "plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
2130
2148
  "print_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448 192H64C28.65 192 0 220.7 0 256v96c0 17.67 14.33 32 32 32h32v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h32c17.67 0 32-14.33 32-32V256C512 220.7 483.3 192 448 192zM384 448H128v-96h256V448zM432 296c-13.25 0-24-10.75-24-24c0-13.27 10.75-24 24-24s24 10.73 24 24C456 285.3 445.3 296 432 296zM128 64h229.5L384 90.51V160h64V77.25c0-8.484-3.375-16.62-9.375-22.62l-45.25-45.25C387.4 3.375 379.2 0 370.8 0H96C78.34 0 64 14.33 64 32v128h64V64z\"/></svg>",
@@ -2139,6 +2157,8 @@ const IconSvg = {
2139
2157
  "square_full_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 0h512v512H0V0z\"/></svg>",
2140
2158
  "sync_alt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z\"/></svg>",
2141
2159
  "tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
2160
+ "text_size_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M32 32C14.3 32 0 46.3 0 64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V96h96l0 320H128c-17.7 0-32 14.3-32 32s14.3 32 32 32H256c17.7 0 32-14.3 32-32s-14.3-32-32-32H224l0-320h96v32c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H192 32zM352 224c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32s32-14.3 32-32h64l0 128H432c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H512l0-128h64c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32H352z\"/></svg>",
2161
+ "text_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M0 32H32 192h64H416h32V64v64 32H384V128 96H256l0 320h48 32v64H304 144 112V416h32 48l0-320H64v32 32H0V128 64 32z\"/></svg>",
2142
2162
  "thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
2143
2163
  "thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
2144
2164
  "trash_bin": "<svg preserveAspectRatio=\"none\" version=\"1.1\" viewBox=\"0 0 50 50\" x=\"0px\" xmlns=\"http://www.w3.org/2000/svg\" y=\"0px\"><g transform=\" translate(14 10)\"><path d=\"M 0 0 L 0 18.215 C 0 19.99 1.439 21.429 3.215 21.429 L 15 21.429 C 16.775 21.429 18.215 19.99 18.215 18.215 L 18.215 0 L 0 0 Z M 4.287 19.286 L 2.143 19.286 L 2.143 2.143 L 4.287 2.143 L 4.287 19.286 Z M 10.18 19.286 L 8.037 19.286 L 8.037 2.143 L 10.18 2.143 L 10.18 19.286 Z M 16.072 19.286 L 13.93 19.286 L 13.93 2.143 L 16.072 2.143 L 16.072 19.286 Z\" fill=\"#1E2930\" transform=\" translate(1.891 8.571)\" /><path d=\"M 18.213 2.143 L 10.713 2.143 C 11.305 2.143 11.785 1.664 11.785 1.071 C 11.785 0.479 11.305 0 10.713 0 L 9.643 0 C 9.051 0 8.57 0.479 8.57 1.071 C 8.57 1.664 9.051 2.143 9.643 2.143 L 2.143 2.143 C 0.959 2.143 0 3.103 0 4.286 L 0 5.357 C 0 6.541 0.959 6.429 2.143 6.429 L 18.213 6.429 C 19.397 6.429 20.357 6.541 20.357 5.357 L 20.357 4.286 C 20.357 3.103 19.397 2.143 18.213 2.143 Z\" fill=\"#1E2930\" transform=\" translate(0.821 0)\" /></g></svg>",
@@ -2413,7 +2433,7 @@ class TransactionFilterPopupBaseComponent {
2413
2433
  });
2414
2434
  this.viewModelsFiltered = this.viewModels.slice();
2415
2435
  if (!this.useModel && this.viewModels.length > 0) {
2416
- this.valueChange.next(this.viewModels[0].value);
2436
+ this.valueChange.next(this.value ? this.value : this.viewModels[0].value);
2417
2437
  }
2418
2438
  }
2419
2439
  _doSearch() {
@@ -3306,7 +3326,7 @@ class TransactionConnectorAdapterService {
3306
3326
  return __awaiter(this, void 0, void 0, function* () {
3307
3327
  const result = yield this.connector.getStandardTexts(languageCode);
3308
3328
  if (result.validationResult && result.validationResult.success) {
3309
- return this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObjects);
3329
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObject);
3310
3330
  }
3311
3331
  else {
3312
3332
  this._handleExceptionFromResponse(result);
@@ -3388,7 +3408,7 @@ class TransactionConnectorAdapterService {
3388
3408
  }
3389
3409
  getPaymentMethods() {
3390
3410
  return __awaiter(this, void 0, void 0, function* () {
3391
- const result = yield this.connector.getPaymentMethods();
3411
+ const result = yield this.connector.getPaymentMethodsForSalesOrder();
3392
3412
  if (result.validationResult && result.validationResult.success) {
3393
3413
  return this._boFactory.makeBOArrayFromRawBackendDataArray(PaymentMethod, result.resultObject);
3394
3414
  }
@@ -4114,6 +4134,23 @@ class TransactionConnectorAdapterService {
4114
4134
  }
4115
4135
  });
4116
4136
  }
4137
+ changeHeaderTransactionDiscount(uuid, type, amount) {
4138
+ return __awaiter(this, void 0, void 0, function* () {
4139
+ const request = {
4140
+ transactionUuid: uuid,
4141
+ orderDiscountType: type,
4142
+ discountValue: amount
4143
+ };
4144
+ const response = yield this.connector.setTransactionDiscounts(request);
4145
+ if (response && response.validationResult && response.validationResult.success) {
4146
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
4147
+ }
4148
+ else {
4149
+ this._handleExceptionFromResponse(response);
4150
+ return null;
4151
+ }
4152
+ });
4153
+ }
4117
4154
  changeHeaderTransactionToDownPay(uuid, downPayment) {
4118
4155
  return __awaiter(this, void 0, void 0, function* () {
4119
4156
  const request = {
@@ -4278,7 +4315,34 @@ class TransactionConnectorAdapterService {
4278
4315
  }
4279
4316
  updatePurchasePortalLines(purchasePortalLine) {
4280
4317
  return __awaiter(this, void 0, void 0, function* () {
4281
- return this.connector.updatePurchasePortalLines(purchasePortalLine);
4318
+ const result = yield this.connector.updatePurchasePortalLines(purchasePortalLine);
4319
+ if (result && result.validationResult && result.validationResult.success) {
4320
+ yield this.commit();
4321
+ return null;
4322
+ }
4323
+ });
4324
+ }
4325
+ purchaseOrderConfirmation(purchaseOrderConfirmation) {
4326
+ return __awaiter(this, void 0, void 0, function* () {
4327
+ const result = yield this.connector.getPurchaseOrderConfirmation(purchaseOrderConfirmation);
4328
+ if (result && result.validationResult && result.validationResult.success) {
4329
+ yield this.commit();
4330
+ return null;
4331
+ }
4332
+ });
4333
+ }
4334
+ lockPurchasePortalLines(transIdPurchase, lineId) {
4335
+ return __awaiter(this, void 0, void 0, function* () {
4336
+ return new Promise((resolve, reject) => {
4337
+ return this.connector.lockPurchasePortalLines(transIdPurchase, lineId).then((result) => __awaiter(this, void 0, void 0, function* () {
4338
+ if (result.validationResult && result.validationResult.success) {
4339
+ resolve(true);
4340
+ }
4341
+ else {
4342
+ reject(result.validationMessagesAsString);
4343
+ }
4344
+ }));
4345
+ });
4282
4346
  });
4283
4347
  }
4284
4348
  _handleExceptionFromResponse(result) {
@@ -4768,6 +4832,11 @@ class TransactionConnectorService {
4768
4832
  return this._adapterService.changeHeaderTransactionMarketing(uuid, code);
4769
4833
  });
4770
4834
  }
4835
+ changeHeaderTransactionDiscount(uuid, type, amount) {
4836
+ return __awaiter(this, void 0, void 0, function* () {
4837
+ return this._adapterService.changeHeaderTransactionDiscount(uuid, type, amount);
4838
+ });
4839
+ }
4771
4840
  changeHeaderTransactionToDownPay(uuid, downPayment) {
4772
4841
  return __awaiter(this, void 0, void 0, function* () {
4773
4842
  return this._adapterService.changeHeaderTransactionToDownPay(uuid, downPayment);
@@ -4818,19 +4887,14 @@ class TransactionConnectorService {
4818
4887
  return this._adapterService.updatePurchasePortalLines(purchasePortalLine);
4819
4888
  });
4820
4889
  }
4890
+ purchaseOrderConfirmation(purchaseOrderConfirmation) {
4891
+ return __awaiter(this, void 0, void 0, function* () {
4892
+ return this._adapterService.purchaseOrderConfirmation(purchaseOrderConfirmation);
4893
+ });
4894
+ }
4821
4895
  lockPurchasePortalLines(transIdPurchase, lineId) {
4822
4896
  return __awaiter(this, void 0, void 0, function* () {
4823
- return new Promise((resolve, reject) => {
4824
- return this._adapterService.connector.lockPurchasePortalLines(transIdPurchase, lineId).then((result) => __awaiter(this, void 0, void 0, function* () {
4825
- if (result.validationResult && result.validationResult.success) {
4826
- yield this.commit();
4827
- resolve(true);
4828
- }
4829
- else {
4830
- reject(result.validationMessagesAsString);
4831
- }
4832
- }));
4833
- });
4897
+ return this._adapterService.lockPurchasePortalLines(transIdPurchase, lineId);
4834
4898
  });
4835
4899
  }
4836
4900
  }
@@ -4950,7 +5014,7 @@ class PendingReasonService {
4950
5014
  this.applicationUser = false;
4951
5015
  this.invoiceAddressSameAsDelivery = true;
4952
5016
  this.currentTransaction = new TransactionInfoResponse();
4953
- this.purchasePortalLine = new PurchasePortalLine();
5017
+ this.purchasePortalLine = [];
4954
5018
  this.docDeliveryBatch = new DocDeliveryBatch();
4955
5019
  this.articleAmount = 0;
4956
5020
  this._relation = new CustomerFullObject();
@@ -5423,6 +5487,17 @@ class TransactionService extends PendingReasonService {
5423
5487
  return false;
5424
5488
  });
5425
5489
  }
5490
+ updateHeaderTransactionDiscount(uuid, type, amount) {
5491
+ return __awaiter(this, void 0, void 0, function* () {
5492
+ const response = yield this.connector.changeHeaderTransactionDiscount(uuid, type, amount);
5493
+ if (response) {
5494
+ const success = yield this.handleHeaderOperationStatuses(response);
5495
+ this.rememberCurrentTransaction(response);
5496
+ return success;
5497
+ }
5498
+ return false;
5499
+ });
5500
+ }
5426
5501
  updateQuantityTransactionLine(uuid, lineUuid, quantity) {
5427
5502
  return __awaiter(this, void 0, void 0, function* () {
5428
5503
  const response = yield this.connector.changeTransactionLineQuantity(uuid, lineUuid, quantity);
@@ -5857,13 +5932,14 @@ class TransactionService extends PendingReasonService {
5857
5932
  return yield this.connector.getPurchasePortalLines(request);
5858
5933
  });
5859
5934
  }
5935
+ purchaseOrderConfirmation(purchaseOrderConfirmation) {
5936
+ return __awaiter(this, void 0, void 0, function* () {
5937
+ return yield this.connector.purchaseOrderConfirmation(purchaseOrderConfirmation);
5938
+ });
5939
+ }
5860
5940
  updatePurchasePortalLines(purchasePortalLine) {
5861
5941
  return __awaiter(this, void 0, void 0, function* () {
5862
- let result = yield this.connector.updatePurchasePortalLines(purchasePortalLine);
5863
- if (result && result.validationResult && result.validationResult.success) {
5864
- result = yield this.connector.commit();
5865
- }
5866
- return result.validationResult.success;
5942
+ return yield this.connector.updatePurchasePortalLines(purchasePortalLine);
5867
5943
  });
5868
5944
  }
5869
5945
  lockPurchasePortalLines(transIdPurchase, lineId) {
@@ -7749,7 +7825,7 @@ TileComponent.decorators = [
7749
7825
  template: `
7750
7826
  <div class="co-tile-wrapper" (click)="selectedChange.emit(selected)">
7751
7827
  <div class="co-tile-select-wrapper">
7752
- <co-input-radio-button [checked]="selected" (modelChange)="selectedChange.emit($event)"></co-input-radio-button>
7828
+ <co-input-radio-button [model]="selected" (modelChange)="selectedChange.emit($event)"></co-input-radio-button>
7753
7829
  </div>
7754
7830
  <div class="co-tile-content-wrapper">
7755
7831
  <ng-content></ng-content>
@@ -8016,6 +8092,7 @@ class TransactionTotalsComponent {
8016
8092
  constructor() {
8017
8093
  this.showDiscount = false;
8018
8094
  this.discountClick = new EventEmitter();
8095
+ this.showDiscountDialog = false;
8019
8096
  }
8020
8097
  showClass() {
8021
8098
  return true;
@@ -8027,337 +8104,978 @@ TransactionTotalsComponent.decorators = [
8027
8104
  template: `
8028
8105
  <div class="transaction-totals-wrapper">
8029
8106
  <span class="totals-gross label" [textContent]="'ORDER_GROSS' | localize"></span>
8030
- <span class="totals-gross value" [textContent]="totals?.grossAmount | coCurrency: true"></span>
8031
- <ng-container *ngIf="totals?.discountAmount">
8107
+ <span class="totals-gross value" [textContent]="transactionTotal?.grossAmount | coCurrency: true"></span>
8108
+ <ng-container *ngIf="transactionTotal?.discountAmount">
8032
8109
  <span class="totals-discount-amount label" [textContent]="'DISCOUNT_AMOUNT' | localize"></span>
8033
- <span class="totals-discount-amount value" [textContent]="totals?.discountAmount | coCurrency: true"></span>
8110
+ <span class="totals-discount-amount value" [class.transaction-negative-value]="transactionTotal?.discountAmount < 0" [textContent]="transactionTotal?.discountAmount | coCurrency: true"></span>
8034
8111
  </ng-container>
8035
- <ng-container *ngIf="totals?.transactionDiscountAmount">
8112
+ <ng-container *ngIf="transactionTotal?.transactionDiscountAmount">
8036
8113
  <span class="totals-discount label" [textContent]="'TRANSACTION_DISCOUNT' | localize"></span>
8037
- <span class="totals-discount value" [textContent]="totals?.transactionDiscountAmount | coCurrency: true"></span>
8114
+ <span class="totals-discount value" [class.transaction-negative-value]="transactionTotal?.transactionDiscountAmount < 0" [textContent]="transactionTotal?.transactionDiscountAmount | coCurrency: true"></span>
8038
8115
  </ng-container>
8039
- <ng-container *ngIf="totals?.transactionDiscountPercentage">
8116
+ <ng-container *ngIf="transactionTotal?.transactionDiscountPercentage">
8040
8117
  <span class="totals-discount-percentage label" [textContent]="'TRANSACTION_DISCOUNT_PERC' | localize"></span>
8041
- <span class="totals-discount-percentage value" [textContent]="totals?.transactionDiscountPercentage.toString() | append:' %'"></span>
8118
+ <span class="totals-discount-percentage value" [class.transaction-negative-value]="transactionTotal?.transactionDiscountPercentage < 0" [textContent]="transactionTotal?.transactionDiscountPercentage.toString() | append:' %'"></span>
8042
8119
  </ng-container>
8043
8120
  <span class="totals-net label" [textContent]="'ORDER_NET'| localize"></span>
8044
- <span class="totals-net value" [textContent]="totals?.netAmount | coCurrency: true"></span>
8045
- <a *ngIf="showDiscount" class="add-discount label" (click)="discountClick.emit($event)" [textContent]="'ADD_DISCOUNTS' | localize"></a>
8121
+ <span class="totals-net value" [textContent]="transactionTotal?.netAmount | coCurrency: true"></span>
8122
+ <a *ngIf="showDiscount" class="add-discount label" (click)="showDiscountDialog = true" [textContent]="'ADD_DISCOUNTS' | localize"></a>
8046
8123
  </div>
8124
+ <co-dialog-transaction-header-discount class="discount-dialog" *ngIf="showDiscountDialog"
8125
+ [transactionInfo]="transactionInfo"
8126
+ [transactionTotal]="transactionTotal"
8127
+ (close)="showDiscountDialog = false">
8128
+ </co-dialog-transaction-header-discount>
8047
8129
  `,
8048
8130
  encapsulation: ViewEncapsulation.None
8049
8131
  },] }
8050
8132
  ];
8051
8133
  TransactionTotalsComponent.propDecorators = {
8052
- totals: [{ type: Input }],
8134
+ transactionInfo: [{ type: Input }],
8135
+ transactionTotal: [{ type: Input }],
8053
8136
  showDiscount: [{ type: Input }],
8054
8137
  discountClick: [{ type: Output }],
8055
8138
  showClass: [{ type: HostBinding, args: ["class.co-transaction-totals",] }]
8056
8139
  };
8057
8140
 
8058
- class TransactionTotalsModule {
8059
- }
8060
- TransactionTotalsModule.decorators = [
8061
- { type: NgModule, args: [{
8062
- imports: [
8063
- CommonModule,
8064
- CoreModule,
8065
- PipeModule
8066
- ],
8067
- declarations: [
8068
- TransactionTotalsComponent
8069
- ],
8070
- exports: [
8071
- TransactionTotalsComponent
8072
- ]
8073
- },] }
8074
- ];
8075
-
8076
- class TransactionArticleTextComponent {
8077
- constructor(service) {
8078
- this.service = service;
8079
- this.closeClick = new EventEmitter();
8080
- this.cancelClick = new EventEmitter();
8081
- this.saveClick = new EventEmitter();
8082
- this.showOverviewDialog = false;
8083
- this.standardTexts = [];
8084
- this.documents = [];
8085
- this.fields = { text: "description", value: "textId" };
8086
- this.fieldsDocuments = { text: "description", value: "code" };
8087
- this.transactionAddTextLineRequest = new TransactionAddTextLineRequest();
8141
+ class TransactionHeaderBaseComponent extends TransactionFilterPopupBaseComponent {
8142
+ constructor() {
8143
+ super(...arguments);
8144
+ this.readonly = false;
8145
+ this._transactionInfo = new TransactionInfo();
8146
+ this._transactionTotal = new TransactionTotal();
8088
8147
  }
8089
- set transactionLine(value) {
8148
+ set transactionInfo(value) {
8090
8149
  if (value) {
8091
- this.transactionAddTextLineRequest.transactionUuid = value.uuid;
8092
- this.transactionAddTextLineRequest.text = value.text;
8150
+ this._transactionInfo = value;
8151
+ this.transactionInfoSet();
8093
8152
  }
8094
8153
  }
8095
- set articleRef(value) {
8154
+ get transactionInfo() {
8155
+ return this._transactionInfo;
8156
+ }
8157
+ set transactionTotal(value) {
8096
8158
  if (value) {
8097
- this._articleRef = value;
8159
+ this._transactionTotal = value;
8160
+ this.transactionTotalSet();
8098
8161
  }
8099
8162
  }
8100
- get articleRef() {
8101
- return this._articleRef;
8163
+ get transactionTotal() {
8164
+ return this._transactionTotal;
8102
8165
  }
8103
- set editText(value) {
8104
- this.transactionAddTextLineRequest.text = value;
8166
+ get model() {
8167
+ return this._transactionInfo;
8105
8168
  }
8106
- set articleLineNr(value) {
8107
- if (value) {
8108
- this.transactionAddTextLineRequest.refArticleLineNr = value;
8109
- }
8169
+ // overridden by descendents
8170
+ transactionInfoSet() {
8110
8171
  }
8111
- showClass() {
8112
- return true;
8172
+ // overridden by descendents
8173
+ transactionTotalSet() {
8113
8174
  }
8114
- ngOnInit() {
8115
- return __awaiter(this, void 0, void 0, function* () {
8116
- this.standardTexts = yield this.service.getStandardTexts("NL");
8117
- this.documents = yield this.service.getTextTypes("NL");
8118
- });
8175
+ }
8176
+ TransactionHeaderBaseComponent.decorators = [
8177
+ { type: Directive }
8178
+ ];
8179
+ TransactionHeaderBaseComponent.propDecorators = {
8180
+ transactionInfo: [{ type: Input }],
8181
+ transactionTotal: [{ type: Input }]
8182
+ };
8183
+
8184
+ class DialogTransactionHeaderBaseComponent extends TransactionHeaderBaseComponent {
8185
+ constructor() {
8186
+ super(...arguments);
8187
+ this.buttonType = AppPopupButtonType;
8188
+ this.close = new EventEmitter();
8119
8189
  }
8120
- onOkClick(event) {
8121
- this.saveClick.next(this.transactionAddTextLineRequest);
8190
+ onClose(eventType, output) {
8191
+ return;
8122
8192
  }
8123
- onCancelClick(event) {
8124
- this.cancelClick.next(event);
8193
+ handleValueChange(value) {
8194
+ this.value = value;
8125
8195
  }
8126
- onSelectStandardText(value) {
8127
- this.transactionAddTextLineRequest.text = (this.standardTexts.find(x => x.textId === value)).text;
8196
+ handleOkClick() {
8197
+ this.onClose(AppPopupButtonType.Ok, this.value);
8128
8198
  }
8129
- handleDocumentsChange(docs) {
8199
+ handleSearch(text) {
8200
+ this.searchText = text;
8201
+ }
8202
+ handleClose(type) {
8203
+ this.close.emit();
8204
+ this.onClose(type);
8130
8205
  }
8131
8206
  }
8132
- TransactionArticleTextComponent.decorators = [
8207
+ DialogTransactionHeaderBaseComponent.decorators = [
8208
+ { type: Directive }
8209
+ ];
8210
+ DialogTransactionHeaderBaseComponent.propDecorators = {
8211
+ close: [{ type: Output }]
8212
+ };
8213
+
8214
+ class DialogTransactionHeaderDiscountComponent extends DialogTransactionHeaderBaseComponent {
8215
+ constructor(_transactionService) {
8216
+ super();
8217
+ this._transactionService = _transactionService;
8218
+ }
8219
+ showClass() {
8220
+ return true;
8221
+ }
8222
+ redistributeDiscount() {
8223
+ return __awaiter(this, void 0, void 0, function* () {
8224
+ yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountAmount, this.transactionTotal.transactionDiscountAmount);
8225
+ });
8226
+ }
8227
+ }
8228
+ DialogTransactionHeaderDiscountComponent.decorators = [
8133
8229
  { type: Component, args: [{
8134
- selector: "co-transaction-article-text",
8230
+ selector: "co-dialog-transaction-header-discount",
8135
8231
  template: `
8136
- <co-dialog (closeClick)="closeClick.emit($event)" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
8137
- <div class="article-text-content-wrapper">
8138
- <div class="editor-wrapper">
8139
- <textarea class="article-text"
8140
- [(ngModel)]="transactionAddTextLineRequest.text"
8141
- ></textarea>
8232
+ <co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
8233
+ <div class="transaction-discount-wrapper co-transaction-small-toolbar">
8234
+ <div class="two-column-grid">
8235
+ <co-transaction-header-discount-percentage [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-percentage>
8236
+ <co-transaction-header-discount-amount [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-amount>
8142
8237
  </div>
8143
- <div class="option-wrapper">
8144
- <co-input-listbox
8145
- [collection]="documents"
8146
- [fields]="fieldsDocuments"
8147
- [placeholder]="'FOR_DOCUMENTS' | localize"
8148
- [value]="transactionAddTextLineRequest.showOnDocuments"
8149
- [showCheckbox]="true"
8150
- (modelChange)="handleDocumentsChange($event)"
8151
- ></co-input-listbox>
8152
- <co-drop-down-list
8153
- [collection]="standardTexts"
8154
- [fields]="fields"
8155
- [placeholder]="'STANDARD_TEXTS' | localize"
8156
- (modelChange)="onSelectStandardText($event)"
8157
- ></co-drop-down-list>
8238
+ <div class="two-column-grid">
8239
+ <co-transaction-header-discount-transaction-total [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-transaction-total>
8240
+ <div class="transaction-line-button custom-width" (click)="redistributeDiscount()">
8241
+ <span class="co-transaction-overflow-ellipsis transaction-discount"
8242
+ [textContent]="'REDISTRIBUTE_DISCOUNT' | localize"></span>
8243
+ </div>
8244
+ </div>
8245
+ <div class="transaction-discount-overview">
8246
+ <div class="transaction-discount-overview-item">
8247
+ <div class="title" [textContent]="'ORDER_GROSS' | localize"></div>
8248
+ <div class="value" [textContent]="transactionTotal.grossAmount | coCurrency"></div>
8249
+ </div>
8250
+ <div class="transaction-discount-overview-item">
8251
+ <div class="title" [textContent]="'DISCOUNT' | localize"></div>
8252
+ <div class="value" [class.transaction-negative-value]="transactionTotal.discountAmount < 0" [textContent]="transactionTotal.discountAmount | coCurrency"></div>
8253
+ </div>
8254
+ <div class="transaction-discount-overview-item">
8255
+ <div class="title" [textContent]="'ASSEMBLY_COSTS' | localize"></div>
8256
+ <div class="value" [class.transaction-negative-value]="transactionTotal.assemblyCosts < 0" [textContent]="transactionTotal.assemblyCosts | coCurrency"></div>
8257
+ </div>
8258
+ <div class="transaction-discount-overview-item">
8259
+ <div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
8260
+ <div class="value" [class.transaction-negative-value]="transactionTotal.surchargeAmount < 0" [textContent]="transactionTotal.surchargeAmount | coCurrency"></div>
8261
+ </div>
8262
+ <div class="transaction-discount-overview-item">
8263
+ <div class="title" [textContent]="'DELIVERY_COSTS' | localize"></div>
8264
+ <div class="value" [textContent]="'NOT_IMPLEMENTED_YET'"></div>
8265
+ </div>
8266
+ <div class="transaction-discount-overview-item total">
8267
+ <div class="title" [textContent]="'ORDER_NET' | localize"></div>
8268
+ <div class="value" [class.transaction-negative-value]="transactionTotal.netAmount < 0" [textContent]="transactionTotal.netAmount | coCurrency"></div>
8269
+ </div>
8158
8270
  </div>
8159
8271
  </div>
8160
8272
  </co-dialog>
8161
- <ng-template #headerTemplate><span [textContent]="header"></span></ng-template>
8162
- <ng-template #footerTemplate>
8163
- <div class="button-wrapper">
8164
- <co-button [label]="'OK' | localize" (click)="onOkClick($event)"></co-button>
8165
- <co-button [label]="'CANCEL' | localize " (click)="onCancelClick($event)"></co-button>
8166
- </div>
8273
+ <ng-template #dialogHeader>
8274
+ <div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
8167
8275
  </ng-template>
8168
-
8169
8276
  `,
8170
8277
  encapsulation: ViewEncapsulation.None
8171
8278
  },] }
8172
8279
  ];
8173
- TransactionArticleTextComponent.ctorParameters = () => [
8280
+ DialogTransactionHeaderDiscountComponent.ctorParameters = () => [
8174
8281
  { type: TransactionService }
8175
8282
  ];
8176
- TransactionArticleTextComponent.propDecorators = {
8177
- header: [{ type: Input }],
8178
- transactionLine: [{ type: Input }],
8179
- articleRef: [{ type: Input }],
8180
- editText: [{ type: Input }],
8181
- articleLineNr: [{ type: Input }],
8182
- closeClick: [{ type: Output }],
8183
- cancelClick: [{ type: Output }],
8184
- saveClick: [{ type: Output }],
8185
- showClass: [{ type: HostBinding, args: ["class.co-transaction-article-text",] }]
8283
+ DialogTransactionHeaderDiscountComponent.propDecorators = {
8284
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-header-discount",] }]
8186
8285
  };
8187
8286
 
8188
- class TransactionArticleTextModule {
8189
- }
8190
- TransactionArticleTextModule.decorators = [
8191
- { type: NgModule, args: [{
8192
- imports: [
8193
- CommonModule,
8194
- CoreModule,
8195
- FormsModule,
8196
- CoDialogModule,
8197
- InputCheckboxModule,
8198
- InputListboxModule,
8199
- DropDownModule,
8200
- ButtonModule,
8201
- PipeModule
8202
- ],
8203
- declarations: [
8204
- TransactionArticleTextComponent
8205
- ],
8206
- exports: [
8207
- TransactionArticleTextComponent
8208
- ]
8209
- },] }
8210
- ];
8211
-
8212
- // The different view modes for search
8213
- var SearchViewMode;
8214
- (function (SearchViewMode) {
8215
- SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
8216
- SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
8217
- })(SearchViewMode || (SearchViewMode = {}));
8287
+ class TransactionHeaderDiscountPercentageComponent extends TransactionHeaderBaseComponent {
8288
+ constructor(_transactionService) {
8289
+ super();
8290
+ this._transactionService = _transactionService;
8291
+ this.showLabel = true;
8292
+ this.defaultEditMode = true;
8293
+ this._editMode = false;
8294
+ }
8295
+ set child(content) {
8296
+ if (content) {
8297
+ this.input = content;
8298
+ this.input.commit = (amount) => this.commit(amount);
8299
+ if (this._editMode) {
8300
+ this.input.requestFocus();
8301
+ }
8302
+ }
8303
+ }
8304
+ set editMode(value) {
8305
+ this._editMode = value;
8306
+ if (this._editMode && this.input) {
8307
+ this.input.doFocus();
8308
+ }
8309
+ }
8310
+ get editMode() {
8311
+ return this._editMode;
8312
+ }
8313
+ handleClick(event) {
8314
+ event.preventDefault();
8315
+ event.stopPropagation();
8316
+ if (!this.readonly) {
8317
+ this.editMode = true;
8318
+ }
8319
+ }
8320
+ commit(amount) {
8321
+ return __awaiter(this, void 0, void 0, function* () {
8322
+ if (this.transactionTotal && this.transactionTotal.transactionDiscountPercentage !== amount) {
8323
+ const oldPercentage = this.transactionTotal.transactionDiscountPercentage;
8324
+ const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountPercentage, amount);
8325
+ if (!success) {
8326
+ this.input.model = amount;
8327
+ }
8328
+ return success;
8329
+ }
8330
+ return true;
8331
+ });
8332
+ }
8333
+ transactionSet() {
8334
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
8335
+ }
8336
+ }
8337
+ TransactionHeaderDiscountPercentageComponent.decorators = [
8338
+ { type: Component, args: [{
8339
+ selector: "co-transaction-header-discount-percentage",
8340
+ template: `
8341
+ <span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionTotal.transactionDiscountPercentage"></span>
8342
+ <co-input-text #input *ngIf="editMode || defaultEditMode"
8343
+ [type]="'number'"
8344
+ [placeholder]="showLabel ? ('DISCOUNT_PERCENTAGE' | localize) : ''"
8345
+ [showSaveCancel]="!readonly"
8346
+ [readonly]="readonly"
8347
+ [model]="transactionTotal.transactionDiscountPercentage"
8348
+ (blur)="editMode = false"
8349
+ ></co-input-text>
8350
+ `,
8351
+ encapsulation: ViewEncapsulation.None
8352
+ },] }
8353
+ ];
8354
+ TransactionHeaderDiscountPercentageComponent.ctorParameters = () => [
8355
+ { type: TransactionService }
8356
+ ];
8357
+ TransactionHeaderDiscountPercentageComponent.propDecorators = {
8358
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
8359
+ showLabel: [{ type: Input }],
8360
+ defaultEditMode: [{ type: Input }],
8361
+ editMode: [{ type: Input }],
8362
+ handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
8363
+ };
8218
8364
 
8219
- var SearchBarViewMode;
8220
- (function (SearchBarViewMode) {
8221
- SearchBarViewMode[SearchBarViewMode["Expanded"] = 0] = "Expanded";
8222
- SearchBarViewMode[SearchBarViewMode["Collapsed"] = 1] = "Collapsed";
8223
- })(SearchBarViewMode || (SearchBarViewMode = {}));
8224
- class TransactionSearchComponent {
8225
- constructor(transactionSearchService) {
8226
- this.transactionSearchService = transactionSearchService;
8227
- this.searchViewModes = SearchViewMode;
8228
- this.orientations = CoOrientation;
8229
- this.directionRight = CoDirection.Right;
8230
- this.transactionClick = new EventEmitter();
8231
- this.searchViewModeChange = new EventEmitter();
8365
+ class TransactionHeaderDiscountPercentageModule {
8366
+ }
8367
+ TransactionHeaderDiscountPercentageModule.decorators = [
8368
+ { type: NgModule, args: [{
8369
+ imports: [
8370
+ CommonModule,
8371
+ InputTextModule,
8372
+ PipeModule
8373
+ ],
8374
+ declarations: [
8375
+ TransactionHeaderDiscountPercentageComponent
8376
+ ],
8377
+ exports: [
8378
+ TransactionHeaderDiscountPercentageComponent
8379
+ ]
8380
+ },] }
8381
+ ];
8382
+
8383
+ class TransactionHeaderDiscountAmountComponent extends TransactionHeaderBaseComponent {
8384
+ constructor(_transactionService) {
8385
+ super();
8386
+ this._transactionService = _transactionService;
8387
+ this.showLabel = true;
8388
+ this.defaultEditMode = true;
8389
+ this._editMode = false;
8390
+ }
8391
+ set child(content) {
8392
+ if (content) {
8393
+ this.input = content;
8394
+ this.input.commit = (amount) => this.commit(amount);
8395
+ if (this._editMode) {
8396
+ this.input.requestFocus();
8397
+ }
8398
+ }
8399
+ }
8400
+ set editMode(value) {
8401
+ this._editMode = value;
8402
+ if (this._editMode && this.input) {
8403
+ this.input.doFocus();
8404
+ }
8405
+ }
8406
+ get editMode() {
8407
+ return this._editMode;
8408
+ }
8409
+ handleClick(event) {
8410
+ event.preventDefault();
8411
+ event.stopPropagation();
8412
+ if (!this.readonly) {
8413
+ this.editMode = true;
8414
+ }
8415
+ }
8416
+ commit(amount) {
8417
+ return __awaiter(this, void 0, void 0, function* () {
8418
+ if (this.transactionTotal && this.transactionTotal.transactionDiscountAmount !== amount) {
8419
+ const oldAmount = this.transactionTotal.transactionDiscountAmount;
8420
+ const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountAmount, amount);
8421
+ if (!success) {
8422
+ this.input.model = amount;
8423
+ }
8424
+ return success;
8425
+ }
8426
+ return true;
8427
+ });
8428
+ }
8429
+ transactionSet() {
8430
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
8431
+ }
8432
+ }
8433
+ TransactionHeaderDiscountAmountComponent.decorators = [
8434
+ { type: Component, args: [{
8435
+ selector: "co-transaction-header-discount-amount",
8436
+ template: `
8437
+ <span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionTotal.transactionDiscountAmount"></span>
8438
+ <co-input-text #input *ngIf="editMode || defaultEditMode"
8439
+ [type]="'number'"
8440
+ [placeholder]="showLabel ? ('DISCOUNT_AMOUNT' | localize) : ''"
8441
+ [showSaveCancel]="!readonly"
8442
+ [readonly]="readonly"
8443
+ [model]="transactionTotal.transactionDiscountAmount"
8444
+ (blur)="editMode = false"
8445
+ ></co-input-text>
8446
+ `,
8447
+ encapsulation: ViewEncapsulation.None
8448
+ },] }
8449
+ ];
8450
+ TransactionHeaderDiscountAmountComponent.ctorParameters = () => [
8451
+ { type: TransactionService }
8452
+ ];
8453
+ TransactionHeaderDiscountAmountComponent.propDecorators = {
8454
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
8455
+ showLabel: [{ type: Input }],
8456
+ defaultEditMode: [{ type: Input }],
8457
+ editMode: [{ type: Input }],
8458
+ handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
8459
+ };
8460
+
8461
+ class TransactionHeaderDiscountAmountModule {
8462
+ }
8463
+ TransactionHeaderDiscountAmountModule.decorators = [
8464
+ { type: NgModule, args: [{
8465
+ imports: [
8466
+ CommonModule,
8467
+ InputTextModule,
8468
+ PipeModule
8469
+ ],
8470
+ declarations: [
8471
+ TransactionHeaderDiscountAmountComponent
8472
+ ],
8473
+ exports: [
8474
+ TransactionHeaderDiscountAmountComponent
8475
+ ]
8476
+ },] }
8477
+ ];
8478
+
8479
+ class TransactionHeaderDiscountTransactionTotalComponent extends TransactionHeaderBaseComponent {
8480
+ constructor(_transactionService) {
8481
+ super();
8482
+ this._transactionService = _transactionService;
8483
+ this.showLabel = true;
8484
+ this.defaultEditMode = true;
8485
+ this._editMode = false;
8486
+ }
8487
+ set child(content) {
8488
+ if (content) {
8489
+ this.input = content;
8490
+ this.input.commit = (amount) => this.commit(amount);
8491
+ if (this._editMode) {
8492
+ this.input.requestFocus();
8493
+ }
8494
+ }
8495
+ }
8496
+ set editMode(value) {
8497
+ this._editMode = value;
8498
+ if (this._editMode && this.input) {
8499
+ this.input.doFocus();
8500
+ }
8501
+ }
8502
+ get editMode() {
8503
+ return this._editMode;
8504
+ }
8505
+ handleClick(event) {
8506
+ event.preventDefault();
8507
+ event.stopPropagation();
8508
+ if (!this.readonly) {
8509
+ this.editMode = true;
8510
+ }
8511
+ }
8512
+ commit(amount) {
8513
+ return __awaiter(this, void 0, void 0, function* () {
8514
+ if (this.transactionTotalAmount !== amount) {
8515
+ const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.OrderTotal, amount);
8516
+ if (!success) {
8517
+ this.input.model = amount;
8518
+ }
8519
+ else {
8520
+ this.transactionTotalAmount = undefined;
8521
+ }
8522
+ return success;
8523
+ }
8524
+ return true;
8525
+ });
8526
+ }
8527
+ transactionSet() {
8528
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
8529
+ }
8530
+ }
8531
+ TransactionHeaderDiscountTransactionTotalComponent.decorators = [
8532
+ { type: Component, args: [{
8533
+ selector: "co-transaction-header-discount-transaction-total",
8534
+ template: `
8535
+ <co-input-text #input *ngIf="editMode || defaultEditMode"
8536
+ [type]="'number'"
8537
+ [placeholder]="showLabel ? ('TRANSACTION_TOTAL' | localize) : ''"
8538
+ [showSaveCancel]="!readonly"
8539
+ [readonly]="readonly"
8540
+ [(model)]="transactionTotalAmount"
8541
+ (blur)="editMode = false"
8542
+ ></co-input-text>
8543
+ `,
8544
+ encapsulation: ViewEncapsulation.None
8545
+ },] }
8546
+ ];
8547
+ TransactionHeaderDiscountTransactionTotalComponent.ctorParameters = () => [
8548
+ { type: TransactionService }
8549
+ ];
8550
+ TransactionHeaderDiscountTransactionTotalComponent.propDecorators = {
8551
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
8552
+ showLabel: [{ type: Input }],
8553
+ defaultEditMode: [{ type: Input }],
8554
+ editMode: [{ type: Input }],
8555
+ handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
8556
+ };
8557
+
8558
+ class TransactionHeaderDiscountTransactionTotalModule {
8559
+ }
8560
+ TransactionHeaderDiscountTransactionTotalModule.decorators = [
8561
+ { type: NgModule, args: [{
8562
+ imports: [
8563
+ CommonModule,
8564
+ InputTextModule,
8565
+ PipeModule
8566
+ ],
8567
+ declarations: [
8568
+ TransactionHeaderDiscountTransactionTotalComponent
8569
+ ],
8570
+ exports: [
8571
+ TransactionHeaderDiscountTransactionTotalComponent
8572
+ ]
8573
+ },] }
8574
+ ];
8575
+
8576
+ class DialogTransactionHeaderDiscountModule {
8577
+ }
8578
+ DialogTransactionHeaderDiscountModule.decorators = [
8579
+ { type: NgModule, args: [{
8580
+ imports: [
8581
+ CommonModule,
8582
+ CoDialogModule,
8583
+ TransactionHeaderDiscountPercentageModule,
8584
+ TransactionHeaderDiscountAmountModule,
8585
+ TransactionHeaderDiscountTransactionTotalModule,
8586
+ PipeModule
8587
+ ],
8588
+ declarations: [
8589
+ DialogTransactionHeaderDiscountComponent
8590
+ ],
8591
+ exports: [
8592
+ DialogTransactionHeaderDiscountComponent
8593
+ ]
8594
+ },] }
8595
+ ];
8596
+
8597
+ class TransactionTotalsModule {
8598
+ }
8599
+ TransactionTotalsModule.decorators = [
8600
+ { type: NgModule, args: [{
8601
+ imports: [
8602
+ CommonModule,
8603
+ CoreModule,
8604
+ PipeModule,
8605
+ DialogTransactionHeaderDiscountModule
8606
+ ],
8607
+ declarations: [
8608
+ TransactionTotalsComponent
8609
+ ],
8610
+ exports: [
8611
+ TransactionTotalsComponent
8612
+ ]
8613
+ },] }
8614
+ ];
8615
+
8616
+ class TransactionImageService {
8617
+ constructor(_connector) {
8618
+ this._connector = _connector;
8619
+ this._articleImageCache = new Map();
8620
+ }
8621
+ retrieveLineImage(line) {
8622
+ return __awaiter(this, void 0, void 0, function* () {
8623
+ return yield this.getArticleImageByArticleNumber(line.articleNumber);
8624
+ });
8625
+ }
8626
+ getArticleImageByArticleNumber(articleNumber) {
8627
+ return __awaiter(this, void 0, void 0, function* () {
8628
+ if (this._articleImageCache.has(articleNumber)) {
8629
+ return this._articleImageCache.get(articleNumber);
8630
+ }
8631
+ const goodId = yield this._connector.getGoodIdFromArticleNr(articleNumber).catch((error) => {
8632
+ console.error(error);
8633
+ return null;
8634
+ });
8635
+ const image = yield this.getArticleImageByGoodId(goodId);
8636
+ this._articleImageCache.set(articleNumber, image);
8637
+ return image;
8638
+ });
8639
+ }
8640
+ getArticleImageByGoodId(goodId) {
8641
+ return __awaiter(this, void 0, void 0, function* () {
8642
+ if (!isNaN(goodId)) {
8643
+ return this._connector.getSingleImage(goodId, 1, true, true).catch((error) => {
8644
+ console.error(error);
8645
+ return "";
8646
+ });
8647
+ }
8648
+ else {
8649
+ return "";
8650
+ }
8651
+ });
8652
+ }
8653
+ }
8654
+ TransactionImageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionImageService_Factory() { return new TransactionImageService(i0.ɵɵinject(TransactionConnectorService)); }, token: TransactionImageService, providedIn: "root" });
8655
+ TransactionImageService.decorators = [
8656
+ { type: Injectable, args: [{
8657
+ providedIn: "root"
8658
+ },] }
8659
+ ];
8660
+ TransactionImageService.ctorParameters = () => [
8661
+ { type: TransactionConnectorService }
8662
+ ];
8663
+
8664
+ class TransactionLineImageAndDescriptionComponent {
8665
+ constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
8666
+ this.service = service;
8667
+ this.iconCacheService = iconCacheService;
8668
+ this._dialogService = _dialogService;
8669
+ this._dictionaryService = _dictionaryService;
8670
+ this._imageService = _imageService;
8671
+ this.icons = Icon;
8672
+ this.popUpView = false;
8673
+ this.preview = false;
8674
+ this.openArticleTextClicked = new EventEmitter();
8675
+ this.handleDeleteLine = new EventEmitter();
8232
8676
  }
8233
- set transactionType(value) {
8234
- this._transactionType = value;
8235
- this.transactionSearchService.transactionType = this._transactionType;
8677
+ set line(value) {
8678
+ this._line = value;
8679
+ this._loadLineImage();
8236
8680
  }
8237
- get transactionType() {
8238
- return this._transactionType;
8681
+ get line() {
8682
+ return this._line;
8239
8683
  }
8240
8684
  showClass() {
8241
8685
  return true;
8242
8686
  }
8243
- onTransactionClick(transaction) {
8244
- if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
8245
- this.collapseSearchBar();
8687
+ handleOpenArticleText(text) {
8688
+ this.openArticleTextClicked.next(text);
8689
+ }
8690
+ deleteTransactionLineClick() {
8691
+ return __awaiter(this, void 0, void 0, function* () {
8692
+ this.handleDeleteLine.next();
8693
+ });
8694
+ }
8695
+ _loadLineImage() {
8696
+ return __awaiter(this, void 0, void 0, function* () {
8697
+ if (this.line && this.line.isArticle) {
8698
+ this._imageService.retrieveLineImage(this.line).then((image) => {
8699
+ this.image = image;
8700
+ });
8701
+ }
8702
+ });
8703
+ }
8704
+ }
8705
+ TransactionLineImageAndDescriptionComponent.decorators = [
8706
+ { type: Component, args: [{
8707
+ selector: "co-transaction-line-image-and-description",
8708
+ template: `
8709
+ <div class="transaction-line-image" [class.preview]="preview">
8710
+ <co-image-display [model]="image"></co-image-display>
8711
+ </div>
8712
+ <div class="transaction-line-description">
8713
+ <div class="description-wrapper">
8714
+ <co-transaction-line-description class="transaction-line-description-description"
8715
+ [transactionLine]="line"
8716
+ [defaultEditMode]="false"
8717
+ [showLabel]="false"
8718
+ ></co-transaction-line-description>
8719
+ <div class="transaction-line-article-number-wrapper" *ngIf="!popUpView">
8720
+ <span *ngIf="line.goodDescription && line.articleNumber">|</span>
8721
+ <span [textContent]="line.articleNumber"></span>
8722
+ <co-icon class="delete-icon" [iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
8723
+ (click)="deleteTransactionLineClick()"></co-icon>
8724
+ </div>
8725
+ </div>
8726
+ <div *ngIf="!preview && !popUpView" class="article-text-wrapper">
8727
+ <div class="article-text" *ngFor="let text of line.articleTestAsArray">
8728
+ <span [innerHTML]="text | safeHtml" (dblclick)="handleOpenArticleText(text)"></span>
8729
+ </div>
8730
+ </div>
8731
+ <div *ngIf="!preview && !popUpView">
8732
+ <span [innerHTML]="line.configurationReadable"></span>
8733
+ </div>
8734
+ </div>
8735
+ `,
8736
+ encapsulation: ViewEncapsulation.None
8737
+ },] }
8738
+ ];
8739
+ TransactionLineImageAndDescriptionComponent.ctorParameters = () => [
8740
+ { type: TransactionService },
8741
+ { type: IconCacheService },
8742
+ { type: DialogService },
8743
+ { type: DictionaryService },
8744
+ { type: TransactionImageService }
8745
+ ];
8746
+ TransactionLineImageAndDescriptionComponent.propDecorators = {
8747
+ line: [{ type: Input }],
8748
+ popUpView: [{ type: Input }],
8749
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-line-image-and-description",] }],
8750
+ preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
8751
+ openArticleTextClicked: [{ type: Output }],
8752
+ handleDeleteLine: [{ type: Output }]
8753
+ };
8754
+
8755
+ class TransactionLineDescriptionComponent extends TransactionLineBaseComponent {
8756
+ constructor(iconCacheService, _transactionService) {
8757
+ super();
8758
+ this.iconCacheService = iconCacheService;
8759
+ this._transactionService = _transactionService;
8760
+ this.icons = Icon;
8761
+ this.showLabel = true;
8762
+ this.defaultEditMode = true;
8763
+ this._editMode = false;
8764
+ }
8765
+ set child(content) {
8766
+ if (content) {
8767
+ this.input = content;
8768
+ this.input.commit = (description) => this.commit(description);
8769
+ if (this._editMode) {
8770
+ this.input.requestFocus();
8771
+ }
8246
8772
  }
8247
- this._scrollToTop();
8248
- this.transactionClick.emit(transaction);
8249
8773
  }
8250
- onSearchViewResizeClick() {
8251
- if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
8252
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
8774
+ set editMode(value) {
8775
+ this._editMode = value;
8776
+ if (this._editMode && this.input) {
8777
+ this.input.doFocus();
8253
8778
  }
8254
- else {
8255
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
8779
+ }
8780
+ get editMode() {
8781
+ return this._editMode;
8782
+ }
8783
+ handleClick(event) {
8784
+ event.preventDefault();
8785
+ event.stopPropagation();
8786
+ if (!this.readonly) {
8787
+ this.editMode = true;
8788
+ }
8789
+ }
8790
+ commit(description) {
8791
+ return __awaiter(this, void 0, void 0, function* () {
8792
+ if (this.transactionLine.goodDescription !== description) {
8793
+ const oldDescription = this.transactionLine.goodDescription;
8794
+ const success = yield this._transactionService.updateGoodDescriptionTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, description);
8795
+ if (!success) {
8796
+ this.input.model = oldDescription;
8797
+ }
8798
+ return success;
8799
+ }
8800
+ return true;
8801
+ });
8802
+ }
8803
+ transactionLineSet() {
8804
+ this.readonly = this.readonly || !this.transactionLine.articleFreeDescription;
8805
+ }
8806
+ }
8807
+ TransactionLineDescriptionComponent.decorators = [
8808
+ { type: Component, args: [{
8809
+ selector: "co-transaction-line-description",
8810
+ template: `
8811
+ <div class="co-transaction-default-flex-row" *ngIf="(!editMode || readonly) && !defaultEditMode">
8812
+ <div class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.goodDescription"></div>
8813
+ <co-icon [iconData]="iconCacheService.getIcon(icons.EditPencil)" *ngIf="!readonly && !editMode" (click)="editMode = true"></co-icon>
8814
+ </div>
8815
+ <co-input-text #input *ngIf="editMode || defaultEditMode"
8816
+ [placeholder]="showLabel ? ('GOOD_DESCRIPTION' | localize) : ''"
8817
+ [showSaveCancel]="!readonly"
8818
+ [readonly]="readonly"
8819
+ [model]="transactionLine.goodDescription"
8820
+ (blur)="editMode = false"
8821
+ ></co-input-text>
8822
+ `,
8823
+ encapsulation: ViewEncapsulation.None
8824
+ },] }
8825
+ ];
8826
+ TransactionLineDescriptionComponent.ctorParameters = () => [
8827
+ { type: IconCacheService },
8828
+ { type: TransactionService }
8829
+ ];
8830
+ TransactionLineDescriptionComponent.propDecorators = {
8831
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
8832
+ showLabel: [{ type: Input }],
8833
+ defaultEditMode: [{ type: Input }],
8834
+ editMode: [{ type: Input }],
8835
+ handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
8836
+ };
8837
+
8838
+ class TransactionLineDescriptionModule {
8839
+ }
8840
+ TransactionLineDescriptionModule.decorators = [
8841
+ { type: NgModule, args: [{
8842
+ imports: [
8843
+ CommonModule,
8844
+ InputTextModule,
8845
+ PipeModule,
8846
+ IconModule
8847
+ ],
8848
+ declarations: [
8849
+ TransactionLineDescriptionComponent
8850
+ ],
8851
+ exports: [
8852
+ TransactionLineDescriptionComponent
8853
+ ]
8854
+ },] }
8855
+ ];
8856
+
8857
+ class TransactionLineImageAndDescriptionModule {
8858
+ }
8859
+ TransactionLineImageAndDescriptionModule.decorators = [
8860
+ { type: NgModule, args: [{
8861
+ imports: [
8862
+ CommonModule,
8863
+ IconModule,
8864
+ TransactionLineDescriptionModule,
8865
+ CoreModule,
8866
+ PipeModule
8867
+ ],
8868
+ declarations: [
8869
+ TransactionLineImageAndDescriptionComponent
8870
+ ],
8871
+ exports: [
8872
+ TransactionLineImageAndDescriptionComponent
8873
+ ]
8874
+ },] }
8875
+ ];
8876
+
8877
+ class TransactionArticleTextComponent {
8878
+ constructor(transactionService, iconCacheService, _dictionaryService) {
8879
+ this.transactionService = transactionService;
8880
+ this.iconCacheService = iconCacheService;
8881
+ this._dictionaryService = _dictionaryService;
8882
+ this.closeClick = new EventEmitter();
8883
+ this.cancelClick = new EventEmitter();
8884
+ this.saveClick = new EventEmitter();
8885
+ this.icon = Icon;
8886
+ this.showOverviewDialog = false;
8887
+ this.standardTexts = [];
8888
+ this.documents = [];
8889
+ this.fields = { text: "description", value: "textId" };
8890
+ this.fieldsDocuments = { text: "description", value: "code" };
8891
+ this.textAreaPlaceholder = this._dictionaryService.get("TYPE_OR_SEARCH_TEXT", true);
8892
+ this.searchIcon = this.iconCacheService.getIcon(this.icon.Magnifier);
8893
+ this.showDropdown = false;
8894
+ this.transactionAddTextLineRequest = new TransactionAddTextLineRequest();
8895
+ }
8896
+ set transactionLine(value) {
8897
+ if (value) {
8898
+ this._transactionLine = value;
8899
+ this.transactionAddTextLineRequest.transactionUuid = value.uuid;
8900
+ this.transactionAddTextLineRequest.text = value.text;
8901
+ }
8902
+ }
8903
+ get transactionLine() {
8904
+ return this._transactionLine;
8905
+ }
8906
+ set articleRef(value) {
8907
+ if (value) {
8908
+ this._articleRef = value;
8909
+ }
8910
+ }
8911
+ get articleRef() {
8912
+ return this._articleRef;
8913
+ }
8914
+ set editText(value) {
8915
+ this.transactionAddTextLineRequest.text = value;
8916
+ }
8917
+ set articleLineNr(value) {
8918
+ if (value) {
8919
+ this.transactionAddTextLineRequest.refArticleLineNr = value;
8256
8920
  }
8257
- this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
8258
8921
  }
8259
- onSideCollapseHandleClick() {
8260
- this.toggleSearchBar();
8922
+ showClass() {
8923
+ return true;
8261
8924
  }
8262
- toggleSearchBar() {
8263
- if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
8264
- this.expandSearchBar();
8265
- }
8266
- else {
8267
- this.collapseSearchBar();
8268
- }
8925
+ ngOnInit() {
8926
+ return __awaiter(this, void 0, void 0, function* () {
8927
+ this.standardTexts = yield this.transactionService.getStandardTexts("NL");
8928
+ this.documents = yield this.transactionService.getTextTypes("NL");
8929
+ });
8269
8930
  }
8270
- collapseSearchBar() {
8271
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
8272
- this.transactionSearchService.activeSearchBarViewMode = SearchBarViewMode.Collapsed;
8273
- this.searchViewModeChange.emit(this.searchViewModes.SideBar);
8931
+ onOkClick(event) {
8932
+ this.saveClick.next(this.transactionAddTextLineRequest);
8274
8933
  }
8275
- expandSearchBar() {
8276
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
8277
- this.transactionSearchService.activeSearchBarViewMode = SearchBarViewMode.Expanded;
8278
- this.searchViewModeChange.emit(this.searchViewModes.SideBar);
8934
+ onCancelClick(event) {
8935
+ this.cancelClick.next(event);
8279
8936
  }
8280
- calculateClasses() {
8281
- return {
8282
- 'fullscreen': this.transactionSearchService.fullscreen,
8283
- 'sidebar': !this.transactionSearchService.fullscreen,
8284
- 'collapsed': this.transactionSearchService.collapsed,
8285
- 'expanded': !this.transactionSearchService.collapsed,
8286
- };
8937
+ onSelectStandardText(value) {
8938
+ this.transactionAddTextLineRequest.text = (this.standardTexts.find(x => x.textId === value)).text;
8287
8939
  }
8288
- _scrollToTop() {
8289
- window.scrollTo({ top: 0, behavior: 'smooth' });
8940
+ handleDocumentsChange(docs) {
8941
+ }
8942
+ showStandardTextsDropdown() {
8943
+ this.showDropdown = true;
8290
8944
  }
8291
8945
  }
8292
- TransactionSearchComponent.decorators = [
8946
+ TransactionArticleTextComponent.decorators = [
8293
8947
  { type: Component, args: [{
8294
- selector: 'co-transaction-search',
8948
+ selector: "co-transaction-article-text",
8295
8949
  template: `
8296
- <div class="transaction-search-main-wrapper">
8297
- <div class="transaction-search-wrapper"
8298
- [ngClass]="calculateClasses()">
8299
- <div class="transaction-filter-wrapper narrow-scrollbar"
8300
- [ngClass]="calculateClasses()"
8301
- *ngIf="transactionSearchService.showFilterSidebar" @showHideFilterSidebar>
8302
- <co-transaction-filter
8303
- [transactionType]="transactionType"
8304
- [activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
8305
- (closeButtonClick)="transactionSearchService.handleHideFilter()"
8306
- (resetFilterClick)="transactionSearchService.handleResetFilter()"></co-transaction-filter>
8950
+ <co-dialog (closeClick)="closeClick.emit($event)" [headerTemplate]="headerTemplate"
8951
+ [footerTemplate]="footerTemplate">
8952
+ <div class="article-image-description-wrapper">
8953
+ <co-transaction-line-image-and-description
8954
+ [line]="transactionLine"
8955
+ [popUpView]="true">
8956
+ </co-transaction-line-image-and-description>
8957
+ </div>
8958
+
8959
+ <div class="standard-texts-dropdown-wrapper">
8960
+ <co-drop-down-list
8961
+ @showStandardTextsDropdown
8962
+ *ngIf="showDropdown"
8963
+ [collection]="standardTexts"
8964
+ [fields]="fields"
8965
+ [placeholder]="'STANDARD_TEXTS' | localize"
8966
+ (modelChange)="onSelectStandardText($event)"
8967
+ ></co-drop-down-list>
8968
+ </div>
8969
+
8970
+ <div class="article-text-content-wrapper">
8971
+ <div class="editor-wrapper">
8972
+ <co-button class="search-button"
8973
+ [iconData]="searchIcon"
8974
+ (onClick)="showStandardTextsDropdown()">
8975
+ </co-button>
8976
+ <textarea class="article-text"
8977
+ [placeholder]="textAreaPlaceholder"
8978
+ [(ngModel)]="transactionAddTextLineRequest.text"
8979
+ ></textarea>
8307
8980
  </div>
8308
- <div class="transaction-search-result-wrapper"
8309
- [class.fullscreen]="transactionSearchService.fullscreen"
8310
- [class.sidebar]="!transactionSearchService.fullscreen"
8311
- [class.collapsed]="transactionSearchService.collapsed"
8312
- [class.expanded]="!transactionSearchService.collapsed"
8313
- >
8314
- <co-transaction-search-result
8315
- [transactionType]="transactionType"
8316
- [activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
8317
- (filterClick)="transactionSearchService.toggleFilter()"
8318
- (transactionClick)="onTransactionClick($event)"
8319
- (resizeClick)="onSearchViewResizeClick()"
8320
- (closeClick)="collapseSearchBar()"
8321
- ></co-transaction-search-result>
8981
+ <div class="option-wrapper">
8982
+ <co-input-listbox
8983
+ [collection]="documents"
8984
+ [fields]="fieldsDocuments"
8985
+ [placeholder]="'FOR_DOCUMENTS' | localize"
8986
+ [value]="transactionAddTextLineRequest.showOnDocuments"
8987
+ [showCheckbox]="true"
8988
+ [fullWidth]="true"
8989
+ (modelChange)="handleDocumentsChange($event)"
8990
+ ></co-input-listbox>
8322
8991
  </div>
8323
8992
  </div>
8324
- <div class="transaction-search-content-wrapper"
8325
- [class.fullscreen]="transactionSearchService.fullscreen"
8326
- [class.sidebar]="!transactionSearchService.fullscreen"
8327
- [class.collapsed]="transactionSearchService.collapsed"
8328
- [class.expanded]="!transactionSearchService.collapsed"
8329
- >
8330
- <ng-content></ng-content>
8993
+ </co-dialog>
8994
+
8995
+ <ng-template #headerTemplate>
8996
+ <span class="bold" [textContent]="header"></span>
8997
+ </ng-template>
8998
+ <ng-template #footerTemplate>
8999
+ <div class="button-wrapper">
9000
+ <co-button [label]="'OK' | localize" (click)="onOkClick($event)"></co-button>
9001
+ <co-button [label]="'CANCEL' | localize " (click)="onCancelClick($event)"></co-button>
8331
9002
  </div>
8332
- </div>
9003
+ </ng-template>
8333
9004
  `,
8334
9005
  animations: [
8335
- trigger("showHideFilterSidebar", [
8336
- state("void", style({ transform: 'translateX(-100%)' })),
8337
- state("*", style({ transform: 'translateX(0)' })),
9006
+ trigger("showStandardTextsDropdown", [
9007
+ state("void", style({ transform: 'translateY(-100%)', opacity: 0 })),
9008
+ state("*", style({ transform: 'translateY(0)', opacity: 1 })),
8338
9009
  transition("void <=> *", animate("200ms ease-in-out"))
8339
9010
  ])
8340
9011
  ],
8341
9012
  encapsulation: ViewEncapsulation.None
8342
9013
  },] }
8343
9014
  ];
8344
- TransactionSearchComponent.ctorParameters = () => [
8345
- { type: TransactionSearchService }
9015
+ TransactionArticleTextComponent.ctorParameters = () => [
9016
+ { type: TransactionService },
9017
+ { type: IconCacheService },
9018
+ { type: DictionaryService }
8346
9019
  ];
8347
- TransactionSearchComponent.propDecorators = {
8348
- transactionType: [{ type: Input }],
8349
- transactionClick: [{ type: Output }],
8350
- searchViewModeChange: [{ type: Output }],
8351
- showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
9020
+ TransactionArticleTextComponent.propDecorators = {
9021
+ header: [{ type: Input }],
9022
+ transactionLine: [{ type: Input }],
9023
+ articleRef: [{ type: Input }],
9024
+ editText: [{ type: Input }],
9025
+ articleLineNr: [{ type: Input }],
9026
+ closeClick: [{ type: Output }],
9027
+ cancelClick: [{ type: Output }],
9028
+ saveClick: [{ type: Output }],
9029
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-article-text",] }]
8352
9030
  };
8353
9031
 
9032
+ class TransactionArticleTextModule {
9033
+ }
9034
+ TransactionArticleTextModule.decorators = [
9035
+ { type: NgModule, args: [{
9036
+ imports: [
9037
+ CommonModule,
9038
+ CoreModule,
9039
+ FormsModule,
9040
+ CoDialogModule,
9041
+ InputCheckboxModule,
9042
+ InputListboxModule,
9043
+ DropDownModule,
9044
+ ButtonModule,
9045
+ PipeModule,
9046
+ InputSearchModule,
9047
+ TransactionLineImageAndDescriptionModule
9048
+ ],
9049
+ declarations: [
9050
+ TransactionArticleTextComponent
9051
+ ],
9052
+ exports: [
9053
+ TransactionArticleTextComponent
9054
+ ]
9055
+ },] }
9056
+ ];
9057
+
9058
+ // The different view modes for search
9059
+ var SearchViewMode;
9060
+ (function (SearchViewMode) {
9061
+ SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
9062
+ SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
9063
+ })(SearchViewMode || (SearchViewMode = {}));
9064
+
9065
+ // The different view modes for search
9066
+ var SearchbarViewMode;
9067
+ (function (SearchbarViewMode) {
9068
+ SearchbarViewMode[SearchbarViewMode["Expanded"] = 0] = "Expanded";
9069
+ SearchbarViewMode[SearchbarViewMode["Collapsed"] = 1] = "Collapsed";
9070
+ })(SearchbarViewMode || (SearchbarViewMode = {}));
9071
+
8354
9072
  class TransactionSearchService {
8355
9073
  constructor(_transactionService) {
8356
9074
  this._transactionService = _transactionService;
8357
9075
  this.searchRequest = new TransactionSearchViewRequest();
8358
9076
  this.previousSearchRequest = new TransactionSearchViewRequest();
8359
9077
  this.activeSearchViewMode = SearchViewMode.FullScreen;
8360
- this.activeSearchBarViewMode = SearchBarViewMode.Expanded;
9078
+ this.activeSearchBarViewMode = SearchbarViewMode.Expanded;
8361
9079
  this.showFilterSidebar = false;
8362
9080
  this.transactions = [];
8363
9081
  this.labelBasedOnTransactionType = new Map([
@@ -8422,7 +9140,7 @@ class TransactionSearchService {
8422
9140
  return this.activeSearchViewMode === SearchViewMode.FullScreen;
8423
9141
  }
8424
9142
  get collapsed() {
8425
- return this.activeSearchBarViewMode === SearchBarViewMode.Collapsed;
9143
+ return this.activeSearchBarViewMode === SearchbarViewMode.Collapsed;
8426
9144
  }
8427
9145
  toggleFilter() {
8428
9146
  this.showFilterSidebar = !this.showFilterSidebar;
@@ -8839,7 +9557,7 @@ TransactionSearchPurchaseOrderTileComponent.decorators = [
8839
9557
  <div class="status-bar-wrapper">
8840
9558
  <co-transaction-statusbar [transaction]="transaction" [transactionKind]="transaction.transactionKind"></co-transaction-statusbar>
8841
9559
  </div>
8842
- <div class="header"><span [textContent]="transaction.totalPriceWithVat | currency:'EUR'"></span></div>
9560
+ <div class="header total-price-vat"><span [textContent]="transaction.totalPriceWithVat | currency:'EUR'"></span></div>
8843
9561
  </div>
8844
9562
  </div>
8845
9563
  <div class="tile-body">
@@ -9063,22 +9781,37 @@ TransactionBaseComponent.propDecorators = {
9063
9781
  };
9064
9782
 
9065
9783
  class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseComponent {
9784
+ constructor() {
9785
+ super(...arguments);
9786
+ this.purchaseOrderConfirmation = new GetPurchaseOrderConfirmation();
9787
+ }
9066
9788
  showClass() {
9067
9789
  return true;
9068
9790
  }
9791
+ confirmFullOrder() {
9792
+ if (this.purchaseOrderConfirmation.confirmationDate && this.purchaseOrderConfirmation.reference) {
9793
+ this.purchaseOrderConfirmation.transId = this.service.currentTransaction.transactionInfo.transactionNr;
9794
+ this.service.purchaseOrderConfirmation(this.purchaseOrderConfirmation);
9795
+ }
9796
+ }
9069
9797
  }
9070
9798
  TransactionQuickAccessOrderConfirmationComponent.decorators = [
9071
9799
  { type: Component, args: [{
9072
9800
  selector: "co-transaction-quick-access-order-confirmation",
9073
9801
  template: `
9074
9802
  <co-input-date
9075
- [model]=""
9803
+ [(model)]="purchaseOrderConfirmation.confirmationDate"
9076
9804
  [placeholder]="'CONFIRMED_DATE' | localize"
9077
9805
  ></co-input-date>
9078
9806
  <co-input-text
9807
+ [(model)]="purchaseOrderConfirmation.reference"
9079
9808
  [placeholder]="'REFERENCE' | localize"
9080
9809
  ></co-input-text>
9081
- <co-input-checkbox
9810
+ <co-input-text
9811
+ [(model)]="purchaseOrderConfirmation.leverbatch"
9812
+ [placeholder]="'BATCH' | localize"
9813
+ ></co-input-text>
9814
+ <co-input-checkbox (modelChange)="confirmFullOrder()"
9082
9815
  ></co-input-checkbox>
9083
9816
  `,
9084
9817
  encapsulation: ViewEncapsulation.None
@@ -9205,54 +9938,6 @@ TransactionQuickAccessOverviewComponent.propDecorators = {
9205
9938
  showClass: [{ type: HostBinding, args: ["class.co-transaction-quick-access-overview",] }]
9206
9939
  };
9207
9940
 
9208
- class TransactionImageService {
9209
- constructor(_connector) {
9210
- this._connector = _connector;
9211
- this._articleImageCache = new Map();
9212
- }
9213
- retrieveLineImage(line) {
9214
- return __awaiter(this, void 0, void 0, function* () {
9215
- return yield this.getArticleImageByArticleNumber(line.articleNumber);
9216
- });
9217
- }
9218
- getArticleImageByArticleNumber(articleNumber) {
9219
- return __awaiter(this, void 0, void 0, function* () {
9220
- if (this._articleImageCache.has(articleNumber)) {
9221
- return this._articleImageCache.get(articleNumber);
9222
- }
9223
- const goodId = yield this._connector.getGoodIdFromArticleNr(articleNumber).catch((error) => {
9224
- console.error(error);
9225
- return null;
9226
- });
9227
- const image = yield this.getArticleImageByGoodId(goodId);
9228
- this._articleImageCache.set(articleNumber, image);
9229
- return image;
9230
- });
9231
- }
9232
- getArticleImageByGoodId(goodId) {
9233
- return __awaiter(this, void 0, void 0, function* () {
9234
- if (!isNaN(goodId)) {
9235
- return this._connector.getSingleImage(goodId, 1, true, true).catch((error) => {
9236
- console.error(error);
9237
- return "";
9238
- });
9239
- }
9240
- else {
9241
- return "";
9242
- }
9243
- });
9244
- }
9245
- }
9246
- TransactionImageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionImageService_Factory() { return new TransactionImageService(i0.ɵɵinject(TransactionConnectorService)); }, token: TransactionImageService, providedIn: "root" });
9247
- TransactionImageService.decorators = [
9248
- { type: Injectable, args: [{
9249
- providedIn: "root"
9250
- },] }
9251
- ];
9252
- TransactionImageService.ctorParameters = () => [
9253
- { type: TransactionConnectorService }
9254
- ];
9255
-
9256
9941
  class TransactionGridBaseComponent {
9257
9942
  constructor(imageService) {
9258
9943
  this.imageService = imageService;
@@ -9507,14 +10192,14 @@ class TransactionLineActionButtonsComponent {
9507
10192
  }, 1);
9508
10193
  }
9509
10194
  handleTransactionArticleTextOverview() {
9510
- this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
10195
+ this.articleTextHeader = this._dictionaryService.get("PRODUCT_DESCRIPTION_AND_TEXTS", true);
9511
10196
  this.textToEdit = undefined;
9512
10197
  this._showArticleTextOverviewDialog();
9513
10198
  this.showActionButtons = false;
9514
10199
  this.showActionButtonsDelayed = false;
9515
10200
  }
9516
10201
  handleTransactionArticleText() {
9517
- this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
10202
+ this.articleTextHeader = this._dictionaryService.get("PRODUCT_DESCRIPTION_AND_TEXTS", true);
9518
10203
  this.textToEdit = undefined;
9519
10204
  this.showArticleTextDialog();
9520
10205
  this.showActionButtons = false;
@@ -9571,8 +10256,12 @@ TransactionLineActionButtonsComponent.decorators = [
9571
10256
  selector: "co-transaction-line-action-buttons",
9572
10257
  template: `
9573
10258
  <div class="transaction-line-action-buttons-wrapper">
9574
- <div class="show-hide-button">
9575
- <icon [icon]="icons.ThickLines" (click)="handleShowHideClick()"></icon>
10259
+ <div class="menu-button-container">
10260
+ <co-button
10261
+ class="action-menu-button circle"
10262
+ [iconData]="iconCacheService.getIcon(icons.EllipsisLight)"
10263
+ (click)="handleShowHideClick()">
10264
+ </co-button>
9576
10265
  </div>
9577
10266
 
9578
10267
  <div class="action-buttons-container" clickOutside
@@ -9580,22 +10269,22 @@ TransactionLineActionButtonsComponent.decorators = [
9580
10269
  [ngClass]="alignDirection"
9581
10270
  (clickOutside)="handleShowHideClick()">
9582
10271
 
9583
- <co-button *ngIf="showOverviewButton()"
9584
- class="transaction-line-overview-button circle"
10272
+ <co-button
10273
+ class="transaction-line-overview-button circle action-button"
9585
10274
  [class.show]="showActionButtonsDelayed"
9586
- [iconData]="iconCacheService.getIcon(icons.Txt)"
10275
+ [iconData]="iconCacheService.getIcon(icons.TextSizeSolid)"
9587
10276
  (click)="handleTransactionArticleTextOverview()"></co-button>
9588
10277
 
9589
- <co-button *ngIf="showAddTextButton()"
9590
- class="transaction-line-add-text-button circle"
10278
+ <co-button
10279
+ class="transaction-line-add-text-button circle action-button"
9591
10280
  [class.show]="showActionButtonsDelayed"
9592
- [iconData]="iconCacheService.getIcon(icons.Txt)"
10281
+ [iconData]="iconCacheService.getIcon(icons.TextSolid)"
9593
10282
  (click)="handleTransactionArticleText()"></co-button>
9594
10283
 
9595
- <co-button *ngIf="showSidebarButton()"
9596
- class="transaction-line-show-sidebar-button circle"
10284
+ <co-button
10285
+ class="transaction-line-show-sidebar-button circle action-button"
9597
10286
  [class.show]="showActionButtonsDelayed"
9598
- [iconData]="iconCacheService.getIcon(icons.MasterDetail)"
10287
+ [iconData]="iconCacheService.getIcon(icons.ObjectIntersectSolid)"
9599
10288
  (click)="handleShowSidePanel()"></co-button>
9600
10289
  </div>
9601
10290
  </div>
@@ -9627,52 +10316,18 @@ TransactionLineActionButtonsComponent.ctorParameters = () => [
9627
10316
  { type: TransactionService },
9628
10317
  { type: DictionaryService }
9629
10318
  ];
9630
- TransactionLineActionButtonsComponent.propDecorators = {
9631
- transactionLine: [{ type: Input }],
9632
- alignDirection: [{ type: Input }],
9633
- waitingForUserAction: [{ type: Output }],
9634
- sidePanelButtonClicked: [{ type: Output }],
9635
- showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
9636
- };
9637
-
9638
- class DialogTransactionLineDeliveryMethodComponent extends DialogTransactionLineBaseComponent {
9639
- showClass() {
9640
- return true;
9641
- }
9642
- }
9643
- DialogTransactionLineDeliveryMethodComponent.decorators = [
9644
- { type: Component, args: [{
9645
- selector: "co-dialog-transaction-line-delivery-method",
9646
- template: `
9647
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
9648
- <co-transaction-line-delivery-method
9649
- [autoClose]="autoClose"
9650
- [useModel]="useModel"
9651
- [transactionInfo]="transactionInfo"
9652
- [transactionLine]="transactionLine"
9653
- [searchText]="searchText"
9654
- (closeAfterCommit)="handleClose(buttonType.Ok)"
9655
- (valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
9656
- </co-dialog>
9657
- <ng-template #dialogHeader>
9658
- <co-dialog-header-search [title]="'DELIVERY_METHOD'" (search)="handleSearch($event)"></co-dialog-header-search>
9659
- </ng-template>
9660
- <ng-template #footerTemplate>
9661
- <div class="dialog-footer-button-wrapper" *ngIf="!useModel">
9662
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
9663
- </div>
9664
- </ng-template>
9665
- `,
9666
- encapsulation: ViewEncapsulation.None
9667
- },] }
9668
- ];
9669
- DialogTransactionLineDeliveryMethodComponent.propDecorators = {
9670
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
10319
+ TransactionLineActionButtonsComponent.propDecorators = {
10320
+ transactionLine: [{ type: Input }],
10321
+ alignDirection: [{ type: Input }],
10322
+ waitingForUserAction: [{ type: Output }],
10323
+ sidePanelButtonClicked: [{ type: Output }],
10324
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
9671
10325
  };
9672
10326
 
9673
10327
  class TransactionLinesLineBaseComponent {
9674
10328
  constructor() {
9675
10329
  this.icons = Icon;
10330
+ this.lineChange = new EventEmitter();
9676
10331
  this.waitingForUserAction = new EventEmitter();
9677
10332
  this.preview = false;
9678
10333
  this.readonly = false;
@@ -9700,6 +10355,7 @@ TransactionLinesLineBaseComponent.decorators = [
9700
10355
  TransactionLinesLineBaseComponent.propDecorators = {
9701
10356
  line: [{ type: Input }],
9702
10357
  transactionId: [{ type: Input }],
10358
+ lineChange: [{ type: Output }],
9703
10359
  waitingForUserAction: [{ type: Output }],
9704
10360
  showClass: [{ type: HostBinding, args: ["class.co-transaction-base-line",] }],
9705
10361
  preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
@@ -9708,135 +10364,6 @@ TransactionLinesLineBaseComponent.propDecorators = {
9708
10364
  isArticle: [{ type: HostBinding, args: ["class.is-article",] }]
9709
10365
  };
9710
10366
 
9711
- class DialogTransactionLineVatComponent extends DialogTransactionLineBaseComponent {
9712
- showClass() {
9713
- return true;
9714
- }
9715
- }
9716
- DialogTransactionLineVatComponent.decorators = [
9717
- { type: Component, args: [{
9718
- selector: "co-dialog-transaction-line-vat",
9719
- template: `
9720
- <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
9721
- <co-transaction-line-vat
9722
- [autoClose]="autoClose"
9723
- [useModel]="useModel"
9724
- [transactionLine]="transactionLine"
9725
- [searchText]="searchText"
9726
- (closeAfterCommit)="handleClose(buttonType.Ok)"
9727
- (valueChange)="handleValueChange($event)"
9728
- ></co-transaction-line-vat>
9729
- </co-dialog>
9730
- <ng-template #dialogHeader>
9731
- <co-dialog-header-search [title]="'VAT'" (search)="handleSearch($event)"></co-dialog-header-search>
9732
- </ng-template>
9733
- <ng-template #footerTemplate>
9734
- <div class="dialog-footer-button-wrapper" *ngIf="!useModel">
9735
- <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
9736
- </div>
9737
- </ng-template>
9738
- `,
9739
- encapsulation: ViewEncapsulation.None
9740
- },] }
9741
- ];
9742
- DialogTransactionLineVatComponent.propDecorators = {
9743
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
9744
- };
9745
-
9746
- class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseComponent {
9747
- constructor(_dialogService, _service) {
9748
- super();
9749
- this._dialogService = _dialogService;
9750
- this._service = _service;
9751
- this.showPriceListDialog = false;
9752
- }
9753
- showClass() {
9754
- return true;
9755
- }
9756
- openThePriceListDialog() {
9757
- this.showPriceListDialog = true;
9758
- }
9759
- transactionLineSet() {
9760
- this._loadLinePricelist();
9761
- }
9762
- transactionInfoSet() {
9763
- this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
9764
- }
9765
- _loadLinePricelist() {
9766
- return __awaiter(this, void 0, void 0, function* () {
9767
- if (this.transactionLine && this.transactionLine.isArticle) {
9768
- this._service.getPriceLists().then((lists) => {
9769
- const priceList = lists.find(l => l.code === this.transactionLine.priceListCode);
9770
- this.transactionLine.priceListDescription = priceList ? priceList.description : "";
9771
- });
9772
- }
9773
- });
9774
- }
9775
- }
9776
- DialogTransactionLineDiscountComponent.decorators = [
9777
- { type: Component, args: [{
9778
- selector: "co-dialog-transaction-line-discount",
9779
- template: `
9780
- <co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
9781
- <div class="transaction-line-discount-wrapper co-transaction-small-toolbar">
9782
- <div class="two-column-grid">
9783
- <co-transaction-line-line-discount [transactionLine]="transactionLine"></co-transaction-line-line-discount>
9784
- <co-transaction-line-discount-amount [transactionLine]="transactionLine"></co-transaction-line-discount-amount>
9785
- </div>
9786
- <div class="two-column-grid">
9787
- <co-transaction-line-special-discount [transactionLine]="transactionLine"></co-transaction-line-special-discount>
9788
- <co-transaction-line-quantum-discount [transactionLine]="transactionLine"></co-transaction-line-quantum-discount>
9789
- </div>
9790
- <div class="two-column-grid">
9791
- <co-input-text [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="readonly"></co-input-text>
9792
- <co-input-text [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="readonly"></co-input-text>
9793
- </div>
9794
- <div class="transaction-line-discount-overview">
9795
- <div class="transaction-line-discount-overview-item">
9796
- <div class="title" [textContent]="'TRANSACTION_DISCOUNT' | localize"></div>
9797
- <div class="value" [class.negative]="transactionLine.discountAmount < 0" [textContent]="transactionLine.discountAmount | coCurrency"></div>
9798
- </div>
9799
- <div class="transaction-line-discount-overview-item">
9800
- <div class="title" [textContent]="'BUSINESS_RULE_DISCOUNT' | localize"></div>
9801
- <div class="value" [textContent]="'NIET_GEIMPLEMENTEERD'"></div>
9802
- </div>
9803
- <div class="transaction-line-discount-overview-item">
9804
- <div class="title" [textContent]="'QUANTUM_DISCOUNT' | localize"></div>
9805
- <div class="value" [class.negative]="transactionLine.quantumDiscount < 0" [textContent]="transactionLine.quantumDiscount | coCurrency"></div>
9806
- </div>
9807
- <div class="transaction-line-discount-overview-item">
9808
- <div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
9809
- <div class="value" [class.negative]="transactionLine.surchargeAmount < 0" [textContent]="transactionLine.surchargeAmount | coCurrency"></div>
9810
- </div>
9811
- <div class="transaction-line-discount-overview-item total">
9812
- <div class="title" [textContent]="'TOTAL_LINE_DISCOUNT' | localize"></div>
9813
- <div class="value" [class.negative]="transactionLine.lineTotalDiscountAmount < 0" [textContent]="transactionLine.lineTotalDiscountAmount | coCurrency"></div>
9814
- </div>
9815
- </div>
9816
- </div>
9817
- </co-dialog>
9818
- <ng-template #dialogHeader>
9819
- <div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
9820
- <div class="transaction-line-button big" (click)="openThePriceListDialog()">
9821
- <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.priceListDescription"></span>
9822
- </div>
9823
- </ng-template>
9824
- <co-dialog-transaction-line-price-list *ngIf="showPriceListDialog"
9825
- [transactionLine]="transactionLine"
9826
- (close)="showPriceListDialog = false"
9827
- ></co-dialog-transaction-line-price-list>
9828
- `,
9829
- encapsulation: ViewEncapsulation.None
9830
- },] }
9831
- ];
9832
- DialogTransactionLineDiscountComponent.ctorParameters = () => [
9833
- { type: DialogService },
9834
- { type: TransactionService }
9835
- ];
9836
- DialogTransactionLineDiscountComponent.propDecorators = {
9837
- showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
9838
- };
9839
-
9840
10367
  class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent {
9841
10368
  constructor(service, iconCacheService, _dialogService, _dictionaryService) {
9842
10369
  super();
@@ -9847,6 +10374,8 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
9847
10374
  this.stock = StockStatus.Low;
9848
10375
  this.mouseOver = false;
9849
10376
  this.readonly = false;
10377
+ this.showDialogVat = false;
10378
+ this.showDialogDiscount = false;
9850
10379
  this.subscriptions = [];
9851
10380
  }
9852
10381
  showClass() {
@@ -9858,16 +10387,17 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
9858
10387
  handleMouseLeave(event) {
9859
10388
  this.mouseOver = false;
9860
10389
  }
10390
+ ngOnChanges(changes) {
10391
+ console.log(changes);
10392
+ }
9861
10393
  ngOnInit() {
9862
10394
  this.subscriptions.push(this.lineSet.subscribe((set) => {
9863
10395
  if (set) {
9864
10396
  this.localAmount = this._line.amount;
9865
- this._loadLineCommissionCode();
9866
- this._loadLineWarehouse();
9867
- this._loadLineDeliveryMethod();
9868
10397
  this._loadLineVat();
9869
10398
  }
9870
10399
  }));
10400
+ this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
9871
10401
  }
9872
10402
  ngOnDestroy() {
9873
10403
  this.subscriptions.forEach((subscription) => subscription.unsubscribe());
@@ -9885,51 +10415,6 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
9885
10415
  this.transactionLineActionButtons.textToEdit = text;
9886
10416
  this.transactionLineActionButtons.showArticleTextDialog();
9887
10417
  }
9888
- openCommissionCodeDialog() {
9889
- this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
9890
- }
9891
- openWarehouseDialog() {
9892
- this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
9893
- }
9894
- openDeliveryMethodDialog() {
9895
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
9896
- }
9897
- openVatDialog() {
9898
- this._dialogService.showTransactionLineComponent(DialogTransactionLineVatComponent, this.line);
9899
- }
9900
- openDiscountDialog() {
9901
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDiscountComponent, this.line);
9902
- }
9903
- _loadLineCommissionCode() {
9904
- return __awaiter(this, void 0, void 0, function* () {
9905
- if (this.line && this.line.isArticle) {
9906
- this.service.getCommissionCodes('NL').then((codes) => {
9907
- const commissionCode = codes.find(c => c.code === this.line.commissionCode);
9908
- this.line.commissionDescription = commissionCode ? commissionCode.description : "";
9909
- });
9910
- }
9911
- });
9912
- }
9913
- _loadLineWarehouse() {
9914
- return __awaiter(this, void 0, void 0, function* () {
9915
- if (this.line && this.line.isArticle) {
9916
- this.service.getWarehouses().then((warehouses) => {
9917
- const warehouse = warehouses.find(w => w.warehouseNo === this.line.warehouseNumber);
9918
- this.line.warehouseDescription = warehouse ? warehouse.description : "";
9919
- });
9920
- }
9921
- });
9922
- }
9923
- _loadLineDeliveryMethod() {
9924
- return __awaiter(this, void 0, void 0, function* () {
9925
- if (this.line && this.line.isArticle) {
9926
- this.service.getDeliveryMethods().then((methods) => {
9927
- const method = methods.find(m => m.code === this.line.deliveryMethodCode);
9928
- this.line.deliveryMethodDescription = method ? method.description : "";
9929
- });
9930
- }
9931
- });
9932
- }
9933
10418
  _loadLineVat() {
9934
10419
  return __awaiter(this, void 0, void 0, function* () {
9935
10420
  if (this.line && this.line.isArticle) {
@@ -9954,12 +10439,13 @@ TransactionOverviewLineComponent.decorators = [
9954
10439
  </div>
9955
10440
  </div>
9956
10441
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
9957
- <co-transaction-line-commission-button [line]="line"></co-transaction-line-commission-button>
9958
- <co-transaction-line-warehouse-button [line]="line"></co-transaction-line-warehouse-button>
9959
- <co-transaction-line-delivery-button [line]="line"></co-transaction-line-delivery-button>
9960
- <co-transaction-line-delivery-date-button [line]="line" class="two-column"></co-transaction-line-delivery-date-button>
10442
+ <co-transaction-line-commission-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-commission-button>
10443
+ <co-transaction-line-warehouse-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
10444
+ <co-transaction-line-delivery-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-delivery-button>
10445
+ <co-transaction-line-delivery-date-button [transactionLine]="line" class="two-column"></co-transaction-line-delivery-date-button>
10446
+ <co-transaction-line-statusbar [transaction]="line" [transactionKind]="transactionKind"></co-transaction-line-statusbar>
9961
10447
  </div>
9962
- <div *ngIf="!preview" class="transaction-line-button" (click)="openVatDialog()">
10448
+ <div *ngIf="!preview" class="transaction-line-button" (click)="showDialogVat = true">
9963
10449
  <span class="co-transaction-overflow-ellipsis" [textContent]="line.vatDescription"></span>
9964
10450
  </div>
9965
10451
  <div class="transaction-line-totals">
@@ -9968,8 +10454,8 @@ TransactionOverviewLineComponent.decorators = [
9968
10454
  [showLabel]="false"
9969
10455
  [defaultEditMode]="false"
9970
10456
  ></co-transaction-line-price>
9971
- <div class="transaction-line-button custom-width" (click)="openDiscountDialog()">
9972
- <span class="co-transaction-overflow-ellipsis transaction-line-discount" [class.negative]="line.lineTotalDiscountAmount < 0"
10457
+ <div class="transaction-line-button custom-width transaction-line-totals-discount" (click)="showDialogDiscount = true">
10458
+ <span class="co-transaction-overflow-ellipsis" [class.transaction-negative-value]="line.lineTotalDiscountAmount < 0"
9973
10459
  [textContent]="(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)"></span>
9974
10460
  </div>
9975
10461
  <div *ngIf=!preview class="transaction-line-totals-amount">
@@ -9988,6 +10474,17 @@ TransactionOverviewLineComponent.decorators = [
9988
10474
  </div>
9989
10475
  </ng-container>
9990
10476
  </co-transaction-base-line>
10477
+ <co-dialog-transaction-line-vat *ngIf="showDialogVat"
10478
+ [autoClose]="true"
10479
+ [transactionInfo]="service.currentTransaction.transactionInfo"
10480
+ [transactionLine]="line"
10481
+ (close)="showDialogVat = false">
10482
+ </co-dialog-transaction-line-vat>
10483
+ <co-dialog-transaction-line-discount *ngIf="showDialogDiscount"
10484
+ [transactionInfo]="service.currentTransaction.transactionInfo"
10485
+ [transactionLine]="line"
10486
+ (close)="showDialogDiscount = false"
10487
+ ></co-dialog-transaction-line-discount>
9991
10488
  `,
9992
10489
  encapsulation: ViewEncapsulation.None
9993
10490
  },] }
@@ -10023,6 +10520,7 @@ class TransactionOrderDeliveryLineComponent extends TransactionLinesLineBaseComp
10023
10520
  this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe((value) => {
10024
10521
  this.selected = value;
10025
10522
  }));
10523
+ this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
10026
10524
  }
10027
10525
  ngOnDestroy() {
10028
10526
  this._subscriptions.forEach(s => s.unsubscribe());
@@ -10037,12 +10535,12 @@ TransactionOrderDeliveryLineComponent.decorators = [
10037
10535
  <co-transaction-base-line [line]="line" [preview]="preview" [checkbox]="true" [checkboxValue]="selected" [actionButtons]="false">
10038
10536
  <div class="transaction-line-buttons-grid">
10039
10537
  <div class="row-1">
10040
- <co-transaction-line-warehouse-button [line]="line"></co-transaction-line-warehouse-button>
10041
- <co-transaction-line-delivery-button [line]="line"></co-transaction-line-delivery-button>
10538
+ <co-transaction-line-warehouse-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
10539
+ <co-transaction-line-delivery-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-delivery-button>
10042
10540
  </div>
10043
10541
  <div class="row-2">
10044
- <co-transaction-line-delivery-date-button [line]="line"></co-transaction-line-delivery-date-button>
10045
- <co-status-bar class="status-bar"></co-status-bar>
10542
+ <co-transaction-line-delivery-date-button [transactionLine]="line"></co-transaction-line-delivery-date-button>
10543
+ <co-transaction-line-statusbar [transaction]="line" [transactionKind]="transactionKind"></co-transaction-line-statusbar>
10046
10544
  </div>
10047
10545
  </div>
10048
10546
  <div class="transaction-line-totals">
@@ -10263,7 +10761,7 @@ TransactionReceiveGoodsLineComponent.decorators = [
10263
10761
  template: `
10264
10762
  <co-transaction-base-line [line]="viewModel" [preview]="preview" [actionButtons]="false" (click)="handleLineClicked($event)">
10265
10763
  <div class="line-content-wrapper">
10266
- <co-transaction-line-warehouse-button [readonly]="true" [line]="viewModel"></co-transaction-line-warehouse-button>
10764
+ <co-transaction-line-warehouse-button [transactionLine]="viewModel" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
10267
10765
  <co-transaction-line-warehouse-location-button [readonly]="viewModel.quantityReceived === viewModel.amount" [line]="viewModel"></co-transaction-line-warehouse-location-button>
10268
10766
  <co-editable-label class="transaction-line-totals-total price"
10269
10767
  [model]="viewModel.amount.toString() + 'x'"
@@ -10485,6 +10983,9 @@ class TransactionLineComponent {
10485
10983
  showClass() {
10486
10984
  return true;
10487
10985
  }
10986
+ ngOnChanges(changes) {
10987
+ this._prepareProps();
10988
+ }
10488
10989
  _prepareContent() {
10489
10990
  if (!this._transactionType || !this._activeCategory || !this._transactionLineContainer) {
10490
10991
  return;
@@ -10500,12 +11001,7 @@ class TransactionLineComponent {
10500
11001
  .resolveComponentFactory(componentClass)
10501
11002
  .create(this.injector);
10502
11003
  this.appRef.attachView(this._componentRef.hostView);
10503
- this._componentRef.instance.preview = this.preview;
10504
- this._componentRef.instance.selected = this.selected;
10505
- this._componentRef.instance.line = this.line;
10506
- this._componentRef.instance.transactionId = this.transactionId;
10507
- this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
10508
- this._componentRef.instance.lineVisible = this.lineVisible;
11004
+ this._prepareProps();
10509
11005
  const domElem = this._componentRef.hostView
10510
11006
  .rootNodes[0];
10511
11007
  this._transactionLineContainer.nativeElement.appendChild(domElem);
@@ -10513,12 +11009,22 @@ class TransactionLineComponent {
10513
11009
  this.appRef.detachView(this._componentRef.hostView);
10514
11010
  });
10515
11011
  }
11012
+ _prepareProps() {
11013
+ if (this._componentRef) {
11014
+ this._componentRef.instance.preview = this.preview;
11015
+ this._componentRef.instance.selected = this.selected;
11016
+ this._componentRef.instance.line = this.line;
11017
+ this._componentRef.instance.transactionId = this.transactionId;
11018
+ this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
11019
+ this._componentRef.instance.lineVisible = this.lineVisible;
11020
+ }
11021
+ }
10516
11022
  }
10517
11023
  TransactionLineComponent.decorators = [
10518
11024
  { type: Component, args: [{
10519
11025
  selector: "co-transaction-line",
10520
11026
  template: `
10521
- <div #transactionLine observeVisibility (visible)="this.lineVisible.next()"></div>
11027
+ <div #transactionLine observeVisibility (visible)="lineVisible.next()"></div>
10522
11028
  `,
10523
11029
  encapsulation: ViewEncapsulation.None
10524
11030
  },] }
@@ -10573,6 +11079,8 @@ class TransactionLinesComponent {
10573
11079
  this.saveTransactionLine = new EventEmitter();
10574
11080
  this.showTransactionArticleText = false;
10575
11081
  this.userActionRequired = false;
11082
+ this.hasComponent = true;
11083
+ this._activeCategory = TransactionTypeCategory.SalesOrderOverview;
10576
11084
  }
10577
11085
  set activeCategory(value) {
10578
11086
  this._activeCategory = value;
@@ -10632,9 +11140,6 @@ class TransactionLinesComponent {
10632
11140
  this.saveTransactionLine.next(transactionLine);
10633
11141
  this._hideArticleTextDialog();
10634
11142
  }
10635
- transactionLineComponent() {
10636
- return !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
10637
- }
10638
11143
  _showArticleTextDialog() {
10639
11144
  this.showTransactionArticleText = true;
10640
11145
  }
@@ -10643,6 +11148,7 @@ class TransactionLinesComponent {
10643
11148
  }
10644
11149
  _handleCategory() {
10645
11150
  return __awaiter(this, void 0, void 0, function* () {
11151
+ this.hasComponent = !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
10646
11152
  if (this._activeCategory === TransactionTypeCategory.PurchaseOrderReceivedGoods) {
10647
11153
  if (this.transactionLines.find(l => l.isLocationRequired)) {
10648
11154
  const response = yield this._dialogService.showWarehouseLocation(this.transactionLines[0].warehouseNumber, false, false, true);
@@ -10671,7 +11177,7 @@ TransactionLinesComponent.decorators = [
10671
11177
  [class.show]="line === selectedTransactionLine && transactionLines.length > 1" cdkDragHandle
10672
11178
  [iconData]="iconCacheService.getIcon(icons.GripDotsVerticalSolid)">
10673
11179
  </co-icon>
10674
- <co-transaction-line *ngIf="transactionLineComponent()"
11180
+ <co-transaction-line *ngIf="hasComponent"
10675
11181
  [transactionType]="service.currentTransaction.transactionInfo.transactionKind"
10676
11182
  [activeCategory]="activeCategory"
10677
11183
  [transactionId]="transactionId"
@@ -10685,11 +11191,9 @@ TransactionLinesComponent.decorators = [
10685
11191
  </div>
10686
11192
  </div>
10687
11193
  </div>
10688
- <!--
10689
- <co-button *ngIf=!preview class="add-text-button circle" [iconData]="iconCacheService.getIcon(icons.Txt)" (click)="handleTransactionArticleText($event)"></co-button>
10690
- -->
11194
+ <co-button *ngIf=!preview class="add-text-button circle" [iconData]="iconCacheService.getIcon(icons.TextSolid)" (click)="handleTransactionArticleText($event)"></co-button>
10691
11195
  <co-transaction-article-text *ngIf="showTransactionArticleText"
10692
- [header]="'TEXT' | localize"
11196
+ [header]="'PRODUCT_DESCRIPTION_AND_TEXTS' | localize"
10693
11197
  [transactionLine]="selectedArticleText"
10694
11198
  [editText]="textToEdit"
10695
11199
  (saveClick)="saveTransactionArticleLineText($event)"
@@ -10769,7 +11273,10 @@ ShoppingCartPreviewComponent.decorators = [
10769
11273
  ></co-transaction-lines>
10770
11274
  </div>
10771
11275
  <div class="preview-totals-wrapper">
10772
- <co-transaction-totals [totals]="service.currentTransaction.transactionTotal"></co-transaction-totals>
11276
+ <co-transaction-totals
11277
+ [transactionInfo]="service.currentTransaction.transactionInfo"
11278
+ [transactionTotal]="service.currentTransaction.transactionTotal"
11279
+ ></co-transaction-totals>
10773
11280
  </div>
10774
11281
  <div class="cart-buttons">
10775
11282
  <a class="button-edit-cart" [textContent]="'EDIT_CART' | localize"
@@ -10893,9 +11400,10 @@ SharedService.ctorParameters = () => [
10893
11400
  ];
10894
11401
 
10895
11402
  class AvatarComponent {
10896
- constructor(_transactionService, _sharedService) {
11403
+ constructor(_transactionService, _sharedService, _colorSequenceService) {
10897
11404
  this._transactionService = _transactionService;
10898
11405
  this._sharedService = _sharedService;
11406
+ this._colorSequenceService = _colorSequenceService;
10899
11407
  }
10900
11408
  set image(value) {
10901
11409
  this._image = value;
@@ -10913,6 +11421,13 @@ class AvatarComponent {
10913
11421
  showClass() {
10914
11422
  return true;
10915
11423
  }
11424
+ set initials(value) {
11425
+ this._initials = value;
11426
+ this._setBackgroundColor();
11427
+ }
11428
+ get initials() {
11429
+ return this._initials;
11430
+ }
10916
11431
  ngAfterViewInit() {
10917
11432
  this._getRelation();
10918
11433
  }
@@ -10949,6 +11464,11 @@ class AvatarComponent {
10949
11464
  });
10950
11465
  }
10951
11466
  }
11467
+ _setBackgroundColor() {
11468
+ if (this.relation) {
11469
+ this.backgroundColor = this._colorSequenceService.getRandomColor(this.relation.relationId);
11470
+ }
11471
+ }
10952
11472
  }
10953
11473
  AvatarComponent.decorators = [
10954
11474
  { type: Component, args: [{
@@ -10966,13 +11486,15 @@ AvatarComponent.decorators = [
10966
11486
  ];
10967
11487
  AvatarComponent.ctorParameters = () => [
10968
11488
  { type: TransactionService },
10969
- { type: SharedService }
11489
+ { type: SharedService },
11490
+ { type: ColorSequenceService }
10970
11491
  ];
10971
11492
  AvatarComponent.propDecorators = {
10972
11493
  image: [{ type: Input }],
10973
11494
  relationId: [{ type: Input }],
10974
11495
  relation: [{ type: Input }],
10975
- showClass: [{ type: HostBinding, args: ["class.co-avatar",] }]
11496
+ showClass: [{ type: HostBinding, args: ["class.co-avatar",] }],
11497
+ backgroundColor: [{ type: HostBinding, args: ["style.background-color",] }]
10976
11498
  };
10977
11499
 
10978
11500
  class AvatarModule {
@@ -11471,18 +11993,13 @@ RelationTypeComponent.decorators = [
11471
11993
  template: `
11472
11994
  <div class="default-data-row">
11473
11995
  <co-input-radio-button class="default-width"
11474
- [name]="'type'"
11475
11996
  [label]="'PRIVATE_PERSON' | localize"
11476
- [value]="relType.Private"
11477
- [checked]="relation.type === relType.Private"
11997
+ [model]="relation.type === relType.Private"
11478
11998
  (modelChange)="handleChangeRelationType(relType.Private)"
11479
11999
  ></co-input-radio-button>
11480
12000
  <co-input-radio-button class="default-width"
11481
- [name]="'type'"
11482
12001
  [label]="'COMPANY' | localize"
11483
- [value]="relType.Company"
11484
- [(model)]="relation.type"
11485
- [checked]="relation.type === relType.Company"
12002
+ [model]="relation.type === relType.Company"
11486
12003
  (modelChange)="handleChangeRelationType(relType.Company)"
11487
12004
  ></co-input-radio-button>
11488
12005
  </div>
@@ -11632,24 +12149,18 @@ RelationGeneralComponent.decorators = [
11632
12149
  </div>
11633
12150
  <div class="default-data-row">
11634
12151
  <co-input-radio-button class="default-width"
11635
- [name]="'gender'"
11636
12152
  [label]="'MALE' | localize"
11637
- [value]="genderType.Male"
11638
- [checked]="relation.gender === genderType.Male"
12153
+ [model]="relation.gender === genderType.Male"
11639
12154
  (modelChange)="changeGenderType(genderType.Male)"
11640
12155
  ></co-input-radio-button>
11641
12156
  <co-input-radio-button class="default-width"
11642
- [name]="'gender'"
11643
12157
  [label]="'FEMALE' | localize "
11644
- [value]="genderType.Female"
11645
- [checked]="relation.gender === genderType.Female"
12158
+ [model]="relation.gender === genderType.Female"
11646
12159
  (modelChange)="changeGenderType(genderType.Female)"
11647
12160
  ></co-input-radio-button>
11648
12161
  <co-input-radio-button class="default-width"
11649
- [name]="'gender'"
11650
12162
  [label]="'UNKNOWN' | localize"
11651
- [value]="genderType.Unspecified"
11652
- [checked]="relation.gender === genderType.Unspecified"
12163
+ [model]="relation.gender === genderType.Unspecified"
11653
12164
  (modelChange)="changeGenderType(genderType.Unspecified)"
11654
12165
  ></co-input-radio-button>
11655
12166
  </div>
@@ -11737,6 +12248,8 @@ class RelationSuggestionsListItemComponent {
11737
12248
  return true;
11738
12249
  }
11739
12250
  handleClick(event) {
12251
+ event.preventDefault();
12252
+ event.stopPropagation();
11740
12253
  this.selectionSelected.next(this.suggestion);
11741
12254
  }
11742
12255
  }
@@ -12214,7 +12727,9 @@ class TransactionHeaderDeliveryComponent extends TransactionBaseComponent {
12214
12727
  showClass() {
12215
12728
  return true;
12216
12729
  }
12217
- showTheDeliveryMethodDialog() {
12730
+ showTheDeliveryMethodDialog(event) {
12731
+ event.preventDefault();
12732
+ event.stopPropagation();
12218
12733
  this.showDeliveryMethodDialog = true;
12219
12734
  }
12220
12735
  transactionSet() {
@@ -12241,7 +12756,7 @@ TransactionHeaderDeliveryComponent.decorators = [
12241
12756
  >
12242
12757
  </co-transaction-header-block>
12243
12758
  <ng-template #headerBlock>
12244
- <div class="header-delivery-method" (click)="showTheDeliveryMethodDialog()">
12759
+ <div class="header-delivery-method" (click)="showTheDeliveryMethodDialog($event)">
12245
12760
  <co-icon class="header-delivery-truck-icon" [iconData]="iconService.getIcon(icons.TruckFastSolid)"></co-icon>
12246
12761
  <span [textContent]="deliveryMethod?.description"></span>
12247
12762
  </div>
@@ -12269,8 +12784,7 @@ TransactionHeaderDeliveryComponent.decorators = [
12269
12784
  ></co-transaction-header-preferred-delivery-date>
12270
12785
  </ng-template>
12271
12786
  <ng-template #thirdBlock>
12272
- <div class="header-delivery-partial-delivery-label co-transaction-label" [textContent]="'PART_DELIVERY' | localize"></div>
12273
- <co-input-checkbox class="header-delivery-partial-delivery" [model]="transactionInfo.allowPartialDelivery"></co-input-checkbox>
12787
+ <co-transaction-header-partial-delivery class="co-transaction-label" [transactionInfo]="transactionInfo"></co-transaction-header-partial-delivery>
12274
12788
  </ng-template>
12275
12789
  <co-dialog *ngIf="showDialog" [headerTemplate]="headerTemplate" (closeClick)="showDialog = false">
12276
12790
  <ng-template #headerTemplate>
@@ -12323,9 +12837,10 @@ TransactionHeaderBlockComponent.decorators = [
12323
12837
  { type: Component, args: [{
12324
12838
  selector: "co-transaction-header-block",
12325
12839
  template: `
12326
- <div #wrapper class="transaction-header-block-wrapper">
12840
+ <div #wrapper class="transaction-header-block-wrapper" (click)="headerClick.emit($event)">
12327
12841
  <div class="transaction-header-block-header">
12328
12842
  <ng-container [ngTemplateOutlet]="headerBlockTemplate"></ng-container>
12843
+ <div class="transaction-header-extended-dots" *ngIf="hasDetails" [textContent]="!hasDetails ? '' : '...'" (click)="headerClick.emit($event)"></div>
12329
12844
  </div>
12330
12845
  <div class="transaction-header-block-content">
12331
12846
  <div class="transaction-header-block-content-first" *ngIf="firstBlockTemplate">
@@ -12340,7 +12855,6 @@ TransactionHeaderBlockComponent.decorators = [
12340
12855
  <ng-container [ngTemplateOutlet]="thirdBlockTemplate"></ng-container>
12341
12856
  </div>
12342
12857
  </div>
12343
- <div class="transaction-header-extended-dots" *ngIf="hasDetails" [textContent]="!hasDetails ? '' : '...'" (click)="headerClick.emit($event)"></div>
12344
12858
  </div>
12345
12859
  `,
12346
12860
  encapsulation: ViewEncapsulation.None
@@ -12372,35 +12886,6 @@ TransactionHeaderBlockModule.decorators = [
12372
12886
  },] }
12373
12887
  ];
12374
12888
 
12375
- class TransactionHeaderBaseComponent extends TransactionFilterPopupBaseComponent {
12376
- constructor() {
12377
- super(...arguments);
12378
- this.readonly = false;
12379
- this._transactionInfo = new TransactionInfo();
12380
- }
12381
- set transactionInfo(value) {
12382
- if (value) {
12383
- this._transactionInfo = value;
12384
- this.transactionInfoSet();
12385
- }
12386
- }
12387
- get transactionInfo() {
12388
- return this._transactionInfo;
12389
- }
12390
- get model() {
12391
- return this._transactionInfo;
12392
- }
12393
- // overridden by descendents
12394
- transactionInfoSet() {
12395
- }
12396
- }
12397
- TransactionHeaderBaseComponent.decorators = [
12398
- { type: Directive }
12399
- ];
12400
- TransactionHeaderBaseComponent.propDecorators = {
12401
- transactionInfo: [{ type: Input }]
12402
- };
12403
-
12404
12889
  class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseComponent {
12405
12890
  constructor(_transactionService) {
12406
12891
  super();
@@ -12428,6 +12913,8 @@ class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseCompon
12428
12913
  return this._editMode;
12429
12914
  }
12430
12915
  handleClick(event) {
12916
+ event.preventDefault();
12917
+ event.stopPropagation();
12431
12918
  if (!this.readonly) {
12432
12919
  this.editMode = true;
12433
12920
  }
@@ -12525,6 +13012,8 @@ class TransactionHeaderRemarksComponent extends TransactionHeaderBaseComponent {
12525
13012
  return this._editMode;
12526
13013
  }
12527
13014
  handleClick(event) {
13015
+ event.preventDefault();
13016
+ event.stopPropagation();
12528
13017
  if (!this.readonly) {
12529
13018
  this.editMode = true;
12530
13019
  }
@@ -12618,6 +13107,8 @@ class TransactionHeaderReferenceComponent extends TransactionHeaderBaseComponent
12618
13107
  return this._editMode;
12619
13108
  }
12620
13109
  handleClick(event) {
13110
+ event.preventDefault();
13111
+ event.stopPropagation();
12621
13112
  if (!this.readonly) {
12622
13113
  this.editMode = true;
12623
13114
  }
@@ -12711,6 +13202,8 @@ class TransactionHeaderRelationReferenceComponent extends TransactionHeaderBaseC
12711
13202
  return this._editMode;
12712
13203
  }
12713
13204
  handleClick(event) {
13205
+ event.preventDefault();
13206
+ event.stopPropagation();
12714
13207
  if (!this.readonly) {
12715
13208
  this.editMode = true;
12716
13209
  }
@@ -12873,6 +13366,9 @@ class TransactionLineCheckboxListComponent {
12873
13366
  this.itemHeight = this.scrollingItem.nativeElement.offsetHeight;
12874
13367
  }
12875
13368
  }
13369
+ handleCheckboxChecked(checked, row) {
13370
+ this.checked.emit(row);
13371
+ }
12876
13372
  handleChecked(event, row) {
12877
13373
  event.preventDefault();
12878
13374
  event.stopPropagation();
@@ -12884,12 +13380,12 @@ TransactionLineCheckboxListComponent.decorators = [
12884
13380
  selector: "co-transaction-line-checkbox-list",
12885
13381
  template: `
12886
13382
  <cdk-virtual-scroll-viewport [itemSize]="itemHeight" class="virtual-scroll-container co-transaction-small-toolbar">
12887
- <div *cdkVirtualFor="let row of collection" #scrollingItem class="virtual-scroll-item">
13383
+ <div *cdkVirtualFor="let row of collection" #scrollingItem class="virtual-scroll-item" (click)="handleChecked($event, row)">
12888
13384
  <div class="checkbox-wrapper">
12889
13385
  <co-input-checkbox
12890
13386
  [model]="row.checked"
12891
13387
  [readonly]="readonly"
12892
- (click)="handleChecked($event, row)"
13388
+ (modelChange)="handleCheckboxChecked($event, row)"
12893
13389
  ></co-input-checkbox>
12894
13390
  </div>
12895
13391
  <div class="label-wrapper">
@@ -12976,6 +13472,8 @@ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderB
12976
13472
  return this._editMode;
12977
13473
  }
12978
13474
  handleClick(event) {
13475
+ event.preventDefault();
13476
+ event.stopPropagation();
12979
13477
  if (!this.readonly) {
12980
13478
  this.editMode = true;
12981
13479
  }
@@ -13039,42 +13537,12 @@ TransactionHeaderPreferredDeliveryDateModule.decorators = [
13039
13537
  ],
13040
13538
  declarations: [
13041
13539
  TransactionHeaderPreferredDeliveryDateComponent
13042
- ],
13043
- exports: [
13044
- TransactionHeaderPreferredDeliveryDateComponent
13045
- ]
13046
- },] }
13047
- ];
13048
-
13049
- class DialogTransactionHeaderBaseComponent extends TransactionHeaderBaseComponent {
13050
- constructor() {
13051
- super(...arguments);
13052
- this.buttonType = AppPopupButtonType;
13053
- this.close = new EventEmitter();
13054
- }
13055
- onClose(eventType, output) {
13056
- return;
13057
- }
13058
- handleValueChange(value) {
13059
- this.value = value;
13060
- }
13061
- handleOkClick() {
13062
- this.onClose(AppPopupButtonType.Ok, this.value);
13063
- }
13064
- handleSearch(text) {
13065
- this.searchText = text;
13066
- }
13067
- handleClose(type) {
13068
- this.close.emit();
13069
- this.onClose(type);
13070
- }
13071
- }
13072
- DialogTransactionHeaderBaseComponent.decorators = [
13073
- { type: Directive }
13074
- ];
13075
- DialogTransactionHeaderBaseComponent.propDecorators = {
13076
- close: [{ type: Output }]
13077
- };
13540
+ ],
13541
+ exports: [
13542
+ TransactionHeaderPreferredDeliveryDateComponent
13543
+ ]
13544
+ },] }
13545
+ ];
13078
13546
 
13079
13547
  class DialogTransactionHeaderDeliveryMethodComponent extends DialogTransactionHeaderBaseComponent {
13080
13548
  showClass() {
@@ -13274,41 +13742,11 @@ TransactionHeaderDeliveryOptionsModule.decorators = [
13274
13742
  },] }
13275
13743
  ];
13276
13744
 
13277
- class TransactionHeaderDeliveryModule {
13278
- }
13279
- TransactionHeaderDeliveryModule.decorators = [
13280
- { type: NgModule, args: [{
13281
- imports: [
13282
- CommonModule,
13283
- CoreModule,
13284
- TransactionHeaderBlockModule,
13285
- InputCheckboxModule,
13286
- IconModule,
13287
- PipeModule,
13288
- InputDatePickerModule,
13289
- TransactionHeaderDeliveryDateModule,
13290
- CoDialogModule,
13291
- TransactionHeaderDeliveryOptionsModule,
13292
- TransactionHeaderRemarksModule,
13293
- TransactionHeaderReferenceModule,
13294
- TransactionHeaderRelationReferenceModule,
13295
- TransactionHeaderDeliveryMethodModule,
13296
- TransactionHeaderPreferredDeliveryDateModule,
13297
- DialogTransactionHeaderDeliveryMethodModule
13298
- ],
13299
- declarations: [
13300
- TransactionHeaderDeliveryComponent
13301
- ],
13302
- exports: [
13303
- TransactionHeaderDeliveryComponent
13304
- ]
13305
- },] }
13306
- ];
13307
-
13308
13745
  class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderBaseComponent {
13309
13746
  constructor(_transactionService) {
13310
13747
  super();
13311
13748
  this._transactionService = _transactionService;
13749
+ this.showClass = true;
13312
13750
  }
13313
13751
  commitPartialDelivery(allow) {
13314
13752
  return __awaiter(this, void 0, void 0, function* () {
@@ -13333,7 +13771,7 @@ TransactionHeaderPartialDeliveryComponent.decorators = [
13333
13771
  template: `
13334
13772
  <co-input-checkbox
13335
13773
  [readonly]="readonly"
13336
- [label]="'PART_DELIVERIES' | localize"
13774
+ [label]="'PART_DELIVERY' | localize"
13337
13775
  [model]="transactionInfo.allowPartialDelivery"
13338
13776
  (modelChange)="commitPartialDelivery($event)">
13339
13777
  </co-input-checkbox>
@@ -13343,7 +13781,10 @@ TransactionHeaderPartialDeliveryComponent.decorators = [
13343
13781
  ];
13344
13782
  TransactionHeaderPartialDeliveryComponent.ctorParameters = () => [
13345
13783
  { type: TransactionService }
13346
- ];
13784
+ ];
13785
+ TransactionHeaderPartialDeliveryComponent.propDecorators = {
13786
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-header-partial-delivery",] }]
13787
+ };
13347
13788
 
13348
13789
  class TransactionHeaderPartialDeliveryModule {
13349
13790
  }
@@ -13363,6 +13804,38 @@ TransactionHeaderPartialDeliveryModule.decorators = [
13363
13804
  },] }
13364
13805
  ];
13365
13806
 
13807
+ class TransactionHeaderDeliveryModule {
13808
+ }
13809
+ TransactionHeaderDeliveryModule.decorators = [
13810
+ { type: NgModule, args: [{
13811
+ imports: [
13812
+ CommonModule,
13813
+ CoreModule,
13814
+ TransactionHeaderBlockModule,
13815
+ InputCheckboxModule,
13816
+ IconModule,
13817
+ PipeModule,
13818
+ InputDatePickerModule,
13819
+ TransactionHeaderDeliveryDateModule,
13820
+ CoDialogModule,
13821
+ TransactionHeaderDeliveryOptionsModule,
13822
+ TransactionHeaderRemarksModule,
13823
+ TransactionHeaderReferenceModule,
13824
+ TransactionHeaderRelationReferenceModule,
13825
+ TransactionHeaderDeliveryMethodModule,
13826
+ TransactionHeaderPreferredDeliveryDateModule,
13827
+ DialogTransactionHeaderDeliveryMethodModule,
13828
+ TransactionHeaderPartialDeliveryModule
13829
+ ],
13830
+ declarations: [
13831
+ TransactionHeaderDeliveryComponent
13832
+ ],
13833
+ exports: [
13834
+ TransactionHeaderDeliveryComponent
13835
+ ]
13836
+ },] }
13837
+ ];
13838
+
13366
13839
  class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderBaseComponent {
13367
13840
  constructor(_transactionService) {
13368
13841
  super();
@@ -13390,6 +13863,8 @@ class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderB
13390
13863
  return this._editMode;
13391
13864
  }
13392
13865
  handleClick(event) {
13866
+ event.preventDefault();
13867
+ event.stopPropagation();
13393
13868
  if (!this.readonly) {
13394
13869
  this.editMode = true;
13395
13870
  }
@@ -13484,6 +13959,8 @@ class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderBaseC
13484
13959
  return this._editMode;
13485
13960
  }
13486
13961
  handleClick(event) {
13962
+ event.preventDefault();
13963
+ event.stopPropagation();
13487
13964
  if (!this.readonly) {
13488
13965
  this.editMode = true;
13489
13966
  }
@@ -13555,6 +14032,7 @@ class TransactionHeaderDefinitiveComponent extends TransactionHeaderBaseComponen
13555
14032
  constructor(_transactionService) {
13556
14033
  super();
13557
14034
  this._transactionService = _transactionService;
14035
+ this.showClass = true;
13558
14036
  }
13559
14037
  commitTransactionDefinitive(definitive) {
13560
14038
  return __awaiter(this, void 0, void 0, function* () {
@@ -13589,7 +14067,10 @@ TransactionHeaderDefinitiveComponent.decorators = [
13589
14067
  ];
13590
14068
  TransactionHeaderDefinitiveComponent.ctorParameters = () => [
13591
14069
  { type: TransactionService }
13592
- ];
14070
+ ];
14071
+ TransactionHeaderDefinitiveComponent.propDecorators = {
14072
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-header-definitive",] }]
14073
+ };
13593
14074
 
13594
14075
  class TransactionHeaderDefinitiveModule {
13595
14076
  }
@@ -14114,7 +14595,7 @@ class TransactionComponent {
14114
14595
  this.showQuickAccess = true;
14115
14596
  this.showButtonBar = true;
14116
14597
  this.activeViewMode = ContentViewMode.List;
14117
- this.showDiscountsSidebar = false;
14598
+ this.activeCategory = TransactionTypeCategory.SalesOrderOverview;
14118
14599
  this._subs = [];
14119
14600
  this._transaction = new TransactionInfoResponse();
14120
14601
  this._subs.push(this._service.transactionUpdated.subscribe((transaction) => {
@@ -14150,13 +14631,6 @@ class TransactionComponent {
14150
14631
  ngOnDestroy() {
14151
14632
  this._subs.forEach(s => s.unsubscribe());
14152
14633
  }
14153
- addDiscount() {
14154
- this.showDiscountsSidebar = true;
14155
- // TODO
14156
- // this.transactionDiscountPercentage = this.service.currentTransaction.transactionDiscountPercentage;
14157
- // this.transactionDiscountAmount = this.service.currentTransaction.transactionDiscountAmount;
14158
- // this.transactionTotal = undefined;
14159
- }
14160
14634
  saveTransactionLine(transactionAddTextLineRequest) {
14161
14635
  if (transactionAddTextLineRequest.transactionUuid) { //update
14162
14636
  }
@@ -14231,10 +14705,12 @@ TransactionComponent.decorators = [
14231
14705
  -->
14232
14706
  </div>
14233
14707
  <div class="transaction-footer-wrapper">
14234
- <co-transaction-totals [totals]="transaction.transactionTotal" [showDiscount]="true" (discountClick)="addDiscount()"></co-transaction-totals>
14708
+ <co-transaction-totals
14709
+ [transactionInfo]="transaction.transactionInfo"
14710
+ [transactionTotal]="transaction.transactionTotal"
14711
+ [showDiscount]="true"
14712
+ ></co-transaction-totals>
14235
14713
  </div>
14236
- <co-discount *ngIf="showDiscountsSidebar">
14237
- </co-discount>
14238
14714
  `,
14239
14715
  encapsulation: ViewEncapsulation.None
14240
14716
  },] }
@@ -14548,9 +15024,18 @@ TransactionHeaderRelationModule.decorators = [
14548
15024
  ];
14549
15025
 
14550
15026
  class TransactionHeaderOrderComponent extends TransactionBaseComponent {
15027
+ constructor() {
15028
+ super(...arguments);
15029
+ this.showDiscountDialog = false;
15030
+ }
14551
15031
  showClass() {
14552
15032
  return true;
14553
15033
  }
15034
+ handleShowDiscountDialog(event) {
15035
+ event.preventDefault();
15036
+ event.stopPropagation();
15037
+ this.showDiscountDialog = true;
15038
+ }
14554
15039
  }
14555
15040
  TransactionHeaderOrderComponent.decorators = [
14556
15041
  { type: Component, args: [{
@@ -14565,19 +15050,30 @@ TransactionHeaderOrderComponent.decorators = [
14565
15050
  </co-transaction-header-block>
14566
15051
  <ng-template #headerBlock>
14567
15052
  <div class="header-block-label" [textContent]="transactionInfo.branch?.familyName"></div>
15053
+ <div class="header-order-definitive">
15054
+ <co-transaction-header-definitive [transactionInfo]="transactionInfo"></co-transaction-header-definitive>
15055
+ </div>
14568
15056
  </ng-template>
14569
15057
  <ng-template #firstBlock>
14570
15058
  <span class="header-order-total-label co-transaction-label" [textContent]="'ORDER_TOTAL' | localize"></span>
14571
15059
  <div class="header-order-total" [textContent]="transactionTotal.netAmount | priceDisplay"></div>
14572
15060
  </ng-template>
14573
15061
  <ng-template #secondBlock>
14574
- <span class="header-order-line-amount-label co-transaction-label" [textContent]="'ORDER_LINES' | localize"></span>
14575
- <div class="header-order-line-amount" [textContent]="transactionLines.length"></div>
15062
+ <div class="transaction-line-button custom-width" (click)="handleShowDiscountDialog($event)">
15063
+ <span class="co-transaction-label" [textContent]="'DISCOUNT' | localize"></span>
15064
+ <span class="co-transaction-overflow-ellipsis transaction-discount" [class.transaction-negative-value]="transactionTotal.discountAmount < 0"
15065
+ [textContent]="transactionTotal.discountAmount | coCurrency"></span>
15066
+ </div>
14576
15067
  </ng-template>
14577
15068
  <ng-template #thirdBlock>
14578
- <div class="header-order-definitive-label co-transaction-label" [textContent]="'DEFINITIVE' | localize"></div>
14579
- <co-input-checkbox [model]="true"></co-input-checkbox>
15069
+ <span class="header-order-line-amount-label co-transaction-label" [textContent]="'ORDER_LINES' | localize"></span>
15070
+ <div class="header-order-line-amount" [textContent]="transactionLines.length"></div>
14580
15071
  </ng-template>
15072
+ <co-dialog-transaction-header-discount class="discount-dialog" *ngIf="showDiscountDialog"
15073
+ [transactionInfo]="transactionInfo"
15074
+ [transactionTotal]="transactionTotal"
15075
+ (close)="showDiscountDialog = false">
15076
+ </co-dialog-transaction-header-discount>
14581
15077
  `,
14582
15078
  encapsulation: ViewEncapsulation.None
14583
15079
  },] }
@@ -14595,7 +15091,9 @@ TransactionHeaderOrderModule.decorators = [
14595
15091
  TransactionHeaderBlockModule,
14596
15092
  InputCheckboxModule,
14597
15093
  PipeModule,
14598
- PriceDisplayPipeModule
15094
+ PriceDisplayPipeModule,
15095
+ DialogTransactionHeaderDiscountModule,
15096
+ TransactionHeaderDefinitiveModule
14599
15097
  ],
14600
15098
  declarations: [
14601
15099
  TransactionHeaderOrderComponent
@@ -14619,7 +15117,9 @@ class TransactionHeaderPaymentComponent extends TransactionBaseComponent {
14619
15117
  showClass() {
14620
15118
  return true;
14621
15119
  }
14622
- openPayment() {
15120
+ openPayment(event) {
15121
+ event.preventDefault();
15122
+ event.stopPropagation();
14623
15123
  this.showPaymentDialog = true;
14624
15124
  }
14625
15125
  }
@@ -14637,7 +15137,7 @@ TransactionHeaderPaymentComponent.decorators = [
14637
15137
  </co-transaction-header-block>
14638
15138
  <ng-template #headerBlock>
14639
15139
  <div class="header-block-label" [textContent]="'BALANCE' | localize"></div>
14640
- <div class="header-block-balance" *ngIf="transactionInfo.transactionKind !== transactionKind.PurchaseOrder" (click)="openPayment()">
15140
+ <div class="header-block-balance" *ngIf="transactionInfo.transactionKind !== transactionKind.PurchaseOrder" (click)="openPayment($event)">
14641
15141
  <co-icon class="payment-icon" [iconData]="iconService.getIcon(icons.CreditCardSolid)"></co-icon>
14642
15142
  <div class="payment-payed-wrapper">
14643
15143
  <span class="payment-paid" [textContent]="200 | priceDisplay"></span>
@@ -14714,7 +15214,8 @@ TransactionHeaderPaymentModule.decorators = [
14714
15214
  PaymentModule,
14715
15215
  IconModule,
14716
15216
  TransactionHeaderDownpaymentPercentageModule,
14717
- TransactionHeaderDownpaymentAmountModule
15217
+ TransactionHeaderDownpaymentAmountModule,
15218
+ DialogTransactionHeaderDiscountModule
14718
15219
  ],
14719
15220
  declarations: [
14720
15221
  TransactionHeaderPaymentComponent
@@ -15144,6 +15645,8 @@ class TransactionLinePriceComponent extends TransactionLineBaseComponent {
15144
15645
  return this._editMode;
15145
15646
  }
15146
15647
  handleClick(event) {
15648
+ event.preventDefault();
15649
+ event.stopPropagation();
15147
15650
  if (!this.readonly) {
15148
15651
  this.editMode = true;
15149
15652
  }
@@ -15440,6 +15943,8 @@ class TransactionLineDeliveryDateComponent extends TransactionLineBaseComponent
15440
15943
  return this._editMode;
15441
15944
  }
15442
15945
  handleClick(event) {
15946
+ event.preventDefault();
15947
+ event.stopPropagation();
15443
15948
  if (!this.readonly) {
15444
15949
  this.editMode = true;
15445
15950
  }
@@ -15977,106 +16482,6 @@ TransactionLineSupplierModule.decorators = [
15977
16482
  },] }
15978
16483
  ];
15979
16484
 
15980
- class TransactionLineDescriptionComponent extends TransactionLineBaseComponent {
15981
- constructor(iconCacheService, _transactionService) {
15982
- super();
15983
- this.iconCacheService = iconCacheService;
15984
- this._transactionService = _transactionService;
15985
- this.icons = Icon;
15986
- this.showLabel = true;
15987
- this.defaultEditMode = true;
15988
- this._editMode = false;
15989
- }
15990
- set child(content) {
15991
- if (content) {
15992
- this.input = content;
15993
- this.input.commit = (description) => this.commit(description);
15994
- if (this._editMode) {
15995
- this.input.requestFocus();
15996
- }
15997
- }
15998
- }
15999
- set editMode(value) {
16000
- this._editMode = value;
16001
- if (this._editMode && this.input) {
16002
- this.input.doFocus();
16003
- }
16004
- }
16005
- get editMode() {
16006
- return this._editMode;
16007
- }
16008
- handleClick(event) {
16009
- if (!this.readonly) {
16010
- this.editMode = true;
16011
- }
16012
- }
16013
- commit(description) {
16014
- return __awaiter(this, void 0, void 0, function* () {
16015
- if (this.transactionLine.goodDescription !== description) {
16016
- const oldDescription = this.transactionLine.goodDescription;
16017
- const success = yield this._transactionService.updateGoodDescriptionTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, description);
16018
- if (!success) {
16019
- this.input.model = oldDescription;
16020
- }
16021
- return success;
16022
- }
16023
- return true;
16024
- });
16025
- }
16026
- transactionLineSet() {
16027
- this.readonly = this.readonly || !this.transactionLine.articleFreeDescription;
16028
- }
16029
- }
16030
- TransactionLineDescriptionComponent.decorators = [
16031
- { type: Component, args: [{
16032
- selector: "co-transaction-line-description",
16033
- template: `
16034
- <div class="co-transaction-default-flex-row" *ngIf="(!editMode || readonly) && !defaultEditMode">
16035
- <div class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.goodDescription"></div>
16036
- <co-icon [iconData]="iconCacheService.getIcon(icons.EditPencil)" *ngIf="!readonly && !editMode" (click)="editMode = true"></co-icon>
16037
- </div>
16038
- <co-input-text #input *ngIf="editMode || defaultEditMode"
16039
- [placeholder]="showLabel ? ('GOOD_DESCRIPTION' | localize) : ''"
16040
- [showSaveCancel]="!readonly"
16041
- [readonly]="readonly"
16042
- [model]="transactionLine.goodDescription"
16043
- (blur)="editMode = false"
16044
- ></co-input-text>
16045
- `,
16046
- encapsulation: ViewEncapsulation.None
16047
- },] }
16048
- ];
16049
- TransactionLineDescriptionComponent.ctorParameters = () => [
16050
- { type: IconCacheService },
16051
- { type: TransactionService }
16052
- ];
16053
- TransactionLineDescriptionComponent.propDecorators = {
16054
- child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
16055
- showLabel: [{ type: Input }],
16056
- defaultEditMode: [{ type: Input }],
16057
- editMode: [{ type: Input }],
16058
- handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
16059
- };
16060
-
16061
- class TransactionLineDescriptionModule {
16062
- }
16063
- TransactionLineDescriptionModule.decorators = [
16064
- { type: NgModule, args: [{
16065
- imports: [
16066
- CommonModule,
16067
- InputTextModule,
16068
- PipeModule,
16069
- IconModule
16070
- ],
16071
- declarations: [
16072
- TransactionLineDescriptionComponent
16073
- ],
16074
- exports: [
16075
- TransactionLineDescriptionComponent
16076
- ]
16077
- },] }
16078
- ];
16079
-
16080
16485
  class TransactionLineSidePanelDefaultModule {
16081
16486
  }
16082
16487
  TransactionLineSidePanelDefaultModule.decorators = [
@@ -16705,11 +17110,12 @@ TransactionButtonBarModule.decorators = [
16705
17110
  ];
16706
17111
 
16707
17112
  class TransactionConfirmationHistoryComponent {
16708
- constructor(iconCacheService, transactionService, _datePipe) {
17113
+ constructor(iconCacheService, transactionService, _changeDetector) {
16709
17114
  this.iconCacheService = iconCacheService;
16710
17115
  this.transactionService = transactionService;
16711
- this._datePipe = _datePipe;
17116
+ this._changeDetector = _changeDetector;
16712
17117
  this.icons = Icon;
17118
+ this.lineSelected = new EventEmitter();
16713
17119
  this.getPurchasePortalLine = new GetPurchasePortalLine();
16714
17120
  this.purchasePortalFilter = new PurchasePortalFilters();
16715
17121
  }
@@ -16721,13 +17127,14 @@ class TransactionConfirmationHistoryComponent {
16721
17127
  this.lockPurchasePortalLine();
16722
17128
  }
16723
17129
  getPurchasePortalLines() {
16724
- this.purchasePortalFilter.purchaseOrderNo = this.transactionInfoNr.toString();
16725
- this.getPurchasePortalLine.transIdPurchase = this.transactionId;
16726
- this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
16727
- this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then((result) => {
16728
- this.purchasePortalLines = result;
16729
- this.docBatch = this.purchasePortalLines.find(obj => parseInt(obj.lineId) === this.transactionLines.lineNr);
16730
- this.transactionService.purchasePortalLine = this.docBatch;
17130
+ return __awaiter(this, void 0, void 0, function* () {
17131
+ this.purchasePortalFilter.purchaseOrderNo = this.transactionInfoNr.toString();
17132
+ this.purchasePortalFilter.lineId = this.transactionLines.lineNr.toString();
17133
+ this.getPurchasePortalLine.transIdPurchase = this.transactionId;
17134
+ this.getPurchasePortalLine.filterObject = this.purchasePortalFilter;
17135
+ this.transactionService.getPurchasePortalLines(this.getPurchasePortalLine).then(result => {
17136
+ this.transactionService.purchasePortalLine = result;
17137
+ });
16731
17138
  });
16732
17139
  }
16733
17140
  lockPurchasePortalLine() {
@@ -16738,21 +17145,39 @@ class TransactionConfirmationHistoryComponent {
16738
17145
  deleteDocBatch(event) {
16739
17146
  return __awaiter(this, void 0, void 0, function* () {
16740
17147
  event.deleteLine = "T";
16741
- this.transactionService.purchasePortalLine.docKind = "IB";
16742
- yield this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine);
17148
+ this.transactionService.purchasePortalLine[0].docKind = "IB";
17149
+ yield this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0]);
16743
17150
  });
16744
17151
  }
17152
+ selectedLineDocBatchArray(event) {
17153
+ this.lineSelected.emit(event);
17154
+ }
16745
17155
  }
16746
17156
  TransactionConfirmationHistoryComponent.decorators = [
16747
17157
  { type: Component, args: [{
16748
17158
  selector: "co-transaction-confirmation-history",
16749
17159
  template: `
16750
17160
  <div class="history-grid-wrapper">
16751
- <co-simple-grid *ngIf="docBatch" [data]="docBatch.docBatchArray" [showToolbar]="true" [rowsPerPage]="20" [showDelete]="true" (deleteRow)="deleteDocBatch($event)">
16752
- <co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [field]="'docDate'"></co-simple-grid-column>
17161
+ <co-simple-grid (selectRow)="selectedLineDocBatchArray($event)"
17162
+ *ngIf="transactionService.purchasePortalLine[0]"
17163
+ [data]="transactionService.purchasePortalLine[0].docBatchArray"
17164
+ [showToolbar]="true"
17165
+ [rowsPerPage]="20"
17166
+ [showDelete]="true"
17167
+ (deleteRow)="deleteDocBatch($event)"
17168
+ >
17169
+ <co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize">
17170
+ <ng-template #template let-row="row">
17171
+ <span [textContent]="row.docDate | date:'dd MMM yyyy'"></span>
17172
+ </ng-template>
17173
+ </co-simple-grid-column>
16753
17174
  <co-simple-grid-column [headerText]="'AMOUNT' | localize" [field]="'docAmount'"></co-simple-grid-column>
16754
17175
  <co-simple-grid-column [headerText]="'PRICE' | localize" [field]="'confirmedPrice'"></co-simple-grid-column>
16755
- <co-simple-grid-column [headerText]="'DATE' | localize" [field]="'docDateOrg'"></co-simple-grid-column>
17176
+ <co-simple-grid-column [headerText]="'DATE' | localize">
17177
+ <ng-template #template let-row="row">
17178
+ <span [textContent]="row.docDateOrg | date:'dd MMM yyyy'"></span>
17179
+ </ng-template>
17180
+ </co-simple-grid-column>
16756
17181
  <co-simple-grid-column [headerText]="'REFERENCE' | localize" [field]="'deliveryBatch'"></co-simple-grid-column>
16757
17182
  </co-simple-grid>
16758
17183
  </div>
@@ -16763,12 +17188,13 @@ TransactionConfirmationHistoryComponent.decorators = [
16763
17188
  TransactionConfirmationHistoryComponent.ctorParameters = () => [
16764
17189
  { type: IconCacheService },
16765
17190
  { type: TransactionService },
16766
- { type: DatePipe }
17191
+ { type: ChangeDetectorRef }
16767
17192
  ];
16768
17193
  TransactionConfirmationHistoryComponent.propDecorators = {
16769
17194
  transactionLines: [{ type: Input }],
16770
17195
  transactionId: [{ type: Input }],
16771
17196
  transactionInfoNr: [{ type: Input }],
17197
+ lineSelected: [{ type: Output }],
16772
17198
  showClass: [{ type: HostBinding, args: ["class.co-transaction-confirmation-history",] }]
16773
17199
  };
16774
17200
 
@@ -16786,7 +17212,8 @@ TransactionConfirmationHistoryModule.decorators = [
16786
17212
  IconModule,
16787
17213
  InputTextModule,
16788
17214
  InputDateRangePickerModule,
16789
- InputNumberPickerModule
17215
+ InputNumberPickerModule,
17216
+ ButtonModule
16790
17217
  ],
16791
17218
  declarations: [
16792
17219
  TransactionConfirmationHistoryComponent
@@ -16798,13 +17225,12 @@ TransactionConfirmationHistoryModule.decorators = [
16798
17225
  ];
16799
17226
 
16800
17227
  class TransactionConfirmationDetailsComponent {
16801
- constructor(iconCacheService, transactionService, _datePipe) {
17228
+ constructor(iconCacheService, transactionService) {
16802
17229
  this.iconCacheService = iconCacheService;
16803
17230
  this.transactionService = transactionService;
16804
- this._datePipe = _datePipe;
16805
17231
  this.icons = Icon;
16806
17232
  this.showAddOrder = false;
16807
- this.newDocBatchArray = this.transactionService.docDeliveryBatch;
17233
+ this.newDocBatchArray = new DocDeliveryBatch();
16808
17234
  }
16809
17235
  showClass() {
16810
17236
  return true;
@@ -16817,9 +17243,10 @@ class TransactionConfirmationDetailsComponent {
16817
17243
  this.newDocBatchArray.docAmountOrg = 0;
16818
17244
  this.newDocBatchArray.docDateOrg = new Date();
16819
17245
  this.newDocBatchArray.deleteLine = "F";
16820
- this.transactionService.purchasePortalLine.docBatchArray.push(this.newDocBatchArray);
16821
- this.transactionService.purchasePortalLine.docKind = "IB";
16822
- this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine);
17246
+ this.newDocBatchArray.historical = "G";
17247
+ this.transactionService.purchasePortalLine[0].docBatchArray.push(this.newDocBatchArray);
17248
+ this.transactionService.purchasePortalLine[0].docKind = "IB";
17249
+ this.transactionService.updatePurchasePortalLines(this.transactionService.purchasePortalLine[0]);
16823
17250
  this.newDocBatchArray = new DocDeliveryBatch();
16824
17251
  }
16825
17252
  else {
@@ -16885,18 +17312,20 @@ TransactionConfirmationDetailsComponent.decorators = [
16885
17312
  </div>
16886
17313
  </div>
16887
17314
  `,
17315
+ changeDetection: ChangeDetectionStrategy.OnPush,
16888
17316
  encapsulation: ViewEncapsulation.None
16889
17317
  },] }
16890
17318
  ];
16891
17319
  TransactionConfirmationDetailsComponent.ctorParameters = () => [
16892
17320
  { type: IconCacheService },
16893
- { type: TransactionService },
16894
- { type: DatePipe }
17321
+ { type: TransactionService }
16895
17322
  ];
16896
17323
  TransactionConfirmationDetailsComponent.propDecorators = {
16897
17324
  transactionLines: [{ type: Input }],
16898
17325
  transactionInfoNr: [{ type: Input }],
16899
- showClass: [{ type: HostBinding, args: ["class.co-transaction-confirmation-details",] }]
17326
+ testLines: [{ type: Input }],
17327
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-confirmation-details",] }],
17328
+ newDocBatchArray: [{ type: Input }]
16900
17329
  };
16901
17330
 
16902
17331
  class DefaultOkCancelButtonsComponent {
@@ -17014,6 +17443,9 @@ class TransactionLineSidePanelPurchaseComponent {
17014
17443
  });
17015
17444
  });
17016
17445
  }
17446
+ fillInputOnClick(data) {
17447
+ this.selectedLineDocBatchArray = data;
17448
+ }
17017
17449
  }
17018
17450
  TransactionLineSidePanelPurchaseComponent.decorators = [
17019
17451
  { type: Component, args: [{
@@ -17024,11 +17456,13 @@ TransactionLineSidePanelPurchaseComponent.decorators = [
17024
17456
  <co-transaction-confirmation-details
17025
17457
  [transactionInfoNr]="transactionInfo.transactionNr"
17026
17458
  [transactionLines]="transactionLine"
17459
+ [newDocBatchArray]="selectedLineDocBatchArray"
17027
17460
  ></co-transaction-confirmation-details>
17028
17461
  <co-transaction-confirmation-history
17029
17462
  [transactionLines]="transactionLine"
17030
17463
  [transactionInfoNr]="transactionInfo.transactionNr"
17031
17464
  [transactionId]="transactionInfo.id"
17465
+ (lineSelected)="fillInputOnClick($event)"
17032
17466
  ></co-transaction-confirmation-history>
17033
17467
  </ng-container>
17034
17468
 
@@ -17354,6 +17788,41 @@ DialogTransactionLineWarehouseModule.decorators = [
17354
17788
  },] }
17355
17789
  ];
17356
17790
 
17791
+ class DialogTransactionLineDeliveryMethodComponent extends DialogTransactionLineBaseComponent {
17792
+ showClass() {
17793
+ return true;
17794
+ }
17795
+ }
17796
+ DialogTransactionLineDeliveryMethodComponent.decorators = [
17797
+ { type: Component, args: [{
17798
+ selector: "co-dialog-transaction-line-delivery-method",
17799
+ template: `
17800
+ <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
17801
+ <co-transaction-line-delivery-method
17802
+ [autoClose]="autoClose"
17803
+ [useModel]="useModel"
17804
+ [transactionInfo]="transactionInfo"
17805
+ [transactionLine]="transactionLine"
17806
+ [searchText]="searchText"
17807
+ (closeAfterCommit)="handleClose(buttonType.Ok)"
17808
+ (valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
17809
+ </co-dialog>
17810
+ <ng-template #dialogHeader>
17811
+ <co-dialog-header-search [title]="'DELIVERY_METHOD'" (search)="handleSearch($event)"></co-dialog-header-search>
17812
+ </ng-template>
17813
+ <ng-template #footerTemplate>
17814
+ <div class="dialog-footer-button-wrapper" *ngIf="!useModel">
17815
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
17816
+ </div>
17817
+ </ng-template>
17818
+ `,
17819
+ encapsulation: ViewEncapsulation.None
17820
+ },] }
17821
+ ];
17822
+ DialogTransactionLineDeliveryMethodComponent.propDecorators = {
17823
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
17824
+ };
17825
+
17357
17826
  class DialogTransactionLineDeliveryMethodModule {
17358
17827
  }
17359
17828
  DialogTransactionLineDeliveryMethodModule.decorators = [
@@ -17375,6 +17844,41 @@ DialogTransactionLineDeliveryMethodModule.decorators = [
17375
17844
  },] }
17376
17845
  ];
17377
17846
 
17847
+ class DialogTransactionLineVatComponent extends DialogTransactionLineBaseComponent {
17848
+ showClass() {
17849
+ return true;
17850
+ }
17851
+ }
17852
+ DialogTransactionLineVatComponent.decorators = [
17853
+ { type: Component, args: [{
17854
+ selector: "co-dialog-transaction-line-vat",
17855
+ template: `
17856
+ <co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
17857
+ <co-transaction-line-vat
17858
+ [autoClose]="autoClose"
17859
+ [useModel]="useModel"
17860
+ [transactionLine]="transactionLine"
17861
+ [searchText]="searchText"
17862
+ (closeAfterCommit)="handleClose(buttonType.Ok)"
17863
+ (valueChange)="handleValueChange($event)"
17864
+ ></co-transaction-line-vat>
17865
+ </co-dialog>
17866
+ <ng-template #dialogHeader>
17867
+ <co-dialog-header-search [title]="'VAT'" (search)="handleSearch($event)"></co-dialog-header-search>
17868
+ </ng-template>
17869
+ <ng-template #footerTemplate>
17870
+ <div class="dialog-footer-button-wrapper" *ngIf="!useModel">
17871
+ <co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
17872
+ </div>
17873
+ </ng-template>
17874
+ `,
17875
+ encapsulation: ViewEncapsulation.None
17876
+ },] }
17877
+ ];
17878
+ DialogTransactionLineVatComponent.propDecorators = {
17879
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
17880
+ };
17881
+
17378
17882
  class DialogTransactionLineVatModule {
17379
17883
  }
17380
17884
  DialogTransactionLineVatModule.decorators = [
@@ -17396,6 +17900,100 @@ DialogTransactionLineVatModule.decorators = [
17396
17900
  },] }
17397
17901
  ];
17398
17902
 
17903
+ class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseComponent {
17904
+ constructor(_dialogService, _service) {
17905
+ super();
17906
+ this._dialogService = _dialogService;
17907
+ this._service = _service;
17908
+ this.showPriceListDialog = false;
17909
+ }
17910
+ showClass() {
17911
+ return true;
17912
+ }
17913
+ openThePriceListDialog() {
17914
+ this.showPriceListDialog = true;
17915
+ }
17916
+ transactionLineSet() {
17917
+ this._loadLinePricelist();
17918
+ }
17919
+ transactionInfoSet() {
17920
+ this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
17921
+ }
17922
+ _loadLinePricelist() {
17923
+ return __awaiter(this, void 0, void 0, function* () {
17924
+ if (this.transactionLine && this.transactionLine.isArticle) {
17925
+ this._service.getPriceLists().then((lists) => {
17926
+ const priceList = lists.find(l => l.code === this.transactionLine.priceListCode);
17927
+ this.transactionLine.priceListDescription = priceList ? priceList.description : "";
17928
+ });
17929
+ }
17930
+ });
17931
+ }
17932
+ }
17933
+ DialogTransactionLineDiscountComponent.decorators = [
17934
+ { type: Component, args: [{
17935
+ selector: "co-dialog-transaction-line-discount",
17936
+ template: `
17937
+ <co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
17938
+ <div class="transaction-line-discount-wrapper co-transaction-small-toolbar">
17939
+ <div class="two-column-grid">
17940
+ <co-transaction-line-line-discount [transactionLine]="transactionLine"></co-transaction-line-line-discount>
17941
+ <co-transaction-line-discount-amount [transactionLine]="transactionLine"></co-transaction-line-discount-amount>
17942
+ </div>
17943
+ <div class="two-column-grid">
17944
+ <co-transaction-line-special-discount [transactionLine]="transactionLine"></co-transaction-line-special-discount>
17945
+ <co-transaction-line-quantum-discount [transactionLine]="transactionLine"></co-transaction-line-quantum-discount>
17946
+ </div>
17947
+ <div class="two-column-grid">
17948
+ <co-input-text [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="readonly"></co-input-text>
17949
+ <co-input-text [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="readonly"></co-input-text>
17950
+ </div>
17951
+ <div class="transaction-line-discount-overview">
17952
+ <div class="transaction-line-discount-overview-item">
17953
+ <div class="title" [textContent]="'TRANSACTION_DISCOUNT' | localize"></div>
17954
+ <div class="value" [class.transaction-negative-value]="transactionLine.discountAmount < 0" [textContent]="transactionLine.discountAmount | coCurrency"></div>
17955
+ </div>
17956
+ <div class="transaction-line-discount-overview-item">
17957
+ <div class="title" [textContent]="'BUSINESS_RULE_DISCOUNT' | localize"></div>
17958
+ <div class="value" [textContent]="'NIET_GEIMPLEMENTEERD'"></div>
17959
+ </div>
17960
+ <div class="transaction-line-discount-overview-item">
17961
+ <div class="title" [textContent]="'QUANTUM_DISCOUNT' | localize"></div>
17962
+ <div class="value" [class.transaction-negative-value]="transactionLine.quantumDiscount < 0" [textContent]="transactionLine.quantumDiscount | coCurrency"></div>
17963
+ </div>
17964
+ <div class="transaction-line-discount-overview-item">
17965
+ <div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
17966
+ <div class="value" [class.transaction-negative-value]="transactionLine.surchargeAmount < 0" [textContent]="transactionLine.surchargeAmount | coCurrency"></div>
17967
+ </div>
17968
+ <div class="transaction-line-discount-overview-item total">
17969
+ <div class="title" [textContent]="'TOTAL_LINE_DISCOUNT' | localize"></div>
17970
+ <div class="value" [class.transaction-negative-value]="transactionLine.lineTotalDiscountAmount < 0" [textContent]="transactionLine.lineTotalDiscountAmount | coCurrency"></div>
17971
+ </div>
17972
+ </div>
17973
+ </div>
17974
+ </co-dialog>
17975
+ <ng-template #dialogHeader>
17976
+ <div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
17977
+ <div class="transaction-line-button big" (click)="openThePriceListDialog()">
17978
+ <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.priceListDescription"></span>
17979
+ </div>
17980
+ </ng-template>
17981
+ <co-dialog-transaction-line-price-list *ngIf="showPriceListDialog"
17982
+ [transactionLine]="transactionLine"
17983
+ (close)="showPriceListDialog = false"
17984
+ ></co-dialog-transaction-line-price-list>
17985
+ `,
17986
+ encapsulation: ViewEncapsulation.None
17987
+ },] }
17988
+ ];
17989
+ DialogTransactionLineDiscountComponent.ctorParameters = () => [
17990
+ { type: DialogService },
17991
+ { type: TransactionService }
17992
+ ];
17993
+ DialogTransactionLineDiscountComponent.propDecorators = {
17994
+ showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
17995
+ };
17996
+
17399
17997
  class DialogTransactionLinePriceListComponent extends DialogTransactionLineBaseComponent {
17400
17998
  showClass() {
17401
17999
  return true;
@@ -18371,16 +18969,6 @@ class TransactionTileComponent {
18371
18969
  handleSidePanelButtonClicked() {
18372
18970
  this.showSidePanelClicked.next(this._transactionLine);
18373
18971
  }
18374
- getStatusColor(n) {
18375
- switch (n) {
18376
- case 0:
18377
- return '#5fdbb2';
18378
- case 1:
18379
- return '#f78852';
18380
- case 2:
18381
- return '#f23a3a';
18382
- }
18383
- }
18384
18972
  _loadLineImage() {
18385
18973
  return __awaiter(this, void 0, void 0, function* () {
18386
18974
  if (this._transactionLine && this._transactionLine.isArticle) {
@@ -18418,9 +19006,7 @@ TransactionTileComponent.decorators = [
18418
19006
  </div>
18419
19007
 
18420
19008
  <div class="transaction-order-status-row">
18421
- <div class="indicators-wrapper">
18422
- <div *ngFor="let n of [0, 1, 2]" [style.background]="getStatusColor(n)" class="transaction-order-status-indicator"></div>
18423
- </div>
19009
+ <co-transaction-line-statusbar [transaction]="transactionLine" [transactionKind]="transactionType"></co-transaction-line-statusbar>
18424
19010
  </div>
18425
19011
 
18426
19012
  <div class="transaction-data-row center">
@@ -18486,7 +19072,8 @@ TransactionTileModule.decorators = [
18486
19072
  IconModule,
18487
19073
  PipeModule,
18488
19074
  FormsModule,
18489
- PriceDisplayPipeModule
19075
+ PriceDisplayPipeModule,
19076
+ TransactionLineStatusbarModule
18490
19077
  ],
18491
19078
  declarations: [
18492
19079
  TransactionTileComponent
@@ -18523,6 +19110,8 @@ class EditableLabelComponent {
18523
19110
  return true;
18524
19111
  }
18525
19112
  handleClick(event) {
19113
+ event.preventDefault();
19114
+ event.stopPropagation();
18526
19115
  if (!this.readonly) {
18527
19116
  this.editMode = true;
18528
19117
  }
@@ -18632,134 +19221,28 @@ TransactionBaseLineComponent.decorators = [
18632
19221
  </div>
18633
19222
  </div>
18634
19223
  </ng-container>
18635
- <ng-container *ngIf="line.isText">
18636
- <div [textContent]="line.text"></div>
18637
- <div class="transaction-line-delete" *ngIf="!preview">
18638
- <co-icon class="delete-icon" [iconData]="iconCacheService.getIcon(icons.TrashCanLight)" (click)="deleteTransactionLineClick()"></co-icon>
18639
- </div>
18640
- </ng-container>
18641
- </div>
18642
- `,
18643
- encapsulation: ViewEncapsulation.None
18644
- },] }
18645
- ];
18646
- TransactionBaseLineComponent.ctorParameters = () => [
18647
- { type: TransactionService },
18648
- { type: IconCacheService },
18649
- { type: TransactionEventService }
18650
- ];
18651
- TransactionBaseLineComponent.propDecorators = {
18652
- checkbox: [{ type: Input }],
18653
- checkboxValue: [{ type: Input }],
18654
- actionButtons: [{ type: Input }],
18655
- showClass: [{ type: HostBinding, args: ["class.co-transaction-base-line",] }]
18656
- };
18657
-
18658
- class TransactionLineImageAndDescriptionComponent {
18659
- constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
18660
- this.service = service;
18661
- this.iconCacheService = iconCacheService;
18662
- this._dialogService = _dialogService;
18663
- this._dictionaryService = _dictionaryService;
18664
- this._imageService = _imageService;
18665
- this.icons = Icon;
18666
- this.preview = false;
18667
- this.openArticleTextClicked = new EventEmitter();
18668
- this.handleDeleteLine = new EventEmitter();
18669
- }
18670
- set line(value) {
18671
- this._line = value;
18672
- this._loadLineImage();
18673
- }
18674
- get line() {
18675
- return this._line;
18676
- }
18677
- showClass() {
18678
- return true;
18679
- }
18680
- handleOpenArticleText(text) {
18681
- this.openArticleTextClicked.next(text);
18682
- }
18683
- deleteTransactionLineClick() {
18684
- return __awaiter(this, void 0, void 0, function* () {
18685
- this.handleDeleteLine.next();
18686
- });
18687
- }
18688
- _loadLineImage() {
18689
- return __awaiter(this, void 0, void 0, function* () {
18690
- if (this.line && this.line.isArticle) {
18691
- this._imageService.retrieveLineImage(this.line).then((image) => {
18692
- this.image = image;
18693
- });
18694
- }
18695
- });
18696
- }
18697
- }
18698
- TransactionLineImageAndDescriptionComponent.decorators = [
18699
- { type: Component, args: [{
18700
- selector: "co-transaction-line-image-and-description",
18701
- template: `
18702
- <div class="transaction-line-image" [class.preview]="preview">
18703
- <co-image-display [model]="image"></co-image-display>
18704
- </div>
18705
- <div class="transaction-line-description">
18706
- <div class="description-wrapper">
18707
- <co-transaction-line-description class="transaction-line-description-description"
18708
- [transactionLine]="line"
18709
- [defaultEditMode]="false"
18710
- [showLabel]="false"
18711
- ></co-transaction-line-description>
18712
- <span *ngIf="line.goodDescription && line.articleNumber">|</span>
18713
- <span [textContent]="line.articleNumber"></span>
18714
- <co-icon class="delete-icon" [iconData]="iconCacheService.getIcon(icons.TrashCanLight)" (click)="deleteTransactionLineClick()"></co-icon>
18715
- </div>
18716
- <div *ngIf=!preview class="article-text-wrapper">
18717
- <div class="article-text" *ngFor="let text of line.articleTestAsArray">
18718
- <span [innerHTML]="text | safeHtml" (dblclick)="handleOpenArticleText(text)"></span>
18719
- </div>
18720
- </div>
18721
- <div *ngIf=!preview>
18722
- <span [innerHTML]="line.configurationReadable"></span>
18723
- </div>
18724
- </div>
18725
- `,
18726
- encapsulation: ViewEncapsulation.None
18727
- },] }
18728
- ];
18729
- TransactionLineImageAndDescriptionComponent.ctorParameters = () => [
18730
- { type: TransactionService },
18731
- { type: IconCacheService },
18732
- { type: DialogService },
18733
- { type: DictionaryService },
18734
- { type: TransactionImageService }
18735
- ];
18736
- TransactionLineImageAndDescriptionComponent.propDecorators = {
18737
- line: [{ type: Input }],
18738
- showClass: [{ type: HostBinding, args: ["class.co-transaction-line-image-and-description",] }],
18739
- preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
18740
- openArticleTextClicked: [{ type: Output }],
18741
- handleDeleteLine: [{ type: Output }]
18742
- };
18743
-
18744
- class TransactionLineImageAndDescriptionModule {
18745
- }
18746
- TransactionLineImageAndDescriptionModule.decorators = [
18747
- { type: NgModule, args: [{
18748
- imports: [
18749
- CommonModule,
18750
- IconModule,
18751
- TransactionLineDescriptionModule,
18752
- CoreModule,
18753
- PipeModule
18754
- ],
18755
- declarations: [
18756
- TransactionLineImageAndDescriptionComponent
18757
- ],
18758
- exports: [
18759
- TransactionLineImageAndDescriptionComponent
18760
- ]
19224
+ <ng-container *ngIf="line.isText">
19225
+ <div [textContent]="line.text"></div>
19226
+ <div class="transaction-line-delete" *ngIf="!preview">
19227
+ <co-icon class="delete-icon" [iconData]="iconCacheService.getIcon(icons.TrashCanLight)" (click)="deleteTransactionLineClick()"></co-icon>
19228
+ </div>
19229
+ </ng-container>
19230
+ </div>
19231
+ `,
19232
+ encapsulation: ViewEncapsulation.None
18761
19233
  },] }
18762
- ];
19234
+ ];
19235
+ TransactionBaseLineComponent.ctorParameters = () => [
19236
+ { type: TransactionService },
19237
+ { type: IconCacheService },
19238
+ { type: TransactionEventService }
19239
+ ];
19240
+ TransactionBaseLineComponent.propDecorators = {
19241
+ checkbox: [{ type: Input }],
19242
+ checkboxValue: [{ type: Input }],
19243
+ actionButtons: [{ type: Input }],
19244
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-base-line",] }]
19245
+ };
18763
19246
 
18764
19247
  class TransactionBaseLineModule {
18765
19248
  }
@@ -18781,33 +19264,47 @@ TransactionBaseLineModule.decorators = [
18781
19264
  },] }
18782
19265
  ];
18783
19266
 
18784
- class TransactionLineCommissionButtonComponent {
18785
- constructor(_dialogService) {
18786
- this._dialogService = _dialogService;
19267
+ class TransactionLineCommissionButtonComponent extends TransactionLineBaseComponent {
19268
+ constructor(_service) {
19269
+ super();
19270
+ this._service = _service;
19271
+ this.showDialogCommissionCode = false;
18787
19272
  }
18788
19273
  showClass() {
18789
19274
  return true;
18790
19275
  }
18791
- openCommissionCodeDialog() {
18792
- this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
19276
+ transactionLineSet() {
19277
+ return __awaiter(this, void 0, void 0, function* () {
19278
+ if (this.transactionLine && this.transactionLine.isArticle) {
19279
+ this._service.getCommissionCodes('NL').then((codes) => {
19280
+ const commissionCode = codes.find(c => c.code === this.transactionLine.commissionCode);
19281
+ this.transactionLine.commissionDescription = commissionCode ? commissionCode.description : "";
19282
+ });
19283
+ }
19284
+ });
18793
19285
  }
18794
19286
  }
18795
19287
  TransactionLineCommissionButtonComponent.decorators = [
18796
19288
  { type: Component, args: [{
18797
19289
  selector: "co-transaction-line-commission-button",
18798
19290
  template: `
18799
- <div class="transaction-line-button" (click)="openCommissionCodeDialog()">
18800
- <span class="co-transaction-overflow-ellipsis" [textContent]="line.commissionCode | append:' | ' | append:line.commissionDescription"></span>
19291
+ <div class="transaction-line-button" (click)="showDialogCommissionCode = true">
19292
+ <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.commissionCode | append:' | ' | append:transactionLine.commissionDescription"></span>
18801
19293
  </div>
19294
+ <co-dialog-transaction-line-commission-code *ngIf="showDialogCommissionCode"
19295
+ [autoClose]="true"
19296
+ [transactionInfo]="transactionInfo"
19297
+ [transactionLine]="transactionLine"
19298
+ (close)="showDialogCommissionCode = false"
19299
+ ></co-dialog-transaction-line-commission-code>
18802
19300
  `,
18803
19301
  encapsulation: ViewEncapsulation.None
18804
19302
  },] }
18805
19303
  ];
18806
19304
  TransactionLineCommissionButtonComponent.ctorParameters = () => [
18807
- { type: DialogService }
19305
+ { type: TransactionService }
18808
19306
  ];
18809
19307
  TransactionLineCommissionButtonComponent.propDecorators = {
18810
- line: [{ type: Input }],
18811
19308
  showClass: [{ type: HostBinding, args: ["class.co-transaction-line-commission-button",] }]
18812
19309
  };
18813
19310
 
@@ -18817,7 +19314,8 @@ TransactionLineCommissionButtonModule.decorators = [
18817
19314
  { type: NgModule, args: [{
18818
19315
  imports: [
18819
19316
  CommonModule,
18820
- PipeModule
19317
+ PipeModule,
19318
+ DialogTransactionLineCommissionCodeModule
18821
19319
  ],
18822
19320
  declarations: [
18823
19321
  TransactionLineCommissionButtonComponent
@@ -18828,41 +19326,51 @@ TransactionLineCommissionButtonModule.decorators = [
18828
19326
  },] }
18829
19327
  ];
18830
19328
 
18831
- class TransactionLineWarehouseButtonComponent {
18832
- constructor(iconCacheService, _dialogService) {
19329
+ class TransactionLineWarehouseButtonComponent extends TransactionLineBaseComponent {
19330
+ constructor(iconCacheService, service) {
19331
+ super();
18833
19332
  this.iconCacheService = iconCacheService;
18834
- this._dialogService = _dialogService;
19333
+ this.service = service;
18835
19334
  this.icons = Icon;
18836
- this.readonly = false;
19335
+ this.showDialogWarehouse = false;
18837
19336
  }
18838
19337
  showClass() {
18839
19338
  return true;
18840
19339
  }
18841
- openWarehouseDialog() {
18842
- if (!this.readonly) {
18843
- this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
18844
- }
19340
+ transactionLineSet() {
19341
+ return __awaiter(this, void 0, void 0, function* () {
19342
+ if (this.transactionLine && this.transactionLine.isArticle) {
19343
+ this.service.getWarehouses().then((warehouses) => {
19344
+ const warehouse = warehouses.find(w => w.warehouseNo === this.transactionLine.warehouseNumber);
19345
+ this.transactionLine.warehouseDescription = warehouse ? warehouse.description : "";
19346
+ });
19347
+ }
19348
+ });
18845
19349
  }
18846
19350
  }
18847
19351
  TransactionLineWarehouseButtonComponent.decorators = [
18848
19352
  { type: Component, args: [{
18849
19353
  selector: "co-transaction-line-warehouse-button",
18850
19354
  template: `
18851
- <div class="transaction-line-button" [class.no-pointer]="readonly" (click)="openWarehouseDialog()">
19355
+ <div class="transaction-line-button" [class.no-pointer]="readonly" (click)="showDialogWarehouse = true">
18852
19356
  <co-icon class="header-warehouse-icon" [iconData]="iconCacheService.getIcon(icons.Warehouse)"></co-icon>
18853
- <span class="co-transaction-overflow-ellipsis" [textContent]="line.warehouseNumber"></span>
19357
+ <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.warehouseNumber"></span>
18854
19358
  </div>
19359
+ <co-dialog-transaction-line-warehouse *ngIf="showDialogWarehouse"
19360
+ [autoClose]="true"
19361
+ [transactionInfo]="transactionInfo"
19362
+ [transactionLine]="transactionLine"
19363
+ (close)="showDialogWarehouse = false"
19364
+ ></co-dialog-transaction-line-warehouse>
18855
19365
  `,
18856
19366
  encapsulation: ViewEncapsulation.None
18857
19367
  },] }
18858
19368
  ];
18859
19369
  TransactionLineWarehouseButtonComponent.ctorParameters = () => [
18860
19370
  { type: IconCacheService },
18861
- { type: DialogService }
19371
+ { type: TransactionService }
18862
19372
  ];
18863
19373
  TransactionLineWarehouseButtonComponent.propDecorators = {
18864
- line: [{ type: Input }],
18865
- readonly: [{ type: Input }],
18866
19374
  showClass: [{ type: HostBinding, args: ["class.co-transaction-line-warehouse-button",] }]
18867
19375
  };
18868
19376
 
@@ -18872,7 +19380,8 @@ TransactionLineWarehouseButtonModule.decorators = [
18872
19380
  { type: NgModule, args: [{
18873
19381
  imports: [
18874
19382
  CommonModule,
18875
- IconModule
19383
+ IconModule,
19384
+ DialogTransactionLineWarehouseModule
18876
19385
  ],
18877
19386
  declarations: [
18878
19387
  TransactionLineWarehouseButtonComponent
@@ -18883,37 +19392,51 @@ TransactionLineWarehouseButtonModule.decorators = [
18883
19392
  },] }
18884
19393
  ];
18885
19394
 
18886
- class TransactionLineDeliveryButtonComponent {
18887
- constructor(iconCacheService, _dialogService) {
19395
+ class TransactionLineDeliveryButtonComponent extends TransactionLineBaseComponent {
19396
+ constructor(iconCacheService, service) {
19397
+ super();
18888
19398
  this.iconCacheService = iconCacheService;
18889
- this._dialogService = _dialogService;
19399
+ this.service = service;
18890
19400
  this.icons = Icon;
19401
+ this.showDialogDeliveryMethod = false;
18891
19402
  }
18892
19403
  showClass() {
18893
19404
  return true;
18894
19405
  }
18895
- openDeliveryMethodDialog() {
18896
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
19406
+ transactionLineSet() {
19407
+ return __awaiter(this, void 0, void 0, function* () {
19408
+ if (this.transactionLine && this.transactionLine.isArticle) {
19409
+ this.service.getDeliveryMethods().then((methods) => {
19410
+ const method = methods.find(m => m.code === this.transactionLine.deliveryMethodCode);
19411
+ this.transactionLine.deliveryMethodDescription = method ? method.description : "";
19412
+ });
19413
+ }
19414
+ });
18897
19415
  }
18898
19416
  }
18899
19417
  TransactionLineDeliveryButtonComponent.decorators = [
18900
19418
  { type: Component, args: [{
18901
19419
  selector: "co-transaction-line-delivery-button",
18902
19420
  template: `
18903
- <div class="transaction-line-button big" (click)="openDeliveryMethodDialog()">
19421
+ <div class="transaction-line-button big" (click)="showDialogDeliveryMethod = true">
18904
19422
  <co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"></co-icon>
18905
- <span class="co-transaction-overflow-ellipsis" [textContent]="line.deliveryMethodDescription"></span>
19423
+ <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryMethodDescription"></span>
18906
19424
  </div>
19425
+ <co-dialog-transaction-line-delivery-method *ngIf="showDialogDeliveryMethod"
19426
+ [autoClose]="true"
19427
+ [transactionInfo]="transactionInfo"
19428
+ [transactionLine]="transactionLine"
19429
+ (close)="showDialogDeliveryMethod = false"
19430
+ ></co-dialog-transaction-line-delivery-method>
18907
19431
  `,
18908
19432
  encapsulation: ViewEncapsulation.None
18909
19433
  },] }
18910
19434
  ];
18911
19435
  TransactionLineDeliveryButtonComponent.ctorParameters = () => [
18912
19436
  { type: IconCacheService },
18913
- { type: DialogService }
19437
+ { type: TransactionService }
18914
19438
  ];
18915
19439
  TransactionLineDeliveryButtonComponent.propDecorators = {
18916
- line: [{ type: Input }],
18917
19440
  showClass: [{ type: HostBinding, args: ["class.co-transaction-line-delivery-button",] }]
18918
19441
  };
18919
19442
 
@@ -18923,7 +19446,8 @@ TransactionLineDeliveryButtonModule.decorators = [
18923
19446
  { type: NgModule, args: [{
18924
19447
  imports: [
18925
19448
  CommonModule,
18926
- IconModule
19449
+ IconModule,
19450
+ DialogTransactionLineDeliveryMethodModule
18927
19451
  ],
18928
19452
  declarations: [
18929
19453
  TransactionLineDeliveryButtonComponent
@@ -18949,7 +19473,7 @@ TransactionLineDeliveryDateButtonComponent.decorators = [
18949
19473
  template: `
18950
19474
  <div class="transaction-line-button custom-width no-border">
18951
19475
  <span [textContent]="'DELIVERY_DATE' | localize | append:':'" class="small-font"></span>
18952
- <span class="co-transaction-overflow-ellipsis" [textContent]="line.deliveryDate | date:'dd MMM YYYY'"></span>
19476
+ <span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryDate | date:'dd MMM YYYY'"></span>
18953
19477
  <co-icon class="header-delivery-date-icon" [iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
18954
19478
  </div>
18955
19479
  `,
@@ -18960,7 +19484,7 @@ TransactionLineDeliveryDateButtonComponent.ctorParameters = () => [
18960
19484
  { type: IconCacheService }
18961
19485
  ];
18962
19486
  TransactionLineDeliveryDateButtonComponent.propDecorators = {
18963
- line: [{ type: Input }],
19487
+ transactionLine: [{ type: Input }],
18964
19488
  showClass: [{ type: HostBinding, args: ["class.co-transaction-line-delivery-date-button",] }]
18965
19489
  };
18966
19490
 
@@ -19004,7 +19528,10 @@ TransactionOverviewLineModule.decorators = [
19004
19528
  TransactionLineCommissionButtonModule,
19005
19529
  TransactionLineWarehouseButtonModule,
19006
19530
  TransactionLineDeliveryButtonModule,
19007
- TransactionLineDeliveryDateButtonModule
19531
+ TransactionLineDeliveryDateButtonModule,
19532
+ DialogTransactionLineVatModule,
19533
+ DialogTransactionLineDiscountModule,
19534
+ TransactionLineStatusbarModule
19008
19535
  ],
19009
19536
  declarations: [
19010
19537
  TransactionOverviewLineComponent
@@ -19015,57 +19542,6 @@ TransactionOverviewLineModule.decorators = [
19015
19542
  },] }
19016
19543
  ];
19017
19544
 
19018
- class StatusBarComponent {
19019
- constructor(iconCacheService) {
19020
- this.iconCacheService = iconCacheService;
19021
- this.icons = Icon;
19022
- }
19023
- showClass() {
19024
- return true;
19025
- }
19026
- }
19027
- StatusBarComponent.decorators = [
19028
- { type: Component, args: [{
19029
- selector: "co-status-bar",
19030
- template: `
19031
- <div>
19032
- <!--Tijdelijk visueel voorbeeld:-->
19033
- <div class="status-bar-icons-wrapper">
19034
- <co-icon class="color-green" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
19035
- <co-icon class="color-orange" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
19036
- <co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
19037
- <co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
19038
- <co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
19039
- </div>
19040
- </div>
19041
- `,
19042
- encapsulation: ViewEncapsulation.None
19043
- },] }
19044
- ];
19045
- StatusBarComponent.ctorParameters = () => [
19046
- { type: IconCacheService }
19047
- ];
19048
- StatusBarComponent.propDecorators = {
19049
- showClass: [{ type: HostBinding, args: ["class.co-status-bar",] }]
19050
- };
19051
-
19052
- class StatusBarModule {
19053
- }
19054
- StatusBarModule.decorators = [
19055
- { type: NgModule, args: [{
19056
- imports: [
19057
- CommonModule,
19058
- IconModule
19059
- ],
19060
- declarations: [
19061
- StatusBarComponent
19062
- ],
19063
- exports: [
19064
- StatusBarComponent
19065
- ]
19066
- },] }
19067
- ];
19068
-
19069
19545
  class TransactionOrderDeliveryLineModule {
19070
19546
  }
19071
19547
  TransactionOrderDeliveryLineModule.decorators = [
@@ -19076,10 +19552,10 @@ TransactionOrderDeliveryLineModule.decorators = [
19076
19552
  TransactionLineWarehouseButtonModule,
19077
19553
  TransactionLineDeliveryButtonModule,
19078
19554
  TransactionLineDeliveryDateButtonModule,
19079
- StatusBarModule,
19080
19555
  EditableLabelModule,
19081
19556
  PipeModule,
19082
- InputNumberPickerModule
19557
+ InputNumberPickerModule,
19558
+ TransactionLineStatusbarModule
19083
19559
  ],
19084
19560
  declarations: [
19085
19561
  TransactionOrderDeliveryLineComponent
@@ -19142,7 +19618,9 @@ TransactionModule.decorators = [
19142
19618
  TransactionTileModule,
19143
19619
  TransactionOverviewLineModule,
19144
19620
  TransactionOrderDeliveryLineModule,
19145
- TransactionReceiveGoodsLineModule
19621
+ TransactionReceiveGoodsLineModule,
19622
+ IconModule,
19623
+ SendMethodDialogModule
19146
19624
  ],
19147
19625
  declarations: [
19148
19626
  TransactionComponent
@@ -19173,6 +19651,136 @@ ShoppingCartModule.decorators = [
19173
19651
  },] }
19174
19652
  ];
19175
19653
 
19654
+ class TransactionSearchComponent {
19655
+ constructor(transactionSearchService) {
19656
+ this.transactionSearchService = transactionSearchService;
19657
+ this.searchViewModes = SearchViewMode;
19658
+ this.orientations = CoOrientation;
19659
+ this.directionRight = CoDirection.Right;
19660
+ this.transactionClick = new EventEmitter();
19661
+ this.searchViewModeChange = new EventEmitter();
19662
+ }
19663
+ set transactionType(value) {
19664
+ this._transactionType = value;
19665
+ this.transactionSearchService.transactionType = this._transactionType;
19666
+ }
19667
+ get transactionType() {
19668
+ return this._transactionType;
19669
+ }
19670
+ showClass() {
19671
+ return true;
19672
+ }
19673
+ onTransactionClick(transaction) {
19674
+ if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
19675
+ this.collapseSearchBar();
19676
+ }
19677
+ this._scrollToTop();
19678
+ this.transactionClick.emit(transaction);
19679
+ }
19680
+ onSearchViewResizeClick() {
19681
+ if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
19682
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
19683
+ }
19684
+ else {
19685
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
19686
+ }
19687
+ this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
19688
+ }
19689
+ onSideCollapseHandleClick() {
19690
+ this.toggleSearchBar();
19691
+ }
19692
+ toggleSearchBar() {
19693
+ if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
19694
+ this.expandSearchBar();
19695
+ }
19696
+ else {
19697
+ this.collapseSearchBar();
19698
+ }
19699
+ }
19700
+ collapseSearchBar() {
19701
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
19702
+ this.transactionSearchService.activeSearchBarViewMode = SearchbarViewMode.Collapsed;
19703
+ this.searchViewModeChange.emit(this.searchViewModes.SideBar);
19704
+ }
19705
+ expandSearchBar() {
19706
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
19707
+ this.transactionSearchService.activeSearchBarViewMode = SearchbarViewMode.Expanded;
19708
+ this.searchViewModeChange.emit(this.searchViewModes.SideBar);
19709
+ }
19710
+ calculateClasses() {
19711
+ return {
19712
+ 'fullscreen': this.transactionSearchService.fullscreen,
19713
+ 'sidebar': !this.transactionSearchService.fullscreen,
19714
+ 'collapsed': this.transactionSearchService.collapsed,
19715
+ 'expanded': !this.transactionSearchService.collapsed,
19716
+ };
19717
+ }
19718
+ _scrollToTop() {
19719
+ window.scrollTo({ top: 0, behavior: 'smooth' });
19720
+ }
19721
+ }
19722
+ TransactionSearchComponent.decorators = [
19723
+ { type: Component, args: [{
19724
+ selector: 'co-transaction-search',
19725
+ template: `
19726
+ <div class="transaction-search-main-wrapper">
19727
+ <div class="transaction-search-wrapper"
19728
+ [ngClass]="calculateClasses()">
19729
+ <div class="transaction-filter-wrapper narrow-scrollbar"
19730
+ [ngClass]="calculateClasses()"
19731
+ *ngIf="transactionSearchService.showFilterSidebar" @showHideFilterSidebar>
19732
+ <co-transaction-filter
19733
+ [transactionType]="transactionType"
19734
+ [activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
19735
+ (closeButtonClick)="transactionSearchService.handleHideFilter()"
19736
+ (resetFilterClick)="transactionSearchService.handleResetFilter()"></co-transaction-filter>
19737
+ </div>
19738
+ <div class="transaction-search-result-wrapper"
19739
+ [class.fullscreen]="transactionSearchService.fullscreen"
19740
+ [class.sidebar]="!transactionSearchService.fullscreen"
19741
+ [class.collapsed]="transactionSearchService.collapsed"
19742
+ [class.expanded]="!transactionSearchService.collapsed"
19743
+ >
19744
+ <co-transaction-search-result
19745
+ [transactionType]="transactionType"
19746
+ [activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
19747
+ (filterClick)="transactionSearchService.toggleFilter()"
19748
+ (transactionClick)="onTransactionClick($event)"
19749
+ (resizeClick)="onSearchViewResizeClick()"
19750
+ (closeClick)="collapseSearchBar()"
19751
+ ></co-transaction-search-result>
19752
+ </div>
19753
+ </div>
19754
+ <div class="transaction-search-content-wrapper"
19755
+ [class.fullscreen]="transactionSearchService.fullscreen"
19756
+ [class.sidebar]="!transactionSearchService.fullscreen"
19757
+ [class.collapsed]="transactionSearchService.collapsed"
19758
+ [class.expanded]="!transactionSearchService.collapsed"
19759
+ >
19760
+ <ng-content></ng-content>
19761
+ </div>
19762
+ </div>
19763
+ `,
19764
+ animations: [
19765
+ trigger("showHideFilterSidebar", [
19766
+ state("void", style({ transform: 'translateX(-100%)' })),
19767
+ state("*", style({ transform: 'translateX(0)' })),
19768
+ transition("void <=> *", animate("200ms ease-in-out"))
19769
+ ])
19770
+ ],
19771
+ encapsulation: ViewEncapsulation.None
19772
+ },] }
19773
+ ];
19774
+ TransactionSearchComponent.ctorParameters = () => [
19775
+ { type: TransactionSearchService }
19776
+ ];
19777
+ TransactionSearchComponent.propDecorators = {
19778
+ transactionType: [{ type: Input }],
19779
+ transactionClick: [{ type: Output }],
19780
+ searchViewModeChange: [{ type: Output }],
19781
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
19782
+ };
19783
+
19176
19784
  class TransactionFilterComponent {
19177
19785
  constructor(_mappingService, _compFactoryResolver, appRef, injector, searchService) {
19178
19786
  this._mappingService = _mappingService;
@@ -19199,6 +19807,7 @@ class TransactionFilterComponent {
19199
19807
  }
19200
19808
  set activeSearchViewMode(value) {
19201
19809
  this._activeSearchViewMode = value;
19810
+ //localStorage.setItem('viewMode', value);
19202
19811
  }
19203
19812
  get activeSearchViewMode() {
19204
19813
  return this._activeSearchViewMode;
@@ -19998,11 +20607,9 @@ TransactionFilterHistoricStateComponent.decorators = [
19998
20607
  [placeholder]="label"
19999
20608
  [customContent]="true">
20000
20609
  <co-input-radio-button *ngFor="let state of states"
20001
- [name]="groupName"
20002
- [value]="state.value"
20003
20610
  [model]="state.checked"
20004
20611
  [label]="state.label | localize"
20005
- (modelChange)="handleStateChange($event)"
20612
+ (modelChange)="handleStateChange(state.value)"
20006
20613
  ></co-input-radio-button>
20007
20614
  </co-transaction-filter-item>
20008
20615
  `,
@@ -20370,8 +20977,8 @@ class TransactionStatusbarComponent {
20370
20977
  //this.getStatusbarLine(),// Factuurcheck todo: als BE gereed is
20371
20978
  ];
20372
20979
  }
20373
- getStatusbarLine(label, property) {
20374
- return { label: this._dictionary.get(label), percentage: this.calculatePercentage(property, this._total), count: property };
20980
+ getStatusbarLine(label, quantity) {
20981
+ return { label: this._dictionary.get(label), percentage: this.calculatePercentage(quantity, this._total) };
20375
20982
  }
20376
20983
  calculatePercentage(amount, totalAmount) {
20377
20984
  if (amount === 0 || totalAmount === 0) {
@@ -20524,11 +21131,12 @@ TransactionSearchHeaderComponent.decorators = [
20524
21131
  [noIcon]="true"
20525
21132
  [(model)]="searchService.searchRequest.general"
20526
21133
  [placeholder]="'SEARCH_NUMBER_CUSTOMER_OR_DATE' | localize"
21134
+ [initFocus]="true"
20527
21135
  (search)="searchService.searchTransactions()"></co-input-search>
20528
21136
  </div>
20529
21137
  <div>
20530
21138
  <co-button class="transaction-search-filter-button"
20531
-
21139
+
20532
21140
  [iconData]="iconCacheService.getIcon(icon.BarsFilter)"
20533
21141
  (click)="filterButtonClick.emit()">
20534
21142
  </co-button>
@@ -21704,5 +22312,5 @@ TransactionLineGridModule.decorators = [
21704
22312
  * Generated bundle index. Do not edit.
21705
22313
  */
21706
22314
 
21707
- export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineStatusbarComponent, TransactionLineStatusbarModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionStatusbarComponent, TransactionStatusbarModule, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, IconCacheService as ɵba, CharacteristicAnswerModule as ɵbb, CharacteristicAnswerComponent as ɵbc, WarehouseModule as ɵbd, WarehouseComponent as ɵbe, ImageDisplayComponent as ɵbf, IconComponent as ɵbg, CustomerGroupsComponent as ɵbh, StockStatusIndicatorComponent as ɵbi, LoaderComponent as ɵbj, LazyRenderMasterDirective as ɵbk, LazyRenderDirective as ɵbl, RelationAddressModule as ɵbm, RelationAddressComponent as ɵbn, RelationBaseComponent as ɵbo, RelationAddressSelectModule as ɵbp, RelationAddressTileModule as ɵbq, TileModule as ɵbr, TileComponent as ɵbs, RelationAddressTileComponent as ɵbt, RelationAddressSelectComponent as ɵbu, BusinessObjectFactory as ɵbv, StepperModule as ɵbw, StepperComponent as ɵbx, StepperStepComponent as ɵby, TransactionLineModule as ɵbz, DynamicComponentService as ɵc, TransactionLineComponent as ɵca, TransactionMappingService as ɵcb, TransactionArticleTextModule as ɵcc, TransactionArticleTextComponent as ɵcd, TransactionReceiveGoodsService as ɵce, TransactionEventService as ɵcf, AvatarModule as ɵcg, AvatarComponent as ɵch, SharedService as ɵci, SharedConnectorService as ɵcj, DeliveryTypeTileModule as ɵck, DeliveryTypeTileComponent as ɵcl, PaymentModule as ɵcm, PaymentTileModule as ɵcn, PaymentTileComponent as ɵco, PaymentQrCodeModule as ɵcp, PaymentQrCodeComponent as ɵcq, PaymentComponent as ɵcr, PaymentService as ɵcs, RelationTypeModule as ɵct, RelationTypeComponent as ɵcu, RelationGeneralModule as ɵcv, RelationSuggestionsListModule as ɵcw, RelationSuggestionsListItemModule as ɵcx, RelationSuggestionsListItemComponent as ɵcy, RelationSuggestionsListComponent as ɵcz, OptionsService as ɵd, RelationGeneralComponent as ɵda, RelationAddressesModule as ɵdb, RelationAddressesComponent as ɵdc, RelationContactDetailsModule as ɵdd, RelationContactDetailsComponent as ɵde, RelationPreferencesModule as ɵdf, RelationPreferencesComponent as ɵdg, TransactionHeaderBlockModule as ɵdh, TransactionHeaderBlockComponent as ɵdi, TransactionHeaderDeliveryDateModule as ɵdj, TransactionHeaderDeliveryDateComponent as ɵdk, TransactionHeaderBaseComponent as ɵdl, TransactionFilterPopupBaseComponent as ɵdm, TransactionHeaderDeliveryOptionsModule as ɵdn, TransactionHeaderDeliveryOptionsComponent as ɵdo, TransactionHeaderRemarksModule as ɵdp, TransactionHeaderRemarksComponent as ɵdq, TransactionHeaderReferenceModule as ɵdr, TransactionHeaderReferenceComponent as ɵds, TransactionHeaderRelationReferenceModule as ɵdt, TransactionHeaderRelationReferenceComponent as ɵdu, TransactionHeaderDeliveryMethodModule as ɵdv, TransactionLineCheckboxModule as ɵdw, TransactionLineCheckboxListComponent as ɵdx, TransactionHeaderDeliveryMethodComponent as ɵdy, TransactionHeaderPreferredDeliveryDateModule as ɵdz, DictionaryService as ɵe, TransactionHeaderPreferredDeliveryDateComponent as ɵea, DialogTransactionHeaderDeliveryMethodModule as ɵeb, DialogHeaderSearchModule as ɵec, DialogHeaderSearchComponent as ɵed, DialogTransactionHeaderDeliveryMethodComponent as ɵee, DialogTransactionHeaderBaseComponent as ɵef, TransactionBaseComponent as ɵeg, TransactionHeaderPartialDeliveryModule as ɵeh, TransactionHeaderPartialDeliveryComponent as ɵei, TransactionHeaderDownpaymentPercentageModule as ɵej, TransactionHeaderDownpaymentPercentageComponent as ɵek, TransactionHeaderDownpaymentAmountModule as ɵel, TransactionHeaderDownpaymentAmountComponent as ɵem, TransactionHeaderDefinitiveModule as ɵen, TransactionHeaderDefinitiveComponent as ɵeo, TransactionHeaderBranchModule as ɵep, TransactionHeaderBranchComponent as ɵeq, TransactionHeaderAdministrativeRelationModule as ɵer, TransactionHeaderAdministrativeRelationComponent as ɵes, TransactionHeaderMarketingModule as ɵet, TransactionHeaderMarketingComponent as ɵeu, CheckoutOverviewRelationEditComponent as ɵev, CheckoutOverviewDeliveryEditComponent as ɵew, CheckoutOverviewDeliveryAddressComponent as ɵex, CheckoutOverviewPaymentComponent as ɵey, CheckoutLoginComponent as ɵez, TransactionConnectorService as ɵf, TransactionFilterCategoriesModule as ɵfa, TransactionFilterCategoriesComponent as ɵfb, TransactionHeaderPaymentModule as ɵfc, TransactionHeaderPaymentComponent as ɵfd, TransactionLinesGridModule as ɵfe, TransactionBaseGridModule as ɵff, TransactionLineSidePanelModule as ɵfg, TransactionLineSidePanelDefaultModule as ɵfh, TransactionLinePriceModule as ɵfi, TransactionLinePriceComponent as ɵfj, TransactionLineBaseComponent as ɵfk, TransactionLinePriceListModule as ɵfl, TransactionLinePriceListComponent as ɵfm, TransactionLineVatModule as ɵfn, TransactionLineVatComponent as ɵfo, TransactionLineQuantityModule as ɵfp, TransactionLineQuantityComponent as ɵfq, TransactionLineLineDiscountModule as ɵfr, TransactionLineLineDiscountComponent as ɵfs, TransactionLineDeliveryMethodModule as ɵft, TransactionLineDeliveryMethodComponent as ɵfu, TransactionLineDeliveryDateModule as ɵfv, TransactionLineDeliveryDateComponent as ɵfw, TransactionLineReferenceModule as ɵfx, TransactionLineReferenceComponent as ɵfy, TransactionLineCommissionCodeModule as ɵfz, TransactionConnectorAdapterService as ɵg, TransactionLineCommissionCodeComponent as ɵga, TransactionLineWarehouseModule as ɵgb, TransactionLineWarehouseComponent as ɵgc, TransactionLineDiscountAmountModule as ɵgd, TransactionLineDiscountAmountComponent as ɵge, TransactionLineQuantumDiscountModule as ɵgf, TransactionLineQuantumDiscountComponent as ɵgg, TransactionLineSpecialDiscountModule as ɵgh, TransactionLineSpecialDiscountComponent as ɵgi, TransactionLineSupplierModule as ɵgj, TransactionLineSupplierComponent as ɵgk, TransactionLineDescriptionModule as ɵgl, TransactionLineDescriptionComponent as ɵgm, TransactionLineSidePanelDefaultComponent as ɵgn, TransactionReceivingGoodsHistoryModule as ɵgo, TransactionHistoryGridModule as ɵgp, TransactionHistoryGridStatusModule as ɵgq, TransactionHistoryGridStatusComponent as ɵgr, TransactionHistoryGridComponent as ɵgs, TransactionReceivingGoodsHistoryComponent as ɵgt, TransactionReceivingGoodsDetailsModule as ɵgu, TransactionReceivingGoodsDetailsComponent as ɵgv, ArticleService as ɵgw, TransactionButtonBarModule as ɵgx, TransactionButtonBarComponent as ɵgy, TransactionButtonBarButtonComponent as ɵgz, SelectMultipleCacheService as ɵh, TransactionLineSidePanelPurchaseModule as ɵha, DefaultOkCancelButtonsModule as ɵhb, DefaultOkCancelButtonsComponent as ɵhc, TransactionLineSidePanelPurchaseComponent as ɵhd, TransactionLineSidePanelComponent as ɵhe, DynamicBaseComponent as ɵhf, TransactionLineActionButtonsModule as ɵhg, TransactionArticleTextOverviewModule as ɵhh, TransactionArticleTextOverviewComponent as ɵhi, TransactionLineActionButtonsComponent as ɵhj, TransactionBaseGridComponent as ɵhk, TransactionGridBaseComponent as ɵhl, TransactionImageService as ɵhm, DialogTransactionLineCommissionCodeModule as ɵhn, DialogTransactionLineCommissionCodeComponent as ɵho, DialogTransactionLineBaseComponent as ɵhp, DialogTransactionLineWarehouseModule as ɵhq, DialogTransactionLineWarehouseComponent as ɵhr, DialogTransactionLineWarehouseCcModule as ɵhs, DialogTransactionLineWarehouseCcComponent as ɵht, DialogTransactionLineDeliveryMethodModule as ɵhu, DialogTransactionLineDeliveryMethodComponent as ɵhv, DialogTransactionLineVatModule as ɵhw, DialogTransactionLineVatComponent as ɵhx, DialogTransactionLineDiscountModule as ɵhy, DialogTransactionLinePriceListModule as ɵhz, BusinessObjectCacheManagerService as ɵi, DialogTransactionLinePriceListComponent as ɵia, DialogTransactionLineDiscountComponent as ɵib, TransactionLinesGridComponent as ɵic, DiscountModule as ɵid, DiscountComponent as ɵie, TransactionQuickAccessOverviewModule as ɵif, TransactionQuickAccessOverviewComponent as ɵig, TransactionQuickAccessOrderDeliveryModule as ɵih, TransactionQuickAccessOrderDeliveryComponent as ɵii, TransactionOrderConfirmationGridModule as ɵij, TransactionOrderConfirmationGridComponent as ɵik, TransactionReceivedGoodsGridModule as ɵil, DialogTransactionLineWarehouseLocationModule as ɵim, TransactionLineWarehouseLocationModule as ɵin, TransactionLineWarehouseLocationComponent as ɵio, DialogTransactionLineWarehouseLocationComponent as ɵip, TransactionLineWarehouseLocationButtonModule as ɵiq, TransactionLineWarehouseLocationButtonComponent as ɵir, TransactionReceivedGoodsGridComponent as ɵis, ViewModeButtonsModule as ɵit, ViewModeButtonsComponent as ɵiu, TransactionGridModule as ɵiv, TransactionGridComponent as ɵiw, TransactionTileModule as ɵix, TransactionTileComponent as ɵiy, TransactionOverviewLineModule as ɵiz, CacheField as ɵj, EditableLabelModule as ɵja, EditableLabelComponent as ɵjb, TransactionBaseLineModule as ɵjc, TransactionLineImageAndDescriptionModule as ɵjd, TransactionLineImageAndDescriptionComponent as ɵje, TransactionBaseLineComponent as ɵjf, TransactionLinesLineBaseComponent as ɵjg, TransactionLineCommissionButtonModule as ɵjh, TransactionLineCommissionButtonComponent as ɵji, TransactionLineWarehouseButtonModule as ɵjj, TransactionLineWarehouseButtonComponent as ɵjk, TransactionLineDeliveryButtonModule as ɵjl, TransactionLineDeliveryButtonComponent as ɵjm, TransactionLineDeliveryDateButtonModule as ɵjn, TransactionLineDeliveryDateButtonComponent as ɵjo, TransactionOverviewLineComponent as ɵjp, TransactionOrderDeliveryLineModule as ɵjq, StatusBarModule as ɵjr, StatusBarComponent as ɵjs, TransactionOrderDeliveryLineComponent as ɵjt, TransactionReceiveGoodsLineModule as ɵju, TransactionReceiveGoodsLineComponent as ɵjv, TransactionSearchResultModule as ɵjw, TransactionSearchSalesOrderTileModule as ɵjx, TransactionSearchSalesOrderTileComponent as ɵjy, TransactionSearchTileBaseComponent as ɵjz, SelectMultipleParameterizedCacheService as ɵk, TransactionSearchPurchaseOrderTileModule as ɵka, TransactionSearchPurchaseOrderTileComponent as ɵkb, TransactionSearchSalesOrderGridModule as ɵkc, TransactionSearchSalesOrderGridComponent as ɵkd, TransactionSearchGridBaseComponent as ɵke, TransactionSearchPurchaseOrderGridModule as ɵkf, TransactionSearchPurchaseOrderGridComponent as ɵkg, TransactionSearchHeaderModule as ɵkh, TransactionSearchHeaderComponent as ɵki, TransactionSearchGridModule as ɵkj, TransactionSearchGridComponent as ɵkk, TransactionSearchTileModule as ɵkl, TransactionSearchTileComponent as ɵkm, TransactionSearchResultComponent as ɵkn, TransactionSalesOrderFilterModule as ɵko, TransactionSalesOrderFilterContentOrderModule as ɵkp, TransactionFilterItemModule as ɵkq, TransactionFilterItemComponent as ɵkr, TransactionSalesOrderFilterContentOrderComponent as ɵks, TransactionFilterContentBaseComponent as ɵkt, FilterRequestService as ɵku, TransactionSalesOrderFilterContentLogisticsModule as ɵkv, TransactionFilterHistoricStateModule as ɵkw, TransactionFilterHistoricStateComponent as ɵkx, TransactionSalesOrderFilterContentLogisticsComponent as ɵky, TransactionSalesOrderFilterContentArticleModule as ɵkz, ErrorService as ɵl, TransactionSalesOrderFilterContentArticleComponent as ɵla, TransactionSalesOrderFilterComponent as ɵlb, TransactionFilterBaseComponent as ɵlc, TransactionPurchaseOrderFilterModule as ɵld, TransactionPurchaseOrderFilterContentOrderModule as ɵle, TransactionPurchaseOrderFilterContentOrderComponent as ɵlf, TransactionPurchaseOrderFilterContentLogisticsModule as ɵlg, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵlh, TransactionPurchaseOrderFilterContentArticleModule as ɵli, TransactionPurchaseOrderFilterContentArticleComponent as ɵlj, TransactionPurchaseOrderFilterComponent as ɵlk, TransactionFilterModule as ɵll, TransactionFilterComponent as ɵlm, SelectSingleCacheService as ɵm, ArticleConnectorService as ɵn, CoreModule as ɵo, ConfirmationDialogModule as ɵp, PipeModule as ɵq, AppendPipe as ɵr, DeliveryTimePipe as ɵs, DateDurationPipe as ɵt, LocalizePipe as ɵu, CoCurrencyPipe as ɵv, SafeStylePipe as ɵw, SafeHtmlPipe as ɵx, ConfirmationDialogComponent as ɵy, DialogBaseComponent as ɵz };
22315
+ export { CheckoutComponent, CheckoutModule, SearchViewMode, SearchbarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineStatusbarComponent, TransactionLineStatusbarModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionStatusbarComponent, TransactionStatusbarModule, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, IconCacheService as ɵba, CharacteristicAnswerModule as ɵbb, CharacteristicAnswerComponent as ɵbc, WarehouseModule as ɵbd, WarehouseComponent as ɵbe, ImageDisplayComponent as ɵbf, IconComponent as ɵbg, CustomerGroupsComponent as ɵbh, StockStatusIndicatorComponent as ɵbi, LoaderComponent as ɵbj, LazyRenderMasterDirective as ɵbk, LazyRenderDirective as ɵbl, RelationAddressModule as ɵbm, RelationAddressComponent as ɵbn, RelationBaseComponent as ɵbo, RelationAddressSelectModule as ɵbp, RelationAddressTileModule as ɵbq, TileModule as ɵbr, TileComponent as ɵbs, RelationAddressTileComponent as ɵbt, RelationAddressSelectComponent as ɵbu, BusinessObjectFactory as ɵbv, StepperModule as ɵbw, StepperComponent as ɵbx, StepperStepComponent as ɵby, TransactionLineModule as ɵbz, DynamicComponentService as ɵc, TransactionLineComponent as ɵca, TransactionMappingService as ɵcb, TransactionArticleTextModule as ɵcc, TransactionLineImageAndDescriptionModule as ɵcd, TransactionLineDescriptionModule as ɵce, TransactionLineDescriptionComponent as ɵcf, TransactionLineBaseComponent as ɵcg, TransactionFilterPopupBaseComponent as ɵch, TransactionLineImageAndDescriptionComponent as ɵci, TransactionImageService as ɵcj, TransactionArticleTextComponent as ɵck, TransactionReceiveGoodsService as ɵcl, TransactionEventService as ɵcm, DialogTransactionHeaderDiscountModule as ɵcn, TransactionHeaderDiscountPercentageModule as ɵco, TransactionHeaderDiscountPercentageComponent as ɵcp, TransactionHeaderBaseComponent as ɵcq, TransactionHeaderDiscountAmountModule as ɵcr, TransactionHeaderDiscountAmountComponent as ɵcs, TransactionHeaderDiscountTransactionTotalModule as ɵct, TransactionHeaderDiscountTransactionTotalComponent as ɵcu, DialogTransactionHeaderDiscountComponent as ɵcv, DialogTransactionHeaderBaseComponent as ɵcw, AvatarModule as ɵcx, AvatarComponent as ɵcy, SharedService as ɵcz, OptionsService as ɵd, SharedConnectorService as ɵda, DeliveryTypeTileModule as ɵdb, DeliveryTypeTileComponent as ɵdc, PaymentModule as ɵdd, PaymentTileModule as ɵde, PaymentTileComponent as ɵdf, PaymentQrCodeModule as ɵdg, PaymentQrCodeComponent as ɵdh, PaymentComponent as ɵdi, PaymentService as ɵdj, RelationTypeModule as ɵdk, RelationTypeComponent as ɵdl, RelationGeneralModule as ɵdm, RelationSuggestionsListModule as ɵdn, RelationSuggestionsListItemModule as ɵdo, RelationSuggestionsListItemComponent as ɵdp, RelationSuggestionsListComponent as ɵdq, RelationGeneralComponent as ɵdr, RelationAddressesModule as ɵds, RelationAddressesComponent as ɵdt, RelationContactDetailsModule as ɵdu, RelationContactDetailsComponent as ɵdv, RelationPreferencesModule as ɵdw, RelationPreferencesComponent as ɵdx, TransactionHeaderBlockModule as ɵdy, TransactionHeaderBlockComponent as ɵdz, DictionaryService as ɵe, TransactionHeaderDeliveryDateModule as ɵea, TransactionHeaderDeliveryDateComponent as ɵeb, TransactionHeaderDeliveryOptionsModule as ɵec, TransactionHeaderDeliveryOptionsComponent as ɵed, TransactionHeaderRemarksModule as ɵee, TransactionHeaderRemarksComponent as ɵef, TransactionHeaderReferenceModule as ɵeg, TransactionHeaderReferenceComponent as ɵeh, TransactionHeaderRelationReferenceModule as ɵei, TransactionHeaderRelationReferenceComponent as ɵej, TransactionHeaderDeliveryMethodModule as ɵek, TransactionLineCheckboxModule as ɵel, TransactionLineCheckboxListComponent as ɵem, TransactionHeaderDeliveryMethodComponent as ɵen, TransactionHeaderPreferredDeliveryDateModule as ɵeo, TransactionHeaderPreferredDeliveryDateComponent as ɵep, DialogTransactionHeaderDeliveryMethodModule as ɵeq, DialogHeaderSearchModule as ɵer, DialogHeaderSearchComponent as ɵes, DialogTransactionHeaderDeliveryMethodComponent as ɵet, TransactionHeaderPartialDeliveryModule as ɵeu, TransactionHeaderPartialDeliveryComponent as ɵev, TransactionBaseComponent as ɵew, TransactionHeaderDownpaymentPercentageModule as ɵex, TransactionHeaderDownpaymentPercentageComponent as ɵey, TransactionHeaderDownpaymentAmountModule as ɵez, TransactionConnectorService as ɵf, TransactionHeaderDownpaymentAmountComponent as ɵfa, TransactionHeaderDefinitiveModule as ɵfb, TransactionHeaderDefinitiveComponent as ɵfc, TransactionHeaderBranchModule as ɵfd, TransactionHeaderBranchComponent as ɵfe, TransactionHeaderAdministrativeRelationModule as ɵff, TransactionHeaderAdministrativeRelationComponent as ɵfg, TransactionHeaderMarketingModule as ɵfh, TransactionHeaderMarketingComponent as ɵfi, CheckoutOverviewRelationEditComponent as ɵfj, CheckoutOverviewDeliveryEditComponent as ɵfk, CheckoutOverviewDeliveryAddressComponent as ɵfl, CheckoutOverviewPaymentComponent as ɵfm, CheckoutLoginComponent as ɵfn, TransactionFilterCategoriesModule as ɵfo, TransactionFilterCategoriesComponent as ɵfp, TransactionHeaderPaymentModule as ɵfq, TransactionHeaderPaymentComponent as ɵfr, TransactionLinesGridModule as ɵfs, TransactionBaseGridModule as ɵft, TransactionLineSidePanelModule as ɵfu, TransactionLineSidePanelDefaultModule as ɵfv, TransactionLinePriceModule as ɵfw, TransactionLinePriceComponent as ɵfx, TransactionLinePriceListModule as ɵfy, TransactionLinePriceListComponent as ɵfz, TransactionConnectorAdapterService as ɵg, TransactionLineVatModule as ɵga, TransactionLineVatComponent as ɵgb, TransactionLineQuantityModule as ɵgc, TransactionLineQuantityComponent as ɵgd, TransactionLineLineDiscountModule as ɵge, TransactionLineLineDiscountComponent as ɵgf, TransactionLineDeliveryMethodModule as ɵgg, TransactionLineDeliveryMethodComponent as ɵgh, TransactionLineDeliveryDateModule as ɵgi, TransactionLineDeliveryDateComponent as ɵgj, TransactionLineReferenceModule as ɵgk, TransactionLineReferenceComponent as ɵgl, TransactionLineCommissionCodeModule as ɵgm, TransactionLineCommissionCodeComponent as ɵgn, TransactionLineWarehouseModule as ɵgo, TransactionLineWarehouseComponent as ɵgp, TransactionLineDiscountAmountModule as ɵgq, TransactionLineDiscountAmountComponent as ɵgr, TransactionLineQuantumDiscountModule as ɵgs, TransactionLineQuantumDiscountComponent as ɵgt, TransactionLineSpecialDiscountModule as ɵgu, TransactionLineSpecialDiscountComponent as ɵgv, TransactionLineSupplierModule as ɵgw, TransactionLineSupplierComponent as ɵgx, TransactionLineSidePanelDefaultComponent as ɵgy, TransactionReceivingGoodsHistoryModule as ɵgz, SelectMultipleCacheService as ɵh, TransactionHistoryGridModule as ɵha, TransactionHistoryGridStatusModule as ɵhb, TransactionHistoryGridStatusComponent as ɵhc, TransactionHistoryGridComponent as ɵhd, TransactionReceivingGoodsHistoryComponent as ɵhe, TransactionReceivingGoodsDetailsModule as ɵhf, TransactionReceivingGoodsDetailsComponent as ɵhg, ArticleService as ɵhh, TransactionButtonBarModule as ɵhi, TransactionButtonBarComponent as ɵhj, TransactionButtonBarButtonComponent as ɵhk, TransactionLineSidePanelPurchaseModule as ɵhl, DefaultOkCancelButtonsModule as ɵhm, DefaultOkCancelButtonsComponent as ɵhn, TransactionLineSidePanelPurchaseComponent as ɵho, TransactionLineSidePanelComponent as ɵhp, DynamicBaseComponent as ɵhq, TransactionLineActionButtonsModule as ɵhr, TransactionArticleTextOverviewModule as ɵhs, TransactionArticleTextOverviewComponent as ɵht, TransactionLineActionButtonsComponent as ɵhu, TransactionBaseGridComponent as ɵhv, TransactionGridBaseComponent as ɵhw, DialogTransactionLineCommissionCodeModule as ɵhx, DialogTransactionLineCommissionCodeComponent as ɵhy, DialogTransactionLineBaseComponent as ɵhz, BusinessObjectCacheManagerService as ɵi, DialogTransactionLineWarehouseModule as ɵia, DialogTransactionLineWarehouseComponent as ɵib, DialogTransactionLineWarehouseCcModule as ɵic, DialogTransactionLineWarehouseCcComponent as ɵid, DialogTransactionLineDeliveryMethodModule as ɵie, DialogTransactionLineDeliveryMethodComponent as ɵif, DialogTransactionLineVatModule as ɵig, DialogTransactionLineVatComponent as ɵih, DialogTransactionLineDiscountModule as ɵii, DialogTransactionLinePriceListModule as ɵij, DialogTransactionLinePriceListComponent as ɵik, DialogTransactionLineDiscountComponent as ɵil, TransactionLinesGridComponent as ɵim, DiscountModule as ɵin, DiscountComponent as ɵio, TransactionQuickAccessOverviewModule as ɵip, TransactionQuickAccessOverviewComponent as ɵiq, TransactionQuickAccessOrderDeliveryModule as ɵir, TransactionQuickAccessOrderDeliveryComponent as ɵis, TransactionOrderConfirmationGridModule as ɵit, TransactionOrderConfirmationGridComponent as ɵiu, TransactionReceivedGoodsGridModule as ɵiv, DialogTransactionLineWarehouseLocationModule as ɵiw, TransactionLineWarehouseLocationModule as ɵix, TransactionLineWarehouseLocationComponent as ɵiy, DialogTransactionLineWarehouseLocationComponent as ɵiz, CacheField as ɵj, TransactionLineWarehouseLocationButtonModule as ɵja, TransactionLineWarehouseLocationButtonComponent as ɵjb, TransactionReceivedGoodsGridComponent as ɵjc, ViewModeButtonsModule as ɵjd, ViewModeButtonsComponent as ɵje, TransactionGridModule as ɵjf, TransactionGridComponent as ɵjg, TransactionTileModule as ɵjh, TransactionTileComponent as ɵji, TransactionOverviewLineModule as ɵjj, EditableLabelModule as ɵjk, EditableLabelComponent as ɵjl, TransactionBaseLineModule as ɵjm, TransactionBaseLineComponent as ɵjn, TransactionLinesLineBaseComponent as ɵjo, TransactionLineCommissionButtonModule as ɵjp, TransactionLineCommissionButtonComponent as ɵjq, TransactionLineWarehouseButtonModule as ɵjr, TransactionLineWarehouseButtonComponent as ɵjs, TransactionLineDeliveryButtonModule as ɵjt, TransactionLineDeliveryButtonComponent as ɵju, TransactionLineDeliveryDateButtonModule as ɵjv, TransactionLineDeliveryDateButtonComponent as ɵjw, TransactionOverviewLineComponent as ɵjx, TransactionOrderDeliveryLineModule as ɵjy, TransactionOrderDeliveryLineComponent as ɵjz, SelectMultipleParameterizedCacheService as ɵk, TransactionReceiveGoodsLineModule as ɵka, TransactionReceiveGoodsLineComponent as ɵkb, TransactionSearchResultModule as ɵkc, TransactionSearchSalesOrderTileModule as ɵkd, TransactionSearchSalesOrderTileComponent as ɵke, TransactionSearchTileBaseComponent as ɵkf, TransactionSearchPurchaseOrderTileModule as ɵkg, TransactionSearchPurchaseOrderTileComponent as ɵkh, TransactionSearchSalesOrderGridModule as ɵki, TransactionSearchSalesOrderGridComponent as ɵkj, TransactionSearchGridBaseComponent as ɵkk, TransactionSearchPurchaseOrderGridModule as ɵkl, TransactionSearchPurchaseOrderGridComponent as ɵkm, TransactionSearchHeaderModule as ɵkn, TransactionSearchHeaderComponent as ɵko, TransactionSearchGridModule as ɵkp, TransactionSearchGridComponent as ɵkq, TransactionSearchTileModule as ɵkr, TransactionSearchTileComponent as ɵks, TransactionSearchResultComponent as ɵkt, TransactionSalesOrderFilterModule as ɵku, TransactionSalesOrderFilterContentOrderModule as ɵkv, TransactionFilterItemModule as ɵkw, TransactionFilterItemComponent as ɵkx, TransactionSalesOrderFilterContentOrderComponent as ɵky, TransactionFilterContentBaseComponent as ɵkz, ErrorService as ɵl, FilterRequestService as ɵla, TransactionSalesOrderFilterContentLogisticsModule as ɵlb, TransactionFilterHistoricStateModule as ɵlc, TransactionFilterHistoricStateComponent as ɵld, TransactionSalesOrderFilterContentLogisticsComponent as ɵle, TransactionSalesOrderFilterContentArticleModule as ɵlf, TransactionSalesOrderFilterContentArticleComponent as ɵlg, TransactionSalesOrderFilterComponent as ɵlh, TransactionFilterBaseComponent as ɵli, TransactionPurchaseOrderFilterModule as ɵlj, TransactionPurchaseOrderFilterContentOrderModule as ɵlk, TransactionPurchaseOrderFilterContentOrderComponent as ɵll, TransactionPurchaseOrderFilterContentLogisticsModule as ɵlm, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵln, TransactionPurchaseOrderFilterContentArticleModule as ɵlo, TransactionPurchaseOrderFilterContentArticleComponent as ɵlp, TransactionPurchaseOrderFilterComponent as ɵlq, TransactionFilterModule as ɵlr, TransactionFilterComponent as ɵls, SelectSingleCacheService as ɵm, ArticleConnectorService as ɵn, CoreModule as ɵo, ConfirmationDialogModule as ɵp, PipeModule as ɵq, AppendPipe as ɵr, DeliveryTimePipe as ɵs, DateDurationPipe as ɵt, LocalizePipe as ɵu, CoCurrencyPipe as ɵv, SafeStylePipe as ɵw, SafeHtmlPipe as ɵx, ConfirmationDialogComponent as ɵy, DialogBaseComponent as ɵz };
21708
22316
  //# sourceMappingURL=colijnit-transaction.js.map