@colijnit/transaction 12.1.48 → 12.1.50

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 (139) hide show
  1. package/bundles/colijnit-transaction.umd.js +1342 -857
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +247 -241
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +248 -242
  6. package/esm2015/lib/assets/dictionary/text.properties.js +5 -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/shopping-cart-preview/shopping-cart-preview.component.js +5 -2
  20. package/esm2015/lib/component/tile/tile.component.js +2 -2
  21. package/esm2015/lib/component/transaction/transaction.component.js +8 -12
  22. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +6 -5
  23. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +4 -2
  24. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +25 -5
  25. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.js +6 -2
  26. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +5 -3
  27. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +4 -2
  28. package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +6 -2
  29. package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +3 -1
  30. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.component.js +84 -0
  31. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.module.js +23 -0
  32. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.js +84 -0
  33. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.js +23 -0
  34. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.js +85 -0
  35. package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.js +23 -0
  36. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +3 -1
  37. package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +3 -1
  38. package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +7 -3
  39. package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +3 -1
  40. package/esm2015/lib/component/transaction-header-fields/transaction-header-reference.component.js +3 -1
  41. package/esm2015/lib/component/transaction-header-fields/transaction-header-relation-reference.component.js +3 -1
  42. package/esm2015/lib/component/transaction-header-fields/transaction-header-remarks.component.js +3 -1
  43. package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +16 -8
  44. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +6 -5
  45. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.module.js +4 -4
  46. package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +26 -61
  47. package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.module.js +8 -2
  48. package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
  49. package/esm2015/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.js +6 -3
  50. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.component.js +28 -13
  51. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.module.js +4 -2
  52. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.component.js +28 -13
  53. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.module.js +4 -2
  54. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +3 -3
  55. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +3 -1
  56. package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +3 -1
  57. package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +3 -1
  58. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.js +28 -17
  59. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.module.js +4 -2
  60. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +5 -5
  61. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +9 -9
  62. package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter/transaction-filter.component.js +2 -1
  63. package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +2 -4
  64. package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +3 -2
  65. package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +34 -30
  66. package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.js +3 -3
  67. package/esm2015/lib/component/transaction-search/transaction-search.component.js +4 -8
  68. package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +2 -14
  69. package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +4 -2
  70. package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +18 -11
  71. package/esm2015/lib/component/transaction-totals/transaction-totals.module.js +4 -2
  72. package/esm2015/lib/enum/searchbar-view-mode.enum.js +7 -0
  73. package/esm2015/lib/service/pending-reason.service.js +2 -1
  74. package/esm2015/lib/service/transaction-connector-adapter.service.js +18 -1
  75. package/esm2015/lib/service/transaction-connector.service.js +6 -1
  76. package/esm2015/lib/service/transaction.service.js +12 -1
  77. package/esm2015/public_api.js +3 -1
  78. package/fesm2015/colijnit-transaction.js +1257 -780
  79. package/fesm2015/colijnit-transaction.js.map +1 -1
  80. package/lib/component/avatar/avatar.component.d.ts +8 -2
  81. package/lib/component/avatar/style/_layout.scss +1 -1
  82. package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +2 -2
  83. package/lib/component/core/base/transaction-header-base.component.d.ts +5 -0
  84. package/lib/component/core/base/transaction-lines-line-base.component.d.ts +1 -0
  85. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.d.ts +8 -0
  86. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.module.d.ts +2 -0
  87. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_layout.scss +44 -0
  88. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_material-definition.scss +11 -0
  89. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_theme.scss +11 -0
  90. package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/material.scss +4 -0
  91. package/lib/component/dialog/transaction-line/dialog-transaction-line-discount/style/_theme.scss +0 -3
  92. package/lib/component/transaction/transaction.component.d.ts +0 -2
  93. package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -0
  94. package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +1 -1
  95. package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +13 -0
  96. package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +1 -0
  97. package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +2 -0
  98. package/lib/component/transaction-header/transaction-header-payment/style/material.scss +1 -0
  99. package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +1 -1
  100. package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +1 -0
  101. package/lib/component/transaction-header-fields/transaction-header-discount-amount.component.d.ts +17 -0
  102. package/lib/component/transaction-header-fields/transaction-header-discount-amount.module.d.ts +2 -0
  103. package/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.d.ts +17 -0
  104. package/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.d.ts +2 -0
  105. package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.d.ts +18 -0
  106. package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.d.ts +2 -0
  107. package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +1 -0
  108. package/lib/component/transaction-line/transaction-line/transaction-line.component.d.ts +4 -2
  109. package/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.d.ts +2 -0
  110. package/lib/component/transaction-line/transaction-overview-line/style/_theme.scss +1 -4
  111. package/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.d.ts +6 -9
  112. package/lib/component/transaction-line-checkbox-list/style/_layout.scss +1 -0
  113. package/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.d.ts +5 -0
  114. package/lib/component/transaction-line-fields/transaction-line-commission-button.component.d.ts +7 -7
  115. package/lib/component/transaction-line-fields/transaction-line-delivery-button.component.d.ts +7 -7
  116. package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +1 -1
  117. package/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.d.ts +7 -8
  118. package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -1
  119. package/lib/component/transaction-search/service/transaction-search.service.d.ts +2 -2
  120. package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +6 -0
  121. package/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.d.ts +1 -1
  122. package/lib/component/transaction-search/transaction-search.component.d.ts +0 -4
  123. package/lib/component/transaction-tile/transaction-tile.component.d.ts +0 -1
  124. package/lib/component/transaction-totals/transaction-totals.component.d.ts +4 -1
  125. package/lib/enum/searchbar-view-mode.enum.d.ts +4 -0
  126. package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
  127. package/lib/service/transaction-connector.service.d.ts +1 -0
  128. package/lib/service/transaction.service.d.ts +1 -0
  129. package/lib/style/transaction-globals.scss +4 -0
  130. package/package.json +1 -1
  131. package/public_api.d.ts +2 -0
  132. package/esm2015/lib/component/status-bar/status-bar.component.js +0 -37
  133. package/esm2015/lib/component/status-bar/status-bar.module.js +0 -21
  134. package/lib/component/status-bar/status-bar.component.d.ts +0 -8
  135. package/lib/component/status-bar/status-bar.module.d.ts +0 -2
  136. package/lib/component/status-bar/style/_layout.scss +0 -14
  137. package/lib/component/status-bar/style/_material-definition.scss +0 -5
  138. package/lib/component/status-bar/style/_theme.scss +0 -15
  139. package/lib/component/status-bar/style/material.scss +0 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/marketing.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/country.bo'), require('@colijnit/transactionapi/build/model/privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/delivery-option.bo'), require('@colijnit/transactionapi/build/model/co-domain-value.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/customer-group.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/branch-lov.bo'), require('@colijnit/transactionapi/build/model/sales-person.bo'), require('@colijnit/transactionapi/build/model/tag'), require('@colijnit/transactionapi/build/model/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/payment-method.bo'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view.bo'), require('@colijnit/transactionapi/build/model/code-description'), require('@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo'), require('@colijnit/transactionapi/build/model/purchase-portal-line.bo'), require('@colijnit/transactionapi/build/model/create-payment-link-result.bo'), require('@colijnit/transactionapi/build/model/payment-link-status.bo'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/model/supplier-full-object.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-light.bo'), require('@colijnit/articleapi/build/model/turnover-group-image.bo'), require('@colijnit/articleapi/build/model/main-article.bo'), require('@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo'), require('@colijnit/transactionapi/build/model/doc-delivery-batch.bo'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/relation-kind.enum'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@angular/animations'), require('@angular/common'), require('@angular/forms'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view-request'), require('@colijnit/transactionapi/build/model/paging-parameters'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo'), require('@colijnit/transactionapi/build/model/relation-request'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/co-document.bo'), require('@colijnit/sharedcomponents'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@angular/cdk/scrolling'), require('@colijnit/transactionapi/build/model/relation-small-object.bo'), require('@colijnit/transactionapi/build/enum/discount-type.enum'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo'), require('@colijnit/transactionapi/build/model/get-purchase-portal-line'), require('@colijnit/transactionapi/build/model/purchase-portal-filters.bo'), require('@colijnit/transactionapi/build/model/goods-receipt-status.bo'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', 'rxjs', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/marketing.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/country.bo', '@colijnit/transactionapi/build/model/privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/delivery-option.bo', '@colijnit/transactionapi/build/model/co-domain-value.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/customer-group.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/branch-lov.bo', '@colijnit/transactionapi/build/model/sales-person.bo', '@colijnit/transactionapi/build/model/tag', '@colijnit/transactionapi/build/model/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/payment-method.bo', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/transaction-search-view.bo', '@colijnit/transactionapi/build/model/code-description', '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo', '@colijnit/transactionapi/build/model/purchase-portal-line.bo', '@colijnit/transactionapi/build/model/create-payment-link-result.bo', '@colijnit/transactionapi/build/model/payment-link-status.bo', '@angular/platform-browser', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/model/supplier-full-object.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-light.bo', '@colijnit/articleapi/build/model/turnover-group-image.bo', '@colijnit/articleapi/build/model/main-article.bo', '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo', '@colijnit/transactionapi/build/model/doc-delivery-batch.bo', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/relation-kind.enum', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@colijnit/transactionapi/build/enum/address-type.enum', '@angular/animations', '@angular/common', '@angular/forms', '@colijnit/transactionapi/build/model/address.bo', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/model/transaction-search-view-request', '@colijnit/transactionapi/build/model/paging-parameters', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/model/relation-request', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/co-document.bo', '@colijnit/sharedcomponents', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/utils/business-object-utils', '@angular/cdk/scrolling', '@colijnit/transactionapi/build/model/relation-small-object.bo', '@colijnit/transactionapi/build/enum/discount-type.enum', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo', '@colijnit/transactionapi/build/model/get-purchase-portal-line', '@colijnit/transactionapi/build/model/purchase-portal-filters.bo', '@colijnit/transactionapi/build/model/goods-receipt-status.bo', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.pendingReasonType_enum, global.sequenceName_enum, global.transactionKind_enum, global.transactionLineType_enum, global.rxjs, global.transactionInfoResponse_bo, global.marketing_bo, global.customerFullObject_bo, global.country_bo, global.privacySetting_bo, global.deliveryMethod_bo, global.deliveryOption_bo, global.coDomainValue_bo, global.articleFullObject, global.customerGroup_bo, global.cashRegister, global.priceList, global.vat, global.branchLov_bo, global.salesPerson_bo, global.tag, global.onHoldCode_bo, global.warehouse_bo, global.paymentMethod_bo, global.objectUtils, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.transaction, global.notNill_function, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.transactionLineInfo_bo, global.transactionSearchView_bo, global.codeDescription, global.goodsReceiptStatusWithHistory_bo, global.purchasePortalLine_bo, global.createPaymentLinkResult_bo, global.paymentLinkStatus_bo, global.ng.platformBrowser, global.transactionInfo_bo, global.supplierFullObject_bo, global.relationStatus_enum, global.resolvePendingReasonRequest_bo, global.articles, global.stockLocation_bo, global.articleLight_bo, global.turnoverGroupImage_bo, global.mainArticle_bo, global.resolveHeaderPendingReasonRequest_bo, global.docDeliveryBatch_bo, global.nulRelationObject, global.relationKind_enum, global.corecomponents_v12, global.ng.flexLayout, global.addressType_enum, global.ng.animations, global.ng.common, global.ng.forms, global.address_bo, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.transactionSearchViewRequest, global.pagingParameters, global.relationKind_enum$1, global.stockStatus_enum, global.receiveGoodsForPurchaseOrderRequest_bo, global.purchaseOrderLineReceiptDetails_bo, global.relationRequest, global.sharedapi, global.coDocument_bo, global.sharedcomponents, global.relationNameKind_enum, global.genderType_enum, global.functionUtils, global.communicationType_enum, global.contactOption_bo, global.businessObjectUtils, global.ng.cdk.scrolling, global.relationSmallObject_bo, global.discountType_enum, global.receiveGoodsForPurchaseOrderCorrectionRequest_bo, global.purchaseOrderLineReceiptCorrectionDetails_bo, global.getPurchasePortalLine, global.purchasePortalFilters_bo, global.goodsReceiptStatus_bo, global.articleExtendedRequest, global.quantityInHistoricState_enum));
5
- })(this, (function (exports, i0, pendingReasonType_enum, sequenceName_enum, transactionKind_enum, transactionLineType_enum, rxjs, transactionInfoResponse_bo, marketing_bo, customerFullObject_bo, country_bo, privacySetting_bo, deliveryMethod_bo, deliveryOption_bo, coDomainValue_bo, articleFullObject, customerGroup_bo, cashRegister, priceList, vat, branchLov_bo, salesPerson_bo, tag, onHoldCode_bo, warehouse_bo, paymentMethod_bo, objectUtils, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, transaction, notNill_function, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, transactionLineInfo_bo, transactionSearchView_bo, codeDescription, goodsReceiptStatusWithHistory_bo, purchasePortalLine_bo, createPaymentLinkResult_bo, paymentLinkStatus_bo, i1, transactionInfo_bo, supplierFullObject_bo, relationStatus_enum, resolvePendingReasonRequest_bo, articles, stockLocation_bo, articleLight_bo, turnoverGroupImage_bo, mainArticle_bo, resolveHeaderPendingReasonRequest_bo, docDeliveryBatch_bo, nulRelationObject, relationKind_enum, corecomponents_v12, flexLayout, addressType_enum, animations, common, forms, address_bo, dragDrop, transactionAddTextLineRequest_bo, transactionSearchViewRequest, pagingParameters, relationKind_enum$1, stockStatus_enum, receiveGoodsForPurchaseOrderRequest_bo, purchaseOrderLineReceiptDetails_bo, relationRequest, sharedapi, coDocument_bo, sharedcomponents, relationNameKind_enum, genderType_enum, functionUtils, communicationType_enum, contactOption_bo, businessObjectUtils, scrolling, relationSmallObject_bo, discountType_enum, receiveGoodsForPurchaseOrderCorrectionRequest_bo, purchaseOrderLineReceiptCorrectionDetails_bo, getPurchasePortalLine, purchasePortalFilters_bo, goodsReceiptStatus_bo, articleExtendedRequest, quantityInHistoricState_enum) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/marketing.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/country.bo'), require('@colijnit/transactionapi/build/model/privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/delivery-option.bo'), require('@colijnit/transactionapi/build/model/co-domain-value.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/customer-group.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/branch-lov.bo'), require('@colijnit/transactionapi/build/model/sales-person.bo'), require('@colijnit/transactionapi/build/model/tag'), require('@colijnit/transactionapi/build/model/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/payment-method.bo'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view.bo'), require('@colijnit/transactionapi/build/model/code-description'), require('@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo'), require('@colijnit/transactionapi/build/model/purchase-portal-line.bo'), require('@colijnit/transactionapi/build/model/create-payment-link-result.bo'), require('@colijnit/transactionapi/build/model/payment-link-status.bo'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/model/supplier-full-object.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-light.bo'), require('@colijnit/articleapi/build/model/turnover-group-image.bo'), require('@colijnit/articleapi/build/model/main-article.bo'), require('@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo'), require('@colijnit/transactionapi/build/model/doc-delivery-batch.bo'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/relation-kind.enum'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@angular/animations'), require('@angular/common'), require('@angular/forms'), require('@colijnit/transactionapi/build/model/address.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/discount-type.enum'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/model/paging-parameters'), require('@colijnit/transactionapi/build/model/transaction-search-view-request'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo'), require('@colijnit/transactionapi/build/model/relation-request'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/co-document.bo'), require('@colijnit/sharedcomponents'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@angular/cdk/scrolling'), require('@colijnit/transactionapi/build/model/relation-small-object.bo'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo'), require('@colijnit/transactionapi/build/model/get-purchase-portal-line'), require('@colijnit/transactionapi/build/model/purchase-portal-filters.bo'), require('@colijnit/transactionapi/build/model/goods-receipt-status.bo'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', 'rxjs', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/marketing.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/country.bo', '@colijnit/transactionapi/build/model/privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/delivery-option.bo', '@colijnit/transactionapi/build/model/co-domain-value.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/customer-group.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/branch-lov.bo', '@colijnit/transactionapi/build/model/sales-person.bo', '@colijnit/transactionapi/build/model/tag', '@colijnit/transactionapi/build/model/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/payment-method.bo', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/transaction-search-view.bo', '@colijnit/transactionapi/build/model/code-description', '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo', '@colijnit/transactionapi/build/model/purchase-portal-line.bo', '@colijnit/transactionapi/build/model/create-payment-link-result.bo', '@colijnit/transactionapi/build/model/payment-link-status.bo', '@angular/platform-browser', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/model/supplier-full-object.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-light.bo', '@colijnit/articleapi/build/model/turnover-group-image.bo', '@colijnit/articleapi/build/model/main-article.bo', '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo', '@colijnit/transactionapi/build/model/doc-delivery-batch.bo', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/relation-kind.enum', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@colijnit/transactionapi/build/enum/address-type.enum', '@angular/animations', '@angular/common', '@angular/forms', '@colijnit/transactionapi/build/model/address.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/discount-type.enum', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/model/paging-parameters', '@colijnit/transactionapi/build/model/transaction-search-view-request', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/model/relation-request', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/co-document.bo', '@colijnit/sharedcomponents', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/utils/business-object-utils', '@angular/cdk/scrolling', '@colijnit/transactionapi/build/model/relation-small-object.bo', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo', '@colijnit/transactionapi/build/model/get-purchase-portal-line', '@colijnit/transactionapi/build/model/purchase-portal-filters.bo', '@colijnit/transactionapi/build/model/goods-receipt-status.bo', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.pendingReasonType_enum, global.sequenceName_enum, global.transactionKind_enum, global.transactionLineType_enum, global.rxjs, global.transactionInfoResponse_bo, global.marketing_bo, global.customerFullObject_bo, global.country_bo, global.privacySetting_bo, global.deliveryMethod_bo, global.deliveryOption_bo, global.coDomainValue_bo, global.articleFullObject, global.customerGroup_bo, global.cashRegister, global.priceList, global.vat, global.branchLov_bo, global.salesPerson_bo, global.tag, global.onHoldCode_bo, global.warehouse_bo, global.paymentMethod_bo, global.objectUtils, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.transaction, global.notNill_function, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.transactionLineInfo_bo, global.transactionSearchView_bo, global.codeDescription, global.goodsReceiptStatusWithHistory_bo, global.purchasePortalLine_bo, global.createPaymentLinkResult_bo, global.paymentLinkStatus_bo, global.ng.platformBrowser, global.transactionInfo_bo, global.supplierFullObject_bo, global.relationStatus_enum, global.resolvePendingReasonRequest_bo, global.articles, global.stockLocation_bo, global.articleLight_bo, global.turnoverGroupImage_bo, global.mainArticle_bo, global.resolveHeaderPendingReasonRequest_bo, global.docDeliveryBatch_bo, global.nulRelationObject, global.relationKind_enum, global.corecomponents_v12, global.ng.flexLayout, global.addressType_enum, global.ng.animations, global.ng.common, global.ng.forms, global.address_bo, global.transactionTotal_bo, global.discountType_enum, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.pagingParameters, global.transactionSearchViewRequest, global.relationKind_enum$1, global.stockStatus_enum, global.receiveGoodsForPurchaseOrderRequest_bo, global.purchaseOrderLineReceiptDetails_bo, global.relationRequest, global.sharedapi, global.coDocument_bo, global.sharedcomponents, global.relationNameKind_enum, global.genderType_enum, global.functionUtils, global.communicationType_enum, global.contactOption_bo, global.businessObjectUtils, global.ng.cdk.scrolling, global.relationSmallObject_bo, global.receiveGoodsForPurchaseOrderCorrectionRequest_bo, global.purchaseOrderLineReceiptCorrectionDetails_bo, global.getPurchasePortalLine, global.purchasePortalFilters_bo, global.goodsReceiptStatus_bo, global.articleExtendedRequest, global.quantityInHistoricState_enum));
5
+ })(this, (function (exports, i0, pendingReasonType_enum, sequenceName_enum, transactionKind_enum, transactionLineType_enum, rxjs, transactionInfoResponse_bo, marketing_bo, customerFullObject_bo, country_bo, privacySetting_bo, deliveryMethod_bo, deliveryOption_bo, coDomainValue_bo, articleFullObject, customerGroup_bo, cashRegister, priceList, vat, branchLov_bo, salesPerson_bo, tag, onHoldCode_bo, warehouse_bo, paymentMethod_bo, objectUtils, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, transaction, notNill_function, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, transactionLineInfo_bo, transactionSearchView_bo, codeDescription, goodsReceiptStatusWithHistory_bo, purchasePortalLine_bo, createPaymentLinkResult_bo, paymentLinkStatus_bo, i1, transactionInfo_bo, supplierFullObject_bo, relationStatus_enum, resolvePendingReasonRequest_bo, articles, stockLocation_bo, articleLight_bo, turnoverGroupImage_bo, mainArticle_bo, resolveHeaderPendingReasonRequest_bo, docDeliveryBatch_bo, nulRelationObject, relationKind_enum, corecomponents_v12, flexLayout, addressType_enum, animations, common, forms, address_bo, transactionTotal_bo, discountType_enum, dragDrop, transactionAddTextLineRequest_bo, pagingParameters, transactionSearchViewRequest, relationKind_enum$1, stockStatus_enum, receiveGoodsForPurchaseOrderRequest_bo, purchaseOrderLineReceiptDetails_bo, relationRequest, sharedapi, coDocument_bo, sharedcomponents, relationNameKind_enum, genderType_enum, functionUtils, communicationType_enum, contactOption_bo, businessObjectUtils, scrolling, relationSmallObject_bo, receiveGoodsForPurchaseOrderCorrectionRequest_bo, purchaseOrderLineReceiptCorrectionDetails_bo, getPurchasePortalLine, purchasePortalFilters_bo, goodsReceiptStatus_bo, articleExtendedRequest, quantityInHistoricState_enum) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -427,6 +427,7 @@
427
427
  function Dictionary() {
428
428
  this.strings = {
429
429
  "nl": {
430
+ "0_RESULTS_FOUND": "0 resultaten gevonden",
430
431
  "ACCOUNT_DETAILS": "Accountgegevens",
431
432
  "ACCOUNT_EXPLANATION": "Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. " +
432
433
  "Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",
@@ -690,6 +691,7 @@
690
691
  "RECEIVED": "Ontvangst",
691
692
  "RECEIVED_DELIVERED": "Binnengemeld / geleverd",
692
693
  "RECEIVED_DATE": "Ontvangst datum",
694
+ "REDISTRIBUTE_DISCOUNT": "Herverdeel korting",
693
695
  "REFERENCE": "Referentie",
694
696
  "REFERENCE_RELATION": "Ref. relatie",
695
697
  "RELATION_NUMBER": "Relatienummer",
@@ -776,6 +778,7 @@
776
778
  "de": {},
777
779
  "fr": {},
778
780
  "en": {
781
+ "0_RESULTS_FOUND": "0 results found",
779
782
  "ACCOUNT_DETAILS": "Account details",
780
783
  "ACCOUNT_EXPLANATION": "E-mailaddress and password are needed to gain access to the data. We also notify you on this e-mailaddress about the order status",
781
784
  "ACTIVE": "Active",
@@ -1021,6 +1024,7 @@
1021
1024
  "RECEIPT_DETAILS": "Receipt details",
1022
1025
  "RECEIVED": "Received",
1023
1026
  "RECEIVED_DATE": "Received date",
1027
+ "REDISTRIBUTE_DISCOUNT": "Redistribute discount",
1024
1028
  "RECEIVED_DELIVERED": "Received / delivered",
1025
1029
  "REFERENCE": "Reference",
1026
1030
  "REFERENCE_RELATION": "Ref. relation",
@@ -2768,7 +2772,7 @@
2768
2772
  });
2769
2773
  this.viewModelsFiltered = this.viewModels.slice();
2770
2774
  if (!this.useModel && this.viewModels.length > 0) {
2771
- this.valueChange.next(this.viewModels[0].value);
2775
+ this.valueChange.next(this.value ? this.value : this.viewModels[0].value);
2772
2776
  }
2773
2777
  };
2774
2778
  TransactionFilterPopupBaseComponent.prototype._doSearch = function () {
@@ -5013,6 +5017,32 @@
5013
5017
  });
5014
5018
  });
5015
5019
  };
5020
+ TransactionConnectorAdapterService.prototype.changeHeaderTransactionDiscount = function (uuid, type, amount) {
5021
+ return __awaiter(this, void 0, void 0, function () {
5022
+ var request, response;
5023
+ return __generator(this, function (_a) {
5024
+ switch (_a.label) {
5025
+ case 0:
5026
+ request = {
5027
+ transactionUuid: uuid,
5028
+ orderDiscountType: type,
5029
+ discountValue: amount
5030
+ };
5031
+ return [4 /*yield*/, this.connector.setTransactionDiscounts(request)];
5032
+ case 1:
5033
+ response = _a.sent();
5034
+ if (response && response.validationResult && response.validationResult.success) {
5035
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
5036
+ }
5037
+ else {
5038
+ this._handleExceptionFromResponse(response);
5039
+ return [2 /*return*/, null];
5040
+ }
5041
+ return [2 /*return*/];
5042
+ }
5043
+ });
5044
+ });
5045
+ };
5016
5046
  TransactionConnectorAdapterService.prototype.changeHeaderTransactionToDownPay = function (uuid, downPayment) {
5017
5047
  return __awaiter(this, void 0, void 0, function () {
5018
5048
  var request, response;
@@ -5926,6 +5956,13 @@
5926
5956
  });
5927
5957
  });
5928
5958
  };
