@colijnit/transaction 12.1.59 → 12.1.60

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 (172) hide show
  1. package/bundles/colijnit-transaction.umd.js +1384 -1869
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +282 -278
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +283 -279
  6. package/esm2015/lib/cache/parameter-cache-field.js +2 -2
  7. package/esm2015/lib/cache/service/business-object-cache-manager.service.js +2 -2
  8. package/esm2015/lib/cache/service/select-multiple-cache.service.js +1 -1
  9. package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +1 -1
  10. package/esm2015/lib/cache/service/select-single-cache.service.js +1 -1
  11. package/esm2015/lib/component/avatar/avatar.component.js +8 -5
  12. package/esm2015/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +1 -1
  13. package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +2 -5
  14. package/esm2015/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.js +2 -2
  15. package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +19 -133
  16. package/esm2015/lib/component/checkout/checkout.component.js +8 -3
  17. package/esm2015/lib/component/core/base/transaction-filter-popup-base.component.js +1 -1
  18. package/esm2015/lib/component/core/base/transaction-header-base.component.js +1 -1
  19. package/esm2015/lib/component/core/base/transaction-header-filter-popup-base.component.js +1 -1
  20. package/esm2015/lib/component/core/base/transaction-line-base.component.js +1 -1
  21. package/esm2015/lib/component/core/relation/customer-groups.component.js +1 -1
  22. package/esm2015/lib/component/editable-label/editable-label.component.js +4 -1
  23. package/esm2015/lib/component/quick-send-button/quick-send-button.component.js +116 -0
  24. package/esm2015/lib/component/quick-send-button/quick-send-button.module.js +27 -0
  25. package/esm2015/lib/component/relation/relation-address/relation-address.component.js +4 -4
  26. package/esm2015/lib/component/relation/relation-address-select/relation-address-select.component.js +7 -8
  27. package/esm2015/lib/component/relation/relation-address-tile/relation-address-tile.component.js +1 -1
  28. package/esm2015/lib/component/relation/relation-addresses/relation-addresses.component.js +9 -17
  29. package/esm2015/lib/component/relation/relation-base.component.js +2 -2
  30. package/esm2015/lib/component/relation/relation-contact-details/relation-contact-details.component.js +4 -4
  31. package/esm2015/lib/component/relation/relation-general/relation-general.component.js +13 -10
  32. package/esm2015/lib/component/relation/relation-preferences/relation-preferences.component.js +2 -2
  33. package/esm2015/lib/component/relation/relation-suggestions-list/relation-suggestions-list.component.js +1 -1
  34. package/esm2015/lib/component/relation/relation-suggestions-list-item/relation-suggestions-list-item.component.js +1 -1
  35. package/esm2015/lib/component/relation/relation-type/relation-type.component.js +3 -3
  36. package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.js +5 -6
  37. package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.module.js +1 -5
  38. package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +2 -2
  39. package/esm2015/lib/component/transaction/transaction.component.js +6 -2
  40. package/esm2015/lib/component/transaction/transaction.module.js +4 -2
  41. package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.component.js +2 -2
  42. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +103 -59
  43. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.module.js +5 -3
  44. package/esm2015/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.js +9 -6
  45. package/esm2015/lib/component/transaction-header-fields/transaction-header-branch.component.js +8 -5
  46. package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +9 -3
  47. package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +6 -4
  48. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/service/transaction-order-delivery.service.js +15 -0
  49. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +56 -30
  50. package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.module.js +4 -3
  51. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.component.js +1 -1
  52. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +1 -1
  53. package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-button.component.js +7 -4
  54. package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.component.js +9 -6
  55. package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +1 -2
  56. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +21 -5
  57. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +2 -2
  58. package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-article/transaction-purchase-order-filter-content-article.component.js +9 -6
  59. package/esm2015/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-order/transaction-purchase-order-filter-content-order.component.js +7 -4
  60. package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-article/transaction-sales-order-filter-content-article.component.js +9 -6
  61. package/esm2015/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-order/transaction-sales-order-filter-content-order.component.js +9 -6
  62. package/esm2015/lib/model/relation-any-type.js +1 -1
  63. package/esm2015/lib/pipe/co-currency.pipe.js +2 -2
  64. package/esm2015/lib/pipe/date-duration.pipe.js +2 -2
  65. package/esm2015/lib/pipe/delivery-time.pipe.js +2 -2
  66. package/esm2015/lib/service/article-connector.service.js +10 -6
  67. package/esm2015/lib/service/dictionary.service.js +2 -2
  68. package/esm2015/lib/service/error.service.js +1 -1
  69. package/esm2015/lib/service/payment.service.js +1 -1
  70. package/esm2015/lib/service/pending-reason.service.js +25 -33
  71. package/esm2015/lib/service/relation-connector.service.js +192 -0
  72. package/esm2015/lib/service/relation.service.js +120 -0
  73. package/esm2015/lib/service/shared-connector.service.js +2 -2
  74. package/esm2015/lib/service/shared.service.js +10 -6
  75. package/esm2015/lib/service/transaction-connector-adapter.service.js +69 -140
  76. package/esm2015/lib/service/transaction-connector.service.js +21 -59
  77. package/esm2015/lib/service/transaction-event.service.js +4 -2
  78. package/esm2015/lib/service/transaction-mapping.service.js +2 -1
  79. package/esm2015/lib/service/transaction.service.js +29 -83
  80. package/fesm2015/colijnit-transaction.js +1051 -1518
  81. package/fesm2015/colijnit-transaction.js.map +1 -1
  82. package/lib/cache/service/business-object-cache-manager.service.d.ts +2 -1
  83. package/lib/cache/service/select-multiple-cache.service.d.ts +1 -1
  84. package/lib/cache/service/select-multiple-parameterized-cache.service.d.ts +1 -1
  85. package/lib/cache/service/select-single-cache.service.d.ts +2 -1
  86. package/lib/component/avatar/avatar.component.d.ts +5 -3
  87. package/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.d.ts +1 -1
  88. package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +3 -5
  89. package/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.d.ts +2 -2
  90. package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +9 -14
  91. package/lib/component/core/base/transaction-filter-popup-base.component.d.ts +1 -1
  92. package/lib/component/core/base/transaction-header-base.component.d.ts +1 -1
  93. package/lib/component/core/base/transaction-header-filter-popup-base.component.d.ts +1 -1
  94. package/lib/component/core/base/transaction-line-base.component.d.ts +1 -1
  95. package/lib/component/core/relation/customer-groups.component.d.ts +1 -1
  96. package/lib/component/editable-label/editable-label.component.d.ts +1 -0
  97. package/lib/component/editable-label/style/_layout.scss +9 -0
  98. package/lib/component/editable-label/style/_material-definition.scss +1 -0
  99. package/lib/component/editable-label/style/material.scss +1 -1
  100. package/lib/component/quick-send-button/quick-send-button.component.d.ts +31 -0
  101. package/lib/component/quick-send-button/quick-send-button.module.d.ts +2 -0
  102. package/lib/component/quick-send-button/style/_layout.scss +52 -1
  103. package/lib/component/quick-send-button/style/_material-definition.scss +4 -0
  104. package/lib/component/relation/relation-address/relation-address.component.d.ts +2 -2
  105. package/lib/component/relation/relation-address-select/relation-address-select.component.d.ts +3 -4
  106. package/lib/component/relation/relation-address-tile/relation-address-tile.component.d.ts +1 -1
  107. package/lib/component/relation/relation-addresses/relation-addresses.component.d.ts +5 -5
  108. package/lib/component/relation/relation-base.component.d.ts +2 -2
  109. package/lib/component/relation/relation-contact-details/relation-contact-details.component.d.ts +1 -1
  110. package/lib/component/relation/relation-general/relation-general.component.d.ts +6 -4
  111. package/lib/component/relation/relation-preferences/relation-preferences.component.d.ts +1 -1
  112. package/lib/component/relation/relation-suggestions-list/relation-suggestions-list.component.d.ts +1 -1
  113. package/lib/component/relation/relation-suggestions-list-item/relation-suggestions-list-item.component.d.ts +1 -1
  114. package/lib/component/relation/relation-type/relation-type.component.d.ts +2 -2
  115. package/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.d.ts +2 -3
  116. package/lib/component/transaction/style/_layout.scss +4 -21
  117. package/lib/component/transaction/style/_material-definition.scss +1 -4
  118. package/lib/component/transaction-header/transaction-header/transaction-header.component.d.ts +1 -1
  119. package/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.d.ts +17 -12
  120. package/lib/component/transaction-header-fields/transaction-header-administrative-relation.component.d.ts +4 -2
  121. package/lib/component/transaction-header-fields/transaction-header-branch.component.d.ts +5 -3
  122. package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +3 -1
  123. package/lib/component/transaction-line/transaction-base-line/style/_layout.scss +3 -0
  124. package/lib/component/transaction-line/transaction-base-line/style/_material-definition.scss +6 -0
  125. package/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.d.ts +2 -1
  126. package/lib/component/transaction-line/transaction-line/style/_layout.scss +14 -8
  127. package/lib/component/transaction-line/transaction-order-delivery-line/service/transaction-order-delivery.service.d.ts +4 -0
  128. package/lib/component/transaction-line/transaction-order-delivery-line/style/_layout.scss +4 -4
  129. package/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.d.ts +9 -4
  130. package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +1 -1
  131. package/lib/component/transaction-line-fields/transaction-line-supplier-button.component.d.ts +3 -1
  132. package/lib/component/transaction-line-fields/transaction-line-supplier.component.d.ts +4 -2
  133. package/lib/component/transaction-lines/style/material.scss +1 -0
  134. package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/style/_layout.scss +4 -0
  135. package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +10 -3
  136. package/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-article/transaction-purchase-order-filter-content-article.component.d.ts +3 -1
  137. package/lib/component/transaction-search/transaction-filter-content/purchase-order-filter-content/transaction-purchase-order-filter-content-order/transaction-purchase-order-filter-content-order.component.d.ts +3 -1
  138. package/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-article/transaction-sales-order-filter-content-article.component.d.ts +3 -1
  139. package/lib/component/transaction-search/transaction-filter-content/sales-order-filter-content/transaction-sales-order-filter-content-order/transaction-sales-order-filter-content-order.component.d.ts +3 -1
  140. package/lib/model/relation-any-type.d.ts +2 -2
  141. package/lib/service/article-connector.service.d.ts +3 -1
  142. package/lib/service/error.service.d.ts +1 -1
  143. package/lib/service/pending-reason.service.d.ts +5 -5
  144. package/lib/service/relation-connector.service.d.ts +34 -0
  145. package/lib/service/relation.service.d.ts +37 -0
  146. package/lib/service/shared.service.d.ts +3 -1
  147. package/lib/service/transaction-connector-adapter.service.d.ts +16 -25
  148. package/lib/service/transaction-connector.service.d.ts +14 -25
  149. package/lib/service/transaction-event.service.d.ts +4 -2
  150. package/lib/service/transaction.service.d.ts +9 -25
  151. package/lib/style/_variables.scss +1 -1
  152. package/package.json +9 -3
  153. package/esm2015/lib/factory/business-object-factory.js +0 -120
  154. package/esm2015/lib/factory/decorators/boolean.decorator.js +0 -102
  155. package/esm2015/lib/factory/decorators/complex-array.decorator.js +0 -55
  156. package/esm2015/lib/factory/decorators/complex-field.decorator.js +0 -57
  157. package/esm2015/lib/factory/decorators/date-field.decorator.js +0 -36
  158. package/esm2015/lib/factory/decorators/string-number.decorator.js +0 -43
  159. package/esm2015/lib/model/business-object.js +0 -81
  160. package/esm2015/lib/utils/array-utils.js +0 -183
  161. package/esm2015/lib/utils/is-nill.function.js +0 -5
  162. package/esm2015/lib/utils/string-utils.js +0 -64
  163. package/lib/factory/business-object-factory.d.ts +0 -23
  164. package/lib/factory/decorators/boolean.decorator.d.ts +0 -43
  165. package/lib/factory/decorators/complex-array.decorator.d.ts +0 -25
  166. package/lib/factory/decorators/complex-field.decorator.d.ts +0 -25
  167. package/lib/factory/decorators/date-field.decorator.d.ts +0 -17
  168. package/lib/factory/decorators/string-number.decorator.d.ts +0 -22
  169. package/lib/model/business-object.d.ts +0 -7
  170. package/lib/utils/array-utils.d.ts +0 -57
  171. package/lib/utils/is-nill.function.d.ts +0 -1
  172. package/lib/utils/string-utils.d.ts +0 -22
