@colijnit/transaction 12.1.13 → 12.1.16
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.
- package/bundles/colijnit-transaction.umd.js +6256 -2331
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +130 -86
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +131 -87
- package/esm2015/lib/assets/dictionary/text.properties.js +98 -2
- package/esm2015/lib/component/avatar/avatar.component.js +64 -0
- package/esm2015/lib/component/avatar/avatar.module.js +21 -0
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +11 -1
- package/esm2015/lib/component/checkout/checkout.component.js +9 -8
- package/esm2015/lib/component/checkout/checkout.module.js +3 -3
- package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +38 -0
- package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.module.js +19 -0
- package/esm2015/lib/component/core/base/transaction-grid-base.component.js +53 -0
- package/esm2015/lib/component/core/core.module.js +3 -6
- package/esm2015/lib/component/core/icon/icon.component.js +1 -1
- package/esm2015/lib/component/core/relation/customer-groups.component.js +3 -3
- package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/lib/component/payment/payment.component.js +112 -30
- package/esm2015/lib/component/payment/payment.module.js +7 -3
- package/esm2015/lib/component/payment-tile/payment-tile.component.js +4 -2
- package/esm2015/lib/component/relation-address/relation-address.component.js +3 -3
- package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +7 -2
- package/esm2015/lib/component/transaction/transaction.component.js +41 -39
- package/esm2015/lib/component/transaction/transaction.module.js +15 -9
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-button-bar-button.component.js +29 -0
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.component.js +54 -0
- package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.module.js +28 -0
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +2 -2
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.js +2 -2
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +52 -0
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.js +28 -0
- package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.component.js +85 -0
- package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.module.js +19 -0
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +64 -0
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.module.js +28 -0
- package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.js +76 -0
- package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.module.js +30 -0
- package/esm2015/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.component.js +51 -0
- package/esm2015/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.module.js +29 -0
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.js +156 -0
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.js +30 -0
- package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.component.js +40 -0
- package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.module.js +29 -0
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +75 -0
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +28 -0
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +41 -0
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.js +26 -0
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +58 -0
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +28 -0
- package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +36 -0
- package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.module.js +21 -0
- package/esm2015/lib/component/transaction-header/transaction-header.component.js +6 -11
- package/esm2015/lib/component/transaction-header/transaction-header.module.js +8 -6
- package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.js +16 -3
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +26 -29
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +37 -33
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +6 -4
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +87 -0
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.js +31 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +8 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.js +72 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.module.js +33 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +28 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.js +25 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +23 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.module.js +23 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +65 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.js +25 -0
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +138 -18
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +6 -2
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +57 -11
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.js +7 -4
- package/esm2015/lib/component/transaction-search/service/filter-request.service.js +117 -0
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +33 -0
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +87 -0
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.module.js +34 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.component.js +42 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.module.js +19 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +120 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.module.js +25 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +242 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +28 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +240 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.module.js +30 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +62 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +30 -0
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +55 -0
- package/esm2015/lib/component/transaction-search/transaction-search.module.js +25 -0
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +77 -0
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.module.js +28 -0
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +86 -0
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +26 -0
- package/esm2015/lib/component/view-mode-buttons/view-mode-buttons.component.js +61 -0
- package/esm2015/lib/component/view-mode-buttons/view-mode-buttons.module.js +23 -0
- package/esm2015/lib/enum/content-view-mode.enum.js +2 -1
- package/esm2015/lib/enum/icon.enum.js +18 -1
- package/esm2015/lib/enum/position-grid-row.enum.js +6 -0
- package/esm2015/lib/enum/status-type.enum.js +3 -1
- package/esm2015/lib/enum/transaction-type-category.enum.js +16 -0
- package/esm2015/lib/model/filter-item.viewmodel.js +9 -0
- package/esm2015/lib/model/filter-viewmodel.js +11 -0
- package/esm2015/lib/model/icon-svg.js +18 -1
- package/esm2015/lib/model/payment.viewmodel.js +6 -0
- package/esm2015/lib/model/received-goods-view-model.js +11 -0
- package/esm2015/lib/model/transaction-bar-button.js +3 -0
- package/esm2015/lib/service/article-connector.service.js +60 -0
- package/esm2015/lib/service/article.service.js +25 -0
- package/esm2015/lib/service/collection-cache.service.js +38 -0
- package/esm2015/lib/service/ione-connector-adapter.service.js +187 -18
- package/esm2015/lib/service/options.service.js +3 -1
- package/esm2015/lib/service/payment.service.js +51 -0
- package/esm2015/lib/service/pending-reason.service.js +5 -5
- package/esm2015/lib/service/shared-connector.service.js +53 -0
- package/esm2015/lib/service/shared.service.js +38 -0
- package/esm2015/lib/service/transaction-connector.service.js +1015 -0
- package/esm2015/lib/service/transaction-event.service.js +29 -0
- package/esm2015/lib/service/transaction-image.service.js +53 -0
- package/esm2015/lib/service/transaction-mapping.service.js +85 -0
- package/esm2015/lib/service/transaction.service.js +97 -117
- package/esm2015/public_api.js +15 -9
- package/fesm2015/colijnit-transaction.js +6270 -2159
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/{seller-information/seller-information.component.d.ts → avatar/avatar.component.d.ts} +5 -3
- package/lib/component/avatar/avatar.module.d.ts +2 -0
- package/lib/component/{seller-information → avatar}/style/_layout.scss +5 -5
- package/lib/component/avatar/style/_material-definition.scss +2 -0
- package/lib/component/avatar/style/_theme.scss +7 -0
- package/lib/component/{order-confirmation-grid → avatar}/style/material.scss +0 -1
- package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +2 -0
- package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +0 -1
- package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +0 -1
- package/lib/component/checkout/checkout-relation-suggestions-list/style/material.scss +0 -1
- package/lib/component/checkout/checkout-relation-suggestions-list-item/style/material.scss +0 -1
- package/lib/component/checkout/style/material.scss +1 -2
- package/lib/component/confirmation-dialog/style/material.scss +0 -1
- package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +53 -0
- package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss +20 -0
- package/lib/component/core/base/components/transaction-header-block/style/_theme.scss +11 -0
- package/lib/component/core/base/components/transaction-header-block/style/material.scss +4 -0
- package/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.d.ts +8 -0
- package/lib/component/core/base/components/transaction-header-block/transaction-header-block.module.d.ts +2 -0
- package/lib/component/core/base/style/material.scss +0 -1
- package/lib/component/core/base/transaction-grid-base.component.d.ts +25 -0
- package/lib/component/core/characteristic-answer/characteristic-answer.component.scss +0 -1
- package/lib/component/core/icon/icon.component.scss +0 -1
- package/lib/component/core/image-display/style/material.scss +0 -1
- package/lib/component/core/relation/customer-groups.component.d.ts +2 -2
- package/lib/component/core/stock-status-indicator/stock-status-indicator.component.scss +0 -1
- package/lib/component/delivery-type-tile/style/material.scss +0 -1
- package/lib/component/order-confirmation-create/style/material.scss +0 -1
- package/lib/component/payment/payment.component.d.ts +22 -5
- package/lib/component/payment/style/_layout.scss +23 -1
- package/lib/component/payment/style/_material-definition.scss +0 -1
- package/lib/component/payment/style/_theme.scss +24 -0
- package/lib/component/payment/style/material.scss +0 -1
- package/lib/component/payment-tile/payment-tile.component.d.ts +1 -0
- package/lib/component/payment-tile/style/_layout.scss +2 -1
- package/lib/component/payment-tile/style/material.scss +0 -1
- package/lib/component/relation-address/relation-address.component.d.ts +2 -2
- package/lib/component/relation-address/style/material.scss +0 -1
- package/lib/component/relation-address-select/style/material.scss +0 -1
- package/lib/component/relation-address-tile/style/material.scss +0 -1
- package/lib/component/shared/transaction-article-text/style/material.scss +0 -1
- package/lib/component/shared/transaction-article-text-overview/style/material.scss +0 -1
- package/lib/component/shopping-cart/style/material.scss +0 -1
- package/lib/component/shopping-cart-OLD/shopping-cart-manager/shopping-cart-manager.component.scss +0 -1
- package/lib/component/shopping-cart-preview/style/material.scss +0 -1
- package/lib/component/stepper/style/material.scss +0 -1
- package/lib/component/tile/style/material.scss +0 -1
- package/lib/component/transaction/style/_layout.scss +13 -13
- package/lib/component/transaction/style/_material-definition.scss +2 -6
- package/lib/component/transaction/style/_theme.scss +0 -18
- package/lib/component/transaction/style/material.scss +5 -5
- package/lib/component/transaction/transaction.component.d.ts +9 -9
- package/lib/component/transaction-button-bar/style/_layout.scss +50 -0
- package/lib/component/transaction-button-bar/style/_material-definition.scss +12 -0
- package/lib/component/transaction-button-bar/style/_theme.scss +14 -0
- package/lib/component/{order-grid → transaction-button-bar}/style/material.scss +0 -1
- package/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-button-bar-button.component.d.ts +9 -0
- package/lib/component/transaction-button-bar/transaction-button-bar.component.d.ts +17 -0
- package/lib/component/transaction-button-bar/transaction-button-bar.module.d.ts +2 -0
- package/lib/component/transaction-confirmation-history/style/material.scss +0 -1
- package/lib/component/transaction-grid/transaction-base-grid/style/_layout.scss +33 -0
- package/lib/component/transaction-grid/transaction-base-grid/style/_material-definition.scss +8 -0
- package/lib/component/transaction-grid/transaction-base-grid/style/_theme.scss +12 -0
- package/lib/component/{seller-information → transaction-grid/transaction-base-grid}/style/material.scss +0 -1
- package/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.d.ts +8 -0
- package/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.d.ts +2 -0
- package/lib/component/transaction-grid/transaction-grid/style/_layout.scss +6 -0
- package/lib/component/{transaction-history-grid → transaction-grid/transaction-grid}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-grid/transaction-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-grid/transaction-grid/style/material.scss +5 -0
- package/lib/component/transaction-grid/transaction-grid/transaction-grid.component.d.ts +26 -0
- package/lib/component/transaction-grid/transaction-grid/transaction-grid.module.d.ts +2 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_layout.scss +15 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_material-definition.scss +1 -0
- package/lib/component/{transaction-history-grid → transaction-grid/transaction-history-grid}/style/_theme.scss +1 -1
- package/lib/component/{transaction-commit-bar → transaction-grid/transaction-history-grid}/style/material.scss +0 -1
- package/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.d.ts +19 -0
- package/lib/component/{transaction-history-grid → transaction-grid/transaction-history-grid}/transaction-history-grid.module.d.ts +0 -0
- package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_layout.scss +5 -1
- package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_material-definition.scss +3 -0
- package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_theme.scss +1 -1
- package/lib/component/transaction-grid/transaction-lines-grid/style/material.scss +4 -0
- package/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.d.ts +11 -0
- package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/transaction-lines-grid.module.d.ts +0 -0
- package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/_layout.scss +7 -0
- package/lib/component/{order-confirmation-grid → transaction-grid/transaction-order-confirmation-grid}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/_theme.scss +7 -0
- package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/material.scss +3 -0
- package/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.component.d.ts +4 -0
- package/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.module.d.ts +2 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/style/_layout.scss +6 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/style/_material-definition.scss +0 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/style/material.scss +4 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.d.ts +37 -0
- package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header/style/_layout.scss +40 -0
- package/lib/component/transaction-header/transaction-header/style/_material-definition.scss +9 -0
- package/lib/component/transaction-header/transaction-header/style/_theme.scss +11 -0
- package/lib/component/transaction-header/transaction-header/style/material.scss +7 -0
- package/lib/component/transaction-header/transaction-header/transaction-header.component.d.ts +10 -0
- package/lib/component/transaction-header/transaction-header/transaction-header.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +38 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +7 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_theme.scss +25 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/material.scss +3 -0
- package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +15 -0
- package/lib/component/{transaction-header-delivery → transaction-header/transaction-header-delivery}/transaction-header-delivery.module.d.ts +0 -0
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +12 -0
- package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +0 -0
- package/lib/component/transaction-header/transaction-header-order/style/_theme.scss +6 -0
- package/lib/component/transaction-header/transaction-header-order/style/material.scss +4 -0
- package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +4 -0
- package/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +14 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +4 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_theme.scss +12 -0
- package/lib/component/transaction-header/transaction-header-payment/style/material.scss +5 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +6 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-relation/style/_layout.scss +7 -0
- package/lib/component/transaction-header/transaction-header-relation/style/_material-definition.scss +0 -0
- package/lib/component/transaction-header/transaction-header-relation/style/_theme.scss +6 -0
- package/lib/component/transaction-header/transaction-header-relation/style/material.scss +4 -0
- package/lib/component/{transaction-header-relation → transaction-header/transaction-header-relation}/transaction-header-relation.component.d.ts +1 -1
- package/lib/component/{transaction-header-relation → transaction-header/transaction-header-relation}/transaction-header-relation.module.d.ts +0 -0
- package/lib/component/transaction-header/transaction-header.component.d.ts +0 -2
- package/lib/component/transaction-history-grid-status/style/_layout.scss +7 -7
- package/lib/component/transaction-history-grid-status/style/_material-definition.scss +8 -0
- package/lib/component/transaction-history-grid-status/style/material.scss +0 -1
- package/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.d.ts +2 -0
- package/lib/component/transaction-line/style/_layout.scss +38 -1
- package/lib/component/transaction-line/style/_material-definition.scss +4 -3
- package/lib/component/transaction-line/style/_theme.scss +5 -0
- package/lib/component/transaction-line/style/material.scss +0 -1
- package/lib/component/transaction-line/transaction-line.component.d.ts +7 -4
- package/lib/component/transaction-line-grid/style/material.scss +0 -1
- package/lib/component/transaction-line-side-panel/style/_layout.scss +3 -2
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +2 -0
- package/lib/component/transaction-line-side-panel/style/material.scss +0 -1
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +13 -6
- package/lib/component/transaction-line-side-panel-default/style/material.scss +0 -1
- package/lib/component/transaction-line-side-panel-purchase/style/_layout.scss +6 -0
- package/lib/component/transaction-line-side-panel-purchase/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line-side-panel-purchase/style/_theme.scss +6 -0
- package/lib/component/transaction-line-side-panel-purchase/style/material.scss +5 -0
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +21 -0
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.d.ts +2 -0
- package/lib/component/transaction-lines/style/material.scss +0 -1
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +3 -5
- package/lib/component/transaction-quick-access/transaction-quick-access/style/_layout.scss +11 -0
- package/lib/component/{transaction-commit-bar → transaction-quick-access/transaction-quick-access}/style/_material-definition.scss +0 -0
- package/lib/component/{transaction-commit-bar → transaction-quick-access/transaction-quick-access}/style/_theme.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access/style/material.scss +6 -0
- package/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.d.ts +21 -0
- package/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.module.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_layout.scss +9 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_material-definition.scss +0 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_theme.scss +6 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/material.scss +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_layout.scss +7 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_material-definition.scss +0 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_theme.scss +6 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/material.scss +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.d.ts +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.module.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +9 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_material-definition.scss +0 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_theme.scss +6 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/material.scss +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +27 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.d.ts +2 -0
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +4 -4
- package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +3 -1
- package/lib/component/transaction-receiving-goods-details/style/material.scss +0 -1
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +28 -2
- package/lib/component/transaction-receiving-goods-history/style/material.scss +0 -1
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +14 -1
- package/lib/component/transaction-search/service/filter-request.service.d.ts +23 -0
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +11 -0
- package/lib/component/transaction-search/style/_layout.scss +37 -0
- package/lib/component/transaction-search/style/_material-definition.scss +41 -0
- package/lib/component/transaction-search/style/_theme.scss +6 -0
- package/lib/component/transaction-search/style/material.scss +7 -0
- package/lib/component/transaction-search/transaction-filter/style/_layout.scss +53 -0
- package/lib/component/transaction-search/transaction-filter/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/transaction-filter/style/_theme.scss +8 -0
- package/lib/component/transaction-search/transaction-filter/style/material.scss +7 -0
- package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts +21 -0
- package/lib/component/transaction-search/transaction-filter/transaction-filter.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_layout.scss +23 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_theme.scss +13 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.component.d.ts +10 -0
- package/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-content-article/style/_layout.scss +13 -0
- package/lib/component/transaction-search/transaction-filter-content-article/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/transaction-filter-content-article/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-filter-content-article/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +37 -0
- package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/_layout.scss +12 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +36 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-content-order/style/_layout.scss +12 -0
- package/lib/component/transaction-search/transaction-filter-content-order/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/transaction-filter-content-order/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-filter-content-order/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +60 -0
- package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +30 -0
- package/lib/component/transaction-search/transaction-search-result/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +10 -0
- package/lib/component/transaction-search/transaction-search-result/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +19 -0
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +12 -0
- package/lib/component/transaction-search/transaction-search.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-tile/style/_layout.scss +91 -0
- package/lib/component/transaction-search/transaction-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-tile/style/_theme.scss +46 -0
- package/lib/component/transaction-search/transaction-tile/style/material.scss +5 -0
- package/lib/component/transaction-search/transaction-tile/transaction-tile.component.d.ts +13 -0
- package/lib/component/transaction-search/transaction-tile/transaction-tile.module.d.ts +2 -0
- package/lib/component/transaction-search-grid/style/_layout.scss +6 -0
- package/lib/component/transaction-search-grid/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-search-grid/style/material.scss +7 -0
- package/lib/component/transaction-search-grid/transaction-search-grid.component.d.ts +13 -0
- package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +2 -0
- package/lib/component/transaction-totals/style/material.scss +0 -1
- package/lib/component/view-mode-buttons/style/_layout.scss +20 -0
- package/lib/component/view-mode-buttons/style/_material-definition.scss +5 -0
- package/lib/component/view-mode-buttons/style/_theme.scss +22 -0
- package/lib/component/view-mode-buttons/style/material.scss +3 -0
- package/lib/component/view-mode-buttons/view-mode-buttons.component.d.ts +17 -0
- package/lib/component/view-mode-buttons/view-mode-buttons.module.d.ts +2 -0
- package/lib/enum/content-view-mode.enum.d.ts +2 -1
- package/lib/enum/icon.enum.d.ts +17 -0
- package/lib/enum/position-grid-row.enum.d.ts +4 -0
- package/lib/enum/status-type.enum.d.ts +3 -1
- package/lib/enum/transaction-type-category.enum.d.ts +14 -0
- package/lib/model/filter-item.viewmodel.d.ts +7 -0
- package/lib/model/filter-viewmodel.d.ts +8 -0
- package/lib/model/payment.viewmodel.d.ts +6 -0
- package/lib/model/received-goods-view-model.d.ts +10 -0
- package/lib/model/transaction-bar-button.d.ts +7 -0
- package/lib/service/article-connector.service.d.ts +13 -0
- package/lib/service/article.service.d.ts +6 -0
- package/lib/service/collection-cache.service.d.ts +6 -0
- package/lib/service/ione-connector-adapter.service.d.ts +24 -3
- package/lib/service/options.service.d.ts +1 -0
- package/lib/service/payment.service.d.ts +9 -0
- package/lib/service/pending-reason.service.d.ts +3 -3
- package/lib/service/shared-connector.service.d.ts +12 -0
- package/lib/service/shared.service.d.ts +13 -0
- package/lib/service/transaction-connector.service.d.ts +119 -0
- package/lib/service/transaction-event.service.d.ts +65 -0
- package/lib/service/transaction-image.service.d.ts +10 -0
- package/lib/service/transaction-mapping.service.d.ts +14 -0
- package/lib/service/transaction.service.d.ts +48 -28
- package/lib/style/_variables.scss +41 -36
- package/lib/style/transaction-globals.scss +25 -0
- package/package.json +6 -3
- package/public_api.d.ts +14 -8
- package/esm2015/lib/component/core/base/default-ok-cancel-buttons.component.js +0 -41
- package/esm2015/lib/component/order-confirmation-grid/order-confirmation-grid.component.js +0 -70
- package/esm2015/lib/component/order-confirmation-grid/order-confirmation-grid.module.js +0 -29
- package/esm2015/lib/component/order-grid/order-grid.component.js +0 -99
- package/esm2015/lib/component/order-grid/order-grid.module.js +0 -28
- package/esm2015/lib/component/seller-information/seller-information.component.js +0 -61
- package/esm2015/lib/component/seller-information/seller-information.module.js +0 -21
- package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.component.js +0 -46
- package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.module.js +0 -27
- package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.component.js +0 -34
- package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.module.js +0 -19
- package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.component.js +0 -60
- package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.module.js +0 -21
- package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.component.js +0 -35
- package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.module.js +0 -19
- package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.component.js +0 -47
- package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.module.js +0 -27
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +0 -64
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.module.js +0 -27
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.js +0 -29
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.component.js +0 -65
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.module.js +0 -26
- package/esm2015/lib/enum/tab-category.enum.js +0 -10
- package/lib/component/core/base/default-ok-cancel-buttons.component.d.ts +0 -13
- package/lib/component/order-confirmation-grid/order-confirmation-grid.component.d.ts +0 -15
- package/lib/component/order-confirmation-grid/order-confirmation-grid.module.d.ts +0 -2
- package/lib/component/order-confirmation-grid/style/_layout.scss +0 -5
- package/lib/component/order-confirmation-grid/style/_theme.scss +0 -5
- package/lib/component/order-grid/order-grid.component.d.ts +0 -23
- package/lib/component/order-grid/order-grid.module.d.ts +0 -2
- package/lib/component/order-grid/style/_layout.scss +0 -21
- package/lib/component/order-grid/style/_material-definition.scss +0 -2
- package/lib/component/order-grid/style/_theme.scss +0 -6
- package/lib/component/seller-information/seller-information.module.d.ts +0 -2
- package/lib/component/seller-information/style/_material-definition.scss +0 -2
- package/lib/component/seller-information/style/_theme.scss +0 -7
- package/lib/component/transaction-commit-bar/style/_layout.scss +0 -16
- package/lib/component/transaction-commit-bar/transaction-commit-bar.component.d.ts +0 -11
- package/lib/component/transaction-commit-bar/transaction-commit-bar.module.d.ts +0 -2
- package/lib/component/transaction-header-contact/style/_layout.scss +0 -25
- package/lib/component/transaction-header-contact/style/_material-definition.scss +0 -7
- package/lib/component/transaction-header-contact/style/_theme.scss +0 -11
- package/lib/component/transaction-header-contact/style/material.scss +0 -4
- package/lib/component/transaction-header-contact/transaction-header-contact.component.d.ts +0 -4
- package/lib/component/transaction-header-contact/transaction-header-contact.module.d.ts +0 -2
- package/lib/component/transaction-header-delivery/style/_layout.scss +0 -54
- package/lib/component/transaction-header-delivery/style/_material-definition.scss +0 -12
- package/lib/component/transaction-header-delivery/style/_theme.scss +0 -24
- package/lib/component/transaction-header-delivery/style/material.scss +0 -4
- package/lib/component/transaction-header-delivery/transaction-header-delivery.component.d.ts +0 -13
- package/lib/component/transaction-header-relation/style/_layout.scss +0 -25
- package/lib/component/transaction-header-relation/style/_material-definition.scss +0 -7
- package/lib/component/transaction-header-relation/style/_theme.scss +0 -11
- package/lib/component/transaction-header-relation/style/material.scss +0 -4
- package/lib/component/transaction-history-grid/style/_layout.scss +0 -7
- package/lib/component/transaction-history-grid/style/material.scss +0 -4
- package/lib/component/transaction-history-grid/transaction-history-grid.component.d.ts +0 -14
- package/lib/component/transaction-lines-grid/style/material.scss +0 -5
- package/lib/component/transaction-lines-grid/transaction-lines-grid.component.d.ts +0 -20
- package/lib/component/transaction-nav-bar/style/_layout.scss +0 -13
- package/lib/component/transaction-nav-bar/style/_material-definition.scss +0 -1
- package/lib/component/transaction-nav-bar/style/_theme.scss +0 -7
- package/lib/component/transaction-nav-bar/style/material.scss +0 -4
- package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.d.ts +0 -14
- package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.scss +0 -23
- package/lib/component/transaction-nav-bar/transaction-nav-bar.component.d.ts +0 -18
- package/lib/component/transaction-nav-bar/transaction-nav-bar.module.d.ts +0 -2
- package/lib/enum/tab-category.enum.d.ts +0 -8
|
@@ -1,39 +1,159 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import { PurchaseOrderLineReceiptDetails } from "@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo";
|
|
4
|
+
import { FormMasterService } from "@colijnit/corecomponents_v12";
|
|
5
|
+
import { ReceiveGoodsForPurchaseOrderRequest } from "@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo";
|
|
6
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
7
|
+
import { ArticleService } from "../../service/article.service";
|
|
3
8
|
export class TransactionReceivingGoodsDetailsComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.
|
|
9
|
+
constructor(_formMaster, _service, _articleService) {
|
|
10
|
+
this._formMaster = _formMaster;
|
|
11
|
+
this._service = _service;
|
|
12
|
+
this._articleService = _articleService;
|
|
13
|
+
this.reloadReceivingGoodsHistory = new EventEmitter();
|
|
14
|
+
this.receiptDetails = new PurchaseOrderLineReceiptDetails();
|
|
15
|
+
this.request = new ReceiveGoodsForPurchaseOrderRequest();
|
|
16
|
+
this.saveButtonDisabled = false;
|
|
17
|
+
this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
18
|
+
this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
19
|
+
const timeElapsed = Date.now();
|
|
20
|
+
this.request.receivedDate = new Date(timeElapsed);
|
|
21
|
+
}
|
|
22
|
+
set amountLeftToReceive(value) {
|
|
23
|
+
this._amountLeftToReceive = value;
|
|
24
|
+
this.receiptDetails.quantityToReceive = value;
|
|
25
|
+
}
|
|
26
|
+
set transactionLine(value) {
|
|
27
|
+
this._transactionLine = value;
|
|
28
|
+
this.receiptDetails.warehouseNr = value.warehouseNumber;
|
|
29
|
+
this.receiptDetails.lineNr = value.lineNr;
|
|
6
30
|
}
|
|
7
31
|
showClass() {
|
|
8
32
|
return true;
|
|
9
33
|
}
|
|
34
|
+
get amountLeftToReceive() {
|
|
35
|
+
return this._amountLeftToReceive;
|
|
36
|
+
}
|
|
37
|
+
get transactionLine() {
|
|
38
|
+
return this._transactionLine;
|
|
39
|
+
}
|
|
40
|
+
submit() {
|
|
41
|
+
return this._formMaster.submitSlaves();
|
|
42
|
+
}
|
|
43
|
+
locationRequired() {
|
|
44
|
+
return this._transactionLine.isLocationRequired ||
|
|
45
|
+
this._transactionLine.isBatchNrRequired ||
|
|
46
|
+
this._transactionLine.isSerialNrRequired;
|
|
47
|
+
}
|
|
48
|
+
handleSaveDetailsEdit() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const valid = this.submit();
|
|
51
|
+
if (valid) {
|
|
52
|
+
this.saveButtonDisabled = true;
|
|
53
|
+
const request = this.request;
|
|
54
|
+
request.transId = this.transactionId;
|
|
55
|
+
yield this._service.receiveGoodsForPurchaseOrder(request).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
this.reloadReceivingGoodsHistory.next();
|
|
57
|
+
})).catch((e) => {
|
|
58
|
+
this.saveButtonDisabled = false;
|
|
59
|
+
});
|
|
60
|
+
this.saveButtonDisabled = false;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
handleCancelDetailsEdit() {
|
|
65
|
+
// Velden resetten
|
|
66
|
+
}
|
|
67
|
+
handleDropDownSelected(warehouseNr) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
if (!this.locations) {
|
|
70
|
+
yield this._articleService.getWarehouseLocations(warehouseNr).then((result) => {
|
|
71
|
+
this.locations = result;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
10
76
|
}
|
|
11
77
|
TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
12
78
|
{ type: Component, args: [{
|
|
13
79
|
selector: 'co-transaction-receiving-goods-details',
|
|
14
80
|
template: `
|
|
15
81
|
<div class="receipt-details-wrapper">
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
<div class="
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
82
|
+
<co-form>
|
|
83
|
+
<div class="details-header" [textContent]="'RECEIPT_DETAILS' | localize | uppercase"></div>
|
|
84
|
+
<div class="columns-wrapper">
|
|
85
|
+
<div class="details-column">
|
|
86
|
+
<co-input-text class="details-input"
|
|
87
|
+
[max]="amountLeftToReceive"
|
|
88
|
+
[(model)]="receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive"
|
|
89
|
+
[disabled]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0"
|
|
90
|
+
[readonly]="!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0"
|
|
91
|
+
[required]="true"
|
|
92
|
+
[type]="'number'"
|
|
93
|
+
[min]="1"
|
|
94
|
+
[placeholder]="'AMOUNT' | localize"></co-input-text>
|
|
95
|
+
<co-input-text class="details-input" [(model)]="receiptDetails.warehouseNr"
|
|
96
|
+
[type]="'number'"
|
|
97
|
+
[hideArrowButtons]="true"
|
|
98
|
+
[readonly]="transactionLine.warehouseNumber !== undefined"
|
|
99
|
+
[disabled]="transactionLine.warehouseNumber !== undefined"
|
|
100
|
+
[required]="transactionLine.isWarehouseRequired"
|
|
101
|
+
[placeholder]="'WAREHOUSE' | localize"></co-input-text>
|
|
102
|
+
<co-drop-down-list class="details-input"
|
|
103
|
+
noTriangleGraphic
|
|
104
|
+
(focus)="handleDropDownSelected(receiptDetails.warehouseNr)"
|
|
105
|
+
[collection]="locations"
|
|
106
|
+
[fields]="locationDropdownFields"
|
|
107
|
+
[(model)]="receiptDetails.locationNr"
|
|
108
|
+
[required]="locationRequired()"
|
|
109
|
+
[readonly]="receiptDetails.quantityToReceive === 0"
|
|
110
|
+
[disabled]="receiptDetails.quantityToReceive === 0"
|
|
111
|
+
[placeholder]="'LOCATION' | localize"
|
|
112
|
+
></co-drop-down-list>
|
|
113
|
+
<co-input-text class="details-input" [(model)]="request.packingSlipNr"
|
|
114
|
+
[placeholder]="'PACKING_SLIP' | localize"></co-input-text>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="divider-wrapper">
|
|
117
|
+
<div class="divider"></div>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="details-column">
|
|
120
|
+
<co-input-date class="details-input" [(model)]="request.receivedDate"
|
|
121
|
+
></co-input-date>
|
|
122
|
+
<co-input-text class="details-input" [(model)]="receiptDetails.batchNr"
|
|
123
|
+
[type]="'number'"
|
|
124
|
+
[hideArrowButtons]="true"
|
|
125
|
+
[required]="transactionLine.isBatchNrRequired"
|
|
126
|
+
[placeholder]="'BATCH_NUMBER' | localize"></co-input-text>
|
|
127
|
+
<co-input-text class="details-input" [(model)]="receiptDetails.serialNr"
|
|
128
|
+
[type]="'number'"
|
|
129
|
+
[hideArrowButtons]="true"
|
|
130
|
+
[required]="transactionLine.isSerialNrRequired"
|
|
131
|
+
[placeholder]="'SERIAL_NUMBER' | localize"></co-input-text>
|
|
132
|
+
<!-- <co-input-text class="details-input" [(model)]="receiptDetails.refLineNr"-->
|
|
133
|
+
<!-- [placeholder]="'REFERENCE_ID' | localize"></co-input-text>-->
|
|
134
|
+
</div>
|
|
28
135
|
</div>
|
|
136
|
+
</co-form>
|
|
137
|
+
|
|
138
|
+
<div class="save-cancel-wrapper">
|
|
139
|
+
<co-button class="button-wrapper" [label]="'SAVE' | localize" (click)="handleSaveDetailsEdit()"></co-button>
|
|
140
|
+
<co-button class="button-wrapper" [label]="'CANCEL' | localize" (click)="handleCancelDetailsEdit()"></co-button>
|
|
29
141
|
</div>
|
|
30
142
|
</div>
|
|
31
143
|
`,
|
|
32
144
|
encapsulation: ViewEncapsulation.None
|
|
33
145
|
},] }
|
|
34
146
|
];
|
|
147
|
+
TransactionReceivingGoodsDetailsComponent.ctorParameters = () => [
|
|
148
|
+
{ type: FormMasterService },
|
|
149
|
+
{ type: TransactionService },
|
|
150
|
+
{ type: ArticleService }
|
|
151
|
+
];
|
|
35
152
|
TransactionReceivingGoodsDetailsComponent.propDecorators = {
|
|
36
|
-
|
|
153
|
+
amountLeftToReceive: [{ type: Input }],
|
|
154
|
+
transactionId: [{ type: Input }],
|
|
155
|
+
transactionLine: [{ type: Input }],
|
|
156
|
+
reloadReceivingGoodsHistory: [{ type: Output }],
|
|
37
157
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
|
|
38
158
|
};
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9jb21wb25lbnQvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSwrREFBK0QsQ0FBQztBQXdCbEcsTUFBTSxPQUFPLHlDQUF5QztJQXRCdEQ7UUF5QlMsd0JBQW1CLEdBQXdCLElBQUksbUJBQW1CLEVBQUUsQ0FBQztJQVM5RSxDQUFDO0lBTlEsU0FBUztRQUNkLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQzs7O1lBOUJGLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsd0NBQXdDO2dCQUNsRCxRQUF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y5xdWFudGl0eVRvUmVjZWl2ZSA9PT0gMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbcmVxdWlyZWRdPVwidHJ1ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbdHlwZV09XCInbnVtYmVyJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbbWluXT1cIjFcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cIidBTU9VTlQnIHwgbG9jYWxpemVcIj48L2NvLWlucHV0LXRleHQ+XG4gICAgICAgICAgICA8Y28taW5wdXQtdGV4dCBjbGFzcz1cImRldGFpbHMtaW5wdXRcIiBbKG1vZGVsKV09XCJyZWNlaXB0RGV0YWlscy53YXJlaG91c2VOclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbdHlwZV09XCInbnVtYmVyJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbaGlkZUFycm93QnV0dG9uc109XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZWFkb25seV09XCJ0cmFuc2FjdGlvbkxpbmUud2FyZWhvdXNlTnVtYmVyICE9PSB1bmRlZmluZWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cInRyYW5zYWN0aW9uTGluZS53YXJlaG91c2VOdW1iZXIgIT09IHVuZGVmaW5lZFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbcmVxdWlyZWRdPVwidHJhbnNhY3Rpb25MaW5lLmlzV2FyZWhvdXNlUmVxdWlyZWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cIidXQVJFSE9VU0UnIHwgbG9jYWxpemVcIj48L2NvLWlucHV0LXRleHQ+XG4gICAgICAgICAgICA8Y28tZHJvcC1kb3duLWxpc3QgY2xhc3M9XCJkZXRhaWxzLWlucHV0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBub1RyaWFuZ2xlR3JhcGhpY1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmb2N1cyk9XCJoYW5kbGVEcm9wRG93blNlbGVjdGVkKHJlY2VpcHREZXRhaWxzLndhcmVob3VzZU5yKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2NvbGxlY3Rpb25dPVwibG9jYXRpb25zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZmllbGRzXT1cImxvY2F0aW9uRHJvcGRvd25GaWVsZHNcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsobW9kZWwpXT1cInJlY2VpcHREZXRhaWxzLmxvY2F0aW9uTnJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZXF1aXJlZF09XCJsb2NhdGlvblJlcXVpcmVkKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZWFkb25seV09XCJyZWNlaXB0RGV0YWlscy5xdWFudGl0eVRvUmVjZWl2ZSA9PT0gMFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cInJlY2VpcHREZXRhaWxzLnF1YW50aXR5VG9SZWNlaXZlID09PSAwXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcGxhY2Vob2xkZXJdPVwiJ0xPQ0FUSU9OJyB8IGxvY2FsaXplXCJcbiAgICAgICAgICAgID48L2NvLWRyb3AtZG93bi1saXN0PlxuICAgICAgICAgICAgPGNvLWlucHV0LXRleHQgY2xhc3M9XCJkZXRhaWxzLWlucHV0XCIgWyhtb2RlbCldPVwicmVxdWVzdC5wYWNraW5nU2xpcE5yXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCInUEFDS0lOR19TTElQJyB8IGxvY2FsaXplXCI+PC9jby1pbnB1dC10ZXh0PlxuICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDxkaXYgY2xhc3M9XCJkaXZpZGVyLXdyYXBwZXJcIj5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkaXZpZGVyXCI+PC9kaXY+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgPGRpdiBjbGFzcz1cImRldGFpbHMtY29sdW1uXCI+XG4gICAgICAgICAgICA8Y28taW5wdXQtZGF0ZSBjbGFzcz1cImRldGFpbHMtaW5wdXRcIiBbKG1vZGVsKV09XCJyZXF1ZXN0LnJlY2VpdmVkRGF0ZVwiXG4gICAgICAgICAgICA+PC9jby1pbnB1dC1kYXRlPlxuICAgICAgICAgICAgPGNvLWlucHV0LXRleHQgY2xhc3M9XCJkZXRhaWxzLWlucHV0XCIgWyhtb2RlbCldPVwicmVjZWlwdERldGFpbHMuYmF0Y2hOclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbdHlwZV09XCInbnVtYmVyJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbaGlkZUFycm93QnV0dG9uc109XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZXF1aXJlZF09XCJ0cmFuc2FjdGlvbkxpbmUuaXNCYXRjaE5yUmVxdWlyZWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cIidCQVRDSF9OVU1CRVInIHwgbG9jYWxpemVcIj48L2NvLWlucHV0LXRleHQ+XG4gICAgICAgICAgICA8Y28taW5wdXQtdGV4dCBjbGFzcz1cImRldGFpbHMtaW5wdXRcIiBbKG1vZGVsKV09XCJyZWNlaXB0RGV0YWlscy5zZXJpYWxOclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbdHlwZV09XCInbnVtYmVyJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBbaGlkZUFycm93QnV0dG9uc109XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyZXF1aXJlZF09XCJ0cmFuc2FjdGlvbkxpbmUuaXNTZ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b25EaXNhYmxlZCA9IGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGVDYW5jZWxEZXRhaWxzRWRpdCgpOiB2b2lkIHtcbiAgICAvLyBWZWxkZW4gcmVzZXR0ZW5cbiAgfVxuXG4gIHB1YmxpYyBhc3luYyBoYW5kbGVEcm9wRG93blNlbGVjdGVkKHdhcmVob3VzZU5yOiBudW1iZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBpZiAoIXRoaXMubG9jYXRpb25zKSB7XG4gICAgICBhd2FpdCB0aGlzLl9hcnRpY2xlU2VydmljZS5nZXRXYXJlaG91c2VMb2NhdGlvbnMod2FyZWhvdXNlTnIpLnRoZW4oKHJlc3VsdCkgPT4ge1xuICAgICAgICB0aGlzLmxvY2F0aW9ucyA9IHJlc3VsdDtcbiAgICAgIH0pXG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -3,7 +3,7 @@ import { CommonModule } from "@angular/common";
|
|
|
3
3
|
import { CoreModule } from "../core/core.module";
|
|
4
4
|
import { PipeModule } from "../../pipe/pipe.module";
|
|
5
5
|
import { TransactionReceivingGoodsDetailsComponent } from "./transaction-receiving-goods-details.component";
|
|
6
|
-
import { InputTextModule } from "@colijnit/corecomponents_v12";
|
|
6
|
+
import { ButtonModule, DropDownModule, FormModule, InputDatePickerModule, InputTextModule } from "@colijnit/corecomponents_v12";
|
|
7
7
|
export class TransactionReceivingGoodsDetailsModule {
|
|
8
8
|
}
|
|
9
9
|
TransactionReceivingGoodsDetailsModule.decorators = [
|
|
@@ -13,6 +13,10 @@ TransactionReceivingGoodsDetailsModule.decorators = [
|
|
|
13
13
|
CoreModule,
|
|
14
14
|
PipeModule,
|
|
15
15
|
InputTextModule,
|
|
16
|
+
FormModule,
|
|
17
|
+
InputDatePickerModule,
|
|
18
|
+
ButtonModule,
|
|
19
|
+
DropDownModule,
|
|
16
20
|
],
|
|
17
21
|
declarations: [
|
|
18
22
|
TransactionReceivingGoodsDetailsComponent
|
|
@@ -22,4 +26,4 @@ TransactionReceivingGoodsDetailsModule.decorators = [
|
|
|
22
26
|
]
|
|
23
27
|
},] }
|
|
24
28
|
];
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9jb21wb25lbnQvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWRldGFpbHMubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUMvQyxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDbEQsT0FBTyxFQUFDLHlDQUF5QyxFQUFDLE1BQU0saURBQWlELENBQUM7QUFDMUcsT0FBTyxFQUNMLFlBQVksRUFDWixjQUFjLEVBQ2QsVUFBVSxFQUNWLHFCQUFxQixFQUNyQixlQUFlLEVBQ2hCLE1BQU0sOEJBQThCLENBQUM7QUFvQnRDLE1BQU0sT0FBTyxzQ0FBc0M7OztZQWxCbEQsUUFBUSxTQUFDO2dCQUNSLE9BQU8sRUFBRTtvQkFDUCxZQUFZO29CQUNaLFVBQVU7b0JBQ1YsVUFBVTtvQkFDVixlQUFlO29CQUNmLFVBQVU7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yXG4gICAgRHJvcERvd25Nb2R1bGUsXHJcbiAgXSxcclxuICBkZWNsYXJhdGlvbnM6IFtcclxuICAgIFRyYW5zYWN0aW9uUmVjZWl2aW5nR29vZHNEZXRhaWxzQ29tcG9uZW50XHJcbiAgXSxcclxuICBleHBvcnRzOiBbXHJcbiAgICBUcmFuc2FjdGlvblJlY2VpdmluZ0dvb2RzRGV0YWlsc0NvbXBvbmVudFxyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIFRyYW5zYWN0aW9uUmVjZWl2aW5nR29vZHNEZXRhaWxzTW9kdWxlIHtcclxufVxyXG4iXX0=
|
|
@@ -1,28 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation } from "@angular/core";
|
|
3
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
4
|
+
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from "@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo";
|
|
5
|
+
import { PurchaseOrderLineReceiptCorrectionDetails } from "@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo";
|
|
6
|
+
import { DatePipe } from "@angular/common";
|
|
2
7
|
export class TransactionReceivingGoodsHistoryComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.
|
|
8
|
+
constructor(_service, _datePipe) {
|
|
9
|
+
this._service = _service;
|
|
10
|
+
this._datePipe = _datePipe;
|
|
11
|
+
this.reloadReceivingGoodsHistory = new EventEmitter();
|
|
12
|
+
}
|
|
13
|
+
set goodsReceiptHistory(value) {
|
|
14
|
+
if (value) {
|
|
15
|
+
this._goodsReceiptHistory = value.reverse();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
get goodsReceiptHistory() {
|
|
19
|
+
return this._goodsReceiptHistory.map((receipt) => {
|
|
20
|
+
receipt.receiptDate = this._datePipe.transform(receipt.receiptDate);
|
|
21
|
+
return receipt;
|
|
22
|
+
});
|
|
5
23
|
}
|
|
6
24
|
showClass() {
|
|
7
25
|
return true;
|
|
8
26
|
}
|
|
27
|
+
handleDeleteSelectedRow(row) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
if (row && row.type !== 'correction') {
|
|
30
|
+
const request = new ReceiveGoodsForPurchaseOrderCorrectionRequest();
|
|
31
|
+
const correctionDetails = new PurchaseOrderLineReceiptCorrectionDetails();
|
|
32
|
+
request.allowedToRemovePickedAllocations = false;
|
|
33
|
+
request.transId = this.transactionId;
|
|
34
|
+
request.purchaseOrderLineReceiptCorrectionDetailsDTOS = [correctionDetails];
|
|
35
|
+
correctionDetails.lineNr = this.transactionLine.lineNr;
|
|
36
|
+
correctionDetails.quantityToCorrect = row.quantity;
|
|
37
|
+
correctionDetails.documentId = row.documentId;
|
|
38
|
+
correctionDetails.documentLineNr = row.lineNumber;
|
|
39
|
+
yield this._service.receiveGoodsForPurchaseOrderCorrection(request).then(() => {
|
|
40
|
+
this.reloadReceivingGoodsHistory.next();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
9
45
|
}
|
|
10
46
|
TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
11
47
|
{ type: Component, args: [{
|
|
12
48
|
selector: "co-transaction-receiving-goods-history",
|
|
13
49
|
template: `
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
50
|
+
<co-transaction-history-grid
|
|
51
|
+
[collection]="goodsReceiptHistory"
|
|
52
|
+
(deleteSelectedRow)="handleDeleteSelectedRow($event)"
|
|
53
|
+
>
|
|
54
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [field]="'warehouseNumber'"
|
|
55
|
+
[order]="40"></co-simple-grid-column>
|
|
56
|
+
<co-simple-grid-column [headerText]="'LOCATION' | localize" [field]="'locationNumber'"
|
|
57
|
+
[order]="60"></co-simple-grid-column>
|
|
58
|
+
</co-transaction-history-grid>
|
|
20
59
|
`,
|
|
21
60
|
encapsulation: ViewEncapsulation.None
|
|
22
61
|
},] }
|
|
23
62
|
];
|
|
63
|
+
TransactionReceivingGoodsHistoryComponent.ctorParameters = () => [
|
|
64
|
+
{ type: TransactionService },
|
|
65
|
+
{ type: DatePipe }
|
|
66
|
+
];
|
|
24
67
|
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
25
|
-
|
|
68
|
+
goodsReceiptHistory: [{ type: Input }],
|
|
69
|
+
transactionLine: [{ type: Input }],
|
|
70
|
+
transactionId: [{ type: Input }],
|
|
71
|
+
reloadReceivingGoodsHistory: [{ type: Output }],
|
|
26
72
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
|
|
27
73
|
};
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWhpc3RvcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9jb21wb25lbnQvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWhpc3RvcnkvdHJhbnNhY3Rpb24tcmVjZWl2aW5nLWdvb2RzLWhpc3RvcnkuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUVyRyxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxtQ0FBbUMsQ0FBQztBQUVyRSxPQU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WVudElkO1xyXG4gICAgICBjb3JyZWN0aW9uRGV0YWlscy5kb2N1bWVudExpbmVOciA9IHJvdy5saW5lTnVtYmVyO1xyXG4gICAgICBhd2FpdCB0aGlzLl9zZXJ2aWNlLnJlY2VpdmVHb29kc0ZvclB1cmNoYXNlT3JkZXJDb3JyZWN0aW9uKHJlcXVlc3QpLnRoZW4oKCkgPT4ge1xyXG4gICAgICAgIHRoaXMucmVsb2FkUmVjZWl2aW5nR29vZHNIaXN0b3J5Lm5leHQoKTtcclxuICAgICAgfSk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
2
|
+
import { CommonModule, DatePipe } from "@angular/common";
|
|
3
3
|
import { CoreModule } from "../core/core.module";
|
|
4
4
|
import { PipeModule } from "../../pipe/pipe.module";
|
|
5
|
-
import { TransactionReceivingGoodsHistoryComponent } from "./transaction-receiving-goods-history.component";
|
|
6
5
|
import { SimpleGridModule } from "@colijnit/corecomponents_v12";
|
|
7
|
-
import { TransactionHistoryGridModule } from "../transaction-history-grid/transaction-history-grid.module";
|
|
6
|
+
import { TransactionHistoryGridModule } from "../transaction-grid/transaction-history-grid/transaction-history-grid.module";
|
|
7
|
+
import { TransactionReceivingGoodsHistoryComponent } from "./transaction-receiving-goods-history.component";
|
|
8
8
|
export class TransactionReceivingGoodsHistoryModule {
|
|
9
9
|
}
|
|
10
10
|
TransactionReceivingGoodsHistoryModule.decorators = [
|
|
@@ -21,7 +21,10 @@ TransactionReceivingGoodsHistoryModule.decorators = [
|
|
|
21
21
|
],
|
|
22
22
|
exports: [
|
|
23
23
|
TransactionReceivingGoodsHistoryComponent
|
|
24
|
+
],
|
|
25
|
+
providers: [
|
|
26
|
+
DatePipe
|
|
24
27
|
]
|
|
25
28
|
},] }
|
|
26
29
|
];
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64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luZ0dvb2RzSGlzdG9yeUNvbXBvbmVudFxyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgVHJhbnNhY3Rpb25SZWNlaXZpbmdHb29kc0hpc3RvcnlDb21wb25lbnRcclxuICBdLFxyXG4gIHByb3ZpZGVyczogW1xyXG4gICAgRGF0ZVBpcGVcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBUcmFuc2FjdGlvblJlY2VpdmluZ0dvb2RzSGlzdG9yeU1vZHVsZSB7XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { TransactionSearchService } from "./transaction-search.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "./transaction-search.service";
|
|
6
|
+
import * as i2 from "../../../service/transaction.service";
|
|
7
|
+
export class FilterRequestService {
|
|
8
|
+
constructor(searchService, _transactionService) {
|
|
9
|
+
this.searchService = searchService;
|
|
10
|
+
this._transactionService = _transactionService;
|
|
11
|
+
}
|
|
12
|
+
handleCollectionChangeForRange(collection, modelName) {
|
|
13
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionRange(collection);
|
|
14
|
+
}
|
|
15
|
+
handleCollectionChangeForArray(collection, modelName) {
|
|
16
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionArray(collection);
|
|
17
|
+
}
|
|
18
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
19
|
+
handleCollectionChangeForSingleValue(collection, modelName) {
|
|
20
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForSingleCollectionValue(collection);
|
|
21
|
+
}
|
|
22
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
23
|
+
handleCollectionChangeForSingleNumber(collection, modelName) {
|
|
24
|
+
this.searchService.searchRequest[modelName] = collection ? this._getFilterRequestForSingleCollectionNumber(collection) : -1;
|
|
25
|
+
}
|
|
26
|
+
handleCheckboxValueChangeForString(value, modelName) {
|
|
27
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
|
|
28
|
+
}
|
|
29
|
+
handleCheckboxValueChangeForNumber(value, modelName) {
|
|
30
|
+
this.searchService.searchRequest[modelName] = value ? 1 : 0;
|
|
31
|
+
}
|
|
32
|
+
handleDateRangeChange(dates, modelName) {
|
|
33
|
+
if (dates) {
|
|
34
|
+
let startDate = dates[0];
|
|
35
|
+
let endDate = dates[1];
|
|
36
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForDateRange(startDate, endDate);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
getDateFromFilterRequestRange(filterRequestRange, index) {
|
|
40
|
+
if (filterRequestRange) {
|
|
41
|
+
const datePattern = new RegExp('\\d{2}\\-\\d{2}\\-\\d{4}');
|
|
42
|
+
let dateString = filterRequestRange
|
|
43
|
+
.split(',')[index]
|
|
44
|
+
.match(datePattern)[0];
|
|
45
|
+
const day = Number(dateString.match('^\\d{2}')[0]);
|
|
46
|
+
const month = Number(dateString.match('(?<=\\-)(\\d{2})(?=\\-)')[0]) - 1;
|
|
47
|
+
const year = Number(dateString.match('\\d{4}')[0]);
|
|
48
|
+
return new Date(year, month, day);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
_getFilterRequestForCollectionRange(collection) {
|
|
52
|
+
let filterRequest = '';
|
|
53
|
+
collection === null || collection === void 0 ? void 0 : collection.forEach(item => {
|
|
54
|
+
if (item.checked) {
|
|
55
|
+
const formattedRequest = `?=\'${item.code}\'`;
|
|
56
|
+
filterRequest += (filterRequest ? ',' : '') + `${formattedRequest}`;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return filterRequest;
|
|
60
|
+
}
|
|
61
|
+
_getFilterRequestForBooleanToString(value) {
|
|
62
|
+
let filterRequest = '';
|
|
63
|
+
if (value) {
|
|
64
|
+
filterRequest = "?='J'";
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
filterRequest = "?='N'";
|
|
68
|
+
}
|
|
69
|
+
return filterRequest;
|
|
70
|
+
}
|
|
71
|
+
_getFilterRequestForCollectionArray(collection) {
|
|
72
|
+
let filterRequest = [];
|
|
73
|
+
collection === null || collection === void 0 ? void 0 : collection.forEach(item => {
|
|
74
|
+
if (item.checked) {
|
|
75
|
+
filterRequest.push(item.code.toString());
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return filterRequest;
|
|
79
|
+
}
|
|
80
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
81
|
+
_getFilterRequestForSingleCollectionValue(collection) {
|
|
82
|
+
let filterRequest = '';
|
|
83
|
+
const firstValue = collection.find(item => item.checked).code.toString();
|
|
84
|
+
if (firstValue) {
|
|
85
|
+
filterRequest = `?=\'${firstValue}\'`;
|
|
86
|
+
}
|
|
87
|
+
return filterRequest;
|
|
88
|
+
}
|
|
89
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
90
|
+
_getFilterRequestForSingleCollectionNumber(collection) {
|
|
91
|
+
var _a;
|
|
92
|
+
const firstValue = Number((_a = collection.find(item => item.checked)) === null || _a === void 0 ? void 0 : _a.code);
|
|
93
|
+
return firstValue !== null && firstValue !== void 0 ? firstValue : -1;
|
|
94
|
+
}
|
|
95
|
+
_getFilterRequestForDateRange(startDate, endDate) {
|
|
96
|
+
const startDateRequest = startDate ? this._formatDateToString(startDate) : '';
|
|
97
|
+
const endDateRequest = endDate ? this._formatDateToString(endDate) : '';
|
|
98
|
+
return `?>=\'${startDateRequest}\'& ?<=\'${endDateRequest}\'`;
|
|
99
|
+
}
|
|
100
|
+
_formatDateToString(date) {
|
|
101
|
+
let day = date.getDate().toString().padStart(2, '0');
|
|
102
|
+
let month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
103
|
+
let year = date.getFullYear();
|
|
104
|
+
return `${day}-${month}-${year}`;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
FilterRequestService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FilterRequestService_Factory() { return new FilterRequestService(i0.ɵɵinject(i1.TransactionSearchService), i0.ɵɵinject(i2.TransactionService)); }, token: FilterRequestService, providedIn: "root" });
|
|
108
|
+
FilterRequestService.decorators = [
|
|
109
|
+
{ type: Injectable, args: [{
|
|
110
|
+
providedIn: "root"
|
|
111
|
+
},] }
|
|
112
|
+
];
|
|
113
|
+
FilterRequestService.ctorParameters = () => [
|
|
114
|
+
{ type: TransactionSearchService },
|
|
115
|
+
{ type: TransactionService }
|
|
116
|
+
];
|
|
117
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLXJlcXVlc3Quc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvY29tcG9uZW50L3RyYW5zYWN0aW9uLXNlYXJjaC9zZXJ2aWNlL2ZpbHRlci1yZXF1ZXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUMxRSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQzs7OztBQUt4RSxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLFlBQ1MsYUFBdUMsRUFDdEMsbUJBQXVDO1FBRHhDLGtCQUFhLEdBQWIsYUFBYSxDQUEwQjtRQUN0Qyx3QkFBbUIsR0FBbkIsbUJBQW1CLENBQW9CO0lBQzVDLENBQUM7SUFFQyw4QkFBOEIsQ0FBQyxVQUFpQyxFQUFFLFNBQWlCO1FBQ3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XJ0KDIsICcwJyk7XHJcbiAgICBsZXQgbW9udGggPSAoZGF0ZS5nZXRNb250aCgpICsgMSkudG9TdHJpbmcoKS5wYWRTdGFydCgyLCAnMCcpO1xyXG4gICAgbGV0IHllYXIgPSBkYXRlLmdldEZ1bGxZZWFyKCk7XHJcblxyXG4gICAgcmV0dXJuIGAke2RheX0tJHttb250aH0tJHt5ZWFyfWA7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
import { TransactionSearchViewRequest } from "@colijnit/transactionapi/build/model/transaction-search-view-request";
|
|
3
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../../service/transaction.service";
|
|
6
|
+
export class TransactionSearchService {
|
|
7
|
+
constructor(_transactionService) {
|
|
8
|
+
this._transactionService = _transactionService;
|
|
9
|
+
this.searchRequest = new TransactionSearchViewRequest();
|
|
10
|
+
this.transactions = [];
|
|
11
|
+
}
|
|
12
|
+
searchTransactions() {
|
|
13
|
+
this._transactionService.searchTransactions(this.searchRequest).then((transactions) => {
|
|
14
|
+
this.transactions = transactions;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
resetFilters() {
|
|
18
|
+
const oldSearchRequest = Object.assign({}, this.searchRequest);
|
|
19
|
+
this.searchRequest = new TransactionSearchViewRequest();
|
|
20
|
+
this.searchRequest.general = oldSearchRequest.general;
|
|
21
|
+
this.searchTransactions();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(i1.TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
|
|
25
|
+
TransactionSearchService.decorators = [
|
|
26
|
+
{ type: Injectable, args: [{
|
|
27
|
+
providedIn: "root"
|
|
28
|
+
},] }
|
|
29
|
+
];
|
|
30
|
+
TransactionSearchService.ctorParameters = () => [
|
|
31
|
+
{ type: TransactionService }
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tc2VhcmNoLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90cmFuc2FjdGlvbi9zcmMvbGliL2NvbXBvbmVudC90cmFuc2FjdGlvbi1zZWFyY2gvc2VydmljZS90cmFuc2FjdGlvbi1zZWFyY2guc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLHNFQUFzRSxDQUFDO0FBRXBILE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHNDQUFzQyxDQUFDOzs7QUFLMUUsTUFBTSxPQUFPLHdCQUF3QjtJQUtuQyxZQUFvQixtQkFBdUM7UUFBdkMsd0JBQW1CLEdBQW5CLG1CQUFtQixDQUFvQjtRQUhwRCxrQkFBYSxHQUFpQyxJQUFJLDRCQUE0QixFQUFFLENBQUM7UUFDakYsaUJBQVksR0FBNEIsRUFBRSxDQUFDO0lBR2xELENBQUM7SUFFTSxrQkFBa0I7UUFDdkIsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGtCQUFrQixDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxZQUFxQyxFQUFFLEVBQUU7WUFDN0csSUFBSSxDQUFDLFlBQVksR0FBRyxZQUFZLENBQUM7UUFDbkMsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBRU0sWUFBWTtRQUNqQixNQUFNLGdCQUFnQixxQkFBTyxJQUF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