5959
+ TransactionConnectorService.prototype.changeHeaderTransactionDiscount = function (uuid, type, amount) {
5960
+ return __awaiter(this, void 0, void 0, function () {
5961
+ return __generator(this, function (_a) {
5962
+ return [2 /*return*/, this._adapterService.changeHeaderTransactionDiscount(uuid, type, amount)];
5963
+ });
5964
+ });
5965
+ };
5929
5966
  TransactionConnectorService.prototype.changeHeaderTransactionToDownPay = function (uuid, downPayment) {
5930
5967
  return __awaiter(this, void 0, void 0, function () {
5931
5968
  return __generator(this, function (_a) {
@@ -6500,6 +6537,7 @@
6500
6537
  return __generator(this, function (_a) {
6501
6538
  switch (_a.label) {
6502
6539
  case 0:
6540
+ commissionCode = "2";
6503
6541
  reasonRequest = new resolvePendingReasonRequest_bo.ResolveLinePendingReasonRequest(uuid, reason, type);
6504
6542
  return [4 /*yield*/, this.dialogService.showWarehouseCC(quantity, commissionCode, warehouseNr)];
6505
6543
  case 1:
@@ -6968,6 +7006,25 @@
6968
7006
  });
6969
7007
  });
6970
7008
  };
7009
+ TransactionService.prototype.updateHeaderTransactionDiscount = function (uuid, type, amount) {
7010
+ return __awaiter(this, void 0, void 0, function () {
7011
+ var response, success;
7012
+ return __generator(this, function (_a) {
7013
+ switch (_a.label) {
7014
+ case 0: return [4 /*yield*/, this.connector.changeHeaderTransactionDiscount(uuid, type, amount)];
7015
+ case 1:
7016
+ response = _a.sent();
7017
+ if (!response) return [3 /*break*/, 3];
7018
+ return [4 /*yield*/, this.handleHeaderOperationStatuses(response)];
7019
+ case 2:
7020
+ success = _a.sent();
7021
+ this.rememberCurrentTransaction(response);
7022
+ return [2 /*return*/, success];
7023
+ case 3: return [2 /*return*/, false];
7024
+ }
7025
+ });
7026
+ });
7027
+ };
6971
7028
  TransactionService.prototype.updateQuantityTransactionLine = function (uuid, lineUuid, quantity) {
6972
7029
  return __awaiter(this, void 0, void 0, function () {
6973
7030
  var response, success;
@@ -9289,7 +9346,7 @@
9289
9346
  TileComponent.decorators = [
9290
9347
  { type: i0.Component, args: [{
9291
9348
  selector: "co-tile",
9292
- template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\">\n <co-input-radio-button [checked]=\"selected\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
9349
+ template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\">\n <co-input-radio-button [model]=\"selected\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
9293
9350
  encapsulation: i0.ViewEncapsulation.None
9294
9351
  },] }
9295
9352
  ];
@@ -9571,6 +9628,7 @@
9571
9628
  function TransactionTotalsComponent() {
9572
9629
  this.showDiscount = false;
9573
9630
  this.discountClick = new i0.EventEmitter();
9631
+ this.showDiscountDialog = false;
9574
9632
  }
9575
9633
  TransactionTotalsComponent.prototype.showClass = function () {
9576
9634
  return true;
@@ -9580,142 +9638,623 @@
9580
9638
  TransactionTotalsComponent.decorators = [
9581
9639
  { type: i0.Component, args: [{
9582
9640
  selector: "co-transaction-totals",
9583
- template: "\n <div class=\"transaction-totals-wrapper\">\n <span class=\"totals-gross label\" [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span class=\"totals-gross value\" [textContent]=\"totals?.grossAmount | coCurrency: true\"></span>\n <ng-container *ngIf=\"totals?.discountAmount\">\n <span class=\"totals-discount-amount label\" [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span class=\"totals-discount-amount value\" [textContent]=\"totals?.discountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"totals?.transactionDiscountAmount\">\n <span class=\"totals-discount label\" [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></span>\n <span class=\"totals-discount value\" [textContent]=\"totals?.transactionDiscountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"totals?.transactionDiscountPercentage\">\n <span class=\"totals-discount-percentage label\" [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span class=\"totals-discount-percentage value\" [textContent]=\"totals?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </ng-container>\n <span class=\"totals-net label\" [textContent]=\"'ORDER_NET'| localize\"></span>\n <span class=\"totals-net value\" [textContent]=\"totals?.netAmount | coCurrency: true\"></span>\n <a *ngIf=\"showDiscount\" class=\"add-discount label\" (click)=\"discountClick.emit($event)\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n ",
9641
+ template: "\n <div class=\"transaction-totals-wrapper\">\n <span class=\"totals-gross label\" [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span class=\"totals-gross value\" [textContent]=\"transactionTotal?.grossAmount | coCurrency: true\"></span>\n <ng-container *ngIf=\"transactionTotal?.discountAmount\">\n <span class=\"totals-discount-amount label\" [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span class=\"totals-discount-amount value\" [class.transaction-negative-value]=\"transactionTotal?.discountAmount < 0\" [textContent]=\"transactionTotal?.discountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionTotal?.transactionDiscountAmount\">\n <span class=\"totals-discount label\" [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></span>\n <span class=\"totals-discount value\" [class.transaction-negative-value]=\"transactionTotal?.transactionDiscountAmount < 0\" [textContent]=\"transactionTotal?.transactionDiscountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"transactionTotal?.transactionDiscountPercentage\">\n <span class=\"totals-discount-percentage label\" [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span class=\"totals-discount-percentage value\" [class.transaction-negative-value]=\"transactionTotal?.transactionDiscountPercentage < 0\" [textContent]=\"transactionTotal?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </ng-container>\n <span class=\"totals-net label\" [textContent]=\"'ORDER_NET'| localize\"></span>\n <span class=\"totals-net value\" [textContent]=\"transactionTotal?.netAmount | coCurrency: true\"></span>\n <a *ngIf=\"showDiscount\" class=\"add-discount label\" (click)=\"showDiscountDialog = true\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n <co-dialog-transaction-header-discount class=\"discount-dialog\" *ngIf=\"showDiscountDialog\"\n [transactionInfo]=\"transactionInfo\"\n [transactionTotal]=\"transactionTotal\"\n (close)=\"showDiscountDialog = false\">\n </co-dialog-transaction-header-discount>\n ",
9584
9642
  encapsulation: i0.ViewEncapsulation.None
9585
9643
  },] }
9586
9644
  ];
9587
9645
  TransactionTotalsComponent.propDecorators = {
9588
- totals: [{ type: i0.Input }],
9646
+ transactionInfo: [{ type: i0.Input }],
9647
+ transactionTotal: [{ type: i0.Input }],
9589
9648
  showDiscount: [{ type: i0.Input }],
9590
9649
  discountClick: [{ type: i0.Output }],
9591
9650
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-totals",] }]
9592
9651
  };
9593
9652
 
9594
- var TransactionTotalsModule = /** @class */ (function () {
9595
- function TransactionTotalsModule() {
9596
- }
9597
- return TransactionTotalsModule;
9598
- }());
9599
- TransactionTotalsModule.decorators = [
9600
- { type: i0.NgModule, args: [{
9601
- imports: [
9602
- common.CommonModule,
9603
- CoreModule,
9604
- PipeModule
9605
- ],
9606
- declarations: [
9607
- TransactionTotalsComponent
9608
- ],
9609
- exports: [
9610
- TransactionTotalsComponent
9611
- ]
9612
- },] }
9613
- ];
9614
-
9615
- var TransactionArticleTextComponent = /** @class */ (function () {
9616
- function TransactionArticleTextComponent(service) {
9617
- this.service = service;
9618
- this.closeClick = new i0.EventEmitter();
9619
- this.cancelClick = new i0.EventEmitter();
9620
- this.saveClick = new i0.EventEmitter();
9621
- this.showOverviewDialog = false;
9622
- this.standardTexts = [];
9623
- this.documents = [];
9624
- this.fields = { text: "description", value: "textId" };
9625
- this.fieldsDocuments = { text: "description", value: "code" };
9626
- this.transactionAddTextLineRequest = new transactionAddTextLineRequest_bo.TransactionAddTextLineRequest();
9653
+ var TransactionHeaderBaseComponent = /** @class */ (function (_super) {
9654
+ __extends(TransactionHeaderBaseComponent, _super);
9655
+ function TransactionHeaderBaseComponent() {
9656
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
9657
+ _this.readonly = false;
9658
+ _this._transactionInfo = new transactionInfo_bo.TransactionInfo();
9659
+ _this._transactionTotal = new transactionTotal_bo.TransactionTotal();
9660
+ return _this;
9627
9661
  }
9628
- Object.defineProperty(TransactionArticleTextComponent.prototype, "transactionLine", {
9662
+ Object.defineProperty(TransactionHeaderBaseComponent.prototype, "transactionInfo", {
9663
+ get: function () {
9664
+ return this._transactionInfo;
9665
+ },
9629
9666
  set: function (value) {
9630
9667
  if (value) {
9631
- this.transactionAddTextLineRequest.transactionUuid = value.uuid;
9632
- this.transactionAddTextLineRequest.text = value.text;
9668
+ this._transactionInfo = value;
9669
+ this.transactionInfoSet();
9633
9670
  }
9634
9671
  },
9635
9672
  enumerable: false,
9636
9673
  configurable: true
9637
9674
  });
9638
- Object.defineProperty(TransactionArticleTextComponent.prototype, "articleRef", {
9675
+ Object.defineProperty(TransactionHeaderBaseComponent.prototype, "transactionTotal", {
9639
9676
  get: function () {
9640
- return this._articleRef;
9677
+ return this._transactionTotal;
9641
9678
  },
9642
9679
  set: function (value) {
9643
9680
  if (value) {
9644
- this._articleRef = value;
9681
+ this._transactionTotal = value;
9682
+ this.transactionTotalSet();
9645
9683
  }
9646
9684
  },
9647
9685
  enumerable: false,
9648
9686
  configurable: true
9649
9687
  });
9650
- Object.defineProperty(TransactionArticleTextComponent.prototype, "editText", {
9651
- set: function (value) {
9652
- this.transactionAddTextLineRequest.text = value;
9688
+ Object.defineProperty(TransactionHeaderBaseComponent.prototype, "model", {
9689
+ get: function () {
9690
+ return this._transactionInfo;
9653
9691
  },
9654
9692
  enumerable: false,
9655
9693
  configurable: true
9656
9694
  });
9657
- Object.defineProperty(TransactionArticleTextComponent.prototype, "articleLineNr", {
9695
+ // overridden by descendents
9696
+ TransactionHeaderBaseComponent.prototype.transactionInfoSet = function () {
9697
+ };
9698
+ // overridden by descendents
9699
+ TransactionHeaderBaseComponent.prototype.transactionTotalSet = function () {
9700
+ };
9701
+ return TransactionHeaderBaseComponent;
9702
+ }(TransactionFilterPopupBaseComponent));
9703
+ TransactionHeaderBaseComponent.decorators = [
9704
+ { type: i0.Directive }
9705
+ ];
9706
+ TransactionHeaderBaseComponent.propDecorators = {
9707
+ transactionInfo: [{ type: i0.Input }],
9708
+ transactionTotal: [{ type: i0.Input }]
9709
+ };
9710
+
9711
+ var DialogTransactionHeaderBaseComponent = /** @class */ (function (_super) {
9712
+ __extends(DialogTransactionHeaderBaseComponent, _super);
9713
+ function DialogTransactionHeaderBaseComponent() {
9714
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
9715
+ _this.buttonType = AppPopupButtonType;
9716
+ _this.close = new i0.EventEmitter();
9717
+ return _this;
9718
+ }
9719
+ DialogTransactionHeaderBaseComponent.prototype.onClose = function (eventType, output) {
9720
+ return;
9721
+ };
9722
+ DialogTransactionHeaderBaseComponent.prototype.handleValueChange = function (value) {
9723
+ this.value = value;
9724
+ };
9725
+ DialogTransactionHeaderBaseComponent.prototype.handleOkClick = function () {
9726
+ this.onClose(AppPopupButtonType.Ok, this.value);
9727
+ };
9728
+ DialogTransactionHeaderBaseComponent.prototype.handleSearch = function (text) {
9729
+ this.searchText = text;
9730
+ };
9731
+ DialogTransactionHeaderBaseComponent.prototype.handleClose = function (type) {
9732
+ this.close.emit();
9733
+ this.onClose(type);
9734
+ };
9735
+ return DialogTransactionHeaderBaseComponent;
9736
+ }(TransactionHeaderBaseComponent));
9737
+ DialogTransactionHeaderBaseComponent.decorators = [
9738
+ { type: i0.Directive }
9739
+ ];
9740
+ DialogTransactionHeaderBaseComponent.propDecorators = {
9741
+ close: [{ type: i0.Output }]
9742
+ };
9743
+
9744
+ var DialogTransactionHeaderDiscountComponent = /** @class */ (function (_super) {
9745
+ __extends(DialogTransactionHeaderDiscountComponent, _super);
9746
+ function DialogTransactionHeaderDiscountComponent(_transactionService) {
9747
+ var _this = _super.call(this) || this;
9748
+ _this._transactionService = _transactionService;
9749
+ return _this;
9750
+ }
9751
+ DialogTransactionHeaderDiscountComponent.prototype.showClass = function () {
9752
+ return true;
9753
+ };
9754
+ DialogTransactionHeaderDiscountComponent.prototype.redistributeDiscount = function () {
9755
+ return __awaiter(this, void 0, void 0, function () {
9756
+ return __generator(this, function (_a) {
9757
+ switch (_a.label) {
9758
+ case 0: return [4 /*yield*/, this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, discountType_enum.DiscountType.TransactionDiscountAmount, this.transactionTotal.transactionDiscountAmount)];
9759
+ case 1:
9760
+ _a.sent();
9761
+ return [2 /*return*/];
9762
+ }
9763
+ });
9764
+ });
9765
+ };
9766
+ return DialogTransactionHeaderDiscountComponent;
9767
+ }(DialogTransactionHeaderBaseComponent));
9768
+ DialogTransactionHeaderDiscountComponent.decorators = [
9769
+ { type: i0.Component, args: [{
9770
+ selector: "co-dialog-transaction-header-discount",
9771
+ template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <div class=\"transaction-discount-wrapper co-transaction-small-toolbar\">\n <div class=\"two-column-grid\">\n <co-transaction-header-discount-percentage [transactionInfo]=\"transactionInfo\" [transactionTotal]=\"transactionTotal\"></co-transaction-header-discount-percentage>\n <co-transaction-header-discount-amount [transactionInfo]=\"transactionInfo\" [transactionTotal]=\"transactionTotal\"></co-transaction-header-discount-amount>\n </div>\n <div class=\"two-column-grid\">\n <co-transaction-header-discount-transaction-total [transactionInfo]=\"transactionInfo\" [transactionTotal]=\"transactionTotal\"></co-transaction-header-discount-transaction-total>\n <div class=\"transaction-line-button custom-width\" (click)=\"redistributeDiscount()\">\n <span class=\"co-transaction-overflow-ellipsis transaction-discount\"\n [textContent]=\"'REDISTRIBUTE_DISCOUNT' | localize\"></span>\n </div>\n </div>\n <div class=\"transaction-discount-overview\">\n <div class=\"transaction-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'ORDER_GROSS' | localize\"></div>\n <div class=\"value\" [textContent]=\"transactionTotal.grossAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionTotal.discountAmount < 0\" [textContent]=\"transactionTotal.discountAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'ASSEMBLY_COSTS' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionTotal.assemblyCosts < 0\" [textContent]=\"transactionTotal.assemblyCosts | coCurrency\"></div>\n </div>\n <div class=\"transaction-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'SURCHARGE_AMOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionTotal.surchargeAmount < 0\" [textContent]=\"transactionTotal.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'DELIVERY_COSTS' | localize\"></div>\n <div class=\"value\" [textContent]=\"'NOT_IMPLEMENTED_YET'\"></div>\n </div>\n <div class=\"transaction-discount-overview-item total\">\n <div class=\"title\" [textContent]=\"'ORDER_NET' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionTotal.netAmount < 0\" [textContent]=\"transactionTotal.netAmount | coCurrency\"></div>\n </div>\n </div>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"dialog-header-title\" [textContent]=\"'DISCOUNT_PRICE_INFORMATION' | localize\"></div>\n </ng-template>\n ",
9772
+ encapsulation: i0.ViewEncapsulation.None
9773
+ },] }
9774
+ ];
9775
+ DialogTransactionHeaderDiscountComponent.ctorParameters = function () { return [
9776
+ { type: TransactionService }
9777
+ ]; };
9778
+ DialogTransactionHeaderDiscountComponent.propDecorators = {
9779
+ showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-header-discount",] }]
9780
+ };
9781
+
9782
+ var TransactionHeaderDiscountPercentageComponent = /** @class */ (function (_super) {
9783
+ __extends(TransactionHeaderDiscountPercentageComponent, _super);
9784
+ function TransactionHeaderDiscountPercentageComponent(_transactionService) {
9785
+ var _this = _super.call(this) || this;
9786
+ _this._transactionService = _transactionService;
9787
+ _this.showLabel = true;
9788
+ _this.defaultEditMode = true;
9789
+ _this._editMode = false;
9790
+ return _this;
9791
+ }
9792
+ Object.defineProperty(TransactionHeaderDiscountPercentageComponent.prototype, "child", {
9793
+ set: function (content) {
9794
+ var _this = this;
9795
+ if (content) {
9796
+ this.input = content;
9797
+ this.input.commit = function (amount) { return _this.commit(amount); };
9798
+ if (this._editMode) {
9799
+ this.input.requestFocus();
9800
+ }
9801
+ }
9802
+ },
9803
+ enumerable: false,
9804
+ configurable: true
9805
+ });
9806
+ Object.defineProperty(TransactionHeaderDiscountPercentageComponent.prototype, "editMode", {
9807
+ get: function () {
9808
+ return this._editMode;
9809
+ },
9658
9810
  set: function (value) {
9659
- if (value) {
9660
- this.transactionAddTextLineRequest.refArticleLineNr = value;
9811
+ this._editMode = value;
9812
+ if (this._editMode && this.input) {
9813
+ this.input.doFocus();
9661
9814
  }
9662
9815
  },
9663
9816
  enumerable: false,
9664
9817
  configurable: true
9665
9818
  });
9666
- TransactionArticleTextComponent.prototype.showClass = function () {
9667
- return true;
9819
+ TransactionHeaderDiscountPercentageComponent.prototype.handleClick = function (event) {
9820
+ event.preventDefault();
9821
+ event.stopPropagation();
9822
+ if (!this.readonly) {
9823
+ this.editMode = true;
9824
+ }
9668
9825
  };
9669
- TransactionArticleTextComponent.prototype.ngOnInit = function () {
9826
+ TransactionHeaderDiscountPercentageComponent.prototype.commit = function (amount) {
9670
9827
  return __awaiter(this, void 0, void 0, function () {
9671
- var _a, _b;
9672
- return __generator(this, function (_c) {
9673
- switch (_c.label) {
9828
+ var oldPercentage, success;
9829
+ return __generator(this, function (_a) {
9830
+ switch (_a.label) {
9674
9831
  case 0:
9675
- _a = this;
9676
- return [4 /*yield*/, this.service.getStandardTexts("NL")];
9832
+ if (!(this.transactionTotal && this.transactionTotal.transactionDiscountPercentage !== amount)) return [3 /*break*/, 2];
9833
+ oldPercentage = this.transactionTotal.transactionDiscountPercentage;
9834
+ return [4 /*yield*/, this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, discountType_enum.DiscountType.TransactionDiscountPercentage, amount)];
9677
9835
  case 1:
9678
- _a.standardTexts = _c.sent();
9679
- _b = this;
9680
- return [4 /*yield*/, this.service.getTextTypes("NL")];
9681
- case 2:
9682
- _b.documents = _c.sent();
9683
- return [2 /*return*/];
9836
+ success = _a.sent();
9837
+ if (!success) {
9838
+ this.input.model = amount;
9839
+ }
9840
+ return [2 /*return*/, success];
9841
+ case 2: return [2 /*return*/, true];
9684
9842
  }
9685
9843
  });
9686
9844
  });
9687
9845
  };
9688
- TransactionArticleTextComponent.prototype.onOkClick = function (event) {
9689
- this.saveClick.next(this.transactionAddTextLineRequest);
9690
- };
9691
- TransactionArticleTextComponent.prototype.onCancelClick = function (event) {
9692
- this.cancelClick.next(event);
9693
- };
9694
- TransactionArticleTextComponent.prototype.onSelectStandardText = function (value) {
9695
- this.transactionAddTextLineRequest.text = (this.standardTexts.find(function (x) { return x.textId === value; })).text;
9696
- };
9697
- TransactionArticleTextComponent.prototype.handleDocumentsChange = function (docs) {
9846
+ TransactionHeaderDiscountPercentageComponent.prototype.transactionSet = function () {
9847
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
9698
9848
  };
9699
- return TransactionArticleTextComponent;
9700
- }());
9701
- TransactionArticleTextComponent.decorators = [
9849
+ return TransactionHeaderDiscountPercentageComponent;
9850
+ }(TransactionHeaderBaseComponent));
9851
+ TransactionHeaderDiscountPercentageComponent.decorators = [
9702
9852
  { type: i0.Component, args: [{
9703
- selector: "co-transaction-article-text",
9704
- template: "\n <co-dialog (closeClick)=\"closeClick.emit($event)\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\">\n <div class=\"article-text-content-wrapper\">\n <div class=\"editor-wrapper\">\n <textarea class=\"article-text\"\n [(ngModel)]=\"transactionAddTextLineRequest.text\"\n ></textarea>\n </div>\n <div class=\"option-wrapper\">\n <co-input-listbox\n [collection]=\"documents\"\n [fields]=\"fieldsDocuments\"\n [placeholder]=\"'FOR_DOCUMENTS' | localize\"\n [value]=\"transactionAddTextLineRequest.showOnDocuments\"\n [showCheckbox]=\"true\"\n (modelChange)=\"handleDocumentsChange($event)\"\n ></co-input-listbox>\n <co-drop-down-list\n [collection]=\"standardTexts\"\n [fields]=\"fields\"\n [placeholder]=\"'STANDARD_TEXTS' | localize\"\n (modelChange)=\"onSelectStandardText($event)\"\n ></co-drop-down-list>\n </div>\n </div>\n </co-dialog>\n <ng-template #headerTemplate><span [textContent]=\"header\"></span></ng-template>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onOkClick($event)\"></co-button>\n <co-button [label]=\"'CANCEL' | localize \" (click)=\"onCancelClick($event)\"></co-button>\n </div>\n </ng-template>\n\n ",
9853
+ selector: "co-transaction-header-discount-percentage",
9854
+ template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionTotal.transactionDiscountPercentage\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DISCOUNT_PERCENTAGE' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionTotal.transactionDiscountPercentage\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
9705
9855
  encapsulation: i0.ViewEncapsulation.None
9706
9856
  },] }
9707
9857
  ];
9708
- TransactionArticleTextComponent.ctorParameters = function () { return [
9858
+ TransactionHeaderDiscountPercentageComponent.ctorParameters = function () { return [
9709
9859
  { type: TransactionService }
9710
9860
  ]; };
9711
- TransactionArticleTextComponent.propDecorators = {
9712
- header: [{ type: i0.Input }],
9713
- transactionLine: [{ type: i0.Input }],
9714
- articleRef: [{ type: i0.Input }],
9715
- editText: [{ type: i0.Input }],
9716
- articleLineNr: [{ type: i0.Input }],
9717
- closeClick: [{ type: i0.Output }],
9718
- cancelClick: [{ type: i0.Output }],
9861
+ TransactionHeaderDiscountPercentageComponent.propDecorators = {
9862
+ child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }],
9863
+ showLabel: [{ type: i0.Input }],
9864
+ defaultEditMode: [{ type: i0.Input }],
9865
+ editMode: [{ type: i0.Input }],
9866
+ handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
9867
+ };
9868
+
9869
+ var TransactionHeaderDiscountPercentageModule = /** @class */ (function () {
9870
+ function TransactionHeaderDiscountPercentageModule() {
9871
+ }
9872
+ return TransactionHeaderDiscountPercentageModule;
9873
+ }());
9874
+ TransactionHeaderDiscountPercentageModule.decorators = [
9875
+ { type: i0.NgModule, args: [{
9876
+ imports: [
9877
+ common.CommonModule,
9878
+ corecomponents_v12.InputTextModule,
9879
+ PipeModule
9880
+ ],
9881
+ declarations: [
9882
+ TransactionHeaderDiscountPercentageComponent
9883
+ ],
9884
+ exports: [
9885
+ TransactionHeaderDiscountPercentageComponent
9886
+ ]
9887
+ },] }
9888
+ ];
9889
+
9890
+ var TransactionHeaderDiscountAmountComponent = /** @class */ (function (_super) {
9891
+ __extends(TransactionHeaderDiscountAmountComponent, _super);
9892
+ function TransactionHeaderDiscountAmountComponent(_transactionService) {
9893
+ var _this = _super.call(this) || this;
9894
+ _this._transactionService = _transactionService;
9895
+ _this.showLabel = true;
9896
+ _this.defaultEditMode = true;
9897
+ _this._editMode = false;
9898
+ return _this;
9899
+ }
9900
+ Object.defineProperty(TransactionHeaderDiscountAmountComponent.prototype, "child", {
9901
+ set: function (content) {
9902
+ var _this = this;
9903
+ if (content) {
9904
+ this.input = content;
9905
+ this.input.commit = function (amount) { return _this.commit(amount); };
9906
+ if (this._editMode) {
9907
+ this.input.requestFocus();
9908
+ }
9909
+ }
9910
+ },
9911
+ enumerable: false,
9912
+ configurable: true
9913
+ });
9914
+ Object.defineProperty(TransactionHeaderDiscountAmountComponent.prototype, "editMode", {
9915
+ get: function () {
9916
+ return this._editMode;
9917
+ },
9918
+ set: function (value) {
9919
+ this._editMode = value;
9920
+ if (this._editMode && this.input) {
9921
+ this.input.doFocus();
9922
+ }
9923
+ },
9924
+ enumerable: false,
9925
+ configurable: true
9926
+ });
9927
+ TransactionHeaderDiscountAmountComponent.prototype.handleClick = function (event) {
9928
+ event.preventDefault();
9929
+ event.stopPropagation();
9930
+ if (!this.readonly) {
9931
+ this.editMode = true;
9932
+ }
9933
+ };
9934
+ TransactionHeaderDiscountAmountComponent.prototype.commit = function (amount) {
9935
+ return __awaiter(this, void 0, void 0, function () {
9936
+ var oldAmount, success;
9937
+ return __generator(this, function (_a) {
9938
+ switch (_a.label) {
9939
+ case 0:
9940
+ if (!(this.transactionTotal && this.transactionTotal.transactionDiscountAmount !== amount)) return [3 /*break*/, 2];
9941
+ oldAmount = this.transactionTotal.transactionDiscountAmount;
9942
+ return [4 /*yield*/, this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, discountType_enum.DiscountType.TransactionDiscountAmount, amount)];
9943
+ case 1:
9944
+ success = _a.sent();
9945
+ if (!success) {
9946
+ this.input.model = amount;
9947
+ }
9948
+ return [2 /*return*/, success];
9949
+ case 2: return [2 /*return*/, true];
9950
+ }
9951
+ });
9952
+ });
9953
+ };
9954
+ TransactionHeaderDiscountAmountComponent.prototype.transactionSet = function () {
9955
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
9956
+ };
9957
+ return TransactionHeaderDiscountAmountComponent;
9958
+ }(TransactionHeaderBaseComponent));
9959
+ TransactionHeaderDiscountAmountComponent.decorators = [
9960
+ { type: i0.Component, args: [{
9961
+ selector: "co-transaction-header-discount-amount",
9962
+ template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionTotal.transactionDiscountAmount\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DISCOUNT_AMOUNT' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionTotal.transactionDiscountAmount\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
9963
+ encapsulation: i0.ViewEncapsulation.None
9964
+ },] }
9965
+ ];
9966
+ TransactionHeaderDiscountAmountComponent.ctorParameters = function () { return [
9967
+ { type: TransactionService }
9968
+ ]; };
9969
+ TransactionHeaderDiscountAmountComponent.propDecorators = {
9970
+ child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }],
9971
+ showLabel: [{ type: i0.Input }],
9972
+ defaultEditMode: [{ type: i0.Input }],
9973
+ editMode: [{ type: i0.Input }],
9974
+ handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
9975
+ };
9976
+
9977
+ var TransactionHeaderDiscountAmountModule = /** @class */ (function () {
9978
+ function TransactionHeaderDiscountAmountModule() {
9979
+ }
9980
+ return TransactionHeaderDiscountAmountModule;
9981
+ }());
9982
+ TransactionHeaderDiscountAmountModule.decorators = [
9983
+ { type: i0.NgModule, args: [{
9984
+ imports: [
9985
+ common.CommonModule,
9986
+ corecomponents_v12.InputTextModule,
9987
+ PipeModule
9988
+ ],
9989
+ declarations: [
9990
+ TransactionHeaderDiscountAmountComponent
9991
+ ],
9992
+ exports: [
9993
+ TransactionHeaderDiscountAmountComponent
9994
+ ]
9995
+ },] }
9996
+ ];
9997
+
9998
+ var TransactionHeaderDiscountTransactionTotalComponent = /** @class */ (function (_super) {
9999
+ __extends(TransactionHeaderDiscountTransactionTotalComponent, _super);
10000
+ function TransactionHeaderDiscountTransactionTotalComponent(_transactionService) {
10001
+ var _this = _super.call(this) || this;
10002
+ _this._transactionService = _transactionService;
10003
+ _this.showLabel = true;
10004
+ _this.defaultEditMode = true;
10005
+ _this._editMode = false;
10006
+ return _this;
10007
+ }
10008
+ Object.defineProperty(TransactionHeaderDiscountTransactionTotalComponent.prototype, "child", {
10009
+ set: function (content) {
10010
+ var _this = this;
10011
+ if (content) {
10012
+ this.input = content;
10013
+ this.input.commit = function (amount) { return _this.commit(amount); };
10014
+ if (this._editMode) {
10015
+ this.input.requestFocus();
10016
+ }
10017
+ }
10018
+ },
10019
+ enumerable: false,
10020
+ configurable: true
10021
+ });
10022
+ Object.defineProperty(TransactionHeaderDiscountTransactionTotalComponent.prototype, "editMode", {
10023
+ get: function () {
10024
+ return this._editMode;
10025
+ },
10026
+ set: function (value) {
10027
+ this._editMode = value;
10028
+ if (this._editMode && this.input) {
10029
+ this.input.doFocus();
10030
+ }
10031
+ },
10032
+ enumerable: false,
10033
+ configurable: true
10034
+ });
10035
+ TransactionHeaderDiscountTransactionTotalComponent.prototype.handleClick = function (event) {
10036
+ event.preventDefault();
10037
+ event.stopPropagation();
10038
+ if (!this.readonly) {
10039
+ this.editMode = true;
10040
+ }
10041
+ };
10042
+ TransactionHeaderDiscountTransactionTotalComponent.prototype.commit = function (amount) {
10043
+ return __awaiter(this, void 0, void 0, function () {
10044
+ var success;
10045
+ return __generator(this, function (_a) {
10046
+ switch (_a.label) {
10047
+ case 0:
10048
+ if (!(this.transactionTotalAmount !== amount)) return [3 /*break*/, 2];
10049
+ return [4 /*yield*/, this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, discountType_enum.DiscountType.OrderTotal, amount)];
10050
+ case 1:
10051
+ success = _a.sent();
10052
+ if (!success) {
10053
+ this.input.model = amount;
10054
+ }
10055
+ else {
10056
+ this.transactionTotalAmount = undefined;
10057
+ }
10058
+ return [2 /*return*/, success];
10059
+ case 2: return [2 /*return*/, true];
10060
+ }
10061
+ });
10062
+ });
10063
+ };
10064
+ TransactionHeaderDiscountTransactionTotalComponent.prototype.transactionSet = function () {
10065
+ this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
10066
+ };
10067
+ return TransactionHeaderDiscountTransactionTotalComponent;
10068
+ }(TransactionHeaderBaseComponent));
10069
+ TransactionHeaderDiscountTransactionTotalComponent.decorators = [
10070
+ { type: i0.Component, args: [{
10071
+ selector: "co-transaction-header-discount-transaction-total",
10072
+ template: "\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('TRANSACTION_TOTAL' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [(model)]=\"transactionTotalAmount\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
10073
+ encapsulation: i0.ViewEncapsulation.None
10074
+ },] }
10075
+ ];
10076
+ TransactionHeaderDiscountTransactionTotalComponent.ctorParameters = function () { return [
10077
+ { type: TransactionService }
10078
+ ]; };
10079
+ TransactionHeaderDiscountTransactionTotalComponent.propDecorators = {
10080
+ child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }],
10081
+ showLabel: [{ type: i0.Input }],
10082
+ defaultEditMode: [{ type: i0.Input }],
10083
+ editMode: [{ type: i0.Input }],
10084
+ handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
10085
+ };
10086
+
10087
+ var TransactionHeaderDiscountTransactionTotalModule = /** @class */ (function () {
10088
+ function TransactionHeaderDiscountTransactionTotalModule() {
10089
+ }
10090
+ return TransactionHeaderDiscountTransactionTotalModule;
10091
+ }());
10092
+ TransactionHeaderDiscountTransactionTotalModule.decorators = [
10093
+ { type: i0.NgModule, args: [{
10094
+ imports: [
10095
+ common.CommonModule,
10096
+ corecomponents_v12.InputTextModule,
10097
+ PipeModule
10098
+ ],
10099
+ declarations: [
10100
+ TransactionHeaderDiscountTransactionTotalComponent
10101
+ ],
10102
+ exports: [
10103
+ TransactionHeaderDiscountTransactionTotalComponent
10104
+ ]
10105
+ },] }
10106
+ ];
10107
+
10108
+ var DialogTransactionHeaderDiscountModule = /** @class */ (function () {
10109
+ function DialogTransactionHeaderDiscountModule() {
10110
+ }
10111
+ return DialogTransactionHeaderDiscountModule;
10112
+ }());
10113
+ DialogTransactionHeaderDiscountModule.decorators = [
10114
+ { type: i0.NgModule, args: [{
10115
+ imports: [
10116
+ common.CommonModule,
10117
+ corecomponents_v12.CoDialogModule,
10118
+ TransactionHeaderDiscountPercentageModule,
10119
+ TransactionHeaderDiscountAmountModule,
10120
+ TransactionHeaderDiscountTransactionTotalModule,
10121
+ PipeModule
10122
+ ],
10123
+ declarations: [
10124
+ DialogTransactionHeaderDiscountComponent
10125
+ ],
10126
+ exports: [
10127
+ DialogTransactionHeaderDiscountComponent
10128
+ ]
10129
+ },] }
10130
+ ];
10131
+
10132
+ var TransactionTotalsModule = /** @class */ (function () {
10133
+ function TransactionTotalsModule() {
10134
+ }
10135
+ return TransactionTotalsModule;
10136
+ }());
10137
+ TransactionTotalsModule.decorators = [
10138
+ { type: i0.NgModule, args: [{
10139
+ imports: [
10140
+ common.CommonModule,
10141
+ CoreModule,
10142
+ PipeModule,
10143
+ DialogTransactionHeaderDiscountModule
10144
+ ],
10145
+ declarations: [
10146
+ TransactionTotalsComponent
10147
+ ],
10148
+ exports: [
10149
+ TransactionTotalsComponent
10150
+ ]
10151
+ },] }
10152
+ ];
10153
+
10154
+ var TransactionArticleTextComponent = /** @class */ (function () {
10155
+ function TransactionArticleTextComponent(service) {
10156
+ this.service = service;
10157
+ this.closeClick = new i0.EventEmitter();
10158
+ this.cancelClick = new i0.EventEmitter();
10159
+ this.saveClick = new i0.EventEmitter();
10160
+ this.showOverviewDialog = false;
10161
+ this.standardTexts = [];
10162
+ this.documents = [];
10163
+ this.fields = { text: "description", value: "textId" };
10164
+ this.fieldsDocuments = { text: "description", value: "code" };
10165
+ this.transactionAddTextLineRequest = new transactionAddTextLineRequest_bo.TransactionAddTextLineRequest();
10166
+ }
10167
+ Object.defineProperty(TransactionArticleTextComponent.prototype, "transactionLine", {
10168
+ set: function (value) {
10169
+ if (value) {
10170
+ this.transactionAddTextLineRequest.transactionUuid = value.uuid;
10171
+ this.transactionAddTextLineRequest.text = value.text;
10172
+ }
10173
+ },
10174
+ enumerable: false,
10175
+ configurable: true
10176
+ });
10177
+ Object.defineProperty(TransactionArticleTextComponent.prototype, "articleRef", {
10178
+ get: function () {
10179
+ return this._articleRef;
10180
+ },
10181
+ set: function (value) {
10182
+ if (value) {
10183
+ this._articleRef = value;
10184
+ }
10185
+ },
10186
+ enumerable: false,
10187
+ configurable: true
10188
+ });
10189
+ Object.defineProperty(TransactionArticleTextComponent.prototype, "editText", {
10190
+ set: function (value) {
10191
+ this.transactionAddTextLineRequest.text = value;
10192
+ },
10193
+ enumerable: false,
10194
+ configurable: true
10195
+ });
10196
+ Object.defineProperty(TransactionArticleTextComponent.prototype, "articleLineNr", {
10197
+ set: function (value) {
10198
+ if (value) {
10199
+ this.transactionAddTextLineRequest.refArticleLineNr = value;
10200
+ }
10201
+ },
10202
+ enumerable: false,
10203
+ configurable: true
10204
+ });
10205
+ TransactionArticleTextComponent.prototype.showClass = function () {
10206
+ return true;
10207
+ };
10208
+ TransactionArticleTextComponent.prototype.ngOnInit = function () {
10209
+ return __awaiter(this, void 0, void 0, function () {
10210
+ var _a, _b;
10211
+ return __generator(this, function (_c) {
10212
+ switch (_c.label) {
10213
+ case 0:
10214
+ _a = this;
10215
+ return [4 /*yield*/, this.service.getStandardTexts("NL")];
10216
+ case 1:
10217
+ _a.standardTexts = _c.sent();
10218
+ _b = this;
10219
+ return [4 /*yield*/, this.service.getTextTypes("NL")];
10220
+ case 2:
10221
+ _b.documents = _c.sent();
10222
+ return [2 /*return*/];
10223
+ }
10224
+ });
10225
+ });
10226
+ };
10227
+ TransactionArticleTextComponent.prototype.onOkClick = function (event) {
10228
+ this.saveClick.next(this.transactionAddTextLineRequest);
10229
+ };
10230
+ TransactionArticleTextComponent.prototype.onCancelClick = function (event) {
10231
+ this.cancelClick.next(event);
10232
+ };
10233
+ TransactionArticleTextComponent.prototype.onSelectStandardText = function (value) {
10234
+ this.transactionAddTextLineRequest.text = (this.standardTexts.find(function (x) { return x.textId === value; })).text;
10235
+ };
10236
+ TransactionArticleTextComponent.prototype.handleDocumentsChange = function (docs) {
10237
+ };
10238
+ return TransactionArticleTextComponent;
10239
+ }());
10240
+ TransactionArticleTextComponent.decorators = [
10241
+ { type: i0.Component, args: [{
10242
+ selector: "co-transaction-article-text",
10243
+ template: "\n <co-dialog (closeClick)=\"closeClick.emit($event)\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\">\n <div class=\"article-text-content-wrapper\">\n <div class=\"editor-wrapper\">\n <textarea class=\"article-text\"\n [(ngModel)]=\"transactionAddTextLineRequest.text\"\n ></textarea>\n </div>\n <div class=\"option-wrapper\">\n <co-input-listbox\n [collection]=\"documents\"\n [fields]=\"fieldsDocuments\"\n [placeholder]=\"'FOR_DOCUMENTS' | localize\"\n [value]=\"transactionAddTextLineRequest.showOnDocuments\"\n [showCheckbox]=\"true\"\n (modelChange)=\"handleDocumentsChange($event)\"\n ></co-input-listbox>\n <co-drop-down-list\n [collection]=\"standardTexts\"\n [fields]=\"fields\"\n [placeholder]=\"'STANDARD_TEXTS' | localize\"\n (modelChange)=\"onSelectStandardText($event)\"\n ></co-drop-down-list>\n </div>\n </div>\n </co-dialog>\n <ng-template #headerTemplate><span [textContent]=\"header\"></span></ng-template>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onOkClick($event)\"></co-button>\n <co-button [label]=\"'CANCEL' | localize \" (click)=\"onCancelClick($event)\"></co-button>\n </div>\n </ng-template>\n\n ",
10244
+ encapsulation: i0.ViewEncapsulation.None
10245
+ },] }
10246
+ ];
10247
+ TransactionArticleTextComponent.ctorParameters = function () { return [
10248
+ { type: TransactionService }
10249
+ ]; };
10250
+ TransactionArticleTextComponent.propDecorators = {
10251
+ header: [{ type: i0.Input }],
10252
+ transactionLine: [{ type: i0.Input }],
10253
+ articleRef: [{ type: i0.Input }],
10254
+ editText: [{ type: i0.Input }],
10255
+ articleLineNr: [{ type: i0.Input }],
10256
+ closeClick: [{ type: i0.Output }],
10257
+ cancelClick: [{ type: i0.Output }],
9719
10258
  saveClick: [{ type: i0.Output }],
9720
10259
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-article-text",] }]
9721
10260
  };
@@ -9748,121 +10287,26 @@
9748
10287
  ];
9749
10288
 
9750
10289
  // The different view modes for search
9751
- var SearchViewMode;
10290
+ exports.SearchViewMode = void 0;
9752
10291
  (function (SearchViewMode) {
9753
10292
  SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
9754
10293
  SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
9755
- })(SearchViewMode || (SearchViewMode = {}));
10294
+ })(exports.SearchViewMode || (exports.SearchViewMode = {}));
9756
10295
 
9757
- exports.SearchBarViewMode = void 0;
9758
- (function (SearchBarViewMode) {
9759
- SearchBarViewMode[SearchBarViewMode["Expanded"] = 0] = "Expanded";
9760
- SearchBarViewMode[SearchBarViewMode["Collapsed"] = 1] = "Collapsed";
9761
- })(exports.SearchBarViewMode || (exports.SearchBarViewMode = {}));
9762
- var TransactionSearchComponent = /** @class */ (function () {
9763
- function TransactionSearchComponent(transactionSearchService) {
9764
- this.transactionSearchService = transactionSearchService;
9765
- this.searchViewModes = SearchViewMode;
9766
- this.orientations = corecomponents_v12.CoOrientation;
9767
- this.directionRight = corecomponents_v12.CoDirection.Right;
9768
- this.transactionClick = new i0.EventEmitter();
9769
- this.searchViewModeChange = new i0.EventEmitter();
9770
- }
9771
- Object.defineProperty(TransactionSearchComponent.prototype, "transactionType", {
9772
- get: function () {
9773
- return this._transactionType;
9774
- },
9775
- set: function (value) {
9776
- this._transactionType = value;
9777
- this.transactionSearchService.transactionType = this._transactionType;
9778
- },
9779
- enumerable: false,
9780
- configurable: true
9781
- });
9782
- TransactionSearchComponent.prototype.showClass = function () {
9783
- return true;
9784
- };
9785
- TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
9786
- if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
9787
- this.collapseSearchBar();
9788
- }
9789
- this._scrollToTop();
9790
- this.transactionClick.emit(transaction);
9791
- };
9792
- TransactionSearchComponent.prototype.onSearchViewResizeClick = function () {
9793
- if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
9794
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
9795
- }
9796
- else {
9797
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
9798
- }
9799
- this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
9800
- };
9801
- TransactionSearchComponent.prototype.onSideCollapseHandleClick = function () {
9802
- this.toggleSearchBar();
9803
- };
9804
- TransactionSearchComponent.prototype.toggleSearchBar = function () {
9805
- if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
9806
- this.expandSearchBar();
9807
- }
9808
- else {
9809
- this.collapseSearchBar();
9810
- }
9811
- };
9812
- TransactionSearchComponent.prototype.collapseSearchBar = function () {
9813
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
9814
- this.transactionSearchService.activeSearchBarViewMode = exports.SearchBarViewMode.Collapsed;
9815
- this.searchViewModeChange.emit(this.searchViewModes.SideBar);
9816
- };
9817
- TransactionSearchComponent.prototype.expandSearchBar = function () {
9818
- this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
9819
- this.transactionSearchService.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
9820
- this.searchViewModeChange.emit(this.searchViewModes.SideBar);
9821
- };
9822
- TransactionSearchComponent.prototype.calculateClasses = function () {
9823
- return {
9824
- 'fullscreen': this.transactionSearchService.fullscreen,
9825
- 'sidebar': !this.transactionSearchService.fullscreen,
9826
- 'collapsed': this.transactionSearchService.collapsed,
9827
- 'expanded': !this.transactionSearchService.collapsed,
9828
- };
9829
- };
9830
- TransactionSearchComponent.prototype._scrollToTop = function () {
9831
- window.scrollTo({ top: 0, behavior: 'smooth' });
9832
- };
9833
- return TransactionSearchComponent;
9834
- }());
9835
- TransactionSearchComponent.decorators = [
9836
- { type: i0.Component, args: [{
9837
- selector: 'co-transaction-search',
9838
- template: "\n <div class=\"transaction-search-main-wrapper\">\n <div class=\"transaction-search-wrapper\"\n [ngClass]=\"calculateClasses()\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\"\n [ngClass]=\"calculateClasses()\"\n *ngIf=\"transactionSearchService.showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (closeButtonClick)=\"transactionSearchService.handleHideFilter()\"\n (resetFilterClick)=\"transactionSearchService.handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <co-transaction-search-result\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (filterClick)=\"transactionSearchService.toggleFilter()\"\n (transactionClick)=\"onTransactionClick($event)\"\n (resizeClick)=\"onSearchViewResizeClick()\"\n (closeClick)=\"collapseSearchBar()\"\n ></co-transaction-search-result>\n </div>\n </div>\n <div class=\"transaction-search-content-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n ",
9839
- animations: [
9840
- animations.trigger("showHideFilterSidebar", [
9841
- animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
9842
- animations.state("*", animations.style({ transform: 'translateX(0)' })),
9843
- animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
9844
- ])
9845
- ],
9846
- encapsulation: i0.ViewEncapsulation.None
9847
- },] }
9848
- ];
9849
- TransactionSearchComponent.ctorParameters = function () { return [
9850
- { type: TransactionSearchService }
9851
- ]; };
9852
- TransactionSearchComponent.propDecorators = {
9853
- transactionType: [{ type: i0.Input }],
9854
- transactionClick: [{ type: i0.Output }],
9855
- searchViewModeChange: [{ type: i0.Output }],
9856
- showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
9857
- };
10296
+ // The different view modes for search
10297
+ exports.SearchbarViewMode = void 0;
10298
+ (function (SearchbarViewMode) {
10299
+ SearchbarViewMode[SearchbarViewMode["Expanded"] = 0] = "Expanded";
10300
+ SearchbarViewMode[SearchbarViewMode["Collapsed"] = 1] = "Collapsed";
10301
+ })(exports.SearchbarViewMode || (exports.SearchbarViewMode = {}));
9858
10302
 
9859
10303
  var TransactionSearchService = /** @class */ (function () {
9860
10304
  function TransactionSearchService(_transactionService) {
9861
10305
  this._transactionService = _transactionService;
9862
10306
  this.searchRequest = new transactionSearchViewRequest.TransactionSearchViewRequest();
9863
10307
  this.previousSearchRequest = new transactionSearchViewRequest.TransactionSearchViewRequest();
9864
- this.activeSearchViewMode = SearchViewMode.FullScreen;
9865
- this.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
10308
+ this.activeSearchViewMode = exports.SearchViewMode.FullScreen;
10309
+ this.activeSearchBarViewMode = exports.SearchbarViewMode.Expanded;
9866
10310
  this.showFilterSidebar = false;
9867
10311
  this.transactions = [];
9868
10312
  this.labelBasedOnTransactionType = new Map([
@@ -9871,7 +10315,6 @@
9871
10315
  [transactionKind_enum.TransactionKind.ServiceOrder, "SERVICEORDERS"]
9872
10316
  ]);
9873
10317
  this.transactionsPerPage = 20;
9874
- this.resultCount = 0;
9875
10318
  this._currentPage = 1;
9876
10319
  this._transactionType = transactionKind_enum.TransactionKind.SalesOrder;
9877
10320
  }
@@ -9909,8 +10352,9 @@
9909
10352
  var lowerBound = ((this.currentPage - 1) * this.transactionsPerPage) + 1;
9910
10353
  this.searchRequest.paging = new pagingParameters.PagingParameters(lowerBound, lowerBound + this.transactionsPerPage - 1, this.transactionsPerPage);
9911
10354
  this._transactionService.searchTransactions(this.searchRequest).then(function (result) {
9912
- _this.transactions = result.transactions;
9913
- _this.resultCount = result.count;
10355
+ var _a, _b;
10356
+ _this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
10357
+ _this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
9914
10358
  });
9915
10359
  this.setPreviousSearchRequest();
9916
10360
  };
@@ -9934,14 +10378,14 @@
9934
10378
  };
9935
10379
  Object.defineProperty(TransactionSearchService.prototype, "fullscreen", {
9936
10380
  get: function () {
9937
- return this.activeSearchViewMode === SearchViewMode.FullScreen;
10381
+ return this.activeSearchViewMode === exports.SearchViewMode.FullScreen;
9938
10382
  },
9939
10383
  enumerable: false,
9940
10384
  configurable: true
9941
10385
  });
9942
10386
  Object.defineProperty(TransactionSearchService.prototype, "collapsed", {
9943
10387
  get: function () {
9944
- return this.activeSearchBarViewMode === exports.SearchBarViewMode.Collapsed;
10388
+ return this.activeSearchBarViewMode === exports.SearchbarViewMode.Collapsed;
9945
10389
  },
9946
10390
  enumerable: false,
9947
10391
  configurable: true
@@ -9978,8 +10422,8 @@
9978
10422
  this.searchService = searchService;
9979
10423
  this.align = corecomponents_v12.ColumnAlign;
9980
10424
  this.icon = Icon;
9981
- this.searchViewModes = SearchViewMode;
9982
- this.activeSearchViewMode = SearchViewMode.FullScreen;
10425
+ this.searchViewModes = exports.SearchViewMode;
10426
+ this.activeSearchViewMode = exports.SearchViewMode.FullScreen;
9983
10427
  this.closeButtonClick = new i0.EventEmitter();
9984
10428
  this.resetFilterClick = new i0.EventEmitter();
9985
10429
  this.filterCategories = [
@@ -10781,30 +11225,10 @@
10781
11225
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
10782
11226
  };
10783
11227
 
10784
- var DialogTransactionLineDeliveryMethodComponent = /** @class */ (function (_super) {
10785
- __extends(DialogTransactionLineDeliveryMethodComponent, _super);
10786
- function DialogTransactionLineDeliveryMethodComponent() {
10787
- return _super !== null && _super.apply(this, arguments) || this;
10788
- }
10789
- DialogTransactionLineDeliveryMethodComponent.prototype.showClass = function () {
10790
- return true;
10791
- };
10792
- return DialogTransactionLineDeliveryMethodComponent;
10793
- }(DialogTransactionLineBaseComponent));
10794
- DialogTransactionLineDeliveryMethodComponent.decorators = [
10795
- { type: i0.Component, args: [{
10796
- selector: "co-dialog-transaction-line-delivery-method",
10797
- template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-delivery-method\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
10798
- encapsulation: i0.ViewEncapsulation.None
10799
- },] }
10800
- ];
10801
- DialogTransactionLineDeliveryMethodComponent.propDecorators = {
10802
- showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
10803
- };
10804
-
10805
11228
  var TransactionLinesLineBaseComponent = /** @class */ (function () {
10806
11229
  function TransactionLinesLineBaseComponent() {
10807
11230
  this.icons = Icon;
11231
+ this.lineChange = new i0.EventEmitter();
10808
11232
  this.waitingForUserAction = new i0.EventEmitter();
10809
11233
  this.preview = false;
10810
11234
  this.readonly = false;
@@ -10837,6 +11261,7 @@
10837
11261
  TransactionLinesLineBaseComponent.propDecorators = {
10838
11262
  line: [{ type: i0.Input }],
10839
11263
  transactionId: [{ type: i0.Input }],
11264
+ lineChange: [{ type: i0.Output }],
10840
11265
  waitingForUserAction: [{ type: i0.Output }],
10841
11266
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-base-line",] }],
10842
11267
  preview: [{ type: i0.HostBinding, args: ["class.preview",] }, { type: i0.Input }],
@@ -10845,79 +11270,6 @@
10845
11270
  isArticle: [{ type: i0.HostBinding, args: ["class.is-article",] }]
10846
11271
  };
10847
11272
 
10848
- var DialogTransactionLineVatComponent = /** @class */ (function (_super) {
10849
- __extends(DialogTransactionLineVatComponent, _super);
10850
- function DialogTransactionLineVatComponent() {
10851
- return _super !== null && _super.apply(this, arguments) || this;
10852
- }
10853
- DialogTransactionLineVatComponent.prototype.showClass = function () {
10854
- return true;
10855
- };
10856
- return DialogTransactionLineVatComponent;
10857
- }(DialogTransactionLineBaseComponent));
10858
- DialogTransactionLineVatComponent.decorators = [
10859
- { type: i0.Component, args: [{
10860
- selector: "co-dialog-transaction-line-vat",
10861
- template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-vat\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-vat>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'VAT'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
10862
- encapsulation: i0.ViewEncapsulation.None
10863
- },] }
10864
- ];
10865
- DialogTransactionLineVatComponent.propDecorators = {
10866
- showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
10867
- };
10868
-
10869
- var DialogTransactionLineDiscountComponent = /** @class */ (function (_super) {
10870
- __extends(DialogTransactionLineDiscountComponent, _super);
10871
- function DialogTransactionLineDiscountComponent(_dialogService, _service) {
10872
- var _this = _super.call(this) || this;
10873
- _this._dialogService = _dialogService;
10874
- _this._service = _service;
10875
- _this.showPriceListDialog = false;
10876
- return _this;
10877
- }
10878
- DialogTransactionLineDiscountComponent.prototype.showClass = function () {
10879
- return true;
10880
- };
10881
- DialogTransactionLineDiscountComponent.prototype.openThePriceListDialog = function () {
10882
- this.showPriceListDialog = true;
10883
- };
10884
- DialogTransactionLineDiscountComponent.prototype.transactionLineSet = function () {
10885
- this._loadLinePricelist();
10886
- };
10887
- DialogTransactionLineDiscountComponent.prototype.transactionInfoSet = function () {
10888
- this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
10889
- };
10890
- DialogTransactionLineDiscountComponent.prototype._loadLinePricelist = function () {
10891
- return __awaiter(this, void 0, void 0, function () {
10892
- var _this = this;
10893
- return __generator(this, function (_a) {
10894
- if (this.transactionLine && this.transactionLine.isArticle) {
10895
- this._service.getPriceLists().then(function (lists) {
10896
- var priceList = lists.find(function (l) { return l.code === _this.transactionLine.priceListCode; });
10897
- _this.transactionLine.priceListDescription = priceList ? priceList.description : "";
10898
- });
10899
- }
10900
- return [2 /*return*/];
10901
- });
10902
- });
10903
- };
10904
- return DialogTransactionLineDiscountComponent;
10905
- }(DialogTransactionLineBaseComponent));
10906
- DialogTransactionLineDiscountComponent.decorators = [
10907
- { type: i0.Component, args: [{
10908
- selector: "co-dialog-transaction-line-discount",
10909
- template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <div class=\"transaction-line-discount-wrapper co-transaction-small-toolbar\">\n <div class=\"two-column-grid\">\n <co-transaction-line-line-discount [transactionLine]=\"transactionLine\"></co-transaction-line-line-discount>\n <co-transaction-line-discount-amount [transactionLine]=\"transactionLine\"></co-transaction-line-discount-amount>\n </div>\n <div class=\"two-column-grid\">\n <co-transaction-line-special-discount [transactionLine]=\"transactionLine\"></co-transaction-line-special-discount>\n <co-transaction-line-quantum-discount [transactionLine]=\"transactionLine\"></co-transaction-line-quantum-discount>\n </div>\n <div class=\"two-column-grid\">\n <co-input-text [placeholder]=\"'SURCHARGE_AMOUNT' | localize\" [model]=\"transactionLine.surchargeAmount\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text [placeholder]=\"'BUSINESS_RULE_DISCOUNT' | localize\" [model]=\"'NIET_GEIMPLEMENTEERD'\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"transaction-line-discount-overview\">\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.negative]=\"transactionLine.discountAmount < 0\" [textContent]=\"transactionLine.discountAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'BUSINESS_RULE_DISCOUNT' | localize\"></div>\n <div class=\"value\" [textContent]=\"'NIET_GEIMPLEMENTEERD'\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'QUANTUM_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.negative]=\"transactionLine.quantumDiscount < 0\" [textContent]=\"transactionLine.quantumDiscount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'SURCHARGE_AMOUNT' | localize\"></div>\n <div class=\"value\" [class.negative]=\"transactionLine.surchargeAmount < 0\" [textContent]=\"transactionLine.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item total\">\n <div class=\"title\" [textContent]=\"'TOTAL_LINE_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.negative]=\"transactionLine.lineTotalDiscountAmount < 0\" [textContent]=\"transactionLine.lineTotalDiscountAmount | coCurrency\"></div>\n </div>\n </div>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"dialog-header-title\" [textContent]=\"'DISCOUNT_PRICE_INFORMATION' | localize\"></div>\n <div class=\"transaction-line-button big\" (click)=\"openThePriceListDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.priceListDescription\"></span>\n </div>\n </ng-template>\n <co-dialog-transaction-line-price-list *ngIf=\"showPriceListDialog\"\n [transactionLine]=\"transactionLine\"\n (close)=\"showPriceListDialog = false\"\n ></co-dialog-transaction-line-price-list>\n ",
10910
- encapsulation: i0.ViewEncapsulation.None
10911
- },] }
10912
- ];
10913
- DialogTransactionLineDiscountComponent.ctorParameters = function () { return [
10914
- { type: DialogService },
10915
- { type: TransactionService }
10916
- ]; };
10917
- DialogTransactionLineDiscountComponent.propDecorators = {
10918
- showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
10919
- };
10920
-
10921
11273
  var TransactionOverviewLineComponent = /** @class */ (function (_super) {
10922
11274
  __extends(TransactionOverviewLineComponent, _super);
10923
11275
  function TransactionOverviewLineComponent(service, iconCacheService, _dialogService, _dictionaryService) {
@@ -10929,6 +11281,8 @@
10929
11281
  _this.stock = stockStatus_enum.StockStatus.Low;
10930
11282
  _this.mouseOver = false;
10931
11283
  _this.readonly = false;
11284
+ _this.showDialogVat = false;
11285
+ _this.showDialogDiscount = false;
10932
11286
  _this.subscriptions = [];
10933
11287
  return _this;
10934
11288
  }
@@ -10941,17 +11295,18 @@
10941
11295
  TransactionOverviewLineComponent.prototype.handleMouseLeave = function (event) {
10942
11296
  this.mouseOver = false;
10943
11297
  };
11298
+ TransactionOverviewLineComponent.prototype.ngOnChanges = function (changes) {
11299
+ console.log(changes);
11300
+ };
10944
11301
  TransactionOverviewLineComponent.prototype.ngOnInit = function () {
10945
11302
  var _this = this;
10946
11303
  this.subscriptions.push(this.lineSet.subscribe(function (set) {
10947
11304
  if (set) {
10948
11305
  _this.localAmount = _this._line.amount;
10949
- _this._loadLineCommissionCode();
10950
- _this._loadLineWarehouse();
10951
- _this._loadLineDeliveryMethod();
10952
11306
  _this._loadLineVat();
10953
11307
  }
10954
11308
  }));
11309
+ this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
10955
11310
  };
10956
11311
  TransactionOverviewLineComponent.prototype.ngOnDestroy = function () {
10957
11312
  this.subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
@@ -10970,63 +11325,6 @@
10970
11325
  this.transactionLineActionButtons.textToEdit = text;
10971
11326
  this.transactionLineActionButtons.showArticleTextDialog();
10972
11327
  };
10973
- TransactionOverviewLineComponent.prototype.openCommissionCodeDialog = function () {
10974
- this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
10975
- };
10976
- TransactionOverviewLineComponent.prototype.openWarehouseDialog = function () {
10977
- this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
10978
- };
10979
- TransactionOverviewLineComponent.prototype.openDeliveryMethodDialog = function () {
10980
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
10981
- };
10982
- TransactionOverviewLineComponent.prototype.openVatDialog = function () {
10983
- this._dialogService.showTransactionLineComponent(DialogTransactionLineVatComponent, this.line);
10984
- };
10985
- TransactionOverviewLineComponent.prototype.openDiscountDialog = function () {
10986
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDiscountComponent, this.line);
10987
- };
10988
- TransactionOverviewLineComponent.prototype._loadLineCommissionCode = function () {
10989
- return __awaiter(this, void 0, void 0, function () {
10990
- var _this = this;
10991
- return __generator(this, function (_a) {
10992
- if (this.line && this.line.isArticle) {
10993
- this.service.getCommissionCodes('NL').then(function (codes) {
10994
- var commissionCode = codes.find(function (c) { return c.code === _this.line.commissionCode; });
10995
- _this.line.commissionDescription = commissionCode ? commissionCode.description : "";
10996
- });
10997
- }
10998
- return [2 /*return*/];
10999
- });
11000
- });
11001
- };
11002
- TransactionOverviewLineComponent.prototype._loadLineWarehouse = function () {
11003
- return __awaiter(this, void 0, void 0, function () {
11004
- var _this = this;
11005
- return __generator(this, function (_a) {
11006
- if (this.line && this.line.isArticle) {
11007
- this.service.getWarehouses().then(function (warehouses) {
11008
- var warehouse = warehouses.find(function (w) { return w.warehouseNo === _this.line.warehouseNumber; });
11009
- _this.line.warehouseDescription = warehouse ? warehouse.description : "";
11010
- });
11011
- }
11012
- return [2 /*return*/];
11013
- });
11014
- });
11015
- };
11016
- TransactionOverviewLineComponent.prototype._loadLineDeliveryMethod = function () {
11017
- return __awaiter(this, void 0, void 0, function () {
11018
- var _this = this;
11019
- return __generator(this, function (_a) {
11020
- if (this.line && this.line.isArticle) {
11021
- this.service.getDeliveryMethods().then(function (methods) {
11022
- var method = methods.find(function (m) { return m.code === _this.line.deliveryMethodCode; });
11023
- _this.line.deliveryMethodDescription = method ? method.description : "";
11024
- });
11025
- }
11026
- return [2 /*return*/];
11027
- });
11028
- });
11029
- };
11030
11328
  TransactionOverviewLineComponent.prototype._loadLineVat = function () {
11031
11329
  return __awaiter(this, void 0, void 0, function () {
11032
11330
  var _this = this;
@@ -11046,7 +11344,7 @@
11046
11344
  TransactionOverviewLineComponent.decorators = [
11047
11345
  { type: i0.Component, args: [{
11048
11346
  selector: "co-transaction-overview-line",
11049
- template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-stock\">\n <div class=\"transaction-line-stock-wrapper\">\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <co-transaction-line-commission-button [line]=\"line\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [line]=\"line\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [line]=\"line\"></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button [line]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div *ngIf=\"!preview\" class=\"transaction-line-button\" (click)=\"openVatDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.vatDescription\"></span>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width\" (click)=\"openDiscountDialog()\">\n <span class=\"co-transaction-overflow-ellipsis transaction-line-discount\" [class.negative]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"readonly\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"readonly\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
11347
+ template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-stock\">\n <div class=\"transaction-line-stock-wrapper\">\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <co-transaction-line-commission-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\"></co-transaction-line-statusbar>\n </div>\n <div *ngIf=\"!preview\" class=\"transaction-line-button\" (click)=\"showDialogVat = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.vatDescription\"></span>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width transaction-line-totals-discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"readonly\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"readonly\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n <co-dialog-transaction-line-vat *ngIf=\"showDialogVat\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogVat = false\">\n </co-dialog-transaction-line-vat>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n ",
11050
11348
  encapsulation: i0.ViewEncapsulation.None
11051
11349
  },] }
11052
11350
  ];
@@ -11084,6 +11382,7 @@
11084
11382
  this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe(function (value) {
11085
11383
  _this.selected = value;
11086
11384
  }));
11385
+ this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
11087
11386
  };
11088
11387
  TransactionOrderDeliveryLineComponent.prototype.ngOnDestroy = function () {
11089
11388
  this._subscriptions.forEach(function (s) { return s.unsubscribe(); });
@@ -11095,7 +11394,7 @@
11095
11394
  TransactionOrderDeliveryLineComponent.decorators = [
11096
11395
  { type: i0.Component, args: [{
11097
11396
  selector: "co-transaction-order-delivery-line",
11098
- template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"true\" [checkboxValue]=\"selected\" [actionButtons]=\"false\">\n <div class=\"transaction-line-buttons-grid\">\n <div class=\"row-1\">\n <co-transaction-line-warehouse-button [line]=\"line\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [line]=\"line\"></co-transaction-line-delivery-button>\n </div>\n <div class=\"row-2\">\n <co-transaction-line-delivery-date-button [line]=\"line\"></co-transaction-line-delivery-date-button>\n <co-status-bar class=\"status-bar\"></co-status-bar>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"(line.price + line.discountAmount) | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.price | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal * line.amount | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [class.fully-delivered]=\"false\"\n [class.partially-delivered]=\"true\"\n [model]=\"(line.amount - line.quantityDelivered).toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\"\n [min]=\"!allowPartialDelivery ? line.amount : 0\"\n [max]=\"line.amount\"\n [readonly]=\"readonly || !allowPartialDelivery\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price discount\"\n [model]=\"'-' + (line.discountAmount | coCurrency)\"\n [readonly]=\"true\"\n ></co-editable-label>\n </div>\n </co-transaction-base-line>\n ",
11397
+ template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"true\" [checkboxValue]=\"selected\" [actionButtons]=\"false\">\n <div class=\"transaction-line-buttons-grid\">\n <div class=\"row-1\">\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n </div>\n <div class=\"row-2\">\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\"></co-transaction-line-delivery-date-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\"></co-transaction-line-statusbar>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"(line.price + line.discountAmount) | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.price | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal * line.amount | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [class.fully-delivered]=\"false\"\n [class.partially-delivered]=\"true\"\n [model]=\"(line.amount - line.quantityDelivered).toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\"\n [min]=\"!allowPartialDelivery ? line.amount : 0\"\n [max]=\"line.amount\"\n [readonly]=\"readonly || !allowPartialDelivery\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price discount\"\n [model]=\"'-' + (line.discountAmount | coCurrency)\"\n [readonly]=\"true\"\n ></co-editable-label>\n </div>\n </co-transaction-base-line>\n ",
11099
11398
  encapsulation: i0.ViewEncapsulation.None
11100
11399
  },] }
11101
11400
  ];
@@ -11275,7 +11574,7 @@
11275
11574
  TransactionReceiveGoodsLineComponent.decorators = [
11276
11575
  { type: i0.Component, args: [{
11277
11576
  selector: "co-transaction-receive-goods-line",
11278
- template: "\n <co-transaction-base-line [line]=\"viewModel\" [preview]=\"preview\" [actionButtons]=\"false\" (click)=\"handleLineClicked($event)\">\n <div class=\"line-content-wrapper\">\n <co-transaction-line-warehouse-button [readonly]=\"true\" [line]=\"viewModel\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button [readonly]=\"viewModel.quantityReceived === viewModel.amount\" [line]=\"viewModel\"></co-transaction-line-warehouse-location-button>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"viewModel.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [class.fully-delivered]=\"viewModel.quantityReceived === viewModel.amount\"\n [class.partially-delivered]=\"viewModel.quantityReceived !== viewModel.amount\"\n [model]=\"(viewModel.amount - viewModel.quantityDelivered).toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"viewModel.quantityToReceive\"\n [min]=\"!allowPartialDelivery ? viewModel.amount : 1\"\n [max]=\"viewModel.amount - viewModel.quantityReceived\"\n [readonly]=\"readonly || !allowPartialDelivery || viewModel.quantityReceived === viewModel.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-input-checkbox class=\"transaction-line-checkbox\"\n [(model)]=\"viewModel.selected\"\n [disabled]=\"viewModel.quantityReceived === viewModel.amount\"\n ></co-input-checkbox>\n <div class=\"print-button\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PrintSolid)\"></co-icon>\n <span class=\"price\" [textContent]=\"1\"></span>\n </div>\n </div>\n </co-transaction-base-line>\n ",
11577
+ template: "\n <co-transaction-base-line [line]=\"viewModel\" [preview]=\"preview\" [actionButtons]=\"false\" (click)=\"handleLineClicked($event)\">\n <div class=\"line-content-wrapper\">\n <co-transaction-line-warehouse-button [transactionLine]=\"viewModel\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button [readonly]=\"viewModel.quantityReceived === viewModel.amount\" [line]=\"viewModel\"></co-transaction-line-warehouse-location-button>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"viewModel.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [class.fully-delivered]=\"viewModel.quantityReceived === viewModel.amount\"\n [class.partially-delivered]=\"viewModel.quantityReceived !== viewModel.amount\"\n [model]=\"(viewModel.amount - viewModel.quantityDelivered).toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"viewModel.quantityToReceive\"\n [min]=\"!allowPartialDelivery ? viewModel.amount : 1\"\n [max]=\"viewModel.amount - viewModel.quantityReceived\"\n [readonly]=\"readonly || !allowPartialDelivery || viewModel.quantityReceived === viewModel.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-input-checkbox class=\"transaction-line-checkbox\"\n [(model)]=\"viewModel.selected\"\n [disabled]=\"viewModel.quantityReceived === viewModel.amount\"\n ></co-input-checkbox>\n <div class=\"print-button\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PrintSolid)\"></co-icon>\n <span class=\"price\" [textContent]=\"1\"></span>\n </div>\n </div>\n </co-transaction-base-line>\n ",
11279
11578
  encapsulation: i0.ViewEncapsulation.None
11280
11579
  },] }
11281
11580
  ];
@@ -11479,6 +11778,9 @@
11479
11778
  TransactionLineComponent.prototype.showClass = function () {
11480
11779
  return true;
11481
11780
  };
11781
+ TransactionLineComponent.prototype.ngOnChanges = function (changes) {
11782
+ this._prepareProps();
11783
+ };
11482
11784
  TransactionLineComponent.prototype._prepareContent = function () {
11483
11785
  var _this = this;
11484
11786
  if (!this._transactionType || !this._activeCategory || !this._transactionLineContainer) {
@@ -11495,12 +11797,7 @@
11495
11797
  .resolveComponentFactory(componentClass)
11496
11798
  .create(this.injector);
11497
11799
  this.appRef.attachView(this._componentRef.hostView);
11498
- this._componentRef.instance.preview = this.preview;
11499
- this._componentRef.instance.selected = this.selected;
11500
- this._componentRef.instance.line = this.line;
11501
- this._componentRef.instance.transactionId = this.transactionId;
11502
- this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
11503
- this._componentRef.instance.lineVisible = this.lineVisible;
11800
+ this._prepareProps();
11504
11801
  var domElem = this._componentRef.hostView
11505
11802
  .rootNodes[0];
11506
11803
  this._transactionLineContainer.nativeElement.appendChild(domElem);
@@ -11508,12 +11805,22 @@
11508
11805
  _this.appRef.detachView(_this._componentRef.hostView);
11509
11806
  });
11510
11807
  };
11808
+ TransactionLineComponent.prototype._prepareProps = function () {
11809
+ if (this._componentRef) {
11810
+ this._componentRef.instance.preview = this.preview;
11811
+ this._componentRef.instance.selected = this.selected;
11812
+ this._componentRef.instance.line = this.line;
11813
+ this._componentRef.instance.transactionId = this.transactionId;
11814
+ this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
11815
+ this._componentRef.instance.lineVisible = this.lineVisible;
11816
+ }
11817
+ };
11511
11818
  return TransactionLineComponent;
11512
11819
  }());
11513
11820
  TransactionLineComponent.decorators = [
11514
11821
  { type: i0.Component, args: [{
11515
11822
  selector: "co-transaction-line",
11516
- template: "\n <div #transactionLine observeVisibility (visible)=\"this.lineVisible.next()\"></div>\n ",
11823
+ template: "\n <div #transactionLine observeVisibility (visible)=\"lineVisible.next()\"></div>\n ",
11517
11824
  encapsulation: i0.ViewEncapsulation.None
11518
11825
  },] }
11519
11826
  ];
@@ -11570,6 +11877,8 @@
11570
11877
  this.saveTransactionLine = new i0.EventEmitter();
11571
11878
  this.showTransactionArticleText = false;
11572
11879
  this.userActionRequired = false;
11880
+ this.hasComponent = true;
11881
+ this._activeCategory = TransactionTypeCategory.SalesOrderOverview;
11573
11882
  }
11574
11883
  Object.defineProperty(TransactionLinesComponent.prototype, "activeCategory", {
11575
11884
  get: function () {
@@ -11634,9 +11943,6 @@
11634
11943
  this.saveTransactionLine.next(transactionLine);
11635
11944
  this._hideArticleTextDialog();
11636
11945
  };
11637
- TransactionLinesComponent.prototype.transactionLineComponent = function () {
11638
- return !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
11639
- };
11640
11946
  TransactionLinesComponent.prototype._showArticleTextDialog = function () {
11641
11947
  this.showTransactionArticleText = true;
11642
11948
  };
@@ -11649,6 +11955,7 @@
11649
11955
  return __generator(this, function (_a) {
11650
11956
  switch (_a.label) {
11651
11957
  case 0:
11958
+ this.hasComponent = !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
11652
11959
  if (!(this._activeCategory === TransactionTypeCategory.PurchaseOrderReceivedGoods)) return [3 /*break*/, 2];
11653
11960
  if (!this.transactionLines.find(function (l) { return l.isLocationRequired; })) return [3 /*break*/, 2];
11654
11961
  return [4 /*yield*/, this._dialogService.showWarehouseLocation(this.transactionLines[0].warehouseNumber, false, false, true)];
@@ -11668,7 +11975,7 @@
11668
11975
  TransactionLinesComponent.decorators = [
11669
11976
  { type: i0.Component, args: [{
11670
11977
  selector: "co-transaction-lines",
11671
- template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon *ngIf=\"!preview\" class=\"transaction-line-drag-handle\"\n [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line *ngIf=\"transactionLineComponent()\"\n [transactionType]=\"service.currentTransaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionId]=\"transactionId\"\n [preview]=\"preview\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n <!--\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n -->\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
11978
+ template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon *ngIf=\"!preview\" class=\"transaction-line-drag-handle\"\n [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line *ngIf=\"hasComponent\"\n [transactionType]=\"service.currentTransaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionId]=\"transactionId\"\n [preview]=\"preview\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n <!--\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n -->\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
11672
11979
  encapsulation: i0.ViewEncapsulation.None
11673
11980
  },] }
11674
11981
  ];
@@ -11733,7 +12040,7 @@
11733
12040
  ShoppingCartPreviewComponent.decorators = [
11734
12041
  { type: i0.Component, args: [{
11735
12042
  selector: "co-shopping-cart-preview",
11736
- template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals [totals]=\"service.currentTransaction.transactionTotal\"></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
12043
+ template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionTotal]=\"service.currentTransaction.transactionTotal\"\n ></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
11737
12044
  encapsulation: i0.ViewEncapsulation.None
11738
12045
  },] }
11739
12046
  ];
@@ -11860,9 +12167,10 @@
11860
12167
  ]; };
11861
12168
 
11862
12169
  var AvatarComponent = /** @class */ (function () {
11863
- function AvatarComponent(_transactionService, _sharedService) {
12170
+ function AvatarComponent(_transactionService, _sharedService, _colorSequenceService) {
11864
12171
  this._transactionService = _transactionService;
11865
12172
  this._sharedService = _sharedService;
12173
+ this._colorSequenceService = _colorSequenceService;
11866
12174
  }
11867
12175
  Object.defineProperty(AvatarComponent.prototype, "image", {
11868
12176
  get: function () {
@@ -11888,6 +12196,17 @@
11888
12196
  AvatarComponent.prototype.showClass = function () {
11889
12197
  return true;
11890
12198
  };
12199
+ Object.defineProperty(AvatarComponent.prototype, "initials", {
12200
+ get: function () {
12201
+ return this._initials;
12202
+ },
12203
+ set: function (value) {
12204
+ this._initials = value;
12205
+ this._setBackgroundColor();
12206
+ },
12207
+ enumerable: false,
12208
+ configurable: true
12209
+ });
11891
12210
  AvatarComponent.prototype.ngAfterViewInit = function () {
11892
12211
  this._getRelation();
11893
12212
  };
@@ -11926,6 +12245,11 @@
11926
12245
  });
11927
12246
  }
11928
12247
  };
12248
+ AvatarComponent.prototype._setBackgroundColor = function () {
12249
+ if (this.relation) {
12250
+ this.backgroundColor = this._colorSequenceService.getRandomColor(this.relation.relationId);
12251
+ }
12252
+ };
11929
12253
  return AvatarComponent;
11930
12254
  }());
11931
12255
  AvatarComponent.decorators = [
@@ -11937,13 +12261,15 @@
11937
12261
  ];
11938
12262
  AvatarComponent.ctorParameters = function () { return [
11939
12263
  { type: TransactionService },
11940
- { type: SharedService }
12264
+ { type: SharedService },
12265
+ { type: corecomponents_v12.ColorSequenceService }
11941
12266
  ]; };
11942
12267
  AvatarComponent.propDecorators = {
11943
12268
  image: [{ type: i0.Input }],
11944
12269
  relationId: [{ type: i0.Input }],
11945
12270
  relation: [{ type: i0.Input }],
11946
- showClass: [{ type: i0.HostBinding, args: ["class.co-avatar",] }]
12271
+ showClass: [{ type: i0.HostBinding, args: ["class.co-avatar",] }],
12272
+ backgroundColor: [{ type: i0.HostBinding, args: ["style.background-color",] }]
11947
12273
  };
11948
12274
 
11949
12275
  var AvatarModule = /** @class */ (function () {
@@ -12436,7 +12762,7 @@
12436
12762
  RelationTypeComponent.decorators = [
12437
12763
  { type: i0.Component, args: [{
12438
12764
  selector: "co-relation-type",
12439
- template: "\n <div class=\"default-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"relation.type === relType.Private\"\n (modelChange)=\"handleChangeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [(model)]=\"relation.type\"\n [checked]=\"relation.type === relType.Company\"\n (modelChange)=\"handleChangeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n ",
12765
+ template: "\n <div class=\"default-data-row\">\n <co-input-radio-button class=\"default-width\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [model]=\"relation.type === relType.Private\"\n (modelChange)=\"handleChangeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [label]=\"'COMPANY' | localize\"\n [model]=\"relation.type === relType.Company\"\n (modelChange)=\"handleChangeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n ",
12440
12766
  encapsulation: i0.ViewEncapsulation.None
12441
12767
  },] }
12442
12768
  ];
@@ -12584,7 +12910,7 @@
12584
12910
  RelationGeneralComponent.decorators = [
12585
12911
  { type: i0.Component, args: [{
12586
12912
  selector: "co-relation-general",
12587
- template: "\n <div *ngIf=\"relation.type === relType.Private\" class=\"collapseable\" @showHidePrivateRelationFields>\n <div class=\"default-data-row\">\n <co-input-text\n class=\"checkout-first-name\"\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize\"\n (modelChange)=\"firstNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-prefix-name default-width\"\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-last-name\"\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"></co-input-text>\n </div>\n <div class=\"default-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n <div class=\"default-data-row\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\"></co-input-date>\n </div>\n </div>\n <div *ngIf=\"relation?.type === relType.Company\" class=\"default-data-row collapseable\" @showHideCompanyRelationFields>\n <co-input-text [(model)]=\"relation.familyName\" [placeholder]=\"'COMPANY_NAME' | localize\" [required]=\"true\"></co-input-text>\n </div>\n\n <div class=\"suggestions-sidebar\" *ngIf=\"showSuggestionsSidebar\" @showHideSidebar>\n <div class=\"relation-sidebar-header\">\n <label class=\"checkout-label-h3\" [textContent]=\"'SUGGESTIONS' | localize\"></label>\n </div>\n <co-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionSelected)=\"onRelationSuggestionClick($event)\"\n ></co-relation-suggestions-list>\n </div>\n ",
12913
+ template: "\n <div *ngIf=\"relation.type === relType.Private\" class=\"collapseable\" @showHidePrivateRelationFields>\n <div class=\"default-data-row\">\n <co-input-text\n class=\"checkout-first-name\"\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize\"\n (modelChange)=\"firstNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-prefix-name default-width\"\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-last-name\"\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"></co-input-text>\n </div>\n <div class=\"default-data-row\">\n <co-input-radio-button class=\"default-width\"\n [label]=\"'MALE' | localize\"\n [model]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [label]=\"'FEMALE' | localize \"\n [model]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [label]=\"'UNKNOWN' | localize\"\n [model]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n <div class=\"default-data-row\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\"></co-input-date>\n </div>\n </div>\n <div *ngIf=\"relation?.type === relType.Company\" class=\"default-data-row collapseable\" @showHideCompanyRelationFields>\n <co-input-text [(model)]=\"relation.familyName\" [placeholder]=\"'COMPANY_NAME' | localize\" [required]=\"true\"></co-input-text>\n </div>\n\n <div class=\"suggestions-sidebar\" *ngIf=\"showSuggestionsSidebar\" @showHideSidebar>\n <div class=\"relation-sidebar-header\">\n <label class=\"checkout-label-h3\" [textContent]=\"'SUGGESTIONS' | localize\"></label>\n </div>\n <co-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionSelected)=\"onRelationSuggestionClick($event)\"\n ></co-relation-suggestions-list>\n </div>\n ",
12588
12914
  animations: [
12589
12915
  animations.trigger("showHidePrivateRelationFields", [
12590
12916
  animations.state("void", animations.style({ height: 0 })),
@@ -12646,6 +12972,8 @@
12646
12972
  return true;
12647
12973
  };
12648
12974
  RelationSuggestionsListItemComponent.prototype.handleClick = function (event) {
12975
+ event.preventDefault();
12976
+ event.stopPropagation();
12649
12977
  this.selectionSelected.next(this.suggestion);
12650
12978
  };
12651
12979
  return RelationSuggestionsListItemComponent;
@@ -13059,7 +13387,9 @@
13059
13387
  TransactionHeaderDeliveryComponent.prototype.showClass = function () {
13060
13388
  return true;
13061
13389
  };
13062
- TransactionHeaderDeliveryComponent.prototype.showTheDeliveryMethodDialog = function () {
13390
+ TransactionHeaderDeliveryComponent.prototype.showTheDeliveryMethodDialog = function (event) {
13391
+ event.preventDefault();
13392
+ event.stopPropagation();
13063
13393
  this.showDeliveryMethodDialog = true;
13064
13394
  };
13065
13395
  TransactionHeaderDeliveryComponent.prototype.transactionSet = function () {
@@ -13077,7 +13407,7 @@
13077
13407
  TransactionHeaderDeliveryComponent.decorators = [
13078
13408
  { type: i0.Component, args: [{
13079
13409
  selector: "co-transaction-header-delivery",
13080
- template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\" (click)=\"showTheDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <co-transaction-header-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-delivery-date>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeSolid)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeOpenSolid)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <co-transaction-header-preferred-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-preferred-delivery-date>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-delivery-partial-delivery-label co-transaction-label\" [textContent]=\"'PART_DELIVERY' | localize\"></div>\n <co-input-checkbox class=\"header-delivery-partial-delivery\" [model]=\"transactionInfo.allowPartialDelivery\"></co-input-checkbox>\n </ng-template>\n <co-dialog *ngIf=\"showDialog\" [headerTemplate]=\"headerTemplate\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"></div>\n <co-transaction-header-block class=\"in-dialog\"\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"co-transaction-header-delivery-wrapper\">\n <co-transaction-header-delivery-options\n [transactionInfo]=\"transactionInfo\"\n [deliveryMethod]=\"deliveryMethod\"\n ></co-transaction-header-delivery-options>\n <co-transaction-header-remarks [transactionInfo]=\"transactionInfo\"></co-transaction-header-remarks>\n <co-transaction-header-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-reference>\n <co-transaction-header-relation-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-relation-reference>\n </div>\n </co-dialog>\n <co-dialog-transaction-header-delivery-method *ngIf=\"showDeliveryMethodDialog\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\" (close)=\"showDeliveryMethodDialog = false\">\n </co-dialog-transaction-header-delivery-method>\n ",
13410
+ template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\" (click)=\"showTheDeliveryMethodDialog($event)\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <co-transaction-header-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-delivery-date>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeSolid)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.LockKeyholeOpenSolid)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <co-transaction-header-preferred-delivery-date class=\"header-delivery-deliverydate\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-preferred-delivery-date>\n </ng-template>\n <ng-template #thirdBlock>\n <co-transaction-header-partial-delivery class=\"co-transaction-label\" [transactionInfo]=\"transactionInfo\"></co-transaction-header-partial-delivery>\n </ng-template>\n <co-dialog *ngIf=\"showDialog\" [headerTemplate]=\"headerTemplate\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"></div>\n <co-transaction-header-block class=\"in-dialog\"\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"co-transaction-header-delivery-wrapper\">\n <co-transaction-header-delivery-options\n [transactionInfo]=\"transactionInfo\"\n [deliveryMethod]=\"deliveryMethod\"\n ></co-transaction-header-delivery-options>\n <co-transaction-header-remarks [transactionInfo]=\"transactionInfo\"></co-transaction-header-remarks>\n <co-transaction-header-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-reference>\n <co-transaction-header-relation-reference [transactionInfo]=\"transactionInfo\"></co-transaction-header-relation-reference>\n </div>\n </co-dialog>\n <co-dialog-transaction-header-delivery-method *ngIf=\"showDeliveryMethodDialog\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\" (close)=\"showDeliveryMethodDialog = false\">\n </co-dialog-transaction-header-delivery-method>\n ",
13081
13411
  encapsulation: i0.ViewEncapsulation.None
13082
13412
  },] }
13083
13413
  ];
@@ -13103,7 +13433,7 @@
13103
13433
  TransactionHeaderBlockComponent.decorators = [
13104
13434
  { type: i0.Component, args: [{
13105
13435
  selector: "co-transaction-header-block",
13106
- template: "\n <div #wrapper class=\"transaction-header-block-wrapper\">\n <div class=\"transaction-header-block-header\">\n <ng-container [ngTemplateOutlet]=\"headerBlockTemplate\"></ng-container>\n </div>\n <div class=\"transaction-header-block-content\">\n <div class=\"transaction-header-block-content-first\" *ngIf=\"firstBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"firstBlockTemplate\"></ng-container>\n </div>\n <div class=\"transaction-header-block-divider\" *ngIf=\"secondBlockTemplate || thirdBlockTemplate\"></div>\n <div class=\"transaction-header-block-content-second\" *ngIf=\"secondBlockTemplate || thirdBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"secondBlockTemplate\"></ng-container>\n </div>\n <div class=\"transaction-header-block-divider\" *ngIf=\"thirdBlockTemplate\"></div>\n <div class=\"transaction-header-block-content-third\" *ngIf=\"thirdBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"thirdBlockTemplate\"></ng-container>\n </div>\n </div>\n <div class=\"transaction-header-extended-dots\" *ngIf=\"hasDetails\" [textContent]=\"!hasDetails ? '' : '...'\" (click)=\"headerClick.emit($event)\"></div>\n </div>\n ",
13436
+ template: "\n <div #wrapper class=\"transaction-header-block-wrapper\" (click)=\"headerClick.emit($event)\">\n <div class=\"transaction-header-block-header\">\n <ng-container [ngTemplateOutlet]=\"headerBlockTemplate\"></ng-container>\n <div class=\"transaction-header-extended-dots\" *ngIf=\"hasDetails\" [textContent]=\"!hasDetails ? '' : '...'\" (click)=\"headerClick.emit($event)\"></div>\n </div>\n <div class=\"transaction-header-block-content\">\n <div class=\"transaction-header-block-content-first\" *ngIf=\"firstBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"firstBlockTemplate\"></ng-container>\n </div>\n <div class=\"transaction-header-block-divider\" *ngIf=\"secondBlockTemplate || thirdBlockTemplate\"></div>\n <div class=\"transaction-header-block-content-second\" *ngIf=\"secondBlockTemplate || thirdBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"secondBlockTemplate\"></ng-container>\n </div>\n <div class=\"transaction-header-block-divider\" *ngIf=\"thirdBlockTemplate\"></div>\n <div class=\"transaction-header-block-content-third\" *ngIf=\"thirdBlockTemplate\">\n <ng-container [ngTemplateOutlet]=\"thirdBlockTemplate\"></ng-container>\n </div>\n </div>\n </div>\n ",
13107
13437
  encapsulation: i0.ViewEncapsulation.None
13108
13438
  },] }
13109
13439
  ];
@@ -13136,46 +13466,6 @@
13136
13466
  },] }
13137
13467
  ];
13138
13468
 
13139
- var TransactionHeaderBaseComponent = /** @class */ (function (_super) {
13140
- __extends(TransactionHeaderBaseComponent, _super);
13141
- function TransactionHeaderBaseComponent() {
13142
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
13143
- _this.readonly = false;
13144
- _this._transactionInfo = new transactionInfo_bo.TransactionInfo();
13145
- return _this;
13146
- }
13147
- Object.defineProperty(TransactionHeaderBaseComponent.prototype, "transactionInfo", {
13148
- get: function () {
13149
- return this._transactionInfo;
13150
- },
13151
- set: function (value) {
13152
- if (value) {
13153
- this._transactionInfo = value;
13154
- this.transactionInfoSet();
13155
- }
13156
- },
13157
- enumerable: false,
13158
- configurable: true
13159
- });
13160
- Object.defineProperty(TransactionHeaderBaseComponent.prototype, "model", {
13161
- get: function () {
13162
- return this._transactionInfo;
13163
- },
13164
- enumerable: false,
13165
- configurable: true
13166
- });
13167
- // overridden by descendents
13168
- TransactionHeaderBaseComponent.prototype.transactionInfoSet = function () {
13169
- };
13170
- return TransactionHeaderBaseComponent;
13171
- }(TransactionFilterPopupBaseComponent));
13172
- TransactionHeaderBaseComponent.decorators = [
13173
- { type: i0.Directive }
13174
- ];
13175
- TransactionHeaderBaseComponent.propDecorators = {
13176
- transactionInfo: [{ type: i0.Input }]
13177
- };
13178
-
13179
13469
  var TransactionHeaderDeliveryDateComponent = /** @class */ (function (_super) {
13180
13470
  __extends(TransactionHeaderDeliveryDateComponent, _super);
13181
13471
  function TransactionHeaderDeliveryDateComponent(_transactionService) {
@@ -13214,6 +13504,8 @@
13214
13504
  configurable: true
13215
13505
  });
13216
13506
  TransactionHeaderDeliveryDateComponent.prototype.handleClick = function (event) {
13507
+ event.preventDefault();
13508
+ event.stopPropagation();
13217
13509
  if (!this.readonly) {
13218
13510
  this.editMode = true;
13219
13511
  }
@@ -13323,6 +13615,8 @@
13323
13615
  configurable: true
13324
13616
  });
13325
13617
  TransactionHeaderRemarksComponent.prototype.handleClick = function (event) {
13618
+ event.preventDefault();
13619
+ event.stopPropagation();
13326
13620
  if (!this.readonly) {
13327
13621
  this.editMode = true;
13328
13622
  }
@@ -13429,6 +13723,8 @@
13429
13723
  configurable: true
13430
13724
  });
13431
13725
  TransactionHeaderReferenceComponent.prototype.handleClick = function (event) {
13726
+ event.preventDefault();
13727
+ event.stopPropagation();
13432
13728
  if (!this.readonly) {
13433
13729
  this.editMode = true;
13434
13730
  }
@@ -13535,6 +13831,8 @@
13535
13831
  configurable: true
13536
13832
  });
13537
13833
  TransactionHeaderRelationReferenceComponent.prototype.handleClick = function (event) {
13834
+ event.preventDefault();
13835
+ event.stopPropagation();
13538
13836
  if (!this.readonly) {
13539
13837
  this.editMode = true;
13540
13838
  }
@@ -13699,6 +13997,9 @@
13699
13997
  this.itemHeight = this.scrollingItem.nativeElement.offsetHeight;
13700
13998
  }
13701
13999
  };
14000
+ TransactionLineCheckboxListComponent.prototype.handleCheckboxChecked = function (checked, row) {
14001
+ this.checked.emit(row);
14002
+ };
13702
14003
  TransactionLineCheckboxListComponent.prototype.handleChecked = function (event, row) {
13703
14004
  event.preventDefault();
13704
14005
  event.stopPropagation();
@@ -13709,7 +14010,7 @@
13709
14010
  TransactionLineCheckboxListComponent.decorators = [
13710
14011
  { type: i0.Component, args: [{
13711
14012
  selector: "co-transaction-line-checkbox-list",
13712
- template: "\n <cdk-virtual-scroll-viewport [itemSize]=\"itemHeight\" class=\"virtual-scroll-container co-transaction-small-toolbar\">\n <div *cdkVirtualFor=\"let row of collection\" #scrollingItem class=\"virtual-scroll-item\">\n <div class=\"checkbox-wrapper\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [readonly]=\"readonly\"\n (click)=\"handleChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n <div class=\"label-wrapper\">\n <span *ngFor=\"let label of row.propsForLabel\" [innerHTML]=\"label\" class=\"label\"></span>\n </div>\n </div>\n </cdk-virtual-scroll-viewport>\n ",
14013
+ template: "\n <cdk-virtual-scroll-viewport [itemSize]=\"itemHeight\" class=\"virtual-scroll-container co-transaction-small-toolbar\">\n <div *cdkVirtualFor=\"let row of collection\" #scrollingItem class=\"virtual-scroll-item\" (click)=\"handleChecked($event, row)\">\n <div class=\"checkbox-wrapper\">\n <co-input-checkbox\n [model]=\"row.checked\"\n [readonly]=\"readonly\"\n (modelChange)=\"handleCheckboxChecked($event, row)\"\n ></co-input-checkbox>\n </div>\n <div class=\"label-wrapper\">\n <span *ngFor=\"let label of row.propsForLabel\" [innerHTML]=\"label\" class=\"label\"></span>\n </div>\n </div>\n </cdk-virtual-scroll-viewport>\n ",
13713
14014
  encapsulation: i0.ViewEncapsulation.None
13714
14015
  },] }
13715
14016
  ];
@@ -13805,6 +14106,8 @@
13805
14106
  configurable: true
13806
14107
  });
13807
14108
  TransactionHeaderPreferredDeliveryDateComponent.prototype.handleClick = function (event) {
14109
+ event.preventDefault();
14110
+ event.stopPropagation();
13808
14111
  if (!this.readonly) {
13809
14112
  this.editMode = true;
13810
14113
  }
@@ -13876,39 +14179,6 @@
13876
14179
  },] }
13877
14180
  ];
13878
14181
 
13879
- var DialogTransactionHeaderBaseComponent = /** @class */ (function (_super) {
13880
- __extends(DialogTransactionHeaderBaseComponent, _super);
13881
- function DialogTransactionHeaderBaseComponent() {
13882
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
13883
- _this.buttonType = AppPopupButtonType;
13884
- _this.close = new i0.EventEmitter();
13885
- return _this;
13886
- }
13887
- DialogTransactionHeaderBaseComponent.prototype.onClose = function (eventType, output) {
13888
- return;
13889
- };
13890
- DialogTransactionHeaderBaseComponent.prototype.handleValueChange = function (value) {
13891
- this.value = value;
13892
- };
13893
- DialogTransactionHeaderBaseComponent.prototype.handleOkClick = function () {
13894
- this.onClose(AppPopupButtonType.Ok, this.value);
13895
- };
13896
- DialogTransactionHeaderBaseComponent.prototype.handleSearch = function (text) {
13897
- this.searchText = text;
13898
- };
13899
- DialogTransactionHeaderBaseComponent.prototype.handleClose = function (type) {
13900
- this.close.emit();
13901
- this.onClose(type);
13902
- };
13903
- return DialogTransactionHeaderBaseComponent;
13904
- }(TransactionHeaderBaseComponent));
13905
- DialogTransactionHeaderBaseComponent.decorators = [
13906
- { type: i0.Directive }
13907
- ];
13908
- DialogTransactionHeaderBaseComponent.propDecorators = {
13909
- close: [{ type: i0.Output }]
13910
- };
13911
-
13912
14182
  var DialogTransactionHeaderDeliveryMethodComponent = /** @class */ (function (_super) {
13913
14183
  __extends(DialogTransactionHeaderDeliveryMethodComponent, _super);
13914
14184
  function DialogTransactionHeaderDeliveryMethodComponent() {
@@ -14107,45 +14377,12 @@
14107
14377
  },] }
14108
14378
  ];
14109
14379
 
14110
- var TransactionHeaderDeliveryModule = /** @class */ (function () {
14111
- function TransactionHeaderDeliveryModule() {
14112
- }
14113
- return TransactionHeaderDeliveryModule;
14114
- }());
14115
- TransactionHeaderDeliveryModule.decorators = [
14116
- { type: i0.NgModule, args: [{
14117
- imports: [
14118
- common.CommonModule,
14119
- CoreModule,
14120
- TransactionHeaderBlockModule,
14121
- corecomponents_v12.InputCheckboxModule,
14122
- corecomponents_v12.IconModule,
14123
- PipeModule,
14124
- corecomponents_v12.InputDatePickerModule,
14125
- TransactionHeaderDeliveryDateModule,
14126
- corecomponents_v12.CoDialogModule,
14127
- TransactionHeaderDeliveryOptionsModule,
14128
- TransactionHeaderRemarksModule,
14129
- TransactionHeaderReferenceModule,
14130
- TransactionHeaderRelationReferenceModule,
14131
- TransactionHeaderDeliveryMethodModule,
14132
- TransactionHeaderPreferredDeliveryDateModule,
14133
- DialogTransactionHeaderDeliveryMethodModule
14134
- ],
14135
- declarations: [
14136
- TransactionHeaderDeliveryComponent
14137
- ],
14138
- exports: [
14139
- TransactionHeaderDeliveryComponent
14140
- ]
14141
- },] }
14142
- ];
14143
-
14144
14380
  var TransactionHeaderPartialDeliveryComponent = /** @class */ (function (_super) {
14145
14381
  __extends(TransactionHeaderPartialDeliveryComponent, _super);
14146
14382
  function TransactionHeaderPartialDeliveryComponent(_transactionService) {
14147
14383
  var _this = _super.call(this) || this;
14148
14384
  _this._transactionService = _transactionService;
14385
+ _this.showClass = true;
14149
14386
  return _this;
14150
14387
  }
14151
14388
  TransactionHeaderPartialDeliveryComponent.prototype.commitPartialDelivery = function (allow) {
@@ -14177,13 +14414,16 @@
14177
14414
  TransactionHeaderPartialDeliveryComponent.decorators = [
14178
14415
  { type: i0.Component, args: [{
14179
14416
  selector: "co-transaction-header-partial-delivery",
14180
- template: "\n <co-input-checkbox\n [readonly]=\"readonly\"\n [label]=\"'PART_DELIVERIES' | localize\"\n [model]=\"transactionInfo.allowPartialDelivery\"\n (modelChange)=\"commitPartialDelivery($event)\">\n </co-input-checkbox>\n ",
14417
+ template: "\n <co-input-checkbox\n [readonly]=\"readonly\"\n [label]=\"'PART_DELIVERY' | localize\"\n [model]=\"transactionInfo.allowPartialDelivery\"\n (modelChange)=\"commitPartialDelivery($event)\">\n </co-input-checkbox>\n ",
14181
14418
  encapsulation: i0.ViewEncapsulation.None
14182
14419
  },] }
14183
14420
  ];
14184
14421
  TransactionHeaderPartialDeliveryComponent.ctorParameters = function () { return [
14185
14422
  { type: TransactionService }
14186
- ]; };
14423
+ ]; };
14424
+ TransactionHeaderPartialDeliveryComponent.propDecorators = {
14425
+ showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-header-partial-delivery",] }]
14426
+ };
14187
14427
 
14188
14428
  var TransactionHeaderPartialDeliveryModule = /** @class */ (function () {
14189
14429
  function TransactionHeaderPartialDeliveryModule() {
@@ -14206,6 +14446,41 @@
14206
14446
  },] }
14207
14447
  ];
14208
14448
 
14449
+ var TransactionHeaderDeliveryModule = /** @class */ (function () {
14450
+ function TransactionHeaderDeliveryModule() {
14451
+ }
14452
+ return TransactionHeaderDeliveryModule;
14453
+ }());
14454
+ TransactionHeaderDeliveryModule.decorators = [
14455
+ { type: i0.NgModule, args: [{
14456
+ imports: [
14457
+ common.CommonModule,
14458
+ CoreModule,
14459
+ TransactionHeaderBlockModule,
14460
+ corecomponents_v12.InputCheckboxModule,
14461
+ corecomponents_v12.IconModule,
14462
+ PipeModule,
14463
+ corecomponents_v12.InputDatePickerModule,
14464
+ TransactionHeaderDeliveryDateModule,
14465
+ corecomponents_v12.CoDialogModule,
14466
+ TransactionHeaderDeliveryOptionsModule,
14467
+ TransactionHeaderRemarksModule,
14468
+ TransactionHeaderReferenceModule,
14469
+ TransactionHeaderRelationReferenceModule,
14470
+ TransactionHeaderDeliveryMethodModule,
14471
+ TransactionHeaderPreferredDeliveryDateModule,
14472
+ DialogTransactionHeaderDeliveryMethodModule,
14473
+ TransactionHeaderPartialDeliveryModule
14474
+ ],
14475
+ declarations: [
14476
+ TransactionHeaderDeliveryComponent
14477
+ ],
14478
+ exports: [
14479
+ TransactionHeaderDeliveryComponent
14480
+ ]
14481
+ },] }
14482
+ ];
14483
+
14209
14484
  var TransactionHeaderDownpaymentPercentageComponent = /** @class */ (function (_super) {
14210
14485
  __extends(TransactionHeaderDownpaymentPercentageComponent, _super);
14211
14486
  function TransactionHeaderDownpaymentPercentageComponent(_transactionService) {
@@ -14244,6 +14519,8 @@
14244
14519
  configurable: true
14245
14520
  });
14246
14521
  TransactionHeaderDownpaymentPercentageComponent.prototype.handleClick = function (event) {
14522
+ event.preventDefault();
14523
+ event.stopPropagation();
14247
14524
  if (!this.readonly) {
14248
14525
  this.editMode = true;
14249
14526
  }
@@ -14350,6 +14627,8 @@
14350
14627
  configurable: true
14351
14628
  });
14352
14629
  TransactionHeaderDownpaymentAmountComponent.prototype.handleClick = function (event) {
14630
+ event.preventDefault();
14631
+ event.stopPropagation();
14353
14632
  if (!this.readonly) {
14354
14633
  this.editMode = true;
14355
14634
  }
@@ -14423,6 +14702,7 @@
14423
14702
  function TransactionHeaderDefinitiveComponent(_transactionService) {
14424
14703
  var _this = _super.call(this) || this;
14425
14704
  _this._transactionService = _transactionService;
14705
+ _this.showClass = true;
14426
14706
  return _this;
14427
14707
  }
14428
14708
  TransactionHeaderDefinitiveComponent.prototype.commitTransactionDefinitive = function (definitive) {
@@ -14460,7 +14740,10 @@
14460
14740
  ];
14461
14741
  TransactionHeaderDefinitiveComponent.ctorParameters = function () { return [
14462
14742
  { type: TransactionService }
14463
- ]; };
14743
+ ]; };
14744
+ TransactionHeaderDefinitiveComponent.propDecorators = {
14745
+ showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-header-definitive",] }]
14746
+ };
14464
14747
 
14465
14748
  var TransactionHeaderDefinitiveModule = /** @class */ (function () {
14466
14749
  function TransactionHeaderDefinitiveModule() {
@@ -14935,7 +15218,7 @@
14935
15218
  this.showQuickAccess = true;
14936
15219
  this.showButtonBar = true;
14937
15220
  this.activeViewMode = ContentViewMode.List;
14938
- this.showDiscountsSidebar = false;
15221
+ this.activeCategory = TransactionTypeCategory.SalesOrderOverview;
14939
15222
  this._subs = [];
14940
15223
  this._transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
14941
15224
  this._subs.push(this._service.transactionUpdated.subscribe(function (transaction) {
@@ -14979,13 +15262,6 @@
14979
15262
  TransactionComponent.prototype.ngOnDestroy = function () {
14980
15263
  this._subs.forEach(function (s) { return s.unsubscribe(); });
14981
15264
  };
14982
- TransactionComponent.prototype.addDiscount = function () {
14983
- this.showDiscountsSidebar = true;
14984
- // TODO
14985
- // this.transactionDiscountPercentage = this.service.currentTransaction.transactionDiscountPercentage;
14986
- // this.transactionDiscountAmount = this.service.currentTransaction.transactionDiscountAmount;
14987
- // this.transactionTotal = undefined;
14988
- };
14989
15265
  TransactionComponent.prototype.saveTransactionLine = function (transactionAddTextLineRequest) {
14990
15266
  if (transactionAddTextLineRequest.transactionUuid) { //update
14991
15267
  }
@@ -15009,7 +15285,7 @@
15009
15285
  TransactionComponent.decorators = [
15010
15286
  { type: i0.Component, args: [{
15011
15287
  selector: "co-transaction",
15012
- template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n ",
15288
+ template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\"\n ></co-transaction-totals>\n </div>\n ",
15013
15289
  encapsulation: i0.ViewEncapsulation.None
15014
15290
  },] }
15015
15291
  ];
@@ -15257,17 +15533,24 @@
15257
15533
  var TransactionHeaderOrderComponent = /** @class */ (function (_super) {
15258
15534
  __extends(TransactionHeaderOrderComponent, _super);
15259
15535
  function TransactionHeaderOrderComponent() {
15260
- return _super !== null && _super.apply(this, arguments) || this;
15536
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
15537
+ _this.showDiscountDialog = false;
15538
+ return _this;
15261
15539
  }
15262
15540
  TransactionHeaderOrderComponent.prototype.showClass = function () {
15263
15541
  return true;
15264
15542
  };
15543
+ TransactionHeaderOrderComponent.prototype.handleShowDiscountDialog = function (event) {
15544
+ event.preventDefault();
15545
+ event.stopPropagation();
15546
+ this.showDiscountDialog = true;
15547
+ };
15265
15548
  return TransactionHeaderOrderComponent;
15266
15549
  }(TransactionBaseComponent));
15267
15550
  TransactionHeaderOrderComponent.decorators = [
15268
15551
  { type: i0.Component, args: [{
15269
15552
  selector: "co-transaction-header-order",
15270
- template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </ng-template>\n <ng-template #firstBlock>\n <span class=\"header-order-total-label co-transaction-label\" [textContent]=\"'ORDER_TOTAL' | localize\"></span>\n <div class=\"header-order-total\" [textContent]=\"transactionTotal.netAmount | priceDisplay\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <span class=\"header-order-line-amount-label co-transaction-label\" [textContent]=\"'ORDER_LINES' | localize\"></span>\n <div class=\"header-order-line-amount\" [textContent]=\"transactionLines.length\"></div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-order-definitive-label co-transaction-label\" [textContent]=\"'DEFINITIVE' | localize\"></div>\n <co-input-checkbox [model]=\"true\"></co-input-checkbox>\n </ng-template>\n ",
15553
+ template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n <div class=\"header-order-definitive\">\n <co-transaction-header-definitive [transactionInfo]=\"transactionInfo\"></co-transaction-header-definitive>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <span class=\"header-order-total-label co-transaction-label\" [textContent]=\"'ORDER_TOTAL' | localize\"></span>\n <div class=\"header-order-total\" [textContent]=\"transactionTotal.netAmount | priceDisplay\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"transaction-line-button custom-width\" (click)=\"handleShowDiscountDialog($event)\">\n <span class=\"co-transaction-label\" [textContent]=\"'DISCOUNT' | localize\"></span>\n <span class=\"co-transaction-overflow-ellipsis transaction-discount\" [class.transaction-negative-value]=\"transactionTotal.discountAmount < 0\"\n [textContent]=\"transactionTotal.discountAmount | coCurrency\"></span>\n </div>\n </ng-template>\n <ng-template #thirdBlock>\n <span class=\"header-order-line-amount-label co-transaction-label\" [textContent]=\"'ORDER_LINES' | localize\"></span>\n <div class=\"header-order-line-amount\" [textContent]=\"transactionLines.length\"></div>\n </ng-template>\n <co-dialog-transaction-header-discount class=\"discount-dialog\" *ngIf=\"showDiscountDialog\"\n [transactionInfo]=\"transactionInfo\"\n [transactionTotal]=\"transactionTotal\"\n (close)=\"showDiscountDialog = false\">\n </co-dialog-transaction-header-discount>\n ",
15271
15554
  encapsulation: i0.ViewEncapsulation.None
15272
15555
  },] }
15273
15556
  ];
@@ -15287,7 +15570,9 @@
15287
15570
  TransactionHeaderBlockModule,
15288
15571
  corecomponents_v12.InputCheckboxModule,
15289
15572
  PipeModule,
15290
- corecomponents_v12.PriceDisplayPipeModule
15573
+ corecomponents_v12.PriceDisplayPipeModule,
15574
+ DialogTransactionHeaderDiscountModule,
15575
+ TransactionHeaderDefinitiveModule
15291
15576
  ],
15292
15577
  declarations: [
15293
15578
  TransactionHeaderOrderComponent
@@ -15313,7 +15598,9 @@
15313
15598
  TransactionHeaderPaymentComponent.prototype.showClass = function () {
15314
15599
  return true;
15315
15600
  };
15316
- TransactionHeaderPaymentComponent.prototype.openPayment = function () {
15601
+ TransactionHeaderPaymentComponent.prototype.openPayment = function (event) {
15602
+ event.preventDefault();
15603
+ event.stopPropagation();
15317
15604
  this.showPaymentDialog = true;
15318
15605
  };
15319
15606
  return TransactionHeaderPaymentComponent;
@@ -15321,7 +15608,7 @@
15321
15608
  TransactionHeaderPaymentComponent.decorators = [
15322
15609
  { type: i0.Component, args: [{
15323
15610
  selector: "co-transaction-header-payment",
15324
- template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"'BALANCE' | localize\"></div>\n <div class=\"header-block-balance\" *ngIf=\"transactionInfo.transactionKind !== transactionKind.PurchaseOrder\" (click)=\"openPayment()\">\n <co-icon class=\"payment-icon\" [iconData]=\"iconService.getIcon(icons.CreditCardSolid)\"></co-icon>\n <div class=\"payment-payed-wrapper\">\n <span class=\"payment-paid\" [textContent]=\"200 | priceDisplay\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-to-pay\" [textContent]=\"100 | priceDisplay\"></span>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <co-transaction-header-downpayment-percentage class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-percentage>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-downpayment-amount class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-amount>\n </ng-template>\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n </co-dialog>\n <co-dialog class=\"payment-dialog\" *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n (closeClick)=\"showPaymentDialog = false\"\n >\n <co-payment\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"transactionTotal.netAmount\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
15611
+ template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"'BALANCE' | localize\"></div>\n <div class=\"header-block-balance\" *ngIf=\"transactionInfo.transactionKind !== transactionKind.PurchaseOrder\" (click)=\"openPayment($event)\">\n <co-icon class=\"payment-icon\" [iconData]=\"iconService.getIcon(icons.CreditCardSolid)\"></co-icon>\n <div class=\"payment-payed-wrapper\">\n <span class=\"payment-paid\" [textContent]=\"200 | priceDisplay\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-to-pay\" [textContent]=\"100 | priceDisplay\"></span>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <co-transaction-header-downpayment-percentage class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-percentage>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-downpayment-amount class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-amount>\n </ng-template>\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n </co-dialog>\n <co-dialog class=\"payment-dialog\" *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n (closeClick)=\"showPaymentDialog = false\"\n >\n <co-payment\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"transactionTotal.netAmount\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
15325
15612
  encapsulation: i0.ViewEncapsulation.None
15326
15613
  },] }
15327
15614
  ];
@@ -15349,7 +15636,8 @@
15349
15636
  PaymentModule,
15350
15637
  corecomponents_v12.IconModule,
15351
15638
  TransactionHeaderDownpaymentPercentageModule,
15352
- TransactionHeaderDownpaymentAmountModule
15639
+ TransactionHeaderDownpaymentAmountModule,
15640
+ DialogTransactionHeaderDiscountModule
15353
15641
  ],
15354
15642
  declarations: [
15355
15643
  TransactionHeaderPaymentComponent
@@ -15727,6 +16015,8 @@
15727
16015
  configurable: true
15728
16016
  });
15729
16017
  TransactionLinePriceComponent.prototype.handleClick = function (event) {
16018
+ event.preventDefault();
16019
+ event.stopPropagation();
15730
16020
  if (!this.readonly) {
15731
16021
  this.editMode = true;
15732
16022
  }
@@ -16059,6 +16349,8 @@
16059
16349
  configurable: true
16060
16350
  });
16061
16351
  TransactionLineDeliveryDateComponent.prototype.handleClick = function (event) {
16352
+ event.preventDefault();
16353
+ event.stopPropagation();
16062
16354
  if (!this.readonly) {
16063
16355
  this.editMode = true;
16064
16356
  }
@@ -16694,6 +16986,8 @@
16694
16986
  configurable: true
16695
16987
  });
16696
16988
  TransactionLineDescriptionComponent.prototype.handleClick = function (event) {
16989
+ event.preventDefault();
16990
+ event.stopPropagation();
16697
16991
  if (!this.readonly) {
16698
16992
  this.editMode = true;
16699
16993
  }
@@ -17875,6 +18169,27 @@
17875
18169
  },] }
17876
18170
  ];
17877
18171
 
18172
+ var DialogTransactionLineDeliveryMethodComponent = /** @class */ (function (_super) {
18173
+ __extends(DialogTransactionLineDeliveryMethodComponent, _super);
18174
+ function DialogTransactionLineDeliveryMethodComponent() {
18175
+ return _super !== null && _super.apply(this, arguments) || this;
18176
+ }
18177
+ DialogTransactionLineDeliveryMethodComponent.prototype.showClass = function () {
18178
+ return true;
18179
+ };
18180
+ return DialogTransactionLineDeliveryMethodComponent;
18181
+ }(DialogTransactionLineBaseComponent));
18182
+ DialogTransactionLineDeliveryMethodComponent.decorators = [
18183
+ { type: i0.Component, args: [{
18184
+ selector: "co-dialog-transaction-line-delivery-method",
18185
+ template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-delivery-method\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"></co-transaction-line-delivery-method>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'DELIVERY_METHOD'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
18186
+ encapsulation: i0.ViewEncapsulation.None
18187
+ },] }
18188
+ ];
18189
+ DialogTransactionLineDeliveryMethodComponent.propDecorators = {
18190
+ showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
18191
+ };
18192
+
17878
18193
  var DialogTransactionLineDeliveryMethodModule = /** @class */ (function () {
17879
18194
  function DialogTransactionLineDeliveryMethodModule() {
17880
18195
  }
@@ -17899,6 +18214,27 @@
17899
18214
  },] }
17900
18215
  ];
17901
18216
 
18217
+ var DialogTransactionLineVatComponent = /** @class */ (function (_super) {
18218
+ __extends(DialogTransactionLineVatComponent, _super);
18219
+ function DialogTransactionLineVatComponent() {
18220
+ return _super !== null && _super.apply(this, arguments) || this;
18221
+ }
18222
+ DialogTransactionLineVatComponent.prototype.showClass = function () {
18223
+ return true;
18224
+ };
18225
+ return DialogTransactionLineVatComponent;
18226
+ }(DialogTransactionLineBaseComponent));
18227
+ DialogTransactionLineVatComponent.decorators = [
18228
+ { type: i0.Component, args: [{
18229
+ selector: "co-dialog-transaction-line-vat",
18230
+ template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <co-transaction-line-vat\n [autoClose]=\"autoClose\"\n [useModel]=\"useModel\"\n [transactionLine]=\"transactionLine\"\n [searchText]=\"searchText\"\n (closeAfterCommit)=\"handleClose(buttonType.Ok)\"\n (valueChange)=\"handleValueChange($event)\"\n ></co-transaction-line-vat>\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'VAT'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"dialog-footer-button-wrapper\" *ngIf=\"!useModel\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
18231
+ encapsulation: i0.ViewEncapsulation.None
18232
+ },] }
18233
+ ];
18234
+ DialogTransactionLineVatComponent.propDecorators = {
18235
+ showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
18236
+ };
18237
+
17902
18238
  var DialogTransactionLineVatModule = /** @class */ (function () {
17903
18239
  function DialogTransactionLineVatModule() {
17904
18240
  }
@@ -17921,7 +18257,59 @@
17921
18257
  DialogTransactionLineVatComponent
17922
18258
  ]
17923
18259
  },] }
17924
- ];
18260
+ ];
18261
+
18262
+ var DialogTransactionLineDiscountComponent = /** @class */ (function (_super) {
18263
+ __extends(DialogTransactionLineDiscountComponent, _super);
18264
+ function DialogTransactionLineDiscountComponent(_dialogService, _service) {
18265
+ var _this = _super.call(this) || this;
18266
+ _this._dialogService = _dialogService;
18267
+ _this._service = _service;
18268
+ _this.showPriceListDialog = false;
18269
+ return _this;
18270
+ }
18271
+ DialogTransactionLineDiscountComponent.prototype.showClass = function () {
18272
+ return true;
18273
+ };
18274
+ DialogTransactionLineDiscountComponent.prototype.openThePriceListDialog = function () {
18275
+ this.showPriceListDialog = true;
18276
+ };
18277
+ DialogTransactionLineDiscountComponent.prototype.transactionLineSet = function () {
18278
+ this._loadLinePricelist();
18279
+ };
18280
+ DialogTransactionLineDiscountComponent.prototype.transactionInfoSet = function () {
18281
+ this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
18282
+ };
18283
+ DialogTransactionLineDiscountComponent.prototype._loadLinePricelist = function () {
18284
+ return __awaiter(this, void 0, void 0, function () {
18285
+ var _this = this;
18286
+ return __generator(this, function (_a) {
18287
+ if (this.transactionLine && this.transactionLine.isArticle) {
18288
+ this._service.getPriceLists().then(function (lists) {
18289
+ var priceList = lists.find(function (l) { return l.code === _this.transactionLine.priceListCode; });
18290
+ _this.transactionLine.priceListDescription = priceList ? priceList.description : "";
18291
+ });
18292
+ }
18293
+ return [2 /*return*/];
18294
+ });
18295
+ });
18296
+ };
18297
+ return DialogTransactionLineDiscountComponent;
18298
+ }(DialogTransactionLineBaseComponent));
18299
+ DialogTransactionLineDiscountComponent.decorators = [
18300
+ { type: i0.Component, args: [{
18301
+ selector: "co-dialog-transaction-line-discount",
18302
+ template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" (closeClick)=\"handleClose(buttonType.Ok)\">\n <div class=\"transaction-line-discount-wrapper co-transaction-small-toolbar\">\n <div class=\"two-column-grid\">\n <co-transaction-line-line-discount [transactionLine]=\"transactionLine\"></co-transaction-line-line-discount>\n <co-transaction-line-discount-amount [transactionLine]=\"transactionLine\"></co-transaction-line-discount-amount>\n </div>\n <div class=\"two-column-grid\">\n <co-transaction-line-special-discount [transactionLine]=\"transactionLine\"></co-transaction-line-special-discount>\n <co-transaction-line-quantum-discount [transactionLine]=\"transactionLine\"></co-transaction-line-quantum-discount>\n </div>\n <div class=\"two-column-grid\">\n <co-input-text [placeholder]=\"'SURCHARGE_AMOUNT' | localize\" [model]=\"transactionLine.surchargeAmount\" [readonly]=\"readonly\"></co-input-text>\n <co-input-text [placeholder]=\"'BUSINESS_RULE_DISCOUNT' | localize\" [model]=\"'NIET_GEIMPLEMENTEERD'\" [readonly]=\"readonly\"></co-input-text>\n </div>\n <div class=\"transaction-line-discount-overview\">\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionLine.discountAmount < 0\" [textContent]=\"transactionLine.discountAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'BUSINESS_RULE_DISCOUNT' | localize\"></div>\n <div class=\"value\" [textContent]=\"'NIET_GEIMPLEMENTEERD'\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'QUANTUM_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionLine.quantumDiscount < 0\" [textContent]=\"transactionLine.quantumDiscount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item\">\n <div class=\"title\" [textContent]=\"'SURCHARGE_AMOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionLine.surchargeAmount < 0\" [textContent]=\"transactionLine.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"transaction-line-discount-overview-item total\">\n <div class=\"title\" [textContent]=\"'TOTAL_LINE_DISCOUNT' | localize\"></div>\n <div class=\"value\" [class.transaction-negative-value]=\"transactionLine.lineTotalDiscountAmount < 0\" [textContent]=\"transactionLine.lineTotalDiscountAmount | coCurrency\"></div>\n </div>\n </div>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"dialog-header-title\" [textContent]=\"'DISCOUNT_PRICE_INFORMATION' | localize\"></div>\n <div class=\"transaction-line-button big\" (click)=\"openThePriceListDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.priceListDescription\"></span>\n </div>\n </ng-template>\n <co-dialog-transaction-line-price-list *ngIf=\"showPriceListDialog\"\n [transactionLine]=\"transactionLine\"\n (close)=\"showPriceListDialog = false\"\n ></co-dialog-transaction-line-price-list>\n ",
18303
+ encapsulation: i0.ViewEncapsulation.None
18304
+ },] }
18305
+ ];
18306
+ DialogTransactionLineDiscountComponent.ctorParameters = function () { return [
18307
+ { type: DialogService },
18308
+ { type: TransactionService }
18309
+ ]; };
18310
+ DialogTransactionLineDiscountComponent.propDecorators = {
18311
+ showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
18312
+ };
17925
18313
 
17926
18314
  var DialogTransactionLinePriceListComponent = /** @class */ (function (_super) {
17927
18315
  __extends(DialogTransactionLinePriceListComponent, _super);
@@ -18875,16 +19263,6 @@
18875
19263
  TransactionTileComponent.prototype.handleSidePanelButtonClicked = function () {
18876
19264
  this.showSidePanelClicked.next(this._transactionLine);
18877
19265
  };
18878
- TransactionTileComponent.prototype.getStatusColor = function (n) {
18879
- switch (n) {
18880
- case 0:
18881
- return '#5fdbb2';
18882
- case 1:
18883
- return '#f78852';
18884
- case 2:
18885
- return '#f23a3a';
18886
- }
18887
- };
18888
19266
  TransactionTileComponent.prototype._loadLineImage = function () {
18889
19267
  return __awaiter(this, void 0, void 0, function () {
18890
19268
  var _this = this;
@@ -18903,7 +19281,7 @@
18903
19281
  TransactionTileComponent.decorators = [
18904
19282
  { type: i0.Component, args: [{
18905
19283
  selector: "co-transaction-tile",
18906
- template: "\n <div class=\"transaction-tile-wrapper\" *ngIf=\"transactionLine\">\n <div class=\"header-row center\">\n <div class=\"header-transport-container center\">\n <co-icon class=\"transport-method-icon\" [iconData]=\"iconCacheService.getIcon(icon.DeliveryTruck)\"></co-icon>\n <span class=\"transport-method-text\" [textContent]=\"'Dropshipment door leverancier'\"></span>\n </div>\n <span class=\"header-date bold\" [textContent]=\"transactionLine.deliveryDate | date : 'd-MM-yyyy'\"></span>\n <co-icon class=\"header-side-panel-button\"\n [iconData]=\"iconCacheService.getIcon(icon.ThickLines)\"\n (click)=\"handleSidePanelButtonClicked()\"\n ></co-icon>\n </div>\n\n <div class=\"transaction-details-row\">\n <div class=\"transaction-details-container\">\n <span class=\"transaction-tile-title bold\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span *ngFor=\"let text of transactionLine.articleTestAsArray\" class=\"transaction-tile-description\"\n [innerHTML]=\"text | safeHtml\"></span>\n </div>\n <co-image-display class=\"tile-image\" [model]=\"image\"></co-image-display>\n </div>\n\n <div class=\"transaction-order-status-row\">\n <div class=\"indicators-wrapper\">\n <div *ngFor=\"let n of [0, 1, 2]\" [style.background]=\"getStatusColor(n)\" class=\"transaction-order-status-indicator\"></div>\n </div>\n </div>\n\n <div class=\"transaction-data-row center\">\n <div class=\"transaction-data-header\">\n <div class=\"transaction-data-header-item\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.articleNumber ? transactionLine.articleNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'PRICE'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.price ? (transactionLine.price | priceDisplay) : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'DISCOUNT'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.discountAmount ? transactionLine.discountAmount : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'Mag'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.warehouseNumber ? transactionLine.warehouseNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'CC'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.commissionCode ? transactionLine.commissionCode : '-'\"></span>\n </div>\n </div>\n <div class=\"transaction-data-header-item mutable center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <input type=\"number\" class=\"transaction-data-header-field bold amount-input\" [(ngModel)]=\"transactionLine.amount\">\n </div>\n </div>\n </div>\n ",
19284
+ template: "\n <div class=\"transaction-tile-wrapper\" *ngIf=\"transactionLine\">\n <div class=\"header-row center\">\n <div class=\"header-transport-container center\">\n <co-icon class=\"transport-method-icon\" [iconData]=\"iconCacheService.getIcon(icon.DeliveryTruck)\"></co-icon>\n <span class=\"transport-method-text\" [textContent]=\"'Dropshipment door leverancier'\"></span>\n </div>\n <span class=\"header-date bold\" [textContent]=\"transactionLine.deliveryDate | date : 'd-MM-yyyy'\"></span>\n <co-icon class=\"header-side-panel-button\"\n [iconData]=\"iconCacheService.getIcon(icon.ThickLines)\"\n (click)=\"handleSidePanelButtonClicked()\"\n ></co-icon>\n </div>\n\n <div class=\"transaction-details-row\">\n <div class=\"transaction-details-container\">\n <span class=\"transaction-tile-title bold\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span *ngFor=\"let text of transactionLine.articleTestAsArray\" class=\"transaction-tile-description\"\n [innerHTML]=\"text | safeHtml\"></span>\n </div>\n <co-image-display class=\"tile-image\" [model]=\"image\"></co-image-display>\n </div>\n\n <div class=\"transaction-order-status-row\">\n <co-transaction-line-statusbar [transaction]=\"transactionLine\" [transactionKind]=\"transactionType\"></co-transaction-line-statusbar>\n </div>\n\n <div class=\"transaction-data-row center\">\n <div class=\"transaction-data-header\">\n <div class=\"transaction-data-header-item\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.articleNumber ? transactionLine.articleNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'PRICE'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.price ? (transactionLine.price | priceDisplay) : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'DISCOUNT'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.discountAmount ? transactionLine.discountAmount : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'Mag'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.warehouseNumber ? transactionLine.warehouseNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'CC'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.commissionCode ? transactionLine.commissionCode : '-'\"></span>\n </div>\n </div>\n <div class=\"transaction-data-header-item mutable center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <input type=\"number\" class=\"transaction-data-header-field bold amount-input\" [(ngModel)]=\"transactionLine.amount\">\n </div>\n </div>\n </div>\n ",
18907
19285
  encapsulation: i0.ViewEncapsulation.None
18908
19286
  },] }
18909
19287
  ];
@@ -18931,7 +19309,8 @@
18931
19309
  corecomponents_v12.IconModule,
18932
19310
  PipeModule,
18933
19311
  forms.FormsModule,
18934
- corecomponents_v12.PriceDisplayPipeModule
19312
+ corecomponents_v12.PriceDisplayPipeModule,
19313
+ TransactionLineStatusbarModule
18935
19314
  ],
18936
19315
  declarations: [
18937
19316
  TransactionTileComponent
@@ -18976,6 +19355,8 @@
18976
19355
  return true;
18977
19356
  };
18978
19357
  EditableLabelComponent.prototype.handleClick = function (event) {
19358
+ event.preventDefault();
19359
+ event.stopPropagation();
18979
19360
  if (!this.readonly) {
18980
19361
  this.editMode = true;
18981
19362
  }
@@ -19196,30 +19577,44 @@
19196
19577
  },] }
19197
19578
  ];
19198
19579
 
19199
- var TransactionLineCommissionButtonComponent = /** @class */ (function () {
19200
- function TransactionLineCommissionButtonComponent(_dialogService) {
19201
- this._dialogService = _dialogService;
19580
+ var TransactionLineCommissionButtonComponent = /** @class */ (function (_super) {
19581
+ __extends(TransactionLineCommissionButtonComponent, _super);
19582
+ function TransactionLineCommissionButtonComponent(_service) {
19583
+ var _this = _super.call(this) || this;
19584
+ _this._service = _service;
19585
+ _this.showDialogCommissionCode = false;
19586
+ return _this;
19202
19587
  }
19203
19588
  TransactionLineCommissionButtonComponent.prototype.showClass = function () {
19204
19589
  return true;
19205
19590
  };
19206
- TransactionLineCommissionButtonComponent.prototype.openCommissionCodeDialog = function () {
19207
- this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
19591
+ TransactionLineCommissionButtonComponent.prototype.transactionLineSet = function () {
19592
+ return __awaiter(this, void 0, void 0, function () {
19593
+ var _this = this;
19594
+ return __generator(this, function (_a) {
19595
+ if (this.transactionLine && this.transactionLine.isArticle) {
19596
+ this._service.getCommissionCodes('NL').then(function (codes) {
19597
+ var commissionCode = codes.find(function (c) { return c.code === _this.transactionLine.commissionCode; });
19598
+ _this.transactionLine.commissionDescription = commissionCode ? commissionCode.description : "";
19599
+ });
19600
+ }
19601
+ return [2 /*return*/];
19602
+ });
19603
+ });
19208
19604
  };
19209
19605
  return TransactionLineCommissionButtonComponent;
19210
- }());
19606
+ }(TransactionLineBaseComponent));
19211
19607
  TransactionLineCommissionButtonComponent.decorators = [
19212
19608
  { type: i0.Component, args: [{
19213
19609
  selector: "co-transaction-line-commission-button",
19214
- template: "\n <div class=\"transaction-line-button\" (click)=\"openCommissionCodeDialog()\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.commissionCode | append:' | ' | append:line.commissionDescription\"></span>\n </div>\n ",
19610
+ template: "\n <div class=\"transaction-line-button\" (click)=\"showDialogCommissionCode = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.commissionCode | append:' | ' | append:transactionLine.commissionDescription\"></span>\n </div>\n <co-dialog-transaction-line-commission-code *ngIf=\"showDialogCommissionCode\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (close)=\"showDialogCommissionCode = false\"\n ></co-dialog-transaction-line-commission-code>\n ",
19215
19611
  encapsulation: i0.ViewEncapsulation.None
19216
19612
  },] }
19217
19613
  ];
19218
19614
  TransactionLineCommissionButtonComponent.ctorParameters = function () { return [
19219
- { type: DialogService }
19615
+ { type: TransactionService }
19220
19616
  ]; };
19221
19617
  TransactionLineCommissionButtonComponent.propDecorators = {
19222
- line: [{ type: i0.Input }],
19223
19618
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-commission-button",] }]
19224
19619
  };
19225
19620
 
@@ -19232,7 +19627,8 @@
19232
19627
  { type: i0.NgModule, args: [{
19233
19628
  imports: [
19234
19629
  common.CommonModule,
19235
- PipeModule
19630
+ PipeModule,
19631
+ DialogTransactionLineCommissionCodeModule
19236
19632
  ],
19237
19633
  declarations: [
19238
19634
  TransactionLineCommissionButtonComponent
@@ -19243,37 +19639,47 @@
19243
19639
  },] }
19244
19640
  ];
19245
19641
 
19246
- var TransactionLineWarehouseButtonComponent = /** @class */ (function () {
19247
- function TransactionLineWarehouseButtonComponent(iconCacheService, _dialogService) {
19248
- this.iconCacheService = iconCacheService;
19249
- this._dialogService = _dialogService;
19250
- this.icons = Icon;
19251
- this.readonly = false;
19642
+ var TransactionLineWarehouseButtonComponent = /** @class */ (function (_super) {
19643
+ __extends(TransactionLineWarehouseButtonComponent, _super);
19644
+ function TransactionLineWarehouseButtonComponent(iconCacheService, service) {
19645
+ var _this = _super.call(this) || this;
19646
+ _this.iconCacheService = iconCacheService;
19647
+ _this.service = service;
19648
+ _this.icons = Icon;
19649
+ _this.showDialogWarehouse = false;
19650
+ return _this;
19252
19651
  }
19253
19652
  TransactionLineWarehouseButtonComponent.prototype.showClass = function () {
19254
19653
  return true;
19255
19654
  };
19256
- TransactionLineWarehouseButtonComponent.prototype.openWarehouseDialog = function () {
19257
- if (!this.readonly) {
19258
- this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
19259
- }
19655
+ TransactionLineWarehouseButtonComponent.prototype.transactionLineSet = function () {
19656
+ return __awaiter(this, void 0, void 0, function () {
19657
+ var _this = this;
19658
+ return __generator(this, function (_a) {
19659
+ if (this.transactionLine && this.transactionLine.isArticle) {
19660
+ this.service.getWarehouses().then(function (warehouses) {
19661
+ var warehouse = warehouses.find(function (w) { return w.warehouseNo === _this.transactionLine.warehouseNumber; });
19662
+ _this.transactionLine.warehouseDescription = warehouse ? warehouse.description : "";
19663
+ });
19664
+ }
19665
+ return [2 /*return*/];
19666
+ });
19667
+ });
19260
19668
  };
19261
19669
  return TransactionLineWarehouseButtonComponent;
19262
- }());
19670
+ }(TransactionLineBaseComponent));
19263
19671
  TransactionLineWarehouseButtonComponent.decorators = [
19264
19672
  { type: i0.Component, args: [{
19265
19673
  selector: "co-transaction-line-warehouse-button",
19266
- template: "\n <div class=\"transaction-line-button\" [class.no-pointer]=\"readonly\" (click)=\"openWarehouseDialog()\">\n <co-icon class=\"header-warehouse-icon\" [iconData]=\"iconCacheService.getIcon(icons.Warehouse)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.warehouseNumber\"></span>\n </div>\n ",
19674
+ template: "\n <div class=\"transaction-line-button\" [class.no-pointer]=\"readonly\" (click)=\"showDialogWarehouse = true\">\n <co-icon class=\"header-warehouse-icon\" [iconData]=\"iconCacheService.getIcon(icons.Warehouse)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.warehouseNumber\"></span>\n </div>\n <co-dialog-transaction-line-warehouse *ngIf=\"showDialogWarehouse\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (close)=\"showDialogWarehouse = false\"\n ></co-dialog-transaction-line-warehouse>\n ",
19267
19675
  encapsulation: i0.ViewEncapsulation.None
19268
19676
  },] }
19269
19677
  ];
19270
19678
  TransactionLineWarehouseButtonComponent.ctorParameters = function () { return [
19271
19679
  { type: IconCacheService },
19272
- { type: DialogService }
19680
+ { type: TransactionService }
19273
19681
  ]; };
19274
19682
  TransactionLineWarehouseButtonComponent.propDecorators = {
19275
- line: [{ type: i0.Input }],
19276
- readonly: [{ type: i0.Input }],
19277
19683
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-warehouse-button",] }]
19278
19684
  };
19279
19685
 
@@ -19286,7 +19692,8 @@
19286
19692
  { type: i0.NgModule, args: [{
19287
19693
  imports: [
19288
19694
  common.CommonModule,
19289
- corecomponents_v12.IconModule
19695
+ corecomponents_v12.IconModule,
19696
+ DialogTransactionLineWarehouseModule
19290
19697
  ],
19291
19698
  declarations: [
19292
19699
  TransactionLineWarehouseButtonComponent
@@ -19297,33 +19704,47 @@
19297
19704
  },] }
19298
19705
  ];
19299
19706
 
19300
- var TransactionLineDeliveryButtonComponent = /** @class */ (function () {
19301
- function TransactionLineDeliveryButtonComponent(iconCacheService, _dialogService) {
19302
- this.iconCacheService = iconCacheService;
19303
- this._dialogService = _dialogService;
19304
- this.icons = Icon;
19707
+ var TransactionLineDeliveryButtonComponent = /** @class */ (function (_super) {
19708
+ __extends(TransactionLineDeliveryButtonComponent, _super);
19709
+ function TransactionLineDeliveryButtonComponent(iconCacheService, service) {
19710
+ var _this = _super.call(this) || this;
19711
+ _this.iconCacheService = iconCacheService;
19712
+ _this.service = service;
19713
+ _this.icons = Icon;
19714
+ _this.showDialogDeliveryMethod = false;
19715
+ return _this;
19305
19716
  }
19306
19717
  TransactionLineDeliveryButtonComponent.prototype.showClass = function () {
19307
19718
  return true;
19308
19719
  };
19309
- TransactionLineDeliveryButtonComponent.prototype.openDeliveryMethodDialog = function () {
19310
- this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
19720
+ TransactionLineDeliveryButtonComponent.prototype.transactionLineSet = function () {
19721
+ return __awaiter(this, void 0, void 0, function () {
19722
+ var _this = this;
19723
+ return __generator(this, function (_a) {
19724
+ if (this.transactionLine && this.transactionLine.isArticle) {
19725
+ this.service.getDeliveryMethods().then(function (methods) {
19726
+ var method = methods.find(function (m) { return m.code === _this.transactionLine.deliveryMethodCode; });
19727
+ _this.transactionLine.deliveryMethodDescription = method ? method.description : "";
19728
+ });
19729
+ }
19730
+ return [2 /*return*/];
19731
+ });
19732
+ });
19311
19733
  };
19312
19734
  return TransactionLineDeliveryButtonComponent;
19313
- }());
19735
+ }(TransactionLineBaseComponent));
19314
19736
  TransactionLineDeliveryButtonComponent.decorators = [
19315
19737
  { type: i0.Component, args: [{
19316
19738
  selector: "co-transaction-line-delivery-button",
19317
- template: "\n <div class=\"transaction-line-button big\" (click)=\"openDeliveryMethodDialog()\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconCacheService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.deliveryMethodDescription\"></span>\n </div>\n ",
19739
+ template: "\n <div class=\"transaction-line-button big\" (click)=\"showDialogDeliveryMethod = true\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconCacheService.getIcon(icons.TruckFastSolid)\"></co-icon>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.deliveryMethodDescription\"></span>\n </div>\n <co-dialog-transaction-line-delivery-method *ngIf=\"showDialogDeliveryMethod\"\n [autoClose]=\"true\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (close)=\"showDialogDeliveryMethod = false\"\n ></co-dialog-transaction-line-delivery-method>\n ",
19318
19740
  encapsulation: i0.ViewEncapsulation.None
19319
19741
  },] }
19320
19742
  ];
19321
19743
  TransactionLineDeliveryButtonComponent.ctorParameters = function () { return [
19322
19744
  { type: IconCacheService },
19323
- { type: DialogService }
19745
+ { type: TransactionService }
19324
19746
  ]; };
19325
19747
  TransactionLineDeliveryButtonComponent.propDecorators = {
19326
- line: [{ type: i0.Input }],
19327
19748
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-delivery-button",] }]
19328
19749
  };
19329
19750
 
@@ -19336,7 +19757,8 @@
19336
19757
  { type: i0.NgModule, args: [{
19337
19758
  imports: [
19338
19759
  common.CommonModule,
19339
- corecomponents_v12.IconModule
19760
+ corecomponents_v12.IconModule,
19761
+ DialogTransactionLineDeliveryMethodModule
19340
19762
  ],
19341
19763
  declarations: [
19342
19764
  TransactionLineDeliveryButtonComponent
@@ -19360,7 +19782,7 @@
19360
19782
  TransactionLineDeliveryDateButtonComponent.decorators = [
19361
19783
  { type: i0.Component, args: [{
19362
19784
  selector: "co-transaction-line-delivery-date-button",
19363
- template: "\n <div class=\"transaction-line-button custom-width no-border\">\n <span [textContent]=\"'DELIVERY_DATE' | localize | append:':'\" class=\"small-font\"></span>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.deliveryDate | date:'dd MMM YYYY'\"></span>\n <co-icon class=\"header-delivery-date-icon\" [iconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </div>\n ",
19785
+ template: "\n <div class=\"transaction-line-button custom-width no-border\">\n <span [textContent]=\"'DELIVERY_DATE' | localize | append:':'\" class=\"small-font\"></span>\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"transactionLine.deliveryDate | date:'dd MMM YYYY'\"></span>\n <co-icon class=\"header-delivery-date-icon\" [iconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"></co-icon>\n </div>\n ",
19364
19786
  encapsulation: i0.ViewEncapsulation.None
19365
19787
  },] }
19366
19788
  ];
@@ -19368,7 +19790,7 @@
19368
19790
  { type: IconCacheService }
19369
19791
  ]; };
19370
19792
  TransactionLineDeliveryDateButtonComponent.propDecorators = {
19371
- line: [{ type: i0.Input }],
19793
+ transactionLine: [{ type: i0.Input }],
19372
19794
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-delivery-date-button",] }]
19373
19795
  };
19374
19796
 
@@ -19418,7 +19840,10 @@
19418
19840
  TransactionLineCommissionButtonModule,
19419
19841
  TransactionLineWarehouseButtonModule,
19420
19842
  TransactionLineDeliveryButtonModule,
19421
- TransactionLineDeliveryDateButtonModule
19843
+ TransactionLineDeliveryDateButtonModule,
19844
+ DialogTransactionLineVatModule,
19845
+ DialogTransactionLineDiscountModule,
19846
+ TransactionLineStatusbarModule
19422
19847
  ],
19423
19848
  declarations: [
19424
19849
  TransactionOverviewLineComponent
@@ -19429,50 +19854,6 @@
19429
19854
  },] }
19430
19855
  ];
19431
19856
 
19432
- var StatusBarComponent = /** @class */ (function () {
19433
- function StatusBarComponent(iconCacheService) {
19434
- this.iconCacheService = iconCacheService;
19435
- this.icons = Icon;
19436
- }
19437
- StatusBarComponent.prototype.showClass = function () {
19438
- return true;
19439
- };
19440
- return StatusBarComponent;
19441
- }());
19442
- StatusBarComponent.decorators = [
19443
- { type: i0.Component, args: [{
19444
- selector: "co-status-bar",
19445
- template: "\n <div>\n <!--Tijdelijk visueel voorbeeld:-->\n <div class=\"status-bar-icons-wrapper\">\n <co-icon class=\"color-green\" [iconData]=\"this.iconCacheService.getIcon(this.icons.SquareFullSolid)\"></co-icon>\n <co-icon class=\"color-orange\" [iconData]=\"this.iconCacheService.getIcon(this.icons.SquareFullSolid)\"></co-icon>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.SquareFull)\"></co-icon>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.SquareFull)\"></co-icon>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.SquareFull)\"></co-icon>\n </div>\n </div>\n ",
19446
- encapsulation: i0.ViewEncapsulation.None
19447
- },] }
19448
- ];
19449
- StatusBarComponent.ctorParameters = function () { return [
19450
- { type: IconCacheService }
19451
- ]; };
19452
- StatusBarComponent.propDecorators = {
19453
- showClass: [{ type: i0.HostBinding, args: ["class.co-status-bar",] }]
19454
- };
19455
-
19456
- var StatusBarModule = /** @class */ (function () {
19457
- function StatusBarModule() {
19458
- }
19459
- return StatusBarModule;
19460
- }());
19461
- StatusBarModule.decorators = [
19462
- { type: i0.NgModule, args: [{
19463
- imports: [
19464
- common.CommonModule,
19465
- corecomponents_v12.IconModule
19466
- ],
19467
- declarations: [
19468
- StatusBarComponent
19469
- ],
19470
- exports: [
19471
- StatusBarComponent
19472
- ]
19473
- },] }
19474
- ];
19475
-
19476
19857
  var TransactionOrderDeliveryLineModule = /** @class */ (function () {
19477
19858
  function TransactionOrderDeliveryLineModule() {
19478
19859
  }
@@ -19486,10 +19867,10 @@
19486
19867
  TransactionLineWarehouseButtonModule,
19487
19868
  TransactionLineDeliveryButtonModule,
19488
19869
  TransactionLineDeliveryDateButtonModule,
19489
- StatusBarModule,
19490
19870
  EditableLabelModule,
19491
19871
  PipeModule,
19492
- corecomponents_v12.InputNumberPickerModule
19872
+ corecomponents_v12.InputNumberPickerModule,
19873
+ TransactionLineStatusbarModule
19493
19874
  ],
19494
19875
  declarations: [
19495
19876
  TransactionOrderDeliveryLineComponent
@@ -19592,6 +19973,103 @@
19592
19973
  },] }
19593
19974
  ];
19594
19975
 
19976
+ var TransactionSearchComponent = /** @class */ (function () {
19977
+ function TransactionSearchComponent(transactionSearchService) {
19978
+ this.transactionSearchService = transactionSearchService;
19979
+ this.searchViewModes = exports.SearchViewMode;
19980
+ this.orientations = corecomponents_v12.CoOrientation;
19981
+ this.directionRight = corecomponents_v12.CoDirection.Right;
19982
+ this.transactionClick = new i0.EventEmitter();
19983
+ this.searchViewModeChange = new i0.EventEmitter();
19984
+ }
19985
+ Object.defineProperty(TransactionSearchComponent.prototype, "transactionType", {
19986
+ get: function () {
19987
+ return this._transactionType;
19988
+ },
19989
+ set: function (value) {
19990
+ this._transactionType = value;
19991
+ this.transactionSearchService.transactionType = this._transactionType;
19992
+ },
19993
+ enumerable: false,
19994
+ configurable: true
19995
+ });
19996
+ TransactionSearchComponent.prototype.showClass = function () {
19997
+ return true;
19998
+ };
19999
+ TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
20000
+ if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
20001
+ this.collapseSearchBar();
20002
+ }
20003
+ this._scrollToTop();
20004
+ this.transactionClick.emit(transaction);
20005
+ };
20006
+ TransactionSearchComponent.prototype.onSearchViewResizeClick = function () {
20007
+ if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
20008
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
20009
+ }
20010
+ else {
20011
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
20012
+ }
20013
+ this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
20014
+ };
20015
+ TransactionSearchComponent.prototype.onSideCollapseHandleClick = function () {
20016
+ this.toggleSearchBar();
20017
+ };
20018
+ TransactionSearchComponent.prototype.toggleSearchBar = function () {
20019
+ if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
20020
+ this.expandSearchBar();
20021
+ }
20022
+ else {
20023
+ this.collapseSearchBar();
20024
+ }
20025
+ };
20026
+ TransactionSearchComponent.prototype.collapseSearchBar = function () {
20027
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
20028
+ this.transactionSearchService.activeSearchBarViewMode = exports.SearchbarViewMode.Collapsed;
20029
+ this.searchViewModeChange.emit(this.searchViewModes.SideBar);
20030
+ };
20031
+ TransactionSearchComponent.prototype.expandSearchBar = function () {
20032
+ this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
20033
+ this.transactionSearchService.activeSearchBarViewMode = exports.SearchbarViewMode.Expanded;
20034
+ this.searchViewModeChange.emit(this.searchViewModes.SideBar);
20035
+ };
20036
+ TransactionSearchComponent.prototype.calculateClasses = function () {
20037
+ return {
20038
+ 'fullscreen': this.transactionSearchService.fullscreen,
20039
+ 'sidebar': !this.transactionSearchService.fullscreen,
20040
+ 'collapsed': this.transactionSearchService.collapsed,
20041
+ 'expanded': !this.transactionSearchService.collapsed,
20042
+ };
20043
+ };
20044
+ TransactionSearchComponent.prototype._scrollToTop = function () {
20045
+ window.scrollTo({ top: 0, behavior: 'smooth' });
20046
+ };
20047
+ return TransactionSearchComponent;
20048
+ }());
20049
+ TransactionSearchComponent.decorators = [
20050
+ { type: i0.Component, args: [{
20051
+ selector: 'co-transaction-search',
20052
+ template: "\n <div class=\"transaction-search-main-wrapper\">\n <div class=\"transaction-search-wrapper\"\n [ngClass]=\"calculateClasses()\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\"\n [ngClass]=\"calculateClasses()\"\n *ngIf=\"transactionSearchService.showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (closeButtonClick)=\"transactionSearchService.handleHideFilter()\"\n (resetFilterClick)=\"transactionSearchService.handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <co-transaction-search-result\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (filterClick)=\"transactionSearchService.toggleFilter()\"\n (transactionClick)=\"onTransactionClick($event)\"\n (resizeClick)=\"onSearchViewResizeClick()\"\n (closeClick)=\"collapseSearchBar()\"\n ></co-transaction-search-result>\n </div>\n </div>\n <div class=\"transaction-search-content-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n ",
20053
+ animations: [
20054
+ animations.trigger("showHideFilterSidebar", [
20055
+ animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
20056
+ animations.state("*", animations.style({ transform: 'translateX(0)' })),
20057
+ animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
20058
+ ])
20059
+ ],
20060
+ encapsulation: i0.ViewEncapsulation.None
20061
+ },] }
20062
+ ];
20063
+ TransactionSearchComponent.ctorParameters = function () { return [
20064
+ { type: TransactionSearchService }
20065
+ ]; };
20066
+ TransactionSearchComponent.propDecorators = {
20067
+ transactionType: [{ type: i0.Input }],
20068
+ transactionClick: [{ type: i0.Output }],
20069
+ searchViewModeChange: [{ type: i0.Output }],
20070
+ showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
20071
+ };
20072
+
19595
20073
  var TransactionFilterComponent = /** @class */ (function () {
19596
20074
  function TransactionFilterComponent(_mappingService, _compFactoryResolver, appRef, injector, searchService) {
19597
20075
  this._mappingService = _mappingService;
@@ -19601,7 +20079,7 @@
19601
20079
  this.searchService = searchService;
19602
20080
  this.closeButtonClick = new i0.EventEmitter();
19603
20081
  this.resetFilterClick = new i0.EventEmitter();
19604
- this._activeSearchViewMode = SearchViewMode.FullScreen;
20082
+ this._activeSearchViewMode = exports.SearchViewMode.FullScreen;
19605
20083
  }
19606
20084
  Object.defineProperty(TransactionFilterComponent.prototype, "container", {
19607
20085
  set: function (content) {
@@ -19630,6 +20108,7 @@
19630
20108
  },
19631
20109
  set: function (value) {
19632
20110
  this._activeSearchViewMode = value;
20111
+ //localStorage.setItem('viewMode', value);
19633
20112
  },
19634
20113
  enumerable: false,
19635
20114
  configurable: true
@@ -20209,7 +20688,7 @@
20209
20688
  TransactionFilterHistoricStateComponent.decorators = [
20210
20689
  { type: i0.Component, args: [{
20211
20690
  selector: "co-transaction-filter-historic-state",
20212
- template: "\n <co-transaction-filter-item\n [placeholder]=\"label\"\n [customContent]=\"true\">\n <co-input-radio-button *ngFor=\"let state of states\"\n [name]=\"groupName\"\n [value]=\"state.value\"\n [model]=\"state.checked\"\n [label]=\"state.label | localize\"\n (modelChange)=\"handleStateChange($event)\"\n ></co-input-radio-button>\n </co-transaction-filter-item>\n ",
20691
+ template: "\n <co-transaction-filter-item\n [placeholder]=\"label\"\n [customContent]=\"true\">\n <co-input-radio-button *ngFor=\"let state of states\"\n [model]=\"state.checked\"\n [label]=\"state.label | localize\"\n (modelChange)=\"handleStateChange(state.value)\"\n ></co-input-radio-button>\n </co-transaction-filter-item>\n ",
20213
20692
  encapsulation: i0.ViewEncapsulation.None
20214
20693
  },] }
20215
20694
  ];
@@ -20466,8 +20945,8 @@
20466
20945
  //this.getStatusbarLine(),// Factuurcheck todo: als BE gereed is
20467
20946
  ];
20468
20947
  };
20469
- TransactionStatusbarComponent.prototype.getStatusbarLine = function (label, property) {
20470
- return { label: this._dictionary.get(label), percentage: this.calculatePercentage(property, this._total), count: property };
20948
+ TransactionStatusbarComponent.prototype.getStatusbarLine = function (label, quantity) {
20949
+ return { label: this._dictionary.get(label), percentage: this.calculatePercentage(quantity, this._total) };
20471
20950
  };
20472
20951
  TransactionStatusbarComponent.prototype.calculatePercentage = function (amount, totalAmount) {
20473
20952
  if (amount === 0 || totalAmount === 0) {
@@ -20568,7 +21047,7 @@
20568
21047
  this._dictionary = _dictionary;
20569
21048
  this.icon = Icon;
20570
21049
  this.contentViewModes = ContentViewMode;
20571
- this.searchViewModes = SearchViewMode;
21050
+ this.searchViewModes = exports.SearchViewMode;
20572
21051
  this.iconSlideIn = this.iconCacheService.getIcon(this.icon.SlideIn);
20573
21052
  this.iconResize = this.iconCacheService.getIcon(this.icon.Resize);
20574
21053
  this.iconCancel = this.iconCacheService.getIcon(this.icon.Cancel);
@@ -20591,7 +21070,7 @@
20591
21070
  };
20592
21071
  Object.defineProperty(TransactionSearchHeaderComponent.prototype, "fullscreen", {
20593
21072
  get: function () {
20594
- return this.activeSearchViewMode === SearchViewMode.FullScreen;
21073
+ return this.activeSearchViewMode === exports.SearchViewMode.FullScreen;
20595
21074
  },
20596
21075
  enumerable: false,
20597
21076
  configurable: true
@@ -20610,7 +21089,7 @@
20610
21089
  TransactionSearchHeaderComponent.decorators = [
20611
21090
  { type: i0.Component, args: [{
20612
21091
  selector: "co-transaction-search-header",
20613
- template: "\n <div class=\"transaction-search-header-wrapper\">\n <div class=\"upper-header\">\n\n <div class=\"header-buttons-wrapper\">\n <div class=\"toggle-sidebar-button-wrapper button-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\">\n <co-button [iconData]=\"fullscreen ? iconSlideIn : iconResize\"\n [ngClass]=\"!fullscreen ? 'small' : ''\"\n class=\"toggle-sidebar-button circle transparent\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\" >\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button circle small transparent\"\n (click)=\"onCloseClick()\">\n </co-button>\n </div>\n </div>\n\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div>\n <co-input-search class=\"transaction-search-general\"\n [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n [noIcon]=\"true\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"'SEARCH_NUMBER_CUSTOMER_OR_DATE' | localize\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n </div>\n <div>\n <co-button class=\"transaction-search-filter-button\"\n \n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"filterButtonClick.emit()\">\n </co-button>\n </div>\n </div>\n\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
21092
+ template: "\n <div class=\"transaction-search-header-wrapper\">\n <div class=\"upper-header\">\n\n <div class=\"header-buttons-wrapper\">\n <div class=\"toggle-sidebar-button-wrapper button-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\">\n <co-button [iconData]=\"fullscreen ? iconSlideIn : iconResize\"\n [ngClass]=\"!fullscreen ? 'small' : ''\"\n class=\"toggle-sidebar-button circle transparent\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\" >\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button circle small transparent\"\n (click)=\"onCloseClick()\">\n </co-button>\n </div>\n </div>\n\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div>\n <co-input-search class=\"transaction-search-general\"\n [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n [noIcon]=\"true\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"'SEARCH_NUMBER_CUSTOMER_OR_DATE' | localize\"\n [initFocus]=\"true\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n </div>\n <div>\n <co-button class=\"transaction-search-filter-button\"\n\n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"filterButtonClick.emit()\">\n </co-button>\n </div>\n </div>\n\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
20614
21093
  encapsulation: i0.ViewEncapsulation.None
20615
21094
  },] }
20616
21095
  ];
@@ -20928,7 +21407,7 @@
20928
21407
  this.searchService = searchService;
20929
21408
  this.icon = Icon;
20930
21409
  this.contentViewModes = ContentViewMode;
20931
- this.searchViewModes = SearchViewMode;
21410
+ this.searchViewModes = exports.SearchViewMode;
20932
21411
  this.activeSearchViewMode = this.searchViewModes.FullScreen;
20933
21412
  this.filterClick = new i0.EventEmitter();
20934
21413
  this.transactionClick = new i0.EventEmitter();
@@ -20943,7 +21422,7 @@
20943
21422
  };
20944
21423
  Object.defineProperty(TransactionSearchResultComponent.prototype, "fullscreen", {
20945
21424
  get: function () {
20946
- return this.activeSearchViewMode === SearchViewMode.FullScreen;
21425
+ return this.activeSearchViewMode === exports.SearchViewMode.FullScreen;
20947
21426
  },
20948
21427
  enumerable: false,
20949
21428
  configurable: true
@@ -20977,7 +21456,7 @@
20977
21456
  TransactionSearchResultComponent.decorators = [
20978
21457
  { type: i0.Component, args: [{
20979
21458
  selector: 'co-transaction-search-result',
20980
- template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-transaction-search-header\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n [activeContentViewMode]=\"activeContentViewMode\"\n (viewModeChange)=\"activeContentViewMode = $event\"\n (resizeClick)=\"onResizeClick()\"\n (filterButtonClick)=\"onFilterClick()\"\n (closeClick)=\"onCloseClick()\">\n </co-transaction-search-header>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [transaction]=\"transaction\"\n [transactionType]=\"transactionType\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\" *ngIf=\"activeContentViewMode === contentViewModes.Grid\">\n <co-transaction-search-grid\n [transactionType]=\"transactionType\"\n (transactionClick)=\"onTransactionClick($event)\"\n ></co-transaction-search-grid>\n </div>\n <co-pagination-bar *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
21459
+ template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-transaction-search-header\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n [activeContentViewMode]=\"activeContentViewMode\"\n (viewModeChange)=\"activeContentViewMode = $event\"\n (resizeClick)=\"onResizeClick()\"\n (filterButtonClick)=\"onFilterClick()\"\n (closeClick)=\"onCloseClick()\">\n </co-transaction-search-header>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [transaction]=\"transaction\"\n [transactionType]=\"transactionType\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid\">\n <co-transaction-search-grid\n [transactionType]=\"transactionType\"\n (transactionClick)=\"onTransactionClick($event)\"\n ></co-transaction-search-grid>\n </div>\n <co-pagination-bar *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n <div class=\"empty-state-wrapper\" *ngIf=\"this.searchService.transactions && this.searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n ",
20981
21460
  encapsulation: i0.ViewEncapsulation.None
20982
21461
  },] }
20983
21462
  ];
@@ -21526,256 +22005,262 @@
21526
22005
  exports["ɵcd"] = TransactionArticleTextComponent;
21527
22006
  exports["ɵce"] = TransactionReceiveGoodsService;
21528
22007
  exports["ɵcf"] = TransactionEventService;
21529
- exports["ɵcg"] = AvatarModule;
21530
- exports["ɵch"] = AvatarComponent;
21531
- exports["ɵci"] = SharedService;
21532
- exports["ɵcj"] = SharedConnectorService;
21533
- exports["ɵck"] = DeliveryTypeTileModule;
21534
- exports["ɵcl"] = DeliveryTypeTileComponent;
21535
- exports["ɵcm"] = PaymentModule;
21536
- exports["ɵcn"] = PaymentTileModule;
21537
- exports["ɵco"] = PaymentTileComponent;
21538
- exports["ɵcp"] = PaymentQrCodeModule;
21539
- exports["ɵcq"] = PaymentQrCodeComponent;
21540
- exports["ɵcr"] = PaymentComponent;
21541
- exports["ɵcs"] = PaymentService;
21542
- exports["ɵct"] = RelationTypeModule;
21543
- exports["ɵcu"] = RelationTypeComponent;
21544
- exports["ɵcv"] = RelationGeneralModule;
21545
- exports["ɵcw"] = RelationSuggestionsListModule;
21546
- exports["ɵcx"] = RelationSuggestionsListItemModule;
21547
- exports["ɵcy"] = RelationSuggestionsListItemComponent;
21548
- exports["ɵcz"] = RelationSuggestionsListComponent;
22008
+ exports["ɵcg"] = DialogTransactionHeaderDiscountModule;
22009
+ exports["ɵch"] = TransactionHeaderDiscountPercentageModule;
22010
+ exports["ɵci"] = TransactionHeaderDiscountPercentageComponent;
22011
+ exports["ɵcj"] = TransactionHeaderBaseComponent;
22012
+ exports["ɵck"] = TransactionFilterPopupBaseComponent;
22013
+ exports["ɵcl"] = TransactionHeaderDiscountAmountModule;
22014
+ exports["ɵcm"] = TransactionHeaderDiscountAmountComponent;
22015
+ exports["ɵcn"] = TransactionHeaderDiscountTransactionTotalModule;
22016
+ exports["ɵco"] = TransactionHeaderDiscountTransactionTotalComponent;
22017
+ exports["ɵcp"] = DialogTransactionHeaderDiscountComponent;
22018
+ exports["ɵcq"] = DialogTransactionHeaderBaseComponent;
22019
+ exports["ɵcr"] = AvatarModule;
22020
+ exports["ɵcs"] = AvatarComponent;
22021
+ exports["ɵct"] = SharedService;
22022
+ exports["ɵcu"] = SharedConnectorService;
22023
+ exports["ɵcv"] = DeliveryTypeTileModule;
22024
+ exports["ɵcw"] = DeliveryTypeTileComponent;
22025
+ exports["ɵcx"] = PaymentModule;
22026
+ exports["ɵcy"] = PaymentTileModule;
22027
+ exports["ɵcz"] = PaymentTileComponent;
21549
22028
  exports["ɵd"] = OptionsService;
21550
- exports["ɵda"] = RelationGeneralComponent;
21551
- exports["ɵdb"] = RelationAddressesModule;
21552
- exports["ɵdc"] = RelationAddressesComponent;
21553
- exports["ɵdd"] = RelationContactDetailsModule;
21554
- exports["ɵde"] = RelationContactDetailsComponent;
21555
- exports["ɵdf"] = RelationPreferencesModule;
21556
- exports["ɵdg"] = RelationPreferencesComponent;
21557
- exports["ɵdh"] = TransactionHeaderBlockModule;
21558
- exports["ɵdi"] = TransactionHeaderBlockComponent;
21559
- exports["ɵdj"] = TransactionHeaderDeliveryDateModule;
21560
- exports["ɵdk"] = TransactionHeaderDeliveryDateComponent;
21561
- exports["ɵdl"] = TransactionHeaderBaseComponent;
21562
- exports["ɵdm"] = TransactionFilterPopupBaseComponent;
21563
- exports["ɵdn"] = TransactionHeaderDeliveryOptionsModule;
21564
- exports["ɵdo"] = TransactionHeaderDeliveryOptionsComponent;
21565
- exports["ɵdp"] = TransactionHeaderRemarksModule;
21566
- exports["ɵdq"] = TransactionHeaderRemarksComponent;
21567
- exports["ɵdr"] = TransactionHeaderReferenceModule;
21568
- exports["ɵds"] = TransactionHeaderReferenceComponent;
21569
- exports["ɵdt"] = TransactionHeaderRelationReferenceModule;
21570
- exports["ɵdu"] = TransactionHeaderRelationReferenceComponent;
21571
- exports["ɵdv"] = TransactionHeaderDeliveryMethodModule;
21572
- exports["ɵdw"] = TransactionLineCheckboxModule;
21573
- exports["ɵdx"] = TransactionLineCheckboxListComponent;
21574
- exports["ɵdy"] = TransactionHeaderDeliveryMethodComponent;
21575
- exports["ɵdz"] = TransactionHeaderPreferredDeliveryDateModule;
22029
+ exports["ɵda"] = PaymentQrCodeModule;
22030
+ exports["ɵdb"] = PaymentQrCodeComponent;
22031
+ exports["ɵdc"] = PaymentComponent;
22032
+ exports["ɵdd"] = PaymentService;
22033
+ exports["ɵde"] = RelationTypeModule;
22034
+ exports["ɵdf"] = RelationTypeComponent;
22035
+ exports["ɵdg"] = RelationGeneralModule;
22036
+ exports["ɵdh"] = RelationSuggestionsListModule;
22037
+ exports["ɵdi"] = RelationSuggestionsListItemModule;
22038
+ exports["ɵdj"] = RelationSuggestionsListItemComponent;
22039
+ exports["ɵdk"] = RelationSuggestionsListComponent;
22040
+ exports["ɵdl"] = RelationGeneralComponent;
22041
+ exports["ɵdm"] = RelationAddressesModule;
22042
+ exports["ɵdn"] = RelationAddressesComponent;
22043
+ exports["ɵdo"] = RelationContactDetailsModule;
22044
+ exports["ɵdp"] = RelationContactDetailsComponent;
22045
+ exports["ɵdq"] = RelationPreferencesModule;
22046
+ exports["ɵdr"] = RelationPreferencesComponent;
22047
+ exports["ɵds"] = TransactionHeaderBlockModule;
22048
+ exports["ɵdt"] = TransactionHeaderBlockComponent;
22049
+ exports["ɵdu"] = TransactionHeaderDeliveryDateModule;
22050
+ exports["ɵdv"] = TransactionHeaderDeliveryDateComponent;
22051
+ exports["ɵdw"] = TransactionHeaderDeliveryOptionsModule;
22052
+ exports["ɵdx"] = TransactionHeaderDeliveryOptionsComponent;
22053
+ exports["ɵdy"] = TransactionHeaderRemarksModule;
22054
+ exports["ɵdz"] = TransactionHeaderRemarksComponent;
21576
22055
  exports["ɵe"] = DictionaryService;
21577
- exports["ɵea"] = TransactionHeaderPreferredDeliveryDateComponent;
21578
- exports["ɵeb"] = DialogTransactionHeaderDeliveryMethodModule;
21579
- exports["ɵec"] = DialogHeaderSearchModule;
21580
- exports["ɵed"] = DialogHeaderSearchComponent;
21581
- exports["ɵee"] = DialogTransactionHeaderDeliveryMethodComponent;
21582
- exports["ɵef"] = DialogTransactionHeaderBaseComponent;
21583
- exports["ɵeg"] = TransactionBaseComponent;
21584
- exports["ɵeh"] = TransactionHeaderPartialDeliveryModule;
21585
- exports["ɵei"] = TransactionHeaderPartialDeliveryComponent;
21586
- exports["ɵej"] = TransactionHeaderDownpaymentPercentageModule;
21587
- exports["ɵek"] = TransactionHeaderDownpaymentPercentageComponent;
21588
- exports["ɵel"] = TransactionHeaderDownpaymentAmountModule;
21589
- exports["ɵem"] = TransactionHeaderDownpaymentAmountComponent;
21590
- exports["ɵen"] = TransactionHeaderDefinitiveModule;
21591
- exports["ɵeo"] = TransactionHeaderDefinitiveComponent;
21592
- exports["ɵep"] = TransactionHeaderBranchModule;
21593
- exports["ɵeq"] = TransactionHeaderBranchComponent;
21594
- exports["ɵer"] = TransactionHeaderAdministrativeRelationModule;
21595
- exports["ɵes"] = TransactionHeaderAdministrativeRelationComponent;
21596
- exports["ɵet"] = TransactionHeaderMarketingModule;
21597
- exports["ɵeu"] = TransactionHeaderMarketingComponent;
21598
- exports["ɵev"] = CheckoutOverviewRelationEditComponent;
21599
- exports["ɵew"] = CheckoutOverviewDeliveryEditComponent;
21600
- exports["ɵex"] = CheckoutOverviewDeliveryAddressComponent;
21601
- exports["ɵey"] = CheckoutOverviewPaymentComponent;
21602
- exports["ɵez"] = CheckoutLoginComponent;
22056
+ exports["ɵea"] = TransactionHeaderReferenceModule;
22057
+ exports["ɵeb"] = TransactionHeaderReferenceComponent;
22058
+ exports["ɵec"] = TransactionHeaderRelationReferenceModule;
22059
+ exports["ɵed"] = TransactionHeaderRelationReferenceComponent;
22060
+ exports["ɵee"] = TransactionHeaderDeliveryMethodModule;
22061
+ exports["ɵef"] = TransactionLineCheckboxModule;
22062
+ exports["ɵeg"] = TransactionLineCheckboxListComponent;
22063
+ exports["ɵeh"] = TransactionHeaderDeliveryMethodComponent;
22064
+ exports["ɵei"] = TransactionHeaderPreferredDeliveryDateModule;
22065
+ exports["ɵej"] = TransactionHeaderPreferredDeliveryDateComponent;
22066
+ exports["ɵek"] = DialogTransactionHeaderDeliveryMethodModule;
22067
+ exports["ɵel"] = DialogHeaderSearchModule;
22068
+ exports["ɵem"] = DialogHeaderSearchComponent;
22069
+ exports["ɵen"] = DialogTransactionHeaderDeliveryMethodComponent;
22070
+ exports["ɵeo"] = TransactionHeaderPartialDeliveryModule;
22071
+ exports["ɵep"] = TransactionHeaderPartialDeliveryComponent;
22072
+ exports["ɵeq"] = TransactionBaseComponent;
22073
+ exports["ɵer"] = TransactionHeaderDownpaymentPercentageModule;
22074
+ exports["ɵes"] = TransactionHeaderDownpaymentPercentageComponent;
22075
+ exports["ɵet"] = TransactionHeaderDownpaymentAmountModule;
22076
+ exports["ɵeu"] = TransactionHeaderDownpaymentAmountComponent;
22077
+ exports["ɵev"] = TransactionHeaderDefinitiveModule;
22078
+ exports["ɵew"] = TransactionHeaderDefinitiveComponent;
22079
+ exports["ɵex"] = TransactionHeaderBranchModule;
22080
+ exports["ɵey"] = TransactionHeaderBranchComponent;
22081
+ exports["ɵez"] = TransactionHeaderAdministrativeRelationModule;
21603
22082
  exports["ɵf"] = TransactionConnectorService;
21604
- exports["ɵfa"] = TransactionFilterCategoriesModule;
21605
- exports["ɵfb"] = TransactionFilterCategoriesComponent;
21606
- exports["ɵfc"] = TransactionHeaderPaymentModule;
21607
- exports["ɵfd"] = TransactionHeaderPaymentComponent;
21608
- exports["ɵfe"] = TransactionLinesGridModule;
21609
- exports["ɵff"] = TransactionBaseGridModule;
21610
- exports["ɵfg"] = TransactionLineSidePanelModule;
21611
- exports["ɵfh"] = TransactionLineSidePanelDefaultModule;
21612
- exports["ɵfi"] = TransactionLinePriceModule;
21613
- exports["ɵfj"] = TransactionLinePriceComponent;
21614
- exports["ɵfk"] = TransactionLineBaseComponent;
21615
- exports["ɵfl"] = TransactionLinePriceListModule;
21616
- exports["ɵfm"] = TransactionLinePriceListComponent;
21617
- exports["ɵfn"] = TransactionLineVatModule;
21618
- exports["ɵfo"] = TransactionLineVatComponent;
21619
- exports["ɵfp"] = TransactionLineQuantityModule;
21620
- exports["ɵfq"] = TransactionLineQuantityComponent;
21621
- exports["ɵfr"] = TransactionLineLineDiscountModule;
21622
- exports["ɵfs"] = TransactionLineLineDiscountComponent;
21623
- exports["ɵft"] = TransactionLineDeliveryMethodModule;
21624
- exports["ɵfu"] = TransactionLineDeliveryMethodComponent;
21625
- exports["ɵfv"] = TransactionLineDeliveryDateModule;
21626
- exports["ɵfw"] = TransactionLineDeliveryDateComponent;
21627
- exports["ɵfx"] = TransactionLineReferenceModule;
21628
- exports["ɵfy"] = TransactionLineReferenceComponent;
21629
- exports["ɵfz"] = TransactionLineCommissionCodeModule;
22083
+ exports["ɵfa"] = TransactionHeaderAdministrativeRelationComponent;
22084
+ exports["ɵfb"] = TransactionHeaderMarketingModule;
22085
+ exports["ɵfc"] = TransactionHeaderMarketingComponent;
22086
+ exports["ɵfd"] = CheckoutOverviewRelationEditComponent;
22087
+ exports["ɵfe"] = CheckoutOverviewDeliveryEditComponent;
22088
+ exports["ɵff"] = CheckoutOverviewDeliveryAddressComponent;
22089
+ exports["ɵfg"] = CheckoutOverviewPaymentComponent;
22090
+ exports["ɵfh"] = CheckoutLoginComponent;
22091
+ exports["ɵfi"] = TransactionFilterCategoriesModule;
22092
+ exports["ɵfj"] = TransactionFilterCategoriesComponent;
22093
+ exports["ɵfk"] = TransactionHeaderPaymentModule;
22094
+ exports["ɵfl"] = TransactionHeaderPaymentComponent;
22095
+ exports["ɵfm"] = TransactionLinesGridModule;
22096
+ exports["ɵfn"] = TransactionBaseGridModule;
22097
+ exports["ɵfo"] = TransactionLineSidePanelModule;
22098
+ exports["ɵfp"] = TransactionLineSidePanelDefaultModule;
22099
+ exports["ɵfq"] = TransactionLinePriceModule;
22100
+ exports["ɵfr"] = TransactionLinePriceComponent;
22101
+ exports["ɵfs"] = TransactionLineBaseComponent;
22102
+ exports["ɵft"] = TransactionLinePriceListModule;
22103
+ exports["ɵfu"] = TransactionLinePriceListComponent;
22104
+ exports["ɵfv"] = TransactionLineVatModule;
22105
+ exports["ɵfw"] = TransactionLineVatComponent;
22106
+ exports["ɵfx"] = TransactionLineQuantityModule;
22107
+ exports["ɵfy"] = TransactionLineQuantityComponent;
22108
+ exports["ɵfz"] = TransactionLineLineDiscountModule;
21630
22109
  exports["ɵg"] = TransactionConnectorAdapterService;
21631
- exports["ɵga"] = TransactionLineCommissionCodeComponent;
21632
- exports["ɵgb"] = TransactionLineWarehouseModule;
21633
- exports["ɵgc"] = TransactionLineWarehouseComponent;
21634
- exports["ɵgd"] = TransactionLineDiscountAmountModule;
21635
- exports["ɵge"] = TransactionLineDiscountAmountComponent;
21636
- exports["ɵgf"] = TransactionLineQuantumDiscountModule;
21637
- exports["ɵgg"] = TransactionLineQuantumDiscountComponent;
21638
- exports["ɵgh"] = TransactionLineSpecialDiscountModule;
21639
- exports["ɵgi"] = TransactionLineSpecialDiscountComponent;
21640
- exports["ɵgj"] = TransactionLineSupplierModule;
21641
- exports["ɵgk"] = TransactionLineSupplierComponent;
21642
- exports["ɵgl"] = TransactionLineDescriptionModule;
21643
- exports["ɵgm"] = TransactionLineDescriptionComponent;
21644
- exports["ɵgn"] = TransactionLineSidePanelDefaultComponent;
21645
- exports["ɵgo"] = TransactionReceivingGoodsHistoryModule;
21646
- exports["ɵgp"] = TransactionHistoryGridModule;
21647
- exports["ɵgq"] = TransactionHistoryGridStatusModule;
21648
- exports["ɵgr"] = TransactionHistoryGridStatusComponent;
21649
- exports["ɵgs"] = TransactionHistoryGridComponent;
21650
- exports["ɵgt"] = TransactionReceivingGoodsHistoryComponent;
21651
- exports["ɵgu"] = TransactionReceivingGoodsDetailsModule;
21652
- exports["ɵgv"] = TransactionReceivingGoodsDetailsComponent;
21653
- exports["ɵgw"] = ArticleService;
21654
- exports["ɵgx"] = TransactionButtonBarModule;
21655
- exports["ɵgy"] = TransactionButtonBarComponent;
21656
- exports["ɵgz"] = TransactionButtonBarButtonComponent;
22110
+ exports["ɵga"] = TransactionLineLineDiscountComponent;
22111
+ exports["ɵgb"] = TransactionLineDeliveryMethodModule;
22112
+ exports["ɵgc"] = TransactionLineDeliveryMethodComponent;
22113
+ exports["ɵgd"] = TransactionLineDeliveryDateModule;
22114
+ exports["ɵge"] = TransactionLineDeliveryDateComponent;
22115
+ exports["ɵgf"] = TransactionLineReferenceModule;
22116
+ exports["ɵgg"] = TransactionLineReferenceComponent;
22117
+ exports["ɵgh"] = TransactionLineCommissionCodeModule;
22118
+ exports["ɵgi"] = TransactionLineCommissionCodeComponent;
22119
+ exports["ɵgj"] = TransactionLineWarehouseModule;
22120
+ exports["ɵgk"] = TransactionLineWarehouseComponent;
22121
+ exports["ɵgl"] = TransactionLineDiscountAmountModule;
22122
+ exports["ɵgm"] = TransactionLineDiscountAmountComponent;
22123
+ exports["ɵgn"] = TransactionLineQuantumDiscountModule;
22124
+ exports["ɵgo"] = TransactionLineQuantumDiscountComponent;
22125
+ exports["ɵgp"] = TransactionLineSpecialDiscountModule;
22126
+ exports["ɵgq"] = TransactionLineSpecialDiscountComponent;
22127
+ exports["ɵgr"] = TransactionLineSupplierModule;
22128
+ exports["ɵgs"] = TransactionLineSupplierComponent;
22129
+ exports["ɵgt"] = TransactionLineDescriptionModule;
22130
+ exports["ɵgu"] = TransactionLineDescriptionComponent;
22131
+ exports["ɵgv"] = TransactionLineSidePanelDefaultComponent;
22132
+ exports["ɵgw"] = TransactionReceivingGoodsHistoryModule;
22133
+ exports["ɵgx"] = TransactionHistoryGridModule;
22134
+ exports["ɵgy"] = TransactionHistoryGridStatusModule;
22135
+ exports["ɵgz"] = TransactionHistoryGridStatusComponent;
21657
22136
  exports["ɵh"] = SelectMultipleCacheService;
21658
- exports["ɵha"] = TransactionLineSidePanelPurchaseModule;
21659
- exports["ɵhb"] = DefaultOkCancelButtonsModule;
21660
- exports["ɵhc"] = DefaultOkCancelButtonsComponent;
21661
- exports["ɵhd"] = TransactionLineSidePanelPurchaseComponent;
21662
- exports["ɵhe"] = TransactionLineSidePanelComponent;
21663
- exports["ɵhf"] = DynamicBaseComponent;
21664
- exports["ɵhg"] = TransactionLineActionButtonsModule;
21665
- exports["ɵhh"] = TransactionArticleTextOverviewModule;
21666
- exports["ɵhi"] = TransactionArticleTextOverviewComponent;
21667
- exports["ɵhj"] = TransactionLineActionButtonsComponent;
21668
- exports["ɵhk"] = TransactionBaseGridComponent;
21669
- exports["ɵhl"] = TransactionGridBaseComponent;
21670
- exports["ɵhm"] = TransactionImageService;
21671
- exports["ɵhn"] = DialogTransactionLineCommissionCodeModule;
21672
- exports["ɵho"] = DialogTransactionLineCommissionCodeComponent;
21673
- exports["ɵhp"] = DialogTransactionLineBaseComponent;
21674
- exports["ɵhq"] = DialogTransactionLineWarehouseModule;
21675
- exports["ɵhr"] = DialogTransactionLineWarehouseComponent;
21676
- exports["ɵhs"] = DialogTransactionLineWarehouseCcModule;
21677
- exports["ɵht"] = DialogTransactionLineWarehouseCcComponent;
21678
- exports["ɵhu"] = DialogTransactionLineDeliveryMethodModule;
21679
- exports["ɵhv"] = DialogTransactionLineDeliveryMethodComponent;
21680
- exports["ɵhw"] = DialogTransactionLineVatModule;
21681
- exports["ɵhx"] = DialogTransactionLineVatComponent;
21682
- exports["ɵhy"] = DialogTransactionLineDiscountModule;
21683
- exports["ɵhz"] = DialogTransactionLinePriceListModule;
22137
+ exports["ɵha"] = TransactionHistoryGridComponent;
22138
+ exports["ɵhb"] = TransactionReceivingGoodsHistoryComponent;
22139
+ exports["ɵhc"] = TransactionReceivingGoodsDetailsModule;
22140
+ exports["ɵhd"] = TransactionReceivingGoodsDetailsComponent;
22141
+ exports["ɵhe"] = ArticleService;
22142
+ exports["ɵhf"] = TransactionButtonBarModule;
22143
+ exports["ɵhg"] = TransactionButtonBarComponent;
22144
+ exports["ɵhh"] = TransactionButtonBarButtonComponent;
22145
+ exports["ɵhi"] = TransactionLineSidePanelPurchaseModule;
22146
+ exports["ɵhj"] = DefaultOkCancelButtonsModule;
22147
+ exports["ɵhk"] = DefaultOkCancelButtonsComponent;
22148
+ exports["ɵhl"] = TransactionLineSidePanelPurchaseComponent;
22149
+ exports["ɵhm"] = TransactionLineSidePanelComponent;
22150
+ exports["ɵhn"] = DynamicBaseComponent;
22151
+ exports["ɵho"] = TransactionLineActionButtonsModule;
22152
+ exports["ɵhp"] = TransactionArticleTextOverviewModule;
22153
+ exports["ɵhq"] = TransactionArticleTextOverviewComponent;
22154
+ exports["ɵhr"] = TransactionLineActionButtonsComponent;
22155
+ exports["ɵhs"] = TransactionBaseGridComponent;
22156
+ exports["ɵht"] = TransactionGridBaseComponent;
22157
+ exports["ɵhu"] = TransactionImageService;
22158
+ exports["ɵhv"] = DialogTransactionLineCommissionCodeModule;
22159
+ exports["ɵhw"] = DialogTransactionLineCommissionCodeComponent;
22160
+ exports["ɵhx"] = DialogTransactionLineBaseComponent;
22161
+ exports["ɵhy"] = DialogTransactionLineWarehouseModule;
22162
+ exports["ɵhz"] = DialogTransactionLineWarehouseComponent;
21684
22163
  exports["ɵi"] = BusinessObjectCacheManagerService;
21685
- exports["ɵia"] = DialogTransactionLinePriceListComponent;
21686
- exports["ɵib"] = DialogTransactionLineDiscountComponent;
21687
- exports["ɵic"] = TransactionLinesGridComponent;
21688
- exports["ɵid"] = DiscountModule;
21689
- exports["ɵie"] = DiscountComponent;
21690
- exports["ɵif"] = TransactionQuickAccessOverviewModule;
21691
- exports["ɵig"] = TransactionQuickAccessOverviewComponent;
21692
- exports["ɵih"] = TransactionQuickAccessOrderDeliveryModule;
21693
- exports["ɵii"] = TransactionQuickAccessOrderDeliveryComponent;
21694
- exports["ɵij"] = TransactionOrderConfirmationGridModule;
21695
- exports["ɵik"] = TransactionOrderConfirmationGridComponent;
21696
- exports["ɵil"] = TransactionReceivedGoodsGridModule;
21697
- exports["ɵim"] = DialogTransactionLineWarehouseLocationModule;
21698
- exports["ɵin"] = TransactionLineWarehouseLocationModule;
21699
- exports["ɵio"] = TransactionLineWarehouseLocationComponent;
21700
- exports["ɵip"] = DialogTransactionLineWarehouseLocationComponent;
21701
- exports["ɵiq"] = TransactionLineWarehouseLocationButtonModule;
21702
- exports["ɵir"] = TransactionLineWarehouseLocationButtonComponent;
21703
- exports["ɵis"] = TransactionReceivedGoodsGridComponent;
21704
- exports["ɵit"] = ViewModeButtonsModule;
21705
- exports["ɵiu"] = ViewModeButtonsComponent;
21706
- exports["ɵiv"] = TransactionGridModule;
21707
- exports["ɵiw"] = TransactionGridComponent;
21708
- exports["ɵix"] = TransactionTileModule;
21709
- exports["ɵiy"] = TransactionTileComponent;
21710
- exports["ɵiz"] = TransactionOverviewLineModule;
22164
+ exports["ɵia"] = DialogTransactionLineWarehouseCcModule;
22165
+ exports["ɵib"] = DialogTransactionLineWarehouseCcComponent;
22166
+ exports["ɵic"] = DialogTransactionLineDeliveryMethodModule;
22167
+ exports["ɵid"] = DialogTransactionLineDeliveryMethodComponent;
22168
+ exports["ɵie"] = DialogTransactionLineVatModule;
22169
+ exports["ɵif"] = DialogTransactionLineVatComponent;
22170
+ exports["ɵig"] = DialogTransactionLineDiscountModule;
22171
+ exports["ɵih"] = DialogTransactionLinePriceListModule;
22172
+ exports["ɵii"] = DialogTransactionLinePriceListComponent;
22173
+ exports["ɵij"] = DialogTransactionLineDiscountComponent;
22174
+ exports["ɵik"] = TransactionLinesGridComponent;
22175
+ exports["ɵil"] = DiscountModule;
22176
+ exports["ɵim"] = DiscountComponent;
22177
+ exports["ɵin"] = TransactionQuickAccessOverviewModule;
22178
+ exports["ɵio"] = TransactionQuickAccessOverviewComponent;
22179
+ exports["ɵip"] = TransactionQuickAccessOrderDeliveryModule;
22180
+ exports["ɵiq"] = TransactionQuickAccessOrderDeliveryComponent;
22181
+ exports["ɵir"] = TransactionOrderConfirmationGridModule;
22182
+ exports["ɵis"] = TransactionOrderConfirmationGridComponent;
22183
+ exports["ɵit"] = TransactionReceivedGoodsGridModule;
22184
+ exports["ɵiu"] = DialogTransactionLineWarehouseLocationModule;
22185
+ exports["ɵiv"] = TransactionLineWarehouseLocationModule;
22186
+ exports["ɵiw"] = TransactionLineWarehouseLocationComponent;
22187
+ exports["ɵix"] = DialogTransactionLineWarehouseLocationComponent;
22188
+ exports["ɵiy"] = TransactionLineWarehouseLocationButtonModule;
22189
+ exports["ɵiz"] = TransactionLineWarehouseLocationButtonComponent;
21711
22190
  exports["ɵj"] = CacheField;
21712
- exports["ɵja"] = EditableLabelModule;
21713
- exports["ɵjb"] = EditableLabelComponent;
21714
- exports["ɵjc"] = TransactionBaseLineModule;
21715
- exports["ɵjd"] = TransactionLineImageAndDescriptionModule;
21716
- exports["ɵje"] = TransactionLineImageAndDescriptionComponent;
21717
- exports["ɵjf"] = TransactionBaseLineComponent;
21718
- exports["ɵjg"] = TransactionLinesLineBaseComponent;
21719
- exports["ɵjh"] = TransactionLineCommissionButtonModule;
21720
- exports["ɵji"] = TransactionLineCommissionButtonComponent;
21721
- exports["ɵjj"] = TransactionLineWarehouseButtonModule;
21722
- exports["ɵjk"] = TransactionLineWarehouseButtonComponent;
21723
- exports["ɵjl"] = TransactionLineDeliveryButtonModule;
21724
- exports["ɵjm"] = TransactionLineDeliveryButtonComponent;
21725
- exports["ɵjn"] = TransactionLineDeliveryDateButtonModule;
21726
- exports["ɵjo"] = TransactionLineDeliveryDateButtonComponent;
21727
- exports["ɵjp"] = TransactionOverviewLineComponent;
21728
- exports["ɵjq"] = TransactionOrderDeliveryLineModule;
21729
- exports["ɵjr"] = StatusBarModule;
21730
- exports["ɵjs"] = StatusBarComponent;
21731
- exports["ɵjt"] = TransactionOrderDeliveryLineComponent;
21732
- exports["ɵju"] = TransactionReceiveGoodsLineModule;
21733
- exports["ɵjv"] = TransactionReceiveGoodsLineComponent;
21734
- exports["ɵjw"] = TransactionSearchResultModule;
21735
- exports["ɵjx"] = TransactionSearchSalesOrderTileModule;
21736
- exports["ɵjy"] = TransactionSearchSalesOrderTileComponent;
21737
- exports["ɵjz"] = TransactionSearchTileBaseComponent;
22191
+ exports["ɵja"] = TransactionReceivedGoodsGridComponent;
22192
+ exports["ɵjb"] = ViewModeButtonsModule;
22193
+ exports["ɵjc"] = ViewModeButtonsComponent;
22194
+ exports["ɵjd"] = TransactionGridModule;
22195
+ exports["ɵje"] = TransactionGridComponent;
22196
+ exports["ɵjf"] = TransactionTileModule;
22197
+ exports["ɵjg"] = TransactionTileComponent;
22198
+ exports["ɵjh"] = TransactionOverviewLineModule;
22199
+ exports["ɵji"] = EditableLabelModule;
22200
+ exports["ɵjj"] = EditableLabelComponent;
22201
+ exports["ɵjk"] = TransactionBaseLineModule;
22202
+ exports["ɵjl"] = TransactionLineImageAndDescriptionModule;
22203
+ exports["ɵjm"] = TransactionLineImageAndDescriptionComponent;
22204
+ exports["ɵjn"] = TransactionBaseLineComponent;
22205
+ exports["ɵjo"] = TransactionLinesLineBaseComponent;
22206
+ exports["ɵjp"] = TransactionLineCommissionButtonModule;
22207
+ exports["ɵjq"] = TransactionLineCommissionButtonComponent;
22208
+ exports["ɵjr"] = TransactionLineWarehouseButtonModule;
22209
+ exports["ɵjs"] = TransactionLineWarehouseButtonComponent;
22210
+ exports["ɵjt"] = TransactionLineDeliveryButtonModule;
22211
+ exports["ɵju"] = TransactionLineDeliveryButtonComponent;
22212
+ exports["ɵjv"] = TransactionLineDeliveryDateButtonModule;
22213
+ exports["ɵjw"] = TransactionLineDeliveryDateButtonComponent;
22214
+ exports["ɵjx"] = TransactionOverviewLineComponent;
22215
+ exports["ɵjy"] = TransactionOrderDeliveryLineModule;
22216
+ exports["ɵjz"] = TransactionOrderDeliveryLineComponent;
21738
22217
  exports["ɵk"] = SelectMultipleParameterizedCacheService;
21739
- exports["ɵka"] = TransactionSearchPurchaseOrderTileModule;
21740
- exports["ɵkb"] = TransactionSearchPurchaseOrderTileComponent;
21741
- exports["ɵkc"] = TransactionSearchSalesOrderGridModule;
21742
- exports["ɵkd"] = TransactionSearchSalesOrderGridComponent;
21743
- exports["ɵke"] = TransactionSearchGridBaseComponent;
21744
- exports["ɵkf"] = TransactionSearchPurchaseOrderGridModule;
21745
- exports["ɵkg"] = TransactionSearchPurchaseOrderGridComponent;
21746
- exports["ɵkh"] = TransactionSearchHeaderModule;
21747
- exports["ɵki"] = TransactionSearchHeaderComponent;
21748
- exports["ɵkj"] = TransactionSearchGridModule;
21749
- exports["ɵkk"] = TransactionSearchGridComponent;
21750
- exports["ɵkl"] = TransactionSearchTileModule;
21751
- exports["ɵkm"] = TransactionSearchTileComponent;
21752
- exports["ɵkn"] = TransactionSearchResultComponent;
21753
- exports["ɵko"] = TransactionSalesOrderFilterModule;
21754
- exports["ɵkp"] = TransactionSalesOrderFilterContentOrderModule;
21755
- exports["ɵkq"] = TransactionFilterItemModule;
21756
- exports["ɵkr"] = TransactionFilterItemComponent;
21757
- exports["ɵks"] = TransactionSalesOrderFilterContentOrderComponent;
21758
- exports["ɵkt"] = TransactionFilterContentBaseComponent;
21759
- exports["ɵku"] = FilterRequestService;
21760
- exports["ɵkv"] = TransactionSalesOrderFilterContentLogisticsModule;
21761
- exports["ɵkw"] = TransactionFilterHistoricStateModule;
21762
- exports["ɵkx"] = TransactionFilterHistoricStateComponent;
21763
- exports["ɵky"] = TransactionSalesOrderFilterContentLogisticsComponent;
21764
- exports["ɵkz"] = TransactionSalesOrderFilterContentArticleModule;
22218
+ exports["ɵka"] = TransactionReceiveGoodsLineModule;
22219
+ exports["ɵkb"] = TransactionReceiveGoodsLineComponent;
22220
+ exports["ɵkc"] = TransactionSearchResultModule;
22221
+ exports["ɵkd"] = TransactionSearchSalesOrderTileModule;
22222
+ exports["ɵke"] = TransactionSearchSalesOrderTileComponent;
22223
+ exports["ɵkf"] = TransactionSearchTileBaseComponent;
22224
+ exports["ɵkg"] = TransactionSearchPurchaseOrderTileModule;
22225
+ exports["ɵkh"] = TransactionSearchPurchaseOrderTileComponent;
22226
+ exports["ɵki"] = TransactionSearchSalesOrderGridModule;
22227
+ exports["ɵkj"] = TransactionSearchSalesOrderGridComponent;
22228
+ exports["ɵkk"] = TransactionSearchGridBaseComponent;
22229
+ exports["ɵkl"] = TransactionSearchPurchaseOrderGridModule;
22230
+ exports["ɵkm"] = TransactionSearchPurchaseOrderGridComponent;
22231
+ exports["ɵkn"] = TransactionSearchHeaderModule;
22232
+ exports["ɵko"] = TransactionSearchHeaderComponent;
22233
+ exports["ɵkp"] = TransactionSearchGridModule;
22234
+ exports["ɵkq"] = TransactionSearchGridComponent;
22235
+ exports["ɵkr"] = TransactionSearchTileModule;
22236
+ exports["ɵks"] = TransactionSearchTileComponent;
22237
+ exports["ɵkt"] = TransactionSearchResultComponent;
22238
+ exports["ɵku"] = TransactionSalesOrderFilterModule;
22239
+ exports["ɵkv"] = TransactionSalesOrderFilterContentOrderModule;
22240
+ exports["ɵkw"] = TransactionFilterItemModule;
22241
+ exports["ɵkx"] = TransactionFilterItemComponent;
22242
+ exports["ɵky"] = TransactionSalesOrderFilterContentOrderComponent;
22243
+ exports["ɵkz"] = TransactionFilterContentBaseComponent;
21765
22244
  exports["ɵl"] = ErrorService;
21766
- exports["ɵla"] = TransactionSalesOrderFilterContentArticleComponent;
21767
- exports["ɵlb"] = TransactionSalesOrderFilterComponent;
21768
- exports["ɵlc"] = TransactionFilterBaseComponent;
21769
- exports["ɵld"] = TransactionPurchaseOrderFilterModule;
21770
- exports["ɵle"] = TransactionPurchaseOrderFilterContentOrderModule;
21771
- exports["ɵlf"] = TransactionPurchaseOrderFilterContentOrderComponent;
21772
- exports["ɵlg"] = TransactionPurchaseOrderFilterContentLogisticsModule;
21773
- exports["ɵlh"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
21774
- exports["ɵli"] = TransactionPurchaseOrderFilterContentArticleModule;
21775
- exports["ɵlj"] = TransactionPurchaseOrderFilterContentArticleComponent;
21776
- exports["ɵlk"] = TransactionPurchaseOrderFilterComponent;
21777
- exports["ɵll"] = TransactionFilterModule;
21778
- exports["ɵlm"] = TransactionFilterComponent;
22245
+ exports["ɵla"] = FilterRequestService;
22246
+ exports["ɵlb"] = TransactionSalesOrderFilterContentLogisticsModule;
22247
+ exports["ɵlc"] = TransactionFilterHistoricStateModule;
22248
+ exports["ɵld"] = TransactionFilterHistoricStateComponent;
22249
+ exports["ɵle"] = TransactionSalesOrderFilterContentLogisticsComponent;
22250
+ exports["ɵlf"] = TransactionSalesOrderFilterContentArticleModule;
22251
+ exports["ɵlg"] = TransactionSalesOrderFilterContentArticleComponent;
22252
+ exports["ɵlh"] = TransactionSalesOrderFilterComponent;
22253
+ exports["ɵli"] = TransactionFilterBaseComponent;
22254
+ exports["ɵlj"] = TransactionPurchaseOrderFilterModule;
22255
+ exports["ɵlk"] = TransactionPurchaseOrderFilterContentOrderModule;
22256
+ exports["ɵll"] = TransactionPurchaseOrderFilterContentOrderComponent;
22257
+ exports["ɵlm"] = TransactionPurchaseOrderFilterContentLogisticsModule;
22258
+ exports["ɵln"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
22259
+ exports["ɵlo"] = TransactionPurchaseOrderFilterContentArticleModule;
22260
+ exports["ɵlp"] = TransactionPurchaseOrderFilterContentArticleComponent;
22261
+ exports["ɵlq"] = TransactionPurchaseOrderFilterComponent;
22262
+ exports["ɵlr"] = TransactionFilterModule;
22263
+ exports["ɵls"] = TransactionFilterComponent;
21779
22264
  exports["ɵm"] = SelectSingleCacheService;
21780
22265
  exports["ɵn"] = ArticleConnectorService;
21781
22266
  exports["ɵo"] = CoreModule;