@@ -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('@colijnit/transactionapi/build/model/validation-result'), 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/model/transaction-down-payment-info.bo'), require('@colijnit/transactionapi/build/model/transaction-lock-result.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/model/get-purchase-order-confirmation'), 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/enum/refcode/stock-status.enum'), 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', '@colijnit/transactionapi/build/model/validation-result', '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/model/transaction-down-payment-info.bo', '@colijnit/transactionapi/build/model/transaction-lock-result.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/model/get-purchase-order-confirmation', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@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.validationResult, 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.transactionDownPaymentInfo_bo, global.transactionLockResult_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.getPurchaseOrderConfirmation, global.receiveGoodsForPurchaseOrderRequest_bo, global.purchaseOrderLineReceiptDetails_bo, global.stockStatus_enum, 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, validationResult, 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, transactionDownPaymentInfo_bo, transactionLockResult_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, getPurchaseOrderConfirmation, receiveGoodsForPurchaseOrderRequest_bo, purchaseOrderLineReceiptDetails_bo, stockStatus_enum, 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';
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/ioneconnector/build/utils/string-utils'), require('@colijnit/transactionapi/build/model/marketing.bo'), require('@colijnit/transactionapi/build/model/country.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/delivery-option.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/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/payment-method.bo'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/transaction'), 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/transaction-down-payment-info.bo'), require('@colijnit/transactionapi/build/model/transaction-lock-result.bo'), require('@colijnit/mainapi/build/model/privacy-setting.bo'), require('@colijnit/relationapi/build/model/relation-privacy-setting.bo'), require('@colijnit/ioneconnector/build/factory/business-object-factory'), require('@colijnit/ioneconnector/build/utils/image-utils'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/mainapi/build/model/tag'), require('@colijnit/transactionapi/build/model/delivery-order-status.bo'), require('@colijnit/relationapi/build/model/sales-person.bo'), require('@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo'), require('@colijnit/sharedapi/build/sharedapi'), 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/sharedcomponents'), require('@colijnit/relationapi/build/model/customer-full-object.bo'), require('@colijnit/articleapi/build/enum/relation-status.enum'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/relationapi'), require('@colijnit/relationapi/build/model/supplier-full-object.bo'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/relationapi/build/model/branch-lov.bo'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@angular/animations'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/relationapi/build/enum/address-type.enum'), require('@angular/common'), require('@colijnit/ioneconnector/build/utils/date-utils'), require('@colijnit/ioneconnector/build/utils/number-utils'), require('@angular/forms'), require('@colijnit/relationapi/build/model/nul-relation-object'), require('@colijnit/relationapi/build/model/address.bo'), require('@colijnit/ioneconnector/build/utils/function/is-nill.function'), 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/transaction-search-view-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@colijnit/transactionapi/build/model/get-purchase-order-confirmation'), 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/enum/refcode/stock-status.enum'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/sharedapi/build/model/co-document.bo'), require('@colijnit/ioneconnector/build/model/validation-result'), require('@colijnit/relationapi/build/model/relation.bo'), require('@colijnit/relationapi/build/enum/relation-name-kind.enum'), require('@colijnit/relationapi/build/enum/gender-type.enum'), require('@colijnit/ioneconnector/build/utils/function-utils'), require('@colijnit/relationapi/build/model/contact-option.bo'), require('@colijnit/relationapi/build/enum/communication-type.enum'), require('@colijnit/ioneconnector/build/utils/business-object-utils'), require('@angular/cdk/scrolling'), require('@colijnit/relationapi/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/sharedapi/build/model/report/email-order-confirmation'), require('@colijnit/sharedapi/build/model/report/print-order-confirmation'), require('@colijnit/sharedapi/build/model/report/pdf-order-confirmation'), 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/ioneconnector/build/utils/string-utils', '@colijnit/transactionapi/build/model/marketing.bo', '@colijnit/transactionapi/build/model/country.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/delivery-option.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/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/payment-method.bo', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/transaction', '@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/transaction-down-payment-info.bo', '@colijnit/transactionapi/build/model/transaction-lock-result.bo', '@colijnit/mainapi/build/model/privacy-setting.bo', '@colijnit/relationapi/build/model/relation-privacy-setting.bo', '@colijnit/ioneconnector/build/factory/business-object-factory', '@colijnit/ioneconnector/build/utils/image-utils', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/mainapi/build/model/tag', '@colijnit/transactionapi/build/model/delivery-order-status.bo', '@colijnit/relationapi/build/model/sales-person.bo', '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo', '@colijnit/sharedapi/build/sharedapi', '@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/sharedcomponents', '@colijnit/relationapi/build/model/customer-full-object.bo', '@colijnit/articleapi/build/enum/relation-status.enum', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/relationapi', '@colijnit/relationapi/build/model/supplier-full-object.bo', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/relationapi/build/model/branch-lov.bo', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@angular/animations', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/relationapi/build/enum/address-type.enum', '@angular/common', '@colijnit/ioneconnector/build/utils/date-utils', '@colijnit/ioneconnector/build/utils/number-utils', '@angular/forms', '@colijnit/relationapi/build/model/nul-relation-object', '@colijnit/relationapi/build/model/address.bo', '@colijnit/ioneconnector/build/utils/function/is-nill.function', '@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/transaction-search-view-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@colijnit/transactionapi/build/model/get-purchase-order-confirmation', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/relationapi/build/model/relation-request', '@colijnit/sharedapi/build/model/co-document.bo', '@colijnit/ioneconnector/build/model/validation-result', '@colijnit/relationapi/build/model/relation.bo', '@colijnit/relationapi/build/enum/relation-name-kind.enum', '@colijnit/relationapi/build/enum/gender-type.enum', '@colijnit/ioneconnector/build/utils/function-utils', '@colijnit/relationapi/build/model/contact-option.bo', '@colijnit/relationapi/build/enum/communication-type.enum', '@colijnit/ioneconnector/build/utils/business-object-utils', '@angular/cdk/scrolling', '@colijnit/relationapi/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/sharedapi/build/model/report/email-order-confirmation', '@colijnit/sharedapi/build/model/report/print-order-confirmation', '@colijnit/sharedapi/build/model/report/pdf-order-confirmation', '@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.stringUtils, global.marketing_bo, global.country_bo, global.deliveryMethod_bo, global.deliveryOption_bo, global.articleFullObject, global.customerGroup_bo, global.cashRegister, global.priceList, global.vat, global.onHoldCode_bo, global.warehouse_bo, global.paymentMethod_bo, global.objectUtils, global.getPostalCodeRetrievalOutputParams, global.transaction, 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.transactionDownPaymentInfo_bo, global.transactionLockResult_bo, global.privacySetting_bo, global.relationPrivacySetting_bo, global.businessObjectFactory, global.imageUtils, global.coDomainValue_bo, global.tag, global.deliveryOrderStatus_bo, global.salesPerson_bo, global.stockStickersPrintLayouts_bo, global.sharedapi, global.resolvePendingReasonRequest_bo, global.articles, global.stockLocation_bo, global.articleLight_bo, global.turnoverGroupImage_bo, global.mainArticle_bo, global.resolveHeaderPendingReasonRequest_bo, global.docDeliveryBatch_bo, global.i4, global.customerFullObject_bo, global.relationStatus_enum, global.relationKind_enum, global.relationapi, global.supplierFullObject_bo, global.relationListObject_bo, global.branchLov_bo, global.corecomponents_v12, global.ng.flexLayout, global.ng.animations, global.relationKind_enum$1, global.addressType_enum, global.ng.common, global.dateUtils, global.numberUtils, global.ng.forms, global.nulRelationObject, global.address_bo, global.isNill_function, global.transactionTotal_bo, global.discountType_enum, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.transactionSearchViewRequest, global.pagingParameters, global.getPurchaseOrderConfirmation, global.receiveGoodsForPurchaseOrderRequest_bo, global.purchaseOrderLineReceiptDetails_bo, global.stockStatus_enum, global.relationRequest, global.coDocument_bo, global.validationResult, global.relation_bo, global.relationNameKind_enum, global.genderType_enum, global.functionUtils, global.contactOption_bo, global.communicationType_enum, global.businessObjectUtils, global.ng.cdk.scrolling, global.relationSmallObject_bo, global.receiveGoodsForPurchaseOrderCorrectionRequest_bo, global.purchaseOrderLineReceiptCorrectionDetails_bo, global.getPurchasePortalLine, global.purchasePortalFilters_bo, global.goodsReceiptStatus_bo, global.emailOrderConfirmation, global.printOrderConfirmation, global.pdfOrderConfirmation, global.articleExtendedRequest, global.quantityInHistoricState_enum));
5
+ })(this, (function (exports, i0, pendingReasonType_enum, sequenceName_enum, transactionKind_enum, transactionLineType_enum, rxjs, transactionInfoResponse_bo, stringUtils, marketing_bo, country_bo, deliveryMethod_bo, deliveryOption_bo, articleFullObject, customerGroup_bo, cashRegister, priceList, vat, onHoldCode_bo, warehouse_bo, paymentMethod_bo, objectUtils, getPostalCodeRetrievalOutputParams, transaction, transactionLineInfo_bo, transactionSearchView_bo, codeDescription, goodsReceiptStatusWithHistory_bo, purchasePortalLine_bo, createPaymentLinkResult_bo, paymentLinkStatus_bo, i1, transactionInfo_bo, transactionDownPaymentInfo_bo, transactionLockResult_bo, privacySetting_bo, relationPrivacySetting_bo, businessObjectFactory, imageUtils, coDomainValue_bo, tag, deliveryOrderStatus_bo, salesPerson_bo, stockStickersPrintLayouts_bo, sharedapi, resolvePendingReasonRequest_bo, articles, stockLocation_bo, articleLight_bo, turnoverGroupImage_bo, mainArticle_bo, resolveHeaderPendingReasonRequest_bo, docDeliveryBatch_bo, i4, customerFullObject_bo, relationStatus_enum, relationKind_enum, relationapi, supplierFullObject_bo, relationListObject_bo, branchLov_bo, corecomponents_v12, flexLayout, animations, relationKind_enum$1, addressType_enum, common, dateUtils, numberUtils, forms, nulRelationObject, address_bo, isNill_function, transactionTotal_bo, discountType_enum, dragDrop, transactionAddTextLineRequest_bo, transactionSearchViewRequest, pagingParameters, getPurchaseOrderConfirmation, receiveGoodsForPurchaseOrderRequest_bo, purchaseOrderLineReceiptDetails_bo, stockStatus_enum, relationRequest, coDocument_bo, validationResult, relation_bo, relationNameKind_enum, genderType_enum, functionUtils, contactOption_bo, communicationType_enum, businessObjectUtils, scrolling, relationSmallObject_bo, receiveGoodsForPurchaseOrderCorrectionRequest_bo, purchaseOrderLineReceiptCorrectionDetails_bo, getPurchasePortalLine, purchasePortalFilters_bo, goodsReceiptStatus_bo, emailOrderConfirmation, printOrderConfirmation, pdfOrderConfirmation, articleExtendedRequest, quantityInHistoricState_enum) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -24,6 +24,7 @@
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
28
 
28
29
  /*! *****************************************************************************
29
30
  Copyright (c) Microsoft Corporation.
@@ -351,78 +352,6 @@
351
352
  LanguageCode["French"] = "fr-FR";
352
353
  })(LanguageCode || (LanguageCode = {}));
353
354
 
354
- // Static utility functions holder related to strings.
355
- var StringUtils = /** @class */ (function () {
356
- function StringUtils() {
357
- }
358
- /**
359
- * Returns a new string where given placeholder in given source string are replaced by given replacement texts.
360
- *
361
- * Example usage:
362
- *
363
- * source = "ABCDABCD"
364
- * placeholder = "BC"
365
- * replacementTexts = "Z", "Z" (REST arguments)
366
- * OUTPUT = "AZDAZD"
367
- *
368
- * @param {string} source
369
- * @param {string} placeholder
370
- * @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
371
- * If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
372
- */
373
- StringUtils.ReplaceOccurrencesIn = function (source, placeholder) {
374
- var replacementTexts = [];
375
- for (var _i = 2; _i < arguments.length; _i++) {
376
- replacementTexts[_i - 2] = arguments[_i];
377
- }
378
- // parameter guards
379
- if (!(source)) {
380
- return undefined;
381
- }
382
- if (!placeholder || replacementTexts.length === 0) {
383
- return source;
384
- }
385
- var outString = source;
386
- // one replacementText means replace for all
387
- if (replacementTexts.length === 1) {
388
- // "g" is the g flag to replace globally
389
- outString = outString.replace(placeholder, replacementTexts[0]);
390
- }
391
- else {
392
- // replace occurence i by replacementTexts[i], one at a time in loop (there might be a faster way..)
393
- for (var i = 0, len = replacementTexts.length; i < len; i++) {
394
- outString = outString.replace(placeholder, replacementTexts[i]);
395
- }
396
- }
397
- return outString;
398
- };
399
- // Returns the given argument as a string. Returns given defaultValue if conversion of argument to string was impossible.
400
- StringUtils.ParseString = function (arg, defaultValue) {
401
- if (defaultValue === void 0) { defaultValue = ""; }
402
- if (!StringUtils.IsString(arg)) {
403
- if (arg && typeof arg.toString === "function") {
404
- arg = arg.toString();
405
- }
406
- else {
407
- arg = defaultValue;
408
- }
409
- }
410
- return arg;
411
- };
412
- StringUtils.IsString = function (str) {
413
- return typeof str === 'string';
414
- };
415
- // Returns whether given str is a string and has a length > 0.
416
- StringUtils.IsStringWithLength = function (str) {
417
- return str && StringUtils.IsString(str) && str.length > 0;
418
- };
419
- // Returns given string, escaped for use as string literal in regular expressions.
420
- StringUtils._escapeRegExp = function (str) {
421
- return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
422
- };
423
- return StringUtils;
424
- }());
425
-
426
355
  var Dictionary = /** @class */ (function () {
427
356
  function Dictionary() {
428
357
  this.strings = {
@@ -1184,7 +1113,7 @@
1184
1113
  for (var _i = 2; _i < arguments.length; _i++) {
1185
1114
  replacementTexts[_i - 2] = arguments[_i];
1186
1115
  }
1187
- if (!StringUtils.IsStringWithLength(key)) {
1116
+ if (!stringUtils.StringUtils.IsStringWithLength(key)) {
1188
1117
  return key || "";
1189
1118
  }
1190
1119
  if (this.language === undefined) {
@@ -1192,7 +1121,7 @@
1192
1121
  this._loadDictionary();
1193
1122
  }
1194
1123
  var text = this._dictionaries.get(this.language)[key];
1195
- text = StringUtils.IsStringWithLength(text) ? text : key;
1124
+ text = stringUtils.StringUtils.IsStringWithLength(text) ? text : key;
1196
1125
  if (upperCaseFirst) {
1197
1126
  text = text.charAt(0).toUpperCase() + text.slice(1);
1198
1127
  }
@@ -1200,7 +1129,7 @@
1200
1129
  text = text.charAt(0).toLowerCase() + text.slice(1);
1201
1130
  }
1202
1131
  if (replacementTexts.length > 0) {
1203
- text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
1132
+ text = stringUtils.StringUtils.ReplaceOccurrencesIn.apply(stringUtils.StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
1204
1133
  }
1205
1134
  return text;
1206
1135
  };
@@ -1689,797 +1618,118 @@
1689
1618
  { type: BusinessObjectCacheManagerService }
1690
1619
  ]; };
1691
1620
 
1692
- var PROP_META_KEY$3 = "complexField";
1693
- /**
1694
- * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
1695
- */
1696
- /**
1697
- * Property decorator for properties of businessobject classes that are other strongly typed businessobjects.
1698
- * Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
1699
- * to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
1700
- *
1701
- * Usage:
1702
- *
1703
- * @ComplexField(Transaction)
1704
- * public transaction: Transaction
1705
- *
1706
- * Also keeps track of a "complexFieldProps" metadata on the class-level, as a reflect-metadata workaround to be able to
1707
- * retrieve all properties that have the @ComplexField(..) decorator (impossible with current Reflect API).
1708
- */
1709
- function ComplexField(type) {
1710
- return function (target, propertyKey) {
1711
- if (!target || !propertyKey) {
1712
- return;
1713
- }
1714
- // warn the programmer if given type was undefined; it's probably an import order glitch that caused this, because decorators seem
1715
- // to be immediately processed when a class is first imported
1716
- if (!type) {
1717
- // eslint-disable-next-line no-console
1718
- console.warn("@ComplexField(type): type was UNDEFINED. Called on prop (" + objectUtils.ObjectUtils.GetClassName(target) + ", " + propertyKey + "). " +
1719
- "Class will not properly serialize and deserialize now. We've always been able to fix this by CHANGING IMPORT ORDERS " +
1720
- "where both classes and their dependencies are used, e.g. factory, repository or models..");
1721
- return;
1722
- }
1723
- Reflect.defineMetadata(PROP_META_KEY$3, type, target, propertyKey);
1724
- };
1725
- }
1726
- // Utility function holder of the ComplexFieldDecorator decorator.
1727
- var ComplexFieldDecorator = /** @class */ (function () {
1728
- function ComplexFieldDecorator() {
1621
+ var StandardText = /** @class */ (function () {
1622
+ function StandardText() {
1729
1623
  }
1730
- /**
1731
- * Returns whether given property (as a string) on given object is a complex field. A complex field is a field that is decorated
1732
- * with the @ComplexField decorator.
1733
- */
1734
- ComplexFieldDecorator.IsComplexField = function (target, propertyKey) {
1735
- if (!target || !propertyKey || typeof target !== "object") {
1736
- return false;
1737
- }
1738
- return (notNill_function.notNill(Reflect.getMetadata(PROP_META_KEY$3, target, propertyKey)));
1739
- };
1740
- // Returns the VALUE of the @ComplexField(VALUE) property decorator on the given propertyKey on the given modelObject.
1741
- ComplexFieldDecorator.GetComplexFieldType = function (target, propertyKey) {
1742
- if (!target || !propertyKey || typeof target !== "object") {
1743
- return undefined;
1744
- }
1745
- return Reflect.getMetadata(PROP_META_KEY$3, target, propertyKey);
1746
- };
1747
- return ComplexFieldDecorator;
1624
+ return StandardText;
1748
1625
  }());
1749
1626
 
1750
- var PROP_META_KEY$2 = "complexArray";
1751
- /**
1752
- * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
1753
- */
1754
- /**
1755
- * Property decorator for properties of businessobject classes that are an array of other strongly typed businessobjects.
1756
- * Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
1757
- * to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
1758
- *
1759
- * Usage:
1760
- *
1761
- * @ComplexArray(TransactionLine)
1762
- * public transactionLines: TransactionLine[]
1763
- */
1764
- function ComplexArray(type) {
1765
- return function (target, propertyKey) {
1766
- if (!target || !propertyKey || typeof target !== "object") {
1767
- return;
1768
- }
1769
- // warn the programmer if given type was undefined; it's probably an import order glitch that caused this, because decorators seem
1770
- // to be immediately processed when a class is first imported
1771
- if (!type) {
1772
- console.warn("@ComplexArray(type): type was UNDEFINED. Called on prop (" + objectUtils.ObjectUtils.GetClassName(target) + ", " + propertyKey + "). " +
1773
- "Class will not properly serialize and deserialize now. We've always been able to fix this by CHANGING IMPORT ORDERS " +
1774
- "where both classes and their dependencies are used, e.g. factory, repository or models..");
1775
- return;
1776
- }
1777
- Reflect.defineMetadata(PROP_META_KEY$2, type, target, propertyKey);
1778
- };
1779
- }
1780
- // Utility function holder of the ComplexArrayDecorator decorator.
1781
- var ComplexArrayDecorator = /** @class */ (function () {
1782
- function ComplexArrayDecorator() {
1627
+ var TransactionSearchResult = /** @class */ (function () {
1628
+ function TransactionSearchResult() {
1783
1629
  }
1784
- /**
1785
- * Returns whether given property (as a string) on given object is a complex array. A complex array is an array field that is decorated
1786
- * with the @ComplexArray decorator.
1787
- */
1788
- ComplexArrayDecorator.IsComplexArray = function (target, propertyKey) {
1789
- if (!target || !propertyKey || typeof target !== "object") {
1790
- return false;
1791
- }
1792
- return (notNill_function.notNill(Reflect.getMetadata(PROP_META_KEY$2, target, propertyKey)));
1793
- };
1794
- /**
1795
- * Returns the VALUE of the @ComplexArray(VALUE) property decorator on the given propertyKey on the given modelobject.
1796
- */
1797
- ComplexArrayDecorator.GetComplexArrayType = function (target, propertyKey) {
1798
- if (!target || !propertyKey || typeof target !== "object") {
1799
- return undefined;
1800
- }
1801
- return Reflect.getMetadata(PROP_META_KEY$2, target, propertyKey);
1802
- };
1803
- return ComplexArrayDecorator;
1630
+ return TransactionSearchResult;
1804
1631
  }());
1805
1632
 
1806
- var PROP_META_KEY_JN = "booleanTextJN";
1807
- var PROP_META_KEY_TF = "booleanTextTF";
1808
- var PROP_META_KEY_10 = "booleanText10";
1809
- /**
1810
- * There are 'J', 'T', 'N', 'F', 0 and 1 'boolean values' in the database. These should be translated to true and false boolean values in
1811
- * our client application.
1812
- *
1813
- * The values 'J' and 'N' seem to be most commonly used. This is the default setting when using this decorator.
1814
- * You can pass 'T' or 1 for the other variants as follows:
1815
- *
1816
- * Usage:
1817
- *
1818
- * @BooleanText() or @BooleanText("J") (the default, uses YesNoDbType char values)
1819
- * public foo: boolean // 'J' and 'N' become true and false after BusinessObjectFactoryService and -SerializerService processing
1820
- *
1821
- * @BooleanText('T') (uses TrueFalseDbType char values)
1822
- * public bar: boolean // 'T' and 'F' become true and false after BusinessObjectFactoryService and -SerializerService processing
1823
- *
1824
- * @BooleanText(1)
1825
- * public baz: boolean // 1 and 0 become true and false after BusinessObjectFactoryService and -SerializerService processing
1826
- */
1827
- function BooleanText(type) {
1828
- return function (target, propertyKey) {
1829
- if (!target || !propertyKey) {
1830
- return;
1831
- }
1832
- // by default, it's a J N boolean text
1833
- if (!type || type === "J") {
1834
- Reflect.defineMetadata(PROP_META_KEY_JN, true, target, propertyKey);
1835
- }
1836
- else if (type === "T") {
1837
- Reflect.defineMetadata(PROP_META_KEY_TF, true, target, propertyKey);
1838
- }
1839
- else if (type === 1) {
1840
- Reflect.defineMetadata(PROP_META_KEY_10, true, target, propertyKey);
1841
- }
1842
- };
1843
- }
1844
- // Utility function holder of the BooleanTextDecorator decorator.
1845
- var BooleanTextDecorator = /** @class */ (function () {
1846
- function BooleanTextDecorator() {
1847
- }
1848
- /**
1849
- * Returns whether given property (as a string) on given object is a boolean text field. That is, it's a field that is decorated
1850
- * with the @BooleanText decorator.
1851
- */
1852
- BooleanTextDecorator.IsBooleanTextField = function (target, propertyKey) {
1853
- if (!target || !propertyKey || typeof target !== "object") {
1854
- return false;
1855
- }
1856
- return (Reflect.getMetadata(PROP_META_KEY_JN, target, propertyKey) === true
1857
- ||
1858
- Reflect.getMetadata(PROP_META_KEY_TF, target, propertyKey) === true
1859
- ||
1860
- Reflect.getMetadata(PROP_META_KEY_10, target, propertyKey) === true);
1861
- };
1862
- /**
1863
- * Returns the logical true or false value of given character ('J', 'N', 'T' or 'F') or number (0 or 1).
1864
- * Returns UNDEFINED if given boolChar was not recognised as a boolean text.
1865
- */
1866
- BooleanTextDecorator.GetLogicalBooleanValue = function (dbBoolChar) {
1867
- return dbBooleanValueType_enum.GetLogicalBooleanValue(dbBoolChar);
1868
- };
1869
- /**
1870
- * Returns the boolean character / number of given logical bool property on target object. Uses its @BooleanText() annotation to decide
1871
- * what character / number to return.
1872
- * Used in BusinessObjectSerializerServiceService to convert logical bools to their original boolean character.
1873
- * @returns {string|number} The original, reverse-engineered boolean character (or number) of given object property, or undefined.
1874
- */
1875
- BooleanTextDecorator.GetDbBooleanValue = function (target, propertyKey) {
1876
- if (!target || !propertyKey || typeof target !== "object") {
1877
- return undefined;
1878
- }
1879
- var dbBoolVal = undefined;
1880
- var curBoolVal = target[propertyKey];
1881
- if (BooleanTextDecorator._IsJaNeeProp(target, propertyKey)) {
1882
- dbBoolVal = yesNoDbType_enum.GetYesNoDbBooleanValue(curBoolVal);
1883
- }
1884
- else if (BooleanTextDecorator._IsTrueFalseProp(target, propertyKey)) {
1885
- dbBoolVal = trueFalseDbType_enum.GetTrueFalseDbBooleanValue(curBoolVal);
1886
- }
1887
- else if (BooleanTextDecorator._IsZeroOneProp(target, propertyKey)) {
1888
- dbBoolVal = oneZeroBoolDbType_enum.GetOneZeroDbBooleanValue(curBoolVal);
1889
- }
1890
- return dbBoolVal;
1891
- };
1892
- BooleanTextDecorator._IsJaNeeProp = function (target, propertyKey) {
1893
- return BooleanTextDecorator._IsProp(PROP_META_KEY_JN, target, propertyKey);
1894
- };
1895
- BooleanTextDecorator._IsTrueFalseProp = function (target, propertyKey) {
1896
- return BooleanTextDecorator._IsProp(PROP_META_KEY_TF, target, propertyKey);
1897
- };
1898
- BooleanTextDecorator._IsZeroOneProp = function (target, propertyKey) {
1899
- return BooleanTextDecorator._IsProp(PROP_META_KEY_10, target, propertyKey);
1900
- };
1901
- BooleanTextDecorator._IsProp = function (prop, target, propertyKey) {
1902
- return !!target && !!propertyKey && typeof target === "object" && Reflect.hasMetadata(prop, target, propertyKey);
1903
- };
1904
- return BooleanTextDecorator;
1905
- }());
1633
+ var AppPopupButtonType;
1634
+ (function (AppPopupButtonType) {
1635
+ AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
1636
+ AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
1637
+ AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
1638
+ AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
1639
+ AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
1640
+ AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
1641
+ AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
1642
+ })(AppPopupButtonType || (AppPopupButtonType = {}));
1906
1643
 
1907
- var PROP_META_KEY$1 = "dateField";
1908
- /**
1909
- * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
1910
- */
1911
- /**
1912
- * Property decorator for properties of businessobject classes that are of type Date, but are sent to us as strings.
1913
- * Ensures that the BusinessObjectFactory makes proper JavaScript Date objects from incoming strings for @DateField() decorated properties.
1914
- *
1915
- * Usage:
1916
- *
1917
- * @DateField()
1918
- * public expectedDeliveryDate: Date
1919
- */
1920
- function DateField() {
1921
- return function (target, propertyKey) {
1922
- if (!target || !propertyKey) {
1923
- return;
1924
- }
1925
- Reflect.defineMetadata(PROP_META_KEY$1, undefined, target, propertyKey);
1926
- };
1927
- }
1928
- // Utility function holder of the @DateField() decorator.
1929
- var DateFieldFieldDecorator = /** @class */ (function () {
1930
- function DateFieldFieldDecorator() {
1644
+ var DialogBaseComponent = /** @class */ (function () {
1645
+ function DialogBaseComponent() {
1931
1646
  }
1932
- // Returns whether given property (as a string) on given object is decorated with @DateField().
1933
- DateFieldFieldDecorator.IsDateField = function (target, propertyKey) {
1934
- if (!target || !propertyKey || typeof target !== "object") {
1935
- return false;
1936
- }
1937
- return Reflect.hasMetadata(PROP_META_KEY$1, target, propertyKey);
1938
- };
1939
- DateFieldFieldDecorator.StringAsDate = function (str) {
1940
- return dateUtils.DateUtils.StringAsDate(str);
1647
+ DialogBaseComponent.prototype.onClose = function (eventType, output) {
1648
+ return;
1941
1649
  };
1942
- return DateFieldFieldDecorator;
1650
+ return DialogBaseComponent;
1943
1651
  }());
1944
1652
 
1945
- var PROP_META_KEY = "stringNumber";
1946
- /**
1947
- * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
1948
- */
1949
- /**
1950
- * Decorator for properties of businessobjects that are sent to us as strings from the database, but which we want to use as a number in the client.
1951
- *
1952
- * Can be handy for incongruent backend api cases, where id data types are communicated wrongly via strings instead of numbers
1953
- * (e.g. on EmployeeFullObject.district, points to a District which has a number id, but in employee it's a string representation of that number...)
1954
- *
1955
- * Used by business object factory and -serializer.
1956
- *
1957
- * Usage:
1958
- *
1959
- * @StringNumber()
1960
- * public rights: UserRightType
1961
- */
1962
- function StringNumber() {
1963
- return function (target, propertyKey) {
1964
- if (!target || !propertyKey) {
1965
- return;
1966
- }
1967
- Reflect.defineMetadata(PROP_META_KEY, undefined, target, propertyKey);
1968
- };
1969
- }
1970
- // Utility function holder of the @StringNumber() decorator.
1971
- var StringNumberDecorator = /** @class */ (function () {
1972
- function StringNumberDecorator() {
1973
- }
1974
- // Returns whether given property (as a string) on given object is decorated with @StringNumber().
1975
- StringNumberDecorator.IsStringNumber = function (target, propertyKey) {
1976
- if (!target || !propertyKey || typeof target !== "object") {
1977
- return false;
1978
- }
1979
- return Reflect.hasMetadata(PROP_META_KEY, target, propertyKey);
1980
- };
1981
- StringNumberDecorator.StringAsNumber = function (str) {
1982
- return numberUtils.NumberUtils.ParseFloatKeepPrecision(str);
1983
- };
1984
- StringNumberDecorator.NumberAsString = function (nr) {
1985
- return "" + nr;
1986
- };
1987
- return StringNumberDecorator;
1988
- }());
1653
+ var AppPopupType;
1654
+ (function (AppPopupType) {
1655
+ AppPopupType[AppPopupType["Error"] = 0] = "Error";
1656
+ AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
1657
+ AppPopupType[AppPopupType["Information"] = 2] = "Information";
1658
+ AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
1659
+ })(AppPopupType || (AppPopupType = {}));
1989
1660
 
1990
- // @returns true iff given value equals null or equals undefined
1991
- function isNill(value) {
1992
- return value === null || value === undefined;
1993
- }
1994
-
1995
- var ArrayUtils = /** @class */ (function () {
1996
- function ArrayUtils() {
1997
- }
1998
- /**
1999
- * Returns whether at least one element in given array could be found by given finder function.
2000
- *
2001
- * @param {T[]} array
2002
- * @param {(element: T) => boolean} finder A finder function that takes an element of the array and returns a boolean that represents
2003
- * the 'found status' for that element; whether it should have been found or not.
2004
- */
2005
- ArrayUtils.ContainsAnElementFoundBy = function (array, finder) {
2006
- if (!array || !finder) {
2007
- return false;
2008
- }
2009
- return notNill_function.notNill(this.Find(array, finder));
2010
- };
2011
- /**
2012
- * Cross-browser Array.find() function. Returns the first item in given array for which the foundBy function returns true. Returns
2013
- * undefined when none was found.
2014
- *
2015
- * Example usage:
2016
- * const foundItem: BusinessObject = ArrayUtils.Find<BusinessObject>(modelArray, (modelItem: BusinessObject) => <br>
2017
- * (return modelItem.getId() === '1')
2018
- * * });
2019
- *
2020
- * @param array The array with items to search in.
2021
- * @param foundBy The finder function applied on each items of the array, when that returns true, the item is considered found.
2022
- */
2023
- ArrayUtils.Find = function (array, foundBy) {
2024
- if (!array || !foundBy) {
2025
- return undefined;
2026
- }
2027
- for (var i = 0, len = array.length; i < len; i++) {
2028
- var itemCur = array[i];
2029
- if (foundBy(itemCur)) {
2030
- return itemCur;
2031
- }
2032
- }
2033
- return undefined;
2034
- };
2035
- // @returns empty array when nothing found, otherwise array with found items
2036
- ArrayUtils.FindAll = function (array, foundBy) {
2037
- var answer = [];
2038
- if (!array || !foundBy) {
2039
- return answer;
2040
- }
2041
- for (var i = 0, len = array.length; i < len; i++) {
2042
- var itemCur = array[i];
2043
- if (foundBy(itemCur)) {
2044
- answer.push(itemCur);
2045
- }
2046
- }
2047
- return answer;
2048
- };
2049
- // returns a simple clone of given array, using array.slice(0)
2050
- ArrayUtils.CloneArray = function (array) {
2051
- var answer = [];
2052
- if (array) {
2053
- answer = array.slice(0);
2054
- }
2055
- return answer;
2056
- };
2057
- /**
2058
- * Returns a 'semi deep clone' of given array. Its first-level members are object-shallow-cloned (optionally with a strongly typed constructor),
2059
- * or just as plain object (see param arrayItemsClass).
2060
- * @param array
2061
- * @param arrayItemsClass If provided, the cloned array's first-level items will be strongly typed to / constructed as this class. Otherwise
2062
- * it'll be a plain object.
2063
- * @param deepClone Set to true if array items contain FUNCTIONS that need to be cloned..
2064
- * @returns {Array} semi-deep clone of given array
2065
- */
2066
- ArrayUtils.CloneArrayAndItsItems = function (array, arrayItemsClass, deepClone) {
2067
- if (deepClone === void 0) { deepClone = false; }
2068
- var cloneArray = [];
2069
- if (array) {
2070
- for (var i = 0, len = array.length; i < len; i++) {
2071
- if (deepClone) {
2072
- cloneArray.push(objectUtils.ObjectUtils.GetDeepClone(array[i]));
2073
- }
2074
- else {
2075
- cloneArray.push(objectUtils.ObjectUtils.GetShallowClone(array[i], arrayItemsClass));
2076
- }
2077
- }
2078
- }
2079
- else {
2080
- return [];
2081
- }
2082
- return cloneArray;
2083
- };
2084
- /**
2085
- * Removes element at given index from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really
2086
- * removes the element using splice().
2087
- *
2088
- * @param {number} index
2089
- * @param {any[]} array in-out
2090
- * @returns {boolean} True if and only if the element on given index is succesfully removed from given array.
2091
- */
2092
- ArrayUtils.RemoveElementAtIndex = function (index, array) {
2093
- if (numberUtils.NumberUtils.IsNaN(index) || index < 0 || !Array.isArray(array) || array.length === 0) {
2094
- return false;
2095
- }
2096
- if (index in array) {
2097
- array.splice(index, 1);
2098
- return true;
2099
- }
2100
- else {
2101
- return false;
2102
- }
2103
- };
2104
- /**
2105
- * Removes given element from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really removes the
2106
- * element using splice(). Also works on associative arrays.
2107
- *
2108
- * @param {T} element The element to remove.
2109
- * @param {T[]} array The array to remove the element from.
2110
- * @returns {boolean} True iff given element was truly successfully removed from given array.
2111
- */
2112
- ArrayUtils.RemoveElement = function (element, array) {
2113
- if (!Array.isArray(array)) {
2114
- return false;
2115
- }
2116
- var index = array.indexOf(element);
2117
- return ArrayUtils.RemoveElementAtIndex(index, array);
2118
- };
2119
- // Checks if given array is defined, and is an array, and has length > 0, and, optionally checks that the first element is of type given clazz.
2120
- ArrayUtils.IsArrayWithElements = function (arrayToCheck, classItemsMustBeInstanceOf) {
2121
- if (isNill_function.isNill(arrayToCheck)) {
2122
- return false;
2123
- }
2124
- if (Array.isArray(arrayToCheck) && arrayToCheck.length > 0) {
2125
- if (classItemsMustBeInstanceOf) {
2126
- return arrayToCheck[0] instanceof classItemsMustBeInstanceOf;
2127
- }
2128
- else {
2129
- return true;
2130
- }
2131
- }
2132
- else {
2133
- return false;
2134
- }
2135
- };
2136
- // Removes all elements from given array for which given filter function holds true. Returns true if at least one removed, else false.
2137
- ArrayUtils.RemoveElementsByFilter = function (array, filterFunction) {
2138
- if (!ArrayUtils.IsArrayWithElements(array) || !filterFunction) {
2139
- return false;
2140
- }
2141
- var atLeastOneRemoved = false;
2142
- var len = array.length;
2143
- for (var i = len - 1; i >= 0; i--) {
2144
- var item = array[i];
2145
- if (filterFunction.call(this, item) === true) {
2146
- array.splice(i, 1);
2147
- atLeastOneRemoved = true;
2148
- }
2149
- }
2150
- return atLeastOneRemoved;
2151
- };
2152
- ArrayUtils.MoveElement = function (element, toIndex, array) {
2153
- if (!Array.isArray(array) || isNill_function.isNill(toIndex)) {
2154
- return false;
2155
- }
2156
- var fromIndex = array.indexOf(element);
2157
- var toIndexCorrected = numberUtils.NumberUtils.GetNearestNumberWithinBounds(toIndex, 0, array.length - 1);
2158
- if (fromIndex === -1 || array[toIndexCorrected] === element) {
2159
- // element did not exist in given array, or already existed on given toIndex
2160
- return false;
2161
- }
2162
- array.splice(toIndexCorrected, 0, array.splice(fromIndex, 1)[0]);
2163
- return true;
2164
- };
2165
- // PRE: elements exists in given array. POST: given elementToPlace has a lower index than given afterThisElement. Array is in-out manipulated.
2166
- ArrayUtils.PlaceElementAfterOther = function (array, elementToPlace, afterThisElement) {
2167
- if (array) {
2168
- var afterThisElIdx = array.indexOf(afterThisElement);
2169
- var elToPlaceIdx = array.indexOf(elementToPlace);
2170
- if (afterThisElIdx >= elToPlaceIdx) {
2171
- ArrayUtils.MoveElement(elementToPlace, afterThisElIdx + 1, array);
2172
- }
2173
- }
2174
- };
2175
- return ArrayUtils;
2176
- }());
2177
-
2178
- /**
2179
- * This type represents the concept of a business object ID type. ID's of business objects can be a primary number, a simple string or a
2180
- * object for a composite key.
2181
- *
2182
- * Simply to prevent type declarations of 'number | string | Object' for BO ID data all over the application.
2183
- */
2184
- var BusinessObject = /** @class */ (function () {
2185
- function BusinessObject() {
2186
- }
2187
- // Overridable. Returns the ID of the model. Concrete model classes often override this method to provide their specific ID getter.
2188
- BusinessObject.prototype.getId = function () {
2189
- return this.id;
2190
- };
2191
- BusinessObject.prototype.setOwnMappedPropsFromRawData = function (rawData) {
2192
- var _this = this;
2193
- if (rawData === void 0) { rawData = {}; }
2194
- if (!rawData) {
2195
- return;
2196
- }
2197
- Object.keys(this).forEach(function (key) {
2198
- // check if property needs to be mapped
2199
- if (mapProperty_decorator.MapPropertyDecorator.IsMapProperty(_this, key)) {
2200
- var mapKeys = mapProperty_decorator.MapPropertyDecorator.GetMapProperty(_this, key).split(",");
2201
- var len = mapKeys.length;
2202
- for (var i = 0; i < len; i++) {
2203
- // eslint-disable-next-line
2204
- var mapKey = mapKeys[i].trim();
2205
- var objProp = rawData[mapKey];
2206
- var decorated = false;
2207
- if (rawData.hasOwnProperty(mapKey)) {
2208
- if (boolean_decorator.BooleanTextDecorator.IsBooleanTextField(_this, key)) {
2209
- _this[key] = boolean_decorator.BooleanTextDecorator.GetLogicalBooleanValue(objProp);
2210
- decorated = true;
2211
- }
2212
- if (json_decorator.JsonFieldFieldDecorator.IsJsonField(_this, key)) {
2213
- _this[key] = json_decorator.JsonFieldFieldDecorator.StringAsJson(objProp);
2214
- decorated = true;
2215
- }
2216
- if (complexArray_decorator.ComplexArrayDecorator.IsComplexArray(_this, key)) {
2217
- var arrayClass = complexArray_decorator.ComplexArrayDecorator.GetComplexArrayType(_this, key);
2218
- // eslint-disable-next-line
2219
- var origArray = _this[key];
2220
- // eslint-disable-next-line
2221
- var newArray = [];
2222
- // eslint-disable-next-line @typescript-eslint/prefer-for-of
2223
- for (var j = 0; j < origArray.length; j++) {
2224
- // eslint-disable-next-line
2225
- var item = new arrayClass(origArray[j]);
2226
- newArray.push(item);
2227
- }
2228
- _this[key] = newArray;
2229
- }
2230
- else {
2231
- if (!decorated) {
2232
- _this[key] = objProp;
2233
- }
2234
- }
2235
- break;
2236
- }
2237
- }
2238
- }
2239
- else {
2240
- if (rawData.hasOwnProperty(key)) {
2241
- var objProp = rawData[key];
2242
- if (boolean_decorator.BooleanTextDecorator.IsBooleanTextField(_this, key)) {
2243
- _this[key] = boolean_decorator.BooleanTextDecorator.GetLogicalBooleanValue(objProp);
2244
- }
2245
- else if (json_decorator.JsonFieldFieldDecorator.IsJsonField(_this, key)) {
2246
- _this[key] = json_decorator.JsonFieldFieldDecorator.StringAsJson(objProp);
2247
- }
2248
- else {
2249
- _this[key] = objProp;
2250
- }
2251
- }
2252
- }
2253
- });
2254
- };
2255
- return BusinessObject;
2256
- }());
2257
-
2258
- // Factory service creates businessobjects, using their decorators in the process.
2259
- var BusinessObjectFactory = /** @class */ (function () {
2260
- function BusinessObjectFactory() {
2261
- }
2262
- /**
2263
- * Creates and returns a new business data object instance of given class, with all given data properties applied to it in a
2264
- * complex-aware style. That is, all properties on given class that are decorated with @ComplexField(..) or @ComplexArray(..) decorators
2265
- * become strongly typed business objects, with methods that are usable and such.
2266
- *
2267
- * @param modelClass
2268
- * @param {Object} rawData The object with all (possibly raw/flat/not alive) data to be applied to the created model object
2269
- */
2270
- BusinessObjectFactory.prototype.makeWithRawBackendData = function (modelClass, rawData) {
2271
- if (!modelClass) {
2272
- return undefined;
2273
- }
2274
- if (typeof modelClass !== typeof BusinessObject) {
2275
- return undefined;
2276
- }
2277
- var model = new modelClass();
2278
- this._copyAllPropertiesDecoratorProcessedFrom(rawData, model);
2279
- return model;
2280
- };
2281
- // see makeWithRawBackendData, this is a loop-wrapper around that method
2282
- BusinessObjectFactory.prototype.makeBOArrayFromRawBackendDataArray = function (modelClass, arrayOfRawDatas) {
2283
- if (!modelClass) {
2284
- return undefined;
2285
- }
2286
- var trueClientBos = [];
2287
- if (arrayOfRawDatas) {
2288
- for (var i = 0, len = arrayOfRawDatas.length; i < len; i++) {
2289
- trueClientBos.push(this.makeWithRawBackendData(modelClass, arrayOfRawDatas[i]));
2290
- }
2291
- }
2292
- return trueClientBos;
2293
- };
2294
- BusinessObjectFactory.prototype.instantiateNewBo = function (modelClass) {
2295
- return this.makeWithRawBackendData(modelClass, {});
2296
- };
2297
- /**
2298
- * Applies all properties of given 'source' object to the given 'destination' businessobject, if destination has that property.
2299
- * Works with the @ComplexField(), @ComplexArray, @BooleanText, @CoInject and @DateField annotations of given destination model.
2300
- *
2301
- * @param sourceData Raw data to copy to destination model
2302
- * @param {BusinessObject} destinationModel InOut: The annotated businessobject to apply source properties to
2303
- */
2304
- BusinessObjectFactory.prototype._copyAllPropertiesDecoratorProcessedFrom = function (sourceData, destinationModel) {
2305
- if (!sourceData || !destinationModel) {
2306
- return;
2307
- }
2308
- // process all source data into destinationModel
2309
- for (var srcPropKey in sourceData) {
2310
- if (!sourceData.hasOwnProperty(srcPropKey)) {
2311
- continue;
2312
- }
2313
- var srcPropVal = sourceData[srcPropKey];
2314
- if (ComplexFieldDecorator.IsComplexField(destinationModel, srcPropKey)) {
2315
- var classOfField = ComplexFieldDecorator.GetComplexFieldType(destinationModel, srcPropKey);
2316
- destinationModel[srcPropKey] = this.makeWithRawBackendData(classOfField, srcPropVal);
2317
- }
2318
- else if (ComplexArrayDecorator.IsComplexArray(destinationModel, srcPropKey)) {
2319
- var sourceArray = srcPropVal;
2320
- if (!sourceArray) {
2321
- continue;
2322
- }
2323
- var classOfArrayItems = ComplexArrayDecorator.GetComplexArrayType(destinationModel, srcPropKey);
2324
- var tempArray = [];
2325
- for (var i = 0, len = sourceArray.length; i < len; i++) {
2326
- tempArray.push(this.makeWithRawBackendData(classOfArrayItems, sourceArray[i]));
2327
- }
2328
- destinationModel[srcPropKey] = tempArray;
2329
- }
2330
- else if (BooleanTextDecorator.IsBooleanTextField(destinationModel, srcPropKey)) {
2331
- // logical 'true' and 'false' also allowed as incoming values for @BooleanText() properties: then just copy their value
2332
- if (typeof srcPropVal === "boolean") {
2333
- destinationModel[srcPropKey] = srcPropVal;
2334
- // here, it should be a 'J' or 'N' (or 'T' or 'F'): assign the associated boolean value
2335
- }
2336
- else {
2337
- destinationModel[srcPropKey] = BooleanTextDecorator.GetLogicalBooleanValue(srcPropVal);
2338
- }
2339
- }
2340
- else if (DateFieldFieldDecorator.IsDateField(destinationModel, srcPropKey)) {
2341
- destinationModel[srcPropKey] = DateFieldFieldDecorator.StringAsDate(srcPropVal);
2342
- }
2343
- else if (StringNumberDecorator.IsStringNumber(destinationModel, srcPropKey)) {
2344
- destinationModel[srcPropKey] = StringNumberDecorator.StringAsNumber(srcPropVal);
2345
- }
2346
- // non-decorated prop
2347
- else {
2348
- if (isNill(srcPropVal)) {
2349
- destinationModel[srcPropKey] = undefined;
2350
- }
2351
- else if (Array.isArray(srcPropVal)) {
2352
- destinationModel[srcPropKey] = ArrayUtils.CloneArray(srcPropVal);
2353
- }
2354
- else if (typeof srcPropVal === "object") {
2355
- if (srcPropVal instanceof Map) { //just copy the value in case of maps
2356
- destinationModel[srcPropKey] = srcPropVal;
2357
- }
2358
- else {
2359
- destinationModel[srcPropKey] = Object.assign({}, srcPropVal);
2360
- }
2361
- }
2362
- else {
2363
- destinationModel[srcPropKey] = srcPropVal;
2364
- }
2365
- }
2366
- }
2367
- };
2368
- return BusinessObjectFactory;
2369
- }());
2370
-
2371
- var StandardText = /** @class */ (function () {
2372
- function StandardText() {
2373
- }
2374
- return StandardText;
2375
- }());
2376
-
2377
- var TransactionSearchResult = /** @class */ (function () {
2378
- function TransactionSearchResult() {
2379
- }
2380
- return TransactionSearchResult;
2381
- }());
2382
-
2383
- var AppPopupButtonType;
2384
- (function (AppPopupButtonType) {
2385
- AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
2386
- AppPopupButtonType[AppPopupButtonType["Open"] = 1] = "Open";
2387
- AppPopupButtonType[AppPopupButtonType["Save"] = 2] = "Save";
2388
- AppPopupButtonType[AppPopupButtonType["Cancel"] = 3] = "Cancel";
2389
- AppPopupButtonType[AppPopupButtonType["Yes"] = 4] = "Yes";
2390
- AppPopupButtonType[AppPopupButtonType["No"] = 5] = "No";
2391
- AppPopupButtonType[AppPopupButtonType["NoButton"] = 6] = "NoButton";
2392
- })(AppPopupButtonType || (AppPopupButtonType = {}));
2393
-
2394
- var DialogBaseComponent = /** @class */ (function () {
2395
- function DialogBaseComponent() {
2396
- }
2397
- DialogBaseComponent.prototype.onClose = function (eventType, output) {
2398
- return;
2399
- };
2400
- return DialogBaseComponent;
2401
- }());
2402
-
2403
- var AppPopupType;
2404
- (function (AppPopupType) {
2405
- AppPopupType[AppPopupType["Error"] = 0] = "Error";
2406
- AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
2407
- AppPopupType[AppPopupType["Information"] = 2] = "Information";
2408
- AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
2409
- })(AppPopupType || (AppPopupType = {}));
2410
-
2411
- /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2412
- var Icon;
2413
- (function (Icon) {
2414
- Icon["ArrowPointDown"] = "arrow_point_down";
2415
- Icon["ArrowPointLeft"] = "arrow_point_left";
2416
- Icon["ArrowPointRight"] = "arrow_point_right";
2417
- Icon["Article"] = "article";
2418
- Icon["AtSolid"] = "at_solid";
2419
- Icon["BarcodeRegular"] = "barcode_regular";
2420
- Icon["BarcodeSolid"] = "barcode_solid";
2421
- Icon["BarsFilter"] = "bars_filter";
2422
- Icon["CalendarDay"] = "calendar_day";
2423
- Icon["CalendarDayRegular"] = "calendar_day_regular";
2424
- Icon["Cancel"] = "cancel";
2425
- Icon["CartCheck"] = "cart_check";
2426
- Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
2427
- Icon["CartShoppingSolid"] = "cart_shopping_solid";
2428
- Icon["CashRegister"] = "cash_register";
2429
- Icon["CreditCardSolid"] = "credit_card_solid";
2430
- Icon["DeliveryTruck"] = "delivery_truck";
2431
- Icon["EditPencil"] = "edit_pencil";
2432
- Icon["EllipsisLight"] = "ellipsis_light";
2433
- Icon["EllipsisVerticalSolid"] = "ellipsis_vertical_solid";
2434
- Icon["FileCircleInfoSolid"] = "file_circle_info_solid";
2435
- Icon["FilePdfSolid"] = "file_pdf_solid";
2436
- Icon["GearSolid"] = "gear_solid";
2437
- Icon["GripDotsVerticalSolid"] = "grip_dots_vertical_solid";
2438
- Icon["IdealLogo"] = "ideal_logo";
2439
- Icon["InboxInSolid"] = "inbox_in_solid";
2440
- Icon["ListRegular"] = "list_regular";
2441
- Icon["ListView"] = "list_view";
2442
- Icon["LocationDotSolid"] = "location_dot_solid";
2443
- Icon["Lock"] = "lock";
2444
- Icon["LockKeyholeOpenSolid"] = "lock_keyhole_open_solid";
2445
- Icon["LockKeyholeSolid"] = "lock_keyhole_solid";
2446
- Icon["Magnifier"] = "magnifier";
2447
- Icon["MapMarker"] = "map_marker";
2448
- Icon["MasterDetail"] = "master_detail";
2449
- Icon["MemoCircleCheckSolid"] = "memo_circle_check_solid";
2450
- Icon["Menu"] = "menu";
2451
- Icon["ObjectIntersectSolid"] = "object_intersect_solid";
2452
- Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
2453
- Icon["PlusRound"] = "plus_round";
2454
- Icon["PrintSolid"] = "print_solid";
2455
- Icon["Purchase"] = "purchase";
2456
- Icon["Resize"] = "resize";
2457
- Icon["ShareSolid"] = "share_solid";
2458
- Icon["ShelvesLight"] = "shelves_light";
2459
- Icon["ShelvesSolid"] = "shelves_solid";
2460
- Icon["SidePanel"] = "side_panel";
2461
- Icon["SlideIn"] = "slide_in";
2462
- Icon["SquareFull"] = "square_full";
2463
- Icon["SquareFullSolid"] = "square_full_solid";
2464
- Icon["SyncAlt"] = "sync_alt";
2465
- Icon["Tag"] = "tag";
2466
- Icon["TextSizeSolid"] = "text_size_solid";
2467
- Icon["TextSolid"] = "text_solid";
2468
- Icon["ThickLines"] = "thick_lines";
2469
- Icon["ThinLines"] = "thin_lines";
2470
- Icon["TrashBin"] = "trash_bin";
2471
- Icon["TrashCanLight"] = "trash_can_light";
2472
- Icon["TriangleDown"] = "triangle_down";
2473
- Icon["TriangleUp"] = "triangle_up";
2474
- Icon["Truck"] = "truck";
2475
- Icon["TruckArrowRightSolid"] = "truck_arrow_right_solid";
2476
- Icon["TruckContainerSolid"] = "truck_container_solid";
2477
- Icon["TruckFastSolid"] = "truck_fast_solid";
2478
- Icon["TruckMovingSolid"] = "truck_moving_solid";
2479
- Icon["Txt"] = "txt";
2480
- Icon["Unlock"] = "unlock";
2481
- Icon["Warehouse"] = "warehouse";
2482
- })(Icon || (Icon = {}));
1661
+ /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1662
+ var Icon;
1663
+ (function (Icon) {
1664
+ Icon["ArrowPointDown"] = "arrow_point_down";
1665
+ Icon["ArrowPointLeft"] = "arrow_point_left";
1666
+ Icon["ArrowPointRight"] = "arrow_point_right";
1667
+ Icon["Article"] = "article";
1668
+ Icon["AtSolid"] = "at_solid";
1669
+ Icon["BarcodeRegular"] = "barcode_regular";
1670
+ Icon["BarcodeSolid"] = "barcode_solid";
1671
+ Icon["BarsFilter"] = "bars_filter";
1672
+ Icon["CalendarDay"] = "calendar_day";
1673
+ Icon["CalendarDayRegular"] = "calendar_day_regular";
1674
+ Icon["Cancel"] = "cancel";
1675
+ Icon["CartCheck"] = "cart_check";
1676
+ Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
1677
+ Icon["CartShoppingSolid"] = "cart_shopping_solid";
1678
+ Icon["CashRegister"] = "cash_register";
1679
+ Icon["CreditCardSolid"] = "credit_card_solid";
1680
+ Icon["DeliveryTruck"] = "delivery_truck";
1681
+ Icon["EditPencil"] = "edit_pencil";
1682
+ Icon["EllipsisLight"] = "ellipsis_light";
1683
+ Icon["EllipsisVerticalSolid"] = "ellipsis_vertical_solid";
1684
+ Icon["FileCircleInfoSolid"] = "file_circle_info_solid";
1685
+ Icon["FilePdfSolid"] = "file_pdf_solid";
1686
+ Icon["GearSolid"] = "gear_solid";
1687
+ Icon["GripDotsVerticalSolid"] = "grip_dots_vertical_solid";
1688
+ Icon["IdealLogo"] = "ideal_logo";
1689
+ Icon["InboxInSolid"] = "inbox_in_solid";
1690
+ Icon["ListRegular"] = "list_regular";
1691
+ Icon["ListView"] = "list_view";
1692
+ Icon["LocationDotSolid"] = "location_dot_solid";
1693
+ Icon["Lock"] = "lock";
1694
+ Icon["LockKeyholeOpenSolid"] = "lock_keyhole_open_solid";
1695
+ Icon["LockKeyholeSolid"] = "lock_keyhole_solid";
1696
+ Icon["Magnifier"] = "magnifier";
1697
+ Icon["MapMarker"] = "map_marker";
1698
+ Icon["MasterDetail"] = "master_detail";
1699
+ Icon["MemoCircleCheckSolid"] = "memo_circle_check_solid";
1700
+ Icon["Menu"] = "menu";
1701
+ Icon["ObjectIntersectSolid"] = "object_intersect_solid";
1702
+ Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
1703
+ Icon["PlusRound"] = "plus_round";
1704
+ Icon["PrintSolid"] = "print_solid";
1705
+ Icon["Purchase"] = "purchase";
1706
+ Icon["Resize"] = "resize";
1707
+ Icon["ShareSolid"] = "share_solid";
1708
+ Icon["ShelvesLight"] = "shelves_light";
1709
+ Icon["ShelvesSolid"] = "shelves_solid";
1710
+ Icon["SidePanel"] = "side_panel";
1711
+ Icon["SlideIn"] = "slide_in";
1712
+ Icon["SquareFull"] = "square_full";
1713
+ Icon["SquareFullSolid"] = "square_full_solid";
1714
+ Icon["SyncAlt"] = "sync_alt";
1715
+ Icon["Tag"] = "tag";
1716
+ Icon["TextSizeSolid"] = "text_size_solid";
1717
+ Icon["TextSolid"] = "text_solid";
1718
+ Icon["ThickLines"] = "thick_lines";
1719
+ Icon["ThinLines"] = "thin_lines";
1720
+ Icon["TrashBin"] = "trash_bin";
1721
+ Icon["TrashCanLight"] = "trash_can_light";
1722
+ Icon["TriangleDown"] = "triangle_down";
1723
+ Icon["TriangleUp"] = "triangle_up";
1724
+ Icon["Truck"] = "truck";
1725
+ Icon["TruckArrowRightSolid"] = "truck_arrow_right_solid";
1726
+ Icon["TruckContainerSolid"] = "truck_container_solid";
1727
+ Icon["TruckFastSolid"] = "truck_fast_solid";
1728
+ Icon["TruckMovingSolid"] = "truck_moving_solid";
1729
+ Icon["Txt"] = "txt";
1730
+ Icon["Unlock"] = "unlock";
1731
+ Icon["Warehouse"] = "warehouse";
1732
+ })(Icon || (Icon = {}));
2483
1733
 
2484
1734
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2485
1735
  var IconSvg = {
@@ -3160,12 +2410,13 @@
3160
2410
  this._selectMultipleCacheService = _selectMultipleCacheService;
3161
2411
  this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
3162
2412
  this._errorService = _errorService;
3163
- this._boFactory = new BusinessObjectFactory();
2413
+ this._boFactory = new businessObjectFactory.BusinessObjectFactory();
3164
2414
  }
3165
2415
  TransactionConnectorAdapterService.prototype.connect = function () {
3166
2416
  return __awaiter(this, void 0, void 0, function () {
3167
2417
  return __generator(this, function (_a) {
3168
2418
  this.connector = new transaction.Transaction(this._optionsService.options);
2419
+ this.sharedConnector = new sharedapi.Sharedapi(this._optionsService.options);
3169
2420
  this._optionsService.options.session = this.connector.session;
3170
2421
  return [2 /*return*/];
3171
2422
  });
@@ -3438,96 +2689,36 @@
3438
2689
  });
3439
2690
  });
3440
2691
  };
3441
- TransactionConnectorAdapterService.prototype.getCustomerFullObject = function (relationNo) {
2692
+ TransactionConnectorAdapterService.prototype.getCashRegisters = function (branch, group) {
3442
2693
  return __awaiter(this, void 0, void 0, function () {
3443
2694
  var result;
3444
2695
  return __generator(this, function (_a) {
3445
2696
  switch (_a.label) {
3446
- case 0: return [4 /*yield*/, this.connector.getCustomerFullObject(relationNo)];
2697
+ case 0: return [4 /*yield*/, this.connector.getCashRegister(branch, group)];
3447
2698
  case 1:
3448
2699
  result = _a.sent();
3449
2700
  if (result.validationResult && result.validationResult.success) {
3450
- return [2 /*return*/, this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject)];
2701
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(cashRegister.CashRegister, result.resultObjects)];
3451
2702
  }
3452
2703
  else {
3453
2704
  this._handleExceptionFromResponse(result);
3454
- return [2 /*return*/, null];
2705
+ return [2 /*return*/, []];
3455
2706
  }
3456
2707
  return [2 /*return*/];
3457
2708
  }
3458
2709
  });
3459
2710
  });
3460
2711
  };
3461
- TransactionConnectorAdapterService.prototype.getSupplierFullObject = function (relationNo) {
2712
+ TransactionConnectorAdapterService.prototype.getPriceLists = function (code) {
3462
2713
  return __awaiter(this, void 0, void 0, function () {
3463
2714
  var result;
3464
2715
  return __generator(this, function (_a) {
3465
2716
  switch (_a.label) {
3466
- case 0: return [4 /*yield*/, this.connector.getSupplierFullObject(relationNo)];
2717
+ case 0: return [4 /*yield*/, this.connector.getPriceLists(code)];
3467
2718
  case 1:
3468
2719
  result = _a.sent();
3469
2720
  if (result.validationResult && result.validationResult.success) {
3470
- return [2 /*return*/, this._boFactory.makeWithRawBackendData(supplierFullObject_bo.SupplierFullObject, result.resultObject)];
3471
- }
3472
- else {
3473
- this._handleExceptionFromResponse(result);
3474
- return [2 /*return*/, null];
3475
- }
3476
- return [2 /*return*/];
3477
- }
3478
- });
3479
- });
3480
- };
3481
- TransactionConnectorAdapterService.prototype.getCashRegisters = function (branch, group) {
3482
- return __awaiter(this, void 0, void 0, function () {
3483
- var result;
3484
- return __generator(this, function (_a) {
3485
- switch (_a.label) {
3486
- case 0: return [4 /*yield*/, this.connector.getCashRegister(branch, group)];
3487
- case 1:
3488
- result = _a.sent();
3489
- if (result.validationResult && result.validationResult.success) {
3490
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(cashRegister.CashRegister, result.resultObjects)];
3491
- }
3492
- else {
3493
- this._handleExceptionFromResponse(result);
3494
- return [2 /*return*/, []];
3495
- }
3496
- return [2 /*return*/];
3497
- }
3498
- });
3499
- });
3500
- };
3501
- TransactionConnectorAdapterService.prototype.getRelationNumber = function (relationId) {
3502
- return __awaiter(this, void 0, void 0, function () {
3503
- var result;
3504
- return __generator(this, function (_a) {
3505
- switch (_a.label) {
3506
- case 0: return [4 /*yield*/, this.connector.getRelationNumber(relationId)];
3507
- case 1:
3508
- result = _a.sent();
3509
- if (result.validationResult && result.validationResult.success) {
3510
- return [2 /*return*/, result.resultObject];
3511
- }
3512
- else {
3513
- this._handleExceptionFromResponse(result);
3514
- return [2 /*return*/, ""];
3515
- }
3516
- return [2 /*return*/];
3517
- }
3518
- });
3519
- });
3520
- };
3521
- TransactionConnectorAdapterService.prototype.getPriceLists = function (code) {
3522
- return __awaiter(this, void 0, void 0, function () {
3523
- var result;
3524
- return __generator(this, function (_a) {
3525
- switch (_a.label) {
3526
- case 0: return [4 /*yield*/, this.connector.getPriceLists(code)];
3527
- case 1:
3528
- result = _a.sent();
3529
- if (result.validationResult && result.validationResult.success) {
3530
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(priceList.PriceList, result.resultObjects)];
2721
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(priceList.PriceList, result.resultObjects)];
3531
2722
  }
3532
2723
  else {
3533
2724
  this._handleExceptionFromResponse(result);
@@ -3667,26 +2858,6 @@
3667
2858
  });
3668
2859
  });
3669
2860
  };
3670
- TransactionConnectorAdapterService.prototype.getRelationListObjects = function (relationRequest) {
3671
- return __awaiter(this, void 0, void 0, function () {
3672
- var result;
3673
- return __generator(this, function (_a) {
3674
- switch (_a.label) {
3675
- case 0: return [4 /*yield*/, this.connector.getRelationListObjects(relationRequest)];
3676
- case 1:
3677
- result = _a.sent();
3678
- if (result.validationResult && result.validationResult.success) {
3679
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects)];
3680
- }
3681
- else {
3682
- this._handleExceptionFromResponse(result);
3683
- return [2 /*return*/, []];
3684
- }
3685
- return [2 /*return*/];
3686
- }
3687
- });
3688
- });
3689
- };
3690
2861
  TransactionConnectorAdapterService.prototype.getCommissionCodes = function (languageCode) {
3691
2862
  return __awaiter(this, void 0, void 0, function () {
3692
2863
  var result;
@@ -3787,26 +2958,6 @@
3787
2958
  });
3788
2959
  });
3789
2960
  };
3790
- TransactionConnectorAdapterService.prototype.getBranches = function (branchNr) {
3791
- return __awaiter(this, void 0, void 0, function () {
3792
- var result;
3793
- return __generator(this, function (_a) {
3794
- switch (_a.label) {
3795
- case 0: return [4 /*yield*/, this.connector.getBranches(branchNr)];
3796
- case 1:
3797
- result = _a.sent();
3798
- if (result.validationResult && result.validationResult.success) {
3799
- return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(branchLov_bo.BranchLov, result.resultObjects)];
3800
- }
3801
- else {
3802
- this._handleExceptionFromResponse(result);
3803
- return [2 /*return*/, []];
3804
- }
3805
- return [2 /*return*/];
3806
- }
3807
- });
3808
- });
3809
- };
3810
2961
  TransactionConnectorAdapterService.prototype.getSalesPersons = function (date) {
3811
2962
  return __awaiter(this, void 0, void 0, function () {
3812
2963
  var result;
@@ -3927,42 +3078,6 @@
3927
3078
  });
3928
3079
  });
3929
3080
  };
3930
- TransactionConnectorAdapterService.prototype.insertCustomer = function (relation) {
3931
- return __awaiter(this, void 0, void 0, function () {
3932
- var _this = this;
3933
- return __generator(this, function (_a) {
3934
- return [2 /*return*/, new Promise(function (resolve, reject) {
3935
- return _this.connector.insertCustomer(relation).then(function (result) {
3936
- if (result.validationResult && result.validationResult.success) {
3937
- resolve(_this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject));
3938
- }
3939
- else {
3940
- _this._handleExceptionFromResponse(result);
3941
- reject(null);
3942
- }
3943
- });
3944
- })];
3945
- });
3946
- });
3947
- };
3948
- TransactionConnectorAdapterService.prototype.updateCustomer = function (relation) {
3949
- return __awaiter(this, void 0, void 0, function () {
3950
- var _this = this;
3951
- return __generator(this, function (_a) {
3952
- return [2 /*return*/, new Promise(function (resolve, reject) {
3953
- return _this.connector.updateCustomer(relation).then(function (result) {
3954
- if (result.validationResult && result.validationResult.success) {
3955
- resolve(_this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject));
3956
- }
3957
- else {
3958
- _this._handleExceptionFromResponse(result);
3959
- reject(null);
3960
- }
3961
- });
3962
- })];
3963
- });
3964
- });
3965
- };
3966
3081
  TransactionConnectorAdapterService.prototype.commit = function () {
3967
3082
  return this.connector.commit();
3968
3083
  };
@@ -5323,6 +4438,64 @@
5323
4438
  });
