@colijnit/transaction 12.1.9 → 12.1.10

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 (214) hide show
  1. package/bundles/colijnit-transaction.umd.js +2673 -242
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +84 -35
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +85 -36
  6. package/esm2015/lib/assets/dictionary/text.properties.js +39 -1
  7. package/esm2015/lib/component/checkout/checkout.component.js +1 -1
  8. package/esm2015/lib/component/checkout/checkout.module.js +1 -1
  9. package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.component.js +17 -3
  10. package/esm2015/lib/component/core/base/default-ok-cancel-buttons.component.js +41 -0
  11. package/esm2015/lib/component/core/base/transaction-base.component.js +7 -9
  12. package/esm2015/lib/component/core/core.module.js +6 -3
  13. package/esm2015/lib/component/core/enum/app-popup-type.enum.js +8 -0
  14. package/esm2015/lib/component/order-confirmation-grid.component/order-confirmation-grid.component.js +70 -0
  15. package/esm2015/lib/component/order-confirmation-grid.component/order-confirmation-grid.module.js +29 -0
  16. package/esm2015/lib/component/order-grid/order-grid.component.js +99 -0
  17. package/esm2015/lib/component/order-grid/order-grid.module.js +28 -0
  18. package/esm2015/lib/component/stepper/stepper.component.js +1 -1
  19. package/esm2015/lib/component/tile/tile.component.js +1 -1
  20. package/esm2015/lib/component/transaction/transaction.component.js +72 -14
  21. package/esm2015/lib/component/transaction/transaction.module.js +10 -2
  22. package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.component.js +46 -0
  23. package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.module.js +27 -0
  24. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +28 -0
  25. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.js +27 -0
  26. package/esm2015/lib/component/transaction-header/transaction-header.component.js +14 -4
  27. package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.component.js +5 -2
  28. package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.component.js +47 -0
  29. package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.module.js +27 -0
  30. package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.js +36 -0
  31. package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.module.js +23 -0
  32. package/esm2015/lib/component/transaction-line/transaction-line.component.js +11 -7
  33. package/esm2015/lib/component/transaction-line/transaction-line.module.js +2 -4
  34. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +49 -0
  35. package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.module.js +23 -0
  36. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +40 -0
  37. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.module.js +23 -0
  38. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +48 -0
  39. package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.module.js +23 -0
  40. package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.component.js +50 -0
  41. package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.module.js +23 -0
  42. package/esm2015/lib/component/transaction-line-fields/transaction-line-fields-base.component.js +22 -0
  43. package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.component.js +50 -0
  44. package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.module.js +23 -0
  45. package/esm2015/lib/component/transaction-line-fields/transaction-line-price-list.component.js +49 -0
  46. package/esm2015/lib/component/transaction-line-fields/transaction-line-price-list.module.js +23 -0
  47. package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +49 -0
  48. package/esm2015/lib/component/transaction-line-fields/transaction-line-price.module.js +23 -0
  49. package/esm2015/lib/component/transaction-line-fields/transaction-line-quantity.component.js +36 -0
  50. package/esm2015/lib/component/transaction-line-fields/transaction-line-quantity.module.js +23 -0
  51. package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.js +50 -0
  52. package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.module.js +23 -0
  53. package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.component.js +48 -0
  54. package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.module.js +23 -0
  55. package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.component.js +50 -0
  56. package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.module.js +23 -0
  57. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +49 -0
  58. package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.module.js +23 -0
  59. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +49 -0
  60. package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.module.js +24 -0
  61. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +57 -129
  62. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +14 -8
  63. package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +134 -0
  64. package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.js +56 -0
  65. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +7 -1
  66. package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +16 -11
  67. package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.module.js +4 -3
  68. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.js +29 -0
  69. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.component.js +65 -0
  70. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.module.js +26 -0
  71. package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +39 -0
  72. package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +25 -0
  73. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +28 -0
  74. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.js +27 -0
  75. package/esm2015/lib/enum/icon.enum.js +5 -1
  76. package/esm2015/lib/enum/status-type.enum.js +5 -0
  77. package/esm2015/lib/enum/tab-category.enum.js +10 -0
  78. package/esm2015/lib/model/icon-svg.js +6 -2
  79. package/esm2015/lib/pipe/delivery-time.pipe.js +4 -1
  80. package/esm2015/lib/service/dialog.service.js +14 -3
  81. package/esm2015/lib/service/ione-connector-adapter.service.js +255 -10
  82. package/esm2015/lib/service/pending-reason.service.js +20 -9
  83. package/esm2015/lib/service/transaction.service.js +187 -29
  84. package/fesm2015/colijnit-transaction.js +2477 -290
  85. package/fesm2015/colijnit-transaction.js.map +1 -1
  86. package/lib/component/confirmation-dialog/confirmation-dialog.component.d.ts +4 -0
  87. package/lib/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
  88. package/lib/component/core/enum/app-popup-type.enum.d.ts +6 -0
  89. package/lib/component/core/image-display/style/_layout.scss +2 -4
  90. package/lib/component/order-confirmation-create/style/_layout.scss +5 -0
  91. package/lib/component/order-confirmation-create/style/_material-definition.scss +1 -0
  92. package/lib/component/order-confirmation-create/style/_theme.scss +5 -0
  93. package/lib/component/order-confirmation-create/style/material.scss +4 -0
  94. package/lib/component/order-confirmation-grid.component/order-confirmation-grid.component.d.ts +15 -0
  95. package/lib/component/order-confirmation-grid.component/order-confirmation-grid.module.d.ts +2 -0
  96. package/lib/component/order-confirmation-grid.component/style/_layout.scss +5 -0
  97. package/lib/component/order-confirmation-grid.component/style/_material-definition.scss +1 -0
  98. package/lib/component/order-confirmation-grid.component/style/_theme.scss +5 -0
  99. package/lib/component/order-confirmation-grid.component/style/material.scss +4 -0
  100. package/lib/component/order-grid/order-grid.component.d.ts +23 -0
  101. package/lib/component/order-grid/order-grid.module.d.ts +2 -0
  102. package/lib/component/order-grid/style/_layout.scss +21 -0
  103. package/lib/component/order-grid/style/_material-definition.scss +2 -0
  104. package/lib/component/order-grid/style/_theme.scss +6 -0
  105. package/lib/component/order-grid/style/material.scss +4 -0
  106. package/lib/component/transaction/style/_layout.scss +6 -0
  107. package/lib/component/transaction/style/material.scss +3 -0
  108. package/lib/component/transaction/transaction.component.d.ts +16 -1
  109. package/lib/component/transaction-commit-bar/style/_layout.scss +16 -0
  110. package/lib/component/transaction-commit-bar/style/_material-definition.scss +1 -0
  111. package/lib/component/transaction-commit-bar/style/_theme.scss +7 -0
  112. package/lib/component/transaction-commit-bar/style/material.scss +4 -0
  113. package/lib/component/transaction-commit-bar/transaction-commit-bar.component.d.ts +11 -0
  114. package/lib/component/transaction-commit-bar/transaction-commit-bar.module.d.ts +2 -0
  115. package/lib/component/transaction-confirmation-history/style/_layout.scss +7 -0
  116. package/lib/component/transaction-confirmation-history/style/_material-definition.scss +1 -0
  117. package/lib/component/transaction-confirmation-history/style/_theme.scss +7 -0
  118. package/lib/component/transaction-confirmation-history/style/material.scss +4 -0
  119. package/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.d.ts +5 -0
  120. package/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.d.ts +2 -0
  121. package/lib/component/transaction-header/transaction-header.component.d.ts +4 -1
  122. package/lib/component/transaction-history-grid/style/_layout.scss +7 -0
  123. package/lib/component/{service-order/transaction-sidebar/transaction-line-accordion.component.scss → transaction-history-grid/style/_material-definition.scss} +0 -0
  124. package/lib/component/transaction-history-grid/style/_theme.scss +7 -0
  125. package/lib/component/transaction-history-grid/style/material.scss +4 -0
  126. package/lib/component/transaction-history-grid/transaction-history-grid.component.d.ts +14 -0
  127. package/lib/component/transaction-history-grid/transaction-history-grid.module.d.ts +2 -0
  128. package/lib/component/transaction-history-grid-status/style/_layout.scss +28 -0
  129. package/lib/component/{service-order/transaction-edit-article-text/transaction-edit-article-text.component.scss → transaction-history-grid-status/style/_material-definition.scss} +0 -0
  130. package/lib/component/transaction-history-grid-status/style/_theme.scss +7 -0
  131. package/lib/component/transaction-history-grid-status/style/material.scss +4 -0
  132. package/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.d.ts +9 -0
  133. package/lib/component/transaction-history-grid-status/transaction-history-grid-status.module.d.ts +2 -0
  134. package/lib/component/transaction-line/transaction-line.component.d.ts +3 -2
  135. package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +12 -0
  136. package/lib/component/transaction-line-fields/transaction-line-commission-code.module.d.ts +2 -0
  137. package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +7 -0
  138. package/lib/component/transaction-line-fields/transaction-line-delivery-date.module.d.ts +2 -0
  139. package/lib/component/transaction-line-fields/transaction-line-delivery-method.component.d.ts +12 -0
  140. package/lib/component/transaction-line-fields/transaction-line-delivery-method.module.d.ts +2 -0
  141. package/lib/component/transaction-line-fields/transaction-line-discount-amount.component.d.ts +10 -0
  142. package/lib/component/transaction-line-fields/transaction-line-discount-amount.module.d.ts +2 -0
  143. package/lib/component/transaction-line-fields/transaction-line-fields-base.component.d.ts +6 -0
  144. package/lib/component/transaction-line-fields/transaction-line-line-discount.component.d.ts +10 -0
  145. package/lib/component/transaction-line-fields/transaction-line-line-discount.module.d.ts +2 -0
  146. package/lib/component/transaction-line-fields/transaction-line-price-list.component.d.ts +12 -0
  147. package/lib/component/transaction-line-fields/transaction-line-price-list.module.d.ts +2 -0
  148. package/lib/component/transaction-line-fields/transaction-line-price.component.d.ts +10 -0
  149. package/lib/component/transaction-line-fields/transaction-line-price.module.d.ts +2 -0
  150. package/lib/component/transaction-line-fields/transaction-line-quantity.component.d.ts +7 -0
  151. package/lib/component/transaction-line-fields/transaction-line-quantity.module.d.ts +2 -0
  152. package/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.d.ts +10 -0
  153. package/lib/component/transaction-line-fields/transaction-line-quantum-discount.module.d.ts +2 -0
  154. package/lib/component/transaction-line-fields/transaction-line-reference.component.d.ts +10 -0
  155. package/lib/component/transaction-line-fields/transaction-line-reference.module.d.ts +2 -0
  156. package/lib/component/transaction-line-fields/transaction-line-special-discount.component.d.ts +10 -0
  157. package/lib/component/transaction-line-fields/transaction-line-special-discount.module.d.ts +2 -0
  158. package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +12 -0
  159. package/lib/component/transaction-line-fields/transaction-line-vat.module.d.ts +2 -0
  160. package/lib/component/transaction-line-fields/transaction-line-warehouse.component.d.ts +12 -0
  161. package/lib/component/transaction-line-fields/transaction-line-warehouse.module.d.ts +2 -0
  162. package/lib/component/transaction-line-side-panel/style/_layout.scss +38 -21
  163. package/lib/component/transaction-line-side-panel/style/_material-definition.scss +4 -6
  164. package/lib/component/transaction-line-side-panel/style/_theme.scss +3 -1
  165. package/lib/component/transaction-line-side-panel/style/material.scss +5 -0
  166. package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +6 -8
  167. package/lib/component/transaction-line-side-panel-default/style/_layout.scss +29 -0
  168. package/lib/component/transaction-line-side-panel-default/style/_material-definition.scss +10 -0
  169. package/lib/component/transaction-line-side-panel-default/style/_theme.scss +7 -0
  170. package/lib/component/transaction-line-side-panel-default/style/material.scss +4 -0
  171. package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.d.ts +16 -0
  172. package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.d.ts +2 -0
  173. package/lib/component/transaction-lines/transaction-lines.component.d.ts +5 -0
  174. package/lib/component/transaction-lines-grid/transaction-lines-grid.component.d.ts +4 -1
  175. package/lib/component/transaction-nav-bar/style/_layout.scss +13 -0
  176. package/lib/component/transaction-nav-bar/style/_material-definition.scss +1 -0
  177. package/lib/component/transaction-nav-bar/style/_theme.scss +7 -0
  178. package/lib/component/transaction-nav-bar/style/material.scss +4 -0
  179. package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.d.ts +14 -0
  180. package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.scss +23 -0
  181. package/lib/component/transaction-nav-bar/transaction-nav-bar.component.d.ts +18 -0
  182. package/lib/component/transaction-nav-bar/transaction-nav-bar.module.d.ts +2 -0
  183. package/lib/component/transaction-receiving-goods-details/style/_layout.scss +38 -0
  184. package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +1 -0
  185. package/lib/component/transaction-receiving-goods-details/style/_theme.scss +7 -0
  186. package/lib/component/transaction-receiving-goods-details/style/material.scss +4 -0
  187. package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +6 -0
  188. package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.d.ts +2 -0
  189. package/lib/component/transaction-receiving-goods-history/style/_layout.scss +7 -0
  190. package/lib/component/transaction-receiving-goods-history/style/_material-definition.scss +1 -0
  191. package/lib/component/transaction-receiving-goods-history/style/_theme.scss +7 -0
  192. package/lib/component/transaction-receiving-goods-history/style/material.scss +4 -0
  193. package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +5 -0
  194. package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.d.ts +2 -0
  195. package/lib/enum/icon.enum.d.ts +5 -1
  196. package/lib/enum/status-type.enum.d.ts +3 -0
  197. package/lib/enum/tab-category.enum.d.ts +8 -0
  198. package/lib/service/dialog.service.d.ts +1 -0
  199. package/lib/service/ione-connector-adapter.service.d.ts +24 -7
  200. package/lib/service/pending-reason.service.d.ts +3 -2
  201. package/lib/service/transaction.service.d.ts +22 -9
  202. package/package.json +1 -1
  203. package/lib/component/sell-order/sell-order-side-panel/sell-order-side-panel.component.scss +0 -49
  204. package/lib/component/sell-order/sell-order.component.scss +0 -15
  205. package/lib/component/service-order/service-order.component.scss +0 -154
  206. package/lib/component/service-order/summary/transaction-delivery-summary.component.scss +0 -22
  207. package/lib/component/service-order/summary/transaction-summary-block.component.scss +0 -109
  208. package/lib/component/service-order/transaction-manager/transaction-manager.component.scss +0 -54
  209. package/lib/component/service-order/transaction-order-line-view/transaction-order-line-view.component.scss +0 -90
  210. package/lib/component/service-order/transaction-order-lines/transaction-order-lines.component.scss +0 -85
  211. package/lib/component/service-order/transaction-order-totals/transaction-order-totals.component.scss +0 -26
  212. package/lib/component/service-order/transaction-relation/transaction-relation-edit.component.scss +0 -24
  213. package/lib/component/service-order/transaction-sidebar/transaction-sidebar-right.component.scss +0 -17
  214. package/lib/component/service-order/warehouse/warehouse.component.scss +0 -54
@@ -9,7 +9,6 @@ import { PendingReasonType } from '@colijnit/transactionapi/build/enum/pending-r
9
9
  import { BehaviorSubject, throwError } from 'rxjs';
10
10
  import { AddressType } from '@colijnit/transactionapi/build/enum/address-type.enum';
11
11
  import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
12
- import { ResolvePendingLineReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
13
12
  import { CustomerFullObject } from '@colijnit/transactionapi/build/model/customer-full-object.bo';
14
13
  import { RelationPrivacySetting } from '@colijnit/transactionapi/build/model/relation-privacy-setting.bo';
15
14
  import { DeliveryMethod } from '@colijnit/transactionapi/build/model/delivery-method.bo';
@@ -17,7 +16,6 @@ import { GetPostalCodeRetrievalOutputParams } from '@colijnit/transactionapi/bui
17
16
  import { RelationListObject } from '@colijnit/transactionapi/build/model/relation-list-object.bo';
18
17
  import { CoDomainValue } from '@colijnit/transactionapi/build/model/co-domain-value.bo';
19
18
  import { ArticleFullObject } from '@colijnit/transactionapi/build/model/article-full-object';
20
- import { LineOperationResponse } from '@colijnit/transactionapi/build/model/line-operation-response.bo';
21
19
  import { Transaction } from '@colijnit/transactionapi/build/transaction';
22
20
  import { notNill } from '@colijnit/transactionapi/build/utils/function/not-nill.function';
23
21
  import { ObjectUtils } from '@colijnit/transactionapi/build/utils/object-utils';
@@ -35,9 +33,12 @@ import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/tran
35
33
  import { ImageUtils } from '@colijnit/transactionapi/build/utils/image-utils';
36
34
  import { TransactionLineInfo } from '@colijnit/transactionapi/build/model/transaction-line-info.bo';
37
35
  import { CashRegister } from '@colijnit/transactionapi/build/model/cash-register';
36
+ import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
37
+ import { Vat } from '@colijnit/transactionapi/build/model/vat';
38
38
  import { SetTransactionDeliveryOptionsRequest } from '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo';
39
39
  import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
40
- import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, InputTextComponent, CollapsibleModule, InputDatePickerModule, InputNumberPickerModule, PriceDisplayPipeModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, ColumnAlign, SimpleGridModule } from '@colijnit/corecomponents_v12';
40
+ import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
41
+ import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, SimpleGridModule, InputTextComponent } from '@colijnit/corecomponents_v12';
41
42
  import { FlexModule } from '@angular/flex-layout';
42
43
  import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
43
44
  import { ContactOption } from '@colijnit/transactionapi/build/model/contact-option.bo';
@@ -55,6 +56,7 @@ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
55
56
  import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
56
57
  import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
57
58
  import { RelationRequest } from '@colijnit/transactionapi/build/model/relation-request';
59
+ import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
58
60
 
59
61
  var LanguageCode;