5324
4439
  });
5325
4440
  };
4441
+ TransactionConnectorAdapterService.prototype.getPurchaseOrderEmailLayouts = function (transactionUUID) {
4442
+ return __awaiter(this, void 0, void 0, function () {
4443
+ var _this = this;
4444
+ return __generator(this, function (_a) {
4445
+ return [2 /*return*/, new Promise(function (resolve, reject) {
4446
+ return _this.connector.getPurchaseOrderEmailLayouts(transactionUUID).then(function (result) {
4447
+ if (result.validationResult && result.validationResult.success) {
4448
+ if (result.resultObject) {
4449
+ resolve(result.resultObject);
4450
+ }
4451
+ }
4452
+ else {
4453
+ reject(result.validationMessagesAsString);
4454
+ }
4455
+ });
4456
+ })];
4457
+ });
4458
+ });
4459
+ };
4460
+ TransactionConnectorAdapterService.prototype.emailOrderConfirmation = function (emailOrderConfirmation) {
4461
+ return __awaiter(this, void 0, void 0, function () {
4462
+ var _this = this;
4463
+ return __generator(this, function (_a) {
4464
+ return [2 /*return*/, new Promise(function (resolve, reject) {
4465
+ return _this.connector.emailOrderConfirmation(emailOrderConfirmation).then(function (result) {
4466
+ if (result.validationResult && result.validationResult.success) {
4467
+ if (result.resultObject) {
4468
+ resolve(result.resultObject);
4469
+ }
4470
+ }
4471
+ else {
4472
+ reject(result.validationMessagesAsString);
4473
+ }
4474
+ });
4475
+ })];
4476
+ });
4477
+ });
4478
+ };
4479
+ TransactionConnectorAdapterService.prototype.getStockStickerTemplates = function (data) {
4480
+ return __awaiter(this, void 0, void 0, function () {
4481
+ var _this = this;
4482
+ return __generator(this, function (_a) {
4483
+ return [2 /*return*/, new Promise(function (resolve, reject) {
4484
+ // @ts-ignore
4485
+ return _this.sharedConnector.getStockStickerPrintLayouts(data).then(function (result) {
4486
+ if (result.validationResult && result.validationResult.success) {
4487
+ if (result.resultObject) {
4488
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStickersPrintLayouts_bo.StockStickersPrintLayouts, result.resultObject));
4489
+ }
4490
+ }
4491
+ else {
4492
+ reject(result.validationMessagesAsString);
4493
+ }
4494
+ });
4495
+ })];
4496
+ });
4497
+ });
4498
+ };
5326
4499
  TransactionConnectorAdapterService.prototype.generateCommissionOrders = function (transId, onlyGenerateForDirectSellSuppliers) {
5327
4500
  return __awaiter(this, void 0, void 0, function () {
5328
4501
  var _this = this;
@@ -5343,70 +4516,24 @@
5343
4516
  });
5344
4517
  });
5345
4518
  };
5346
- TransactionConnectorAdapterService.prototype.lockCustomerFullObject = function (relationNr) {
5347
- var _this = this;
5348
- return new Promise(function (resolve, reject) {
5349
- return _this.connector.lockCustomerById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5350
- return __generator(this, function (_a) {
5351
- resolve(result.validationResult);
5352
- return [2 /*return*/];
5353
- });
5354
- }); });
5355
- });
5356
- };
5357
- TransactionConnectorAdapterService.prototype.lockSupplierFullObject = function (relationNr) {
5358
- var _this = this;
5359
- return new Promise(function (resolve, reject) {
5360
- return _this.connector.lockSupplierById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5361
- return __generator(this, function (_a) {
5362
- resolve(result.validationResult);
5363
- return [2 /*return*/];
5364
- });
5365
- }); });
5366
- });
5367
- };
5368
- TransactionConnectorAdapterService.prototype.lockEmployeeFullObject = function (relationNr) {
5369
- var _this = this;
5370
- return new Promise(function (resolve, reject) {
5371
- return _this.connector.lockEmployeeById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5372
- return __generator(this, function (_a) {
5373
- resolve(result.validationResult);
5374
- return [2 /*return*/];
5375
- });
5376
- }); });
5377
- });
5378
- };
5379
- TransactionConnectorAdapterService.prototype.lockBranchFullObject = function (relationNr) {
5380
- var _this = this;
5381
- return new Promise(function (resolve, reject) {
5382
- return _this.connector.lockBranchById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5383
- return __generator(this, function (_a) {
5384
- resolve(result.validationResult);
5385
- return [2 /*return*/];
5386
- });
5387
- }); });
5388
- });
5389
- };
5390
- TransactionConnectorAdapterService.prototype.lockCompanyFullObject = function (relationNr) {
5391
- var _this = this;
5392
- return new Promise(function (resolve, reject) {
5393
- return _this.connector.lockCompanyById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5394
- return __generator(this, function (_a) {
5395
- resolve(result.validationResult);
5396
- return [2 /*return*/];
5397
- });
5398
- }); });
5399
- });
5400
- };
5401
- TransactionConnectorAdapterService.prototype.lockContactPerson = function (relationNr) {
5402
- var _this = this;
5403
- return new Promise(function (resolve, reject) {
5404
- return _this.connector.lockContactPersonById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5405
- return __generator(this, function (_a) {
5406
- resolve(result.validationResult);
5407
- return [2 /*return*/];
5408
- });
5409
- }); });
4519
+ TransactionConnectorAdapterService.prototype.getDeliveryOrderStatus = function (transId, lineNr) {
4520
+ return __awaiter(this, void 0, void 0, function () {
4521
+ var response;
4522
+ return __generator(this, function (_a) {
4523
+ switch (_a.label) {
4524
+ case 0: return [4 /*yield*/, this.connector.getDeliveryOrderStatus(transId, lineNr)];
4525
+ case 1:
4526
+ response = _a.sent();
4527
+ if (response && response.validationResult && response.validationResult.success) {
4528
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(deliveryOrderStatus_bo.DeliveryOrderStatus, response.resultObject)];
4529
+ }
4530
+ else {
4531
+ this._handleExceptionFromResponse(response);
4532
+ return [2 /*return*/, null];
4533
+ }
4534
+ return [2 /*return*/];
4535
+ }
4536
+ });
5410
4537
  });
5411
4538
  };
5412
4539
  TransactionConnectorAdapterService.prototype._handleExceptionFromResponse = function (result) {
@@ -5552,18 +4679,6 @@
5552
4679
  TransactionConnectorService.prototype.saveTransaction = function (uuid) {
5553
4680
  return this._adapterService.saveTransaction(uuid);
5554
4681
  };
5555
- TransactionConnectorService.prototype.getCustomerFullObject = function (relationNo) {
5556
- var _this = this;
5557
- return this._selectSingleCacheService.requestCache(customerFullObject_bo.CustomerFullObject, relationNo, function () {
5558
- return _this._adapterService.getCustomerFullObject(relationNo);
5559
- }).getValue();
5560
- };
5561
- TransactionConnectorService.prototype.getSupplierFullObject = function (relationNo) {
5562
- var _this = this;
5563
- return this._selectSingleCacheService.requestCache(supplierFullObject_bo.SupplierFullObject, relationNo, function () {
5564
- return _this._adapterService.getSupplierFullObject(relationNo);
5565
- }).getValue();
5566
- };
5567
4682
  TransactionConnectorService.prototype.getCashRegisters = function (branch, group) {
5568
4683
  return __awaiter(this, void 0, void 0, function () {
5569
4684
  var params;
@@ -5579,13 +4694,6 @@
5579
4694
  });
5580
4695
  });
5581
4696
  };
5582
- TransactionConnectorService.prototype.getRelationNumber = function (relationId) {
5583
- return __awaiter(this, void 0, void 0, function () {
5584
- return __generator(this, function (_a) {
5585
- return [2 /*return*/, this._adapterService.getRelationNumber(relationId)];
5586
- });
5587
- });
5588
- };
5589
4697
  TransactionConnectorService.prototype.getPriceLists = function (code) {
5590
4698
  return __awaiter(this, void 0, void 0, function () {
5591
4699
  var _this = this;
@@ -5622,20 +4730,6 @@
5622
4730
  });
5623
4731
  });
5624
4732
  };
5625
- TransactionConnectorService.prototype.insertCustomer = function (relation) {
5626
- return __awaiter(this, void 0, void 0, function () {
5627
- return __generator(this, function (_a) {
5628
- return [2 /*return*/, this._adapterService.insertCustomer(relation)];
5629
- });
5630
- });
5631
- };
5632
- TransactionConnectorService.prototype.updateCustomer = function (relation) {
5633
- return __awaiter(this, void 0, void 0, function () {
5634
- return __generator(this, function (_a) {
5635
- return [2 /*return*/, this._adapterService.updateCustomer(relation)];
5636
- });
5637
- });
5638
- };
5639
4733
  TransactionConnectorService.prototype.getDeliveryMethods = function () {
5640
4734
  return __awaiter(this, void 0, void 0, function () {
5641
4735
  var _this = this;
@@ -5677,13 +4771,6 @@
5677
4771
  });
5678
4772
  });
5679
4773
  };
5680
- TransactionConnectorService.prototype.getRelationListObjects = function (relationRequest) {
5681
- return __awaiter(this, void 0, void 0, function () {
5682
- return __generator(this, function (_a) {
5683
- return [2 /*return*/, this._adapterService.getRelationListObjects(relationRequest)];
5684
- });
5685
- });
5686
- };
5687
4774
  TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
5688
4775
  return __awaiter(this, void 0, void 0, function () {
5689
4776
  return __generator(this, function (_a) {
@@ -5791,16 +4878,6 @@
5791
4878
  });
5792
4879
  });
5793
4880
  };
5794
- TransactionConnectorService.prototype.getBranches = function (branchNr) {
5795
- return __awaiter(this, void 0, void 0, function () {
5796
- var _this = this;
5797
- return __generator(this, function (_a) {
5798
- return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(branchLov_bo.BranchLov, function (branchNr) {
5799
- return _this._adapterService.getBranches(branchNr);
5800
- }).getValue(branchNr)];
5801
- });
5802
- });
5803
- };
5804
4881
  TransactionConnectorService.prototype.getSalesPersons = function (date) {
5805
4882
  return __awaiter(this, void 0, void 0, function () {
5806
4883
  var _this = this;
@@ -6169,23 +5246,42 @@
6169
5246
  TransactionConnectorService.prototype.generateCommissionOrders = function (transId, onlyGenerateForDirectSellSuppliers) {
6170
5247
  return this._adapterService.generateCommissionOrders(transId, onlyGenerateForDirectSellSuppliers);
6171
5248
  };
6172
- TransactionConnectorService.prototype.lockCustomerFullObject = function (relationNr) {
6173
- return this._adapterService.lockCustomerFullObject(relationNr);
6174
- };
6175
- TransactionConnectorService.prototype.lockSupplierFullObject = function (relationNr) {
6176
- return this._adapterService.lockSupplierFullObject(relationNr);
6177
- };
6178
- TransactionConnectorService.prototype.lockEmployeeFullObject = function (relationNr) {
6179
- return this._adapterService.lockEmployeeFullObject(relationNr);
5249
+ TransactionConnectorService.prototype.getDeliveryOrderStatus = function (transId, lineId) {
5250
+ return __awaiter(this, void 0, void 0, function () {
5251
+ return __generator(this, function (_a) {
5252
+ return [2 /*return*/, this._adapterService.getDeliveryOrderStatus(transId, lineId)];
5253
+ });
5254
+ });
6180
5255
  };
6181
- TransactionConnectorService.prototype.lockBranchFullObject = function (relationNr) {
6182
- return this._adapterService.lockBranchFullObject(relationNr);
5256
+ TransactionConnectorService.prototype.getPurchaseOrderEmailLayouts = function (transactionUUID) {
5257
+ return __awaiter(this, void 0, void 0, function () {
5258
+ return __generator(this, function (_a) {
5259
+ switch (_a.label) {
5260
+ case 0: return [4 /*yield*/, this._adapterService.getPurchaseOrderEmailLayouts(transactionUUID)];
5261
+ case 1: return [2 /*return*/, _a.sent()];
5262
+ }
5263
+ });
5264
+ });
6183
5265
  };
6184
- TransactionConnectorService.prototype.lockCompanyFullObject = function (relationNr) {
6185
- return this._adapterService.lockCompanyFullObject(relationNr);
5266
+ TransactionConnectorService.prototype.emailOrderConfirmation = function (emailOrderConfirmation) {
5267
+ return __awaiter(this, void 0, void 0, function () {
5268
+ return __generator(this, function (_a) {
5269
+ switch (_a.label) {
5270
+ case 0: return [4 /*yield*/, this._adapterService.emailOrderConfirmation(emailOrderConfirmation)];
5271
+ case 1: return [2 /*return*/, _a.sent()];
5272
+ }
5273
+ });
5274
+ });
6186
5275
  };
6187
- TransactionConnectorService.prototype.lockContactPerson = function (relationNr) {
6188
- return this._adapterService.lockContactPerson(relationNr);
5276
+ TransactionConnectorService.prototype.getStockStickerTemplates = function (data) {
5277
+ return __awaiter(this, void 0, void 0, function () {
5278
+ return __generator(this, function (_a) {
5279
+ switch (_a.label) {
5280
+ case 0: return [4 /*yield*/, this._adapterService.getStockStickerTemplates(data)];
5281
+ case 1: return [2 /*return*/, _a.sent()];
5282
+ }
5283
+ });
5284
+ });
6189
5285
  };
6190
5286
  return TransactionConnectorService;
6191
5287
  }());
@@ -6202,12 +5298,45 @@
6202
5298
  { type: SelectMultipleParameterizedCacheService }
6203
5299
  ]; };
6204
5300
 
5301
+ var TransactionEventService = /** @class */ (function () {
5302
+ function TransactionEventService() {
5303
+ this.addToCartBySku = new rxjs.Subject();
5304
+ this.addToCartBySelectorResult = new rxjs.Subject();
5305
+ this.openShoppingCartModule = new rxjs.Subject();
5306
+ this.loggedIn = new rxjs.Subject();
5307
+ this.addNewUserToShoppingCartModule = new rxjs.Subject();
5308
+ this.addUserRelationShoppingCartModule = new rxjs.Subject();
5309
+ this.addArticleLine = new rxjs.Subject();
5310
+ this.addTextLine = new rxjs.Subject();
5311
+ this.addArticleLineAt = new rxjs.Subject();
5312
+ this.addTextLineAt = new rxjs.Subject();
5313
+ this.changeLineSequence = new rxjs.Subject();
5314
+ this.transactionLineClicked = new rxjs.Subject();
5315
+ this.rightSidebarClose = new rxjs.Subject();
5316
+ this.scrollContent = new rxjs.Subject();
5317
+ this.commitReceivePurchaseOrders = new rxjs.Subject();
5318
+ this.selectAllLines = new rxjs.Subject();
5319
+ this.transactionLineChanged = new rxjs.Subject();
5320
+ this.openSidePanel = new rxjs.Subject();
5321
+ this.selectAllSalesOrderLinesForPurchase = new rxjs.Subject();
5322
+ this.generateCommissionOrders = new rxjs.Subject();
5323
+ this.allowPartialDeliveryChanged = new rxjs.Subject();
5324
+ this.connectionInitialized = new rxjs.BehaviorSubject(false);
5325
+ }
5326
+ return TransactionEventService;
5327
+ }());
5328
+ TransactionEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
5329
+ TransactionEventService.decorators = [
5330
+ { type: i0.Injectable, args: [{ providedIn: "root" },] }
5331
+ ];
5332
+
6205
5333
  var ArticleConnectorService = /** @class */ (function () {
6206
- function ArticleConnectorService(_optionsService) {
5334
+ function ArticleConnectorService(_optionsService, _transactionEventService) {
6207
5335
  var _this = this;
6208
5336
  this._optionsService = _optionsService;
6209
- this._boFactory = new BusinessObjectFactory();
6210
- this._optionsService.optionsInitialized.subscribe(function (initialized) {
5337
+ this._transactionEventService = _transactionEventService;
5338
+ this._boFactory = new businessObjectFactory.BusinessObjectFactory();
5339
+ this._transactionEventService.connectionInitialized.subscribe(function (initialized) {
6211
5340
  if (initialized) {
6212
5341
  _this.connect();
6213
5342
  }
@@ -6221,133 +5350,366 @@
6221
5350
  });
6222
5351
  });
6223
5352
  };
6224
- ArticleConnectorService.prototype.getWarehouseLocations = function (warehouseNr) {
5353
+ ArticleConnectorService.prototype.getWarehouseLocations = function (warehouseNr) {
5354
+ return __awaiter(this, void 0, void 0, function () {
5355
+ var _this = this;
5356
+ return __generator(this, function (_a) {
5357
+ return [2 /*return*/, new Promise(function (resolve, reject) {
5358
+ return _this.connector.getStockManagementLocations(warehouseNr).then(function (response) {
5359
+ if (response && response.validationResult && response.validationResult.success) {
5360
+ var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(stockLocation_bo.StockLocation, response.resultObjects);
5361
+ resolve(collection);
5362
+ }
5363
+ else {
5364
+ reject(response.validationMessagesAsString);
5365
+ }
5366
+ });
5367
+ })];
5368
+ });
5369
+ });
5370
+ };
5371
+ ArticleConnectorService.prototype.searchArticles = function (request) {
5372
+ return __awaiter(this, void 0, void 0, function () {
5373
+ var _this = this;
5374
+ return __generator(this, function (_a) {
5375
+ return [2 /*return*/, new Promise(function (resolve, reject) {
5376
+ return _this.connector.searchArticlesLight(request).then(function (response) {
5377
+ if (response && response.validationResult && response.validationResult.success) {
5378
+ var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(articleLight_bo.ArticleLight, response.resultObjects);
5379
+ resolve(collection);
5380
+ }
5381
+ else {
5382
+ reject(response.validationMessagesAsString);
5383
+ }
5384
+ });
5385
+ })];
5386
+ });
5387
+ });
5388
+ };
5389
+ ArticleConnectorService.prototype.getMainArticles = function () {
5390
+ return __awaiter(this, void 0, void 0, function () {
5391
+ var _this = this;
5392
+ return __generator(this, function (_a) {
5393
+ return [2 /*return*/, new Promise(function (resolve, reject) {
5394
+ return _this.connector.getMainArticles().then(function (response) {
5395
+ if (response && response.validationResult && response.validationResult.success) {
5396
+ var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(mainArticle_bo.MainArticle, response.resultObjects);
5397
+ resolve(collection);
5398
+ }
5399
+ else {
5400
+ reject(response.validationMessagesAsString);
5401
+ }
5402
+ });
5403
+ })];
5404
+ });
5405
+ });
5406
+ };
5407
+ ArticleConnectorService.prototype.getTurnoverGroups = function (category) {
5408
+ return __awaiter(this, void 0, void 0, function () {
5409
+ var _this = this;
5410
+ return __generator(this, function (_a) {
5411
+ return [2 /*return*/, new Promise(function (resolve, reject) {
5412
+ // const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
5413
+ // if (collection) {
5414
+ // return resolve(collection);
5415
+ // }
5416
+ return _this.connector.getTurnoverGroups(category).then(function (result) {
5417
+ if (result.validationResult && result.validationResult.success) {
5418
+ var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(turnoverGroupImage_bo.TurnoverGroupImage, result.resultObjects);
5419
+ // this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
5420
+ resolve(collection);
5421
+ }
5422
+ else {
5423
+ reject(result.validationMessagesAsString);
5424
+ }
5425
+ });
5426
+ })];
5427
+ });
5428
+ });
5429
+ };
5430
+ return ArticleConnectorService;
5431
+ }());
5432
+ ArticleConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: ArticleConnectorService, providedIn: "root" });
5433
+ ArticleConnectorService.decorators = [
5434
+ { type: i0.Injectable, args: [{
5435
+ providedIn: "root"
5436
+ },] }
5437
+ ];
5438
+ ArticleConnectorService.ctorParameters = function () { return [
5439
+ { type: OptionsService },
5440
+ { type: TransactionEventService }
5441
+ ]; };
5442
+
5443
+ var RelationConnectorService = /** @class */ (function () {
5444
+ function RelationConnectorService(_optionsService, _errorService, _transactionEventService) {
5445
+ var _this = this;
5446
+ this._optionsService = _optionsService;
5447
+ this._errorService = _errorService;
5448
+ this._transactionEventService = _transactionEventService;
5449
+ this._boFactory = new businessObjectFactory.BusinessObjectFactory();
5450
+ this._transactionEventService.connectionInitialized.subscribe(function (initialized) {
5451
+ if (initialized) {
5452
+ _this.connect();
5453
+ }
5454
+ });
5455
+ }
5456
+ RelationConnectorService.prototype.connect = function () {
5457
+ return __awaiter(this, void 0, void 0, function () {
5458
+ return __generator(this, function (_a) {
5459
+ this.connector = new relationapi.RelationApi(this._optionsService.options);
5460
+ return [2 /*return*/];
5461
+ });
5462
+ });
5463
+ };
5464
+ RelationConnectorService.prototype.getCustomerFullObject = function (relationNo) {
5465
+ return __awaiter(this, void 0, void 0, function () {
5466
+ var result;
5467
+ return __generator(this, function (_a) {
5468
+ switch (_a.label) {
5469
+ case 0: return [4 /*yield*/, this.connector.getCustomerFullObject(relationNo)];
5470
+ case 1:
5471
+ result = _a.sent();
5472
+ if (result.validationResult && result.validationResult.success) {
5473
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject)];
5474
+ }
5475
+ else {
5476
+ this._handleExceptionFromResponse(result);
5477
+ return [2 /*return*/, null];
5478
+ }
5479
+ return [2 /*return*/];
5480
+ }
5481
+ });
5482
+ });
5483
+ };
5484
+ RelationConnectorService.prototype.getSupplierFullObject = function (relationNo) {
5485
+ return __awaiter(this, void 0, void 0, function () {
5486
+ var result;
5487
+ return __generator(this, function (_a) {
5488
+ switch (_a.label) {
5489
+ case 0: return [4 /*yield*/, this.connector.getSupplierFullObject(relationNo)];
5490
+ case 1:
5491
+ result = _a.sent();
5492
+ if (result.validationResult && result.validationResult.success) {
5493
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(supplierFullObject_bo.SupplierFullObject, result.resultObject)];
5494
+ }
5495
+ else {
5496
+ this._handleExceptionFromResponse(result);
5497
+ return [2 /*return*/, null];
5498
+ }
5499
+ return [2 /*return*/];
5500
+ }
5501
+ });
5502
+ });
5503
+ };
5504
+ RelationConnectorService.prototype.getRelationListObjects = function (relationRequest) {
5505
+ return __awaiter(this, void 0, void 0, function () {
5506
+ var result;
5507
+ return __generator(this, function (_a) {
5508
+ switch (_a.label) {
5509
+ case 0: return [4 /*yield*/, this.connector.getRelationListObjects(relationRequest)];
5510
+ case 1:
5511
+ result = _a.sent();
5512
+ if (result.validationResult && result.validationResult.success) {
5513
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects)];
5514
+ }
5515
+ else {
5516
+ this._handleExceptionFromResponse(result);
5517
+ return [2 /*return*/, []];
5518
+ }
5519
+ return [2 /*return*/];
5520
+ }
5521
+ });
5522
+ });
5523
+ };
5524
+ RelationConnectorService.prototype.getRelationNumber = function (relationId) {
5525
+ return __awaiter(this, void 0, void 0, function () {
5526
+ var result;
5527
+ return __generator(this, function (_a) {
5528
+ switch (_a.label) {
5529
+ case 0: return [4 /*yield*/, this.connector.getRelationNumber(relationId)];
5530
+ case 1:
5531
+ result = _a.sent();
5532
+ if (result.validationResult && result.validationResult.success) {
5533
+ return [2 /*return*/, result.resultObject];
5534
+ }
5535
+ else {
5536
+ this._handleExceptionFromResponse(result);
5537
+ return [2 /*return*/, ""];
5538
+ }
5539
+ return [2 /*return*/];
5540
+ }
5541
+ });
5542
+ });
5543
+ };
5544
+ RelationConnectorService.prototype.getBranches = function (branchNr) {
5545
+ return __awaiter(this, void 0, void 0, function () {
5546
+ var result;
5547
+ return __generator(this, function (_a) {
5548
+ switch (_a.label) {
5549
+ case 0: return [4 /*yield*/, this.connector.getBranches(branchNr)];
5550
+ case 1:
5551
+ result = _a.sent();
5552
+ if (result.validationResult && result.validationResult.success) {
5553
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(branchLov_bo.BranchLov, result.resultObjects)];
5554
+ }
5555
+ else {
5556
+ this._handleExceptionFromResponse(result);
5557
+ return [2 /*return*/, []];
5558
+ }
5559
+ return [2 /*return*/];
5560
+ }
5561
+ });
5562
+ });
5563
+ };
5564
+ RelationConnectorService.prototype.commit = function () {
6225
5565
  return __awaiter(this, void 0, void 0, function () {
6226
- var _this = this;
5566
+ var result;
6227
5567
  return __generator(this, function (_a) {
6228
- return [2 /*return*/, new Promise(function (resolve, reject) {
6229
- return _this.connector.getStockManagementLocations(warehouseNr).then(function (response) {
6230
- if (response && response.validationResult && response.validationResult.success) {
6231
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(stockLocation_bo.StockLocation, response.resultObjects);
6232
- resolve(collection);
6233
- }
6234
- else {
6235
- reject(response.validationMessagesAsString);
6236
- }
6237
- });
6238
- })];
5568
+ switch (_a.label) {
5569
+ case 0: return [4 /*yield*/, this.connector.commit()];
5570
+ case 1:
5571
+ result = _a.sent();
5572
+ if (result) {
5573
+ return [2 /*return*/, true];
5574
+ }
5575
+ else {
5576
+ this._handleExceptionFromResponse(result);
5577
+ return [2 /*return*/, false];
5578
+ }
5579
+ return [2 /*return*/];
5580
+ }
6239
5581
  });
6240
5582
  });
6241
5583
  };