60
62
  (function (LanguageCode) {
@@ -151,6 +153,7 @@ class Dictionary {
151
153
  "ALWAYS_SHOW_LOGISTICS_POPUP": "Controleer magazijn en commissiecode",
152
154
  "ARTICLE": "Artikel",
153
155
  "ARTICLE_DESCRIPTION": "Artikelomschrijving",
156
+ "ARTICLE_IMAGE": "Artikel afbeelding",
154
157
  "ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
155
158
  "ARTICLE_NR": "Artikelnummer",
156
159
  "ARTICLE_NR_SUPPLIER": "Artikelnr leverancier",
@@ -162,6 +165,7 @@ class Dictionary {
162
165
  "AVAILABLE_STOCK": "Bechikbaar",
163
166
  "BACK": "Terug",
164
167
  "BACK_TO_STOCK_LINES": "Terug naar voorraadregels",
168
+ "BATCH_NUMBER": "Batchnummer",
165
169
  "BRANCH": "Filiaal",
166
170
  "BUSINESS_RULE_DISCOUNT": "Business rule korting",
167
171
  "CANCEL": "Annuleren",
@@ -174,6 +178,9 @@ class Dictionary {
174
178
  "COMPANY": "Bedrijf",
175
179
  "COMPANY_NAME": "Bedrijfsnaam",
176
180
  "COMMISSION_CODE": "Commisiecode",
181
+ "CONFIRMED": "Bevestigd",
182
+ "CONFIRMATION": "Bevestiging",
183
+ "CONFIRMED_DATE": "Bevestigde datum",
177
184
  "CONTACT_DETAILS": "Contactgegevens",
178
185
  "CONTINUE": "Volgende",
179
186
  "CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "U heeft gekozen voor het bestellen van artikelen terwijl er nog voorraad aanwezig is. Wilt u verdergaan?",
@@ -184,6 +191,7 @@ class Dictionary {
184
191
  "CREATE_ACCOUNT_IN_2_MIN": "Maak binnen 2 minuten een account aan.",
185
192
  "CUSTOMER": "Klant",
186
193
  "CUSTOMER_GROUP": "Klantgroep",
194
+ "DATE": "Datum",
187
195
  "DATE_OF_BIRTH": "Geboortedatum",
188
196
  "DELETE_TRANSACTION_LINE": "verwijderen",
189
197
  "DELETE_TRANSACTION_LINE_HINT": "Verwijderen transactieregel",
@@ -226,27 +234,33 @@ class Dictionary {
226
234
  "FABRICATION_COST_LINE_TOTAL": "Fabricageprijs regeltotaal",
227
235
  "FEMALE": "Vrouw",
228
236
  "FIRST_NAME": "Voornaam",
237
+ "GROSS_PRICE": "Bruto prijs",
229
238
  "GOOD_DESCRIPTION": "Artikelomschrijving",
230
239
  "HOUSE_NO": "Huisnummer",
231
240
  "HOUSE_NO_ADDITION": "Huisnummer toevoeging",
241
+ "IN_ORDER": "In bestelling",
232
242
  "IN_OUT_COLLECTION": "In-uit-collectie",
233
243
  "INVITE_TO_ACCOUNT": "Uitnodigen voor account",
234
244
  "INVOICE_ADDRESS": "Factuuradres",
235
245
  "INVOICE_ADDRESS_ADD": "Factuuradres toevoegen",
236
246
  "INVOICE_ADDRESS_CHANGE": "Factuuradres wijzigen",
247
+ "INVOICE_CHECK": "Factuurcontrole",
237
248
  "LAST_EDITED_DATE": "Datum laatste wijziging",
238
249
  "LAST_EDITED_USER": "Gebruiker laatste wijziging",
239
250
  "LAST_NAME": "Achternaam",
240
251
  "LINE_NEEDS_COMMISSION_CODE": "De commisiecode ontbreekt. Vul de commissiecode in.",
252
+ "LOCATION": "Locatie",
241
253
  "LOGIN": "Inloggen",
242
254
  "LOGIN_DETAILS": "Inloggegevens",
243
255
  "LOGISTICS_AND_PLANNING": "Logistiek & planning",
244
256
  "MALE": "Man",
245
257
  "MARKETING": "Marketing",
258
+ "MENU": "Menu",
246
259
  "MODIFICATION_TIME": "Bewerkingstijd",
247
260
  "NAME": "Naam",
248
261
  "NET_LINE_TOTAL": "Regeltotaal",
249
262
  "NETT": "Netto",
263
+ "NETTO_PRICE": "Netto prijs",
250
264
  "NEW_AT": "Nieuw bij ",
251
265
  "NEW_LOCATION": "Nieuwe locatie",
252
266
  "NO_IMAGE": "Geen afbeelding",
@@ -266,6 +280,7 @@ class Dictionary {
266
280
  "OTHER": "Overig",
267
281
  "OVERVIEW": "Overzicht",
268
282
  "OWN_REFERENCE": "Eigen referentie",
283
+ "PACKING_SLIP": "Pakbon",
269
284
  "PAID_DOWN2": "Aanbetaald",
270
285
  "PART_DELIVERIES": "Deelleveringen",
271
286
  "PASSWORD": "Wachtwoord",
@@ -294,6 +309,9 @@ class Dictionary {
294
309
  "QUANTITY_CANNOT_BE_LESS_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen.",
295
310
  "QUANTITY_CANNOT_BE_MORE_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen",
296
311
  "QUANTUM_DISCOUNT": "Kwantumkorting",
312
+ "RECEIPT_DETAILS": "Ontvangst details",
313
+ "RECEIVED": "Ontvangst",
314
+ "RECEIVED_DATE": "Ontvangst datum",
297
315
  "REFERENCE": "Referentie",
298
316
  "REFERENCE_RELATION": "Ref. relatie",
299
317
  "REMARKS": "Opmerkingen",
@@ -301,6 +319,7 @@ class Dictionary {
301
319
  "SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
302
320
  "SAVE": "Opslaan",
303
321
  "SELECT": "Selecteren",
322
+ "SERIAL_NUMBER": "Serienummer",
304
323
  "SERVICE_NUMBER": "Servicenummer",
305
324
  "SERVICE_REQUEST_DATE": "Datum aanvraag",
306
325
  "SERVICE_STATE": "Service status",
@@ -328,10 +347,12 @@ class Dictionary {
328
347
  "TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
329
348
  "TRANSACTION_SUM_I": "Ordertotaal incl. BTW",
330
349
  "TRANSACTION_TOTAL": "Transactie totaal",
350
+ "TRANSPORT": "Transport",
331
351
  "TRANSPORT_COST": "Transportkosten",
332
352
  "TRANSPORT_COST_LINE_TOTAL": "Transportkosten regeltotaal",
333
353
  "UNKNOWN": "Onbekend",
334
354
  "UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
355
+ "USER": "Gebruiker",
335
356
  "VAT": "Btw",
336
357
  "VAT_AMOUNT": "BTW-bedrag",
337
358
  "VALUE": "Waarde",
@@ -364,6 +385,7 @@ class Dictionary {
364
385
  "ALWAYS_SHOW_LOGISTICS_POPUP": "Check warehouse and commissioncode",
365
386
  "ARTICLE": "Article",
366
387
  "ARTICLE_DESCRIPTION": "Article description",
388
+ "ARTICLE_IMAGE": "Article image",
367
389
  "ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
368
390
  "ARTICLE_NR": "Article number",
369
391
  "ARTICLE_NR_SUPPLIER": "Artikelnr supplier",
@@ -373,6 +395,7 @@ class Dictionary {
373
395
  "ASSEMBLY_TIME": "Assembly time",
374
396
  "AMOUNT": "Amount",
375
397
  "BACK": "Back",
398
+ "BATCH_NUMBER": "Batchnumber",
376
399
  "BRANCH": "Branch",
377
400
  "BUSINESS_RULE_DISCOUNT": "Business rule discount",
378
401
  "CANCEL": "Cancel",
@@ -385,8 +408,11 @@ class Dictionary {
385
408
  "COMPANY": "Company",
386
409
  "COMPANY_NAME": "Company name",
387
410
  "COMMISSION_CODE": "Commission code",
411
+ "CONFIRMATION": "Confirmation",
412
+ "CONFIRMED_DATE": "Confirmed date",
388
413
  "CONTACT_DETAILS": "Contactdetails",
389
414
  "CONTINUE": "Next",
415
+ "CONFIRMED": "Confirmed",
390
416
  "CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "You have chosen to order articles while stock is still available. Do you wish to proceed?",
391
417
  "CONTINUE_WITHOUT_ACCOUNT": "Continue without an account",
392
418
  "COSTS": "Costs",
@@ -395,6 +421,7 @@ class Dictionary {
395
421
  "CREATE_ACCOUNT_IN_2_MIN": "Create an account in 2 minutes.",
396
422
  "CUSTOMER": "Customer",
397
423
  "CUSTOMER_GROUP": "Customergroup",
424
+ "DATE": "Date",
398
425
  "DATE_OF_BIRTH": "Date of birth",
399
426
  "DELETE_TRANSACTION_LINE": "Delete transaction line verwijderen?",
400
427
  "DELETE_TRANSACTION_LINE_HINT": "Delete transaction line",
@@ -436,26 +463,32 @@ class Dictionary {
436
463
  "FEMALE": "Female",
437
464
  "FIRST_NAME": "First name",
438
465
  "GOOD_DESCRIPTION": "Article description",
466
+ "GROSS_PRICE": "Gross price",
439
467
  "HOUSE_NO": "Housenumber",
440
468
  "HOUSE_NO_ADDITION": "Housenumber addition",
469
+ "IN_ORDER": "In order",
441
470
  "IN_OUT_COLLECTION": "In-out-collection",
442
471
  "INVITE_TO_ACCOUNT": "Invite account",
443
472
  "INVOICE_ADDRESS": "Invoice address",
444
473
  "INVOICE_ADDRESS_ADD": "Add invoice address",
445
474
  "INVOICE_ADDRESS_CHANGE": "Change invoice address",
475
+ "INVOICE_CHECK": "Invoice check",
446
476
  "LAST_EDITED_DATE": "Date last mutation",
447
477
  "LAST_EDITED_USER": "User last mutation",
448
478
  "LAST_NAME": "Last name",
449
479
  "LINE_NEEDS_COMMISSION_CODE": "Line needs a commission code",
480
+ "LOCATION": "Location",
450
481
  "LOGIN": "Login",
451
482
  "LOGIN_DETAILS": "Login details",
452
483
  "LOGISTICS_AND_PLANNING": "Logistics & planning",
453
484
  "MALE": "Male",
454
485
  "MARKETING": "Marketing",
486
+ "MENU": "Menu",
455
487
  "MODIFICATION_TIME": "Modification time",
456
488
  "NAME": "Name",
457
489
  "NET_LINE_TOTAL": "Linetotal",
458
490
  "NETT": "Net",
491
+ "NETTO_PRICE": "Netto price",
459
492
  "NEW_AT": "New at ",
460
493
  "NEW_LOCATION": "New location",
461
494
  "NO_IMAGE": "No image available",
@@ -475,6 +508,7 @@ class Dictionary {
475
508
  "OTHER": "Other",
476
509
  "OVERVIEW": "Overview",
477
510
  "OWN_REFERENCE": "Own reference",
511
+ "PACKING_SLIP": "Packing slip",
478
512
  "PAID_DOWN2": "Prepaid",
479
513
  "PART_DELIVERIES": "Partial deliveries",
480
514
  "PASSWORD": "Password",
@@ -494,6 +528,9 @@ class Dictionary {
494
528
  "PRODUCT_TYPE": "Product type",
495
529
  "QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Quantity cannot be zero or empty",
496
530
  "QUANTUM_DISCOUNT": "Quantum discount",
531
+ "RECEIPT_DETAILS": "Receipt details",
532
+ "RECEIVED": "Received",
533
+ "RECEIVED_DATE": "Received date",
497
534
  "REFERENCE": "Reference",
498
535
  "REFERENCE_RELATION": "Ref. relation",
499
536
  "REMARKS": "Remarks",
@@ -501,6 +538,7 @@ class Dictionary {
501
538
  "SAME_AS_DELIVERY": "Same as delivery address",
502
539
  "SAVE": "Save",
503
540
  "SELECT": "Select",
541
+ "SERIAL_NUMBER": "Serial number",
504
542
  "SERVICE_NUMBER": "Service number",
505
543
  "SERVICE_REQUEST_DATE": "Service request data",
506
544
  "SERVICE_STATE": "Service state",
@@ -527,10 +565,12 @@ class Dictionary {
527
565
  "TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
528
566
  "TRANSACTION_SUM_I": "Ordertotal incl VAT",
529
567
  "TRANSACTION_TOTAL": "Transaction total",
568
+ "TRANSPORT": "Transport",
530
569
  "TRANSPORT_COST": "Transportcosts",
531
570
  "TRANSPORT_COST_LINE_TOTAL": "Transportcosts linetotal",
532
571
  "UNKNOWN": "unknown",
533
572
  "UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
573
+ "USER": "User",
534
574
  "VALUE": "Value",
535
575
  "VAT": "VAT",
536
576
  "VAT_AMOUNT": "VAT amount",
@@ -1381,7 +1421,7 @@ class IOneConnectorAdapterService {
1381
1421
  return new Promise((resolve, reject) => {
1382
1422
  return this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then((result) => {
1383
1423
  if (result.validationResult && result.validationResult.success) {
1384
- if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
1424
+ if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
1385
1425
  return resolve(ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
1386
1426
  }
1387
1427
  else {
@@ -1391,8 +1431,8 @@ class IOneConnectorAdapterService {
1391
1431
  }
1392
1432
  return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
1393
1433
  }
1394
- else {
1395
- reject(result.validationMessagesAsString);
1434
+ else { // no image
1435
+ resolve("");
1396
1436
  }
1397
1437
  }
1398
1438
  }
@@ -1583,6 +1623,28 @@ class IOneConnectorAdapterService {
1583
1623
  });
1584
1624
  });
1585
1625
  }
1626
+ getPriceLists(code) {
1627
+ return __awaiter(this, void 0, void 0, function* () {
1628
+ const response = yield this.connector.getPriceLists(code);
1629
+ if (response.validationResult && response.validationResult.success) {
1630
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, response.resultObjects);
1631
+ }
1632
+ else {
1633
+ return []; // todo: handle error messages in a good way
1634
+ }
1635
+ });
1636
+ }
1637
+ getVatList(onlyValid = false) {
1638
+ return __awaiter(this, void 0, void 0, function* () {
1639
+ const response = yield this.connector.getVatList(onlyValid);
1640
+ if (response.validationResult && response.validationResult.success) {
1641
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Vat, response.resultObjects);
1642
+ }
1643
+ else {
1644
+ return []; // todo: handle error messages in a good way
1645
+ }
1646
+ });
1647
+ }
1586
1648
  getSequenceValue(sequenceName) {
1587
1649
  return __awaiter(this, void 0, void 0, function* () {
1588
1650
  return new Promise((resolve, reject) => {
@@ -1719,7 +1781,7 @@ class IOneConnectorAdapterService {
1719
1781
  return new Promise((resolve, reject) => {
1720
1782
  return this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then((result) => {
1721
1783
  if (result.validationResult && result.validationResult.success) {
1722
- resolve(this._boFactory.makeWithRawBackendData(LineOperationResponse, result.resultObject));
1784
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1723
1785
  }
1724
1786
  else {
1725
1787
  reject(result.validationMessagesAsString);
@@ -1733,7 +1795,7 @@ class IOneConnectorAdapterService {
1733
1795
  return new Promise((resolve, reject) => {
1734
1796
  return this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then((result) => {
1735
1797
  if (result.validationResult && result.validationResult.success) {
1736
- resolve(this._boFactory.makeWithRawBackendData(LineOperationResponse, result.resultObject));
1798
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1737
1799
  }
1738
1800
  else {
1739
1801
  reject(result.validationMessagesAsString);
@@ -1745,9 +1807,15 @@ class IOneConnectorAdapterService {
1745
1807
  changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr) {
1746
1808
  return __awaiter(this, void 0, void 0, function* () {
1747
1809
  return new Promise((resolve, reject) => {
1748
- return this.connector.changeLineSequence(uuid, lineUuid, aboveLineNr, belowLineNr).then((result) => {
1810
+ const request = {
1811
+ transactionUuid: uuid,
1812
+ lineUuid: lineUuid,
1813
+ aboveLineNr: aboveLineNr,
1814
+ belowLineNr: belowLineNr
1815
+ };
1816
+ return this.connector.changeLineSequence(request).then((result) => {
1749
1817
  if (result.validationResult && result.validationResult.success) {
1750
- resolve(this._boFactory.makeWithRawBackendData(LineOperationResponse, result.resultObject));
1818
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1751
1819
  }
1752
1820
  else {
1753
1821
  reject(result.validationMessagesAsString);
@@ -1787,7 +1855,12 @@ class IOneConnectorAdapterService {
1787
1855
  changeTransactionLineQuantity(uuid, lineUuid, newQuantity) {
1788
1856
  return __awaiter(this, void 0, void 0, function* () {
1789
1857
  return new Promise((resolve, reject) => {
1790
- return this.connector.changeTransactionLineQuantity(uuid, lineUuid, newQuantity).then((result) => {
1858
+ const request = {
1859
+ transactionUuid: uuid,
1860
+ lineUuid: lineUuid,
1861
+ newQuantity: newQuantity
1862
+ };
1863
+ return this.connector.changeTransactionLineQuantity(request).then((result) => {
1791
1864
  if (result.validationResult && result.validationResult.success) {
1792
1865
  resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
1793
1866
  }
@@ -1898,6 +1971,217 @@ class IOneConnectorAdapterService {
1898
1971
  });
1899
1972
  });
1900
1973
  }
1974
+ changeTransactionLineCommissionCode(uuid, lineUuid, code) {
1975
+ return __awaiter(this, void 0, void 0, function* () {
1976
+ const request = {
1977
+ transactionUuid: uuid,
1978
+ lineUuid: lineUuid,
1979
+ newCommissionCode: code
1980
+ };
1981
+ const response = yield this.connector.changeTransactionLineCommissionCode(request);
1982
+ if (response && response.validationResult && response.validationResult.success) {
1983
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
1984
+ }
1985
+ else {
1986
+ return Promise.reject(response.validationMessagesAsString);
1987
+ }
1988
+ });
1989
+ }
1990
+ changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber) {
1991
+ return __awaiter(this, void 0, void 0, function* () {
1992
+ const request = {
1993
+ transactionUuid: uuid,
1994
+ lineUuid: lineUuid,
1995
+ newWarehouseNumber: warehouseNumber
1996
+ };
1997
+ const response = yield this.connector.changeTransactionLineWarehouse(request);
1998
+ if (response && response.validationResult && response.validationResult.success) {
1999
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2000
+ }
2001
+ else {
2002
+ return Promise.reject(response.validationMessagesAsString);
2003
+ }
2004
+ });
2005
+ }
2006
+ changeTransactionLinePrice(uuid, lineUuid, price) {
2007
+ return __awaiter(this, void 0, void 0, function* () {
2008
+ const request = {
2009
+ transactionUuid: uuid,
2010
+ lineUuid: lineUuid,
2011
+ newPrice: price
2012
+ };
2013
+ const response = yield this.connector.changeTransactionLinePrice(request);
2014
+ if (response && response.validationResult && response.validationResult.success) {
2015
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2016
+ }
2017
+ else {
2018
+ return Promise.reject(response.validationMessagesAsString);
2019
+ }
2020
+ });
2021
+ }
2022
+ changeTransactionLinePriceList(uuid, lineUuid, priceList) {
2023
+ return __awaiter(this, void 0, void 0, function* () {
2024
+ const request = {
2025
+ transactionUuid: uuid,
2026
+ lineUuid: lineUuid,
2027
+ newPriceListCode: priceList
2028
+ };
2029
+ const response = yield this.connector.changeTransactionLinePriceList(request);
2030
+ if (response && response.validationResult && response.validationResult.success) {
2031
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2032
+ }
2033
+ else {
2034
+ return Promise.reject(response.validationMessagesAsString);
2035
+ }
2036
+ });
2037
+ }
2038
+ changeTransactionLineVat(uuid, lineUuid, id) {
2039
+ return __awaiter(this, void 0, void 0, function* () {
2040
+ const request = {
2041
+ transactionUuid: uuid,
2042
+ lineUuid: lineUuid,
2043
+ newVatId: id
2044
+ };
2045
+ const response = yield this.connector.changeTransactionLineVat(request);
2046
+ if (response && response.validationResult && response.validationResult.success) {
2047
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2048
+ }
2049
+ else {
2050
+ return Promise.reject(response.validationMessagesAsString);
2051
+ }
2052
+ });
2053
+ }
2054
+ changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code) {
2055
+ return __awaiter(this, void 0, void 0, function* () {
2056
+ const request = {
2057
+ transactionUuid: uuid,
2058
+ lineUuid: lineUuid,
2059
+ discountType: type,
2060
+ newDiscount: discount,
2061
+ newDiscountReason: reason,
2062
+ newDiscountCode: code
2063
+ };
2064
+ const response = yield this.connector.changeTransactionLineDiscount(request);
2065
+ if (response && response.validationResult && response.validationResult.success) {
2066
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2067
+ }
2068
+ else {
2069
+ return Promise.reject(response.validationMessagesAsString);
2070
+ }
2071
+ });
2072
+ }
2073
+ changeTransactionLineDeliveryMethod(uuid, lineUuid, method) {
2074
+ return __awaiter(this, void 0, void 0, function* () {
2075
+ const request = {
2076
+ transactionUuid: uuid,
2077
+ lineUuid: lineUuid,
2078
+ newDeliveryMethodCode: method
2079
+ };
2080
+ const response = yield this.connector.changeTransactionLineDeliveryMethod(request);
2081
+ if (response && response.validationResult && response.validationResult.success) {
2082
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2083
+ }
2084
+ else {
2085
+ return Promise.reject(response.validationMessagesAsString);
2086
+ }
2087
+ });
2088
+ }
2089
+ changeTransactionLineDeliveryDate(uuid, lineUuid, date) {
2090
+ return __awaiter(this, void 0, void 0, function* () {
2091
+ const request = {
2092
+ transactionUuid: uuid,
2093
+ lineUuid: lineUuid,
2094
+ newDeliveryDate: date
2095
+ };
2096
+ const response = yield this.connector.changeTransactionLineDeliveryDate(request);
2097
+ if (response && response.validationResult && response.validationResult.success) {
2098
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2099
+ }
2100
+ else {
2101
+ return Promise.reject(response.validationMessagesAsString);
2102
+ }
2103
+ });
2104
+ }
2105
+ changeTransactionLineAssemblyTime(uuid, lineUuid, time) {
2106
+ return __awaiter(this, void 0, void 0, function* () {
2107
+ const request = {
2108
+ transactionUuid: uuid,
2109
+ lineUuid: lineUuid,
2110
+ newAssemblyTime: time
2111
+ };
2112
+ const response = yield this.connector.changeTransactionLineAssemblyTime(request);
2113
+ if (response && response.validationResult && response.validationResult.success) {
2114
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2115
+ }
2116
+ else {
2117
+ return Promise.reject(response.validationMessagesAsString);
2118
+ }
2119
+ });
2120
+ }
2121
+ changeTransactionLineEditTime(uuid, lineUuid, time) {
2122
+ return __awaiter(this, void 0, void 0, function* () {
2123
+ const request = {
2124
+ transactionUuid: uuid,
2125
+ lineUuid: lineUuid,
2126
+ newEditTime: time
2127
+ };
2128
+ const response = yield this.connector.changeTransactionLineEditTime(request);
2129
+ if (response && response.validationResult && response.validationResult.success) {
2130
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2131
+ }
2132
+ else {
2133
+ return Promise.reject(response.validationMessagesAsString);
2134
+ }
2135
+ });
2136
+ }
2137
+ changeTransactionLineSupplierArticleNumber(uuid, lineUuid, articleNumber) {
2138
+ return __awaiter(this, void 0, void 0, function* () {
2139
+ const request = {
2140
+ transactionUuid: uuid,
2141
+ lineUuid: lineUuid,
2142
+ newSupplierArticleNumber: articleNumber
2143
+ };
2144
+ const response = yield this.connector.changeTransactionLineSupplierArticleNumber(request);
2145
+ if (response && response.validationResult && response.validationResult.success) {
2146
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2147
+ }
2148
+ else {
2149
+ return Promise.reject(response.validationMessagesAsString);
2150
+ }
2151
+ });
2152
+ }
2153
+ changeTransactionLineReference(uuid, lineUuid, reference) {
2154
+ return __awaiter(this, void 0, void 0, function* () {
2155
+ const request = {
2156
+ transactionUuid: uuid,
2157
+ lineUuid: lineUuid,
2158
+ newReference: reference
2159
+ };
2160
+ const response = yield this.connector.changeTransactionLineReference(request);
2161
+ if (response && response.validationResult && response.validationResult.success) {
2162
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2163
+ }
2164
+ else {
2165
+ return Promise.reject(response.validationMessagesAsString);
2166
+ }
2167
+ });
2168
+ }
2169
+ changeTransactionLineCollectionCode(uuid, lineUuid, code) {
2170
+ return __awaiter(this, void 0, void 0, function* () {
2171
+ const request = {
2172
+ transactionUuid: uuid,
2173
+ lineUuid: lineUuid,
2174
+ newCollectionCode: code
2175
+ };
2176
+ const response = yield this.connector.changeTransactionLineCollectionCode(request);
2177
+ if (response && response.validationResult && response.validationResult.success) {
2178
+ return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
2179
+ }
2180
+ else {
2181
+ return Promise.reject(response.validationMessagesAsString);
2182
+ }
2183
+ });
2184
+ }
1901
2185
  }
1902
2186
  IOneConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IOneConnectorAdapterService_Factory() { return new IOneConnectorAdapterService(i0.ɵɵinject(OptionsService)); }, token: IOneConnectorAdapterService, providedIn: "root" });
1903
2187
  IOneConnectorAdapterService.decorators = [
@@ -1926,7 +2210,19 @@ class DialogBaseComponent {
1926
2210
  }
1927
2211
  }
1928
2212
 
2213
+ var AppPopupType;
2214
+ (function (AppPopupType) {
2215
+ AppPopupType[AppPopupType["Error"] = 0] = "Error";
2216
+ AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
2217
+ AppPopupType[AppPopupType["Information"] = 2] = "Information";
2218
+ AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
2219
+ })(AppPopupType || (AppPopupType = {}));
2220
+
1929
2221
  class ConfirmationDialogComponent extends DialogBaseComponent {
2222
+ constructor() {
2223
+ super(...arguments);
2224
+ this.ptype = AppPopupType;
2225
+ }
1930
2226
  showClass() {
1931
2227
  return true;
1932
2228
  }
@@ -1936,6 +2232,9 @@ class ConfirmationDialogComponent extends DialogBaseComponent {
1936
2232
  handleNoClick(event) {
1937
2233
  this.onClose(AppPopupButtonType.No);
1938
2234
  }
2235
+ handleOkClick(event) {
2236
+ this.onClose(AppPopupButtonType.Ok);
2237
+ }
1939
2238
  }
1940
2239
  ConfirmationDialogComponent.decorators = [
1941
2240
  { type: Component, args: [{
@@ -1946,8 +2245,13 @@ ConfirmationDialogComponent.decorators = [
1946
2245
  <div class="title" [textContent]="title | localize"></div>
1947
2246
  <div class="text" [textContent]="text"></div>
1948
2247
  <div class="button-wrapper">
1949
- <co-button [label]="'YES' | localize" (click)="handleYesClick($event)"></co-button>
1950
- <co-button [label]="'NO' | localize" (click)="handleNoClick($event)"></co-button>
2248
+ <ng-container *ngIf="type === ptype.Confirmation">
2249
+ <co-button [label]="'YES' | localize" (click)="handleYesClick($event)"></co-button>
2250
+ <co-button [label]="'NO' | localize" (click)="handleNoClick($event)"></co-button>
2251
+ </ng-container>
2252
+ <ng-container *ngIf="type === ptype.Information">
2253
+ <co-button [label]="'OK' | localize" (click)="handleOkClick($event)"></co-button>
2254
+ </ng-container>
1951
2255
  </div>
1952
2256
  </div>
1953
2257
  </co-dialog>
@@ -1958,6 +2262,7 @@ ConfirmationDialogComponent.decorators = [
1958
2262
  ConfirmationDialogComponent.propDecorators = {
1959
2263
  title: [{ type: Input }],
1960
2264
  text: [{ type: Input }],
2265
+ type: [{ type: Input }],
1961
2266
  showClass: [{ type: HostBinding, args: ["class.co-confirmation-dialog",] }]
1962
2267
  };
1963
2268
 
@@ -1971,7 +2276,8 @@ class DialogService {
1971
2276
  return __awaiter(this, void 0, void 0, function* () {
1972
2277
  const data = {
1973
2278
  title: title,
1974
- text: text
2279
+ text: text,
2280
+ type: AppPopupType.Confirmation
1975
2281
  };
1976
2282
  const response = yield this._createComponent(ConfirmationDialogComponent, data);
1977
2283
  return response === AppPopupButtonType.Yes;
@@ -1980,7 +2286,16 @@ class DialogService {
1980
2286
  showError(message) {
1981
2287
  const data = {
1982
2288
  title: 'ERROR',
1983
- text: message
2289
+ text: message,
2290
+ type: AppPopupType.Error
2291
+ };
2292
+ return this._createComponent(ConfirmationDialogComponent, data);
2293
+ }
2294
+ showInformation(message) {
2295
+ const data = {
2296
+ title: 'INFORMATION',
2297
+ text: message,
2298
+ type: AppPopupType.Information
1984
2299
  };
1985
2300
  return this._createComponent(ConfirmationDialogComponent, data);
1986
2301
  }
@@ -2065,12 +2380,13 @@ class PendingReasonService {
2065
2380
  if (!response.lineOperationStatuses || response.lineOperationStatuses.length === 0) {
2066
2381
  return true;
2067
2382
  }
2383
+ let success = true;
2068
2384
  for (let i = 0; i < response.lineOperationStatuses.length; i++) {
2069
2385
  const status = response.lineOperationStatuses[i];
2070
2386
  const transLine = response.transactionLines.find(t => t.lineNr === status.lineNr);
2071
- yield this._handleLineOperationStatus(status, transLine);
2387
+ success = success && (yield this._handleLineOperationStatus(status, transLine));
2072
2388
  }
2073
- return true;
2389
+ return success;
2074
2390
  });
2075
2391
  }
2076
2392
  _rememberCurrentTransaction(value) {
@@ -2087,11 +2403,16 @@ class PendingReasonService {
2087
2403
  switch (operationStatus.pendingReasonType) {
2088
2404
  case PendingReasonType.ABORTED:
2089
2405
  case PendingReasonType.CANCELLED:
2090
- yield this._cancelArticle(operationStatus.uuid);
2091
- break;
2406
+ if (operationStatus.pendingReason === 'USER_DECISION') {
2407
+ yield this._cancelArticle(operationStatus.uuid);
2408
+ }
2409
+ else {
2410
+ this._showReasonDialog(operationStatus.pendingReason);
2411
+ }
2412
+ return false;
2092
2413
  case PendingReasonType.CONFIRMATION_NEEDED:
2093
2414
  yield this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
2094
- break;
2415
+ return false;
2095
2416
  // case PendingReasonType.INVALID_LOGISTICS:
2096
2417
  // await this.showStockManager(this.currentPendingLine);
2097
2418
  // break;
@@ -2103,7 +2424,7 @@ class PendingReasonService {
2103
2424
  // break;
2104
2425
  case PendingReasonType.NONE:
2105
2426
  default:
2106
- break;
2427
+ return true;
2107
2428
  }
2108
2429
  });
2109
2430
  }
@@ -2116,13 +2437,18 @@ class PendingReasonService {
2116
2437
  }
2117
2438
  _confirmAction(uuid, reason, type) {
2118
2439
  return __awaiter(this, void 0, void 0, function* () {
2119
- const reasonRequest = new ResolvePendingLineReasonRequest(uuid, reason, type);
2440
+ const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
2120
2441
  // const pendingReasonText: string = await this._getPendingReasonText(this.currentOperationStatus.pendingReason);
2121
2442
  reasonRequest.confirmation = yield this.dialogService.showYesNo('Action', reason);
2122
2443
  yield this.resolvePendingLineReason(reasonRequest);
2123
2444
  // this._handleLineOperationStatus()
2124
2445
  });
2125
2446
  }
2447
+ _showReasonDialog(reason) {
2448
+ return __awaiter(this, void 0, void 0, function* () {
2449
+ this.dialogService.showInformation(reason);
2450
+ });
2451
+ }
2126
2452
  _setTransactionDeliveryOptions() {
2127
2453
  if (!this.deliveryOptions) {
2128
2454
  this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
@@ -2177,6 +2503,10 @@ PendingReasonService.ctorParameters = () => [
2177
2503
  ];
2178
2504
 
2179
2505
  class TransactionService extends PendingReasonService {
2506
+ constructor() {
2507
+ super(...arguments);
2508
+ this._imageCache = new Map();
2509
+ }
2180
2510
  // public get currentLines(): TransactionLineInfo[] {
2181
2511
  // return this._currentLines;
2182
2512
  // }
@@ -2232,6 +2562,156 @@ class TransactionService extends PendingReasonService {
2232
2562
  && line.pendingReasonType !== PendingReasonType.NON_CRITICAL_DISCONTINUATION);
2233
2563
  return status;
2234
2564
  }
2565
+ updatePriceTransactionLine(uuid, lineUuid, price) {
2566
+ return __awaiter(this, void 0, void 0, function* () {
2567
+ const response = yield this.connector.changeTransactionLinePrice(uuid, lineUuid, price)
2568
+ .catch((error) => {
2569
+ // todo: do something with the error
2570
+ return false;
2571
+ });
2572
+ if (response) {
2573
+ const success = yield this.handleLineOperationStatuses(response);
2574
+ this._rememberCurrentTransaction(response);
2575
+ return success;
2576
+ }
2577
+ return false;
2578
+ });
2579
+ }
2580
+ updateReferenceTransactionLine(uuid, lineUuid, reference) {
2581
+ return __awaiter(this, void 0, void 0, function* () {
2582
+ const response = yield this.connector.changeTransactionLineReference(uuid, lineUuid, reference)
2583
+ .catch((error) => {
2584
+ // todo: do something with the error
2585
+ return false;
2586
+ });
2587
+ if (response) {
2588
+ const success = yield this.handleLineOperationStatuses(response);
2589
+ this._rememberCurrentTransaction(response);
2590
+ return success;
2591
+ }
2592
+ return false;
2593
+ });
2594
+ }
2595
+ updateQuantityTransactionLine(uuid, lineUuid, quantity) {
2596
+ return __awaiter(this, void 0, void 0, function* () {
2597
+ const response = yield this.connector.changeTransactionLineQuantity(uuid, lineUuid, quantity)
2598
+ .catch((error) => {
2599
+ // todo: do something with the error
2600
+ return false;
2601
+ });
2602
+ if (response) {
2603
+ const success = yield this.handleLineOperationStatuses(response);
2604
+ this._rememberCurrentTransaction(response);
2605
+ return success;
2606
+ }
2607
+ return false;
2608
+ });
2609
+ }
2610
+ updateDeliveryDateTransactionLine(uuid, lineUuid, date) {
2611
+ return __awaiter(this, void 0, void 0, function* () {
2612
+ const response = yield this.connector.changeTransactionLineDeliveryDate(uuid, lineUuid, date)
2613
+ .catch((error) => {
2614
+ // todo: do something with the error
2615
+ return false;
2616
+ });
2617
+ if (response) {
2618
+ const success = yield this.handleLineOperationStatuses(response);
2619
+ this._rememberCurrentTransaction(response);
2620
+ return success;
2621
+ }
2622
+ return false;
2623
+ });
2624
+ }
2625
+ updatePriceListTransactionLine(uuid, lineUuid, priceList) {
2626
+ return __awaiter(this, void 0, void 0, function* () {
2627
+ const response = yield this.connector.changeTransactionLinePriceList(uuid, lineUuid, priceList)
2628
+ .catch((error) => {
2629
+ // todo: do something with the error
2630
+ return false;
2631
+ });
2632
+ if (response) {
2633
+ const success = yield this.handleLineOperationStatuses(response);
2634
+ this._rememberCurrentTransaction(response);
2635
+ return success;
2636
+ }
2637
+ return false;
2638
+ });
2639
+ }
2640
+ updateVatTransactionLine(uuid, lineUuid, id) {
2641
+ return __awaiter(this, void 0, void 0, function* () {
2642
+ const response = yield this.connector.changeTransactionLineVat(uuid, lineUuid, id)
2643
+ .catch((error) => {
2644
+ // todo: do something with the error
2645
+ return false;
2646
+ });
2647
+ if (response) {
2648
+ const success = yield this.handleLineOperationStatuses(response);
2649
+ this._rememberCurrentTransaction(response);
2650
+ return success;
2651
+ }
2652
+ return false;
2653
+ });
2654
+ }
2655
+ updateCommissionCodeTransactionLine(uuid, lineUuid, code) {
2656
+ return __awaiter(this, void 0, void 0, function* () {
2657
+ const response = yield this.connector.changeTransactionLineCommissionCode(uuid, lineUuid, code)
2658
+ .catch((error) => {
2659
+ // todo: do something with the error
2660
+ return false;
2661
+ });
2662
+ if (response) {
2663
+ const success = yield this.handleLineOperationStatuses(response);
2664
+ this._rememberCurrentTransaction(response);
2665
+ return success;
2666
+ }
2667
+ return false;
2668
+ });
2669
+ }
2670
+ updateWarehouseTransactionLine(uuid, lineUuid, warehouseNumber) {
2671
+ return __awaiter(this, void 0, void 0, function* () {
2672
+ const response = yield this.connector.changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber)
2673
+ .catch((error) => {
2674
+ // todo: do something with the error
2675
+ return false;
2676
+ });
2677
+ if (response) {
2678
+ const success = yield this.handleLineOperationStatuses(response);
2679
+ this._rememberCurrentTransaction(response);
2680
+ return success;
2681
+ }
2682
+ return false;
2683
+ });
2684
+ }
2685
+ updateDeliveryMethodTransactionLine(uuid, lineUuid, method) {
2686
+ return __awaiter(this, void 0, void 0, function* () {
2687
+ const response = yield this.connector.changeTransactionLineDeliveryMethod(uuid, lineUuid, method)
2688
+ .catch((error) => {
2689
+ // todo: do something with the error
2690
+ return false;
2691
+ });
2692
+ if (response) {
2693
+ const success = yield this.handleLineOperationStatuses(response);
2694
+ this._rememberCurrentTransaction(response);
2695
+ return success;
2696
+ }
2697
+ return false;
2698
+ });
2699
+ }
2700
+ updateDiscountTransactionLine(uuid, lineUuid, type, discount, reason = "", code = "") {
2701
+ return __awaiter(this, void 0, void 0, function* () {
2702
+ const response = yield this.connector.changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code)
2703
+ .catch((error) => {
2704
+ // todo: do something with the error
2705
+ return false;
2706
+ });
2707
+ if (response) {
2708
+ const success = yield this.handleLineOperationStatuses(response);
2709
+ this._rememberCurrentTransaction(response);
2710
+ return success;
2711
+ }
2712
+ return false;
2713
+ });
2714
+ }
2235
2715
  getArticleFullObject(goodId) {
2236
2716
  return __awaiter(this, void 0, void 0, function* () {
2237
2717
  return yield this.connector.getArticleFullObject(goodId);
@@ -2260,6 +2740,16 @@ class TransactionService extends PendingReasonService {
2260
2740
  return this.connector.getRelationNumber(relationId);
2261
2741
  });
2262
2742
  }
2743
+ getPriceLists() {
2744
+ return __awaiter(this, void 0, void 0, function* () {
2745
+ return this.connector.getPriceLists();
2746
+ });
2747
+ }
2748
+ getVatLists() {
2749
+ return __awaiter(this, void 0, void 0, function* () {
2750
+ return this.connector.getVatList();
2751
+ });
2752
+ }
2263
2753
  saveRelation() {
2264
2754
  return __awaiter(this, void 0, void 0, function* () {
2265
2755
  // this._cleanRelationBeforeSave();
@@ -2324,15 +2814,16 @@ class TransactionService extends PendingReasonService {
2324
2814
  getTransactionById(transactionId) {
2325
2815
  return new Promise((resolve, reject) => {
2326
2816
  this.connector.getTransactionById(transactionId)
2327
- .then((response) => __awaiter(this, void 0, void 0, function* () {
2817
+ .then((response) => {
2328
2818
  if (response.isSuccess) {
2819
+ this._rememberCurrentTransaction(response);
2329
2820
  this.transactionUpdated.next(response);
2330
2821
  resolve(true);
2331
2822
  }
2332
2823
  else {
2333
2824
  reject(false);
2334
2825
  }
2335
- }))
2826
+ })
2336
2827
  .catch((reason) => {
2337
2828
  reject(false);
2338
2829
  });
@@ -2458,14 +2949,25 @@ class TransactionService extends PendingReasonService {
2458
2949
  }
2459
2950
  getArticleImageByArticleNumber(articleNumber) {
2460
2951
  return __awaiter(this, void 0, void 0, function* () {
2461
- const goodId = yield this.connector.getGoodIdFromArticleNr(articleNumber);
2462
- return this.getArticleImageByGoodId(goodId);
2952
+ if (this._imageCache.has(articleNumber)) {
2953
+ return this._imageCache.get(articleNumber);
2954
+ }
2955
+ const goodId = yield this.connector.getGoodIdFromArticleNr(articleNumber).catch((error) => {
2956
+ console.error(error);
2957
+ return null;
2958
+ });
2959
+ const image = yield this.getArticleImageByGoodId(goodId);
2960
+ this._imageCache.set(articleNumber, image);
2961
+ return image;
2463
2962
  });
2464
2963
  }
2465
2964
  getArticleImageByGoodId(goodId) {
2466
2965
  return __awaiter(this, void 0, void 0, function* () {
2467
2966
  if (!isNaN(goodId)) {
2468
- return this.connector.getSingleImage(goodId, 1, true, true);
2967
+ return this.connector.getSingleImage(goodId, 1, true, true).catch((error) => {
2968
+ console.error(error);
2969
+ return "";
2970
+ });
2469
2971
  }
2470
2972
  else {
2471
2973
  return "";
@@ -2504,7 +3006,7 @@ class TransactionService extends PendingReasonService {
2504
3006
  return new Promise((resolve, reject) => {
2505
3007
  this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
2506
3008
  .then((response) => __awaiter(this, void 0, void 0, function* () {
2507
- this._rememberResponse(remember, response);
3009
+ this._rememberCurrentTransaction(response);
2508
3010
  resolve(response);
2509
3011
  }), (error) => {
2510
3012
  reject(error);
@@ -2521,7 +3023,7 @@ class TransactionService extends PendingReasonService {
2521
3023
  return new Promise((resolve, reject) => {
2522
3024
  this.connector.addTextLineToTransaction(this.currentTransaction.transactionInfo.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
2523
3025
  .then((response) => __awaiter(this, void 0, void 0, function* () {
2524
- this._rememberResponse(remember, response);
3026
+ this._rememberCurrentTransaction(response);
2525
3027
  resolve(response);
2526
3028
  }), (error) => {
2527
3029
  reject(error);
@@ -2552,7 +3054,7 @@ class TransactionService extends PendingReasonService {
2552
3054
  return new Promise((resolve, reject) => {
2553
3055
  this.connector.changeLineSequence(this.currentTransaction.transactionInfo.uuid, lineUuid, aboveLineNr, belowLineNr)
2554
3056
  .then((response) => __awaiter(this, void 0, void 0, function* () {
2555
- this._rememberResponse(remember, response);
3057
+ this._rememberCurrentTransaction(response);
2556
3058
  resolve(response);
2557
3059
  }), (error) => {
2558
3060
  reject(error);
@@ -2567,7 +3069,7 @@ class TransactionService extends PendingReasonService {
2567
3069
  return new Promise((resolve, reject) => {
2568
3070
  this.connector.deleteTransactionLine(transactionUuid, TransactionLineUuid)
2569
3071
  .then((response) => __awaiter(this, void 0, void 0, function* () {
2570
- this._rememberResponse(remember, response);
3072
+ this._rememberCurrentTransaction(response);
2571
3073
  if (response.isSuccess) {
2572
3074
  resolve(response);
2573
3075
  }
@@ -2587,7 +3089,7 @@ class TransactionService extends PendingReasonService {
2587
3089
  this.connector.changeTransactionLineQuantity(this.currentTransaction.transactionInfo.uuid, lineUuid, newQuantity)
2588
3090
  .then((response) => __awaiter(this, void 0, void 0, function* () {
2589
3091
  if (response.isSuccess) {
2590
- this._rememberResponse(remember, response);
3092
+ this._rememberCurrentTransaction(response);
2591
3093
  }
2592
3094
  resolve(response);
2593
3095
  })).catch((reason) => {
@@ -2657,24 +3159,6 @@ class TransactionService extends PendingReasonService {
2657
3159
  }
2658
3160
  });
2659
3161
  }
2660
- _rememberCurrentTransactionLineStatus(value) {
2661
- // this._currentLineOperationStatus.uuid = value.lineUuid;
2662
- // this._currentLineOperationStatus.pendingReason = value.pendingReason;
2663
- // this._currentLineOperationStatus.pendingReasonType = value.pendingReasonType;
2664
- }
2665
- // private async _updateRelation(): Promise<void> {
2666
- // if (this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId) {
2667
- // if (!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId) {
2668
- // this._currentRelation = await this.getCustomerFullObjectByRelationId(this.currentTransaction.relation.relationId);
2669
- // }
2670
- // }
2671
- // }
2672
- _rememberResponse(remember, response) {
2673
- if (remember) {
2674
- this._rememberCurrentTransaction(response);
2675
- this._rememberCurrentTransactionLineStatus(response);
2676
- }
2677
- }
2678
3162
  }
2679
3163
  TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(IOneConnectorAdapterService)); }, token: TransactionService, providedIn: "root" });
2680
3164
  TransactionService.decorators = [
@@ -2816,13 +3300,16 @@ var Icon;
2816
3300
  Icon["ArrowPointDown"] = "arrow_point_down";
2817
3301
  Icon["ArrowPointLeft"] = "arrow_point_left";
2818
3302
  Icon["ArrowPointRight"] = "arrow_point_right";
3303
+ Icon["Barcode"] = "barcode";
2819
3304
  Icon["CalendarDay"] = "calendar_day";
2820
3305
  Icon["Cancel"] = "cancel";
2821
3306
  Icon["CashRegister"] = "cash_register";
2822
3307
  Icon["DeliveryTruck"] = "delivery_truck";
2823
3308
  Icon["EditPencil"] = "edit_pencil";
2824
3309
  Icon["IdealLogo"] = "ideal_logo";
3310
+ Icon["MapMarker"] = "map_marker";
2825
3311
  Icon["MasterDetail"] = "master_detail";
3312
+ Icon["Menu"] = "menu";
2826
3313
  Icon["PlusRound"] = "plus_round";
2827
3314
  Icon["SidePanel"] = "side_panel";
2828
3315
  Icon["Tag"] = "tag";
@@ -2832,6 +3319,7 @@ var Icon;
2832
3319
  Icon["TriangleUp"] = "triangle_up";
2833
3320
  Icon["Truck"] = "truck";
2834
3321
  Icon["Txt"] = "txt";
3322
+ Icon["Warehouse"] = "warehouse";
2835
3323
  })(Icon || (Icon = {}));
2836
3324
 
2837
3325
  class CheckoutOverviewRelationEditComponent {
@@ -3359,13 +3847,16 @@ const IconSvg = {
3359
3847
  "arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
3360
3848
  "arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
3361
3849
  "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
3850
+ "barcode": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M2,6H4V18H2V6M5,6H6V18H5V6M7,6H10V18H7V6M11,6H12V18H11V6M14,6H16V18H14V6M17,6H20V18H17V6M21,6H22V18H21V6Z\" /></svg>",
3362
3851
  "calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
3363
3852
  "cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
3364
3853
  "cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
3365
3854
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
3366
3855
  "edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
3367
3856
  "ideal_logo": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 306.1 269.8\" style=\"enable-background:new 0 0 306.1 269.8;\" ><style type=\"text/css\">.st0{fill:#FFFFFF;}.st1{fill:#CC0066;}</style><g><g><path class=\"st0\" d=\"M0,20v229.8c0,11,9,20,20,20h137.3c103.8,0,148.8-58.1,148.8-135.2C306.1,57.9,261.1,0,157.3,0H20C9,0,0,9,0,20z\"/><path class=\"st1\" d=\"M91.9,56.4v169.8h73.9c67.1,0,96.2-37.9,96.2-91.5c0-51.3-29.1-91.1-96.2-91.1h-61.1C97.6,43.6,91.9,49.4,91.9,56.4z\"/><g><g><path d=\"M157.3,251.5H37.9c-10.6,0-19.2-8.6-19.2-19.2V37.6c0-10.6,8.6-19.2,19.2-19.2h119.4c113.3,0,130.2,72.9,130.2,116.3C287.5,210,241.2,251.5,157.3,251.5z M37.9,24.8c-7.1,0-12.8,5.7-12.8,12.8v194.7c0,7.1,5.7,12.8,12.8,12.8h119.4c79.8,0,123.8-39.2,123.8-110.4c0-95.6-77.6-109.9-123.8-109.9H37.9z\"/></g></g></g><g><path class=\"st0\" d=\"M117.9,111.8c2.6,0,5,0.4,7.3,1.2c2.3,0.8,4.2,2.1,5.9,3.7c1.6,1.7,2.9,3.8,3.9,6.2c0.9,2.5,1.4,5.4,1.4,8.8c0,3-0.4,5.7-1.1,8.2c-0.8,2.5-1.9,4.7-3.4,6.5c-1.5,1.8-3.4,3.2-5.7,4.3c-2.3,1-5,1.6-8.1,1.6h-17.5v-40.6H117.9z M117.3,144.9c1.3,0,2.5-0.2,3.8-0.6c1.2-0.4,2.3-1.1,3.2-2.1c0.9-1,1.7-2.2,2.3-3.8c0.6-1.6,0.9-3.4,0.9-5.7c0-2-0.2-3.9-0.6-5.5c-0.4-1.6-1.1-3.1-2-4.2s-2.1-2.1-3.6-2.7c-1.5-0.6-3.3-0.9-5.5-0.9h-6.4v25.6H117.3z\"/><path class=\"st0\" d=\"M172.5,111.8v7.5h-21.4v8.7h19.7v6.9h-19.7v9.9H173v7.5h-30.8v-40.6H172.5z\"/><path class=\"st0\" d=\"M203.1,111.8l15.2,40.6H209l-3.1-9h-15.2l-3.2,9h-9l15.3-40.6H203.1z M203.6,136.7l-5.1-14.9h-0.1l-5.3,14.9H203.6z\"/><path class=\"st0\" d=\"M232.8,111.8v33.1h19.8v7.5h-28.7v-40.6H232.8z\"/></g><g><circle cx=\"58.5\" cy=\"132.1\" r=\"18.7\"/></g><path d=\"M72.6,226.2L72.6,226.2c-15.7,0-28.3-12.7-28.3-28.3v-22.1c0-7.8,6.3-14.2,14.2-14.2h0c7.8,0,14.2,6.3,14.2,14.2V226.2z\"/></g></svg>",
3857
+ "map_marker": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z\" /></svg>",
3368
3858
  "master_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"22\" y=\"32.17\" width=\"18\" height=\"4\" transform=\"translate(62 68.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"26.17\" width=\"18\" height=\"4\" transform=\"translate(62 56.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"20.17\" width=\"18\" height=\"4\" transform=\"translate(62 44.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"14.17\" width=\"18\" height=\"4\" transform=\"translate(62 32.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"10\" y=\"14.17\" width=\"10\" height=\"22\" transform=\"translate(30 50.33) rotate(180)\" fill=\"#484f60\"/></svg>",
3859
+ "menu": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" /></svg>",
3369
3860
  "plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
3370
3861
  "side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
3371
3862
  "tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
@@ -3374,7 +3865,8 @@ const IconSvg = {
3374
3865
  "triangle_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"29.06 18.75 37.5 18.75 25 31.25 12.5 18.75 20.95 18.75 29.06 18.75\" fill=\"#484f60\"/></svg>",
3375
3866
  "triangle_up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"20.94 31.25 12.5 31.25 25 18.75 37.5 31.25 29.05 31.25 20.94 31.25\" fill=\"#484f60\"/></svg>",
3376
3867
  "truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.75\" width=\"17.47\" height=\"12.62\" fill=\"#484f60\"/><path d=\"M37,18.11h-8V28.84H20.22a4.42,4.42,0,0,1,1.41,2.73H30a4.41,4.41,0,0,1,8.76,0H40V24.63Zm-.26,6.73H32.25a.57.57,0,0,1-.57-.57V20a.57.57,0,0,1,.57-.58h2.63a.58.58,0,0,1,.52.35L37.31,24A.58.58,0,0,1,36.78,24.84Z\" fill=\"#484f60\"/><path d=\"M14.28,28.84a4.39,4.39,0,0,0-1.42,2.73H12l-2-1.26V28.84Z\" fill=\"#484f60\"/><path d=\"M31.25,32.1a3.16,3.16,0,1,0,3.16-3.16A3.16,3.16,0,0,0,31.25,32.1Z\" fill=\"#484f60\"/><path d=\"M14.09,32.1a3.16,3.16,0,1,0,3.16-3.16A3.15,3.15,0,0,0,14.09,32.1Z\" fill=\"#484f60\"/></svg>",
3377
- "txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>"
3868
+ "txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
3869
+ "warehouse": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M6 19H8V21H6V19M12 3L2 8V21H4V13H20V21H22V8L12 3M8 11H4V9H8V11M14 11H10V9H14V11M20 11H16V9H20V11M6 15H8V17H6V15M10 15H12V17H10V15M10 19H12V21H10V19M14 19H16V21H14V19Z\" /></svg>"
3378
3870
  };
3379
3871
 
3380
3872
  class IconCacheService {
@@ -4107,6 +4599,9 @@ class DeliveryTimePipe extends DateDurationPipe {
4107
4599
  if (!value) {
4108
4600
  return "";
4109
4601
  }
4602
+ if (typeof value === 'number') {
4603
+ value = new Date(value);
4604
+ }
4110
4605
  const deltaDays = Math.round(DateUtils.GetDaysFromNow(value));
4111
4606
  if (deltaDays <= 0) {
4112
4607
  return this._dictionary.get("DELIVERY_DIRECT");
@@ -4275,7 +4770,47 @@ ConfirmationDialogModule.decorators = [
4275
4770
  },] }
4276
4771
  ];
4277
4772
 
4278
- class CoreModule {
4773
+ class DefaultOkCancelButtonsComponent {
4774
+ constructor() {
4775
+ this.hideCancel = false;
4776
+ this.hideOk = false;
4777
+ this.okLabel = "OK";
4778
+ // only emits when ok button was not disabled when it was clicked
4779
+ this.okClick = new EventEmitter();
4780
+ this.cancelClick = new EventEmitter();
4781
+ }
4782
+ showClass() {
4783
+ return true;
4784
+ }
4785
+ onOkClick(event) {
4786
+ if (this.okButtonComp && !this.okButtonComp.disabled) {
4787
+ this.okClick.emit(event);
4788
+ }
4789
+ }
4790
+ }
4791
+ DefaultOkCancelButtonsComponent.decorators = [
4792
+ { type: Component, args: [{
4793
+ selector: "co-default-ok-cancel-buttons",
4794
+ template: `
4795
+ <co-button *ngIf="!hideOk" [label]="okLabel" [disabled]="okDisabled" class="ok" #okButton (click)="onOkClick($event)"></co-button>
4796
+ <co-button *ngIf="!hideCancel" label="CANCEL" (click)="cancelClick.emit($event)"></co-button>
4797
+ <ng-content></ng-content>
4798
+ `,
4799
+ encapsulation: ViewEncapsulation.None
4800
+ },] }
4801
+ ];
4802
+ DefaultOkCancelButtonsComponent.propDecorators = {
4803
+ okButtonComp: [{ type: ViewChild, args: ["okButton",] }],
4804
+ okDisabled: [{ type: Input }],
4805
+ hideCancel: [{ type: Input }],
4806
+ hideOk: [{ type: Input }],
4807
+ okLabel: [{ type: Input }],
4808
+ okClick: [{ type: Output }],
4809
+ cancelClick: [{ type: Output }],
4810
+ showClass: [{ type: HostBinding, args: ['class.co-default-ok-cancel-buttons',] }]
4811
+ };
4812
+
4813
+ class CoreModule {
4279
4814
  }
4280
4815
  CoreModule.decorators = [
4281
4816
  { type: NgModule, args: [{
@@ -4291,13 +4826,15 @@ CoreModule.decorators = [
4291
4826
  ImageDisplayComponent,
4292
4827
  IconComponent,
4293
4828
  CustomerGroupsComponent,
4294
- StockStatusIndicatorComponent
4829
+ StockStatusIndicatorComponent,
4830
+ DefaultOkCancelButtonsComponent
4295
4831
  ],
4296
4832
  exports: [
4297
4833
  ImageDisplayComponent,
4298
4834
  IconComponent,
4299
4835
  CustomerGroupsComponent,
4300
- StockStatusIndicatorComponent
4836
+ StockStatusIndicatorComponent,
4837
+ DefaultOkCancelButtonsComponent
4301
4838
  ]
4302
4839
  },] }
4303
4840
  ];
@@ -5125,6 +5662,7 @@ class TransactionLineComponent {
5125
5662
  this.icons = Icon;
5126
5663
  this.preview = false;
5127
5664
  this.waitingForUserAction = new EventEmitter();
5665
+ this.showSidePanelClicked = new EventEmitter();
5128
5666
  this.stock = StockStatus.Low;
5129
5667
  this.showTransactionArticleText = false;
5130
5668
  this.showTransactionArticleTextOverview = false;
@@ -5190,7 +5728,11 @@ class TransactionLineComponent {
5190
5728
  }
5191
5729
  _loadLineImage() {
5192
5730
  return __awaiter(this, void 0, void 0, function* () {
5193
- this.image = this.line ? yield this.service.retrieveLineImage(this.line) : undefined;
5731
+ if (this.line && this.line.isArticle) {
5732
+ this.service.retrieveLineImage(this.line).then((image) => {
5733
+ this.image = image;
5734
+ });
5735
+ }
5194
5736
  });
5195
5737
  }
5196
5738
  // private async _confirmAction(lineOperationResponse: LineOperationResponse): Promise<void> {
@@ -5255,10 +5797,12 @@ class TransactionLineComponent {
5255
5797
  }
5256
5798
  handleShowSidePanel(event) {
5257
5799
  this.showSidePanel = true;
5800
+ this.showSidePanelClicked.next(true);
5258
5801
  this.waitingForUserAction.next(true);
5259
5802
  }
5260
5803
  handleCloseSidePanel(event) {
5261
5804
  this.showSidePanel = false;
5805
+ this.showSidePanelClicked.next(false);
5262
5806
  this.waitingForUserAction.next(false);
5263
5807
  }
5264
5808
  }
@@ -5291,7 +5835,7 @@ TransactionLineComponent.decorators = [
5291
5835
  <span [textContent]="'STOCK' | localize" class="small-font"></span>
5292
5836
  <stock-status-indicator [model]="stock"></stock-status-indicator>
5293
5837
  <span [textContent]="'DELIVERY_TIME_PERIOD' | localize" class="small-font"></span>
5294
- <span [textContent]="line.deliveryDate | deliveryTime"></span>
5838
+ <!-- <span [textContent]="line.deliveryDate | deliveryTime"></span>-->
5295
5839
  </div>
5296
5840
  <div *ngIf=!preview class="transaction-line-amount">
5297
5841
  <co-input-number-picker class="amount-number-picker"
@@ -5354,10 +5898,6 @@ TransactionLineComponent.decorators = [
5354
5898
  (closeClick)="closeTransactionArticleText($event)"
5355
5899
  (cancelClick)="closeTransactionArticleText($event)"
5356
5900
  ></co-transaction-article-text>
5357
- <co-transaction-line-side-panel *ngIf="showSidePanel" @showHideSidePanel
5358
- [transactionLine]="line"
5359
- (cancelClick)="handleCloseSidePanel($event)"
5360
- ></co-transaction-line-side-panel>
5361
5901
  `,
5362
5902
  animations: [
5363
5903
  trigger("showHideSidePanel", [
@@ -5379,6 +5919,7 @@ TransactionLineComponent.propDecorators = {
5379
5919
  preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
5380
5920
  line: [{ type: Input }],
5381
5921
  waitingForUserAction: [{ type: Output }],
5922
+ showSidePanelClicked: [{ type: Output }],
5382
5923
  isText: [{ type: HostBinding, args: ["class.is-text",] }],
5383
5924
  isArticle: [{ type: HostBinding, args: ["class.is-article",] }],
5384
5925
  isSelected: [{ type: HostBinding, args: ["class.is-selected",] }],
@@ -5534,187 +6075,6 @@ TransactionArticleTextOverviewModule.decorators = [
5534
6075
  },] }
5535
6076
  ];
5536
6077
 
5537
- class TransactionLineSidePanelComponent {
5538
- constructor(iconService, _transactionService) {
5539
- this.iconService = iconService;
5540
- this._transactionService = _transactionService;
5541
- this.icons = Icon;
5542
- this.cancelClick = new EventEmitter();
5543
- this.data = [];
5544
- }
5545
- set child(content) {
5546
- this.inputPrice = content;
5547
- this.inputPrice.commit = this.commitPrice;
5548
- }
5549
- showClass() {
5550
- return true;
5551
- }
5552
- handleCancelClick(event) {
5553
- this.cancelClick.next(event);
5554
- }
5555
- commitPrice(price) {
5556
- return __awaiter(this, void 0, void 0, function* () {
5557
- return true;
5558
- // return this._transactionService.updatePrice(this.transactionLine, price);
5559
- });
5560
- }
5561
- }
5562
- TransactionLineSidePanelComponent.decorators = [
5563
- { type: Component, args: [{
5564
- selector: "co-transaction-line-side-panel",
5565
- template: `
5566
- <div class="transaction-side-panel-header">
5567
- <co-button (click)="handleCancelClick($event)" [iconData]="iconService.getIcon(icons.Cancel)" class="white circle small"></co-button>
5568
- <span class="side-panel-header-description" [textContent]="transactionLine.goodDescription"></span>
5569
- <span class="side-panel-header-divider" [textContent]="'|'"></span>
5570
- <span class="side-panel-header-sku" [textContent]="transactionLine.articleNumber"></span>
5571
- </div>
5572
- <div class="transaction-line-side-panel-content">
5573
- <co-collapsible
5574
- [iconData]="iconService.getIcon(icons.TriangleUp)"
5575
- [headerTitle]="'PRICING' | localize"
5576
- [expandButtonLast]="true"
5577
- [expanded]="true"
5578
- >
5579
- <div class="collapsible-content-wrapper">
5580
- <div class="side-panel-input-row">
5581
- <co-input-text class="side-panel-input" [placeholder]="'NET_LINE_TOTAL' | localize" [model]="transactionLine.netLineTotal" [readonly]="true"></co-input-text>
5582
- </div>
5583
- <div class="side-panel-input-row">
5584
- <co-input-number-picker class="side-panel-input" [label]="'AMOUNT' | localize" [(model)]="transactionLine.amount"></co-input-number-picker>
5585
- <co-input-text #inputPrice class="side-panel-input"
5586
- [placeholder]="'PRICE' | localize"
5587
- [type]="'number'"
5588
- [showSaveCancel]="true"
5589
- [(model)]="transactionLine.price"
5590
- ></co-input-text>
5591
- </div>
5592
- <div class="side-panel-input-row">
5593
- <co-input-combo-box class="side-panel-input" [collection]="data" [(model)]="transactionLine.vatId" [placeholder]="'VAT' | localize"></co-input-combo-box>
5594
- <co-input-combo-box class="side-panel-input" [collection]="data" [(model)]="transactionLine.priceListCode" [placeholder]="'PRICE_LIST' | localize"></co-input-combo-box>
5595
- </div>
5596
- </div>
5597
- </co-collapsible>
5598
- <co-collapsible
5599
- [iconData]="iconService.getIcon(icons.TriangleUp)"
5600
- [headerTitle]="'DISCOUNTS' | localize"
5601
- [expandButtonLast]="true"
5602
- [expanded]="true"
5603
- >
5604
- <div class="collapsible-content-wrapper">
5605
- <div class="side-panel-input-row">
5606
- <co-input-text class="side-panel-input" [placeholder]="'TOTAL_LINE_DISCOUNT' | localize" [model]="transactionLine.lineTotalDiscountAmount" [readonly]="true"></co-input-text>
5607
- </div>
5608
- <div class="side-panel-input-row">
5609
- <co-input-text class="side-panel-input" [placeholder]="'DISCOUNT_PERCENTAGE' | localize" [type]="'number'" [model]="transactionLine.discountAmount"></co-input-text>
5610
- <co-input-text class="side-panel-input" [placeholder]="'DISCOUNT_AMOUNT' | localize" [type]="'number'" [(model)]="transactionLine.lineDiscount"></co-input-text>
5611
- </div>
5612
- <div class="side-panel-input-row">
5613
- <co-input-text class="side-panel-input" [placeholder]="'QUANTUM_DISCOUNT' | localize" [type]="'number'" [model]="transactionLine.quantumDiscount"></co-input-text>
5614
- <co-input-text class="side-panel-input" [placeholder]="'SPECIAL_DISCOUNT' | localize" [type]="'number'" [(model)]="transactionLine.specialDiscount"></co-input-text>
5615
- </div>
5616
- <div class="side-panel-input-row">
5617
- <co-input-text class="side-panel-input" [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="true"></co-input-text>
5618
- <co-input-text class="side-panel-input" [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="true"></co-input-text>
5619
- </div>
5620
- </div>
5621
- </co-collapsible>
5622
- <co-collapsible
5623
- [iconData]="iconService.getIcon(icons.TriangleUp)"
5624
- [headerTitle]="'LOGISTICS_AND_PLANNING' | localize"
5625
- [expandButtonLast]="true"
5626
- [expanded]="true"
5627
- >
5628
- <div class="collapsible-content-wrapper">
5629
- <div class="side-panel-input-row">
5630
- <co-input-combo-box class="side-panel-input" [collection]="data" [(model)]="transactionLine.commissionCode" [placeholder]="'COMMISSION_CODE' | localize"></co-input-combo-box>
5631
- <co-input-text class="side-panel-input" [placeholder]="'WAREHOUSE' | localize" [model]="transactionLine.warehouseNumber"></co-input-text>
5632
- </div>
5633
- <div class="side-panel-input-row">
5634
- <co-input-combo-box class="side-panel-input" [collection]="data" [placeholder]="'DELIVERY_METHOD' | localize"></co-input-combo-box>
5635
- <co-input-date class="side-panel-input" [placeholder]="'DELIVERY_DATE' | localize" [model]="transactionLine.deliveryDate"></co-input-date>
5636
- </div>
5637
- <div class="side-panel-input-row">
5638
- <co-input-text class="side-panel-input" [placeholder]="'ASSEMBLY_TIME' | localize" [readonly]="true"></co-input-text>
5639
- <co-input-text class="side-panel-input" [placeholder]="'ASSEMBLY_COSTS' | localize" [type]="'number'" [model]="transactionLine.assemblyCost" [readonly]="true"></co-input-text>
5640
- </div>
5641
- <div class="side-panel-input-row">
5642
- <co-input-text class="side-panel-input" [placeholder]="'MODIFICATION_TIME' | localize" [readonly]="true"></co-input-text>
5643
- </div>
5644
- <div class="side-panel-input-row">
5645
- <co-input-combo-box class="side-panel-input" [collection]="data" [placeholder]="'SUPPLIER' | localize"></co-input-combo-box>
5646
- <co-input-text class="side-panel-input" [placeholder]="'ARTICLE_NR_SUPPLIER' | localize" [model]="transactionLine.articleNumber" [readonly]="true"></co-input-text>
5647
- </div>
5648
- <div class="side-panel-input-row">
5649
- <co-input-text class="side-panel-input" [placeholder]="'IN_OUT_COLLECTION' | localize" [readonly]="true"></co-input-text>
5650
- </div>
5651
- </div>
5652
- </co-collapsible>
5653
-
5654
- <co-collapsible
5655
- [iconData]="iconService.getIcon(icons.TriangleUp)"
5656
- [headerTitle]="'OTHER' | localize"
5657
- [expandButtonLast]="true"
5658
- [expanded]="true"
5659
- >
5660
- <div class="collapsible-content-wrapper">
5661
- <div class="side-panel-input-row">
5662
- <co-input-text class="side-panel-input" [placeholder]="'REFERENCE' | localize" [model]="transactionLine.refLineNr"></co-input-text>
5663
- </div>
5664
- <div class="side-panel-input-row">
5665
- <co-input-text class="side-panel-input" [placeholder]="'ORDER_RULESET' | localize"></co-input-text>
5666
- </div>
5667
- <div class="side-panel-input-row">
5668
- <co-input-text class="side-panel-input" [placeholder]="'LAST_EDITED_DATE' | localize" [readonly]="true"></co-input-text>
5669
- <co-input-text class="side-panel-input" [placeholder]="'LAST_EDITED_USER' | localize" [readonly]="true"></co-input-text>
5670
- </div>
5671
- <co-input-text [placeholder]="'FABRICATION_COST' | localize" [readonly]="true"></co-input-text>
5672
- <co-input-text [placeholder]="'TRANSPORT_COST' | localize" [readonly]="true"></co-input-text>
5673
- <co-input-text [placeholder]="'FABRICATION_COST_LINE_TOTAL' | localize" [readonly]="true"></co-input-text>
5674
- <co-input-text [placeholder]="'TRANSPORT_COST_LINE_TOTAL' | localize" [readonly]="true"></co-input-text>
5675
- <co-input-text [placeholder]="'CUSTOMER' | localize" [readonly]="true"></co-input-text>
5676
- </div>
5677
- </co-collapsible>
5678
- </div>
5679
- `,
5680
- encapsulation: ViewEncapsulation.None
5681
- },] }
5682
- ];
5683
- TransactionLineSidePanelComponent.ctorParameters = () => [
5684
- { type: IconCacheService },
5685
- { type: TransactionService }
5686
- ];
5687
- TransactionLineSidePanelComponent.propDecorators = {
5688
- child: [{ type: ViewChild, args: ['inputPrice', { read: InputTextComponent },] }],
5689
- transactionLine: [{ type: Input }],
5690
- cancelClick: [{ type: Output }],
5691
- showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel",] }]
5692
- };
5693
-
5694
- class TransactionLineSidePanelModule {
5695
- }
5696
- TransactionLineSidePanelModule.decorators = [
5697
- { type: NgModule, args: [{
5698
- imports: [
5699
- CommonModule,
5700
- CoreModule,
5701
- PipeModule,
5702
- ButtonModule,
5703
- CollapsibleModule,
5704
- InputTextModule,
5705
- InputComboBoxModule,
5706
- InputDatePickerModule,
5707
- InputNumberPickerModule
5708
- ],
5709
- declarations: [
5710
- TransactionLineSidePanelComponent
5711
- ],
5712
- exports: [
5713
- TransactionLineSidePanelComponent
5714
- ]
5715
- },] }
5716
- ];
5717
-
5718
6078
  class TransactionLineModule {
5719
6079
  }
5720
6080
  TransactionLineModule.decorators = [
@@ -5726,8 +6086,7 @@ TransactionLineModule.decorators = [
5726
6086
  InputNumberPickerModule,
5727
6087
  TransactionArticleTextModule,
5728
6088
  TransactionArticleTextOverviewModule,
5729
- PipeModule,
5730
- TransactionLineSidePanelModule
6089
+ PipeModule
5731
6090
  ],
5732
6091
  declarations: [
5733
6092
  TransactionLineComponent
@@ -5746,6 +6105,7 @@ class TransactionLinesComponent {
5746
6105
  this.transactionLines = [];
5747
6106
  this.preview = false;
5748
6107
  this.saveTransactionLine = new EventEmitter();
6108
+ this.showSidePanelClicked = new EventEmitter();
5749
6109
  this.showTransactionArticleText = false;
5750
6110
  this.userActionRequired = false;
5751
6111
  }
@@ -5800,6 +6160,9 @@ class TransactionLinesComponent {
5800
6160
  this.saveTransactionLine.next(transactionLine);
5801
6161
  this._hideArticleTextDialog();
5802
6162
  }
6163
+ handleShowSidePanelClicked(event, line) {
6164
+ this.showSidePanelClicked.next({ show: event, line: line });
6165
+ }
5803
6166
  _showArticleTextDialog() {
5804
6167
  this.showTransactionArticleText = true;
5805
6168
  }
@@ -5824,6 +6187,7 @@ TransactionLinesComponent.decorators = [
5824
6187
  [preview]="preview"
5825
6188
  [line]="line"
5826
6189
  (dblclick)="handleTransactionLineDblClick(line)"
6190
+ (showSidePanelClicked)="handleShowSidePanelClicked($event, line)"
5827
6191
  (waitingForUserAction)="userActionRequired = $event"></co-transaction-line>
5828
6192
  </div>
5829
6193
  </div>
@@ -5850,6 +6214,7 @@ TransactionLinesComponent.propDecorators = {
5850
6214
  transactionLines: [{ type: Input }],
5851
6215
  preview: [{ type: Input }],
5852
6216
  saveTransactionLine: [{ type: Output }],
6217
+ showSidePanelClicked: [{ type: Output }],
5853
6218
  showClass: [{ type: HostBinding, args: ["class.co-transaction-lines",] }]
5854
6219
  };
5855
6220
 
@@ -6349,24 +6714,45 @@ var ContentViewMode;
6349
6714
  ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
6350
6715
  })(ContentViewMode || (ContentViewMode = {}));
6351
6716
 
6717
+ var TabCategory;
6718
+ (function (TabCategory) {
6719
+ TabCategory[TabCategory["Overview"] = 0] = "Overview";
6720
+ TabCategory[TabCategory["OrderConfirmation"] = 1] = "OrderConfirmation";
6721
+ TabCategory[TabCategory["Transport"] = 2] = "Transport";
6722
+ TabCategory[TabCategory["ReceivedGoods"] = 3] = "ReceivedGoods";
6723
+ TabCategory[TabCategory["InvoiceCheck"] = 4] = "InvoiceCheck";
6724
+ TabCategory[TabCategory["Menu"] = 5] = "Menu";
6725
+ })(TabCategory || (TabCategory = {}));
6726
+
6352
6727
  class TransactionComponent {
6353
6728
  constructor(iconCacheService, _service) {
6354
6729
  this.iconCacheService = iconCacheService;
6355
6730
  this._service = _service;
6356
6731
  this.viewModes = ContentViewMode;
6732
+ this.tabCategory = TabCategory;
6357
6733
  this.icons = Icon;
6358
- this.transaction = new TransactionInfoResponse();
6359
6734
  this.showHeader = true;
6360
6735
  this.activeViewMode = ContentViewMode.List;
6736
+ this.activeTabCategory = TabCategory.Overview;
6361
6737
  this.showDiscountsSidebar = false;
6738
+ this.showSidePanel = false;
6362
6739
  this._subs = [];
6740
+ this._transaction = new TransactionInfoResponse();
6363
6741
  this._subs.push(this._service.transactionUpdated.subscribe((transaction) => __awaiter(this, void 0, void 0, function* () {
6364
6742
  this.transaction = transaction;
6365
6743
  })));
6366
6744
  }
6745
+ set transaction(value) {
6746
+ if (value) {
6747
+ this._transaction = value;
6748
+ }
6749
+ }
6750
+ get transaction() {
6751
+ return this._transaction;
6752
+ }
6367
6753
  set transactionId(value) {
6368
6754
  if (value) {
6369
- this._service.getTransactionById(value);
6755
+ this._service.getTransactionById(value).catch(() => { });
6370
6756
  }
6371
6757
  }
6372
6758
  showClass() {
@@ -6389,41 +6775,86 @@ class TransactionComponent {
6389
6775
  this._service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, transactionAddTextLineRequest.articleBound, 0, 0, 0);
6390
6776
  }
6391
6777
  }
6778
+ handleNavigationTabClicked(tab) {
6779
+ this.activeTabCategory = tab;
6780
+ }
6781
+ handleShowSidePanel(event) {
6782
+ this.showSidePanel = event.show;
6783
+ this.sidePanelTransactionLine = event.line;
6784
+ }
6785
+ handleCloseSidePanel(event) {
6786
+ this.showSidePanel = false;
6787
+ }
6788
+ openSidePanel() {
6789
+ this.showSidePanel = true;
6790
+ }
6392
6791
  }
6393
6792
  TransactionComponent.decorators = [
6394
6793
  { type: Component, args: [{
6395
6794
  selector: "co-transaction",
6396
6795
  template: `
6397
6796
  <co-transaction-header *ngIf="showHeader" [transaction]="transaction"></co-transaction-header>
6398
- <div class="transaction-view-mode-buttons">
6399
- <co-button class="view-button white"
6400
- [class.selected]="this.activeViewMode === viewModes.List"
6401
- [iconData]="iconCacheService.getIcon(icons.ThickLines)"
6402
- [title]="'LIST_VIEW' | localize"
6403
- (click)="this.activeViewMode = viewModes.List"></co-button>
6404
- <co-button class="view-button white"
6405
- [class.selected]="this.activeViewMode === viewModes.Grid"
6406
- [iconData]="iconCacheService.getIcon(icons.ThinLines)"
6407
- [title]="'GRID_VIEW' | localize"
6408
- (click)="this.activeViewMode = viewModes.Grid"></co-button>
6797
+
6798
+ <div class="transaction-lines-header">
6799
+ <co-transaction-commit-bar
6800
+ [activeCategory]="activeTabCategory"
6801
+ ></co-transaction-commit-bar>
6802
+
6803
+ <co-transaction-nav-bar
6804
+ (tabClicked)="handleNavigationTabClicked($event)"
6805
+ ></co-transaction-nav-bar>
6806
+
6807
+ <div class="transaction-view-mode-buttons">
6808
+ <co-button class="view-button white"
6809
+ [class.selected]="this.activeViewMode === viewModes.List"
6810
+ [iconData]="iconCacheService.getIcon(icons.ThickLines)"
6811
+ [title]="'LIST_VIEW' | localize"
6812
+ (click)="this.activeViewMode = viewModes.List"></co-button>
6813
+ <co-button class="view-button white"
6814
+ [class.selected]="this.activeViewMode === viewModes.Grid"
6815
+ [iconData]="iconCacheService.getIcon(icons.ThinLines)"
6816
+ [title]="'GRID_VIEW' | localize"
6817
+ (click)="this.activeViewMode = viewModes.Grid"></co-button>
6818
+ </div>
6409
6819
  </div>
6820
+
6410
6821
  <div class="transaction-lines-wrapper" *ngIf="activeViewMode === viewModes.List">
6411
6822
  <co-transaction-lines
6412
6823
  [transactionLines]="transaction.transactionLines"
6824
+ (showSidePanelClicked)="handleShowSidePanel($event)"
6413
6825
  (saveTransactionLine)="saveTransactionLine($event)"
6414
6826
  ></co-transaction-lines>
6415
6827
  </div>
6416
6828
  <div class="transaction-lines-grid-wrapper" *ngIf="activeViewMode === viewModes.Grid">
6417
6829
  <co-transaction-lines-grid
6830
+ *ngIf="activeTabCategory === 0"
6418
6831
  [transactionLines]="transaction.transactionLines"
6419
6832
  ></co-transaction-lines-grid>
6833
+ <co-order-confirmation-grid
6834
+ *ngIf="activeTabCategory === 1"
6835
+ [orderLines]="transaction.transactionLines"
6836
+ (sidePanelClicked)="openSidePanel()"
6837
+ ></co-order-confirmation-grid>
6420
6838
  </div>
6421
6839
  <div class="transaction-footer-wrapper">
6422
6840
  <co-transaction-totals [totals]="transaction.transactionTotal" [showDiscount]="true" (discountClick)="addDiscount()"></co-transaction-totals>
6423
6841
  </div>
6424
6842
  <co-discount *ngIf="showDiscountsSidebar">
6425
6843
  </co-discount>
6844
+
6845
+ <co-transaction-line-side-panel *ngIf="showSidePanel" @showHideSidePanel
6846
+ [activeTabCategory]="activeTabCategory"
6847
+ [transactionLine]="sidePanelTransactionLine"
6848
+ (cancelClick)="handleCloseSidePanel($event)"
6849
+ ></co-transaction-line-side-panel>
6426
6850
  `,
6851
+ animations: [
6852
+ trigger("showHideSidePanel", [
6853
+ state("void", style({ transform: 'translateX(100%)' })),
6854
+ state("*", style({ transform: 'translateX(0)' })),
6855
+ transition("void <=> *", animate("200ms ease-in-out"))
6856
+ ])
6857
+ ],
6427
6858
  encapsulation: ViewEncapsulation.None
6428
6859
  },] }
6429
6860
  ];
@@ -6442,11 +6873,20 @@ class TransactionHeaderComponent {
6442
6873
  constructor() {
6443
6874
  this.icons = Icon;
6444
6875
  this.expanded = true;
6876
+ this._transaction = new TransactionInfoResponse();
6877
+ }
6878
+ set transaction(value) {
6879
+ if (value) {
6880
+ this._transaction = value;
6881
+ this.relationId = this.transaction.transactionInfo && this.transaction.transactionInfo.relation ? this.transaction.transactionInfo.relation.relationId : undefined;
6882
+ }
6883
+ }
6884
+ get transaction() {
6885
+ return this._transaction;
6445
6886
  }
6446
6887
  showClass() {
6447
6888
  return true;
6448
6889
  }
6449
- // public relation: CustomerFullObject = new CustomerFullObject();
6450
6890
  handleExpandClick(event) {
6451
6891
  this.expanded = !this.expanded;
6452
6892
  }
@@ -6459,8 +6899,8 @@ TransactionHeaderComponent.decorators = [
6459
6899
  <div class="collapse-handle" [class.expanded]="expanded" (click)="handleExpandClick($event)">
6460
6900
  <icon class="collapse-icon" [icon]="icons.ArrowPointDown"></icon>
6461
6901
  </div>
6462
- <co-transaction-header-relation [relationId]="transaction.transactionInfo.relation.relationId" [expanded]="expanded"></co-transaction-header-relation>
6463
- <co-transaction-header-contact [relationId]="transaction.transactionInfo.relation.relationId" [expanded]="expanded"></co-transaction-header-contact>
6902
+ <co-transaction-header-relation [relationId]="relationId" [expanded]="expanded"></co-transaction-header-relation>
6903
+ <co-transaction-header-contact [relationId]="relationId" [expanded]="expanded"></co-transaction-header-contact>
6464
6904
  <co-transaction-header-delivery [transaction]="transaction" [expanded]="expanded"></co-transaction-header-delivery>
6465
6905
  </div>
6466
6906
  `,
@@ -6505,21 +6945,19 @@ class TransactionBaseComponent {
6505
6945
  return this._transaction;
6506
6946
  }
6507
6947
  set relationId(value) {
6508
- if (value === undefined) {
6509
- return;
6948
+ if (value !== undefined) {
6949
+ this._relationId = value;
6950
+ this._retrieveRelation();
6510
6951
  }
6511
- this._relationId = value;
6512
- this._retrieveRelation();
6513
6952
  }
6514
6953
  get relationId() {
6515
6954
  return this._relationId;
6516
6955
  }
6517
6956
  set customerId(value) {
6518
- if (value === undefined) {
6519
- return;
6957
+ if (value !== undefined) {
6958
+ this._customerId = value;
6959
+ this._retrieveCustomer();
6520
6960
  }
6521
- this._customerId = value;
6522
- this._retrieveCustomer();
6523
6961
  }
6524
6962
  get customerId() {
6525
6963
  return this._customerId;
@@ -6671,7 +7109,10 @@ class TransactionHeaderDeliveryComponent extends TransactionBaseComponent {
6671
7109
  transactionSet() {
6672
7110
  this.service.getDeliveryMethods().then((methods) => {
6673
7111
  this.deliveryMethods = methods;
6674
- this.deliveryMethod = this.deliveryMethods.find(m => m.code === this.transactionInfo.deliveryMethod);
7112
+ const dm = this.deliveryMethods.find(m => m.code === this.transactionInfo.deliveryMethod);
7113
+ if (dm) {
7114
+ this.deliveryMethod = dm;
7115
+ }
6675
7116
  });
6676
7117
  }
6677
7118
  }
@@ -6751,6 +7192,10 @@ class TransactionLinesGridComponent {
6751
7192
  this._service = _service;
6752
7193
  this.align = ColumnAlign;
6753
7194
  this.transactionLines = [];
7195
+ this.extraColumns = [];
7196
+ }
7197
+ set content(columnComponents) {
7198
+ this.extraColumns = columnComponents.toArray();
6754
7199
  }
6755
7200
  showClass() {
6756
7201
  return true;
@@ -6772,19 +7217,19 @@ TransactionLinesGridComponent.decorators = [
6772
7217
  { type: Component, args: [{
6773
7218
  selector: "co-transaction-lines-grid",
6774
7219
  template: `
6775
- <co-simple-grid [data]="transactionLines" [dragDropEnabled]="true" [emitDragDrop]="true" (onDrop)="handleDrop($event)">
6776
- <co-simple-grid-column [headerText]="'ARTICLE_NR' | localize" [field]="'articleNumber'"></co-simple-grid-column>
6777
- <co-simple-grid-column [headerText]="'GOOD_DESCRIPTION' | localize" [field]="'goodDescription'"></co-simple-grid-column>
6778
- <co-simple-grid-column [headerText]="'PRICE' | localize" [field]="'price'" [textAlign]="align.Right"></co-simple-grid-column>
6779
- <co-simple-grid-column [headerText]="'AMOUNT' | localize" [textAlign]="align.Right" [width]="100" [resizable]="false">
7220
+ <co-simple-grid [data]="transactionLines" [extraColumns]="extraColumns" [dragDropEnabled]="true" [emitDragDrop]="true" (onDrop)="handleDrop($event)">
7221
+ <co-simple-grid-column [headerText]="'ARTICLE_NR' | localize" [field]="'articleNumber'" [order]="10"></co-simple-grid-column>
7222
+ <co-simple-grid-column [headerText]="'GOOD_DESCRIPTION' | localize" [field]="'goodDescription'" [order]="20"></co-simple-grid-column>
7223
+ <co-simple-grid-column [headerText]="'PRICE' | localize" [field]="'price'" [textAlign]="align.Right" [order]="30"></co-simple-grid-column>
7224
+ <co-simple-grid-column [headerText]="'AMOUNT' | localize" [textAlign]="align.Right" [width]="100" [resizable]="false" [order]="40">
6780
7225
  <ng-template let-row = "row">
6781
7226
  <co-input-number-picker class="transaction-lines-grid-amount"
6782
7227
  [model]="row.amount" [min]="0" [readonly]="true" (modelChange)="changeLineAmount(row, $event)"></co-input-number-picker>
6783
7228
  </ng-template>
6784
7229
  </co-simple-grid-column>
6785
- <co-simple-grid-column [headerText]="'PRICE_LIST' | localize" [field]="'priceListCode'" [textAlign]="align.Right"></co-simple-grid-column>
6786
- <co-simple-grid-column [headerText]="'ASSEMBLY_COSTS' | localize" [field]="'assemblyCost'" [textAlign]="align.Right"></co-simple-grid-column>
6787
- <co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'" [textAlign]="align.Right"></co-simple-grid-column>
7230
+ <co-simple-grid-column [headerText]="'PRICE_LIST' | localize" [field]="'priceListCode'" [textAlign]="align.Right" [order]="80"></co-simple-grid-column>
7231
+ <co-simple-grid-column [headerText]="'ASSEMBLY_COSTS' | localize" [field]="'assemblyCost'" [textAlign]="align.Right" [order]="90"></co-simple-grid-column>
7232
+ <co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'" [textAlign]="align.Right" [order]="100"></co-simple-grid-column>
6788
7233
  </co-simple-grid>
6789
7234
  `,
6790
7235
  encapsulation: ViewEncapsulation.None
@@ -6795,6 +7240,7 @@ TransactionLinesGridComponent.ctorParameters = () => [
6795
7240
  { type: TransactionService }
6796
7241
  ];
6797
7242
  TransactionLinesGridComponent.propDecorators = {
7243
+ content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
6798
7244
  transactionLines: [{ type: Input }],
6799
7245
  showClass: [{ type: HostBinding, args: ["class.co-transaction-lines-grid",] }]
6800
7246
  };
@@ -6808,7 +7254,8 @@ TransactionLinesGridModule.decorators = [
6808
7254
  CoreModule,
6809
7255
  SimpleGridModule,
6810
7256
  InputNumberPickerModule,
6811
- PipeModule
7257
+ PipeModule,
7258
+ ButtonModule
6812
7259
  ],
6813
7260
  declarations: [
6814
7261
  TransactionLinesGridComponent
@@ -6953,24 +7400,1764 @@ DiscountModule.decorators = [
6953
7400
  },] }
6954
7401
  ];
6955
7402
 
6956
- class TransactionModule {
7403
+ class TransactionCommitBarComponent {
7404
+ constructor() {
7405
+ this.tabCategory = TabCategory;
7406
+ this.commitDate = new Date();
7407
+ this.checkboxValueChanged = new EventEmitter();
7408
+ }
7409
+ showClass() {
7410
+ return true;
7411
+ }
6957
7412
  }
6958
- TransactionModule.decorators = [
7413
+ TransactionCommitBarComponent.decorators = [
7414
+ { type: Component, args: [{
7415
+ selector: "co-transaction-commit-bar",
7416
+ template: `
7417
+ <div class="commit-bar-wrapper">
7418
+ <co-input-date class="commit-bar-item"
7419
+ [placeholder]="'CONFIRMED_DATE' | localize"
7420
+ [(model)]="this.commitDate"
7421
+ ></co-input-date>
7422
+ <co-input-text *ngIf="activeCategory === tabCategory.OrderConfirmation" class="commit-bar-item"
7423
+ [placeholder]="'REFERENCE' | localize"
7424
+ [(model)]="this.commitReferenceId"
7425
+ ></co-input-text>
7426
+ <co-input-text *ngIf="activeCategory === tabCategory.ReceivedGoods" class="commit-bar-item"
7427
+ [placeholder]="'PACKING_SLIP' | localize"
7428
+ [(model)]="this.commitReferenceId"
7429
+ ></co-input-text>
7430
+ <co-input-checkbox
7431
+ (modelChange)="checkboxValueChanged.next($event)"
7432
+ ></co-input-checkbox>
7433
+ </div>
7434
+ `,
7435
+ encapsulation: ViewEncapsulation.None
7436
+ },] }
7437
+ ];
7438
+ TransactionCommitBarComponent.propDecorators = {
7439
+ activeCategory: [{ type: Input }],
7440
+ commitDate: [{ type: Input }],
7441
+ commitReferenceId: [{ type: Input }],
7442
+ packingSlipId: [{ type: Input }],
7443
+ checkboxValueChanged: [{ type: Output }],
7444
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-commit-bar",] }]
7445
+ };
7446
+
7447
+ class TransactionCommitBarModule {
7448
+ }
7449
+ TransactionCommitBarModule.decorators = [
6959
7450
  { type: NgModule, args: [{
6960
7451
  imports: [
6961
7452
  CommonModule,
6962
7453
  CoreModule,
6963
- TransactionHeaderModule,
6964
- TransactionLinesModule,
6965
- TransactionTotalsModule,
6966
- ButtonModule,
6967
- TransactionLinesGridModule,
6968
- CoDialogModule,
6969
- FormModule,
6970
7454
  InputTextModule,
6971
- CoSidebarModule,
6972
- DiscountModule,
6973
- PipeModule
7455
+ InputDatePickerModule,
7456
+ PipeModule,
7457
+ InputCheckboxModule,
7458
+ ],
7459
+ declarations: [
7460
+ TransactionCommitBarComponent
7461
+ ],
7462
+ exports: [
7463
+ TransactionCommitBarComponent
7464
+ ]
7465
+ },] }
7466
+ ];
7467
+
7468
+ class TransactionNavBarComponent {
7469
+ constructor(_dictionaryService) {
7470
+ this._dictionaryService = _dictionaryService;
7471
+ this.icons = Icon;
7472
+ this.selectedTab = TabCategory.Overview;
7473
+ this.tabClicked = new EventEmitter();
7474
+ this.tabs = [
7475
+ { category: TabCategory.Overview,
7476
+ title: this._dictionaryService.get('OVERVIEW'),
7477
+ iconName: this.icons.Tag },
7478
+ { category: TabCategory.OrderConfirmation,
7479
+ title: this._dictionaryService.get('CONFIRMATION'),
7480
+ iconName: this.icons.DeliveryTruck },
7481
+ { category: TabCategory.Transport,
7482
+ title: this._dictionaryService.get('TRANSPORT'),
7483
+ iconName: this.icons.Txt },
7484
+ { category: TabCategory.ReceivedGoods,
7485
+ title: this._dictionaryService.get('RECEIVED'),
7486
+ iconName: this.icons.ThinLines },
7487
+ { category: TabCategory.InvoiceCheck,
7488
+ title: this._dictionaryService.get('INVOICE_CHECK'),
7489
+ iconName: this.icons.ThickLines },
7490
+ { category: TabCategory.Menu,
7491
+ title: this._dictionaryService.get('MENU'),
7492
+ iconName: this.icons.CalendarDay }
7493
+ ];
7494
+ }
7495
+ showClass() {
7496
+ return true;
7497
+ }
7498
+ handleTabClick(category) {
7499
+ this.selectedTab = category;
7500
+ this.tabClicked.next(category);
7501
+ }
7502
+ }
7503
+ TransactionNavBarComponent.decorators = [
7504
+ { type: Component, args: [{
7505
+ selector: "co-transaction-nav-bar",
7506
+ template: `
7507
+ <div class="nav-bar-wrapper">
7508
+ <div class="custom-button-wrapper" *ngFor="let tab of tabs">
7509
+ <co-transaction-nav-bar-button
7510
+ [tabData]="tab"
7511
+ [selectedCategory]="selectedTab"
7512
+ (click)="handleTabClick(tab.category)"
7513
+ ></co-transaction-nav-bar-button>
7514
+ </div>
7515
+ </div>
7516
+ `,
7517
+ encapsulation: ViewEncapsulation.None
7518
+ },] }
7519
+ ];
7520
+ TransactionNavBarComponent.ctorParameters = () => [
7521
+ { type: DictionaryService }
7522
+ ];
7523
+ TransactionNavBarComponent.propDecorators = {
7524
+ selectedTab: [{ type: Input }],
7525
+ tabClicked: [{ type: Output }],
7526
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-nav-bar",] }]
7527
+ };
7528
+
7529
+ class TransactionNavBarButtonComponent {
7530
+ constructor(iconCacheService) {
7531
+ this.iconCacheService = iconCacheService;
7532
+ this.icons = Icon;
7533
+ }
7534
+ }
7535
+ TransactionNavBarButtonComponent.decorators = [
7536
+ { type: Component, args: [{
7537
+ selector: "co-transaction-nav-bar-button",
7538
+ template: `
7539
+ <div class="button-wrapper" [class.selected]="tabData.category === selectedCategory">
7540
+ <co-icon [iconData]="iconCacheService.getIcon(tabData.iconName)"></co-icon>
7541
+ <span class="button-title" [textContent]="tabData.title"></span>
7542
+ </div>
7543
+ `,
7544
+ styles: [":host .button-wrapper{height:65px;min-width:65px;background:white;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}:host .button-wrapper .button-title{font-size:.8em;padding:0 7px 4px}:host .selected{box-shadow:0 0 0 1px #558be3 inset}\n"]
7545
+ },] }
7546
+ ];
7547
+ TransactionNavBarButtonComponent.ctorParameters = () => [
7548
+ { type: IconCacheService }
7549
+ ];
7550
+ TransactionNavBarButtonComponent.propDecorators = {
7551
+ tabData: [{ type: Input }],
7552
+ selectedCategory: [{ type: Input }]
7553
+ };
7554
+
7555
+ class TransactionNavBarModule {
7556
+ }
7557
+ TransactionNavBarModule.decorators = [
7558
+ { type: NgModule, args: [{
7559
+ imports: [
7560
+ CommonModule,
7561
+ CoreModule,
7562
+ IconModule,
7563
+ ],
7564
+ declarations: [
7565
+ TransactionNavBarComponent,
7566
+ TransactionNavBarButtonComponent
7567
+ ],
7568
+ exports: [
7569
+ TransactionNavBarComponent,
7570
+ TransactionNavBarButtonComponent
7571
+ ]
7572
+ },] }
7573
+ ];
7574
+
7575
+ class TransactionLineSidePanelComponent {
7576
+ constructor(iconService) {
7577
+ this.iconService = iconService;
7578
+ this.icons = Icon;
7579
+ this.tabCategory = TabCategory;
7580
+ this.cancelClick = new EventEmitter();
7581
+ }
7582
+ showClass() {
7583
+ return true;
7584
+ }
7585
+ handleCancelClick(event) {
7586
+ this.cancelClick.next(event);
7587
+ }
7588
+ handleSaveDetailsEdit() {
7589
+ }
7590
+ handleCancelDetailsEdit() {
7591
+ }
7592
+ }
7593
+ TransactionLineSidePanelComponent.decorators = [
7594
+ { type: Component, args: [{
7595
+ selector: "co-transaction-line-side-panel",
7596
+ template: `
7597
+ <div class="transaction-line-side-panel-header">
7598
+ <div class="transaction-line-side-panel-header-item">
7599
+ <span class="side-panel-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
7600
+ <span class="side-panel-header-field" [textContent]="transactionLine.articleNumber"></span>
7601
+ </div>
7602
+ <div class="side-panel-header-divider"></div>
7603
+ <div class="transaction-line-side-panel-header-item">
7604
+ <span class="side-panel-header-label" [textContent]="'DESCRIPTION'| localize"></span>
7605
+ <span class="side-panel-header-field" [textContent]="transactionLine.goodDescription"></span>
7606
+ </div>
7607
+ <div class="side-panel-header-divider"></div>
7608
+ <div class="transaction-line-side-panel-header-item">
7609
+ <span class="side-panel-header-label" [textContent]="'AMOUNT'| localize"></span>
7610
+ <span class="side-panel-header-field" [textContent]="transactionLine.amount"></span>
7611
+ </div>
7612
+ <div class="side-panel-header-divider"></div>
7613
+ <div class="transaction-line-side-panel-header-item">
7614
+ <span class="side-panel-header-label" [textContent]="'PRICE'| localize"></span>
7615
+ <span class="side-panel-header-field" [textContent]="transactionLine.price | priceDisplay"></span>
7616
+ </div>
7617
+ <icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
7618
+ </div>
7619
+ <div class="transaction-line-side-panel-nav-bar">
7620
+ <co-transaction-nav-bar
7621
+ [selectedTab]="activeTabCategory"
7622
+ (tabClicked)="activeTabCategory = $event"
7623
+ ></co-transaction-nav-bar>
7624
+ </div>
7625
+ <div class="transaction-line-side-panel-content">
7626
+ <ng-container [ngSwitch]="activeTabCategory">
7627
+ <ng-container *ngSwitchCase="tabCategory.OrderConfirmation">
7628
+ <co-transaction-confirmation-history></co-transaction-confirmation-history>
7629
+ </ng-container>
7630
+
7631
+ <ng-container *ngSwitchCase="tabCategory.ReceivedGoods">
7632
+ <co-transaction-receiving-goods-details></co-transaction-receiving-goods-details>
7633
+ <div class="save-cancel-wrapper">
7634
+ <co-button class="button-wrapper" [label]="'SAVE' | localize" (click)="handleSaveDetailsEdit()"></co-button>
7635
+ <co-button class="button-wrapper" [label]="'CANCEL' | localize" (click)="handleCancelDetailsEdit()"></co-button>
7636
+ </div>
7637
+ <co-transaction-receiving-goods-history></co-transaction-receiving-goods-history>
7638
+ </ng-container>
7639
+
7640
+ <ng-container *ngSwitchDefault>
7641
+ <co-transaction-line-side-panel-default
7642
+ [transactionLine]="transactionLine"
7643
+ (cancelClick)="handleCancelClick($event)"
7644
+ ></co-transaction-line-side-panel-default>
7645
+ </ng-container>
7646
+ </ng-container>
7647
+ </div>
7648
+ `,
7649
+ encapsulation: ViewEncapsulation.None
7650
+ },] }
7651
+ ];
7652
+ TransactionLineSidePanelComponent.ctorParameters = () => [
7653
+ { type: IconCacheService }
7654
+ ];
7655
+ TransactionLineSidePanelComponent.propDecorators = {
7656
+ transactionLine: [{ type: Input }],
7657
+ activeTabCategory: [{ type: Input }],
7658
+ cancelClick: [{ type: Output }],
7659
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel",] }]
7660
+ };
7661
+
7662
+ class TransactionLineSidePanelDefaultComponent {
7663
+ constructor(iconService, _transactionService) {
7664
+ this.iconService = iconService;
7665
+ this._transactionService = _transactionService;
7666
+ this.icons = Icon;
7667
+ this.cancelClick = new EventEmitter();
7668
+ this.data = [];
7669
+ }
7670
+ showClass() {
7671
+ return true;
7672
+ }
7673
+ handleCancelClick(event) {
7674
+ this.cancelClick.next(event);
7675
+ }
7676
+ }
7677
+ TransactionLineSidePanelDefaultComponent.decorators = [
7678
+ { type: Component, args: [{
7679
+ selector: "co-transaction-line-side-panel-default",
7680
+ template: `
7681
+ <co-collapsible
7682
+ [iconData]="iconService.getIcon(icons.TriangleUp)"
7683
+ [headerTitle]="'PRICING' | localize"
7684
+ [expandButtonLast]="true"
7685
+ [expanded]="true"
7686
+ >
7687
+ <div class="collapsible-content-wrapper">
7688
+ <div class="side-panel-input-row">
7689
+ <co-input-text class="side-panel-input" [placeholder]="'NET_LINE_TOTAL' | localize" [model]="transactionLine.netLineTotal" [readonly]="true"></co-input-text>
7690
+ </div>
7691
+ <div class="side-panel-input-row">
7692
+ <co-transaction-line-quantity class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-quantity>
7693
+ <co-transaction-line-price class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-price>
7694
+ </div>
7695
+ <div class="side-panel-input-row">
7696
+ <co-transaction-line-vat class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-vat>
7697
+ <co-transaction-line-price-list class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-price-list>
7698
+ </div>
7699
+ </div>
7700
+ </co-collapsible>
7701
+ <co-collapsible
7702
+ [iconData]="iconService.getIcon(icons.TriangleUp)"
7703
+ [headerTitle]="'DISCOUNTS' | localize"
7704
+ [expandButtonLast]="true"
7705
+ [expanded]="true"
7706
+ >
7707
+ <div class="collapsible-content-wrapper">
7708
+ <div class="side-panel-input-row">
7709
+ <co-transaction-line-line-discount class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-line-discount>
7710
+ <co-transaction-line-discount-amount class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-discount-amount>
7711
+ </div>
7712
+ <div class="side-panel-input-row">
7713
+ <co-transaction-line-quantum-discount class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-quantum-discount>
7714
+ <co-transaction-line-special-discount class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-special-discount>
7715
+ </div>
7716
+ <div class="side-panel-input-row">
7717
+ <co-input-text class="side-panel-input" [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="true"></co-input-text>
7718
+ <co-input-text class="side-panel-input" [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="true"></co-input-text>
7719
+ </div>
7720
+ </div>
7721
+ </co-collapsible>
7722
+ <co-collapsible
7723
+ [iconData]="iconService.getIcon(icons.TriangleUp)"
7724
+ [headerTitle]="'LOGISTICS_AND_PLANNING' | localize"
7725
+ [expandButtonLast]="true"
7726
+ [expanded]="true"
7727
+ >
7728
+ <div class="collapsible-content-wrapper">
7729
+ <div class="side-panel-input-row">
7730
+ <co-transaction-line-commission-code class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-commission-code>
7731
+ <co-transaction-line-warehouse class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-warehouse>
7732
+ </div>
7733
+ <div class="side-panel-input-row">
7734
+ <co-transaction-line-delivery-method class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-delivery-method>
7735
+ <co-transaction-line-delivery-date class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-delivery-date>
7736
+ </div>
7737
+ <div class="side-panel-input-row">
7738
+ <co-input-text class="side-panel-input" [placeholder]="'ASSEMBLY_TIME' | localize" [readonly]="true"></co-input-text>
7739
+ <co-input-text class="side-panel-input" [placeholder]="'ASSEMBLY_COSTS' | localize" [type]="'number'" [model]="transactionLine.assemblyCost" [readonly]="true"></co-input-text>
7740
+ </div>
7741
+ <div class="side-panel-input-row">
7742
+ <co-input-text class="side-panel-input" [placeholder]="'MODIFICATION_TIME' | localize" [readonly]="true"></co-input-text>
7743
+ </div>
7744
+ <div class="side-panel-input-row">
7745
+ <co-input-combo-box class="side-panel-input" [collection]="data" [placeholder]="'SUPPLIER' | localize"></co-input-combo-box>
7746
+ <co-input-text class="side-panel-input" [placeholder]="'ARTICLE_NR_SUPPLIER' | localize" [model]="transactionLine.articleNumber" [readonly]="true"></co-input-text>
7747
+ </div>
7748
+ <div class="side-panel-input-row">
7749
+ <co-input-text class="side-panel-input" [placeholder]="'IN_OUT_COLLECTION' | localize" [readonly]="true"></co-input-text>
7750
+ </div>
7751
+ </div>
7752
+ </co-collapsible>
7753
+
7754
+ <co-collapsible
7755
+ [iconData]="iconService.getIcon(icons.TriangleUp)"
7756
+ [headerTitle]="'OTHER' | localize"
7757
+ [expandButtonLast]="true"
7758
+ [expanded]="true"
7759
+ >
7760
+ <div class="collapsible-content-wrapper">
7761
+ <div class="side-panel-input-row">
7762
+ <co-transaction-line-reference class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-reference>
7763
+ </div>
7764
+ <div class="side-panel-input-row">
7765
+ <co-input-text class="side-panel-input" [placeholder]="'ORDER_RULESET' | localize"></co-input-text>
7766
+ </div>
7767
+ <div class="side-panel-input-row">
7768
+ <co-input-text class="side-panel-input" [placeholder]="'LAST_EDITED_DATE' | localize" [readonly]="true"></co-input-text>
7769
+ <co-input-text class="side-panel-input" [placeholder]="'LAST_EDITED_USER' | localize" [readonly]="true"></co-input-text>
7770
+ </div>
7771
+ <co-input-text [placeholder]="'FABRICATION_COST' | localize" [readonly]="true"></co-input-text>
7772
+ <co-input-text [placeholder]="'TRANSPORT_COST' | localize" [readonly]="true"></co-input-text>
7773
+ <co-input-text [placeholder]="'FABRICATION_COST_LINE_TOTAL' | localize" [readonly]="true"></co-input-text>
7774
+ <co-input-text [placeholder]="'TRANSPORT_COST_LINE_TOTAL' | localize" [readonly]="true"></co-input-text>
7775
+ <co-input-text [placeholder]="'CUSTOMER' | localize" [readonly]="true"></co-input-text>
7776
+ </div>
7777
+ </co-collapsible>
7778
+ `,
7779
+ encapsulation: ViewEncapsulation.None
7780
+ },] }
7781
+ ];
7782
+ TransactionLineSidePanelDefaultComponent.ctorParameters = () => [
7783
+ { type: IconCacheService },
7784
+ { type: TransactionService }
7785
+ ];
7786
+ TransactionLineSidePanelDefaultComponent.propDecorators = {
7787
+ transactionLine: [{ type: Input }],
7788
+ cancelClick: [{ type: Output }],
7789
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel-default",] }]
7790
+ };
7791
+
7792
+ class TransactionLineFieldsBaseComponent {
7793
+ constructor() {
7794
+ this._transactionLine = new TransactionLineInfo();
7795
+ }
7796
+ set transactionLine(value) {
7797
+ if (value) {
7798
+ this._transactionLine = value;
7799
+ }
7800
+ }
7801
+ get transactionLine() {
7802
+ return this._transactionLine;
7803
+ }
7804
+ }
7805
+ TransactionLineFieldsBaseComponent.decorators = [
7806
+ { type: Directive }
7807
+ ];
7808
+ TransactionLineFieldsBaseComponent.propDecorators = {
7809
+ transactionLine: [{ type: Input }]
7810
+ };
7811
+
7812
+ class TransactionLineQuantityComponent extends TransactionLineFieldsBaseComponent {
7813
+ constructor(_transactionService) {
7814
+ super();
7815
+ this._transactionService = _transactionService;
7816
+ }
7817
+ commitQuantity(quantity) {
7818
+ return __awaiter(this, void 0, void 0, function* () {
7819
+ if (this.transactionLine.amount !== quantity) {
7820
+ const oldAmount = this.transactionLine.amount;
7821
+ const success = yield this._transactionService.updateQuantityTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, quantity);
7822
+ if (!success) {
7823
+ this.transactionLine.amount = oldAmount;
7824
+ }
7825
+ return success;
7826
+ }
7827
+ return true;
7828
+ });
7829
+ }
7830
+ }
7831
+ TransactionLineQuantityComponent.decorators = [
7832
+ { type: Component, args: [{
7833
+ selector: "co-transaction-line-quantity",
7834
+ template: `
7835
+ <co-input-number-picker [label]="'AMOUNT' | localize" [(model)]="transactionLine.amount"></co-input-number-picker>
7836
+ `,
7837
+ encapsulation: ViewEncapsulation.None
7838
+ },] }
7839
+ ];
7840
+ TransactionLineQuantityComponent.ctorParameters = () => [
7841
+ { type: TransactionService }
7842
+ ];
7843
+
7844
+ class TransactionLineQuantityModule {
7845
+ }
7846
+ TransactionLineQuantityModule.decorators = [
7847
+ { type: NgModule, args: [{
7848
+ imports: [
7849
+ CommonModule,
7850
+ PipeModule,
7851
+ InputNumberPickerModule
7852
+ ],
7853
+ declarations: [
7854
+ TransactionLineQuantityComponent
7855
+ ],
7856
+ exports: [
7857
+ TransactionLineQuantityComponent
7858
+ ]
7859
+ },] }
7860
+ ];
7861
+
7862
+ class TransactionLineLineDiscountComponent extends TransactionLineFieldsBaseComponent {
7863
+ constructor(_transactionService) {
7864
+ super();
7865
+ this._transactionService = _transactionService;
7866
+ }
7867
+ set child(content) {
7868
+ this.input = content;
7869
+ this.input.commit = (discount) => this.commitDiscount(discount);
7870
+ }
7871
+ commitDiscount(discount) {
7872
+ return __awaiter(this, void 0, void 0, function* () {
7873
+ if (this.transactionLine.lineDiscount !== discount) {
7874
+ const oldDiscount = this.transactionLine.lineDiscount;
7875
+ const success = yield this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, DiscountType.TransactionLineDiscountPercentage, discount);
7876
+ if (!success) {
7877
+ this.input.model = oldDiscount;
7878
+ }
7879
+ return success;
7880
+ }
7881
+ return true;
7882
+ });
7883
+ }
7884
+ }
7885
+ TransactionLineLineDiscountComponent.decorators = [
7886
+ { type: Component, args: [{
7887
+ selector: "co-transaction-line-line-discount",
7888
+ template: `
7889
+ <co-input-text #input
7890
+ [placeholder]="'DISCOUNT_PERCENTAGE' | localize"
7891
+ [type]="'number'"
7892
+ [showSaveCancel]="true"
7893
+ [model]="transactionLine.lineDiscount"
7894
+ ></co-input-text>
7895
+ `,
7896
+ encapsulation: ViewEncapsulation.None
7897
+ },] }
7898
+ ];
7899
+ TransactionLineLineDiscountComponent.ctorParameters = () => [
7900
+ { type: TransactionService }
7901
+ ];
7902
+ TransactionLineLineDiscountComponent.propDecorators = {
7903
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
7904
+ };
7905
+
7906
+ class TransactionLineLineDiscountModule {
7907
+ }
7908
+ TransactionLineLineDiscountModule.decorators = [
7909
+ { type: NgModule, args: [{
7910
+ imports: [
7911
+ CommonModule,
7912
+ InputTextModule,
7913
+ PipeModule
7914
+ ],
7915
+ declarations: [
7916
+ TransactionLineLineDiscountComponent
7917
+ ],
7918
+ exports: [
7919
+ TransactionLineLineDiscountComponent
7920
+ ]
7921
+ },] }
7922
+ ];
7923
+
7924
+ class TransactionLinePriceComponent extends TransactionLineFieldsBaseComponent {
7925
+ constructor(_transactionService) {
7926
+ super();
7927
+ this._transactionService = _transactionService;
7928
+ }
7929
+ set child(content) {
7930
+ this.input = content;
7931
+ this.input.commit = (price) => this.commitPrice(price);
7932
+ }
7933
+ commitPrice(price) {
7934
+ return __awaiter(this, void 0, void 0, function* () {
7935
+ if (this.transactionLine.price !== price) {
7936
+ const oldPrice = this.transactionLine.price;
7937
+ const success = yield this._transactionService.updatePriceTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, price);
7938
+ if (!success) {
7939
+ this.input.model = oldPrice;
7940
+ }
7941
+ return success;
7942
+ }
7943
+ return true;
7944
+ });
7945
+ }
7946
+ }
7947
+ TransactionLinePriceComponent.decorators = [
7948
+ { type: Component, args: [{
7949
+ selector: "co-transaction-line-price",
7950
+ template: `
7951
+ <co-input-text #input
7952
+ [placeholder]="'PRICE' | localize"
7953
+ [type]="'number'"
7954
+ [showSaveCancel]="true"
7955
+ [model]="transactionLine.price"
7956
+ ></co-input-text>
7957
+ `,
7958
+ encapsulation: ViewEncapsulation.None
7959
+ },] }
7960
+ ];
7961
+ TransactionLinePriceComponent.ctorParameters = () => [
7962
+ { type: TransactionService }
7963
+ ];
7964
+ TransactionLinePriceComponent.propDecorators = {
7965
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
7966
+ };
7967
+
7968
+ class TransactionLinePriceModule {
7969
+ }
7970
+ TransactionLinePriceModule.decorators = [
7971
+ { type: NgModule, args: [{
7972
+ imports: [
7973
+ CommonModule,
7974
+ InputTextModule,
7975
+ PipeModule
7976
+ ],
7977
+ declarations: [
7978
+ TransactionLinePriceComponent
7979
+ ],
7980
+ exports: [
7981
+ TransactionLinePriceComponent
7982
+ ]
7983
+ },] }
7984
+ ];
7985
+
7986
+ class TransactionLineVatComponent extends TransactionLineFieldsBaseComponent {
7987
+ constructor(_transactionService) {
7988
+ super();
7989
+ this._transactionService = _transactionService;
7990
+ this.data = [];
7991
+ this.fields = { text: "description", value: "vatId" };
7992
+ }
7993
+ ngOnInit() {
7994
+ this._transactionService.getVatLists().then((vatList) => {
7995
+ this.data = vatList.slice();
7996
+ });
7997
+ }
7998
+ commitVat(id) {
7999
+ return __awaiter(this, void 0, void 0, function* () {
8000
+ if (this.transactionLine.vatId !== id) {
8001
+ const oldId = this.transactionLine.vatId;
8002
+ const success = yield this._transactionService.updateVatTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, id);
8003
+ if (!success) {
8004
+ this.transactionLine.vatId = oldId;
8005
+ }
8006
+ return success;
8007
+ }
8008
+ return true;
8009
+ });
8010
+ }
8011
+ }
8012
+ TransactionLineVatComponent.decorators = [
8013
+ { type: Component, args: [{
8014
+ selector: "co-transaction-line-vat",
8015
+ template: `
8016
+ <co-input-combo-box
8017
+ [collection]="data"
8018
+ [placeholder]="'VAT' | localize"
8019
+ [fields]="fields"
8020
+ [model]="transactionLine.vatId"
8021
+ (modelChange)="commitVat($event)"
8022
+ ></co-input-combo-box>
8023
+ `,
8024
+ encapsulation: ViewEncapsulation.None
8025
+ },] }
8026
+ ];
8027
+ TransactionLineVatComponent.ctorParameters = () => [
8028
+ { type: TransactionService }
8029
+ ];
8030
+
8031
+ class TransactionLineVatModule {
8032
+ }
8033
+ TransactionLineVatModule.decorators = [
8034
+ { type: NgModule, args: [{
8035
+ imports: [
8036
+ CommonModule,
8037
+ PipeModule,
8038
+ InputComboBoxModule
8039
+ ],
8040
+ declarations: [
8041
+ TransactionLineVatComponent
8042
+ ],
8043
+ exports: [
8044
+ TransactionLineVatComponent
8045
+ ]
8046
+ },] }
8047
+ ];
8048
+
8049
+ class TransactionLinePriceListComponent extends TransactionLineFieldsBaseComponent {
8050
+ constructor(_transactionService) {
8051
+ super();
8052
+ this._transactionService = _transactionService;
8053
+ this.data = [];
8054
+ this.fields = { text: "description", value: "code" };
8055
+ }
8056
+ ngOnInit() {
8057
+ this._transactionService.getPriceLists().then((list) => {
8058
+ this.data = list.slice();
8059
+ });
8060
+ }
8061
+ commitPriceList(priceList) {
8062
+ return __awaiter(this, void 0, void 0, function* () {
8063
+ if (this.transactionLine.priceListCode !== priceList) {
8064
+ const oldPriceList = this.transactionLine.priceListCode;
8065
+ const success = yield this._transactionService.updatePriceListTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, priceList);
8066
+ if (!success) {
8067
+ this.transactionLine.priceListCode = oldPriceList;
8068
+ }
8069
+ return success;
8070
+ }
8071
+ return true;
8072
+ });
8073
+ }
8074
+ }
8075
+ TransactionLinePriceListComponent.decorators = [
8076
+ { type: Component, args: [{
8077
+ selector: "co-transaction-line-price-list",
8078
+ template: `
8079
+ <co-input-combo-box
8080
+ [collection]="data"
8081
+ [placeholder]="'PRICE_LIST' | localize"
8082
+ [fields]="fields"
8083
+ [model]="transactionLine.priceListCode"
8084
+ (modelChange)="commitPriceList($event)"
8085
+ ></co-input-combo-box>
8086
+ `,
8087
+ encapsulation: ViewEncapsulation.None
8088
+ },] }
8089
+ ];
8090
+ TransactionLinePriceListComponent.ctorParameters = () => [
8091
+ { type: TransactionService }
8092
+ ];
8093
+
8094
+ class TransactionLinePriceListModule {
8095
+ }
8096
+ TransactionLinePriceListModule.decorators = [
8097
+ { type: NgModule, args: [{
8098
+ imports: [
8099
+ CommonModule,
8100
+ PipeModule,
8101
+ InputComboBoxModule
8102
+ ],
8103
+ declarations: [
8104
+ TransactionLinePriceListComponent
8105
+ ],
8106
+ exports: [
8107
+ TransactionLinePriceListComponent
8108
+ ]
8109
+ },] }
8110
+ ];
8111
+
8112
+ class TransactionLineDeliveryMethodComponent extends TransactionLineFieldsBaseComponent {
8113
+ constructor(_transactionService) {
8114
+ super();
8115
+ this._transactionService = _transactionService;
8116
+ this.data = [];
8117
+ this.fields = { text: "description", value: "code" };
8118
+ }
8119
+ ngOnInit() {
8120
+ this._transactionService.getDeliveryMethods().then((methods) => {
8121
+ this.data = methods.slice();
8122
+ });
8123
+ }
8124
+ commitDeliveryMethod(method) {
8125
+ return __awaiter(this, void 0, void 0, function* () {
8126
+ if (this.transactionLine.deliveryMethodCode !== method) {
8127
+ const oldMethod = this.transactionLine.deliveryMethodCode;
8128
+ const success = yield this._transactionService.updateDeliveryMethodTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, method);
8129
+ if (!success) {
8130
+ this.transactionLine.deliveryMethodCode = oldMethod;
8131
+ }
8132
+ return success;
8133
+ }
8134
+ return true;
8135
+ });
8136
+ }
8137
+ }
8138
+ TransactionLineDeliveryMethodComponent.decorators = [
8139
+ { type: Component, args: [{
8140
+ selector: "co-transaction-line-delivery-method",
8141
+ template: `
8142
+ <co-input-combo-box
8143
+ [collection]="data"
8144
+ [placeholder]="'DELIVERY_METHOD' | localize"
8145
+ [fields]="fields"
8146
+ (modelChange)="commitDeliveryMethod($event)"
8147
+ ></co-input-combo-box>
8148
+ `,
8149
+ encapsulation: ViewEncapsulation.None
8150
+ },] }
8151
+ ];
8152
+ TransactionLineDeliveryMethodComponent.ctorParameters = () => [
8153
+ { type: TransactionService }
8154
+ ];
8155
+
8156
+ class TransactionLineDeliveryMethodModule {
8157
+ }
8158
+ TransactionLineDeliveryMethodModule.decorators = [
8159
+ { type: NgModule, args: [{
8160
+ imports: [
8161
+ CommonModule,
8162
+ PipeModule,
8163
+ InputComboBoxModule
8164
+ ],
8165
+ declarations: [
8166
+ TransactionLineDeliveryMethodComponent
8167
+ ],
8168
+ exports: [
8169
+ TransactionLineDeliveryMethodComponent
8170
+ ]
8171
+ },] }
8172
+ ];
8173
+
8174
+ class TransactionLineDeliveryDateComponent extends TransactionLineFieldsBaseComponent {
8175
+ constructor(_transactionService) {
8176
+ super();
8177
+ this._transactionService = _transactionService;
8178
+ }
8179
+ commitDeliveryDate(date) {
8180
+ return __awaiter(this, void 0, void 0, function* () {
8181
+ if (this.transactionLine.deliveryDate !== date) {
8182
+ const oldDate = this.transactionLine.deliveryDate;
8183
+ const success = yield this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date);
8184
+ if (!success) {
8185
+ this.transactionLine.deliveryDate = oldDate;
8186
+ }
8187
+ return success;
8188
+ }
8189
+ return true;
8190
+ });
8191
+ }
8192
+ }
8193
+ TransactionLineDeliveryDateComponent.decorators = [
8194
+ { type: Component, args: [{
8195
+ selector: "co-transaction-line-delivery-date",
8196
+ template: `
8197
+ <co-input-date
8198
+ [placeholder]="'DELIVERY_DATE' | localize"
8199
+ [model]="transactionLine.deliveryDate"
8200
+ (modelChange)="commitDeliveryDate($event)"
8201
+ ></co-input-date>
8202
+ `,
8203
+ encapsulation: ViewEncapsulation.None
8204
+ },] }
8205
+ ];
8206
+ TransactionLineDeliveryDateComponent.ctorParameters = () => [
8207
+ { type: TransactionService }
8208
+ ];
8209
+
8210
+ class TransactionLineDeliveryDateModule {
8211
+ }
8212
+ TransactionLineDeliveryDateModule.decorators = [
8213
+ { type: NgModule, args: [{
8214
+ imports: [
8215
+ CommonModule,
8216
+ PipeModule,
8217
+ InputDatePickerModule
8218
+ ],
8219
+ declarations: [
8220
+ TransactionLineDeliveryDateComponent
8221
+ ],
8222
+ exports: [
8223
+ TransactionLineDeliveryDateComponent
8224
+ ]
8225
+ },] }
8226
+ ];
8227
+
8228
+ class TransactionLineReferenceComponent extends TransactionLineFieldsBaseComponent {
8229
+ constructor(_transactionService) {
8230
+ super();
8231
+ this._transactionService = _transactionService;
8232
+ }
8233
+ set child(content) {
8234
+ this.input = content;
8235
+ this.input.commit = (reference) => this.commitReference(reference);
8236
+ }
8237
+ commitReference(reference) {
8238
+ return __awaiter(this, void 0, void 0, function* () {
8239
+ if (this.transactionLine.reference !== reference) {
8240
+ const oldRef = this.transactionLine.reference;
8241
+ const success = yield this._transactionService.updateReferenceTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, reference);
8242
+ if (!success) {
8243
+ this.input.model = oldRef;
8244
+ }
8245
+ return success;
8246
+ }
8247
+ return true;
8248
+ });
8249
+ }
8250
+ }
8251
+ TransactionLineReferenceComponent.decorators = [
8252
+ { type: Component, args: [{
8253
+ selector: "co-transaction-line-reference",
8254
+ template: `
8255
+ <co-input-text #input
8256
+ [placeholder]="'REFERENCE' | localize"
8257
+ [type]="'text'"
8258
+ [showSaveCancel]="true"
8259
+ ></co-input-text>
8260
+ `,
8261
+ encapsulation: ViewEncapsulation.None
8262
+ },] }
8263
+ ];
8264
+ TransactionLineReferenceComponent.ctorParameters = () => [
8265
+ { type: TransactionService }
8266
+ ];
8267
+ TransactionLineReferenceComponent.propDecorators = {
8268
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
8269
+ };
8270
+
8271
+ class TransactionLineReferenceModule {
8272
+ }
8273
+ TransactionLineReferenceModule.decorators = [
8274
+ { type: NgModule, args: [{
8275
+ imports: [
8276
+ CommonModule,
8277
+ InputTextModule,
8278
+ PipeModule
8279
+ ],
8280
+ declarations: [
8281
+ TransactionLineReferenceComponent
8282
+ ],
8283
+ exports: [
8284
+ TransactionLineReferenceComponent
8285
+ ]
8286
+ },] }
8287
+ ];
8288
+
8289
+ class TransactionLineCommissionCodeComponent extends TransactionLineFieldsBaseComponent {
8290
+ constructor(_transactionService) {
8291
+ super();
8292
+ this._transactionService = _transactionService;
8293
+ this.data = [];
8294
+ this.fields = { text: "description", value: "code" };
8295
+ }
8296
+ ngOnInit() {
8297
+ this._transactionService.getCommissionCodes("NL").then((codes) => {
8298
+ this.data = codes.slice();
8299
+ });
8300
+ }
8301
+ commitCommissionCode(code) {
8302
+ return __awaiter(this, void 0, void 0, function* () {
8303
+ if (this.transactionLine.commissionCode !== code) {
8304
+ const oldCode = this.transactionLine.commissionCode;
8305
+ const success = yield this._transactionService.updateCommissionCodeTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, code);
8306
+ if (!success) {
8307
+ // this.transactionLine.commissionCode = code;
8308
+ }
8309
+ return success;
8310
+ }
8311
+ return true;
8312
+ });
8313
+ }
8314
+ }
8315
+ TransactionLineCommissionCodeComponent.decorators = [
8316
+ { type: Component, args: [{
8317
+ selector: "co-transaction-line-commission-code",
8318
+ template: `
8319
+ <co-input-combo-box
8320
+ [collection]="data"
8321
+ [placeholder]="'COMMISSION_CODE' | localize"
8322
+ [fields]="fields"
8323
+ [model]="transactionLine.commissionCode"
8324
+ (modelChange)="commitCommissionCode($event)"
8325
+ ></co-input-combo-box>
8326
+ `,
8327
+ encapsulation: ViewEncapsulation.None
8328
+ },] }
8329
+ ];
8330
+ TransactionLineCommissionCodeComponent.ctorParameters = () => [
8331
+ { type: TransactionService }
8332
+ ];
8333
+
8334
+ class TransactionLineCommissionCodeModule {
8335
+ }
8336
+ TransactionLineCommissionCodeModule.decorators = [
8337
+ { type: NgModule, args: [{
8338
+ imports: [
8339
+ CommonModule,
8340
+ PipeModule,
8341
+ InputComboBoxModule
8342
+ ],
8343
+ declarations: [
8344
+ TransactionLineCommissionCodeComponent
8345
+ ],
8346
+ exports: [
8347
+ TransactionLineCommissionCodeComponent
8348
+ ]
8349
+ },] }
8350
+ ];
8351
+
8352
+ class TransactionLineWarehouseComponent extends TransactionLineFieldsBaseComponent {
8353
+ constructor(_transactionService) {
8354
+ super();
8355
+ this._transactionService = _transactionService;
8356
+ this.data = [];
8357
+ this.fields = { text: "description", value: "code" };
8358
+ }
8359
+ ngOnInit() {
8360
+ // this._transactionService.getWCommissionCodes("NL").then((codes: CoDomainValue[]) => {
8361
+ // this.data = codes.slice();
8362
+ // })
8363
+ }
8364
+ commitWarehouse(warehouse) {
8365
+ return __awaiter(this, void 0, void 0, function* () {
8366
+ if (this.transactionLine.warehouseNumber !== warehouse) {
8367
+ const oldWarehouse = this.transactionLine.warehouseNumber;
8368
+ const success = yield this._transactionService.updateWarehouseTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, warehouse);
8369
+ if (!success) {
8370
+ this.transactionLine.warehouseNumber = warehouse;
8371
+ }
8372
+ return success;
8373
+ }
8374
+ return true;
8375
+ });
8376
+ }
8377
+ }
8378
+ TransactionLineWarehouseComponent.decorators = [
8379
+ { type: Component, args: [{
8380
+ selector: "co-transaction-line-warehouse",
8381
+ template: `
8382
+ <co-input-combo-box
8383
+ [collection]="data"
8384
+ [placeholder]="'WAREHOUSE' | localize"
8385
+ [fields]="fields"
8386
+ [model]="transactionLine.warehouseNumber"
8387
+ (modelChange)="commitWarehouse($event)"
8388
+ ></co-input-combo-box>
8389
+ `,
8390
+ encapsulation: ViewEncapsulation.None
8391
+ },] }
8392
+ ];
8393
+ TransactionLineWarehouseComponent.ctorParameters = () => [
8394
+ { type: TransactionService }
8395
+ ];
8396
+
8397
+ class TransactionLineWarehouseModule {
8398
+ }
8399
+ TransactionLineWarehouseModule.decorators = [
8400
+ { type: NgModule, args: [{
8401
+ imports: [
8402
+ CommonModule,
8403
+ InputTextModule,
8404
+ PipeModule,
8405
+ InputComboBoxModule
8406
+ ],
8407
+ declarations: [
8408
+ TransactionLineWarehouseComponent
8409
+ ],
8410
+ exports: [
8411
+ TransactionLineWarehouseComponent
8412
+ ]
8413
+ },] }
8414
+ ];
8415
+
8416
+ class TransactionLineDiscountAmountComponent extends TransactionLineFieldsBaseComponent {
8417
+ constructor(_transactionService) {
8418
+ super();
8419
+ this._transactionService = _transactionService;
8420
+ }
8421
+ set child(content) {
8422
+ this.input = content;
8423
+ this.input.commit = (discount) => this.commitDiscount(discount);
8424
+ }
8425
+ commitDiscount(discount) {
8426
+ return __awaiter(this, void 0, void 0, function* () {
8427
+ if (this.transactionLine.discountAmount !== discount) {
8428
+ const oldDiscount = this.transactionLine.discountAmount;
8429
+ const success = yield this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, DiscountType.TransactionLineDiscountAmount, discount);
8430
+ if (!success) {
8431
+ this.input.model = oldDiscount;
8432
+ }
8433
+ return success;
8434
+ }
8435
+ return true;
8436
+ });
8437
+ }
8438
+ }
8439
+ TransactionLineDiscountAmountComponent.decorators = [
8440
+ { type: Component, args: [{
8441
+ selector: "co-transaction-line-discount-amount",
8442
+ template: `
8443
+ <co-input-text #input
8444
+ [placeholder]="'DISCOUNT_AMOUNT' | localize"
8445
+ [type]="'number'"
8446
+ [showSaveCancel]="true"
8447
+ [model]="transactionLine.discountAmount"
8448
+ ></co-input-text>
8449
+ `,
8450
+ encapsulation: ViewEncapsulation.None
8451
+ },] }
8452
+ ];
8453
+ TransactionLineDiscountAmountComponent.ctorParameters = () => [
8454
+ { type: TransactionService }
8455
+ ];
8456
+ TransactionLineDiscountAmountComponent.propDecorators = {
8457
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
8458
+ };
8459
+
8460
+ class TransactionLineDiscountAmountModule {
8461
+ }
8462
+ TransactionLineDiscountAmountModule.decorators = [
8463
+ { type: NgModule, args: [{
8464
+ imports: [
8465
+ CommonModule,
8466
+ PipeModule,
8467
+ InputTextModule
8468
+ ],
8469
+ declarations: [
8470
+ TransactionLineDiscountAmountComponent
8471
+ ],
8472
+ exports: [
8473
+ TransactionLineDiscountAmountComponent
8474
+ ]
8475
+ },] }
8476
+ ];
8477
+
8478
+ class TransactionLineQuantumDiscountComponent extends TransactionLineFieldsBaseComponent {
8479
+ constructor(_transactionService) {
8480
+ super();
8481
+ this._transactionService = _transactionService;
8482
+ }
8483
+ set child(content) {
8484
+ this.input = content;
8485
+ this.input.commit = (discount) => this.commitDiscount(discount);
8486
+ }
8487
+ commitDiscount(discount) {
8488
+ return __awaiter(this, void 0, void 0, function* () {
8489
+ if (this.transactionLine.quantumDiscount !== discount) {
8490
+ const oldDiscount = this.transactionLine.quantumDiscount;
8491
+ const success = yield this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, DiscountType.TransactionLineQuantumDiscountPercentage, discount);
8492
+ if (!success) {
8493
+ this.input.model = oldDiscount;
8494
+ }
8495
+ return success;
8496
+ }
8497
+ return true;
8498
+ });
8499
+ }
8500
+ }
8501
+ TransactionLineQuantumDiscountComponent.decorators = [
8502
+ { type: Component, args: [{
8503
+ selector: "co-transaction-line-quantum-discount",
8504
+ template: `
8505
+ <co-input-text #input
8506
+ [placeholder]="'QUANTUM_DISCOUNT' | localize"
8507
+ [type]="'number'"
8508
+ [showSaveCancel]="true"
8509
+ [model]="transactionLine.quantumDiscount"
8510
+ ></co-input-text>
8511
+ `,
8512
+ encapsulation: ViewEncapsulation.None
8513
+ },] }
8514
+ ];
8515
+ TransactionLineQuantumDiscountComponent.ctorParameters = () => [
8516
+ { type: TransactionService }
8517
+ ];
8518
+ TransactionLineQuantumDiscountComponent.propDecorators = {
8519
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
8520
+ };
8521
+
8522
+ class TransactionLineQuantumDiscountModule {
8523
+ }
8524
+ TransactionLineQuantumDiscountModule.decorators = [
8525
+ { type: NgModule, args: [{
8526
+ imports: [
8527
+ CommonModule,
8528
+ InputTextModule,
8529
+ PipeModule
8530
+ ],
8531
+ declarations: [
8532
+ TransactionLineQuantumDiscountComponent
8533
+ ],
8534
+ exports: [
8535
+ TransactionLineQuantumDiscountComponent
8536
+ ]
8537
+ },] }
8538
+ ];
8539
+
8540
+ class TransactionLineSpecialDiscountComponent extends TransactionLineFieldsBaseComponent {
8541
+ constructor(_transactionService) {
8542
+ super();
8543
+ this._transactionService = _transactionService;
8544
+ }
8545
+ set child(content) {
8546
+ this.input = content;
8547
+ this.input.commit = (discount) => this.commitDiscount(discount);
8548
+ }
8549
+ commitDiscount(discount) {
8550
+ return __awaiter(this, void 0, void 0, function* () {
8551
+ if (this.transactionLine.specialDiscount !== discount) {
8552
+ const oldDiscount = this.transactionLine.specialDiscount;
8553
+ const success = yield this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, DiscountType.TransactionLineSpecialDiscountPercentage, discount);
8554
+ if (!success) {
8555
+ this.input.model = oldDiscount;
8556
+ }
8557
+ return success;
8558
+ }
8559
+ return true;
8560
+ });
8561
+ }
8562
+ }
8563
+ TransactionLineSpecialDiscountComponent.decorators = [
8564
+ { type: Component, args: [{
8565
+ selector: "co-transaction-line-special-discount",
8566
+ template: `
8567
+ <co-input-text #input
8568
+ [placeholder]="'SPECIAL_DISCOUNT' | localize"
8569
+ [type]="'number'"
8570
+ [showSaveCancel]="true"
8571
+ [model]="transactionLine.specialDiscount"
8572
+ ></co-input-text>
8573
+ `,
8574
+ encapsulation: ViewEncapsulation.None
8575
+ },] }
8576
+ ];
8577
+ TransactionLineSpecialDiscountComponent.ctorParameters = () => [
8578
+ { type: TransactionService }
8579
+ ];
8580
+ TransactionLineSpecialDiscountComponent.propDecorators = {
8581
+ child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }]
8582
+ };
8583
+
8584
+ class TransactionLineSpecialDiscountModule {
8585
+ }
8586
+ TransactionLineSpecialDiscountModule.decorators = [
8587
+ { type: NgModule, args: [{
8588
+ imports: [
8589
+ CommonModule,
8590
+ InputTextModule,
8591
+ PipeModule
8592
+ ],
8593
+ declarations: [
8594
+ TransactionLineSpecialDiscountComponent
8595
+ ],
8596
+ exports: [
8597
+ TransactionLineSpecialDiscountComponent
8598
+ ]
8599
+ },] }
8600
+ ];
8601
+
8602
+ class TransactionLineSidePanelDefaultModule {
8603
+ }
8604
+ TransactionLineSidePanelDefaultModule.decorators = [
8605
+ { type: NgModule, args: [{
8606
+ imports: [
8607
+ CommonModule,
8608
+ CoreModule,
8609
+ PipeModule,
8610
+ ButtonModule,
8611
+ CollapsibleModule,
8612
+ InputTextModule,
8613
+ InputComboBoxModule,
8614
+ InputDatePickerModule,
8615
+ InputNumberPickerModule,
8616
+ TransactionLinePriceModule,
8617
+ TransactionLinePriceListModule,
8618
+ TransactionLineVatModule,
8619
+ TransactionLineQuantityModule,
8620
+ TransactionLineLineDiscountModule,
8621
+ TransactionLineDeliveryMethodModule,
8622
+ TransactionLineDeliveryDateModule,
8623
+ TransactionLineReferenceModule,
8624
+ TransactionLineCommissionCodeModule,
8625
+ TransactionLineWarehouseModule,
8626
+ TransactionLineDiscountAmountModule,
8627
+ TransactionLineQuantumDiscountModule,
8628
+ TransactionLineSpecialDiscountModule
8629
+ ],
8630
+ declarations: [
8631
+ TransactionLineSidePanelDefaultComponent
8632
+ ],
8633
+ exports: [
8634
+ TransactionLineSidePanelDefaultComponent
8635
+ ]
8636
+ },] }
8637
+ ];
8638
+
8639
+ class TransactionReceivingGoodsHistoryComponent {
8640
+ constructor() {
8641
+ this.transactionLines = [];
8642
+ }
8643
+ showClass() {
8644
+ return true;
8645
+ }
8646
+ }
8647
+ TransactionReceivingGoodsHistoryComponent.decorators = [
8648
+ { type: Component, args: [{
8649
+ selector: "co-transaction-receiving-goods-history",
8650
+ template: `
8651
+ <div class="history-grid-wrapper">
8652
+ <co-transaction-history-grid [transactionLines]="transactionLines">
8653
+ <co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'" [order]="40"></co-simple-grid-column>
8654
+ <co-simple-grid-column [headerText]="'LOCATION' | localize" [field]="'warehouseLocation'" [order]="60"></co-simple-grid-column>
8655
+ </co-transaction-history-grid>
8656
+ </div>
8657
+ `,
8658
+ encapsulation: ViewEncapsulation.None
8659
+ },] }
8660
+ ];
8661
+ TransactionReceivingGoodsHistoryComponent.propDecorators = {
8662
+ transactionLines: [{ type: Input }],
8663
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
8664
+ };
8665
+
8666
+ var StatusType;
8667
+ (function (StatusType) {
8668
+ StatusType["Unknown"] = "UNKNOWN";
8669
+ })(StatusType || (StatusType = {}));
8670
+
8671
+ class TransactionHistoryGridComponent {
8672
+ constructor() {
8673
+ this.tabCategory = TabCategory;
8674
+ this.statusType = StatusType;
8675
+ this.extraColumns = [];
8676
+ }
8677
+ set content(columnComponents) {
8678
+ this.extraColumns = columnComponents.toArray();
8679
+ }
8680
+ showClass() {
8681
+ return true;
8682
+ }
8683
+ handleSelectRow(row) {
8684
+ //
8685
+ }
8686
+ }
8687
+ TransactionHistoryGridComponent.decorators = [
8688
+ { type: Component, args: [{
8689
+ selector: "co-transaction-history-grid",
8690
+ template: `
8691
+ <div class="history-grid-wrapper">
8692
+ <co-simple-grid [data]="transactionLines" [extraColumns]="extraColumns" (selectRow)="handleSelectRow($event)">
8693
+ <co-simple-grid-column [headerText]="'STATE' | localize" [field]="'status'" [order]="10">
8694
+ <ng-template #template let-row="row">
8695
+ <co-transaction-history-grid-status [statusType]="statusType.Unknown"></co-transaction-history-grid-status>
8696
+ </ng-template>
8697
+ </co-simple-grid-column>
8698
+ <co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [field]="'deliveryDate'" [order]="20"></co-simple-grid-column>
8699
+ <co-simple-grid-column [headerText]="'AMOUNT' | localize" [field]="'amount'" [order]="30"></co-simple-grid-column>
8700
+ <co-simple-grid-column [headerText]="'REFERENCE' | localize" [field]="'referenceNumber'" [order]="50"></co-simple-grid-column>
8701
+ <co-simple-grid-column [headerText]="'USER' | localize" [field]="'user'" [order]="70"></co-simple-grid-column>
8702
+ </co-simple-grid>
8703
+ </div>
8704
+ `,
8705
+ encapsulation: ViewEncapsulation.None
8706
+ },] }
8707
+ ];
8708
+ TransactionHistoryGridComponent.propDecorators = {
8709
+ content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
8710
+ transactionLines: [{ type: Input }],
8711
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-history-grid",] }]
8712
+ };
8713
+
8714
+ class TransactionHistoryGridStatusComponent {
8715
+ showClass() {
8716
+ return true;
8717
+ }
8718
+ _getStatusIndicatorColor() {
8719
+ switch (this.statusType) {
8720
+ case StatusType.Unknown:
8721
+ return '#dce4ea';
8722
+ }
8723
+ }
8724
+ ngAfterViewInit() {
8725
+ if (this.statusIndicator) {
8726
+ this.statusIndicator.nativeElement.style.background = this._getStatusIndicatorColor();
8727
+ }
8728
+ }
8729
+ }
8730
+ TransactionHistoryGridStatusComponent.decorators = [
8731
+ { type: Component, args: [{
8732
+ selector: "co-transaction-history-grid-status",
8733
+ template: `
8734
+ <div class="transaction-status-indication">
8735
+ <div #statusIndicator class="status-color-circle"></div>
8736
+ <span class="status-text" [textContent]="statusType | localize"></span>
8737
+ </div>
8738
+ `,
8739
+ encapsulation: ViewEncapsulation.None
8740
+ },] }
8741
+ ];
8742
+ TransactionHistoryGridStatusComponent.propDecorators = {
8743
+ statusType: [{ type: Input }],
8744
+ statusIndicator: [{ type: ViewChild, args: ["statusIndicator", { read: ElementRef },] }],
8745
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-history-grid-status",] }]
8746
+ };
8747
+
8748
+ class TransactionHistoryGridStatusModule {
8749
+ }
8750
+ TransactionHistoryGridStatusModule.decorators = [
8751
+ { type: NgModule, args: [{
8752
+ imports: [
8753
+ CommonModule,
8754
+ CoreModule,
8755
+ PipeModule
8756
+ ],
8757
+ declarations: [
8758
+ TransactionHistoryGridStatusComponent
8759
+ ],
8760
+ exports: [
8761
+ TransactionHistoryGridStatusComponent
8762
+ ]
8763
+ },] }
8764
+ ];
8765
+
8766
+ class TransactionHistoryGridModule {
8767
+ }
8768
+ TransactionHistoryGridModule.decorators = [
8769
+ { type: NgModule, args: [{
8770
+ imports: [
8771
+ CommonModule,
8772
+ CoreModule,
8773
+ SimpleGridModule,
8774
+ PipeModule,
8775
+ TransactionHistoryGridStatusModule
8776
+ ],
8777
+ declarations: [
8778
+ TransactionHistoryGridComponent
8779
+ ],
8780
+ exports: [
8781
+ TransactionHistoryGridComponent
8782
+ ]
8783
+ },] }
8784
+ ];
8785
+
8786
+ class TransactionReceivingGoodsHistoryModule {
8787
+ }
8788
+ TransactionReceivingGoodsHistoryModule.decorators = [
8789
+ { type: NgModule, args: [{
8790
+ imports: [
8791
+ CommonModule,
8792
+ CoreModule,
8793
+ PipeModule,
8794
+ SimpleGridModule,
8795
+ TransactionHistoryGridModule
8796
+ ],
8797
+ declarations: [
8798
+ TransactionReceivingGoodsHistoryComponent
8799
+ ],
8800
+ exports: [
8801
+ TransactionReceivingGoodsHistoryComponent
8802
+ ]
8803
+ },] }
8804
+ ];
8805
+
8806
+ class TransactionReceivingGoodsDetailsComponent {
8807
+ constructor() {
8808
+ this.transactionLineInfo = new TransactionLineInfo();
8809
+ }
8810
+ showClass() {
8811
+ return true;
8812
+ }
8813
+ }
8814
+ TransactionReceivingGoodsDetailsComponent.decorators = [
8815
+ { type: Component, args: [{
8816
+ selector: 'co-transaction-receiving-goods-details',
8817
+ template: `
8818
+ <div class="receipt-details-wrapper">
8819
+ <span class="details-header" [textContent]="'RECEIPT_DETAILS' | localize | uppercase"></span>
8820
+ <div class="columns-wrapper">
8821
+ <div class="details-column">
8822
+ <co-input-text class="details-input" [(model)]="transactionLineInfo.amount" [placeholder]="'AMOUNT' | localize"></co-input-text>
8823
+ <co-input-text class="details-input" [(model)]="transactionLineInfo.warehouseNumber" [placeholder]="'WAREHOUSE' | localize"></co-input-text>
8824
+ <co-input-text class="details-input" [(model)]="valuePlaceholder" [placeholder]="'LOCATION' | localize"></co-input-text>
8825
+ </div>
8826
+ <div class="divider-wrapper"><div class="divider"></div></div>
8827
+ <div class="details-column">
8828
+ <co-input-text class="details-input" [(model)]="valuePlaceholder" [placeholder]="'BATCH_NUMBER' | localize"></co-input-text>
8829
+ <co-input-text class="details-input" [(model)]="valuePlaceholder" [placeholder]="'SERIAL_NUMBER' | localize"></co-input-text>
8830
+ <co-input-text class="details-input" [(model)]="transactionLineInfo.refLineNr" [placeholder]="'REFERENCE_ID' | localize"></co-input-text>
8831
+ </div>
8832
+ </div>
8833
+ </div>
8834
+ `,
8835
+ encapsulation: ViewEncapsulation.None
8836
+ },] }
8837
+ ];
8838
+ TransactionReceivingGoodsDetailsComponent.propDecorators = {
8839
+ transactionLineInfo: [{ type: Input }],
8840
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
8841
+ };
8842
+
8843
+ class TransactionReceivingGoodsDetailsModule {
8844
+ }
8845
+ TransactionReceivingGoodsDetailsModule.decorators = [
8846
+ { type: NgModule, args: [{
8847
+ imports: [
8848
+ CommonModule,
8849
+ CoreModule,
8850
+ PipeModule,
8851
+ InputTextModule,
8852
+ ],
8853
+ declarations: [
8854
+ TransactionReceivingGoodsDetailsComponent
8855
+ ],
8856
+ exports: [
8857
+ TransactionReceivingGoodsDetailsComponent
8858
+ ]
8859
+ },] }
8860
+ ];
8861
+
8862
+ class TransactionConfirmationHistoryComponent {
8863
+ constructor() {
8864
+ this.transactionLines = [];
8865
+ }
8866
+ showClass() {
8867
+ return true;
8868
+ }
8869
+ }
8870
+ TransactionConfirmationHistoryComponent.decorators = [
8871
+ { type: Component, args: [{
8872
+ selector: "co-transaction-confirmation-history",
8873
+ template: `
8874
+ <div class="history-grid-wrapper">
8875
+ <co-transaction-history-grid [transactionLines]="transactionLines">
8876
+ <co-simple-grid-column [headerText]="'PRICE' | localize" [field]="'price'" [order]="40"></co-simple-grid-column>
8877
+ <co-simple-grid-column [headerText]="'DATE' | localize" [field]="'date'" [order]="60"></co-simple-grid-column>
8878
+ </co-transaction-history-grid>
8879
+ </div>
8880
+ `,
8881
+ encapsulation: ViewEncapsulation.None
8882
+ },] }
8883
+ ];
8884
+ TransactionConfirmationHistoryComponent.propDecorators = {
8885
+ transactionLines: [{ type: Input }],
8886
+ showClass: [{ type: HostBinding, args: ["class.co-transaction-confirmation-history",] }]
8887
+ };
8888
+
8889
+ class TransactionConfirmationHistoryModule {
8890
+ }
8891
+ TransactionConfirmationHistoryModule.decorators = [
8892
+ { type: NgModule, args: [{
8893
+ imports: [
8894
+ CommonModule,
8895
+ CoreModule,
8896
+ PipeModule,
8897
+ SimpleGridModule,
8898
+ TransactionHistoryGridModule
8899
+ ],
8900
+ declarations: [
8901
+ TransactionConfirmationHistoryComponent
8902
+ ],
8903
+ exports: [
8904
+ TransactionConfirmationHistoryComponent
8905
+ ]
8906
+ },] }
8907
+ ];
8908
+
8909
+ class TransactionLineSidePanelModule {
8910
+ }
8911
+ TransactionLineSidePanelModule.decorators = [
8912
+ { type: NgModule, args: [{
8913
+ imports: [
8914
+ CommonModule,
8915
+ CoreModule,
8916
+ TransactionLineSidePanelDefaultModule,
8917
+ TransactionReceivingGoodsHistoryModule,
8918
+ TransactionReceivingGoodsDetailsModule,
8919
+ PipeModule,
8920
+ ButtonModule,
8921
+ TransactionNavBarModule,
8922
+ PriceDisplayPipeModule,
8923
+ TransactionConfirmationHistoryModule
8924
+ ],
8925
+ declarations: [
8926
+ TransactionLineSidePanelComponent
8927
+ ],
8928
+ exports: [
8929
+ TransactionLineSidePanelComponent
8930
+ ]
8931
+ },] }
8932
+ ];
8933
+
8934
+ class OrderConfirmationGridComponent {
8935
+ constructor(_transactionService) {
8936
+ this._transactionService = _transactionService;
8937
+ this.icons = Icon;
8938
+ this.orderLines = [];
8939
+ this.sidePanelClicked = new EventEmitter();
8940
+ this.orderGridData = [];
8941
+ }
8942
+ showClass() {
8943
+ return true;
8944
+ }
8945
+ ngOnInit() {
8946
+ const data = [
8947
+ ["Een omschrijving voor een prachtig product. Deze omschrijving is redelijk lang om te checken wat er gebeurd " +
8948
+ "wanneer een omschrijving redelijk lang is.", "123456789", "142", "420", "10", ""],
8949
+ ["Een omschrijving voor een prachtig product.", "123456789", "142", "420", "10", ""],
8950
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
8951
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
8952
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
8953
+ ];
8954
+ data.forEach((d) => {
8955
+ const row = {
8956
+ description: d[0],
8957
+ articleImage: d[1],
8958
+ articleNumber: d[2],
8959
+ location: d[3],
8960
+ inOrder: d[4],
8961
+ sideMenuButton: d[5]
8962
+ };
8963
+ this.orderGridData.push(row);
8964
+ });
8965
+ }
8966
+ openSidePanel() {
8967
+ this.sidePanelClicked.emit();
8968
+ }
8969
+ }
8970
+ OrderConfirmationGridComponent.decorators = [
8971
+ { type: Component, args: [{
8972
+ selector: "co-order-confirmation-grid",
8973
+ template: `
8974
+ <div>
8975
+ <co-order-grid [orderLines]="orderGridData" (sidePanelClicked)="openSidePanel()">
8976
+ <co-simple-grid-column [headerText]="'GROSS_PRICE' | localize" [field]="'grossPrice'" [order]="51"></co-simple-grid-column>
8977
+ <co-simple-grid-column [headerText]="'DISCOUNT' | localize" [field]="'discount'" [order]="52"></co-simple-grid-column>
8978
+ <co-simple-grid-column [headerText]="'NETTO_PRICE' | localize" [field]="'nettoPrice'" [order]="53"></co-simple-grid-column>
8979
+ <co-simple-grid-column [headerText]="'CONFIRMED' | localize" [field]="'confirmed'" [order]="54"></co-simple-grid-column>
8980
+ <co-simple-grid-column [headerText]="'Commit button'" [field]="'commitButton'" [order]="55">
8981
+ <ng-template #template let-row = "row">
8982
+ <co-input-checkbox></co-input-checkbox>
8983
+ </ng-template>
8984
+ </co-simple-grid-column>
8985
+ <co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [field]="'deliveryDate'" [order]="56"></co-simple-grid-column>
8986
+ </co-order-grid>
8987
+ </div>
8988
+ `,
8989
+ encapsulation: ViewEncapsulation.None
8990
+ },] }
8991
+ ];
8992
+ OrderConfirmationGridComponent.ctorParameters = () => [
8993
+ { type: TransactionService }
8994
+ ];
8995
+ OrderConfirmationGridComponent.propDecorators = {
8996
+ orderLines: [{ type: Input }],
8997
+ sidePanelClicked: [{ type: Output }],
8998
+ showClass: [{ type: HostBinding, args: ["class.co-payment",] }]
8999
+ };
9000
+
9001
+ class OrderGridComponent {
9002
+ constructor(_transactionService) {
9003
+ this._transactionService = _transactionService;
9004
+ this.icons = Icon;
9005
+ this.align = ColumnAlign;
9006
+ this.sidePanelClicked = new EventEmitter();
9007
+ this.orderLines = [];
9008
+ this.gridData = [];
9009
+ this.extraColumns = [];
9010
+ }
9011
+ set content(columnComponents) {
9012
+ this.extraColumns = columnComponents.toArray();
9013
+ }
9014
+ showClass() {
9015
+ return true;
9016
+ }
9017
+ ngOnInit() {
9018
+ const data = [
9019
+ ["Een omschrijving voor een prachtig product. Deze omschrijving is redelijk lang om te checken wat er gebeurd " +
9020
+ "wanneer een omschrijving redelijk lang is.", "123456789", "142", "420", "10", ""],
9021
+ ["Een omschrijving voor een prachtig product.", "123456789", "142", "420", "10", ""],
9022
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
9023
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
9024
+ ["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
9025
+ ];
9026
+ data.forEach((d) => {
9027
+ const row = {
9028
+ description: d[0],
9029
+ articleImage: d[1],
9030
+ articleNumber: d[2],
9031
+ location: d[3],
9032
+ inOrder: d[4],
9033
+ grossPrice: d[5],
9034
+ discount: d[6],
9035
+ nettoPrice: d[7],
9036
+ confirmed: d[8],
9037
+ deliveryDate: d[9],
9038
+ sideMenuButton: d[10]
9039
+ };
9040
+ this.gridData.push(row);
9041
+ });
9042
+ }
9043
+ handleDrop(data) {
9044
+ }
9045
+ openSidePanel() {
9046
+ this.sidePanelClicked.emit(true);
9047
+ }
9048
+ }
9049
+ OrderGridComponent.decorators = [
9050
+ { type: Component, args: [{
9051
+ selector: "co-order-grid",
9052
+ template: `
9053
+ <div>
9054
+ <co-simple-grid [data]="gridData" [extraColumns]="extraColumns" [dragDropEnabled]="true" [emitDragDrop]="true" (onDrop)="handleDrop($event)">
9055
+ <co-simple-grid-column [headerText]="'GOOD_DESCRIPTION' | localize" [width]="300" [field]="'description'" [order]="10"></co-simple-grid-column>
9056
+ <co-simple-grid-column [headerText]="'ARTICLE_IMAGE' | localize" [field]="'articleImage'" [order]="20"></co-simple-grid-column>
9057
+ <co-simple-grid-column [headerText]="'ARTICLE_NR' | localize" [field]="'articleNumber'" [order]="30"></co-simple-grid-column>
9058
+ <co-simple-grid-column [headerText]="'LOCATION' | localize" [width]="100" [field]="'location'" [textAlign]="align.Center" [order]="40">
9059
+ <ng-template #template let-row = "row">
9060
+ <div class="co-order-grid-location-icon-wrapper">
9061
+ <icon class="co-order-grid-menu-icon" [icon]="icons.Warehouse"></icon>
9062
+ <span [textContent]="'98'"></span>
9063
+ </div>
9064
+ <div class="co-order-grid-location-icon-wrapper">
9065
+ <icon class="co-order-grid-menu-icon" [icon]="icons.MapMarker"></icon>
9066
+ <span [textContent]="'A01'"></span>
9067
+ </div>
9068
+ <div class="co-order-grid-location-icon-wrapper">
9069
+ <icon class="co-order-grid-menu-icon" [icon]="icons.Truck"></icon>
9070
+ <span [textContent]="'Black'"></span>
9071
+ </div>
9072
+ </ng-template>
9073
+ </co-simple-grid-column>
9074
+ <co-simple-grid-column [headerText]="'IN_ORDER' | localize" [field]="'inOrder'" [order]="50"></co-simple-grid-column>
9075
+ <co-simple-grid-column [headerText]="''" [width]="40" [field]="'sideMenuButton'" [order]="60">
9076
+ <ng-template #template let-row = "row">
9077
+ <icon class="sidepanel-icon" [icon]="icons.Menu" (click)="openSidePanel()"></icon>
9078
+ </ng-template>
9079
+ </co-simple-grid-column>
9080
+ </co-simple-grid>
9081
+ </div>
9082
+ `,
9083
+ encapsulation: ViewEncapsulation.None
9084
+ },] }
9085
+ ];
9086
+ OrderGridComponent.ctorParameters = () => [
9087
+ { type: TransactionService }
9088
+ ];
9089
+ OrderGridComponent.propDecorators = {
9090
+ content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
9091
+ showClass: [{ type: HostBinding, args: ["class.co-order-grid",] }],
9092
+ sidePanelClicked: [{ type: Output }],
9093
+ orderLines: [{ type: Input }]
9094
+ };
9095
+
9096
+ class OrderGridModule {
9097
+ }
9098
+ OrderGridModule.decorators = [
9099
+ { type: NgModule, args: [{
9100
+ imports: [
9101
+ CommonModule,
9102
+ CoreModule,
9103
+ PipeModule,
9104
+ SimpleGridModule,
9105
+ ButtonModule,
9106
+ TransactionLineSidePanelModule,
9107
+ ],
9108
+ declarations: [
9109
+ OrderGridComponent
9110
+ ],
9111
+ exports: [
9112
+ OrderGridComponent
9113
+ ]
9114
+ },] }
9115
+ ];
9116
+
9117
+ class OrderConfirmationGridModule {
9118
+ }
9119
+ OrderConfirmationGridModule.decorators = [
9120
+ { type: NgModule, args: [{
9121
+ imports: [
9122
+ CommonModule,
9123
+ CoreModule,
9124
+ PipeModule,
9125
+ SimpleGridModule,
9126
+ ButtonModule,
9127
+ OrderGridModule,
9128
+ InputCheckboxModule
9129
+ ],
9130
+ declarations: [
9131
+ OrderConfirmationGridComponent
9132
+ ],
9133
+ exports: [
9134
+ OrderConfirmationGridComponent
9135
+ ]
9136
+ },] }
9137
+ ];
9138
+
9139
+ class TransactionModule {
9140
+ }
9141
+ TransactionModule.decorators = [
9142
+ { type: NgModule, args: [{
9143
+ imports: [
9144
+ CommonModule,
9145
+ CoreModule,
9146
+ TransactionHeaderModule,
9147
+ TransactionLinesModule,
9148
+ TransactionTotalsModule,
9149
+ ButtonModule,
9150
+ TransactionLinesGridModule,
9151
+ CoDialogModule,
9152
+ FormModule,
9153
+ InputTextModule,
9154
+ CoSidebarModule,
9155
+ DiscountModule,
9156
+ TransactionCommitBarModule,
9157
+ TransactionNavBarModule,
9158
+ PipeModule,
9159
+ TransactionLineSidePanelModule,
9160
+ OrderConfirmationGridModule
6974
9161
  ],
6975
9162
  declarations: [
6976
9163
  TransactionComponent
@@ -7044,5 +9231,5 @@ TransactionLineGridModule.decorators = [
7044
9231
  * Generated bundle index. Do not edit.
7045
9232
  */
7046
9233
 
7047
- export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderContactComponent, TransactionHeaderContactModule, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesGridComponent, TransactionLinesGridModule, TransactionLinesModule, TransactionModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, TileModule as ɵba, TileComponent as ɵbb, RelationAddressTileComponent as ɵbc, RelationAddressSelectComponent as ɵbd, BusinessObjectFactory as ɵbe, StepperModule as ɵbf, StepperComponent as ɵbg, StepperStepComponent as ɵbh, TransactionArticleTextModule as ɵbi, TransactionArticleTextComponent as ɵbj, TransactionArticleTextOverviewModule as ɵbk, TransactionArticleTextOverviewComponent as ɵbl, TransactionLineSidePanelModule as ɵbm, TransactionLineSidePanelComponent as ɵbn, SellerInformationModule as ɵbo, SellerInformationComponent as ɵbp, DeliveryTypeTileModule as ɵbq, DeliveryTypeTileComponent as ɵbr, PaymentModule as ɵbs, PaymentTileModule as ɵbt, PaymentTileComponent as ɵbu, PaymentComponent as ɵbv, CheckoutOverviewRelationEditComponent as ɵbw, CheckoutOverviewDeliveryEditComponent as ɵbx, CheckoutOverviewDeliveryAddressComponent as ɵby, CheckOutRelationSuggestionsListComponent as ɵbz, OptionsService as ɵc, CheckOutRelationSuggestionsListItemComponent as ɵca, CheckoutLoginComponent as ɵcb, TransactionBaseComponent as ɵcc, DiscountModule as ɵcd, DiscountComponent as ɵce, DictionaryService as ɵd, IOneConnectorAdapterService as ɵe, CoreModule as ɵf, ConfirmationDialogModule as ɵg, PipeModule as ɵh, AppendPipe as ɵi, DeliveryTimePipe as ɵj, DateDurationPipe as ɵk, LocalizePipe as ɵl, CoCurrencyPipe as ɵm, SafeStylePipe as ɵn, SafeHtmlPipe as ɵo, ConfirmationDialogComponent as ɵp, DialogBaseComponent as ɵq, ImageDisplayComponent as ɵr, IconComponent as ɵs, IconCacheService as ɵt, CustomerGroupsComponent as ɵu, StockStatusIndicatorComponent as ɵv, RelationAddressModule as ɵw, RelationAddressComponent as ɵx, RelationAddressSelectModule as ɵy, RelationAddressTileModule as ɵz };
9234
+ export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionHeaderComponent, TransactionHeaderContactComponent, TransactionHeaderContactModule, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesGridComponent, TransactionLinesGridModule, TransactionLinesModule, TransactionModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressTileModule as ɵba, TileModule as ɵbb, TileComponent as ɵbc, RelationAddressTileComponent as ɵbd, RelationAddressSelectComponent as ɵbe, BusinessObjectFactory as ɵbf, StepperModule as ɵbg, StepperComponent as ɵbh, StepperStepComponent as ɵbi, TransactionArticleTextModule as ɵbj, TransactionArticleTextComponent as ɵbk, TransactionArticleTextOverviewModule as ɵbl, TransactionArticleTextOverviewComponent as ɵbm, SellerInformationModule as ɵbn, SellerInformationComponent as ɵbo, DeliveryTypeTileModule as ɵbp, DeliveryTypeTileComponent as ɵbq, PaymentModule as ɵbr, PaymentTileModule as ɵbs, PaymentTileComponent as ɵbt, PaymentComponent as ɵbu, CheckoutOverviewRelationEditComponent as ɵbv, CheckoutOverviewDeliveryEditComponent as ɵbw, CheckoutOverviewDeliveryAddressComponent as ɵbx, CheckOutRelationSuggestionsListComponent as ɵby, CheckOutRelationSuggestionsListItemComponent as ɵbz, OptionsService as ɵc, CheckoutLoginComponent as ɵca, TransactionBaseComponent as ɵcb, DiscountModule as ɵcc, DiscountComponent as ɵcd, TransactionCommitBarModule as ɵce, TransactionCommitBarComponent as ɵcf, TransactionNavBarModule as ɵcg, TransactionNavBarComponent as ɵch, TransactionNavBarButtonComponent as ɵci, TransactionLineSidePanelModule as ɵcj, TransactionLineSidePanelDefaultModule as ɵck, TransactionLinePriceModule as ɵcl, TransactionLinePriceComponent as ɵcm, TransactionLineFieldsBaseComponent as ɵcn, TransactionLinePriceListModule as ɵco, TransactionLinePriceListComponent as ɵcp, TransactionLineVatModule as ɵcq, TransactionLineVatComponent as ɵcr, TransactionLineQuantityModule as ɵcs, TransactionLineQuantityComponent as ɵct, TransactionLineLineDiscountModule as ɵcu, TransactionLineLineDiscountComponent as ɵcv, TransactionLineDeliveryMethodModule as ɵcw, TransactionLineDeliveryMethodComponent as ɵcx, TransactionLineDeliveryDateModule as ɵcy, TransactionLineDeliveryDateComponent as ɵcz, DictionaryService as ɵd, TransactionLineReferenceModule as ɵda, TransactionLineReferenceComponent as ɵdb, TransactionLineCommissionCodeModule as ɵdc, TransactionLineCommissionCodeComponent as ɵdd, TransactionLineWarehouseModule as ɵde, TransactionLineWarehouseComponent as ɵdf, TransactionLineDiscountAmountModule as ɵdg, TransactionLineDiscountAmountComponent as ɵdh, TransactionLineQuantumDiscountModule as ɵdi, TransactionLineQuantumDiscountComponent as ɵdj, TransactionLineSpecialDiscountModule as ɵdk, TransactionLineSpecialDiscountComponent as ɵdl, TransactionLineSidePanelDefaultComponent as ɵdm, TransactionReceivingGoodsHistoryModule as ɵdn, TransactionHistoryGridModule as ɵdo, TransactionHistoryGridStatusModule as ɵdp, TransactionHistoryGridStatusComponent as ɵdq, TransactionHistoryGridComponent as ɵdr, TransactionReceivingGoodsHistoryComponent as ɵds, TransactionReceivingGoodsDetailsModule as ɵdt, TransactionReceivingGoodsDetailsComponent as ɵdu, TransactionConfirmationHistoryModule as ɵdv, TransactionConfirmationHistoryComponent as ɵdw, TransactionLineSidePanelComponent as ɵdx, OrderConfirmationGridModule as ɵdy, OrderGridModule as ɵdz, IOneConnectorAdapterService as ɵe, OrderGridComponent as ɵea, OrderConfirmationGridComponent as ɵeb, CoreModule as ɵf, ConfirmationDialogModule as ɵg, PipeModule as ɵh, AppendPipe as ɵi, DeliveryTimePipe as ɵj, DateDurationPipe as ɵk, LocalizePipe as ɵl, CoCurrencyPipe as ɵm, SafeStylePipe as ɵn, SafeHtmlPipe as ɵo, ConfirmationDialogComponent as ɵp, DialogBaseComponent as ɵq, ImageDisplayComponent as ɵr, IconComponent as ɵs, IconCacheService as ɵt, CustomerGroupsComponent as ɵu, StockStatusIndicatorComponent as ɵv, DefaultOkCancelButtonsComponent as ɵw, RelationAddressModule as ɵx, RelationAddressComponent as ɵy, RelationAddressSelectModule as ɵz };
7048
9235
  //# sourceMappingURL=colijnit-transaction.js.map