6242
- ArticleConnectorService.prototype.searchArticles = function (request) {
6243
- return __awaiter(this, void 0, void 0, function () {
6244
- var _this = this;
6245
- return __generator(this, function (_a) {
6246
- return [2 /*return*/, new Promise(function (resolve, reject) {
6247
- return _this.connector.searchArticlesLight(request).then(function (response) {
6248
- if (response && response.validationResult && response.validationResult.success) {
6249
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(articleLight_bo.ArticleLight, response.resultObjects);
6250
- resolve(collection);
6251
- }
6252
- else {
6253
- reject(response.validationMessagesAsString);
6254
- }
6255
- });
6256
- })];
6257
- });
5584
+ RelationConnectorService.prototype.lockCustomerFullObject = function (relationNr) {
5585
+ var _this = this;
5586
+ return new Promise(function (resolve, reject) {
5587
+ return _this.connector.lockCustomerById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5588
+ return __generator(this, function (_a) {
5589
+ resolve(result.validationResult);
5590
+ return [2 /*return*/];
5591
+ });
5592
+ }); });
6258
5593
  });
6259
5594
  };
6260
- ArticleConnectorService.prototype.getMainArticles = function () {
5595
+ RelationConnectorService.prototype.lockSupplierFullObject = function (relationNr) {
5596
+ var _this = this;
5597
+ return new Promise(function (resolve, reject) {
5598
+ return _this.connector.lockSupplierById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5599
+ return __generator(this, function (_a) {
5600
+ resolve(result.validationResult);
5601
+ return [2 /*return*/];
5602
+ });
5603
+ }); });
5604
+ });
5605
+ };
5606
+ RelationConnectorService.prototype.lockEmployeeFullObject = function (relationNr) {
5607
+ var _this = this;
5608
+ return new Promise(function (resolve, reject) {
5609
+ return _this.connector.lockEmployeeById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5610
+ return __generator(this, function (_a) {
5611
+ resolve(result.validationResult);
5612
+ return [2 /*return*/];
5613
+ });
5614
+ }); });
5615
+ });
5616
+ };
5617
+ RelationConnectorService.prototype.lockBranchFullObject = function (relationNr) {
5618
+ var _this = this;
5619
+ return new Promise(function (resolve, reject) {
5620
+ return _this.connector.lockBranchById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5621
+ return __generator(this, function (_a) {
5622
+ resolve(result.validationResult);
5623
+ return [2 /*return*/];
5624
+ });
5625
+ }); });
5626
+ });
5627
+ };
5628
+ RelationConnectorService.prototype.lockCompanyFullObject = function (relationNr) {
5629
+ var _this = this;
5630
+ return new Promise(function (resolve, reject) {
5631
+ return _this.connector.lockCompanyById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5632
+ return __generator(this, function (_a) {
5633
+ resolve(result.validationResult);
5634
+ return [2 /*return*/];
5635
+ });
5636
+ }); });
5637
+ });
5638
+ };
5639
+ RelationConnectorService.prototype.lockContactPerson = function (relationNr) {
5640
+ var _this = this;
5641
+ return new Promise(function (resolve, reject) {
5642
+ return _this.connector.lockContactPersonById(relationNr).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
5643
+ return __generator(this, function (_a) {
5644
+ resolve(result.validationResult);
5645
+ return [2 /*return*/];
5646
+ });
5647
+ }); });
5648
+ });
5649
+ };
5650
+ RelationConnectorService.prototype.insertCustomer = function (relation) {
6261
5651
  return __awaiter(this, void 0, void 0, function () {
6262
5652
  var _this = this;
6263
5653
  return __generator(this, function (_a) {
6264
5654
  return [2 /*return*/, new Promise(function (resolve, reject) {
6265
- return _this.connector.getMainArticles().then(function (response) {
6266
- if (response && response.validationResult && response.validationResult.success) {
6267
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(mainArticle_bo.MainArticle, response.resultObjects);
6268
- resolve(collection);
5655
+ return _this.connector.insertCustomer(relation).then(function (result) {
5656
+ if (result.validationResult && result.validationResult.success) {
5657
+ resolve(_this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject));
6269
5658
  }
6270
5659
  else {
6271
- reject(response.validationMessagesAsString);
5660
+ _this._handleExceptionFromResponse(result);
5661
+ reject(null);
6272
5662
  }
6273
5663
  });
6274
5664
  })];
6275
5665
  });
6276
5666
  });
6277
5667
  };
6278
- ArticleConnectorService.prototype.getTurnoverGroups = function (category) {
5668
+ RelationConnectorService.prototype.updateCustomer = function (relation) {
6279
5669
  return __awaiter(this, void 0, void 0, function () {
6280
5670
  var _this = this;
6281
5671
  return __generator(this, function (_a) {
6282
5672
  return [2 /*return*/, new Promise(function (resolve, reject) {
6283
- // const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
6284
- // if (collection) {
6285
- // return resolve(collection);
6286
- // }
6287
- return _this.connector.getTurnoverGroups(category).then(function (result) {
5673
+ return _this.connector.updateCustomer(relation).then(function (result) {
6288
5674
  if (result.validationResult && result.validationResult.success) {
6289
- var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(turnoverGroupImage_bo.TurnoverGroupImage, result.resultObjects);
6290
- // this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
6291
- resolve(collection);
5675
+ resolve(_this._boFactory.makeWithRawBackendData(customerFullObject_bo.CustomerFullObject, result.resultObject));
6292
5676
  }
6293
5677
  else {
6294
- reject(result.validationMessagesAsString);
5678
+ _this._handleExceptionFromResponse(result);
5679
+ reject(null);
6295
5680
  }
6296
5681
  });
6297
5682
  })];
6298
5683
  });
6299
5684
  });
6300
5685
  };
6301
- return ArticleConnectorService;
5686
+ RelationConnectorService.prototype._handleExceptionFromResponse = function (result) {
5687
+ this._errorService.showValidationError(result);
5688
+ };
5689
+ return RelationConnectorService;
6302
5690
  }());
6303
- ArticleConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0__namespace.ɵɵinject(OptionsService)); }, token: ArticleConnectorService, providedIn: "root" });
6304
- ArticleConnectorService.decorators = [
5691
+ RelationConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function RelationConnectorService_Factory() { return new RelationConnectorService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(ErrorService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: RelationConnectorService, providedIn: "root" });
5692
+ RelationConnectorService.decorators = [
6305
5693
  { type: i0.Injectable, args: [{
6306
5694
  providedIn: "root"
6307
5695
  },] }
6308
5696
  ];
6309
- ArticleConnectorService.ctorParameters = function () { return [
6310
- { type: OptionsService }
5697
+ RelationConnectorService.ctorParameters = function () { return [
5698
+ { type: OptionsService },
5699
+ { type: ErrorService },
5700
+ { type: TransactionEventService }
6311
5701
  ]; };
6312
5702
 
6313
- var TransactionEventService = /** @class */ (function () {
6314
- function TransactionEventService() {
6315
- this.addToCartBySku = new rxjs.Subject();
6316
- this.addToCartBySelectorResult = new rxjs.Subject();
6317
- this.openShoppingCartModule = new rxjs.Subject();
6318
- this.loggedIn = new rxjs.Subject();
6319
- this.addNewUserToShoppingCartModule = new rxjs.Subject();
6320
- this.addUserRelationShoppingCartModule = new rxjs.Subject();
6321
- this.addArticleLine = new rxjs.Subject();
6322
- this.addTextLine = new rxjs.Subject();
6323
- this.addArticleLineAt = new rxjs.Subject();
6324
- this.addTextLineAt = new rxjs.Subject();
6325
- this.changeLineSequence = new rxjs.Subject();
6326
- this.transactionLineClicked = new rxjs.Subject();
6327
- this.rightSidebarClose = new rxjs.Subject();
6328
- this.scrollContent = new rxjs.Subject();
6329
- this.commitReceivePurchaseOrders = new rxjs.Subject();
6330
- this.selectAllLines = new rxjs.Subject();
6331
- this.transactionLineChanged = new rxjs.Subject();
6332
- this.openSidePanel = new rxjs.Subject();
6333
- this.selectAllSalesOrderLinesForPurchase = new rxjs.Subject();
6334
- this.generateCommissionOrders = new rxjs.Subject();
6335
- }
6336
- return TransactionEventService;
6337
- }());
6338
- TransactionEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
6339
- TransactionEventService.decorators = [
6340
- { type: i0.Injectable, args: [{ providedIn: "root" },] }
6341
- ];
6342
-
6343
5703
  var PendingReasonService = /** @class */ (function () {
6344
- function PendingReasonService(dialogService, options, connector, articleConnector, dictionaryService, transactionEventService) {
5704
+ function PendingReasonService(dialogService, options, connector, sharedService, articleConnector, dictionaryService, transactionEventService, relationConnector) {
6345
5705
  this.dialogService = dialogService;
6346
5706
  this.options = options;
6347
5707
  this.connector = connector;
5708
+ this.sharedService = sharedService;
6348
5709
  this.articleConnector = articleConnector;
6349
5710
  this.dictionaryService = dictionaryService;
6350
5711
  this.transactionEventService = transactionEventService;
5712
+ this.relationConnector = relationConnector;
6351
5713
  this.logout = new rxjs.Subject();
6352
5714
  this.transactionUpdated = new rxjs.BehaviorSubject(undefined);
6353
5715
  this.relationUpdated = new rxjs.BehaviorSubject(undefined);
@@ -6379,7 +5741,9 @@
6379
5741
  case 0: return [4 /*yield*/, this.options.initialize(options)];
6380
5742
  case 1:
6381
5743
  _a.sent();
5744
+ this.sharedService.init(options);
6382
5745
  this.connector.connect();
5746
+ this.transactionEventService.connectionInitialized.next(true);
6383
5747
  return [2 /*return*/];
6384
5748
  }
6385
5749
  });
@@ -6616,38 +5980,6 @@
6616
5980
  });
6617
5981
  });
6618
5982
  };
6619
- PendingReasonService.prototype.getCustomerFullObjectByRelationId = function (relationId) {
6620
- return __awaiter(this, void 0, void 0, function () {
6621
- var relationNr;
6622
- return __generator(this, function (_a) {
6623
- switch (_a.label) {
6624
- case 0: return [4 /*yield*/, this.connector.getRelationNumber(relationId)];
6625
- case 1:
6626
- relationNr = _a.sent();
6627
- if (!relationNr) return [3 /*break*/, 3];
6628
- return [4 /*yield*/, this.connector.getCustomerFullObject(Number(relationNr))];
6629
- case 2: return [2 /*return*/, _a.sent()];
6630
- case 3: return [2 /*return*/, nulRelationObject.NULL_CUSTOMER_FULL_OBJECT];
6631
- }
6632
- });
6633
- });
6634
- };
6635
- PendingReasonService.prototype.getSupplierFullObjectByRelationId = function (relationId) {
6636
- return __awaiter(this, void 0, void 0, function () {
6637
- var relationNr;
6638
- return __generator(this, function (_a) {
6639
- switch (_a.label) {
6640
- case 0: return [4 /*yield*/, this.connector.getRelationNumber(relationId)];
6641
- case 1:
6642
- relationNr = _a.sent();
6643
- if (!relationNr) return [3 /*break*/, 3];
6644
- return [4 /*yield*/, this.connector.getSupplierFullObject(Number(relationNr))];
6645
- case 2: return [2 /*return*/, _a.sent()];
6646
- case 3: return [2 /*return*/, new supplierFullObject_bo.SupplierFullObject()];
6647
- }
6648
- });
6649
- });
6650
- };
6651
5983
  PendingReasonService.prototype._confirmAction = function (uuid, reason, type) {
6652
5984
  return __awaiter(this, void 0, void 0, function () {
6653
5985
  var reasonRequest, _a;
@@ -6768,12 +6100,14 @@
6768
6100
  var _this = this;
6769
6101
  if (relation) {
6770
6102
  if (relation.relationType === relationKind_enum.RelationKind.Customer) {
6771
- this.getCustomerFullObjectByRelationId(relation.relationId).then(function (customer) {
6772
- _this.relation = customer;
6103
+ this.relationConnector.getRelationNumber(relation.relationId).then(function (relationNr) {
6104
+ _this.relationConnector.getCustomerFullObject(parseInt(relationNr, 0)).then(function (customer) {
6105
+ _this.relation = customer;
6106
+ });
6773
6107
  });
6774
6108
  }
6775
6109
  else if (relation.relationType === relationKind_enum.RelationKind.Supplier) {
6776
- this.getSupplierFullObjectByRelationId(relation.relationId).then(function (supplier) {
6110
+ this.relationConnector.getSupplierFullObject(relation.relationId).then(function (supplier) {
6777
6111
  _this.relation = supplier;
6778
6112
  });
6779
6113
  }
@@ -6781,7 +6115,7 @@
6781
6115
  };
6782
6116
  return PendingReasonService;
6783
6117
  }());
6784
- PendingReasonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(ArticleConnectorService), i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: PendingReasonService, providedIn: "root" });
6118
+ PendingReasonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(i4__namespace.SharedService), i0__namespace.ɵɵinject(ArticleConnectorService), i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(TransactionEventService), i0__namespace.ɵɵinject(RelationConnectorService)); }, token: PendingReasonService, providedIn: "root" });
6785
6119
  PendingReasonService.decorators = [
6786
6120
  { type: i0.Injectable, args: [{
6787
6121
  providedIn: "root"
@@ -6791,24 +6125,17 @@
6791
6125
  { type: DialogService },
6792
6126
  { type: OptionsService },
6793
6127
  { type: TransactionConnectorService },
6128
+ { type: i4.SharedService },
6794
6129
  { type: ArticleConnectorService },
6795
6130
  { type: DictionaryService },
6796
- { type: TransactionEventService }
6131
+ { type: TransactionEventService },
6132
+ { type: RelationConnectorService }
6797
6133
  ]; };
6798
6134
 
6799
6135
  var TransactionService = /** @class */ (function (_super) {
6800
6136
  __extends(TransactionService, _super);
6801
6137
  function TransactionService() {
6802
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
6803
- _this._lockMethods = new Map([
6804
- [relationKind_enum.RelationKind.Customer, function (relationNr) { return _this._lockCustomerFullObject(relationNr); }],
6805
- [relationKind_enum.RelationKind.Supplier, function (relationNr) { return _this._lockSupplierFullObject(relationNr); }],
6806
- [relationKind_enum.RelationKind.Personnel, function (relationNr) { return _this._lockEmployeeFullObject(relationNr); }],
6807
- [relationKind_enum.RelationKind.Branch, function (relationNr) { return _this._lockBranchFullObject(relationNr); }],
6808
- [relationKind_enum.RelationKind.Company, function (relationNr) { return _this._lockCompanyFullObject(relationNr); }],
6809
- [relationKind_enum.RelationKind.ContactPerson, function (relationNr) { return _this._lockContactPerson(relationNr); }],
6810
- ]);
6811
- return _this;
6138
+ return _super !== null && _super.apply(this, arguments) || this;
6812
6139
  }
6813
6140
  TransactionService.prototype.pendingLineOperationStatus = function (lineOperationStatuses) {
6814
6141
  var status = lineOperationStatuses.find(function (line) { return line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NONE
@@ -7361,13 +6688,13 @@
7361
6688
  this.initializeTransaction();
7362
6689
  if (!!this.relation.relationId) return [3 /*break*/, 2];
7363
6690
  _a = this;
7364
- return [4 /*yield*/, this.connector.insertCustomer(this.relation)];
6691
+ return [4 /*yield*/, this.relationConnector.insertCustomer(this.relation)];
7365
6692
  case 1:
7366
6693
  _a.relation = _c.sent();
7367
6694
  return [3 /*break*/, 4];
7368
6695
  case 2:
7369
6696
  _b = this;
7370
- return [4 /*yield*/, this.connector.updateCustomer(this.relation)];
6697
+ return [4 /*yield*/, this.relationConnector.updateCustomer(this.relation)];
7371
6698
  case 3:
7372
6699
  _b.relation = _c.sent();
7373
6700
  _c.label = 4;
@@ -7411,22 +6738,18 @@
7411
6738
  return new Promise(function (resolve, reject) {
7412
6739
  _this.connector.getTransactionById(transactionId)
7413
6740
  .then(function (transaction) { return __awaiter(_this, void 0, void 0, function () {
7414
- var lockResponse, lockDetails;
6741
+ var lockSuccess;
7415
6742
  return __generator(this, function (_a) {
7416
6743
  switch (_a.label) {
7417
6744
  case 0:
7418
6745
  if (!transaction.isSuccess) return [3 /*break*/, 2];
7419
- return [4 /*yield*/, this.lockTransaction(transaction.transactionInfo.id, 0)];
6746
+ return [4 /*yield*/, this.tryToLockTransaction(transaction.transactionInfo.id, transaction.transactionInfo.version)];
7420
6747
  case 1:
7421
- lockResponse = _a.sent();
7422
- if (lockResponse && lockResponse.isLockSuccess) {
6748
+ lockSuccess = _a.sent();
6749
+ if (lockSuccess) {
7423
6750
  this.rememberCurrentTransaction(transaction);
7424
6751
  this.transactionUpdated.next(transaction);
7425
6752
  }
7426
- else {
7427
- lockDetails = this.dictionaryService.get("BY") + ": " + lockResponse.lockedBy + "\n " + this.dictionaryService.get("SINCE", false) + " " + lockResponse.lockedSince.toLocaleString();
7428
- this.dialogService.showError(this.dictionaryService.get("TRANSACTION_ALREADY_LOCKED"), lockDetails);
7429
- }
7430
6753
  resolve(true);
7431
6754
  return [3 /*break*/, 3];
7432
6755
  case 2:
@@ -7441,16 +6764,23 @@
7441
6764
  });
7442
6765
  });
7443
6766
  };
7444
- TransactionService.prototype.lockRelation = function (relationKind, relationNr) {
7445
- var lockMethod = this._lockMethods.get(relationKind);
7446
- if (lockMethod) {
7447
- return lockMethod.call(this, relationNr);
7448
- }
7449
- else {
7450
- var result = new validationResult.ValidationResult();
7451
- result.success = false;
7452
- return Promise.resolve(result);
7453
- }
6767
+ TransactionService.prototype.tryToLockTransaction = function (id, version) {
6768
+ return __awaiter(this, void 0, void 0, function () {
6769
+ var lockResponse, lockDetails;
6770
+ return __generator(this, function (_a) {
6771
+ switch (_a.label) {
6772
+ case 0: return [4 /*yield*/, this.lockTransaction(id, version)];
6773
+ case 1:
6774
+ lockResponse = _a.sent();
6775
+ if (lockResponse && !lockResponse.isLockSuccess) {
6776
+ lockDetails = this.dictionaryService.get("BY") + ": " + lockResponse.lockedBy + "\n " + this.dictionaryService.get("SINCE", false) + " " + lockResponse.lockedSince.toLocaleString();
6777
+ this.dialogService.showError(this.dictionaryService.get("TRANSACTION_ALREADY_LOCKED"), lockDetails);
6778
+ return [2 /*return*/, false];
6779
+ }
6780
+ return [2 /*return*/, true];
6781
+ }
6782
+ });
6783
+ });
7454
6784
  };
7455
6785
  TransactionService.prototype.lockTransaction = function (transId, version) {
7456
6786
  return this.connector.lockTransactionById(transId, version);
@@ -7518,37 +6848,14 @@
7518
6848
  TransactionService.prototype.getMainArticles = function () {
7519
6849
  return this.articleConnector.getMainArticles();
7520
6850
  };
7521
- TransactionService.prototype.insertCustomer = function (relation) {
7522
- return this.connector.insertCustomer(relation);
7523
- };
7524
- TransactionService.prototype.updateCustomer = function (relation) {
7525
- return __awaiter(this, void 0, void 0, function () {
7526
- var _this = this;
7527
- return __generator(this, function (_a) {
7528
- return [2 /*return*/, new Promise(function (resolve, reject) {
7529
- _this.connector.updateCustomer(relation).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
7530
- return __generator(this, function (_a) {
7531
- // this.currentTransaction.transactionInfo.relation = relation;
7532
- resolve(response);
7533
- return [2 /*return*/];
7534
- });
7535
- }); })
7536
- .catch(function (response) {
7537
- resolve(response);
7538
- });
7539
- })];
7540
- });
7541
- });
7542
- };
7543
6851
  TransactionService.prototype.getDeliveryMethods = function () {
7544
6852
  return this.connector.getDeliveryMethods();
7545
6853
  };
7546
6854
  TransactionService.prototype.getDeliveryOptions = function () {
7547
6855
  return this.connector.getDeliveryOptions();
7548
6856
  };
7549
- // todo: move to relation api?
7550
- TransactionService.prototype.getRelationListObjects = function (relationRequest) {
7551
- return this.connector.getRelationListObjects(relationRequest);
6857
+ TransactionService.prototype.getSalesPersons = function (date) {
6858
+ return this.connector.getSalesPersons(date);
7552
6859
  };
7553
6860
  TransactionService.prototype.addArticle = function (articleNo, isReturn, aboveLineNr, belowLineNr) {
7554
6861
  if (isReturn === void 0) { isReturn = false; }
@@ -7820,21 +7127,12 @@
7820
7127
  TransactionService.prototype.getCashRegisters = function (branch, group) {
7821
7128
  return this.connector.getCashRegisters(branch, group);
7822
7129
  };
7823
- TransactionService.prototype.getRelationNumber = function (relationId) {
7824
- return this.connector.getRelationNumber(relationId);
7825
- };
7826
7130
  TransactionService.prototype.getPriceLists = function () {
7827
7131
  return this.connector.getPriceLists();
7828
7132
  };
7829
7133
  TransactionService.prototype.getVatLists = function () {
7830
7134
  return this.connector.getVatList();
7831
7135
  };
7832
- TransactionService.prototype.getBranches = function (branchNr) {
7833
- return this.connector.getBranches(branchNr);
7834
- };
7835
- TransactionService.prototype.getSalesPersons = function (date) {
7836
- return this.connector.getSalesPersons(date);
7837
- };
7838
7136
  TransactionService.prototype.getTags = function (category) {
7839
7137
  return this.connector.getTags(category);
7840
7138
  };
@@ -7890,6 +7188,16 @@
7890
7188
  });
7891
7189
  });
7892
7190
  };
7191
+ TransactionService.prototype.getDeliveryOrderStatus = function (transId, lineId) {
7192
+ return __awaiter(this, void 0, void 0, function () {
7193
+ return __generator(this, function (_a) {
7194
+ switch (_a.label) {
7195
+ case 0: return [4 /*yield*/, this.connector.getDeliveryOrderStatus(transId, lineId)];
7196
+ case 1: return [2 /*return*/, _a.sent()];
7197
+ }
7198
+ });
7199
+ });
7200
+ };
7893
7201
  // private _cleanRelationBeforeSave(): void {
7894
7202
  // ArrayUtils.RemoveElementsByFilter(this.currentTransaction.transactionInfo.relation.contactOptions, ((item: ContactOption) => {
7895
7203
  // return isNill(item.value);
@@ -7912,27 +7220,9 @@
7912
7220
  });
7913
7221
  });
7914
7222
  };
7915
- TransactionService.prototype._lockCustomerFullObject = function (relationNr) {
7916
- return this.connector.lockCustomerFullObject(relationNr);
7917
- };
7918
- TransactionService.prototype._lockSupplierFullObject = function (relationNr) {
7919
- return this.connector.lockSupplierFullObject(relationNr);
7920
- };
7921
- TransactionService.prototype._lockEmployeeFullObject = function (relationNr) {
7922
- return this.connector.lockEmployeeFullObject(relationNr);
7923
- };
7924
- TransactionService.prototype._lockBranchFullObject = function (relationNr) {
7925
- return this.connector.lockBranchFullObject(relationNr);
7926
- };
7927
- TransactionService.prototype._lockCompanyFullObject = function (relationNr) {
7928
- return this.connector.lockCompanyFullObject(relationNr);
7929
- };
7930
- TransactionService.prototype._lockContactPerson = function (relationNr) {
7931
- return this.connector.lockContactPerson(relationNr);
7932
- };
7933
7223
  return TransactionService;
7934
7224
  }(PendingReasonService));
7935
- TransactionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(ArticleConnectorService), i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: TransactionService, providedIn: "root" });
7225
+ TransactionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(i4__namespace.SharedService), i0__namespace.ɵɵinject(ArticleConnectorService), i0__namespace.ɵɵinject(DictionaryService), i0__namespace.ɵɵinject(TransactionEventService), i0__namespace.ɵɵinject(RelationConnectorService)); }, token: TransactionService, providedIn: "root" });
7936
7226
  TransactionService.decorators = [
7937
7227
  { type: i0.Injectable, args: [{
7938
7228
  providedIn: "root"
@@ -7983,23 +7273,27 @@
7983
7273
  };
7984
7274
  CheckoutComponent.prototype.handleDeliveryValidation = function () {
7985
7275
  return __awaiter(this, void 0, void 0, function () {
7986
- var valid, response, _a;
7276
+ var valid, response, lockSuccess, _a;
7987
7277
  return __generator(this, function (_b) {
7988
7278
  switch (_b.label) {
7989
7279
  case 0:
7990
- if (!(this.checkoutDelivery && this.stepDelivery)) return [3 /*break*/, 3];
7280
+ if (!(this.checkoutDelivery && this.stepDelivery)) return [3 /*break*/, 4];
7991
7281
  valid = this.checkoutDelivery.submit();
7992
- if (!valid) return [3 /*break*/, 3];
7282
+ if (!valid) return [3 /*break*/, 4];
7993
7283
  return [4 /*yield*/, this.service.saveTransaction()];
7994
7284
  case 1:
7995
7285
  response = _b.sent();
7996
- if (!(response && response.isSuccess)) return [3 /*break*/, 3];
7286
+ if (!(response && response.isSuccess)) return [3 /*break*/, 4];
7287
+ return [4 /*yield*/, this.service.tryToLockTransaction(this.service.currentTransaction.transactionInfo.id, this.service.currentTransaction.transactionInfo.version)];
7288
+ case 2:
7289
+ lockSuccess = _b.sent();
7290
+ if (!lockSuccess) return [3 /*break*/, 4];
7997
7291
  _a = this.stepDelivery;
7998
7292
  return [4 /*yield*/, this.handleSaveDelivery()];
7999
- case 2:
7293
+ case 3:
8000
7294
  _a.completed = _b.sent();
8001
- _b.label = 3;
8002
- case 3: return [2 /*return*/];
7295
+ _b.label = 4;
7296
+ case 4: return [2 /*return*/];
8003
7297
  }
8004
7298
  });
8005
7299
  });
@@ -8064,7 +7358,7 @@
8064
7358
  CheckoutComponent.decorators = [
8065
7359
  { type: i0.Component, args: [{
8066
7360
  selector: "co-checkout",
8067
- template: "\n <co-stepper #stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"handleFinishStep()\">\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\"\n (deliveryAddressChange)=\"handleDeliveryAddressChange($event)\"\n (invoiceAddressChange)=\"handleInvoiceAddressChange($event)\"\n (relationChange)=\"service.relation = $event\"\n ></co-checkout-overview-relation-edit>\n </co-stepper-step>\n <co-stepper-step #stepDelivery [index]=\"2\" [label]=\"'DELIVERY' | localize\" (validateStep)=\"handleDeliveryValidation()\">\n <co-checkout-overview-delivery-edit #checkoutDelivery *ngIf=\"stepDelivery.show\"\n [transaction]=\"service.currentTransaction\"\n ></co-checkout-overview-delivery-edit>\n </co-stepper-step>\n <co-stepper-step #stepOverview [index]=\"3\" [label]=\"'OVERVIEW_AND_PAYMENT' | localize\">\n <co-checkout-overview-payment *ngIf=\"stepOverview.show\"\n [relation]=\"service.relation\"\n [transaction]=\"service.currentTransaction\"\n (changeYourDataClick)=\"stepper.goto(0)\"\n (changeDeliveryClick)=\"stepper.goto(1)\"\n (payed)=\"handleTransactionFinished($event)\"\n ></co-checkout-overview-payment>\n </co-stepper-step>\n <div class=\"co-checkout-right-panel\">\n <div class=\"co-checkout-right-panel-relation\">\n <co-avatar [relationId]=\"sellerId\"></co-avatar>\n </div>\n <co-shopping-cart-preview [showCheckoutButton]=\"false\" [withoutBorder]=\"true\"></co-shopping-cart-preview>\n </div>\n </co-stepper>\n ",
7361
+ template: "\n <co-stepper #stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"handleFinishStep()\">\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\"\n [deliveryAddressNawNr]=\"deliveryAddressNawNr\"\n [invoiceAddressNawNr]=\"invoiceAddressNawNr\"\n (deliveryAddressChange)=\"handleDeliveryAddressChange($event)\"\n (invoiceAddressChange)=\"handleInvoiceAddressChange($event)\"\n (relationChange)=\"service.relation = $event\"\n ></co-checkout-overview-relation-edit>\n </co-stepper-step>\n <co-stepper-step #stepDelivery [index]=\"2\" [label]=\"'DELIVERY' | localize\" (validateStep)=\"handleDeliveryValidation()\">\n <co-checkout-overview-delivery-edit #checkoutDelivery *ngIf=\"stepDelivery.show\"\n [transaction]=\"service.currentTransaction\"\n ></co-checkout-overview-delivery-edit>\n </co-stepper-step>\n <co-stepper-step #stepOverview [index]=\"3\" [label]=\"'OVERVIEW_AND_PAYMENT' | localize\">\n <co-checkout-overview-payment *ngIf=\"stepOverview.show\"\n [relation]=\"service.relation\"\n [transaction]=\"service.currentTransaction\"\n (changeYourDataClick)=\"stepper.goto(0)\"\n (changeDeliveryClick)=\"stepper.goto(1)\"\n (payed)=\"handleTransactionFinished($event)\"\n ></co-checkout-overview-payment>\n </co-stepper-step>\n <div class=\"co-checkout-right-panel\">\n <div class=\"co-checkout-right-panel-relation\">\n <co-avatar [relationId]=\"sellerId\"></co-avatar>\n </div>\n <co-shopping-cart-preview [showCheckoutButton]=\"false\" [withoutBorder]=\"true\"></co-shopping-cart-preview>\n </div>\n </co-stepper>\n ",
8068
7362
  encapsulation: i0.ViewEncapsulation.None
8069
7363
  },] }
8070
7364
  ];
@@ -8088,11 +7382,10 @@
8088
7382
  };
8089
7383
 
8090
7384
  var CheckoutOverviewRelationEditComponent = /** @class */ (function () {
8091
- function CheckoutOverviewRelationEditComponent(_formMaster, _boFactory, service) {
7385
+ function CheckoutOverviewRelationEditComponent(_formMaster, service) {
8092
7386
  this._formMaster = _formMaster;
8093
- this._boFactory = _boFactory;
8094
7387
  this.service = service;
8095
- this.relationKind = relationKind_enum.RelationKind;
7388
+ this.relationKind = relationKind_enum$1.RelationKind;
8096
7389
  this.icons = Icon;
8097
7390
  this.addressType = addressType_enum.AddressType;
8098
7391
  this.validSubmit = new i0.EventEmitter();
@@ -8100,23 +7393,12 @@
8100
7393
  this.deliveryAddressChange = new i0.EventEmitter();
8101
7394
  this.invoiceAddressChange = new i0.EventEmitter();
8102
7395
  this.relationChange = new i0.EventEmitter();
8103
- // public formRelation: FormGroup;
8104
- // public accountPassword: string = "";
8105
- // public hide: boolean = true;
8106
- // public gender: GenderType = GenderType.Unspecified;
8107
- // public privacySettings: RelationPrivacySetting[];
8108
- // public addresses: Address[] = [];
8109
7396
  this._relation = new customerFullObject_bo.CustomerFullObject();
8110
- // public deliveryAddressIdx: number = 0;
8111
- // public invoiceAddressIdx: number = 0;
8112
- this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
8113
7397
  }
8114
7398
  Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "relation", {
8115
7399
  get: function () {
8116
7400
  return this._relation;
8117
7401
  },
8118
- // @ViewChild(FormComponent, {static: true})
8119
- // public relationForm: FormComponent;
8120
7402
  set: function (value) {
8121
7403
  this._relation = value;
8122
7404
  if (this._relation) {
@@ -8133,24 +7415,6 @@
8133
7415
  return true;
8134
7416
  };
8135
7417
  Object.defineProperty(CheckoutOverviewRelationEditComponent.prototype, "applicationUser", {
8136
- // public addressToEdit: Address;
8137
- // public showSelectAddressDialog: boolean = false;
8138
- // public showCreateAddressDialog: boolean = false;
8139
- // public readonly relType: typeof RelationNameKind = RelationNameKind;
8140
- // public readonly genderType: typeof GenderType = GenderType;
8141
- // public get editFirstAddress(): Address {
8142
- // const firstAddress: Address = this.service.getFirstAddress(this.relation);
8143
- // if (firstAddress) {
8144
- // return firstAddress;
8145
- // } else if (this._relation) {
8146
- // const address: Address = new Address();
8147
- // address.addressType = AddressType.DeliveryAddress;
8148
- // address.startDate = new Date();
8149
- // address.sequence = this._relation.getNextAddressSequence();
8150
- // this._relation.addresses.push(address);
8151
- // return address;
8152
- // }
8153
- // }
8154
7418
  get: function () {
8155
7419
  return this.service.applicationUser;
8156
7420
  },
@@ -8172,102 +7436,20 @@
8172
7436
  this.relationChange.emit(this._relation);
8173
7437
  };
8174
7438
  CheckoutOverviewRelationEditComponent.prototype.submit = function () {
8175
- // return this.relationForm.submit();
8176
7439
  return this._formMaster.submitSlaves();
8177
7440
  };
8178
- // public showNewAddressDialog(deliveryAddress: boolean = true): void {
8179
- // this.editAddressType = deliveryAddress ? AddressType.DeliveryAddress : AddressType.BillingAddress;
8180
- // this.showCreateAddressDialog = true;
8181
- // }
8182
- // public showEditAddressDialog(deliveryAddress: boolean = true): void {
8183
- // this.editAddressType = deliveryAddress ? AddressType.DeliveryAddress : AddressType.BillingAddress;
8184
- // this.showSelectAddressDialog = true;
8185
- // }
8186
- // public setIndexDeliveryAddress(idx: number): void {
8187
- // this.deliveryAddressIdx = idx;
8188
- // this.editAddressType = AddressType.DeliveryAddress;
8189
- // }
8190
- //
8191
- // public setIndexInvoiceAddress(idx: number): void {
8192
- // this.invoiceAddressIdx = idx;
8193
- // this.editAddressType = AddressType.BillingAddress;
8194
- // // this.selectAddress(this.relation.addresses[idx]);
8195
- // }
8196
- // public editAddress(addr: Address): void {
8197
- // this.addressToEdit = <Address><unknown>this._boFactory.makeWithRawBackendData(Address, addr);
8198
- // this.showEditAddressDialog()
8199
- // }
8200
- CheckoutOverviewRelationEditComponent.prototype.checkSameAddress = function (checked) {
8201
- if (checked) {
8202
- this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
8203
- // this.selectAddress(this.deliveryAddress);
7441
+ CheckoutOverviewRelationEditComponent.prototype.handleNewAddress = function (type, address) {
7442
+ if (!address.nawNr) { // new address
7443
+ address.addressType = type;
7444
+ address.startDate = new Date();
7445
+ address.sequence = this.relation.getNextAddressSequence();
7446
+ this.relation.addresses.push(address);
8204
7447
  }
8205
7448
  };
8206
- // public saveNewAddress(address: Address): void {
8207
- // address.addressType = this.editAddressType;
8208
- // this.relation.addresses.push(address);
8209
- // this.selectAddress(address);
8210
- // this.showCreateAddressDialog = false;
8211
- // }
8212
- // public saveAddress(address: Address): void {
8213
- // const idx: number = this.relation.addresses.findIndex(a => a.nawNr === address.nawNr);
8214
- // if (idx > -1) {
8215
- // this.relation.addresses[idx] = <Address><unknown>this._boFactory.makeWithRawBackendData(Address, address);
8216
- // }
8217
- // this.showSelectAddressDialog = false;
8218
- // }
8219
- // public selectAddress(address?: Address): void {
8220
- // // if (!this.deliveryOptionsRequest) {
8221
- // // return;
8222
- // // }
8223
- // // if (!address) {
8224
- // // address = this.service.getFirstAddress(this.relation);
8225
- // // }
8226
- // // if (!address) {
8227
- // // return;
8228
- // // }
8229
- // // this._setCountryNameToAddress(address);
8230
- // // if (this.editAddressType === AddressType.DeliveryAddress) {
8231
- // // this.deliveryOptionsRequest.transactionAddress = address.nawNr;
8232
- // // this.deliveryAddress = address;
8233
- // // this.deliveryAddressIdx = this.relation.addresses.findIndex(a => a.nawNr === this.deliveryAddress.nawNr);
8234
- // // }
8235
- // // if (this.invoiceAddressSameAsDeliveryAddress || this.editAddressType !== AddressType.DeliveryAddress) {
8236
- // // this.deliveryOptionsRequest.invoiceAddress = address.nawNr;
8237
- // // this.invoiceAddress = address;
8238
- // // this.invoiceAddressIdx = this.relation.addresses.findIndex(a => a.nawNr === this.invoiceAddress.nawNr);
8239
- // // }
8240
- // this.showSelectAddressDialog = false;
8241
- // }
8242
- // public async loadPrivacySettings(): Promise<void> {
8243
- // this.privacySettings = await this.service.getRelationPrivacySettings();
8244
- // }
8245
- // public async loadMarketing(): Promise<void> {
8246
- // await this.service.getMarketingCodes();
8247
- // }
8248
- // public isShared(relationPrivacySetting: RelationPrivacySetting): boolean {
8249
- // const ownSetting: RelationPrivacySetting = BusinessObjectUtils.FindItemById(this.relationAsCustomer.relationPrivacySettings, relationPrivacySetting.getId());
8250
- // if (ownSetting) {
8251
- // return ownSetting.allowToShare;
8252
- // }
8253
- // return false;
8254
- // }
8255
- // public changeRelationType(value: RelationNameKind): void {
8256
- // this.relation.type = value;
8257
- // }
8258
- // public changePrivacySetting(relationPrivacySetting: RelationPrivacySetting, value: boolean): void {
8259
- // const ownSetting: RelationPrivacySetting = BusinessObjectUtils.FindItemById(this.relationAsCustomer.relationPrivacySettings, relationPrivacySetting.getId());
8260
- // if (ownSetting) {
8261
- // ownSetting.allowToShare = value;
8262
- // } else {
8263
- // this.relationAsCustomer.relationPrivacySettings.push(relationPrivacySetting);
8264
- // }
8265
- // }
8266
- // private _initForm(): void {
8267
- // if (this.relationForm) {
8268
- // this.formRelation = this.relationForm.formGroup;
8269
- // }
8270
- // }
7449
+ CheckoutOverviewRelationEditComponent.prototype.checkSameAddress = function (checked) {
7450
+ this.invoiceAddressNawNr = this.deliveryAddressNawNr;
7451
+ this.invoiceAddressChange.next(this.invoiceAddressNawNr);
7452
+ };
8271
7453
  CheckoutOverviewRelationEditComponent.prototype._setCountryNameToAddress = function (address) {
8272
7454
  return __awaiter(this, void 0, void 0, function () {
8273
7455
  var country;
@@ -8290,7 +7472,7 @@
8290
7472
  CheckoutOverviewRelationEditComponent.decorators = [
8291
7473
  { type: i0.Component, args: [{
8292
7474
  selector: "co-checkout-overview-relation-edit",
8293
- template: "\n <div class=\"relation-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span>01</span>\n <span class=\"label\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-type\n [relation]=\"relation\"\n ></co-relation-type>\n </div>\n <div class=\"checkout-data-row\">\n <relation-customer-groups [(model)]=\"relation.customerGroup\" required></relation-customer-groups>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-general [relation]=\"relation\" (relationChange)=\"updateRelation($event)\"></co-relation-general>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-address [address]=\"address\"></co-relation-address>\n </div>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.addresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressNawNr\"\n (selectedNawNrChange)=\"deliveryAddressChange.emit($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>02</span>\n <span class=\"label\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"service.invoiceAddressSameAsDelivery\" (modelChange)=\"checkSameAddress($event)\" [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n </div>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!service.invoiceAddressSameAsDelivery\" @showHideInvoiceAddress>\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressNawNr\"\n (selectedNawNrChange)=\"invoiceAddressChange.emit($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>03</span>\n <span class=\"label\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-contact-details [relation]=\"relation\"></co-relation-contact-details>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>04</span>\n <span class=\"label\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-preferences [relation]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </div>\n </co-form>\n </div>\n ",
7475
+ template: "\n <div class=\"relation-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span>01</span>\n <span class=\"label\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-type\n [relation]=\"relation\"\n ></co-relation-type>\n </div>\n <div class=\"checkout-data-row\">\n <relation-customer-groups [(model)]=\"relation.customerGroup\" required></relation-customer-groups>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-general [relation]=\"relation\" (relationChange)=\"updateRelation($event)\"></co-relation-general>\n </div>\n <div class=\"checkout-data-row\">\n <co-relation-address [address]=\"address\"></co-relation-address>\n </div>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [relation]=\"relation\"\n [addresses]=\"relation.addresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressNawNr\"\n (selectedNawNrChange)=\"deliveryAddressChange.emit($event)\"\n (addressSaved)=\"handleNewAddress(addressType.DeliveryAddress, $event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>02</span>\n <span class=\"label\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"service.invoiceAddressSameAsDelivery\" (modelChange)=\"checkSameAddress($event)\" [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n </div>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!service.invoiceAddressSameAsDelivery\" @showHideInvoiceAddress>\n <div class=\"checkout-data-row\">\n <co-relation-addresses\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressNawNr\"\n (selectedNawNrChange)=\"invoiceAddressChange.emit($event)\"\n (addressSaved)=\"handleNewAddress(addressType.BillingAddress, $event)\"\n ></co-relation-addresses>\n </div>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>03</span>\n <span class=\"label\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-contact-details [relation]=\"relation\"></co-relation-contact-details>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>04</span>\n <span class=\"label\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-relation-preferences [relation]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </div>\n </co-form>\n </div>\n ",
8294
7476
  providers: [
8295
7477
  corecomponents_v12.FormMasterService
8296
7478
  ],
@@ -8324,11 +7506,12 @@
8324
7506
  ];
8325
7507
  CheckoutOverviewRelationEditComponent.ctorParameters = function () { return [
8326
7508
  { type: corecomponents_v12.FormMasterService },
8327
- { type: BusinessObjectFactory },
8328
7509
  { type: TransactionService }
8329
7510
  ]; };
8330
7511
  CheckoutOverviewRelationEditComponent.propDecorators = {
8331
7512
  relation: [{ type: i0.Input }],
7513
+ deliveryAddressNawNr: [{ type: i0.Input }],
7514
+ invoiceAddressNawNr: [{ type: i0.Input }],
8332
7515
  validSubmit: [{ type: i0.Output }],
8333
7516
  invalidSubmit: [{ type: i0.Output }],
8334
7517
  deliveryAddressChange: [{ type: i0.Output }],
@@ -8338,10 +7521,9 @@
8338
7521
  };
8339
7522
 
8340
7523
  var CheckoutOverviewDeliveryEditComponent = /** @class */ (function () {
8341
- function CheckoutOverviewDeliveryEditComponent(_dictionaryService, _formMasterService, _boFactory, service, iconService) {
7524
+ function CheckoutOverviewDeliveryEditComponent(_dictionaryService, _formMasterService, service, iconService) {
8342
7525
  this._dictionaryService = _dictionaryService;
8343
7526
  this._formMasterService = _formMasterService;
8344
- this._boFactory = _boFactory;
8345
7527
  this.service = service;
8346
7528
  this.iconService = iconService;
8347
7529
  this.icons = Icon;
@@ -8503,7 +7685,6 @@
8503
7685
  CheckoutOverviewDeliveryEditComponent.ctorParameters = function () { return [
8504
7686
  { type: DictionaryService },
8505
7687
  { type: corecomponents_v12.FormMasterService },
8506
- { type: BusinessObjectFactory },
8507
7688
  { type: TransactionService },
8508
7689
  { type: IconCacheService }
8509
7690
  ]; };
@@ -9258,10 +8439,9 @@
9258
8439
 
9259
8440
  var RelationAddressSelectComponent = /** @class */ (function (_super) {
9260
8441
  __extends(RelationAddressSelectComponent, _super);
9261
- function RelationAddressSelectComponent(_formMasterService, _boFactory) {
8442
+ function RelationAddressSelectComponent(_formMasterService) {
9262
8443
  var _this = _super.call(this) || this;
9263
8444
  _this._formMasterService = _formMasterService;
9264
- _this._boFactory = _boFactory;
9265
8445
  _this.icons = Icon;
9266
8446
  _this.collection = [];
9267
8447
  _this.showAdd = true;
@@ -9273,6 +8453,7 @@
9273
8453
  _this.showDialog = false;
9274
8454
  _this.showNavigateLeft = true;
9275
8455
  _this.showNavigateRight = true;
8456
+ _this._boFactory = new businessObjectFactory.BusinessObjectFactory();
9276
8457
  _this._intersectionCallback = function (entries, observer) {
9277
8458
  var entry = entries[0];
9278
8459
  if (entry.intersectionRatio < 1) {
@@ -9359,8 +8540,7 @@
9359
8540
  },] }
9360
8541
  ];
9361
8542
  RelationAddressSelectComponent.ctorParameters = function () { return [
9362
- { type: corecomponents_v12.FormMasterService },
9363
- { type: BusinessObjectFactory }
8543
+ { type: corecomponents_v12.FormMasterService }
9364
8544
  ]; };
9365
8545
  RelationAddressSelectComponent.propDecorators = {
9366
8546
  content: [{ type: i0.ViewChild, args: ['scrollContainer', { read: i0.ElementRef },] }],
@@ -9415,7 +8595,7 @@
9415
8595
  if (!(this._prevPostalCodeForCheck !== this.address.postalCode || this._prevHouseNoForCheck !== this.address.houseNo)) return [3 /*break*/, 2];
9416
8596
  this._prevPostalCodeForCheck = this.address.postalCode;
9417
8597
  this._prevHouseNoForCheck = this.address.houseNo;
9418
- return [4 /*yield*/, this._connector.getPostalCodeRetrieval((this.address.postalCode ? this.address.postalCode : ""), StringUtils.ParseString(this.address.houseNo))];
8598
+ return [4 /*yield*/, this._connector.getPostalCodeRetrieval((this.address.postalCode ? this.address.postalCode : ""), stringUtils.StringUtils.ParseString(this.address.houseNo))];
9419
8599
  case 1:
9420
8600
  postalCodeResponse = _a.sent();
9421
8601
  if (postalCodeResponse && postalCodeResponse.isBadAddress) {
@@ -11313,7 +10493,7 @@
11313
10493
  var TransactionBaseComponent = /** @class */ (function () {
11314
10494
  function TransactionBaseComponent(service) {
11315
10495
  this.service = service;
11316
- this.relationKind = relationKind_enum$1.RelationKind;
10496
+ this.relationKind = relationKind_enum.RelationKind;
11317
10497
  // @Input()
11318
10498
  // public set relationId(value: number) {
11319
10499
  // if (value !== undefined) {
@@ -11979,15 +11159,30 @@
11979
11159
  handleMouseLeave: [{ type: i0.HostListener, args: ["mouseleave", ["$event"],] }]
11980
11160
  };
11981
11161
 
11162
+ var TransactionOrderDeliveryService = /** @class */ (function () {
11163
+ function TransactionOrderDeliveryService() {
11164
+ this.totalQuantityToDeliver = 0;
11165
+ this.totalAmountLeftInOrder = 0;
11166
+ }
11167
+ return TransactionOrderDeliveryService;
11168
+ }());
11169
+ TransactionOrderDeliveryService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionOrderDeliveryService_Factory() { return new TransactionOrderDeliveryService(); }, token: TransactionOrderDeliveryService, providedIn: "root" });
11170
+ TransactionOrderDeliveryService.decorators = [
11171
+ { type: i0.Injectable, args: [{
11172
+ providedIn: "root"
11173
+ },] }
11174
+ ];
11175
+
11982
11176
  var TransactionOrderDeliveryLineComponent = /** @class */ (function (_super) {
11983
11177
  __extends(TransactionOrderDeliveryLineComponent, _super);
11984
- function TransactionOrderDeliveryLineComponent(service, _transactionEventService) {
11178
+ function TransactionOrderDeliveryLineComponent(service, _transactionEventService, _transactionOrderDeliveryService) {
11985
11179
  var _this = _super.call(this) || this;
11986
11180
  _this.service = service;
11987
11181
  _this._transactionEventService = _transactionEventService;
11182
+ _this._transactionOrderDeliveryService = _transactionOrderDeliveryService;
11988
11183
  _this.localAmount = 1;
11989
11184
  _this.splitDelivery = false;
11990
- _this.selected = false;
11185
+ _this.checkboxSelected = false;
11991
11186
  _this._subscriptions = [];
11992
11187
  return _this;
11993
11188
  }
@@ -11996,29 +11191,51 @@
11996
11191
  };
11997
11192
  TransactionOrderDeliveryLineComponent.prototype.ngOnInit = function () {
11998
11193
  var _this = this;
11999
- this.allowPartialDelivery = this.service.currentTransaction.transactionInfo.allowPartialDelivery;
12000
11194
  this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe(function (value) {
12001
- _this.selected = value;
12002
- }));
11195
+ if (_this.deliveryOrderStatus.quantityToDeliver > 0) {
11196
+ _this.checkboxSelected = value;
11197
+ }
11198
+ }), this._transactionEventService.allowPartialDeliveryChanged.subscribe(function () { return _this._handleOrderStatusUpdated(); }));
12003
11199
  this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
12004
11200
  };
12005
11201
  TransactionOrderDeliveryLineComponent.prototype.ngOnDestroy = function () {
12006
11202
  this._subscriptions.forEach(function (s) { return s.unsubscribe(); });
11203
+ this._transactionOrderDeliveryService.totalQuantityToDeliver = 0;
11204
+ this._transactionOrderDeliveryService.totalAmountLeftInOrder = 0;
11205
+ };
11206
+ TransactionOrderDeliveryLineComponent.prototype.getDeliveryOrderStatus = function () {
11207
+ var _this = this;
11208
+ if (!this.deliveryOrderStatus) {
11209
+ this.service.getDeliveryOrderStatus(this.transactionId, this.line.lineNr).then(function (result) {
11210
+ _this.deliveryOrderStatus = result;
11211
+ _this._transactionOrderDeliveryService.totalQuantityToDeliver += _this.deliveryOrderStatus.quantityToDeliver;
11212
+ _this._transactionOrderDeliveryService.totalAmountLeftInOrder += _this.line.amount - _this.line.quantityDelivered;
11213
+ _this._handleOrderStatusUpdated();
11214
+ });
11215
+ }
11216
+ };
11217
+ TransactionOrderDeliveryLineComponent.prototype.showNumberPicker = function () {
11218
+ var _a;
11219
+ return this.service.currentTransaction.transactionInfo.allowPartialDelivery && ((_a = this.deliveryOrderStatus) === null || _a === void 0 ? void 0 : _a.quantityToDeliver) !== 0;
12007
11220
  };
12008
- TransactionOrderDeliveryLineComponent.prototype.changeLineAmount = function (amount) {
11221
+ TransactionOrderDeliveryLineComponent.prototype._handleOrderStatusUpdated = function () {
11222
+ this.checkboxSelected = this.service.currentTransaction.transactionInfo.allowPartialDelivery ?
11223
+ this.deliveryOrderStatus.quantityToDeliver > 0 : this.deliveryOrderStatus.quantityToDeliver === this.line.amount - this.line.quantityDelivered;
11224
+ this.localAmount = this.deliveryOrderStatus.quantityToDeliver;
12009
11225
  };
12010
11226
  return TransactionOrderDeliveryLineComponent;
12011
11227
  }(TransactionLinesLineBaseComponent));
12012
11228
  TransactionOrderDeliveryLineComponent.decorators = [
12013
11229
  { type: i0.Component, args: [{
12014
11230
  selector: "co-transaction-order-delivery-line",
12015
- 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 ",
11231
+ template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [checkboxValue]=\"checkboxSelected\" [hideCheckbox]=\"deliveryOrderStatus?.quantityToDeliver === 0\" [actionButtons]=\"false\" observeVisibility (visible)=\"getDeliveryOrderStatus()\">\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-custom-grid\" [class.hidden]=\"!deliveryOrderStatus\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"(line.price + line.discountAmount) | coCurrency\"\n [crossedOut]=\"!!line.discountAmount\"\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 <div class=\"transaction-line-totals-amount\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver !== 0 && service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\"\n [min]=\"!service.currentTransaction.transactionInfo.allowPartialDelivery ? line.amount : 1\"\n [max]=\"line.amount\"\n [readonly]=\"readonly || !service.currentTransaction.transactionInfo.allowPartialDelivery\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver === 0 || !service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount\"\n [model]=\"deliveryOrderStatus?.quantityToDeliver.toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\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 ",
12016
11232
  encapsulation: i0.ViewEncapsulation.None
12017
11233
  },] }
12018
11234
  ];
12019
11235
  TransactionOrderDeliveryLineComponent.ctorParameters = function () { return [
12020
11236
  { type: TransactionService },
12021
- { type: TransactionEventService }
11237
+ { type: TransactionEventService },
11238
+ { type: TransactionOrderDeliveryService }
12022
11239
  ]; };
12023
11240
  TransactionOrderDeliveryLineComponent.propDecorators = {
12024
11241
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-order-delivery-line",] }]
@@ -12026,16 +11243,30 @@
12026
11243
 
12027
11244
  var TransactionQuickAccessOrderDeliveryComponent = /** @class */ (function (_super) {
12028
11245
  __extends(TransactionQuickAccessOrderDeliveryComponent, _super);
12029
- function TransactionQuickAccessOrderDeliveryComponent(iconService, service, _transactionEventService) {
11246
+ function TransactionQuickAccessOrderDeliveryComponent(iconService, service, _transactionEventService, _orderDeliveryService) {
12030
11247
  var _this = _super.call(this, service) || this;
12031
11248
  _this.iconService = iconService;
12032
11249
  _this.service = service;
12033
11250
  _this._transactionEventService = _transactionEventService;
11251
+ _this._orderDeliveryService = _orderDeliveryService;
11252
+ _this.allowDelivery = false;
11253
+ _this._subscriptions = [];
11254
+ _this._subscriptions.push(_this._transactionEventService.allowPartialDeliveryChanged.subscribe(function () {
11255
+ _this.allowDelivery = _this.service.currentTransaction.transactionInfo.allowPartialDelivery ||
11256
+ _this._orderDeliveryService.totalQuantityToDeliver === _this._orderDeliveryService.totalAmountLeftInOrder;
11257
+ }));
12034
11258
  return _this;
12035
11259
  }
12036
11260
  TransactionQuickAccessOrderDeliveryComponent.prototype.showClass = function () {
12037
11261
  return true;
12038
11262
  };
11263
+ TransactionQuickAccessOrderDeliveryComponent.prototype.ngOnDestroy = function () {
11264
+ this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
11265
+ };
11266
+ TransactionQuickAccessOrderDeliveryComponent.prototype.ngAfterViewInit = function () {
11267
+ this.allowDelivery = this.service.currentTransaction.transactionInfo.allowPartialDelivery ||
11268
+ this._orderDeliveryService.totalQuantityToDeliver === this._orderDeliveryService.totalAmountLeftInOrder;
11269
+ };
12039
11270
  TransactionQuickAccessOrderDeliveryComponent.prototype.handleSelectAllLines = function (value) {
12040
11271
  this._transactionEventService.selectAllLines.next(value);
12041
11272
  };
@@ -12044,14 +11275,15 @@
12044
11275
  TransactionQuickAccessOrderDeliveryComponent.decorators = [
12045
11276
  { type: i0.Component, args: [{
12046
11277
  selector: "co-transaction-quick-access-order-delivery",
12047
- template: "\n <div class=\"quick-access-content-wrapper\">\n <div class=\"select-all-wrapper\">\n <co-input-checkbox\n [label]=\"'SELECT_ALL_LINES' | localize\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n </div>\n <div class=\"send-button-wrapper\">\n <co-transaction-send-button-dialog></co-transaction-send-button-dialog>\n </div>\n </div>\n ",
11278
+ template: "\n <div class=\"quick-access-content-wrapper\">\n <div class=\"select-all-wrapper\" [class.hidden]=\"!service.currentTransaction.transactionInfo.allowPartialDelivery\">\n <co-input-checkbox\n [label]=\"'SELECT_ALL_LINES' | localize\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n </div>\n <div class=\"send-button-wrapper\" [class.hidden]=\"!allowDelivery\">\n <co-transaction-send-button-dialog></co-transaction-send-button-dialog>\n </div>\n </div>\n ",
12048
11279
  encapsulation: i0.ViewEncapsulation.None
12049
11280
  },] }
12050
11281
  ];
12051
11282
  TransactionQuickAccessOrderDeliveryComponent.ctorParameters = function () { return [
12052
11283
  { type: IconCacheService },
12053
11284
  { type: TransactionService },
12054
- { type: TransactionEventService }
11285
+ { type: TransactionEventService },
11286
+ { type: TransactionOrderDeliveryService }
12055
11287
  ]; };
12056
11288
  TransactionQuickAccessOrderDeliveryComponent.propDecorators = {
12057
11289
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-order-delivery",] }]
@@ -12346,6 +11578,7 @@
12346
11578
  [{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionOverviewLineComponent],
12347
11579
  [{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPurchase }, TransactionPurchaseLineComponent],
12348
11580
  [{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderDeliveryNote }, TransactionOrderDeliveryLineComponent],
11581
+ [{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionOrderDeliveryLineComponent],
12349
11582
  [{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
12350
11583
  ]);
12351
11584
  this._transactionFilterComponent = new Map([
@@ -12808,7 +12041,7 @@
12808
12041
  var SharedConnectorService = /** @class */ (function () {
12809
12042
  function SharedConnectorService(_optionsService) {
12810
12043
  this._optionsService = _optionsService;
12811
- this._boFactory = new BusinessObjectFactory();
12044
+ this._boFactory = new businessObjectFactory.BusinessObjectFactory();
12812
12045
  }
12813
12046
  SharedConnectorService.prototype.connect = function () {
12814
12047
  return __awaiter(this, void 0, void 0, function () {
@@ -12858,13 +12091,14 @@
12858
12091
  ]; };
12859
12092
 
12860
12093
  var SharedService = /** @class */ (function () {
12861
- function SharedService(_optionsService, _connector) {
12094
+ function SharedService(_optionsService, _connector, _transactionEventService) {
12862
12095
  var _this = this;
12863
12096
  this._optionsService = _optionsService;
12864
12097
  this._connector = _connector;
12098
+ this._transactionEventService = _transactionEventService;
12865
12099
  this._subs = [];
12866
- this._subs.push(this._optionsService.optionsLoaded.subscribe(function (loaded) {
12867
- if (loaded) {
12100
+ this._subs.push(this._transactionEventService.connectionInitialized.subscribe(function (initialized) {
12101
+ if (initialized) {
12868
12102
  _this._connector.connect();
12869
12103
  }
12870
12104
  }));
@@ -12881,7 +12115,7 @@
12881
12115
  };
12882
12116
  return SharedService;
12883
12117
  }());
12884
- SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
12118
+ SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: SharedService, providedIn: "root" });
12885
12119
  SharedService.decorators = [
12886
12120
  { type: i0.Injectable, args: [{
12887
12121
  providedIn: "root"
@@ -12889,14 +12123,126 @@
12889
12123
  ];
12890
12124
  SharedService.ctorParameters = function () { return [
12891
12125
  { type: OptionsService },
12892
- { type: SharedConnectorService }
12126
+ { type: SharedConnectorService },
12127
+ { type: TransactionEventService }
12128
+ ]; };
12129
+
12130
+ var RelationService = /** @class */ (function () {
12131
+ function RelationService(_adapterService, _selectMultipleCacheService, _selectSingleCacheService, _selectMultipleParameterizedCacheService) {
12132
+ var _this = this;
12133
+ this._adapterService = _adapterService;
12134
+ this._selectMultipleCacheService = _selectMultipleCacheService;
12135
+ this._selectSingleCacheService = _selectSingleCacheService;
12136
+ this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
12137
+ this._lockMethods = new Map([
12138
+ [relationKind_enum.RelationKind.Customer, function (relationNr) { return _this._lockCustomerFullObject(relationNr); }],
12139
+ [relationKind_enum.RelationKind.Supplier, function (relationNr) { return _this._lockSupplierFullObject(relationNr); }],
12140
+ [relationKind_enum.RelationKind.Personnel, function (relationNr) { return _this._lockEmployeeFullObject(relationNr); }],
12141
+ [relationKind_enum.RelationKind.Branch, function (relationNr) { return _this._lockBranchFullObject(relationNr); }],
12142
+ [relationKind_enum.RelationKind.Company, function (relationNr) { return _this._lockCompanyFullObject(relationNr); }],
12143
+ [relationKind_enum.RelationKind.ContactPerson, function (relationNr) { return _this._lockContactPerson(relationNr); }],
12144
+ ]);
12145
+ this._updateMethods = new Map([
12146
+ [relationKind_enum.RelationKind.Customer, function (relation) { return _this.updateCustomer(relation); }]
12147
+ ]);
12148
+ }
12149
+ RelationService.prototype.getCustomerFullObject = function (relationNo) {
12150
+ var _this = this;
12151
+ return this._selectSingleCacheService.requestCache(customerFullObject_bo.CustomerFullObject, relationNo, function () {
12152
+ return _this._adapterService.getCustomerFullObject(relationNo);
12153
+ }).getValue();
12154
+ };
12155
+ RelationService.prototype.getSupplierFullObject = function (relationNo) {
12156
+ var _this = this;
12157
+ return this._selectSingleCacheService.requestCache(supplierFullObject_bo.SupplierFullObject, relationNo, function () {
12158
+ return _this._adapterService.getSupplierFullObject(relationNo);
12159
+ }).getValue();
12160
+ };
12161
+ RelationService.prototype.insertCustomer = function (relation) {
12162
+ return this._adapterService.insertCustomer(relation);
12163
+ };
12164
+ RelationService.prototype.updateCustomer = function (relation) {
12165
+ return __awaiter(this, void 0, void 0, function () {
12166
+ return __generator(this, function (_a) {
12167
+ return [2 /*return*/, this._adapterService.updateCustomer(relation)];
12168
+ });
12169
+ });
12170
+ };
12171
+ RelationService.prototype.getRelationListObjects = function (relationRequest) {
12172
+ return this._adapterService.getRelationListObjects(relationRequest);
12173
+ };
12174
+ RelationService.prototype.getRelationNumber = function (relationId) {
12175
+ return this._adapterService.getRelationNumber(relationId);
12176
+ };
12177
+ RelationService.prototype.getBranches = function (branchNr) {
12178
+ var _this = this;
12179
+ return this._selectMultipleParameterizedCacheService.requestCache(branchLov_bo.BranchLov, function (branchNr) {
12180
+ return _this._adapterService.getBranches(branchNr);
12181
+ }).getValue(branchNr);
12182
+ };
12183
+ RelationService.prototype.updateRelation = function (relationKind, relation) {
12184
+ var updateMethod = this._updateMethods.get(relationKind);
12185
+ if (updateMethod) {
12186
+ return updateMethod.call(this, relation);
12187
+ }
12188
+ else {
12189
+ var result = new relation_bo.Relation();
12190
+ return Promise.resolve(result);
12191
+ }
12192
+ };
12193
+ RelationService.prototype.lockRelation = function (relationKind, relationNr) {
12194
+ var lockMethod = this._lockMethods.get(relationKind);
12195
+ if (lockMethod) {
12196
+ return lockMethod.call(this, relationNr);
12197
+ }
12198
+ else {
12199
+ var result = new validationResult.ValidationResult();
12200
+ result.success = false;
12201
+ return Promise.resolve(result);
12202
+ }
12203
+ };
12204
+ RelationService.prototype.commit = function () {
12205
+ return this._adapterService.commit();
12206
+ };
12207
+ RelationService.prototype._lockCustomerFullObject = function (relationNr) {
12208
+ return this._adapterService.lockCustomerFullObject(relationNr);
12209
+ };
12210
+ RelationService.prototype._lockSupplierFullObject = function (relationNr) {
12211
+ return this._adapterService.lockSupplierFullObject(relationNr);
12212
+ };
12213
+ RelationService.prototype._lockEmployeeFullObject = function (relationNr) {
12214
+ return this._adapterService.lockEmployeeFullObject(relationNr);
12215
+ };
12216
+ RelationService.prototype._lockBranchFullObject = function (relationNr) {
12217
+ return this._adapterService.lockBranchFullObject(relationNr);
12218
+ };
12219
+ RelationService.prototype._lockCompanyFullObject = function (relationNr) {
12220
+ return this._adapterService.lockCompanyFullObject(relationNr);
12221
+ };
12222
+ RelationService.prototype._lockContactPerson = function (relationNr) {
12223
+ return this._adapterService.lockContactPerson(relationNr);
12224
+ };
12225
+ return RelationService;
12226
+ }());
12227
+ RelationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function RelationService_Factory() { return new RelationService(i0__namespace.ɵɵinject(RelationConnectorService), i0__namespace.ɵɵinject(SelectMultipleCacheService), i0__namespace.ɵɵinject(SelectSingleCacheService), i0__namespace.ɵɵinject(SelectMultipleParameterizedCacheService)); }, token: RelationService, providedIn: "root" });
12228
+ RelationService.decorators = [
12229
+ { type: i0.Injectable, args: [{
12230
+ providedIn: "root"
12231
+ },] }
12232
+ ];
12233
+ RelationService.ctorParameters = function () { return [
12234
+ { type: RelationConnectorService },
12235
+ { type: SelectMultipleCacheService },
12236
+ { type: SelectSingleCacheService },
12237
+ { type: SelectMultipleParameterizedCacheService }
12893
12238
  ]; };
12894
12239
 
12895
12240
  var AvatarComponent = /** @class */ (function () {
12896
- function AvatarComponent(_transactionService, _sharedService, _colorSequenceService) {
12241
+ function AvatarComponent(_transactionService, _sharedService, _colorSequenceService, _relationService) {
12897
12242
  this._transactionService = _transactionService;
12898
12243
  this._sharedService = _sharedService;
12899
12244
  this._colorSequenceService = _colorSequenceService;
12245
+ this._relationService = _relationService;
12900
12246
  }
12901
12247
  Object.defineProperty(AvatarComponent.prototype, "image", {
12902
12248
  get: function () {
@@ -12941,7 +12287,7 @@
12941
12287
  if (!isNaN(this._relationId) && !this.image) {
12942
12288
  var request = new relationRequest.RelationRequest();
12943
12289
  request.relationId = this._relationId;
12944
- this._transactionService.getRelationListObjects(request).then(function (data) {
12290
+ this._relationService.getRelationListObjects(request).then(function (data) {
12945
12291
  if (data && data.length > 0) {
12946
12292
  _this.relation = data[0];
12947
12293
  if (_this.relation && _this.relation.image && _this.relation.image.documentId) {
@@ -12988,7 +12334,8 @@
12988
12334
  AvatarComponent.ctorParameters = function () { return [
12989
12335
  { type: TransactionService },
12990
12336
  { type: SharedService },
12991
- { type: corecomponents_v12.ColorSequenceService }
12337
+ { type: corecomponents_v12.ColorSequenceService },
12338
+ { type: RelationService }
12992
12339
  ]; };
12993
12340
  AvatarComponent.propDecorators = {
12994
12341
  image: [{ type: i0.Input }],
@@ -13660,7 +13007,7 @@
13660
13007
  PipeModule,
13661
13008
  PaymentTileModule,
13662
13009
  corecomponents_v12.PriceDisplayPipeModule,
13663
- sharedcomponents.KeyPadModule,
13010
+ i4.KeyPadModule,
13664
13011
  corecomponents_v12.CoDialogModule,
13665
13012
  corecomponents_v12.ButtonModule,
13666
13013
  PaymentQrCodeModule,
@@ -13729,11 +13076,12 @@
13729
13076
 
13730
13077
  var RelationGeneralComponent = /** @class */ (function (_super) {
13731
13078
  __extends(RelationGeneralComponent, _super);
13732
- function RelationGeneralComponent(_service, _dictionaryService, _dialogService) {
13079
+ function RelationGeneralComponent(_service, _dictionaryService, _dialogService, _relationService) {
13733
13080
  var _this = _super.call(this) || this;
13734
13081
  _this._service = _service;
13735
13082
  _this._dictionaryService = _dictionaryService;
13736
13083
  _this._dialogService = _dialogService;
13084
+ _this._relationService = _relationService;
13737
13085
  _this.relType = relationNameKind_enum.RelationNameKind;
13738
13086
  _this.genderType = genderType_enum.GenderType;
13739
13087
  _this.readonly = false;
@@ -13791,7 +13139,7 @@
13791
13139
  switch (_b.label) {
13792
13140
  case 0:
13793
13141
  if (!relationSuggested) return [3 /*break*/, 4];
13794
- return [4 /*yield*/, this._service.lockRelation(relationSuggested.relationType, parseInt(relationSuggested.relationNr, 0))];
13142
+ return [4 /*yield*/, this._relationService.lockRelation(relationSuggested.relationType, parseInt(relationSuggested.relationNr, 0))];
13795
13143
  case 1:
13796
13144
  lockResult = _b.sent();
13797
13145
  if (!!lockResult.success) return [3 /*break*/, 2];
@@ -13800,7 +13148,7 @@
13800
13148
  case 2:
13801
13149
  this.hideSidebar();
13802
13150
  _a = this;
13803
- return [4 /*yield*/, this._service.getCustomerFullObjectByRelationId(relationSuggested.relationId)];
13151
+ return [4 /*yield*/, this._relationService.getCustomerFullObject(parseInt(relationSuggested.relationNr))];
13804
13152
  case 3:
13805
13153
  _a.relation = _b.sent();
13806
13154
  this.relationChange.next(this.relation);
@@ -13841,7 +13189,7 @@
13841
13189
  }
13842
13190
  this.showSidebar();
13843
13191
  _a = this;
13844
- return [4 /*yield*/, this._service.getRelationListObjects(relationRequest)];
13192
+ return [4 /*yield*/, this._relationService.getRelationListObjects(relationRequest)];
13845
13193
  case 1:
13846
13194
  _a.relationSuggestions = _b.sent();
13847
13195
  return [2 /*return*/];
@@ -13880,7 +13228,8 @@
13880
13228
  RelationGeneralComponent.ctorParameters = function () { return [
13881
13229
  { type: TransactionService },
13882
13230
  { type: DictionaryService },
13883
- { type: DialogService }
13231
+ { type: DialogService },
13232
+ { type: RelationService }
13884
13233
  ]; };
13885
13234
  RelationGeneralComponent.propDecorators = {
13886
13235
  readonly: [{ type: i0.Input }],
@@ -14004,9 +13353,8 @@
14004
13353
 
14005
13354
  var RelationAddressesComponent = /** @class */ (function (_super) {
14006
13355
  __extends(RelationAddressesComponent, _super);
14007
- function RelationAddressesComponent(_boFactory, _formMasterService) {
13356
+ function RelationAddressesComponent(_formMasterService) {
14008
13357
  var _this = _super.call(this) || this;
14009
- _this._boFactory = _boFactory;
14010
13358
  _this._formMasterService = _formMasterService;
14011
13359
  _this.icons = Icon;
14012
13360
  _this.readonly = false;
@@ -14015,7 +13363,9 @@
14015
13363
  _this.type = addressType_enum.AddressType.DeliveryAddress;
14016
13364
  _this.selectedNawNr = 0;
14017
13365
  _this.selectedNawNrChange = new i0.EventEmitter();
13366
+ _this.addressSaved = new i0.EventEmitter();
14018
13367
  _this.showEditAddressDialog = false;
13368
+ _this._boFactory = new businessObjectFactory.BusinessObjectFactory();
14019
13369
  return _this;
14020
13370
  }
14021
13371
  RelationAddressesComponent.prototype.showClass = function () {
@@ -14027,16 +13377,7 @@
14027
13377
  }
14028
13378
  };
14029
13379
  RelationAddressesComponent.prototype.saveAddress = function (address) {
14030
- if (!address.nawNr) { // new address
14031
- address.addressType = this.type;
14032
- this.addresses.push(address);
14033
- }
14034
- else {
14035
- var idx = this.addresses.findIndex(function (a) { return a.nawNr === address.nawNr; });
14036
- if (idx > -1) {
14037
- this.addresses[idx] = this._boFactory.makeWithRawBackendData(address_bo.Address, address);
14038
- }
14039
- }
13380
+ this.addressSaved.next(address);
14040
13381
  this.showEditAddressDialog = false;
14041
13382
  };
14042
13383
  RelationAddressesComponent.prototype.showNewAddressDialog = function () {
@@ -14068,7 +13409,6 @@
14068
13409
  },] }
14069
13410
  ];
14070
13411
  RelationAddressesComponent.ctorParameters = function () { return [
14071
- { type: BusinessObjectFactory },
14072
13412
  { type: corecomponents_v12.FormMasterService }
14073
13413
  ]; };
14074
13414
  RelationAddressesComponent.propDecorators = {
@@ -14078,6 +13418,7 @@
14078
13418
  type: [{ type: i0.Input }],
14079
13419
  selectedNawNr: [{ type: i0.Input }],
14080
13420
  selectedNawNrChange: [{ type: i0.Output }],
13421
+ addressSaved: [{ type: i0.Output }],
14081
13422
  showClass: [{ type: i0.HostBinding, args: ["class.co-relation-addresses",] }]
14082
13423
  };
14083
13424
 
@@ -15358,9 +14699,10 @@
15358
14699
 
15359
14700
  var TransactionHeaderPartialDeliveryComponent = /** @class */ (function (_super) {
15360
14701
  __extends(TransactionHeaderPartialDeliveryComponent, _super);
15361
- function TransactionHeaderPartialDeliveryComponent(_transactionService) {
14702
+ function TransactionHeaderPartialDeliveryComponent(_transactionService, _eventService) {
15362
14703
  var _this = _super.call(this) || this;
15363
14704
  _this._transactionService = _transactionService;
14705
+ _this._eventService = _eventService;
15364
14706
  _this.showClass = true;
15365
14707
  return _this;
15366
14708
  }
@@ -15379,6 +14721,9 @@
15379
14721
  this.transactionInfo.allowPartialDelivery = oldPartial;
15380
14722
  return [2 /*return*/, success];
15381
14723
  }
14724
+ else {
14725
+ this._eventService.allowPartialDeliveryChanged.next(allow);
14726
+ }
15382
14727
  _a.label = 2;
15383
14728
  case 2: return [2 /*return*/, true];
15384
14729
  }
@@ -15398,7 +14743,8 @@
15398
14743
  },] }
15399
14744
  ];
15400
14745
  TransactionHeaderPartialDeliveryComponent.ctorParameters = function () { return [
15401
- { type: TransactionService }
14746
+ { type: TransactionService },
14747
+ { type: TransactionEventService }
15402
14748
  ]; };
15403
14749
  TransactionHeaderPartialDeliveryComponent.propDecorators = {
15404
14750
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-header-partial-delivery",] }]
@@ -15747,16 +15093,17 @@
15747
15093
 
15748
15094
  var TransactionHeaderBranchComponent = /** @class */ (function (_super) {
15749
15095
  __extends(TransactionHeaderBranchComponent, _super);
15750
- function TransactionHeaderBranchComponent(_transactionService) {
15096
+ function TransactionHeaderBranchComponent(_transactionService, _relationService) {
15751
15097
  var _this = _super.call(this) || this;
15752
15098
  _this._transactionService = _transactionService;
15099
+ _this._relationService = _relationService;
15753
15100
  _this.simple = false;
15754
15101
  _this.fields = { text: "description", value: "relationId" };
15755
15102
  return _this;
15756
15103
  }
15757
15104
  TransactionHeaderBranchComponent.prototype.ngOnInit = function () {
15758
15105
  var _this = this;
15759
- this._transactionService.getBranches().then(function (branches) {
15106
+ this._relationService.getBranches().then(function (branches) {
15760
15107
  _this.collection = branches;
15761
15108
  });
15762
15109
  };
@@ -15800,7 +15147,8 @@
15800
15147
  },] }
15801
15148
  ];
15802
15149
  TransactionHeaderBranchComponent.ctorParameters = function () { return [
15803
- { type: TransactionService }
15150
+ { type: TransactionService },
15151
+ { type: RelationService }
15804
15152
  ]; };
15805
15153
  TransactionHeaderBranchComponent.propDecorators = {
15806
15154
  simple: [{ type: i0.Input }]
@@ -15831,17 +15179,18 @@
15831
15179
 
15832
15180
  var TransactionHeaderAdministrativeRelationComponent = /** @class */ (function (_super) {
15833
15181
  __extends(TransactionHeaderAdministrativeRelationComponent, _super);
15834
- function TransactionHeaderAdministrativeRelationComponent(_transactionService) {
15182
+ function TransactionHeaderAdministrativeRelationComponent(_transactionService, _relationService) {
15835
15183
  var _this = _super.call(this) || this;
15836
15184
  _this._transactionService = _transactionService;
15185
+ _this._relationService = _relationService;
15837
15186
  _this.fields = { text: "displayName", value: "relationId" };
15838
15187
  return _this;
15839
15188
  }
15840
15189
  TransactionHeaderAdministrativeRelationComponent.prototype.ngOnInit = function () {
15841
15190
  var _this = this;
15842
15191
  var request = new relationRequest.RelationRequest();
15843
- request.relationType = relationKind_enum.RelationKind.Personnel;
15844
- this._transactionService.getRelationListObjects(request).then(function (relationListObjects) {
15192
+ request.relationType = relationKind_enum$1.RelationKind.Personnel;
15193
+ this._relationService.getRelationListObjects(request).then(function (relationListObjects) {
15845
15194
  _this.collection = relationListObjects;
15846
15195
  });
15847
15196
  };
@@ -15880,7 +15229,8 @@
15880
15229
  },] }
15881
15230
  ];
15882
15231
  TransactionHeaderAdministrativeRelationComponent.ctorParameters = function () { return [
15883
- { type: TransactionService }
15232
+ { type: TransactionService },
15233
+ { type: RelationService }
15884
15234
  ]; };
15885
15235
 
15886
15236
  var TransactionHeaderAdministrativeRelationModule = /** @class */ (function () {
@@ -16272,7 +15622,7 @@
16272
15622
  TransactionComponent.decorators = [
16273
15623
  { type: i0.Component, args: [{
16274
15624
  selector: "co-transaction",
16275
- 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 [transaction]=\"transaction\"\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 ",
15625
+ 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 [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-quick-send-button class=\"quick-send-button\" [transaction]=\"transaction\">\n\n </co-quick-send-button>\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 ",
16276
15626
  encapsulation: i0.ViewEncapsulation.None
16277
15627
  },] }
16278
15628
  ];
@@ -16332,20 +15682,23 @@
16332
15682
 
16333
15683
  var TransactionHeaderRelationComponent = /** @class */ (function (_super) {
16334
15684
  __extends(TransactionHeaderRelationComponent, _super);
16335
- function TransactionHeaderRelationComponent(service, _dictionary, _dialogService) {
15685
+ function TransactionHeaderRelationComponent(service, _dictionary, _dialogService, _relationService, _formMasterService) {
16336
15686
  var _this = _super.call(this, service) || this;
16337
15687
  _this.service = service;
16338
15688
  _this._dictionary = _dictionary;
16339
15689
  _this._dialogService = _dialogService;
15690
+ _this._relationService = _relationService;
15691
+ _this._formMasterService = _formMasterService;
16340
15692
  _this.addressType = addressType_enum.AddressType;
16341
- _this.deliveryAddressIdx = 0;
16342
- _this.invoiceAddressIdx = 0;
15693
+ _this.deliveryAddressNawNr = 0;
15694
+ _this.invoiceAddressNawNr = 0;
16343
15695
  _this.invoiceAddressSameAsDeliveryAddress = true;
16344
15696
  _this.showDialog = false;
16345
15697
  _this.categories = [_this._dictionary.get('CLIENT_DATA'), _this._dictionary.get('PRIVACY_PREFERENCES')];
16346
- _this.relationType = relationKind_enum.RelationKind.Customer;
15698
+ _this.relationType = relationKind_enum$1.RelationKind.Customer;
16347
15699
  _this.readonly = false;
16348
15700
  _this._relation = new customerFullObject_bo.CustomerFullObject();
15701
+ _this._boFactory = new businessObjectFactory.BusinessObjectFactory();
16349
15702
  return _this;
16350
15703
  }
16351
15704
  Object.defineProperty(TransactionHeaderRelationComponent.prototype, "relation", {
@@ -16356,6 +15709,9 @@
16356
15709
  if (value) {
16357
15710
  this._relation = value;
16358
15711
  this.relationType = this._relation.relationType;
15712
+ if (this.relationType === relationKind_enum$1.RelationKind.Customer) {
15713
+ this.customerGroup = this.relation.customerGroup;
15714
+ }
16359
15715
  }
16360
15716
  },
16361
15717
  enumerable: false,
@@ -16364,18 +15720,19 @@
16364
15720
  TransactionHeaderRelationComponent.prototype.showClass = function () {
16365
15721
  return true;
16366
15722
  };
16367
- TransactionHeaderRelationComponent.prototype.updateRelation = function (rel) {
16368
- // this.relation = rel;
16369
- };
16370
- TransactionHeaderRelationComponent.prototype.setIndexDeliveryAddress = function (idx) {
16371
- this.deliveryAddressIdx = idx;
16372
- // this.editAddressType = AddressType.DeliveryAddress;
16373
- // this.selectAddress(this.relation.addresses[idx]);
15723
+ TransactionHeaderRelationComponent.prototype.setIndexDeliveryAddress = function (nawNr) {
15724
+ var address = this.relation.addresses.find(function (a) { return a.nawNr === nawNr; });
15725
+ if (address) {
15726
+ // address.searchAddress = true;
15727
+ this.deliveryAddressNawNr = nawNr;
15728
+ }
16374
15729
  };
16375
- TransactionHeaderRelationComponent.prototype.setIndexInvoiceAddress = function (idx) {
16376
- this.invoiceAddressIdx = idx;
16377
- // this.editAddressType = AddressType.BillingAddress;
16378
- // this.selectAddress(this.relation.addresses[idx]);
15730
+ TransactionHeaderRelationComponent.prototype.setIndexInvoiceAddress = function (nawNr) {
15731
+ var address = this.relation.addresses.find(function (a) { return a.nawNr === nawNr; });
15732
+ if (address) {
15733
+ // address.searchAddress = true;
15734
+ this.invoiceAddressNawNr = nawNr;
15735
+ }
16379
15736
  };
16380
15737
  TransactionHeaderRelationComponent.prototype.checkSameAddress = function (checked) {
16381
15738
  if (checked) {
@@ -16392,8 +15749,8 @@
16392
15749
  }
16393
15750
  };
16394
15751
  TransactionHeaderRelationComponent.prototype.handleChangeCustomGroup = function (group) {
16395
- this.customerGroup = group.groepsnummer;
16396
- if (this.relationType === relationKind_enum.RelationKind.Customer) {
15752
+ this.customerGroup = group;
15753
+ if (this.relationType === relationKind_enum$1.RelationKind.Customer) {
16397
15754
  this.relation.customerGroup = this.customerGroup;
16398
15755
  }
16399
15756
  };
@@ -16402,7 +15759,7 @@
16402
15759
  var lockResult, question;
16403
15760
  return __generator(this, function (_a) {
16404
15761
  switch (_a.label) {
16405
- case 0: return [4 /*yield*/, this.service.lockRelation(this.relation.relationType, parseInt(this.relation.relationNumber, 0))];
15762
+ case 0: return [4 /*yield*/, this._relationService.lockRelation(this.relation.relationType, parseInt(this.relation.relationNumber, 0))];
16406
15763
  case 1:
16407
15764
  lockResult = _a.sent();
16408
15765
  if (!!lockResult.success) return [3 /*break*/, 3];
@@ -16423,9 +15780,35 @@
16423
15780
  });
16424
15781
  });
16425
15782
  };
16426
- TransactionHeaderRelationComponent.prototype.relationSet = function () {
16427
- if (this.relationType === relationKind_enum.RelationKind.Customer) {
16428
- this.customerGroup = this.relation.customerGroup;
15783
+ TransactionHeaderRelationComponent.prototype.handleOkClick = function () {
15784
+ var _this = this;
15785
+ if (this._formMasterService.submitSlaves()) {
15786
+ this._relationService.updateRelation(this.relation.relationType, this.relation).then(function () { return __awaiter(_this, void 0, void 0, function () {
15787
+ return __generator(this, function (_a) {
15788
+ switch (_a.label) {
15789
+ case 0: return [4 /*yield*/, this._relationService.commit()];
15790
+ case 1:
15791
+ if (_a.sent()) {
15792
+ this.showDialog = false;
15793
+ }
15794
+ return [2 /*return*/];
15795
+ }
15796
+ });
15797
+ }); });
15798
+ }
15799
+ };
15800
+ TransactionHeaderRelationComponent.prototype.saveAddress = function (type, address) {
15801
+ if (!address.nawNr) { // new address
15802
+ address.addressType = type;
15803
+ address.startDate = new Date();
15804
+ address.sequence = this.relation.getNextAddressSequence();
15805
+ this.relation.addresses.push(address);
15806
+ }
15807
+ else {
15808
+ var idx = this.relation.addresses.findIndex(function (a) { return a.nawNr === address.nawNr; });
15809
+ if (idx > -1) {
15810
+ this.relation.addresses[idx] = this._boFactory.makeWithRawBackendData(address_bo.Address, address);
15811
+ }
16429
15812
  }
16430
15813
  };
16431
15814
  return TransactionHeaderRelationComponent;
@@ -16433,7 +15816,10 @@
16433
15816
  TransactionHeaderRelationComponent.decorators = [
16434
15817
  { type: i0.Component, args: [{
16435
15818
  selector: "co-transaction-header-relation",
16436
- template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"handleShowDialog()\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"relation.displayName\"></div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-relation-address\" [textContent]=\"relation.displayFirstAddress\"></div>\n <div class=\"header-relation-postal\" [textContent]=\"relation.displayFirstPostal\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-relation-email\" [textContent]=\"relation.primaryEmail\"></div>\n <div class=\"header-relation-phone\" [textContent]=\"relation.primaryPhoneOrMobileNumber\"></div>\n </ng-template>\n <co-dialog class=\"transaction-header-relation-dialog\" [customCssClass]=\"'co-transaction-small-toolbar'\" *ngIf=\"showDialog\" [headerTemplate]=\"dialogHeader\" (closeClick)=\"showDialog = false\">\n <ng-template #dialogHeader>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'CLIENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n ></co-transaction-header-block>\n <co-transaction-filter-categories [categories]=\"categories\" (categoryClick)=\"handleNavigationClick($event)\"></co-transaction-filter-categories>\n </ng-template>\n <div #navigationItems class=\"header-relation-navigation-wrapper\">\n <div #mainItems class=\"header-relation-navigation-content\">\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'PERSONAL_DATA' | localize\"></div>\n <co-relation-type\n [readonly]=\"readonly\"\n [relation]=\"relation\"\n ></co-relation-type>\n <ng-container *ngIf=\"relationType === relationKind.Customer\">\n <relation-customer-groups [readonly]=\"readonly\" [model]=\"customerGroup\" (modelChange)=\"handleChangeCustomGroup($event)\" required></relation-customer-groups>\n </ng-container>\n <co-relation-general [readonly]=\"readonly\" [relation]=\"relation\" (relationChange)=\"updateRelation($event)\"></co-relation-general>\n </div>\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'ADDRESSES' | localize\"></div>\n <co-relation-addresses\n [readonly]=\"readonly\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressIdx\"\n (selectedAddressChange)=\"setIndexDeliveryAddress($event)\"\n ></co-relation-addresses>\n <div class=\"header-relation-section-label\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></div>\n <co-input-checkbox [readonly]=\"readonly\" [(model)]=\"invoiceAddressSameAsDeliveryAddress\" (modelChange)=\"checkSameAddress($event)\" [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!invoiceAddressSameAsDeliveryAddress\" @showHideInvoiceAddress>\n <co-relation-addresses\n [readonly]=\"readonly\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressIdx\"\n (selectedAddressChange)=\"setIndexInvoiceAddress($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'CONTACT_DETAILS' | localize\"></div>\n <co-relation-contact-details [readonly]=\"readonly\" [relation]=\"relation\"></co-relation-contact-details>\n </div>\n </div>\n <div #preferenceItems class=\"header-relation-navigation-content\">\n <co-relation-preferences [readonly]=\"readonly\" [relation]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </co-dialog>\n ",
15819
+ template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"handleShowDialog()\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"relation.displayName\"></div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-relation-address\" [textContent]=\"relation.displayFirstAddress\"></div>\n <div class=\"header-relation-postal\" [textContent]=\"relation.displayFirstPostal\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-relation-email\" [textContent]=\"relation.primaryEmail\"></div>\n <div class=\"header-relation-phone\" [textContent]=\"relation.primaryPhoneOrMobileNumber\"></div>\n </ng-template>\n <co-dialog class=\"transaction-header-relation-dialog\" [customCssClass]=\"'co-transaction-small-toolbar'\" *ngIf=\"showDialog\"\n [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"dialogFooter\" (closeClick)=\"showDialog = false\">\n <ng-template #dialogHeader>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'CLIENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n ></co-transaction-header-block>\n <co-transaction-filter-categories [categories]=\"categories\" (categoryClick)=\"handleNavigationClick($event)\"></co-transaction-filter-categories>\n </ng-template>\n <co-form>\n <div #navigationItems class=\"header-relation-navigation-wrapper\">\n <div #mainItems class=\"header-relation-navigation-content\">\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'PERSONAL_DATA' | localize\"></div>\n <co-relation-type\n [readonly]=\"readonly\"\n [relation]=\"relation\"\n ></co-relation-type>\n <ng-container *ngIf=\"relationType === relationKind.Customer\">\n <relation-customer-groups [readonly]=\"readonly\" [model]=\"customerGroup\" (modelChange)=\"handleChangeCustomGroup($event)\" required></relation-customer-groups>\n </ng-container>\n <co-relation-general [readonly]=\"readonly\" [(relation)]=\"relation\"></co-relation-general>\n </div>\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'ADDRESSES' | localize\"></div>\n <co-relation-addresses\n [readonly]=\"readonly\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.DeliveryAddress\"\n [selectedNawNr]=\"deliveryAddressNawNr\"\n (addressSaved)=\"saveAddress(addressType.DeliveryAddress, $event)\"\n (selectedNawNrChange)=\"setIndexDeliveryAddress($event)\"\n ></co-relation-addresses>\n <div class=\"header-relation-section-label\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></div>\n <co-input-checkbox [readonly]=\"readonly\" [(model)]=\"invoiceAddressSameAsDeliveryAddress\" (modelChange)=\"checkSameAddress($event)\" [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!invoiceAddressSameAsDeliveryAddress\" @showHideInvoiceAddress>\n <co-relation-addresses\n [readonly]=\"readonly\"\n [addresses]=\"relation.activeAddresses\"\n [type]=\"addressType.BillingAddress\"\n [selectedNawNr]=\"invoiceAddressNawNr\"\n (addressSaved)=\"saveAddress(addressType.BillingAddress, $event)\"\n (selectedNawNrChange)=\"setIndexInvoiceAddress($event)\"\n ></co-relation-addresses>\n </div>\n </div>\n <div class=\"header-relation-section\">\n <div class=\"header-relation-section-label\" [textContent]=\"'CONTACT_DETAILS' | localize\"></div>\n <co-relation-contact-details [readonly]=\"readonly\" [relation]=\"relation\"></co-relation-contact-details>\n </div>\n </div>\n <div #preferenceItems class=\"header-relation-navigation-content\">\n <co-relation-preferences [readonly]=\"readonly\" [relation]=\"relation\"></co-relation-preferences>\n </div>\n </div>\n </co-form>\n <ng-template #dialogFooter>\n <div class=\"co-transaction-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
15820
+ providers: [
15821
+ corecomponents_v12.FormMasterService
15822
+ ],
16437
15823
  animations: [
16438
15824
  animations.trigger("showHideInvoiceAddress", [
16439
15825
  animations.state("void", animations.style({ height: 0, opacity: 0 })),
@@ -16448,7 +15834,9 @@
16448
15834
  TransactionHeaderRelationComponent.ctorParameters = function () { return [
16449
15835
  { type: TransactionService },
16450
15836
  { type: DictionaryService },
16451
- { type: DialogService }
15837
+ { type: DialogService },
15838
+ { type: RelationService },
15839
+ { type: corecomponents_v12.FormMasterService }
16452
15840
  ]; };
16453
15841
  TransactionHeaderRelationComponent.propDecorators = {
16454
15842
  navigationItems: [{ type: i0.ViewChild, args: ['navigationItems', { read: i0.ElementRef },] }],
@@ -16537,7 +15925,9 @@
16537
15925
  RelationPreferencesModule,
16538
15926
  PipeModule,
16539
15927
  corecomponents_v12.CoDialogModule,
16540
- TransactionFilterCategoriesModule
15928
+ TransactionFilterCategoriesModule,
15929
+ corecomponents_v12.ButtonModule,
15930
+ corecomponents_v12.FormModule
16541
15931
  ],
16542
15932
  declarations: [
16543
15933
  TransactionHeaderRelationComponent
@@ -16796,7 +16186,7 @@
16796
16186
  imports: [
16797
16187
  common.CommonModule,
16798
16188
  CoreModule,
16799
- sharedcomponents.StatusbarModule
16189
+ i4.StatusbarModule
16800
16190
  ],
16801
16191
  declarations: [
16802
16192
  TransactionLineStatusbarComponent
@@ -18043,9 +17433,10 @@
18043
17433
 
18044
17434
  var TransactionLineSupplierComponent = /** @class */ (function (_super) {
18045
17435
  __extends(TransactionLineSupplierComponent, _super);
18046
- function TransactionLineSupplierComponent(_transactionService) {
17436
+ function TransactionLineSupplierComponent(_transactionService, _relationService) {
18047
17437
  var _this = _super.call(this) || this;
18048
17438
  _this._transactionService = _transactionService;
17439
+ _this._relationService = _relationService;
18049
17440
  _this.codeField = 'relationId';
18050
17441
  _this.checkField = 'supplierId';
18051
17442
  _this.propsForLabel = ['relationNr', 'displayName'];
@@ -18055,7 +17446,7 @@
18055
17446
  var _this = this;
18056
17447
  var request = new relationRequest.RelationRequest();
18057
17448
  request.relationType = relationKind_enum.RelationKind.Supplier;
18058
- this._transactionService.getRelationListObjects(request).then(function (relationListObjects) {
17449
+ this._relationService.getRelationListObjects(request).then(function (relationListObjects) {
18059
17450
  _this.collection = relationListObjects;
18060
17451
  });
18061
17452
  };
@@ -18092,7 +17483,8 @@
18092
17483
  },] }
18093
17484
  ];
18094
17485
  TransactionLineSupplierComponent.ctorParameters = function () { return [
18095
- { type: TransactionService }
17486
+ { type: TransactionService },
17487
+ { type: RelationService }
18096
17488
  ]; };
18097
17489
 
18098
17490
  var TransactionLineSupplierModule = /** @class */ (function () {
@@ -19073,7 +18465,6 @@
19073
18465
  this.selectedLineDocBatchArray = data;
19074
18466
  };
19075
18467
  TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
19076
- console.log(data);
19077
18468
  this.isDocBatchSaved = data;
19078
18469
  };
19079
18470
  return TransactionLineSidePanelPurchaseComponent;
@@ -19155,14 +18546,14 @@
19155
18546
  ];
19156
18547
 
19157
18548
  var TransactionArticleTextOverviewComponent = /** @class */ (function () {
19158
- function TransactionArticleTextOverviewComponent(service, _boFactory) {
18549
+ function TransactionArticleTextOverviewComponent(service) {
19159
18550
  this.service = service;
19160
- this._boFactory = _boFactory;
19161
18551
  this.closeClick = new i0.EventEmitter();
19162
18552
  this.cancelClick = new i0.EventEmitter();
19163
18553
  this.saveClick = new i0.EventEmitter();
19164
18554
  this.collection = [];
19165
18555
  this.showTransactionArticleText = false;
18556
+ this._boFactory = new businessObjectFactory.BusinessObjectFactory();
19166
18557
  }
19167
18558
  Object.defineProperty(TransactionArticleTextOverviewComponent.prototype, "transactionLine", {
19168
18559
  set: function (value) {
@@ -19238,8 +18629,7 @@
19238
18629
  },] }
19239
18630
  ];
19240
18631
  TransactionArticleTextOverviewComponent.ctorParameters = function () { return [
19241
- { type: TransactionService },
19242
- { type: BusinessObjectFactory }
18632
+ { type: TransactionService }
19243
18633
  ]; };
19244
18634
  TransactionArticleTextOverviewComponent.propDecorators = {
19245
18635
  header: [{ type: i0.Input }],
@@ -19271,9 +18661,6 @@
19271
18661
  ],
19272
18662
  exports: [
19273
18663
  TransactionArticleTextOverviewComponent
19274
- ],
19275
- providers: [
19276
- BusinessObjectFactory
19277
18664
  ]
19278
18665
  },] }
19279
18666
  ];
@@ -19640,7 +19027,7 @@
19640
19027
  DialogTransactionLineVatModule,
19641
19028
  DialogTransactionLineDiscountModule,
19642
19029
  DialogTransactionLinePriceListModule,
19643
- sharedcomponents.StatusbarModule,
19030
+ i4.StatusbarModule,
19644
19031
  TransactionLineStatusbarModule
19645
19032
  ],
19646
19033
  declarations: [
@@ -19963,7 +19350,7 @@
19963
19350
  common.CommonModule,
19964
19351
  corecomponents_v12.IconModule,
19965
19352
  PipeModule,
19966
- sharedcomponents.SendMethodDialogModule
19353
+ i4.SendMethodDialogModule
19967
19354
  ],
19968
19355
  declarations: [
19969
19356
  TransactionSendButtonDialogComponent
@@ -19987,7 +19374,7 @@
19987
19374
  corecomponents_v12.IconModule,
19988
19375
  PipeModule,
19989
19376
  corecomponents_v12.InputCheckboxModule,
19990
- sharedcomponents.SendMethodDialogModule,
19377
+ i4.SendMethodDialogModule,
19991
19378
  TransactionSendButtonDialogModule
19992
19379
  ],
19993
19380
  declarations: [
@@ -20011,7 +19398,7 @@
20011
19398
  corecomponents_v12.InputCheckboxModule,
20012
19399
  corecomponents_v12.IconModule,
20013
19400
  PipeModule,
20014
- sharedcomponents.SendMethodDialogModule,
19401
+ i4.SendMethodDialogModule,
20015
19402
  TransactionSendButtonDialogModule
20016
19403
  ],
20017
19404
  declarations: [
@@ -20639,6 +20026,7 @@
20639
20026
  function EditableLabelComponent() {
20640
20027
  this.commit = true;
20641
20028
  this.readonly = false;
20029
+ this.crossedOut = false;
20642
20030
  this.editModelChange = new i0.EventEmitter();
20643
20031
  this._editMode = false;
20644
20032
  }
@@ -20680,7 +20068,7 @@
20680
20068
  EditableLabelComponent.decorators = [
20681
20069
  { type: i0.Component, args: [{
20682
20070
  selector: "co-editable-label",
20683
- template: "\n <span *ngIf=\"!editMode || readonly\" [textContent]=\"model\"></span>\n <co-input-text *ngIf=\"editMode && !readonly\"\n class=\"custom-height\"\n [model]=\"editModel\"\n [showSaveCancel]=\"commit\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
20071
+ template: "\n <span *ngIf=\"!editMode || readonly\" [textContent]=\"model\"></span>\n <div class=\"crossed-out\" *ngIf=\"crossedOut\"></div>\n <co-input-text *ngIf=\"editMode && !readonly\"\n class=\"custom-height\"\n [model]=\"editModel\"\n [showSaveCancel]=\"commit\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
20684
20072
  encapsulation: i0.ViewEncapsulation.None
20685
20073
  },] }
20686
20074
  ];
@@ -20691,6 +20079,7 @@
20691
20079
  commit: [{ type: i0.Input }],
20692
20080
  editMode: [{ type: i0.Input }],
20693
20081
  readonly: [{ type: i0.Input }],
20082
+ crossedOut: [{ type: i0.Input }],
20694
20083
  editModelChange: [{ type: i0.Output }],
20695
20084
  showClass: [{ type: i0.HostBinding, args: ["class.co-editable-label",] }],
20696
20085
  handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
@@ -20723,8 +20112,9 @@
20723
20112
  _this.service = service;
20724
20113
  _this.iconCacheService = iconCacheService;
20725
20114
  _this._transactionEventService = _transactionEventService;
20726
- _this.checkbox = false;
20727
20115
  _this.checkboxValue = false;
20116
+ _this.checkbox = false;
20117
+ _this.hideCheckbox = false;
20728
20118
  _this.actionButtons = true;
20729
20119
  _this.checkboxValueChanged = new i0.EventEmitter();
20730
20120
  return _this;
@@ -20754,7 +20144,7 @@
20754
20144
  TransactionBaseLineComponent.decorators = [
20755
20145
  { type: i0.Component, args: [{
20756
20146
  selector: "co-transaction-base-line",
20757
- template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-base-line-section\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"line.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [line]=\"line\"\n (handleDeleteLine)=\"deleteTransactionLineClick()\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [transactionLine]=\"line\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n </ng-container>\n </div>\n ",
20147
+ template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-base-line-section\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\" [class.hidden]=\"hideCheckbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"line.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [line]=\"line\"\n (handleDeleteLine)=\"deleteTransactionLineClick()\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [transactionLine]=\"line\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n </ng-container>\n </div>\n ",
20758
20148
  encapsulation: i0.ViewEncapsulation.None
20759
20149
  },] }
20760
20150
  ];
@@ -20764,8 +20154,9 @@
20764
20154
  { type: TransactionEventService }
20765
20155
  ]; };
20766
20156
  TransactionBaseLineComponent.propDecorators = {
20767
- checkbox: [{ type: i0.Input }],
20768
20157
  checkboxValue: [{ type: i0.Input }],
20158
+ checkbox: [{ type: i0.Input }],
20159
+ hideCheckbox: [{ type: i0.Input }],
20769
20160
  actionButtons: [{ type: i0.Input }],
20770
20161
  checkboxValueChanged: [{ type: i0.Output }],
20771
20162
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-base-line",] }]
@@ -21159,7 +20550,8 @@
21159
20550
  EditableLabelModule,
21160
20551
  PipeModule,
21161
20552
  corecomponents_v12.InputNumberPickerModule,
21162
- TransactionLineStatusbarModule
20553
+ TransactionLineStatusbarModule,
20554
+ corecomponents_v12.ObserveVisibilityModule
21163
20555
  ],
21164
20556
  declarations: [
21165
20557
  TransactionOrderDeliveryLineComponent
@@ -21200,9 +20592,10 @@
21200
20592
 
21201
20593
  var TransactionLineSupplierButtonComponent = /** @class */ (function (_super) {
21202
20594
  __extends(TransactionLineSupplierButtonComponent, _super);
21203
- function TransactionLineSupplierButtonComponent(_service) {
20595
+ function TransactionLineSupplierButtonComponent(_service, _relationService) {
21204
20596
  var _this = _super.call(this) || this;
21205
20597
  _this._service = _service;
20598
+ _this._relationService = _relationService;
21206
20599
  _this.showDialogSupplier = false;
21207
20600
  return _this;
21208
20601
  }
@@ -21214,7 +20607,7 @@
21214
20607
  var _this = this;
21215
20608
  return __generator(this, function (_a) {
21216
20609
  if (this.transactionLine && this.transactionLine.isArticle) {
21217
- this._service.getSupplierFullObjectByRelationId(this.transactionLine.supplierId).then(function (supp) {
20610
+ this._relationService.getSupplierFullObject(this.transactionLine.supplierId).then(function (supp) {
21218
20611
  _this.transactionLine.supplierDescription = supp ? supp.displayName : "";
21219
20612
  });
21220
20613
  }
@@ -21232,7 +20625,8 @@
21232
20625
  },] }
21233
20626
  ];
21234
20627
  TransactionLineSupplierButtonComponent.ctorParameters = function () { return [
21235
- { type: TransactionService }
20628
+ { type: TransactionService },
20629
+ { type: RelationService }
21236
20630
  ]; };
21237
20631
  TransactionLineSupplierButtonComponent.propDecorators = {
21238
20632
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-supplier-button",] }]
@@ -21339,6 +20733,114 @@
21339
20733
  },] }
21340
20734
  ];
21341
20735
 
20736
+ var QuickSendButtonComponent = /** @class */ (function () {
20737
+ function QuickSendButtonComponent(iconCacheService, _sharedConnectorService, _transactionConnectorService) {
20738
+ this.iconCacheService = iconCacheService;
20739
+ this._sharedConnectorService = _sharedConnectorService;
20740
+ this._transactionConnectorService = _transactionConnectorService;
20741
+ this.icons = Icon;
20742
+ this.isSendIconClicked = false;
20743
+ this.isDotsClicked = false;
20744
+ this.emailLayouts = [];
20745
+ }
20746
+ QuickSendButtonComponent.prototype.showClass = function () {
20747
+ return true;
20748
+ };
20749
+ QuickSendButtonComponent.prototype.sendIconClicked = function () {
20750
+ this.isSendIconClicked = true;
20751
+ };
20752
+ QuickSendButtonComponent.prototype.dotsClicked = function () {
20753
+ this.isDotsClicked = !this.isDotsClicked;
20754
+ };
20755
+ QuickSendButtonComponent.prototype.quickSend = function (data) {
20756
+ if (this.emailSelected) {
20757
+ var emailReport = new emailOrderConfirmation.EmailOrderConfirmation();
20758
+ emailReport.transId = this.transaction.transactionInfo.transactionNr;
20759
+ this._sharedConnectorService.connector.emailReport(emailReport);
20760
+ }
20761
+ if (this.printSelected) {
20762
+ var printReport = new printOrderConfirmation.PrintOrderConfirmation();
20763
+ printReport.transId = this.transaction.transactionInfo.transactionNr;
20764
+ this._sharedConnectorService.connector.printReport(printReport);
20765
+ }
20766
+ if (this.pdfSelected) {
20767
+ var pdfReport = new pdfOrderConfirmation.PdfOrderConfirmation();
20768
+ pdfReport.transId = this.transaction.transactionInfo.transactionNr;
20769
+ this._sharedConnectorService.connector.pdfReport(pdfReport);
20770
+ }
20771
+ if (this.xmlSelected) {
20772
+ return;
20773
+ }
20774
+ };
20775
+ QuickSendButtonComponent.prototype.getEmailLayouts = function () {
20776
+ var _this = this;
20777
+ // this.getEmailAdresses();
20778
+ if (this.emailLayouts.length < 1) {
20779
+ this._transactionConnectorService.getPurchaseOrderEmailLayouts(this.transaction.transactionInfo.uuid).then(function (result) {
20780
+ _this.emailLayouts = result;
20781
+ });
20782
+ }
20783
+ };
20784
+ QuickSendButtonComponent.prototype.setSendParams = function (data) {
20785
+ this.sendParams = data;
20786
+ };
20787
+ QuickSendButtonComponent.prototype.getPrintTemplates = function () {
20788
+ var _this = this;
20789
+ if (!this.printTemplates) {
20790
+ var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayouts();
20791
+ this._transactionConnectorService.getStockStickerTemplates(data).then(function (templates) {
20792
+ _this.printTemplates = templates;
20793
+ });
20794
+ }
20795
+ };
20796
+ QuickSendButtonComponent.prototype.sendOrderConfirmationEmail = function () {
20797
+ var data = new emailOrderConfirmation.EmailOrderConfirmation();
20798
+ data.toAddresses = "lars-vdv@colijn-it.nl";
20799
+ data.reportId = this.sendParams.reportId;
20800
+ this._transactionConnectorService.emailOrderConfirmation(data);
20801
+ };
20802
+ return QuickSendButtonComponent;
20803
+ }());
20804
+ QuickSendButtonComponent.decorators = [
20805
+ { type: i0.Component, args: [{
20806
+ selector: "co-quick-send-button",
20807
+ template: "\n <div class=\"icons-wrapper\">\n <div class=\"icon-wrapper-flat-left\" (click)=\"sendIconClicked()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ShareSolid)\" class=\"icon-send\"></co-icon>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.AtSolid)\" class=\"icon-method\"></co-icon>\n </div>\n <div class=\"icons-spacer\"></div>\n <div class=\"icon-wrapper-flat-right\" (click)=\"dotsClicked()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.EllipsisVerticalSolid)\"></co-icon>\n </div>\n </div>\n\n <ione-send-method-dialog\n [showDialog]=\"isDotsClicked\"\n (printButtonClicked)=\"quickSend($event)\"\n [transactionUUID]=\"transaction.transactionInfo.uuid\"\n [headerTitle]=\"'Verzendmethode'\"\n (emailLayoutClicked)=\"getEmailLayouts()\"\n [emailLayouts]=\"emailLayouts\"\n (printTemplatesClicked)=\"getPrintTemplates()\"\n [printLayouts]=\"printTemplates\"\n (printLayoutParams)=\"setSendParams($event)\"\n [isDocSignEnabled]=\"true\"\n (sendEmailClicked)=\"sendOrderConfirmationEmail()\"\n ></ione-send-method-dialog>\n ",
20808
+ encapsulation: i0.ViewEncapsulation.None
20809
+ },] }
20810
+ ];
20811
+ QuickSendButtonComponent.ctorParameters = function () { return [
20812
+ { type: IconCacheService },
20813
+ { type: SharedConnectorService },
20814
+ { type: TransactionConnectorService }
20815
+ ]; };
20816
+ QuickSendButtonComponent.propDecorators = {
20817
+ showClass: [{ type: i0.HostBinding, args: ["class.co-quick-send-button",] }],
20818
+ transaction: [{ type: i0.Input }]
20819
+ };
20820
+
20821
+ var QuickSendButtonModule = /** @class */ (function () {
20822
+ function QuickSendButtonModule() {
20823
+ }
20824
+ return QuickSendButtonModule;
20825
+ }());
20826
+ QuickSendButtonModule.decorators = [
20827
+ { type: i0.NgModule, args: [{
20828
+ imports: [
20829
+ common.CommonModule,
20830
+ CoreModule,
20831
+ corecomponents_v12.IconModule,
20832
+ i4.SendMethodDialogModule,
20833
+ PipeModule
20834
+ ],
20835
+ declarations: [
20836
+ QuickSendButtonComponent
20837
+ ],
20838
+ exports: [
20839
+ QuickSendButtonComponent
20840
+ ],
20841
+ },] }
20842
+ ];
20843
+
21342
20844
  var TransactionModule = /** @class */ (function () {
21343
20845
  function TransactionModule() {
21344
20846
  }
@@ -21371,7 +20873,8 @@
21371
20873
  TransactionOverviewLineModule,
21372
20874
  TransactionOrderDeliveryLineModule,
21373
20875
  TransactionReceiveGoodsLineModule,
21374
- TransactionPurchaseLineModule
20876
+ TransactionPurchaseLineModule,
20877
+ QuickSendButtonModule
21375
20878
  ],
21376
20879
  declarations: [
21377
20880
  TransactionComponent
@@ -21920,11 +21423,12 @@
21920
21423
 
21921
21424
  var TransactionPurchaseOrderFilterContentArticleComponent = /** @class */ (function (_super) {
21922
21425
  __extends(TransactionPurchaseOrderFilterContentArticleComponent, _super);
21923
- function TransactionPurchaseOrderFilterContentArticleComponent(searchService, filterRequestService, transactionService) {
21426
+ function TransactionPurchaseOrderFilterContentArticleComponent(searchService, filterRequestService, transactionService, _relationService) {
21924
21427
  var _this = _super.call(this, searchService, filterRequestService, transactionService) || this;
21925
21428
  _this.searchService = searchService;
21926
21429
  _this.filterRequestService = filterRequestService;
21927
21430
  _this.transactionService = transactionService;
21431
+ _this._relationService = _relationService;
21928
21432
  _this.exceedanceCodeFields = { text: "description", value: "code" };
21929
21433
  _this.turnoverGroupFields = { text: "description", value: "turnovergroupNr" };
21930
21434
  _this.mainArticleFields = { text: "description", value: "articlenumber" };
@@ -21969,7 +21473,7 @@
21969
21473
  var _this = this;
21970
21474
  var request = new relationRequest.RelationRequest();
21971
21475
  request.relationType = relationKind_enum.RelationKind.Supplier;
21972
- this.transactionService.getRelationListObjects(request).then(function (relationListObjects) {
21476
+ this._relationService.getRelationListObjects(request).then(function (relationListObjects) {
21973
21477
  _this.suppliers = new FilterViewmodel(relationListObjects, _this.supplierFields).filterItems;
21974
21478
  });
21975
21479
  };
@@ -21984,7 +21488,8 @@
21984
21488
  TransactionPurchaseOrderFilterContentArticleComponent.ctorParameters = function () { return [
21985
21489
  { type: TransactionSearchService },
21986
21490
  { type: FilterRequestService },
21987
- { type: TransactionService }
21491
+ { type: TransactionService },
21492
+ { type: RelationService }
21988
21493
  ]; };
21989
21494
  TransactionPurchaseOrderFilterContentArticleComponent.propDecorators = {
21990
21495
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-filter-content",] }]
@@ -22187,11 +21692,12 @@
22187
21692
 
22188
21693
  var TransactionPurchaseOrderFilterContentOrderComponent = /** @class */ (function (_super) {
22189
21694
  __extends(TransactionPurchaseOrderFilterContentOrderComponent, _super);
22190
- function TransactionPurchaseOrderFilterContentOrderComponent(searchService, filterRequestService, transactionService) {
21695
+ function TransactionPurchaseOrderFilterContentOrderComponent(searchService, filterRequestService, transactionService, relationService) {
22191
21696
  var _this = _super.call(this, searchService, filterRequestService, transactionService) || this;
22192
21697
  _this.searchService = searchService;
22193
21698
  _this.filterRequestService = filterRequestService;
22194
21699
  _this.transactionService = transactionService;
21700
+ _this.relationService = relationService;
22195
21701
  _this.purchasePersonsFields = { text: "name", value: "relationId" };
22196
21702
  _this.tagsFields = { text: "description", value: "tagValueId" };
22197
21703
  _this.branchFields = { text: "description", value: "relationId" };
@@ -22233,7 +21739,7 @@
22233
21739
  //Branches
22234
21740
  TransactionPurchaseOrderFilterContentOrderComponent.prototype._setBranches = function () {
22235
21741
  var _this = this;
22236
- this.transactionService.getBranches().then(function (branches) {
21742
+ this.relationService.getBranches().then(function (branches) {
22237
21743
  _this.branches = new FilterViewmodel(branches, _this.branchFields).filterItems;
22238
21744
  });
22239
21745
  };
@@ -22262,7 +21768,8 @@
22262
21768
  TransactionPurchaseOrderFilterContentOrderComponent.ctorParameters = function () { return [
22263
21769
  { type: TransactionSearchService },
22264
21770
  { type: FilterRequestService },
22265
- { type: TransactionService }
21771
+ { type: TransactionService },
21772
+ { type: RelationService }
22266
21773
  ]; };
22267
21774
  TransactionPurchaseOrderFilterContentOrderComponent.propDecorators = {
22268
21775
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-filter-content",] }]
@@ -22415,7 +21922,7 @@
22415
21922
  imports: [
22416
21923
  common.CommonModule,
22417
21924
  CoreModule,
22418
- sharedcomponents.StatusbarModule
21925
+ i4.StatusbarModule
22419
21926
  ],
22420
21927
  declarations: [
22421
21928
  TransactionStatusbarComponent
@@ -22681,7 +22188,7 @@
22681
22188
  PipeModule,
22682
22189
  AvatarModule,
22683
22190
  corecomponents_v12.IconModule,
22684
- sharedcomponents.StatusbarModule,
22191
+ i4.StatusbarModule,
22685
22192
  TransactionStatusbarModule
22686
22193
  ],
22687
22194
  declarations: [
@@ -22707,7 +22214,7 @@
22707
22214
  corecomponents_v12.ButtonModule,
22708
22215
  PipeModule,
22709
22216
  corecomponents_v12.IconModule,
22710
- sharedcomponents.StatusbarModule,
22217
+ i4.StatusbarModule,
22711
22218
  TransactionStatusbarModule,
22712
22219
  ],
22713
22220
  declarations: [
@@ -22941,11 +22448,12 @@
22941
22448
 
22942
22449
  var TransactionSalesOrderFilterContentArticleComponent = /** @class */ (function (_super) {
22943
22450
  __extends(TransactionSalesOrderFilterContentArticleComponent, _super);
22944
- function TransactionSalesOrderFilterContentArticleComponent(searchService, filterRequestService, transactionService) {
22451
+ function TransactionSalesOrderFilterContentArticleComponent(searchService, filterRequestService, transactionService, _relationService) {
22945
22452
  var _this = _super.call(this, searchService, filterRequestService, transactionService) || this;
22946
22453
  _this.searchService = searchService;
22947
22454
  _this.filterRequestService = filterRequestService;
22948
22455
  _this.transactionService = transactionService;
22456
+ _this._relationService = _relationService;
22949
22457
  _this.exceedanceCodeFields = { text: "description", value: "code" };
22950
22458
  _this.turnoverGroupFields = { text: "description", value: "turnovergroupNr" };
22951
22459
  _this.mainArticleFields = { text: "description", value: "articlenumber" };
@@ -22990,7 +22498,7 @@
22990
22498
  var _this = this;
22991
22499
  var request = new relationRequest.RelationRequest();
22992
22500
  request.relationType = relationKind_enum.RelationKind.Supplier;
22993
- this.transactionService.getRelationListObjects(request).then(function (relationListObjects) {
22501
+ this._relationService.getRelationListObjects(request).then(function (relationListObjects) {
22994
22502
  _this.suppliers = new FilterViewmodel(relationListObjects, _this.supplierFields).filterItems;
22995
22503
  });
22996
22504
  };
@@ -23005,7 +22513,8 @@
23005
22513
  TransactionSalesOrderFilterContentArticleComponent.ctorParameters = function () { return [
23006
22514
  { type: TransactionSearchService },
23007
22515
  { type: FilterRequestService },
23008
- { type: TransactionService }
22516
+ { type: TransactionService },
22517
+ { type: RelationService }
23009
22518
  ]; };
23010
22519
  TransactionSalesOrderFilterContentArticleComponent.propDecorators = {
23011
22520
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-filter-content",] }]
@@ -23134,11 +22643,12 @@
23134
22643
 
23135
22644
  var TransactionSalesOrderFilterContentOrderComponent = /** @class */ (function (_super) {
23136
22645
  __extends(TransactionSalesOrderFilterContentOrderComponent, _super);
23137
- function TransactionSalesOrderFilterContentOrderComponent(searchService, filterRequestService, transactionService) {
22646
+ function TransactionSalesOrderFilterContentOrderComponent(searchService, filterRequestService, transactionService, relationService) {
23138
22647
  var _this = _super.call(this, searchService, filterRequestService, transactionService) || this;
23139
22648
  _this.searchService = searchService;
23140
22649
  _this.filterRequestService = filterRequestService;
23141
22650
  _this.transactionService = transactionService;
22651
+ _this.relationService = relationService;
23142
22652
  _this.salesPersonsFields = { text: "name", value: "relationId" };
23143
22653
  _this.tagsFields = { text: "description", value: "tagValueId" };
23144
22654
  _this.branchFields = { text: "description", value: "relationId" };
@@ -23150,7 +22660,7 @@
23150
22660
  return __generator(this, function (_a) {
23151
22661
  request = new relationRequest.RelationRequest();
23152
22662
  request.familyName = nameFilter;
23153
- return [2 /*return*/, this.transactionService.getRelationListObjects(request).then(function (relations) {
22663
+ return [2 /*return*/, this.relationService.getRelationListObjects(request).then(function (relations) {
23154
22664
  return new FilterViewmodel(relations, { text: 'familyName', value: 'familyName' }).filterItems;
23155
22665
  })];
23156
22666
  });
@@ -23192,7 +22702,7 @@
23192
22702
  //Branches
23193
22703
  TransactionSalesOrderFilterContentOrderComponent.prototype._setBranches = function () {
23194
22704
  var _this = this;
23195
- this.transactionService.getBranches().then(function (branches) {
22705
+ this.relationService.getBranches().then(function (branches) {
23196
22706
  _this.branches = new FilterViewmodel(branches, _this.branchFields).filterItems;
23197
22707
  });
23198
22708
  };
@@ -23228,7 +22738,8 @@
23228
22738
  TransactionSalesOrderFilterContentOrderComponent.ctorParameters = function () { return [
23229
22739
  { type: TransactionSearchService },
23230
22740
  { type: FilterRequestService },
23231
- { type: TransactionService }
22741
+ { type: TransactionService },
22742
+ { type: RelationService }
23232
22743
  ]; };
23233
22744
  TransactionSalesOrderFilterContentOrderComponent.propDecorators = {
23234
22745
  showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-filter-content",] }]
@@ -23407,28 +22918,28 @@
23407
22918
  exports.TransactionTotalsModule = TransactionTotalsModule;
23408
22919
  exports["ɵa"] = PendingReasonService;
23409
22920
  exports["ɵb"] = DialogService;
23410
- exports["ɵba"] = DialogBaseComponent;
23411
- exports["ɵbb"] = IconCacheService;
23412
- exports["ɵbc"] = CharacteristicAnswerModule;
23413
- exports["ɵbd"] = CharacteristicAnswerComponent;
23414
- exports["ɵbe"] = WarehouseModule;
23415
- exports["ɵbf"] = WarehouseComponent;
23416
- exports["ɵbg"] = ImageDisplayComponent;
23417
- exports["ɵbh"] = IconComponent;
23418
- exports["ɵbi"] = CustomerGroupsComponent;
23419
- exports["ɵbj"] = StockStatusIndicatorComponent;
23420
- exports["ɵbk"] = LazyRenderMasterDirective;
23421
- exports["ɵbl"] = LazyRenderDirective;
23422
- exports["ɵbm"] = RelationAddressModule;
23423
- exports["ɵbn"] = RelationAddressComponent;
23424
- exports["ɵbo"] = RelationBaseComponent;
23425
- exports["ɵbp"] = RelationAddressSelectModule;
23426
- exports["ɵbq"] = RelationAddressTileModule;
23427
- exports["ɵbr"] = TileModule;
23428
- exports["ɵbs"] = TileComponent;
23429
- exports["ɵbt"] = RelationAddressTileComponent;
23430
- exports["ɵbu"] = RelationAddressSelectComponent;
23431
- exports["ɵbv"] = BusinessObjectFactory;
22921
+ exports["ɵba"] = ConfirmationDialogComponent;
22922
+ exports["ɵbb"] = DialogBaseComponent;
22923
+ exports["ɵbc"] = IconCacheService;
22924
+ exports["ɵbd"] = CharacteristicAnswerModule;
22925
+ exports["ɵbe"] = CharacteristicAnswerComponent;
22926
+ exports["ɵbf"] = WarehouseModule;
22927
+ exports["ɵbg"] = WarehouseComponent;
22928
+ exports["ɵbh"] = ImageDisplayComponent;
22929
+ exports["ɵbi"] = IconComponent;
22930
+ exports["ɵbj"] = CustomerGroupsComponent;
22931
+ exports["ɵbk"] = StockStatusIndicatorComponent;
22932
+ exports["ɵbl"] = LazyRenderMasterDirective;
22933
+ exports["ɵbm"] = LazyRenderDirective;
22934
+ exports["ɵbn"] = RelationAddressModule;
22935
+ exports["ɵbo"] = RelationAddressComponent;
22936
+ exports["ɵbp"] = RelationBaseComponent;
22937
+ exports["ɵbq"] = RelationAddressSelectModule;
22938
+ exports["ɵbr"] = RelationAddressTileModule;
22939
+ exports["ɵbs"] = TileModule;
22940
+ exports["ɵbt"] = TileComponent;
22941
+ exports["ɵbu"] = RelationAddressTileComponent;
22942
+ exports["ɵbv"] = RelationAddressSelectComponent;
23432
22943
  exports["ɵbw"] = StepperModule;
23433
22944
  exports["ɵbx"] = StepperComponent;
23434
22945
  exports["ɵby"] = StepperStepComponent;
@@ -23461,273 +22972,277 @@
23461
22972
  exports["ɵcy"] = SharedService;
23462
22973
  exports["ɵcz"] = SharedConnectorService;
23463
22974
  exports["ɵd"] = OptionsService;
23464
- exports["ɵda"] = DeliveryTypeTileModule;
23465
- exports["ɵdb"] = DeliveryTypeTileComponent;
23466
- exports["ɵdc"] = PaymentModule;
23467
- exports["ɵdd"] = PaymentTileModule;
23468
- exports["ɵde"] = PaymentTileComponent;
23469
- exports["ɵdf"] = PaymentQrCodeModule;
23470
- exports["ɵdg"] = PaymentQrCodeComponent;
23471
- exports["ɵdh"] = DownPaymentModule;
23472
- exports["ɵdi"] = DownPaymentComponent;
23473
- exports["ɵdj"] = PaymentService;
23474
- exports["ɵdk"] = PaymentComponent;
23475
- exports["ɵdl"] = RelationTypeModule;
23476
- exports["ɵdm"] = RelationTypeComponent;
23477
- exports["ɵdn"] = RelationGeneralModule;
23478
- exports["ɵdo"] = RelationSuggestionsListModule;
23479
- exports["ɵdp"] = RelationSuggestionsListItemModule;
23480
- exports["ɵdq"] = RelationSuggestionsListItemComponent;
23481
- exports["ɵdr"] = RelationSuggestionsListComponent;
23482
- exports["ɵds"] = RelationGeneralComponent;
23483
- exports["ɵdt"] = RelationAddressesModule;
23484
- exports["ɵdu"] = RelationAddressesComponent;
23485
- exports["ɵdv"] = RelationContactDetailsModule;
23486
- exports["ɵdw"] = RelationContactDetailsComponent;
23487
- exports["ɵdx"] = RelationPreferencesModule;
23488
- exports["ɵdy"] = RelationPreferencesComponent;
23489
- exports["ɵdz"] = TransactionHeaderBlockModule;
22975
+ exports["ɵda"] = RelationService;
22976
+ exports["ɵdb"] = DeliveryTypeTileModule;
22977
+ exports["ɵdc"] = DeliveryTypeTileComponent;
22978
+ exports["ɵdd"] = PaymentModule;
22979
+ exports["ɵde"] = PaymentTileModule;
22980
+ exports["ɵdf"] = PaymentTileComponent;
22981
+ exports["ɵdg"] = PaymentQrCodeModule;
22982
+ exports["ɵdh"] = PaymentQrCodeComponent;
22983
+ exports["ɵdi"] = DownPaymentModule;
22984
+ exports["ɵdj"] = DownPaymentComponent;
22985
+ exports["ɵdk"] = PaymentService;
22986
+ exports["ɵdl"] = PaymentComponent;
22987
+ exports["ɵdm"] = RelationTypeModule;
22988
+ exports["ɵdn"] = RelationTypeComponent;
22989
+ exports["ɵdo"] = RelationGeneralModule;
22990
+ exports["ɵdp"] = RelationSuggestionsListModule;
22991
+ exports["ɵdq"] = RelationSuggestionsListItemModule;
22992
+ exports["ɵdr"] = RelationSuggestionsListItemComponent;
22993
+ exports["ɵds"] = RelationSuggestionsListComponent;
22994
+ exports["ɵdt"] = RelationGeneralComponent;
22995
+ exports["ɵdu"] = RelationAddressesModule;
22996
+ exports["ɵdv"] = RelationAddressesComponent;
22997
+ exports["ɵdw"] = RelationContactDetailsModule;
22998
+ exports["ɵdx"] = RelationContactDetailsComponent;
22999
+ exports["ɵdy"] = RelationPreferencesModule;
23000
+ exports["ɵdz"] = RelationPreferencesComponent;
23490
23001
  exports["ɵe"] = DictionaryService;
23491
- exports["ɵea"] = TransactionHeaderBlockComponent;
23492
- exports["ɵeb"] = TransactionHeaderDeliveryDateModule;
23493
- exports["ɵec"] = TransactionHeaderDeliveryDateComponent;
23494
- exports["ɵed"] = TransactionHeaderDeliveryOptionsModule;
23495
- exports["ɵee"] = TransactionHeaderDeliveryOptionsComponent;
23496
- exports["ɵef"] = TransactionHeaderRemarksModule;
23497
- exports["ɵeg"] = TransactionHeaderRemarksComponent;
23498
- exports["ɵeh"] = TransactionHeaderReferenceModule;
23499
- exports["ɵei"] = TransactionHeaderReferenceComponent;
23500
- exports["ɵej"] = TransactionHeaderRelationReferenceModule;
23501
- exports["ɵek"] = TransactionHeaderRelationReferenceComponent;
23502
- exports["ɵel"] = TransactionHeaderDeliveryMethodModule;
23503
- exports["ɵem"] = TransactionLineCheckboxModule;
23504
- exports["ɵen"] = TransactionLineCheckboxListComponent;
23505
- exports["ɵeo"] = TransactionHeaderDeliveryMethodComponent;
23506
- exports["ɵep"] = TransactionHeaderPreferredDeliveryDateModule;
23507
- exports["ɵeq"] = TransactionHeaderPreferredDeliveryDateComponent;
23508
- exports["ɵer"] = DialogTransactionHeaderDeliveryMethodModule;
23509
- exports["ɵes"] = DialogHeaderSearchModule;
23510
- exports["ɵet"] = DialogHeaderSearchComponent;
23511
- exports["ɵeu"] = DialogTransactionHeaderDeliveryMethodComponent;
23512
- exports["ɵev"] = TransactionHeaderPartialDeliveryModule;
23513
- exports["ɵew"] = TransactionHeaderPartialDeliveryComponent;
23514
- exports["ɵex"] = TransactionBaseComponent;
23515
- exports["ɵey"] = TransactionHeaderDownpaymentPercentageModule;
23516
- exports["ɵez"] = TransactionHeaderDownpaymentPercentageComponent;
23002
+ exports["ɵea"] = TransactionHeaderBlockModule;
23003
+ exports["ɵeb"] = TransactionHeaderBlockComponent;
23004
+ exports["ɵec"] = TransactionHeaderDeliveryDateModule;
23005
+ exports["ɵed"] = TransactionHeaderDeliveryDateComponent;
23006
+ exports["ɵee"] = TransactionHeaderDeliveryOptionsModule;
23007
+ exports["ɵef"] = TransactionHeaderDeliveryOptionsComponent;
23008
+ exports["ɵeg"] = TransactionHeaderRemarksModule;
23009
+ exports["ɵeh"] = TransactionHeaderRemarksComponent;
23010
+ exports["ɵei"] = TransactionHeaderReferenceModule;
23011
+ exports["ɵej"] = TransactionHeaderReferenceComponent;
23012
+ exports["ɵek"] = TransactionHeaderRelationReferenceModule;
23013
+ exports["ɵel"] = TransactionHeaderRelationReferenceComponent;
23014
+ exports["ɵem"] = TransactionHeaderDeliveryMethodModule;
23015
+ exports["ɵen"] = TransactionLineCheckboxModule;
23016
+ exports["ɵeo"] = TransactionLineCheckboxListComponent;
23017
+ exports["ɵep"] = TransactionHeaderDeliveryMethodComponent;
23018
+ exports["ɵeq"] = TransactionHeaderPreferredDeliveryDateModule;
23019
+ exports["ɵer"] = TransactionHeaderPreferredDeliveryDateComponent;
23020
+ exports["ɵes"] = DialogTransactionHeaderDeliveryMethodModule;
23021
+ exports["ɵet"] = DialogHeaderSearchModule;
23022
+ exports["ɵeu"] = DialogHeaderSearchComponent;
23023
+ exports["ɵev"] = DialogTransactionHeaderDeliveryMethodComponent;
23024
+ exports["ɵew"] = TransactionHeaderPartialDeliveryModule;
23025
+ exports["ɵex"] = TransactionHeaderPartialDeliveryComponent;
23026
+ exports["ɵey"] = TransactionBaseComponent;
23027
+ exports["ɵez"] = TransactionHeaderDownpaymentPercentageModule;
23517
23028
  exports["ɵf"] = TransactionConnectorService;
23518
- exports["ɵfa"] = TransactionHeaderDownpaymentAmountModule;
23519
- exports["ɵfb"] = TransactionHeaderDownpaymentAmountComponent;
23520
- exports["ɵfc"] = TransactionHeaderDefinitiveModule;
23521
- exports["ɵfd"] = TransactionHeaderDefinitiveComponent;
23522
- exports["ɵfe"] = TransactionHeaderBranchModule;
23523
- exports["ɵff"] = TransactionHeaderBranchComponent;
23524
- exports["ɵfg"] = TransactionHeaderAdministrativeRelationModule;
23525
- exports["ɵfh"] = TransactionHeaderAdministrativeRelationComponent;
23526
- exports["ɵfi"] = TransactionHeaderMarketingModule;
23527
- exports["ɵfj"] = TransactionHeaderMarketingComponent;
23528
- exports["ɵfk"] = CheckoutOverviewRelationEditComponent;
23529
- exports["ɵfl"] = CheckoutOverviewDeliveryEditComponent;
23530
- exports["ɵfm"] = CheckoutOverviewDeliveryAddressComponent;
23531
- exports["ɵfn"] = CheckoutOverviewPaymentComponent;
23532
- exports["ɵfo"] = CheckoutLoginComponent;
23533
- exports["ɵfp"] = TransactionFilterCategoriesModule;
23534
- exports["ɵfq"] = TransactionFilterCategoriesComponent;
23535
- exports["ɵfr"] = TransactionHeaderPaymentModule;
23536
- exports["ɵfs"] = TransactionHeaderPaymentComponent;
23537
- exports["ɵft"] = TransactionLinesGridModule;
23538
- exports["ɵfu"] = TransactionBaseGridModule;
23539
- exports["ɵfv"] = TransactionLineSidePanelModule;
23540
- exports["ɵfw"] = TransactionLineSidePanelDefaultModule;
23541
- exports["ɵfx"] = TransactionLinePriceModule;
23542
- exports["ɵfy"] = TransactionLinePriceComponent;
23543
- exports["ɵfz"] = TransactionLinePriceListModule;
23029
+ exports["ɵfa"] = TransactionHeaderDownpaymentPercentageComponent;
23030
+ exports["ɵfb"] = TransactionHeaderDownpaymentAmountModule;
23031
+ exports["ɵfc"] = TransactionHeaderDownpaymentAmountComponent;
23032
+ exports["ɵfd"] = TransactionHeaderDefinitiveModule;
23033
+ exports["ɵfe"] = TransactionHeaderDefinitiveComponent;
23034
+ exports["ɵff"] = TransactionHeaderBranchModule;
23035
+ exports["ɵfg"] = TransactionHeaderBranchComponent;
23036
+ exports["ɵfh"] = TransactionHeaderAdministrativeRelationModule;
23037
+ exports["ɵfi"] = TransactionHeaderAdministrativeRelationComponent;
23038
+ exports["ɵfj"] = TransactionHeaderMarketingModule;
23039
+ exports["ɵfk"] = TransactionHeaderMarketingComponent;
23040
+ exports["ɵfl"] = CheckoutOverviewRelationEditComponent;
23041
+ exports["ɵfm"] = CheckoutOverviewDeliveryEditComponent;
23042
+ exports["ɵfn"] = CheckoutOverviewDeliveryAddressComponent;
23043
+ exports["ɵfo"] = CheckoutOverviewPaymentComponent;
23044
+ exports["ɵfp"] = CheckoutLoginComponent;
23045
+ exports["ɵfq"] = TransactionFilterCategoriesModule;
23046
+ exports["ɵfr"] = TransactionFilterCategoriesComponent;
23047
+ exports["ɵfs"] = TransactionHeaderPaymentModule;
23048
+ exports["ɵft"] = TransactionHeaderPaymentComponent;
23049
+ exports["ɵfu"] = TransactionLinesGridModule;
23050
+ exports["ɵfv"] = TransactionBaseGridModule;
23051
+ exports["ɵfw"] = TransactionLineSidePanelModule;
23052
+ exports["ɵfx"] = TransactionLineSidePanelDefaultModule;
23053
+ exports["ɵfy"] = TransactionLinePriceModule;
23054
+ exports["ɵfz"] = TransactionLinePriceComponent;
23544
23055
  exports["ɵg"] = TransactionConnectorAdapterService;
23545
- exports["ɵga"] = TransactionLinePriceListComponent;
23546
- exports["ɵgb"] = TransactionFilterPopupBaseComponent;
23547
- exports["ɵgc"] = TransactionLineVatModule;
23548
- exports["ɵgd"] = TransactionLineVatComponent;
23549
- exports["ɵge"] = TransactionLineQuantityModule;
23550
- exports["ɵgf"] = TransactionLineQuantityComponent;
23551
- exports["ɵgg"] = TransactionLineLineDiscountModule;
23552
- exports["ɵgh"] = TransactionLineLineDiscountComponent;
23553
- exports["ɵgi"] = TransactionLineDeliveryMethodModule;
23554
- exports["ɵgj"] = TransactionLineDeliveryMethodComponent;
23555
- exports["ɵgk"] = TransactionLineDeliveryDateModule;
23556
- exports["ɵgl"] = TransactionLineDeliveryDateComponent;
23557
- exports["ɵgm"] = TransactionLineReferenceModule;
23558
- exports["ɵgn"] = TransactionLineReferenceComponent;
23559
- exports["ɵgo"] = TransactionLineCommissionCodeModule;
23560
- exports["ɵgp"] = TransactionLineCommissionCodeComponent;
23561
- exports["ɵgq"] = TransactionLineWarehouseModule;
23562
- exports["ɵgr"] = TransactionLineWarehouseComponent;
23563
- exports["ɵgs"] = TransactionLineDiscountAmountModule;
23564
- exports["ɵgt"] = TransactionLineDiscountAmountComponent;
23565
- exports["ɵgu"] = TransactionLineQuantumDiscountModule;
23566
- exports["ɵgv"] = TransactionLineQuantumDiscountComponent;
23567
- exports["ɵgw"] = TransactionLineSpecialDiscountModule;
23568
- exports["ɵgx"] = TransactionLineSpecialDiscountComponent;
23569
- exports["ɵgy"] = TransactionLineSupplierModule;
23570
- exports["ɵgz"] = TransactionLineSupplierComponent;
23056
+ exports["ɵga"] = TransactionLinePriceListModule;
23057
+ exports["ɵgb"] = TransactionLinePriceListComponent;
23058
+ exports["ɵgc"] = TransactionFilterPopupBaseComponent;
23059
+ exports["ɵgd"] = TransactionLineVatModule;
23060
+ exports["ɵge"] = TransactionLineVatComponent;
23061
+ exports["ɵgf"] = TransactionLineQuantityModule;
23062
+ exports["ɵgg"] = TransactionLineQuantityComponent;
23063
+ exports["ɵgh"] = TransactionLineLineDiscountModule;
23064
+ exports["ɵgi"] = TransactionLineLineDiscountComponent;
23065
+ exports["ɵgj"] = TransactionLineDeliveryMethodModule;
23066
+ exports["ɵgk"] = TransactionLineDeliveryMethodComponent;
23067
+ exports["ɵgl"] = TransactionLineDeliveryDateModule;
23068
+ exports["ɵgm"] = TransactionLineDeliveryDateComponent;
23069
+ exports["ɵgn"] = TransactionLineReferenceModule;
23070
+ exports["ɵgo"] = TransactionLineReferenceComponent;
23071
+ exports["ɵgp"] = TransactionLineCommissionCodeModule;
23072
+ exports["ɵgq"] = TransactionLineCommissionCodeComponent;
23073
+ exports["ɵgr"] = TransactionLineWarehouseModule;
23074
+ exports["ɵgs"] = TransactionLineWarehouseComponent;
23075
+ exports["ɵgt"] = TransactionLineDiscountAmountModule;
23076
+ exports["ɵgu"] = TransactionLineDiscountAmountComponent;
23077
+ exports["ɵgv"] = TransactionLineQuantumDiscountModule;
23078
+ exports["ɵgw"] = TransactionLineQuantumDiscountComponent;
23079
+ exports["ɵgx"] = TransactionLineSpecialDiscountModule;
23080
+ exports["ɵgy"] = TransactionLineSpecialDiscountComponent;
23081
+ exports["ɵgz"] = TransactionLineSupplierModule;
23571
23082
  exports["ɵh"] = SelectMultipleCacheService;
23572
- exports["ɵha"] = TransactionLineSidePanelDefaultComponent;
23573
- exports["ɵhb"] = TransactionReceivingGoodsHistoryModule;
23574
- exports["ɵhc"] = TransactionHistoryGridModule;
23575
- exports["ɵhd"] = TransactionHistoryGridStatusModule;
23576
- exports["ɵhe"] = TransactionHistoryGridStatusComponent;
23577
- exports["ɵhf"] = TransactionHistoryGridComponent;
23578
- exports["ɵhg"] = TransactionReceivingGoodsHistoryComponent;
23579
- exports["ɵhh"] = TransactionReceivingGoodsDetailsModule;
23580
- exports["ɵhi"] = TransactionReceivingGoodsDetailsComponent;
23581
- exports["ɵhj"] = ArticleService;
23582
- exports["ɵhk"] = TransactionButtonBarModule;
23583
- exports["ɵhl"] = AnimatedCheckboxModule;
23584
- exports["ɵhm"] = AnimatedCheckboxComponent;
23585
- exports["ɵhn"] = TransactionButtonBarComponent;
23586
- exports["ɵho"] = TransactionButtonBarButtonComponent;
23587
- exports["ɵhp"] = TransactionButtonBarButtonBaseComponent;
23588
- exports["ɵhq"] = TransactionSalesPurchaseButtonBarButtonComponent;
23589
- exports["ɵhr"] = TransactionLineSidePanelPurchaseModule;
23590
- exports["ɵhs"] = DefaultOkCancelButtonsModule;
23591
- exports["ɵht"] = DefaultOkCancelButtonsComponent;
23592
- exports["ɵhu"] = TransactionLineSidePanelPurchaseComponent;
23593
- exports["ɵhv"] = TransactionLineSidePanelComponent;
23594
- exports["ɵhw"] = DynamicBaseComponent;
23595
- exports["ɵhx"] = TransactionLineActionButtonsModule;
23596
- exports["ɵhy"] = TransactionArticleTextOverviewModule;
23597
- exports["ɵhz"] = TransactionArticleTextOverviewComponent;
23083
+ exports["ɵha"] = TransactionLineSupplierComponent;
23084
+ exports["ɵhb"] = TransactionLineSidePanelDefaultComponent;
23085
+ exports["ɵhc"] = TransactionReceivingGoodsHistoryModule;
23086
+ exports["ɵhd"] = TransactionHistoryGridModule;
23087
+ exports["ɵhe"] = TransactionHistoryGridStatusModule;
23088
+ exports["ɵhf"] = TransactionHistoryGridStatusComponent;
23089
+ exports["ɵhg"] = TransactionHistoryGridComponent;
23090
+ exports["ɵhh"] = TransactionReceivingGoodsHistoryComponent;
23091
+ exports["ɵhi"] = TransactionReceivingGoodsDetailsModule;
23092
+ exports["ɵhj"] = TransactionReceivingGoodsDetailsComponent;
23093
+ exports["ɵhk"] = ArticleService;
23094
+ exports["ɵhl"] = TransactionButtonBarModule;
23095
+ exports["ɵhm"] = AnimatedCheckboxModule;
23096
+ exports["ɵhn"] = AnimatedCheckboxComponent;
23097
+ exports["ɵho"] = TransactionButtonBarComponent;
23098
+ exports["ɵhp"] = TransactionButtonBarButtonComponent;
23099
+ exports["ɵhq"] = TransactionButtonBarButtonBaseComponent;
23100
+ exports["ɵhr"] = TransactionSalesPurchaseButtonBarButtonComponent;
23101
+ exports["ɵhs"] = TransactionLineSidePanelPurchaseModule;
23102
+ exports["ɵht"] = DefaultOkCancelButtonsModule;
23103
+ exports["ɵhu"] = DefaultOkCancelButtonsComponent;
23104
+ exports["ɵhv"] = TransactionLineSidePanelPurchaseComponent;
23105
+ exports["ɵhw"] = TransactionLineSidePanelComponent;
23106
+ exports["ɵhx"] = DynamicBaseComponent;
23107
+ exports["ɵhy"] = TransactionLineActionButtonsModule;
23108
+ exports["ɵhz"] = TransactionArticleTextOverviewModule;
23598
23109
  exports["ɵi"] = BusinessObjectCacheManagerService;
23599
- exports["ɵia"] = TransactionLineActionButtonsComponent;
23600
- exports["ɵib"] = TransactionBaseGridComponent;
23601
- exports["ɵic"] = TransactionGridBaseComponent;
23602
- exports["ɵid"] = DialogTransactionLineCommissionCodeModule;
23603
- exports["ɵie"] = DialogTransactionLineCommissionCodeComponent;
23604
- exports["ɵif"] = DialogTransactionLineBaseComponent;
23605
- exports["ɵig"] = DialogTransactionLineWarehouseModule;
23606
- exports["ɵih"] = DialogTransactionLineWarehouseComponent;
23607
- exports["ɵii"] = DialogTransactionLineWarehouseCcModule;
23608
- exports["ɵij"] = DialogTransactionLineWarehouseCcComponent;
23609
- exports["ɵik"] = DialogTransactionLineDeliveryMethodModule;
23610
- exports["ɵil"] = DialogTransactionLineDeliveryMethodComponent;
23611
- exports["ɵim"] = DialogTransactionLineVatModule;
23612
- exports["ɵin"] = DialogTransactionLineVatComponent;
23613
- exports["ɵio"] = DialogTransactionLineDiscountModule;
23614
- exports["ɵip"] = DialogTransactionLinePriceListModule;
23615
- exports["ɵiq"] = DialogTransactionLinePriceListComponent;
23616
- exports["ɵir"] = DialogTransactionLineDiscountComponent;
23617
- exports["ɵis"] = TransactionLinesGridComponent;
23618
- exports["ɵit"] = DiscountModule;
23619
- exports["ɵiu"] = DiscountComponent;
23620
- exports["ɵiv"] = TransactionQuickAccessOverviewModule;
23621
- exports["ɵiw"] = TransactionQuickAccessOverviewComponent;
23622
- exports["ɵix"] = TransactionQuickAccessOrderDeliveryModule;
23623
- exports["ɵiy"] = TransactionSendButtonDialogModule;
23624
- exports["ɵiz"] = TransactionSendButtonDialogComponent;
23110
+ exports["ɵia"] = TransactionArticleTextOverviewComponent;
23111
+ exports["ɵib"] = TransactionLineActionButtonsComponent;
23112
+ exports["ɵic"] = TransactionBaseGridComponent;
23113
+ exports["ɵid"] = TransactionGridBaseComponent;
23114
+ exports["ɵie"] = DialogTransactionLineCommissionCodeModule;
23115
+ exports["ɵif"] = DialogTransactionLineCommissionCodeComponent;
23116
+ exports["ɵig"] = DialogTransactionLineBaseComponent;
23117
+ exports["ɵih"] = DialogTransactionLineWarehouseModule;
23118
+ exports["ɵii"] = DialogTransactionLineWarehouseComponent;
23119
+ exports["ɵij"] = DialogTransactionLineWarehouseCcModule;
23120
+ exports["ɵik"] = DialogTransactionLineWarehouseCcComponent;
23121
+ exports["ɵil"] = DialogTransactionLineDeliveryMethodModule;
23122
+ exports["ɵim"] = DialogTransactionLineDeliveryMethodComponent;
23123
+ exports["ɵin"] = DialogTransactionLineVatModule;
23124
+ exports["ɵio"] = DialogTransactionLineVatComponent;
23125
+ exports["ɵip"] = DialogTransactionLineDiscountModule;
23126
+ exports["ɵiq"] = DialogTransactionLinePriceListModule;
23127
+ exports["ɵir"] = DialogTransactionLinePriceListComponent;
23128
+ exports["ɵis"] = DialogTransactionLineDiscountComponent;
23129
+ exports["ɵit"] = TransactionLinesGridComponent;
23130
+ exports["ɵiu"] = DiscountModule;
23131
+ exports["ɵiv"] = DiscountComponent;
23132
+ exports["ɵiw"] = TransactionQuickAccessOverviewModule;
23133
+ exports["ɵix"] = TransactionQuickAccessOverviewComponent;
23134
+ exports["ɵiy"] = TransactionQuickAccessOrderDeliveryModule;
23135
+ exports["ɵiz"] = TransactionSendButtonDialogModule;
23625
23136
  exports["ɵj"] = CacheField;
23626
- exports["ɵja"] = TransactionQuickAccessOrderDeliveryComponent;
23627
- exports["ɵjb"] = TransactionQuickAccessOrderPurchaseModule;
23628
- exports["ɵjc"] = TransactionQuickAccessOrderPurchaseComponent;
23629
- exports["ɵjd"] = TransactionOrderConfirmationGridModule;
23630
- exports["ɵje"] = TransactionOrderConfirmationGridComponent;
23631
- exports["ɵjf"] = TransactionReceivedGoodsGridModule;
23632
- exports["ɵjg"] = DialogTransactionLineWarehouseLocationModule;
23633
- exports["ɵjh"] = TransactionLineWarehouseLocationModule;
23634
- exports["ɵji"] = TransactionLineWarehouseLocationComponent;
23635
- exports["ɵjj"] = DialogTransactionLineWarehouseLocationComponent;
23636
- exports["ɵjk"] = TransactionLineWarehouseLocationButtonModule;
23637
- exports["ɵjl"] = TransactionLineWarehouseLocationButtonComponent;
23638
- exports["ɵjm"] = TransactionReceivedGoodsGridComponent;
23639
- exports["ɵjn"] = ViewModeButtonsModule;
23640
- exports["ɵjo"] = ViewModeButtonsComponent;
23641
- exports["ɵjp"] = TransactionGridModule;
23642
- exports["ɵjq"] = TransactionGridComponent;
23643
- exports["ɵjr"] = TransactionTileModule;
23644
- exports["ɵjs"] = TransactionTileComponent;
23645
- exports["ɵjt"] = TransactionOverviewLineModule;
23646
- exports["ɵju"] = EditableLabelModule;
23647
- exports["ɵjv"] = EditableLabelComponent;
23648
- exports["ɵjw"] = TransactionBaseLineModule;
23649
- exports["ɵjx"] = TransactionBaseLineComponent;
23650
- exports["ɵjy"] = TransactionLinesLineBaseComponent;
23651
- exports["ɵjz"] = TransactionLineCommissionButtonModule;
23137
+ exports["ɵja"] = TransactionSendButtonDialogComponent;
23138
+ exports["ɵjb"] = TransactionQuickAccessOrderDeliveryComponent;
23139
+ exports["ɵjc"] = TransactionOrderDeliveryService;
23140
+ exports["ɵjd"] = TransactionQuickAccessOrderPurchaseModule;
23141
+ exports["ɵje"] = TransactionQuickAccessOrderPurchaseComponent;
23142
+ exports["ɵjf"] = TransactionOrderConfirmationGridModule;
23143
+ exports["ɵjg"] = TransactionOrderConfirmationGridComponent;
23144
+ exports["ɵjh"] = TransactionReceivedGoodsGridModule;
23145
+ exports["ɵji"] = DialogTransactionLineWarehouseLocationModule;
23146
+ exports["ɵjj"] = TransactionLineWarehouseLocationModule;
23147
+ exports["ɵjk"] = TransactionLineWarehouseLocationComponent;
23148
+ exports["ɵjl"] = DialogTransactionLineWarehouseLocationComponent;
23149
+ exports["ɵjm"] = TransactionLineWarehouseLocationButtonModule;
23150
+ exports["ɵjn"] = TransactionLineWarehouseLocationButtonComponent;
23151
+ exports["ɵjo"] = TransactionReceivedGoodsGridComponent;
23152
+ exports["ɵjp"] = ViewModeButtonsModule;
23153
+ exports["ɵjq"] = ViewModeButtonsComponent;
23154
+ exports["ɵjr"] = TransactionGridModule;
23155
+ exports["ɵjs"] = TransactionGridComponent;
23156
+ exports["ɵjt"] = TransactionTileModule;
23157
+ exports["ɵju"] = TransactionTileComponent;
23158
+ exports["ɵjv"] = TransactionOverviewLineModule;
23159
+ exports["ɵjw"] = EditableLabelModule;
23160
+ exports["ɵjx"] = EditableLabelComponent;
23161
+ exports["ɵjy"] = TransactionBaseLineModule;
23162
+ exports["ɵjz"] = TransactionBaseLineComponent;
23652
23163
  exports["ɵk"] = SelectMultipleParameterizedCacheService;
23653
- exports["ɵka"] = TransactionLineCommissionButtonComponent;
23654
- exports["ɵkb"] = TransactionLineWarehouseButtonModule;
23655
- exports["ɵkc"] = TransactionLineWarehouseButtonComponent;
23656
- exports["ɵkd"] = TransactionLineDeliveryButtonModule;
23657
- exports["ɵke"] = TransactionLineDeliveryButtonComponent;
23658
- exports["ɵkf"] = TransactionLineDeliveryDateButtonModule;
23659
- exports["ɵkg"] = TransactionLineDeliveryDateButtonComponent;
23660
- exports["ɵkh"] = TransactionLineAmountModule;
23661
- exports["ɵki"] = TransactionLineAmountComponent;
23662
- exports["ɵkj"] = TransactionOverviewLineComponent;
23663
- exports["ɵkk"] = TransactionOrderDeliveryLineModule;
23664
- exports["ɵkl"] = TransactionOrderDeliveryLineComponent;
23665
- exports["ɵkm"] = TransactionReceiveGoodsLineModule;
23666
- exports["ɵkn"] = TransactionReceiveGoodsLineComponent;
23667
- exports["ɵko"] = TransactionPurchaseLineModule;
23668
- exports["ɵkp"] = TransactionLineSupplierButtonModule;
23669
- exports["ɵkq"] = DialogTransactionLineSupplierModule;
23670
- exports["ɵkr"] = DialogTransactionLineSupplierComponent;
23671
- exports["ɵks"] = TransactionLineSupplierButtonComponent;
23672
- exports["ɵkt"] = TransactionPurchaseLineComponent;
23673
- exports["ɵku"] = TransactionSearchResultModule;
23674
- exports["ɵkv"] = TransactionSearchSalesOrderTileModule;
23675
- exports["ɵkw"] = TransactionSearchSalesOrderTileComponent;
23676
- exports["ɵkx"] = TransactionSearchTileBaseComponent;
23677
- exports["ɵky"] = TransactionSearchPurchaseOrderTileModule;
23678
- exports["ɵkz"] = TransactionSearchPurchaseOrderTileComponent;
23164
+ exports["ɵka"] = TransactionLinesLineBaseComponent;
23165
+ exports["ɵkb"] = TransactionLineCommissionButtonModule;
23166
+ exports["ɵkc"] = TransactionLineCommissionButtonComponent;
23167
+ exports["ɵkd"] = TransactionLineWarehouseButtonModule;
23168
+ exports["ɵke"] = TransactionLineWarehouseButtonComponent;
23169
+ exports["ɵkf"] = TransactionLineDeliveryButtonModule;
23170
+ exports["ɵkg"] = TransactionLineDeliveryButtonComponent;
23171
+ exports["ɵkh"] = TransactionLineDeliveryDateButtonModule;
23172
+ exports["ɵki"] = TransactionLineDeliveryDateButtonComponent;
23173
+ exports["ɵkj"] = TransactionLineAmountModule;
23174
+ exports["ɵkk"] = TransactionLineAmountComponent;
23175
+ exports["ɵkl"] = TransactionOverviewLineComponent;
23176
+ exports["ɵkm"] = TransactionOrderDeliveryLineModule;
23177
+ exports["ɵkn"] = TransactionOrderDeliveryLineComponent;
23178
+ exports["ɵko"] = TransactionReceiveGoodsLineModule;
23179
+ exports["ɵkp"] = TransactionReceiveGoodsLineComponent;
23180
+ exports["ɵkq"] = TransactionPurchaseLineModule;
23181
+ exports["ɵkr"] = TransactionLineSupplierButtonModule;
23182
+ exports["ɵks"] = DialogTransactionLineSupplierModule;
23183
+ exports["ɵkt"] = DialogTransactionLineSupplierComponent;
23184
+ exports["ɵku"] = TransactionLineSupplierButtonComponent;
23185
+ exports["ɵkv"] = TransactionPurchaseLineComponent;
23186
+ exports["ɵkw"] = QuickSendButtonModule;
23187
+ exports["ɵkx"] = QuickSendButtonComponent;
23188
+ exports["ɵky"] = TransactionSearchResultModule;
23189
+ exports["ɵkz"] = TransactionSearchSalesOrderTileModule;
23679
23190
  exports["ɵl"] = ErrorService;
23680
- exports["ɵla"] = TransactionSearchSalesOrderGridModule;
23681
- exports["ɵlb"] = TransactionSearchSalesOrderGridComponent;
23682
- exports["ɵlc"] = TransactionSearchGridBaseComponent;
23683
- exports["ɵld"] = TransactionSearchPurchaseOrderGridModule;
23684
- exports["ɵle"] = TransactionSearchPurchaseOrderGridComponent;
23685
- exports["ɵlf"] = TransactionSearchHeaderModule;
23686
- exports["ɵlg"] = TransactionSearchHeaderComponent;
23687
- exports["ɵlh"] = TransactionSearchGridModule;
23688
- exports["ɵli"] = TransactionSearchGridComponent;
23689
- exports["ɵlj"] = TransactionSearchTileModule;
23690
- exports["ɵlk"] = TransactionSearchTileComponent;
23691
- exports["ɵll"] = TransactionSearchResultComponent;
23692
- exports["ɵlm"] = TransactionSalesOrderFilterModule;
23693
- exports["ɵln"] = TransactionSalesOrderFilterContentOrderModule;
23694
- exports["ɵlo"] = TransactionFilterItemModule;
23695
- exports["ɵlp"] = TransactionFilterItemComponent;
23696
- exports["ɵlq"] = TransactionSalesOrderFilterContentOrderComponent;
23697
- exports["ɵlr"] = TransactionFilterContentBaseComponent;
23698
- exports["ɵls"] = FilterRequestService;
23699
- exports["ɵlt"] = TransactionSalesOrderFilterContentLogisticsModule;
23700
- exports["ɵlu"] = TransactionFilterHistoricStateModule;
23701
- exports["ɵlv"] = TransactionFilterHistoricStateComponent;
23702
- exports["ɵlw"] = TransactionSalesOrderFilterContentLogisticsComponent;
23703
- exports["ɵlx"] = TransactionSalesOrderFilterContentArticleModule;
23704
- exports["ɵly"] = TransactionSalesOrderFilterContentArticleComponent;
23705
- exports["ɵlz"] = TransactionSalesOrderFilterComponent;
23191
+ exports["ɵla"] = TransactionSearchSalesOrderTileComponent;
23192
+ exports["ɵlb"] = TransactionSearchTileBaseComponent;
23193
+ exports["ɵlc"] = TransactionSearchPurchaseOrderTileModule;
23194
+ exports["ɵld"] = TransactionSearchPurchaseOrderTileComponent;
23195
+ exports["ɵle"] = TransactionSearchSalesOrderGridModule;
23196
+ exports["ɵlf"] = TransactionSearchSalesOrderGridComponent;
23197
+ exports["ɵlg"] = TransactionSearchGridBaseComponent;
23198
+ exports["ɵlh"] = TransactionSearchPurchaseOrderGridModule;
23199
+ exports["ɵli"] = TransactionSearchPurchaseOrderGridComponent;
23200
+ exports["ɵlj"] = TransactionSearchHeaderModule;
23201
+ exports["ɵlk"] = TransactionSearchHeaderComponent;
23202
+ exports["ɵll"] = TransactionSearchGridModule;
23203
+ exports["ɵlm"] = TransactionSearchGridComponent;
23204
+ exports["ɵln"] = TransactionSearchTileModule;
23205
+ exports["ɵlo"] = TransactionSearchTileComponent;
23206
+ exports["ɵlp"] = TransactionSearchResultComponent;
23207
+ exports["ɵlq"] = TransactionSalesOrderFilterModule;
23208
+ exports["ɵlr"] = TransactionSalesOrderFilterContentOrderModule;
23209
+ exports["ɵls"] = TransactionFilterItemModule;
23210
+ exports["ɵlt"] = TransactionFilterItemComponent;
23211
+ exports["ɵlu"] = TransactionSalesOrderFilterContentOrderComponent;
23212
+ exports["ɵlv"] = TransactionFilterContentBaseComponent;
23213
+ exports["ɵlw"] = FilterRequestService;
23214
+ exports["ɵlx"] = TransactionSalesOrderFilterContentLogisticsModule;
23215
+ exports["ɵly"] = TransactionFilterHistoricStateModule;
23216
+ exports["ɵlz"] = TransactionFilterHistoricStateComponent;
23706
23217
  exports["ɵm"] = SelectSingleCacheService;
23707
- exports["ɵma"] = TransactionFilterBaseComponent;
23708
- exports["ɵmb"] = TransactionPurchaseOrderFilterModule;
23709
- exports["ɵmc"] = TransactionPurchaseOrderFilterContentOrderModule;
23710
- exports["ɵmd"] = TransactionPurchaseOrderFilterContentOrderComponent;
23711
- exports["ɵme"] = TransactionPurchaseOrderFilterContentLogisticsModule;
23712
- exports["ɵmf"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
23713
- exports["ɵmg"] = TransactionPurchaseOrderFilterContentArticleModule;
23714
- exports["ɵmh"] = TransactionPurchaseOrderFilterContentArticleComponent;
23715
- exports["ɵmi"] = TransactionPurchaseOrderFilterComponent;
23716
- exports["ɵmj"] = TransactionFilterModule;
23717
- exports["ɵmk"] = TransactionFilterComponent;
23218
+ exports["ɵma"] = TransactionSalesOrderFilterContentLogisticsComponent;
23219
+ exports["ɵmb"] = TransactionSalesOrderFilterContentArticleModule;
23220
+ exports["ɵmc"] = TransactionSalesOrderFilterContentArticleComponent;
23221
+ exports["ɵmd"] = TransactionSalesOrderFilterComponent;
23222
+ exports["ɵme"] = TransactionFilterBaseComponent;
23223
+ exports["ɵmf"] = TransactionPurchaseOrderFilterModule;
23224
+ exports["ɵmg"] = TransactionPurchaseOrderFilterContentOrderModule;
23225
+ exports["ɵmh"] = TransactionPurchaseOrderFilterContentOrderComponent;
23226
+ exports["ɵmi"] = TransactionPurchaseOrderFilterContentLogisticsModule;
23227
+ exports["ɵmj"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
23228
+ exports["ɵmk"] = TransactionPurchaseOrderFilterContentArticleModule;
23229
+ exports["ɵml"] = TransactionPurchaseOrderFilterContentArticleComponent;
23230
+ exports["ɵmm"] = TransactionPurchaseOrderFilterComponent;
23231
+ exports["ɵmn"] = TransactionFilterModule;
23232
+ exports["ɵmo"] = TransactionFilterComponent;
23718
23233
  exports["ɵn"] = ArticleConnectorService;
23719
23234
  exports["ɵo"] = TransactionEventService;
23720
- exports["ɵp"] = CoreModule;
23721
- exports["ɵq"] = ConfirmationDialogModule;
23722
- exports["ɵr"] = PipeModule;
23723
- exports["ɵs"] = AppendPipe;
23724
- exports["ɵt"] = DeliveryTimePipe;
23725
- exports["ɵu"] = DateDurationPipe;
23726
- exports["ɵv"] = LocalizePipe;
23727
- exports["ɵw"] = CoCurrencyPipe;
23728
- exports["ɵx"] = SafeStylePipe;
23729
- exports["ɵy"] = SafeHtmlPipe;
23730
- exports["ɵz"] = ConfirmationDialogComponent;
23235
+ exports["ɵp"] = RelationConnectorService;
23236
+ exports["ɵq"] = CoreModule;
23237
+ exports["ɵr"] = ConfirmationDialogModule;
23238
+ exports["ɵs"] = PipeModule;
23239
+ exports["ɵt"] = AppendPipe;
23240
+ exports["ɵu"] = DeliveryTimePipe;
23241
+ exports["ɵv"] = DateDurationPipe;
23242
+ exports["ɵw"] = LocalizePipe;
23243
+ exports["ɵx"] = CoCurrencyPipe;
23244
+ exports["ɵy"] = SafeStylePipe;
23245
+ exports["ɵz"] = SafeHtmlPipe;
23731
23246
 
23732
23247
  Object.defineProperty(exports, '__esModule', { value: true });
23733
23248