@colijnit/transaction 12.1.65 → 12.1.66
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 +1556 -645
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +152 -139
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +153 -140
- package/esm2015/lib/assets/dictionary/text.properties.js +3 -1
- package/esm2015/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.js +2 -2
- package/esm2015/lib/component/checkout/checkout.component.js +36 -11
- package/esm2015/lib/component/core/base/transaction-lines-line-base.component.js +2 -3
- package/esm2015/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.component.js +45 -0
- package/esm2015/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.module.js +23 -0
- package/esm2015/lib/component/stepper/stepper.component.js +6 -4
- package/esm2015/lib/component/transaction/transaction.component.js +4 -3
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-allocate-goods-history/transaction-allocate-goods-history.component.js +81 -0
- package/esm2015/lib/component/transaction-allocate-goods-history/transaction-allocate-goods-history.module.js +25 -0
- package/esm2015/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.component.js +3 -3
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.js +5 -5
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +3 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -1
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/service/transaction-allocate-goods.service.js +63 -0
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.component.js +109 -0
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.module.js +33 -0
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +2 -1
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +4 -4
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.js +4 -12
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +10 -5
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +16 -5
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location-button.component.js +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-location.component.js +1 -1
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +8 -1
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +4 -4
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +12 -10
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.js +4 -4
- package/esm2015/lib/component/transaction-line-side-panel-sales/transaction-line-side-panel-sales.component.js +81 -0
- package/esm2015/lib/component/transaction-line-side-panel-sales/transaction-line-side-panel-sales.module.js +25 -0
- package/esm2015/lib/component/transaction-line-statusbar/transaction-line-statusbar.component.js +36 -4
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +4 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.module.js +4 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/transaction-quick-access-goods-allocation.component.js +69 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/transaction-quick-access-goods-allocation.module.js +25 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +62 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.module.js +6 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +1 -2
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +6 -3
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +11 -3
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +13 -3
- package/esm2015/lib/component/transaction-side-panel-edit-request-details/components/allocation-request.component.js +144 -0
- package/esm2015/lib/component/transaction-side-panel-edit-request-details/components/receive-goods-request.component.js +195 -0
- package/esm2015/lib/component/transaction-side-panel-edit-request-details/transaction-side-panel-edit-request-details.component.js +50 -0
- package/esm2015/lib/component/transaction-side-panel-edit-request-details/transaction-side-panel-edit-request-details.module.js +30 -0
- package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +3 -2
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/enum/transaction-type-category.enum.js +2 -1
- package/esm2015/lib/model/extended-transaction-line-view-model.js +4 -0
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/service/pending-reason.service.js +3 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +51 -1
- package/esm2015/lib/service/transaction-connector.service.js +21 -1
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction-mapping.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +24 -8
- package/fesm2015/colijnit-transaction.js +1500 -565
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout.component.d.ts +13 -6
- package/lib/component/core/base/transaction-lines-line-base.component.d.ts +3 -1
- package/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.component.d.ts +15 -0
- package/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.module.d.ts +2 -0
- package/lib/component/dialog/catalog/dialog-catalog/style/_layout.scss +4 -0
- package/lib/component/dialog/catalog/dialog-catalog/style/_material-definition.scss +0 -0
- package/lib/component/dialog/catalog/dialog-catalog/style/_theme.scss +4 -0
- package/lib/component/dialog/catalog/dialog-catalog/style/material.scss +4 -0
- package/lib/component/stepper/stepper.component.d.ts +2 -1
- package/lib/component/transaction/transaction.component.d.ts +1 -1
- package/lib/component/transaction-allocate-goods-history/style/_layout.scss +4 -0
- package/lib/component/transaction-allocate-goods-history/style/_material-definition.scss +0 -0
- package/lib/component/transaction-allocate-goods-history/style/_theme.scss +4 -0
- package/lib/component/transaction-allocate-goods-history/style/material.scss +4 -0
- package/lib/component/transaction-allocate-goods-history/transaction-allocate-goods-history.component.d.ts +18 -0
- package/lib/component/transaction-allocate-goods-history/transaction-allocate-goods-history.module.d.ts +2 -0
- package/lib/component/transaction-confirmation-details/style/_layout.scss +1 -1
- package/lib/component/transaction-grid/transaction-available-stock-grid/transaction-available-stock-grid.component.d.ts +2 -1
- package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.d.ts +2 -5
- package/lib/component/transaction-line/transaction-goods-allocation-line/service/transaction-allocate-goods.service.d.ts +12 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/style/_layout.scss +27 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/style/_theme.scss +4 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/style/material.scss +4 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.component.d.ts +27 -0
- package/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.module.d.ts +2 -0
- package/lib/component/transaction-line/transaction-line/transaction-line.component.d.ts +2 -2
- package/lib/component/transaction-line/transaction-receive-goods-line/service/transaction-receive-goods.service.d.ts +2 -3
- package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.d.ts +2 -2
- package/lib/component/transaction-line-action-buttons/style/_layout.scss +2 -2
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +3 -1
- package/lib/component/transaction-line-fields/transaction-line-warehouse-location-button.component.d.ts +3 -3
- package/lib/component/transaction-line-image-and-description/style/_layout.scss +1 -0
- package/lib/component/transaction-line-image-and-description/style/_material-definition.scss +1 -0
- package/lib/component/transaction-line-side-panel/style/material.scss +1 -1
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +2 -3
- package/lib/component/transaction-line-side-panel-sales/style/_layout.scss +4 -0
- package/lib/component/transaction-line-side-panel-sales/style/_material-definition.scss +0 -0
- package/lib/component/transaction-line-side-panel-sales/style/_theme.scss +4 -0
- package/lib/component/transaction-line-side-panel-sales/style/material.scss +4 -0
- package/lib/component/transaction-line-side-panel-sales/transaction-line-side-panel-sales.component.d.ts +20 -0
- package/lib/component/transaction-line-side-panel-sales/transaction-line-side-panel-sales.module.d.ts +2 -0
- package/lib/component/transaction-line-statusbar/transaction-line-statusbar.component.d.ts +11 -3
- package/lib/component/transaction-lines/style/material.scss +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access/style/material.scss +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/style/_layout.scss +27 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/style/_material-definition.scss +0 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/style/_theme.scss +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/style/material.scss +4 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/transaction-quick-access-goods-allocation.component.d.ts +20 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-goods-allocation/transaction-quick-access-goods-allocation.module.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_layout.scss +3 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.d.ts +17 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +1 -6
- package/lib/component/transaction-receiving-goods-history/style/_layout.scss +2 -2
- package/lib/component/transaction-receiving-goods-history/style/_material-definition.scss +1 -1
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +6 -4
- package/lib/component/transaction-search/style/_material-definition.scss +9 -2
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +12 -0
- package/lib/component/transaction-search/transaction-search-header/style/_theme.scss +10 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +4 -1
- package/lib/component/transaction-search/transaction-search.component.d.ts +8 -3
- package/lib/component/transaction-side-panel-edit-request-details/components/allocation-request.component.d.ts +35 -0
- package/lib/component/{transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts → transaction-side-panel-edit-request-details/components/receive-goods-request.component.d.ts} +9 -12
- package/lib/component/{transaction-receiving-goods-details → transaction-side-panel-edit-request-details}/style/_layout.scss +16 -19
- package/lib/component/transaction-side-panel-edit-request-details/style/_material-definition.scss +3 -0
- package/lib/component/transaction-side-panel-edit-request-details/style/_theme.scss +4 -0
- package/lib/component/transaction-side-panel-edit-request-details/style/material.scss +4 -0
- package/lib/component/transaction-side-panel-edit-request-details/transaction-side-panel-edit-request-details.component.d.ts +15 -0
- package/lib/component/transaction-side-panel-edit-request-details/transaction-side-panel-edit-request-details.module.d.ts +2 -0
- package/lib/component/transaction-tile/transaction-tile.component.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/enum/transaction-type-category.enum.d.ts +1 -0
- package/lib/model/{receive-good-view-model.d.ts → extended-transaction-line-view-model.d.ts} +3 -1
- package/lib/service/pending-reason.service.d.ts +2 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +8 -0
- package/lib/service/transaction-connector.service.d.ts +8 -0
- package/lib/service/transaction-event.service.d.ts +3 -5
- package/lib/service/transaction.service.d.ts +9 -1
- package/lib/style/_variables.scss +1 -1
- package/package.json +8 -6
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +0 -211
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +0 -30
- package/esm2015/lib/model/receive-good-view-model.js +0 -4
- package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +0 -3
- package/lib/component/transaction-receiving-goods-details/style/_theme.scss +0 -7
- package/lib/component/transaction-receiving-goods-details/style/material.scss +0 -3
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.d.ts +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.pendingReasonType_enum, global.sequenceName_enum, global.
|
|
5
|
-
})(this, (function (exports, i0, pendingReasonType_enum, sequenceName_enum,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@colijnit/transactionapi/build/model/marketing.bo'), require('@colijnit/transactionapi/build/model/country.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/delivery-option.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/customer-group.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/payment-method.bo'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view.bo'), require('@colijnit/transactionapi/build/model/code-description'), require('@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo'), require('@colijnit/transactionapi/build/model/purchase-portal-line.bo'), require('@colijnit/transactionapi/build/model/create-payment-link-result.bo'), require('@colijnit/transactionapi/build/model/payment-link-status.bo'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/model/transaction-down-payment-info.bo'), require('@colijnit/transactionapi/build/model/transaction-lock-result.bo'), require('@colijnit/mainapi/build/model/privacy-setting.bo'), require('@colijnit/relationapi/build/model/relation-privacy-setting.bo'), require('@colijnit/ioneconnector/build/factory/business-object-factory'), require('@colijnit/ioneconnector/build/utils/image-utils'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/mainapi/build/model/tag'), require('@colijnit/transactionapi/build/model/delivery-order-status.bo'), require('@colijnit/relationapi/build/model/sales-person.bo'), require('@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/transactionapi/build/model/available-stock.bo'), require('@colijnit/transactionapi/build/model/goods-allocation-status.bo'), require('@colijnit/transactionapi/build/model/goods-allocation-status-with-history.bo'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-light.bo'), require('@colijnit/articleapi/build/model/turnover-group-image.bo'), require('@colijnit/articleapi/build/model/main-article.bo'), require('@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo'), require('@colijnit/transactionapi/build/model/doc-delivery-batch.bo'), require('@colijnit/sharedcomponents'), require('@colijnit/relationapi/build/model/customer-full-object.bo'), require('@colijnit/articleapi/build/enum/relation-status.enum'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/relationapi'), require('@colijnit/relationapi/build/model/supplier-full-object.bo'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/relationapi/build/model/branch-lov.bo'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@angular/animations'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/relationapi/build/enum/address-type.enum'), require('@angular/common'), require('@colijnit/ioneconnector/build/utils/date-utils'), require('@colijnit/ioneconnector/build/utils/number-utils'), require('@angular/forms'), require('@colijnit/relationapi/build/model/nul-relation-object'), require('@colijnit/relationapi/build/model/address.bo'), require('@colijnit/ioneconnector/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/discount-type.enum'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@colijnit/transactionapi/build/model/get-purchase-order-confirmation'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-request'), require('@colijnit/transactionapi/build/model/sales-order-line-allocation-details'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/sharedapi/build/model/co-document.bo'), require('@colijnit/ioneconnector/build/model/validation-result'), require('@colijnit/relationapi/build/model/relation.bo'), require('@colijnit/relationapi/build/enum/relation-name-kind.enum'), require('@colijnit/relationapi/build/enum/gender-type.enum'), require('@colijnit/ioneconnector/build/utils/function-utils'), require('@colijnit/relationapi/build/model/contact-option.bo'), require('@colijnit/relationapi/build/enum/communication-type.enum'), require('@colijnit/ioneconnector/build/utils/business-object-utils'), require('@angular/cdk/scrolling'), require('@colijnit/relationapi/build/model/relation-small-object.bo'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo'), require('@colijnit/transactionapi/build/model/get-purchase-portal-line'), require('@colijnit/transactionapi/build/model/purchase-portal-filters.bo'), require('@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-correction-request'), require('@colijnit/transactionapi/build/model/sales-order-line-allocation-correction-details'), require('@colijnit/catalog'), require('@colijnit/transactionapi/build/model/goods-receipt-status.bo'), require('@colijnit/sharedapi/build/model/report/email-order-confirmation'), require('@colijnit/sharedapi/build/model/report/print-order-confirmation'), require('@colijnit/sharedapi/build/model/report/pdf-order-confirmation'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', 'rxjs', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/ioneconnector/build/utils/string-utils', '@colijnit/transactionapi/build/model/marketing.bo', '@colijnit/transactionapi/build/model/country.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/delivery-option.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/customer-group.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/payment-method.bo', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/transaction-search-view.bo', '@colijnit/transactionapi/build/model/code-description', '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo', '@colijnit/transactionapi/build/model/purchase-portal-line.bo', '@colijnit/transactionapi/build/model/create-payment-link-result.bo', '@colijnit/transactionapi/build/model/payment-link-status.bo', '@angular/platform-browser', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/model/transaction-down-payment-info.bo', '@colijnit/transactionapi/build/model/transaction-lock-result.bo', '@colijnit/mainapi/build/model/privacy-setting.bo', '@colijnit/relationapi/build/model/relation-privacy-setting.bo', '@colijnit/ioneconnector/build/factory/business-object-factory', '@colijnit/ioneconnector/build/utils/image-utils', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/mainapi/build/model/tag', '@colijnit/transactionapi/build/model/delivery-order-status.bo', '@colijnit/relationapi/build/model/sales-person.bo', '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo', '@colijnit/sharedapi/build/sharedapi', '@colijnit/transactionapi/build/model/available-stock.bo', '@colijnit/transactionapi/build/model/goods-allocation-status.bo', '@colijnit/transactionapi/build/model/goods-allocation-status-with-history.bo', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-light.bo', '@colijnit/articleapi/build/model/turnover-group-image.bo', '@colijnit/articleapi/build/model/main-article.bo', '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo', '@colijnit/transactionapi/build/model/doc-delivery-batch.bo', '@colijnit/sharedcomponents', '@colijnit/relationapi/build/model/customer-full-object.bo', '@colijnit/articleapi/build/enum/relation-status.enum', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/relationapi', '@colijnit/relationapi/build/model/supplier-full-object.bo', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/relationapi/build/model/branch-lov.bo', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@angular/animations', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/relationapi/build/enum/address-type.enum', '@angular/common', '@colijnit/ioneconnector/build/utils/date-utils', '@colijnit/ioneconnector/build/utils/number-utils', '@angular/forms', '@colijnit/relationapi/build/model/nul-relation-object', '@colijnit/relationapi/build/model/address.bo', '@colijnit/ioneconnector/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/discount-type.enum', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/model/transaction-search-view-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@colijnit/transactionapi/build/model/get-purchase-order-confirmation', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-request', '@colijnit/transactionapi/build/model/sales-order-line-allocation-details', '@colijnit/relationapi/build/model/relation-request', '@colijnit/sharedapi/build/model/co-document.bo', '@colijnit/ioneconnector/build/model/validation-result', '@colijnit/relationapi/build/model/relation.bo', '@colijnit/relationapi/build/enum/relation-name-kind.enum', '@colijnit/relationapi/build/enum/gender-type.enum', '@colijnit/ioneconnector/build/utils/function-utils', '@colijnit/relationapi/build/model/contact-option.bo', '@colijnit/relationapi/build/enum/communication-type.enum', '@colijnit/ioneconnector/build/utils/business-object-utils', '@angular/cdk/scrolling', '@colijnit/relationapi/build/model/relation-small-object.bo', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo', '@colijnit/transactionapi/build/model/get-purchase-portal-line', '@colijnit/transactionapi/build/model/purchase-portal-filters.bo', '@colijnit/transactionapi/build/model/allocate-goods-for-sales-order-correction-request', '@colijnit/transactionapi/build/model/sales-order-line-allocation-correction-details', '@colijnit/catalog', '@colijnit/transactionapi/build/model/goods-receipt-status.bo', '@colijnit/sharedapi/build/model/report/email-order-confirmation', '@colijnit/sharedapi/build/model/report/print-order-confirmation', '@colijnit/sharedapi/build/model/report/pdf-order-confirmation', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.pendingReasonType_enum, global.sequenceName_enum, global.transactionLineType_enum, global.rxjs, global.transactionInfoResponse_bo, global.stringUtils, global.marketing_bo, global.country_bo, global.deliveryMethod_bo, global.deliveryOption_bo, global.articleFullObject, global.customerGroup_bo, global.cashRegister, global.priceList, global.vat, global.onHoldCode_bo, global.warehouse_bo, global.paymentMethod_bo, global.objectUtils, global.getPostalCodeRetrievalOutputParams, global.transaction, global.transactionLineInfo_bo, global.transactionSearchView_bo, global.codeDescription, global.goodsReceiptStatusWithHistory_bo, global.purchasePortalLine_bo, global.createPaymentLinkResult_bo, global.paymentLinkStatus_bo, global.ng.platformBrowser, global.transactionInfo_bo, global.transactionDownPaymentInfo_bo, global.transactionLockResult_bo, global.privacySetting_bo, global.relationPrivacySetting_bo, global.businessObjectFactory, global.imageUtils, global.coDomainValue_bo, global.tag, global.deliveryOrderStatus_bo, global.salesPerson_bo, global.stockStickersPrintLayouts_bo, global.sharedapi, global.availableStock_bo, global.goodsAllocationStatus_bo, global.goodsAllocationStatusWithHistory_bo, global.resolvePendingReasonRequest_bo, global.articles, global.stockLocation_bo, global.articleLight_bo, global.turnoverGroupImage_bo, global.mainArticle_bo, global.resolveHeaderPendingReasonRequest_bo, global.docDeliveryBatch_bo, global.i4, global.customerFullObject_bo, global.relationStatus_enum, global.relationKind_enum, global.relationapi, global.supplierFullObject_bo, global.relationListObject_bo, global.branchLov_bo, global.transactionKind_enum, global.corecomponents_v12, global.ng.flexLayout, global.ng.animations, global.relationKind_enum$1, global.addressType_enum, global.ng.common, global.dateUtils, global.numberUtils, global.ng.forms, global.nulRelationObject, global.address_bo, global.isNill_function, global.transactionTotal_bo, global.discountType_enum, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.transactionSearchViewRequest, global.pagingParameters, global.getPurchaseOrderConfirmation, global.receiveGoodsForPurchaseOrderRequest_bo, global.purchaseOrderLineReceiptDetails_bo, global.stockStatus_enum, global.allocateGoodsForSalesOrderRequest, global.salesOrderLineAllocationDetails, global.relationRequest, global.coDocument_bo, global.validationResult, global.relation_bo, global.relationNameKind_enum, global.genderType_enum, global.functionUtils, global.contactOption_bo, global.communicationType_enum, global.businessObjectUtils, global.ng.cdk.scrolling, global.relationSmallObject_bo, global.receiveGoodsForPurchaseOrderCorrectionRequest_bo, global.purchaseOrderLineReceiptCorrectionDetails_bo, global.getPurchasePortalLine, global.purchasePortalFilters_bo, global.allocateGoodsForSalesOrderCorrectionRequest, global.salesOrderLineAllocationCorrectionDetails, global.catalog, global.goodsReceiptStatus_bo, global.emailOrderConfirmation, global.printOrderConfirmation, global.pdfOrderConfirmation, global.articleExtendedRequest, global.quantityInHistoricState_enum));
|
|
5
|
+
})(this, (function (exports, i0, pendingReasonType_enum, sequenceName_enum, transactionLineType_enum, rxjs, transactionInfoResponse_bo, stringUtils, marketing_bo, country_bo, deliveryMethod_bo, deliveryOption_bo, articleFullObject, customerGroup_bo, cashRegister, priceList, vat, onHoldCode_bo, warehouse_bo, paymentMethod_bo, objectUtils, getPostalCodeRetrievalOutputParams, transaction, transactionLineInfo_bo, transactionSearchView_bo, codeDescription, goodsReceiptStatusWithHistory_bo, purchasePortalLine_bo, createPaymentLinkResult_bo, paymentLinkStatus_bo, i1, transactionInfo_bo, transactionDownPaymentInfo_bo, transactionLockResult_bo, privacySetting_bo, relationPrivacySetting_bo, businessObjectFactory, imageUtils, coDomainValue_bo, tag, deliveryOrderStatus_bo, salesPerson_bo, stockStickersPrintLayouts_bo, sharedapi, availableStock_bo, goodsAllocationStatus_bo, goodsAllocationStatusWithHistory_bo, resolvePendingReasonRequest_bo, articles, stockLocation_bo, articleLight_bo, turnoverGroupImage_bo, mainArticle_bo, resolveHeaderPendingReasonRequest_bo, docDeliveryBatch_bo, i4, customerFullObject_bo, relationStatus_enum, relationKind_enum, relationapi, supplierFullObject_bo, relationListObject_bo, branchLov_bo, transactionKind_enum, corecomponents_v12, flexLayout, animations, relationKind_enum$1, addressType_enum, common, dateUtils, numberUtils, forms, nulRelationObject, address_bo, isNill_function, transactionTotal_bo, discountType_enum, dragDrop, transactionAddTextLineRequest_bo, transactionSearchViewRequest, pagingParameters, getPurchaseOrderConfirmation, receiveGoodsForPurchaseOrderRequest_bo, purchaseOrderLineReceiptDetails_bo, stockStatus_enum, allocateGoodsForSalesOrderRequest, salesOrderLineAllocationDetails, relationRequest, coDocument_bo, validationResult, relation_bo, relationNameKind_enum, genderType_enum, functionUtils, contactOption_bo, communicationType_enum, businessObjectUtils, scrolling, relationSmallObject_bo, receiveGoodsForPurchaseOrderCorrectionRequest_bo, purchaseOrderLineReceiptCorrectionDetails_bo, getPurchasePortalLine, purchasePortalFilters_bo, allocateGoodsForSalesOrderCorrectionRequest, salesOrderLineAllocationCorrectionDetails, catalog, goodsReceiptStatus_bo, emailOrderConfirmation, printOrderConfirmation, pdfOrderConfirmation, articleExtendedRequest, quantityInHistoricState_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -425,6 +425,7 @@
|
|
|
425
425
|
"COUNTRY": "Land",
|
|
426
426
|
"CREATE_ACCOUNT": "Maak een account aan",
|
|
427
427
|
"CREATE_ACCOUNT_IN_2_MIN": "Maak binnen 2 minuten een account aan.",
|
|
428
|
+
"CREATE_TRANSACTION": "Opslaan",
|
|
428
429
|
"CUSTOMER": "Klant",
|
|
429
430
|
"CUSTOMER_GROUP": "Klantgroep",
|
|
430
431
|
"CUSTOMER_NAME": "Klantnaam",
|
|
@@ -784,6 +785,7 @@
|
|
|
784
785
|
"COUNTRY": "Country",
|
|
785
786
|
"CREATE_ACCOUNT": "Create an account",
|
|
786
787
|
"CREATE_ACCOUNT_IN_2_MIN": "Create an account in 2 minutes.",
|
|
788
|
+
"CREATE_TRANSACTION": "Save",
|
|
787
789
|
"CUSTOMER": "Customer",
|
|
788
790
|
"CUSTOMER_GROUP": "Customergroup",
|
|
789
791
|
"CUSTOMER_NAME": "Customer name",
|
|
@@ -1710,6 +1712,7 @@
|
|
|
1710
1712
|
Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
|
|
1711
1713
|
Icon["PercentSolid"] = "percent_solid";
|
|
1712
1714
|
Icon["PlusRound"] = "plus_round";
|
|
1715
|
+
Icon["PlusSimple"] = "plus_simple";
|
|
1713
1716
|
Icon["PrintSolid"] = "print_solid";
|
|
1714
1717
|
Icon["Purchase"] = "purchase";
|
|
1715
1718
|
Icon["Resize"] = "resize";
|
|
@@ -1783,6 +1786,7 @@
|
|
|
1783
1786
|
"pallet_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M96 255.1L288 256c17.6 0 32-14.4 32-32V31.1c0-17.6-14.4-31.1-32-31.1L96 0c-17.6 0-32 14.4-32 32V224C64 241.6 78.4 255.1 96 255.1zM416 255.1h128c17.6 0 32-14.4 32-31.1v-128c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v128C384 241.6 398.4 255.1 416 255.1zM624 384c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16h-608C7.25 320 0 327.3 0 336v32C0 376.8 7.25 384 16 384H64v64H16C7.25 448 0 455.3 0 464v32C0 504.8 7.25 512 16 512h608c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16H576v-64H624zM288 448H128v-64h160V448zM512 448h-160v-64h160V448z\"/></svg>",
|
|
1784
1787
|
"percent_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z\"/></svg>",
|
|
1785
1788
|
"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>",
|
|
1789
|
+
"plus_simple": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g ><path d=\"M13.86,27c-.32,0-.58-.26-.58-.57v-9.72H3.58c-.32,0-.58-.26-.58-.57v-2.29c0-.31,.26-.57,.58-.57H13.29V3.57c0-.31,.26-.57,.58-.57h2.28c.31,0,.57,.26,.57,.57V13.29h9.72c.31,0,.57,.26,.57,.57v2.29c0,.31-.26,.57-.57,.57h-9.72v9.72c0,.31-.26,.57-.57,.57h-2.28Z\" fill=\"#484f60\"/></g></g><g /></svg>",
|
|
1786
1790
|
"print_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448 192H64C28.65 192 0 220.7 0 256v96c0 17.67 14.33 32 32 32h32v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h32c17.67 0 32-14.33 32-32V256C512 220.7 483.3 192 448 192zM384 448H128v-96h256V448zM432 296c-13.25 0-24-10.75-24-24c0-13.27 10.75-24 24-24s24 10.73 24 24C456 285.3 445.3 296 432 296zM128 64h229.5L384 90.51V160h64V77.25c0-8.484-3.375-16.62-9.375-22.62l-45.25-45.25C387.4 3.375 379.2 0 370.8 0H96C78.34 0 64 14.33 64 32v128h64V64z\"/></svg>",
|
|
1787
1791
|
"purchase": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g opacity=\"0.75\"><polygon points=\"33.34 25.04 27.34 28.52 33.35 31.97 39.34 28.49 33.34 25.04\" fill=\"#484f60\"/><polygon points=\"33.99 33.08 39.99 29.6 40 36.53 34.01 40.01 33.99 33.08\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"26.72 36.55 26.71 29.63 32.71 33.08 32.72 40.01 26.72 36.55\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"12.78 28.54 18.79 32 24.78 28.52 18.77 25.07 12.78 28.54\" fill=\"#484f60\"/><polygon points=\"19.43 33.1 25.42 29.63 25.44 36.56 19.44 40.03 19.43 33.1\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"12.15 36.58 12.14 29.65 18.15 33.11 18.16 40.04 12.15 36.58\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"32.04 15.89 26.03 12.44 22.09 14.73 27.52 14.73 24.03 18.21 26.05 19.37 32.04 15.89\" fill=\"#484f60\"/><polygon points=\"32.68 17 26.69 20.48 26.7 27.41 32.7 23.93 32.68 17\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"23.1 19.15 19.41 22.83 19.41 23.95 25.42 27.41 25.41 20.48 23.1 19.15\" fill=\"#484f60\" opacity=\"0.25\"/></g><polygon points=\"19.03 16.34 19.03 10.3 14.61 10.3 14.61 16.34 14.61 16.34 10 16.34 16.82 23.16 23.64 16.34 19.03 16.34\" fill=\"#484f60\"/></svg>",
|
|
1788
1792
|
"resize": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><polygon points=\"1.1 49.9 1.1 30.6 7.8 37.3 37.3 8 30.6 1.3 49.9 1.3 49.9 20.6 43.2 13.9 13.7 43.2 20.5 49.9 1.1 49.9\" fill=\"#4d5050\"/></svg>",
|
|
@@ -4566,6 +4570,86 @@
|
|
|
4566
4570
|
});
|
|
4567
4571
|
});
|
|
4568
4572
|
};
|
|
4573
|
+
TransactionConnectorAdapterService.prototype.allocateGoodsForSalesOrder = function (request) {
|
|
4574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4575
|
+
var response;
|
|
4576
|
+
return __generator(this, function (_a) {
|
|
4577
|
+
switch (_a.label) {
|
|
4578
|
+
case 0: return [4 /*yield*/, this.connector.allocateGoodsForSalesOrder(request)];
|
|
4579
|
+
case 1:
|
|
4580
|
+
response = _a.sent();
|
|
4581
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
4582
|
+
return [2 /*return*/, true];
|
|
4583
|
+
}
|
|
4584
|
+
else {
|
|
4585
|
+
this._handleExceptionFromResponse(response);
|
|
4586
|
+
return [2 /*return*/, null];
|
|
4587
|
+
}
|
|
4588
|
+
return [2 /*return*/];
|
|
4589
|
+
}
|
|
4590
|
+
});
|
|
4591
|
+
});
|
|
4592
|
+
};
|
|
4593
|
+
TransactionConnectorAdapterService.prototype.allocateGoodsForSalesOrderCorrection = function (request) {
|
|
4594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4595
|
+
var response;
|
|
4596
|
+
return __generator(this, function (_a) {
|
|
4597
|
+
switch (_a.label) {
|
|
4598
|
+
case 0: return [4 /*yield*/, this.connector.allocateGoodsForSalesOrderCorrection(request)];
|
|
4599
|
+
case 1:
|
|
4600
|
+
response = _a.sent();
|
|
4601
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
4602
|
+
return [2 /*return*/, true];
|
|
4603
|
+
}
|
|
4604
|
+
else {
|
|
4605
|
+
this._handleExceptionFromResponse(response);
|
|
4606
|
+
return [2 /*return*/, null];
|
|
4607
|
+
}
|
|
4608
|
+
return [2 /*return*/];
|
|
4609
|
+
}
|
|
4610
|
+
});
|
|
4611
|
+
});
|
|
4612
|
+
};
|
|
4613
|
+
TransactionConnectorAdapterService.prototype.getGoodsAllocationStatus = function (transId, lineNr) {
|
|
4614
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4615
|
+
var response;
|
|
4616
|
+
return __generator(this, function (_a) {
|
|
4617
|
+
switch (_a.label) {
|
|
4618
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsAllocationStatus(transId, lineNr)];
|
|
4619
|
+
case 1:
|
|
4620
|
+
response = _a.sent();
|
|
4621
|
+
if (response && response.resultObject) {
|
|
4622
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(goodsAllocationStatus_bo.GoodsAllocationStatus, response.resultObject)];
|
|
4623
|
+
}
|
|
4624
|
+
else {
|
|
4625
|
+
this._handleExceptionFromResponse(response);
|
|
4626
|
+
return [2 /*return*/, null];
|
|
4627
|
+
}
|
|
4628
|
+
return [2 /*return*/];
|
|
4629
|
+
}
|
|
4630
|
+
});
|
|
4631
|
+
});
|
|
4632
|
+
};
|
|
4633
|
+
TransactionConnectorAdapterService.prototype.getGoodsAllocationStatusWithHistory = function (transId, lineNr) {
|
|
4634
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4635
|
+
var response;
|
|
4636
|
+
return __generator(this, function (_a) {
|
|
4637
|
+
switch (_a.label) {
|
|
4638
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsAllocationStatusWithHistory(transId, lineNr)];
|
|
4639
|
+
case 1:
|
|
4640
|
+
response = _a.sent();
|
|
4641
|
+
if (response && response.resultObject) {
|
|
4642
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(goodsAllocationStatusWithHistory_bo.GoodsAllocationStatusWithHistory, response.resultObject)];
|
|
4643
|
+
}
|
|
4644
|
+
else {
|
|
4645
|
+
this._handleExceptionFromResponse(response);
|
|
4646
|
+
return [2 /*return*/, null];
|
|
4647
|
+
}
|
|
4648
|
+
return [2 /*return*/];
|
|
4649
|
+
}
|
|
4650
|
+
});
|
|
4651
|
+
});
|
|
4652
|
+
};
|
|
4569
4653
|
TransactionConnectorAdapterService.prototype._handleExceptionFromResponse = function (result) {
|
|
4570
4654
|
this._errorService.showValidationError(result);
|
|
4571
4655
|
};
|
|
@@ -5323,6 +5407,46 @@
|
|
|
5323
5407
|
});
|
|
5324
5408
|
});
|
|
5325
5409
|
};
|
|
5410
|
+
TransactionConnectorService.prototype.allocateGoodsForSalesOrder = function (request) {
|
|
5411
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5412
|
+
return __generator(this, function (_a) {
|
|
5413
|
+
switch (_a.label) {
|
|
5414
|
+
case 0: return [4 /*yield*/, this._adapterService.allocateGoodsForSalesOrder(request)];
|
|
5415
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
5416
|
+
}
|
|
5417
|
+
});
|
|
5418
|
+
});
|
|
5419
|
+
};
|
|
5420
|
+
TransactionConnectorService.prototype.allocateGoodsForSalesOrderCorrection = function (request) {
|
|
5421
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5422
|
+
return __generator(this, function (_a) {
|
|
5423
|
+
switch (_a.label) {
|
|
5424
|
+
case 0: return [4 /*yield*/, this._adapterService.allocateGoodsForSalesOrderCorrection(request)];
|
|
5425
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
5426
|
+
}
|
|
5427
|
+
});
|
|
5428
|
+
});
|
|
5429
|
+
};
|
|
5430
|
+
TransactionConnectorService.prototype.getGoodsAllocationStatus = function (transId, lineNr) {
|
|
5431
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5432
|
+
return __generator(this, function (_a) {
|
|
5433
|
+
switch (_a.label) {
|
|
5434
|
+
case 0: return [4 /*yield*/, this._adapterService.getGoodsAllocationStatus(transId, lineNr)];
|
|
5435
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
5436
|
+
}
|
|
5437
|
+
});
|
|
5438
|
+
});
|
|
5439
|
+
};
|
|
5440
|
+
TransactionConnectorService.prototype.getGoodsAllocationStatusWithHistory = function (transId, lineNr) {
|
|
5441
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5442
|
+
return __generator(this, function (_a) {
|
|
5443
|
+
switch (_a.label) {
|
|
5444
|
+
case 0: return [4 /*yield*/, this._adapterService.getGoodsAllocationStatusWithHistory(transId, lineNr)];
|
|
5445
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
5446
|
+
}
|
|
5447
|
+
});
|
|
5448
|
+
});
|
|
5449
|
+
};
|
|
5326
5450
|
return TransactionConnectorService;
|
|
5327
5451
|
}());
|
|
5328
5452
|
TransactionConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0__namespace.ɵɵinject(TransactionConnectorAdapterService), i0__namespace.ɵɵinject(SelectSingleCacheService), i0__namespace.ɵɵinject(SelectMultipleCacheService), i0__namespace.ɵɵinject(SelectMultipleParameterizedCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
|
|
@@ -5362,6 +5486,7 @@
|
|
|
5362
5486
|
this.generateCommissionOrders = new rxjs.Subject();
|
|
5363
5487
|
this.allowPartialDeliveryChanged = new rxjs.Subject();
|
|
5364
5488
|
this.connectionInitialized = new rxjs.BehaviorSubject(false);
|
|
5489
|
+
this.createTransaction = new rxjs.Subject();
|
|
5365
5490
|
}
|
|
5366
5491
|
return TransactionEventService;
|
|
5367
5492
|
}());
|
|
@@ -5755,6 +5880,7 @@
|
|
|
5755
5880
|
this.relationUpdated = new rxjs.BehaviorSubject(undefined);
|
|
5756
5881
|
this.applicationUser = false;
|
|
5757
5882
|
this.invoiceAddressSameAsDelivery = true;
|
|
5883
|
+
this.transactionKind = transactionKind_enum.TransactionKind.SalesOrder;
|
|
5758
5884
|
this.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
5759
5885
|
this.purchasePortalLine = [];
|
|
5760
5886
|
this.docDeliveryBatch = new docDeliveryBatch_bo.DocDeliveryBatch();
|
|
@@ -6720,7 +6846,7 @@
|
|
|
6720
6846
|
var _this = this;
|
|
6721
6847
|
return __generator(this, function (_a) {
|
|
6722
6848
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
6723
|
-
_this.connector.createTransaction(
|
|
6849
|
+
_this.connector.createTransaction(_this.transactionKind, "1").then(function (response) {
|
|
6724
6850
|
_this.rememberCurrentTransaction(response);
|
|
6725
6851
|
resolve(true);
|
|
6726
6852
|
}, function (error) {
|
|
@@ -6787,24 +6913,18 @@
|
|
|
6787
6913
|
TransactionService.prototype.commit = function () {
|
|
6788
6914
|
return this.connector.commit();
|
|
6789
6915
|
};
|
|
6790
|
-
TransactionService.prototype.saveTransaction = function (
|
|
6791
|
-
if (close === void 0) { close = false; }
|
|
6916
|
+
TransactionService.prototype.saveTransaction = function () {
|
|
6792
6917
|
return __awaiter(this, void 0, void 0, function () {
|
|
6793
|
-
var response
|
|
6918
|
+
var response;
|
|
6794
6919
|
return __generator(this, function (_a) {
|
|
6795
6920
|
switch (_a.label) {
|
|
6796
6921
|
case 0: return [4 /*yield*/, this.connector.saveTransaction(this.currentTransaction.transactionInfo.uuid)];
|
|
6797
6922
|
case 1:
|
|
6798
6923
|
response = _a.sent();
|
|
6799
|
-
if (
|
|
6800
|
-
return [4 /*yield*/, this.tryToLockTransaction(response.transactionInfo.id, response.transactionInfo.version)];
|
|
6801
|
-
case 2:
|
|
6802
|
-
lockSuccess = _a.sent();
|
|
6803
|
-
if (lockSuccess) {
|
|
6924
|
+
if (response && response.isSuccess) {
|
|
6804
6925
|
this.rememberCurrentTransaction(response);
|
|
6805
6926
|
}
|
|
6806
|
-
|
|
6807
|
-
case 3: return [2 /*return*/, response];
|
|
6927
|
+
return [2 /*return*/, response];
|
|
6808
6928
|
}
|
|
6809
6929
|
});
|
|
6810
6930
|
});
|
|
@@ -7209,6 +7329,46 @@
|
|
|
7209
7329
|
});
|
|
7210
7330
|
});
|
|
7211
7331
|
};
|
|
7332
|
+
TransactionService.prototype.allocateGoodsForSalesOrder = function (request) {
|
|
7333
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7334
|
+
return __generator(this, function (_a) {
|
|
7335
|
+
switch (_a.label) {
|
|
7336
|
+
case 0: return [4 /*yield*/, this.connector.allocateGoodsForSalesOrder(request)];
|
|
7337
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
7338
|
+
}
|
|
7339
|
+
});
|
|
7340
|
+
});
|
|
7341
|
+
};
|
|
7342
|
+
TransactionService.prototype.allocateGoodsForSalesOrderCorrection = function (request) {
|
|
7343
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7344
|
+
return __generator(this, function (_a) {
|
|
7345
|
+
switch (_a.label) {
|
|
7346
|
+
case 0: return [4 /*yield*/, this.connector.allocateGoodsForSalesOrderCorrection(request)];
|
|
7347
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
7348
|
+
}
|
|
7349
|
+
});
|
|
7350
|
+
});
|
|
7351
|
+
};
|
|
7352
|
+
TransactionService.prototype.getGoodsAllocationStatus = function (transId, lineNr) {
|
|
7353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7354
|
+
return __generator(this, function (_a) {
|
|
7355
|
+
switch (_a.label) {
|
|
7356
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsAllocationStatus(transId, lineNr)];
|
|
7357
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
7358
|
+
}
|
|
7359
|
+
});
|
|
7360
|
+
});
|
|
7361
|
+
};
|
|
7362
|
+
TransactionService.prototype.getGoodsAllocationStatusWithHistory = function (transId, lineNr) {
|
|
7363
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7364
|
+
return __generator(this, function (_a) {
|
|
7365
|
+
switch (_a.label) {
|
|
7366
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsAllocationStatusWithHistory(transId, lineNr)];
|
|
7367
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
7368
|
+
}
|
|
7369
|
+
});
|
|
7370
|
+
});
|
|
7371
|
+
};
|
|
7212
7372
|
// private _cleanRelationBeforeSave(): void {
|
|
7213
7373
|
// ArrayUtils.RemoveElementsByFilter(this.currentTransaction.transactionInfo.relation.contactOptions, ((item: ContactOption) => {
|
|
7214
7374
|
// return isNill(item.value);
|
|
@@ -7245,6 +7405,8 @@
|
|
|
7245
7405
|
this.service = service;
|
|
7246
7406
|
this._dictionary = _dictionary;
|
|
7247
7407
|
this._dialogService = _dialogService;
|
|
7408
|
+
this.transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
7409
|
+
this.showCreateTransactionButton = false;
|
|
7248
7410
|
this.transactionFinished = new i0.EventEmitter();
|
|
7249
7411
|
this.deliveryAddressNawNr = 0;
|
|
7250
7412
|
this.invoiceAddressNawNr = 0;
|
|
@@ -7260,16 +7422,56 @@
|
|
|
7260
7422
|
enumerable: false,
|
|
7261
7423
|
configurable: true
|
|
7262
7424
|
});
|
|
7425
|
+
CheckoutComponent.prototype.ngOnInit = function () {
|
|
7426
|
+
this.service.transactionKind = this.transactionType;
|
|
7427
|
+
};
|
|
7263
7428
|
// ngOnDestroy(): void {
|
|
7264
7429
|
// this._subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
7265
7430
|
// }
|
|
7431
|
+
CheckoutComponent.prototype.handleCreateTransaction = function (event) {
|
|
7432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7433
|
+
var _a, success, response, id;
|
|
7434
|
+
return __generator(this, function (_b) {
|
|
7435
|
+
switch (_b.label) {
|
|
7436
|
+
case 0:
|
|
7437
|
+
_a = this.stepper.activeStep === 0;
|
|
7438
|
+
if (!_a) return [3 /*break*/, 2];
|
|
7439
|
+
return [4 /*yield*/, this.handleRelationValidation()];
|
|
7440
|
+
case 1:
|
|
7441
|
+
_a = (_b.sent());
|
|
7442
|
+
_b.label = 2;
|
|
7443
|
+
case 2:
|
|
7444
|
+
if (!_a) return [3 /*break*/, 5];
|
|
7445
|
+
return [4 /*yield*/, this.service.saveRelation()];
|
|
7446
|
+
case 3:
|
|
7447
|
+
success = _b.sent();
|
|
7448
|
+
if (!success) return [3 /*break*/, 5];
|
|
7449
|
+
return [4 /*yield*/, this.service.updateHeaderTransactionDefinitive(this.service.currentTransaction.transactionInfo.uuid, true)];
|
|
7450
|
+
case 4:
|
|
7451
|
+
_b.sent();
|
|
7452
|
+
_b.label = 5;
|
|
7453
|
+
case 5: return [4 /*yield*/, this.service.saveTransaction()];
|
|
7454
|
+
case 6:
|
|
7455
|
+
response = _b.sent();
|
|
7456
|
+
if (response && response.isSuccess) {
|
|
7457
|
+
id = this.service.currentTransaction.transactionInfo.id;
|
|
7458
|
+
this.service.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
7459
|
+
this.service.relation = new customerFullObject_bo.CustomerFullObject();
|
|
7460
|
+
this.service.articleAmount = 0;
|
|
7461
|
+
this.transactionFinished.emit({ id: id, fromCheckout: this.showCreateTransactionButton });
|
|
7462
|
+
}
|
|
7463
|
+
return [2 /*return*/];
|
|
7464
|
+
}
|
|
7465
|
+
});
|
|
7466
|
+
});
|
|
7467
|
+
};
|
|
7266
7468
|
CheckoutComponent.prototype.handleRelationValidation = function () {
|
|
7267
7469
|
return __awaiter(this, void 0, void 0, function () {
|
|
7268
7470
|
var valid, _a;
|
|
7269
7471
|
return __generator(this, function (_b) {
|
|
7270
7472
|
switch (_b.label) {
|
|
7271
7473
|
case 0:
|
|
7272
|
-
if (!(this.checkoutRelation && this.stepRelation)) return [3 /*break*/,
|
|
7474
|
+
if (!(this.checkoutRelation && this.stepRelation)) return [3 /*break*/, 3];
|
|
7273
7475
|
valid = this.checkoutRelation.submit();
|
|
7274
7476
|
if (!valid) return [3 /*break*/, 2];
|
|
7275
7477
|
_a = this.stepRelation;
|
|
@@ -7277,7 +7479,8 @@
|
|
|
7277
7479
|
case 1:
|
|
7278
7480
|
_a.completed = _b.sent();
|
|
7279
7481
|
_b.label = 2;
|
|
7280
|
-
case 2: return [2 /*return
|
|
7482
|
+
case 2: return [2 /*return*/, valid];
|
|
7483
|
+
case 3: return [2 /*return*/];
|
|
7281
7484
|
}
|
|
7282
7485
|
});
|
|
7283
7486
|
});
|
|
@@ -7288,7 +7491,7 @@
|
|
|
7288
7491
|
return __generator(this, function (_b) {
|
|
7289
7492
|
switch (_b.label) {
|
|
7290
7493
|
case 0:
|
|
7291
|
-
if (!(this.checkoutDelivery && this.stepDelivery)) return [3 /*break*/,
|
|
7494
|
+
if (!(this.checkoutDelivery && this.stepDelivery)) return [3 /*break*/, 5];
|
|
7292
7495
|
valid = this.checkoutDelivery.submit();
|
|
7293
7496
|
if (!valid) return [3 /*break*/, 4];
|
|
7294
7497
|
return [4 /*yield*/, this.service.saveTransaction()];
|
|
@@ -7304,18 +7507,9 @@
|
|
|
7304
7507
|
case 3:
|
|
7305
7508
|
_a.completed = _b.sent();
|
|
7306
7509
|
_b.label = 4;
|
|
7307
|
-
case 4: return [2 /*return
|
|
7308
|
-
|
|
7309
|
-
});
|
|
7310
|
-
});
|
|
7311
|
-
};
|
|
7312
|
-
CheckoutComponent.prototype.handleFinishStep = function () {
|
|
7313
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7314
|
-
return __generator(this, function (_a) {
|
|
7315
|
-
if ( /*this.checkoutDelivery && */this.stepPay) {
|
|
7316
|
-
this.stepPay.completed = true;
|
|
7510
|
+
case 4: return [2 /*return*/, valid];
|
|
7511
|
+
case 5: return [2 /*return*/];
|
|
7317
7512
|
}
|
|
7318
|
-
return [2 /*return*/];
|
|
7319
7513
|
});
|
|
7320
7514
|
});
|
|
7321
7515
|
};
|
|
@@ -7362,14 +7556,14 @@
|
|
|
7362
7556
|
this.service.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
7363
7557
|
this.service.relation = new customerFullObject_bo.CustomerFullObject();
|
|
7364
7558
|
this.service.articleAmount = 0;
|
|
7365
|
-
this.transactionFinished.emit(id);
|
|
7559
|
+
this.transactionFinished.emit({ id: id, fromCheckout: this.showCreateTransactionButton });
|
|
7366
7560
|
};
|
|
7367
7561
|
return CheckoutComponent;
|
|
7368
7562
|
}());
|
|
7369
7563
|
CheckoutComponent.decorators = [
|
|
7370
7564
|
{ type: i0.Component, args: [{
|
|
7371
7565
|
selector: "co-checkout",
|
|
7372
|
-
template: "\n <co-stepper #stepper
|
|
7566
|
+
template: "\n <co-stepper #stepper\n [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\"\n [showCreate]=\"showCreateTransactionButton\"\n (createClicked)=\"handleCreateTransaction($event)\"\n >\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\"\n [deliveryAddressNawNr]=\"deliveryAddressNawNr\"\n [invoiceAddressNawNr]=\"invoiceAddressNawNr\"\n (deliveryAddressChange)=\"handleDeliveryAddressChange($event)\"\n (invoiceAddressChange)=\"handleInvoiceAddressChange($event)\"\n (relationChange)=\"service.relation = $event\"\n ></co-checkout-overview-relation-edit>\n </co-stepper-step>\n <co-stepper-step #stepDelivery [index]=\"2\" [label]=\"'DELIVERY' | localize\" (validateStep)=\"handleDeliveryValidation()\">\n <co-checkout-overview-delivery-edit #checkoutDelivery *ngIf=\"stepDelivery.show\"\n [transaction]=\"service.currentTransaction\"\n ></co-checkout-overview-delivery-edit>\n </co-stepper-step>\n <co-stepper-step #stepOverview [index]=\"3\" [label]=\"'OVERVIEW_AND_PAYMENT' | localize\">\n <co-checkout-overview-payment *ngIf=\"stepOverview.show\"\n [relation]=\"service.relation\"\n [transaction]=\"service.currentTransaction\"\n (changeYourDataClick)=\"stepper.goto(0)\"\n (changeDeliveryClick)=\"stepper.goto(1)\"\n (payed)=\"handleTransactionFinished($event)\"\n ></co-checkout-overview-payment>\n </co-stepper-step>\n <div class=\"co-checkout-right-panel\">\n <div class=\"co-checkout-right-panel-relation\">\n <co-avatar [relationId]=\"sellerId\"></co-avatar>\n </div>\n <co-shopping-cart-preview *ngIf=\"!showCreateTransactionButton\" [showCheckoutButton]=\"false\" [withoutBorder]=\"true\"></co-shopping-cart-preview>\n </div>\n </co-stepper>\n ",
|
|
7373
7567
|
encapsulation: i0.ViewEncapsulation.None
|
|
7374
7568
|
},] }
|
|
7375
7569
|
];
|
|
@@ -7388,6 +7582,8 @@
|
|
|
7388
7582
|
checkoutDelivery: [{ type: i0.ViewChild, args: ["checkoutDelivery",] }],
|
|
7389
7583
|
checkoutPayment: [{ type: i0.ViewChild, args: ["checkoutPayment",] }],
|
|
7390
7584
|
sellerId: [{ type: i0.Input }],
|
|
7585
|
+
transactionType: [{ type: i0.Input }],
|
|
7586
|
+
showCreateTransactionButton: [{ type: i0.Input }],
|
|
7391
7587
|
transactionFinished: [{ type: i0.Output }],
|
|
7392
7588
|
showClass: [{ type: i0.HostBinding, args: ["class.co-checkout",] }]
|
|
7393
7589
|
};
|
|
@@ -8854,7 +9050,8 @@
|
|
|
8854
9050
|
var StepperComponent = /** @class */ (function () {
|
|
8855
9051
|
function StepperComponent() {
|
|
8856
9052
|
this.icons = Icon;
|
|
8857
|
-
this.
|
|
9053
|
+
this.showCreate = false;
|
|
9054
|
+
this.createClicked = new i0.EventEmitter();
|
|
8858
9055
|
this.firstStep = 0;
|
|
8859
9056
|
this.truckPosition = 0;
|
|
8860
9057
|
this._activeStep = 0;
|
|
@@ -8968,7 +9165,7 @@
|
|
|
8968
9165
|
StepperComponent.decorators = [
|
|
8969
9166
|
{ type: i0.Component, args: [{
|
|
8970
9167
|
selector: "co-stepper",
|
|
8971
|
-
template: "\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <div class=\"co-stepper-content\">\n <div class=\"stepper-step\" [class.last]=\"index === stepChildren.length - 1\" *ngFor=\"let step of stepChildren; let index = index\"\n [class.active]=\"index === activeStep\"\n [class.complete]=\"step.completed\"\n (click)=\"goto(index)\">\n <div class=\"description\" [textContent]=\"step.label\"></div>\n <div class=\"index\"></div>\n </div>\n <icon #deliveryTruck *ngIf=\"activeStep !== lastStep\" class=\"delivery-truck\" [icon]=\"icons.DeliveryTruck\" [style.left.%]=\"truckPosition\"></icon>\n </div>\n <div class=\"co-stepper-content-wrapper\">\n <ng-content></ng-content>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <ng-template #buttonTemplate>\n <div class=\"stepper-button-wrapper\">\n <co-button [label]=\"'BACK' | localize\" *ngIf=\"canPrevious\" (click)=\"gotoPrevious()\"></co-button>\n <co-button [label]=\"'CONTINUE' | localize\" *ngIf=\"canNext\" (click)=\"gotoNext()\"></co-button>\n <co-button [label]=\"
|
|
9168
|
+
template: "\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <div class=\"co-stepper-content\">\n <div class=\"stepper-step\" [class.last]=\"index === stepChildren.length - 1\" *ngFor=\"let step of stepChildren; let index = index\"\n [class.active]=\"index === activeStep\"\n [class.complete]=\"step.completed\"\n (click)=\"goto(index)\">\n <div class=\"description\" [textContent]=\"step.label\"></div>\n <div class=\"index\"></div>\n </div>\n <icon #deliveryTruck *ngIf=\"activeStep !== lastStep\" class=\"delivery-truck\" [icon]=\"icons.DeliveryTruck\" [style.left.%]=\"truckPosition\"></icon>\n </div>\n <div class=\"co-stepper-content-wrapper\">\n <ng-content></ng-content>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <ng-template #buttonTemplate>\n <div class=\"stepper-button-wrapper\">\n <co-button [label]=\"'BACK' | localize\" *ngIf=\"canPrevious\" (click)=\"gotoPrevious()\"></co-button>\n <co-button [label]=\"'CONTINUE' | localize\" *ngIf=\"canNext\" (click)=\"gotoNext()\"></co-button>\n <co-button [label]=\"'CREATE_TRANSACTION' | localize\" *ngIf=\"showCreate\" (click)=\"createClicked.emit($event)\"></co-button>\n </div>\n </ng-template>\n ",
|
|
8972
9169
|
encapsulation: i0.ViewEncapsulation.None
|
|
8973
9170
|
},] }
|
|
8974
9171
|
];
|
|
@@ -8976,7 +9173,8 @@
|
|
|
8976
9173
|
content: [{ type: i0.ContentChildren, args: [StepperStepComponent,] }],
|
|
8977
9174
|
child: [{ type: i0.ViewChild, args: ['deliveryTruck', { read: i0.ElementRef },] }],
|
|
8978
9175
|
finishButtonLabel: [{ type: i0.Input }],
|
|
8979
|
-
|
|
9176
|
+
showCreate: [{ type: i0.Input }],
|
|
9177
|
+
createClicked: [{ type: i0.Output }],
|
|
8980
9178
|
showClass: [{ type: i0.HostBinding, args: ["class.co-stepper",] }]
|
|
8981
9179
|
};
|
|
8982
9180
|
|
|
@@ -10503,6 +10701,7 @@
|
|
|
10503
10701
|
TransactionTypeCategory["PurchaseOrderMenu"] = "purchaseOrderMenu";
|
|
10504
10702
|
TransactionTypeCategory["SalesOrderOverview"] = "salesOrderOverview";
|
|
10505
10703
|
TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
|
|
10704
|
+
TransactionTypeCategory["SalesOrderAllocation"] = "salesOrderAllocation";
|
|
10506
10705
|
TransactionTypeCategory["SalesOrderLogistics"] = "salesOrderLogistics";
|
|
10507
10706
|
TransactionTypeCategory["SalesOrderPlanning"] = "salesOrderPlanning";
|
|
10508
10707
|
TransactionTypeCategory["SalesOrderDeliveryNote"] = "salesOrderDeliveryNote";
|
|
@@ -10639,9 +10838,7 @@
|
|
|
10639
10838
|
this._subscriptions = [];
|
|
10640
10839
|
this._subscriptions.push(this._transactionEventService.commitReceivePurchaseOrders.subscribe((function (value) {
|
|
10641
10840
|
_this.handleReceiveSelectedPurchaseOrders(value);
|
|
10642
|
-
}))
|
|
10643
|
-
_this._handleTransactionLineChanged(value);
|
|
10644
|
-
}));
|
|
10841
|
+
})));
|
|
10645
10842
|
}
|
|
10646
10843
|
TransactionReceiveGoodsService.prototype.handleReceiveSelectedPurchaseOrders = function (value) {
|
|
10647
10844
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -10681,15 +10878,9 @@
|
|
|
10681
10878
|
selectedLines.forEach(function (line) {
|
|
10682
10879
|
line.quantityReceived += line.quantityToReceive;
|
|
10683
10880
|
line.quantityToReceive -= line.quantityToReceive;
|
|
10684
|
-
_this._transactionEventService.
|
|
10881
|
+
_this._transactionEventService.transactionLineChanged.next(line);
|
|
10685
10882
|
});
|
|
10686
|
-
|
|
10687
|
-
TransactionReceiveGoodsService.prototype._handleTransactionLineChanged = function (change) {
|
|
10688
|
-
var receiveGoodViewModel = this.lines.find(function (line) { return line.lineNr === change.transactionLine.lineNr; });
|
|
10689
|
-
if (receiveGoodViewModel) {
|
|
10690
|
-
receiveGoodViewModel.quantityToReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
10691
|
-
receiveGoodViewModel.quantityReceived = change.goodsReceiptStatus.quantityReceived;
|
|
10692
|
-
}
|
|
10883
|
+
this._transactionEventService.selectAllLines.next(false);
|
|
10693
10884
|
};
|
|
10694
10885
|
return TransactionReceiveGoodsService;
|
|
10695
10886
|
}());
|
|
@@ -10759,7 +10950,7 @@
|
|
|
10759
10950
|
TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
10760
10951
|
{ type: i0.Component, args: [{
|
|
10761
10952
|
selector: "co-transaction-quick-access-received-goods",
|
|
10762
|
-
template: "\n <co-input-date\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"this.commitDate\"\n ></co-input-date>\n <co-input-text\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"this.commitReferenceId\"\n ></co-input-text>\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n <div class=\"buttons\">\n <div class=\"button-wrapper receive\" (click)=\"handleCommitEvent({date: this.commitDate, id: this.commitReferenceId})\">\n <co-checkmark-overlay [successful]=\"resultSuccessful\" [visible]=\"awaitingResult\"></co-checkmark-overlay>\n <co-icon class=\"button-icon\" [iconData]=\"iconService.getIcon(icons.GearSolid)\" [class.hidden]=\"!iconVisible\"></co-icon>\n
|
|
10953
|
+
template: "\n <co-input-date\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"this.commitDate\"\n ></co-input-date>\n <co-input-text\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"this.commitReferenceId\"\n ></co-input-text>\n <co-input-checkbox\n class=\"checkbox-wrapper\"\n [(model)]=\"localCheckboxState\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n <div class=\"buttons\">\n <div class=\"button-wrapper receive\" (click)=\"handleCommitEvent({date: this.commitDate, id: this.commitReferenceId})\">\n <co-checkmark-overlay [successful]=\"resultSuccessful\" [visible]=\"awaitingResult\"></co-checkmark-overlay>\n <co-icon class=\"button-icon\" [iconData]=\"iconService.getIcon(icons.GearSolid)\" [class.hidden]=\"!iconVisible\"></co-icon>\n </div>\n <div class=\"button-wrapper print\">\n <co-icon class=\"button-icon\" [iconData]=\"iconService.getIcon(icons.PrintSolid)\"></co-icon>\n <div class=\"dots-wrapper\"><div class=\"dot\"></div><div class=\"dot\"></div><div class=\"dot\"></div></div>\n </div>\n </div>\n ",
|
|
10763
10954
|
encapsulation: i0.ViewEncapsulation.None
|
|
10764
10955
|
},] }
|
|
10765
10956
|
];
|
|
@@ -10779,21 +10970,68 @@
|
|
|
10779
10970
|
|
|
10780
10971
|
var TransactionQuickAccessOverviewComponent = /** @class */ (function (_super) {
|
|
10781
10972
|
__extends(TransactionQuickAccessOverviewComponent, _super);
|
|
10782
|
-
function TransactionQuickAccessOverviewComponent() {
|
|
10783
|
-
|
|
10973
|
+
function TransactionQuickAccessOverviewComponent(iconService, service) {
|
|
10974
|
+
var _this = _super.call(this, service) || this;
|
|
10975
|
+
_this.iconService = iconService;
|
|
10976
|
+
_this.service = service;
|
|
10977
|
+
_this.icons = Icon;
|
|
10978
|
+
_this.catalogOptions = {
|
|
10979
|
+
searchOnStart: true,
|
|
10980
|
+
showAddToCart: false,
|
|
10981
|
+
showLookAtArticleButton: false,
|
|
10982
|
+
showAddArticleButton: false
|
|
10983
|
+
};
|
|
10984
|
+
_this.catalogParameters = {};
|
|
10985
|
+
_this.showCatalog = false;
|
|
10986
|
+
_this.searchText = "";
|
|
10987
|
+
return _this;
|
|
10784
10988
|
}
|
|
10785
10989
|
TransactionQuickAccessOverviewComponent.prototype.showClass = function () {
|
|
10786
10990
|
return true;
|
|
10787
10991
|
};
|
|
10992
|
+
TransactionQuickAccessOverviewComponent.prototype.handleSearch = function (text) {
|
|
10993
|
+
this.showCatalogDialog();
|
|
10994
|
+
};
|
|
10995
|
+
TransactionQuickAccessOverviewComponent.prototype.handleAddArticle = function (event) {
|
|
10996
|
+
event.preventDefault();
|
|
10997
|
+
event.stopPropagation();
|
|
10998
|
+
this.service.addArticle(this.searchText);
|
|
10999
|
+
};
|
|
11000
|
+
TransactionQuickAccessOverviewComponent.prototype.handleSearchCatalog = function (event) {
|
|
11001
|
+
this.showCatalogDialog();
|
|
11002
|
+
};
|
|
11003
|
+
TransactionQuickAccessOverviewComponent.prototype.handleCatalogArticleClick = function (article) {
|
|
11004
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11005
|
+
return __generator(this, function (_a) {
|
|
11006
|
+
switch (_a.label) {
|
|
11007
|
+
case 0: return [4 /*yield*/, this.service.addArticle(article.articleNumber)];
|
|
11008
|
+
case 1:
|
|
11009
|
+
if (_a.sent()) {
|
|
11010
|
+
this.showCatalog = false;
|
|
11011
|
+
}
|
|
11012
|
+
return [2 /*return*/];
|
|
11013
|
+
}
|
|
11014
|
+
});
|
|
11015
|
+
});
|
|
11016
|
+
};
|
|
11017
|
+
TransactionQuickAccessOverviewComponent.prototype.showCatalogDialog = function () {
|
|
11018
|
+
this.catalogParameters.general = this.searchText;
|
|
11019
|
+
this.catalogParameters.publicationCode = 71; // todo: fix this?
|
|
11020
|
+
this.showCatalog = true;
|
|
11021
|
+
};
|
|
10788
11022
|
return TransactionQuickAccessOverviewComponent;
|
|
10789
11023
|
}(TransactionBaseComponent));
|
|
10790
11024
|
TransactionQuickAccessOverviewComponent.decorators = [
|
|
10791
11025
|
{ type: i0.Component, args: [{
|
|
10792
11026
|
selector: "co-transaction-quick-access-overview",
|
|
10793
|
-
template: "\n <co-input-search\n [placeholder]=\"'SEARCH_ADD_ARTICLE' | localize\"\n [centerLabel]=\"true\"\n ></co-input-search>\n ",
|
|
11027
|
+
template: "\n <co-input-search\n [(model)]=\"searchText\"\n [placeholder]=\"'SEARCH_ADD_ARTICLE' | localize\"\n [centerLabel]=\"true\"\n [useLeftIcon]=\"true\"\n [leftIconData]=\"iconService.getIcon(icons.CartShoppingSolid)\"\n [useRightIcon]=\"true\"\n (leftIconClick)=\"handleAddArticle($event)\"\n (rightIconClick)=\"handleSearchCatalog($event)\"\n (search)=\"handleSearch($event)\"\n ></co-input-search>\n <co-dialog-catalog *ngIf=\"showCatalog\"\n [options]=\"catalogOptions\"\n [parameters]=\"catalogParameters\"\n [showNavigation]=\"true\"\n (closeClick)=\"showCatalog = false\"\n (articleClicked)=\"handleCatalogArticleClick($event)\"\n >\n </co-dialog-catalog>\n ",
|
|
10794
11028
|
encapsulation: i0.ViewEncapsulation.None
|
|
10795
11029
|
},] }
|
|
10796
11030
|
];
|
|
11031
|
+
TransactionQuickAccessOverviewComponent.ctorParameters = function () { return [
|
|
11032
|
+
{ type: IconCacheService },
|
|
11033
|
+
{ type: TransactionService }
|
|
11034
|
+
]; };
|
|
10797
11035
|
TransactionQuickAccessOverviewComponent.propDecorators = {
|
|
10798
11036
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-overview",] }]
|
|
10799
11037
|
};
|
|
@@ -10953,11 +11191,11 @@
|
|
|
10953
11191
|
this.alignDirection = Direction.Down;
|
|
10954
11192
|
this.waitingForUserAction = new i0.EventEmitter();
|
|
10955
11193
|
this.sidePanelButtonClicked = new i0.EventEmitter();
|
|
10956
|
-
this.showActionButtons = false;
|
|
10957
11194
|
this.showActionButtonsDelayed = false;
|
|
10958
11195
|
this.showTransactionArticleText = false;
|
|
10959
11196
|
this.showTransactionArticleTextOverview = false;
|
|
10960
11197
|
this.readonly = false;
|
|
11198
|
+
this._showActionButtons = false;
|
|
10961
11199
|
}
|
|
10962
11200
|
Object.defineProperty(TransactionLineActionButtonsComponent.prototype, "transactionLine", {
|
|
10963
11201
|
get: function () {
|
|
@@ -10970,6 +11208,20 @@
|
|
|
10970
11208
|
enumerable: false,
|
|
10971
11209
|
configurable: true
|
|
10972
11210
|
});
|
|
11211
|
+
Object.defineProperty(TransactionLineActionButtonsComponent.prototype, "showActionButtons", {
|
|
11212
|
+
get: function () {
|
|
11213
|
+
return this._showActionButtons;
|
|
11214
|
+
},
|
|
11215
|
+
set: function (value) {
|
|
11216
|
+
var _this = this;
|
|
11217
|
+
this._showActionButtons = value;
|
|
11218
|
+
setTimeout(function () {
|
|
11219
|
+
_this.showActionButtonsDelayed = _this._showActionButtons;
|
|
11220
|
+
});
|
|
11221
|
+
},
|
|
11222
|
+
enumerable: false,
|
|
11223
|
+
configurable: true
|
|
11224
|
+
});
|
|
10973
11225
|
TransactionLineActionButtonsComponent.prototype.showClass = function () {
|
|
10974
11226
|
return true;
|
|
10975
11227
|
};
|
|
@@ -11048,7 +11300,7 @@
|
|
|
11048
11300
|
TransactionLineActionButtonsComponent.decorators = [
|
|
11049
11301
|
{ type: i0.Component, args: [{
|
|
11050
11302
|
selector: "co-transaction-line-action-buttons",
|
|
11051
|
-
template: "\n <div class=\"transaction-line-action-buttons-wrapper\">\n <div class=\"menu-button-container\">\n <co-button\n class=\"action-menu-button circle\"\n [iconData]=\"iconCacheService.getIcon(icons.EllipsisLight)\"\n (click)=\"handleShowHideClick()\">\n </co-button>\n </div>\n\n <div class=\"action-buttons-container\"
|
|
11303
|
+
template: "\n <div class=\"transaction-line-action-buttons-wrapper\">\n<!--\n <div class=\"menu-button-container\">\n <co-button\n class=\"action-menu-button circle\"\n [iconData]=\"iconCacheService.getIcon(icons.EllipsisLight)\"\n (click)=\"handleShowHideClick()\">\n </co-button>\n </div>\n-->\n\n <div class=\"action-buttons-container\"\n *ngIf=\"showActionButtons\"\n [ngClass]=\"alignDirection\">\n\n <co-button\n class=\"transaction-line-overview-button circle action-button\"\n [class.show]=\"showActionButtonsDelayed\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSizeSolid)\"\n (click)=\"handleTransactionArticleTextOverview()\"></co-button>\n\n <co-button\n class=\"transaction-line-add-text-button circle action-button\"\n [class.show]=\"showActionButtonsDelayed\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionArticleText()\"></co-button>\n\n <co-button\n class=\"transaction-line-show-sidebar-button circle action-button\"\n [class.show]=\"showActionButtonsDelayed\"\n [iconData]=\"iconCacheService.getIcon(icons.ObjectIntersectSolid)\"\n (click)=\"handleShowSidePanel()\"></co-button>\n </div>\n </div>\n\n <co-transaction-article-text-overview *ngIf=\"showTransactionArticleTextOverview\"\n [header]=\"articleTextHeader | localize\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleTextOverview($event)\"\n (cancelClick)=\"closeTransactionArticleTextOverview($event)\"\n ></co-transaction-article-text-overview>\n\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"articleTextHeader | localize\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
11052
11304
|
encapsulation: i0.ViewEncapsulation.None
|
|
11053
11305
|
},] }
|
|
11054
11306
|
];
|
|
@@ -11060,6 +11312,7 @@
|
|
|
11060
11312
|
TransactionLineActionButtonsComponent.propDecorators = {
|
|
11061
11313
|
transactionLine: [{ type: i0.Input }],
|
|
11062
11314
|
alignDirection: [{ type: i0.Input }],
|
|
11315
|
+
showActionButtons: [{ type: i0.Input }],
|
|
11063
11316
|
waitingForUserAction: [{ type: i0.Output }],
|
|
11064
11317
|
sidePanelButtonClicked: [{ type: i0.Output }],
|
|
11065
11318
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
@@ -11082,7 +11335,6 @@
|
|
|
11082
11335
|
this._line = value;
|
|
11083
11336
|
this.isText = this._line.isText;
|
|
11084
11337
|
this.isArticle = this._line.isArticle;
|
|
11085
|
-
this.isSelected = this._line.isSelected;
|
|
11086
11338
|
this.readonly = this._line.hasInvoices;
|
|
11087
11339
|
this.transactionLineSet();
|
|
11088
11340
|
},
|
|
@@ -11107,7 +11359,7 @@
|
|
|
11107
11359
|
waitingForUserAction: [{ type: i0.Output }],
|
|
11108
11360
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-base-line",] }],
|
|
11109
11361
|
preview: [{ type: i0.HostBinding, args: ["class.preview",] }, { type: i0.Input }],
|
|
11110
|
-
|
|
11362
|
+
selected: [{ type: i0.HostBinding, args: ["class.is-selected",] }, { type: i0.Input }],
|
|
11111
11363
|
isText: [{ type: i0.HostBinding, args: ["class.is-text",] }],
|
|
11112
11364
|
isArticle: [{ type: i0.HostBinding, args: ["class.is-article",] }]
|
|
11113
11365
|
};
|
|
@@ -11164,7 +11416,7 @@
|
|
|
11164
11416
|
TransactionOverviewLineComponent.decorators = [
|
|
11165
11417
|
{ type: i0.Component, args: [{
|
|
11166
11418
|
selector: "co-transaction-overview-line",
|
|
11167
|
-
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\"></co-transaction-line-statusbar>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <div *ngIf=\"!preview\" class=\"transaction-line-button vat-button\" (click)=\"showDialogVat = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.vatDescription\"></span>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width transaction-line-totals-discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\" [transactionLine]=\"line\"></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n <co-dialog-transaction-line-vat *ngIf=\"showDialogVat\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogVat = false\">\n </co-dialog-transaction-line-vat>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n ",
|
|
11419
|
+
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [selected]=\"selected\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\"></co-transaction-line-statusbar>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <div *ngIf=\"!preview\" class=\"transaction-line-button vat-button\" (click)=\"showDialogVat = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [textContent]=\"line.vatDescription\"></span>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width transaction-line-totals-discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\" [transactionLine]=\"line\"></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n <co-dialog-transaction-line-vat *ngIf=\"showDialogVat\"\n [autoClose]=\"true\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogVat = false\">\n </co-dialog-transaction-line-vat>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n ",
|
|
11168
11420
|
encapsulation: i0.ViewEncapsulation.None
|
|
11169
11421
|
},] }
|
|
11170
11422
|
];
|
|
@@ -11249,7 +11501,7 @@
|
|
|
11249
11501
|
TransactionOrderDeliveryLineComponent.decorators = [
|
|
11250
11502
|
{ type: i0.Component, args: [{
|
|
11251
11503
|
selector: "co-transaction-order-delivery-line",
|
|
11252
|
-
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [checkboxValue]=\"checkboxSelected\" [hideCheckbox]=\"deliveryOrderStatus?.quantityToDeliver === 0\" [actionButtons]=\"false\" observeVisibility (visible)=\"getDeliveryOrderStatus()\">\n <div class=\"transaction-line-buttons-grid\">\n <div class=\"row-1\">\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n </div>\n <div class=\"row-2\">\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\"></co-transaction-line-delivery-date-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\"></co-transaction-line-statusbar>\n </div>\n </div>\n <div class=\"transaction-line-totals-custom-grid\" [class.hidden]=\"!deliveryOrderStatus\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"(line.price + line.discountAmount) | coCurrency\"\n [crossedOut]=\"!!line.discountAmount\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.price | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal * line.amount | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver !== 0 && service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\"\n [min]=\"!service.currentTransaction.transactionInfo.allowPartialDelivery ? line.amount : 1\"\n [max]=\"line.amount\"\n [readonly]=\"readonly || !service.currentTransaction.transactionInfo.allowPartialDelivery\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver === 0 || !service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount\"\n [model]=\"deliveryOrderStatus?.quantityToDeliver.toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price discount\"\n [model]=\"'-' + (line.discountAmount | coCurrency)\"\n [readonly]=\"true\"\n ></co-editable-label>\n </div>\n </co-transaction-base-line>\n ",
|
|
11504
|
+
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [checkboxValue]=\"checkboxSelected\" [hideCheckbox]=\"deliveryOrderStatus?.quantityToDeliver === 0\" [actionButtons]=\"false\" observeVisibility (visible)=\"getDeliveryOrderStatus()\">\n <div class=\"transaction-line-buttons-grid\">\n <div class=\"row-1\">\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n </div>\n <div class=\"row-2\">\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\"></co-transaction-line-delivery-date-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"transactionKind\" [transactionTypeCategory]=\"activeCategory\"></co-transaction-line-statusbar>\n </div>\n </div>\n <div class=\"transaction-line-totals-custom-grid\" [class.hidden]=\"!deliveryOrderStatus\">\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"(line.price + line.discountAmount) | coCurrency\"\n [crossedOut]=\"!!line.discountAmount\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.price | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal * line.amount | coCurrency\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver !== 0 && service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount && line.quantityDelivered !== 0\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\"\n [min]=\"!service.currentTransaction.transactionInfo.allowPartialDelivery ? line.amount : 1\"\n [max]=\"line.amount\"\n [readonly]=\"readonly || !service.currentTransaction.transactionInfo.allowPartialDelivery\">\n </co-input-number-picker>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\" *ngIf=\"deliveryOrderStatus?.quantityToDeliver === 0 || !service.currentTransaction.transactionInfo.allowPartialDelivery\"\n [class.fully-delivered]=\"line.quantityDelivered === line.amount\"\n [class.partially-delivered]=\"line.quantityDelivered !== line.amount && line.quantityDelivered !== 0\"\n [model]=\"deliveryOrderStatus?.quantityToDeliver.toString()\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-editable-label class=\"transaction-line-totals-total price discount\"\n [model]=\"'-' + (line.discountAmount | coCurrency)\"\n [readonly]=\"true\"\n ></co-editable-label>\n </div>\n </co-transaction-base-line>\n ",
|
|
11253
11505
|
encapsulation: i0.ViewEncapsulation.None
|
|
11254
11506
|
},] }
|
|
11255
11507
|
];
|
|
@@ -11310,12 +11562,12 @@
|
|
|
11310
11562
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-order-delivery",] }]
|
|
11311
11563
|
};
|
|
11312
11564
|
|
|
11313
|
-
var
|
|
11314
|
-
__extends(
|
|
11315
|
-
function
|
|
11565
|
+
var ExtendedTransactionLineViewModel = /** @class */ (function (_super) {
|
|
11566
|
+
__extends(ExtendedTransactionLineViewModel, _super);
|
|
11567
|
+
function ExtendedTransactionLineViewModel() {
|
|
11316
11568
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11317
11569
|
}
|
|
11318
|
-
return
|
|
11570
|
+
return ExtendedTransactionLineViewModel;
|
|
11319
11571
|
}(transactionLineInfo_bo.TransactionLineInfo));
|
|
11320
11572
|
|
|
11321
11573
|
var TransactionReceiveGoodsLineComponent = /** @class */ (function (_super) {
|
|
@@ -11328,7 +11580,7 @@
|
|
|
11328
11580
|
_this._transactionEventService = _transactionEventService;
|
|
11329
11581
|
_this._transactionReceiveGoodsService = _transactionReceiveGoodsService;
|
|
11330
11582
|
_this.icons = Icon;
|
|
11331
|
-
_this.viewModel = new
|
|
11583
|
+
_this.viewModel = new ExtendedTransactionLineViewModel();
|
|
11332
11584
|
_this._subscriptions = [];
|
|
11333
11585
|
return _this;
|
|
11334
11586
|
}
|
|
@@ -11341,7 +11593,12 @@
|
|
|
11341
11593
|
this._initViewModel();
|
|
11342
11594
|
this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe(function (value) {
|
|
11343
11595
|
_this.viewModel.selected = _this.viewModel.quantityReceived === _this.viewModel.amount || _this.viewModel.quantityToReceive < 0 ? false : value;
|
|
11344
|
-
}), this.
|
|
11596
|
+
}), this._transactionEventService.transactionLineChanged.subscribe(function (line) {
|
|
11597
|
+
if (line.lineNr === _this.viewModel.lineNr) {
|
|
11598
|
+
_this.viewModel.quantityToReceive = line.quantityToReceive;
|
|
11599
|
+
_this.viewModel.quantityReceived = line.quantityReceived;
|
|
11600
|
+
}
|
|
11601
|
+
}));
|
|
11345
11602
|
};
|
|
11346
11603
|
TransactionReceiveGoodsLineComponent.prototype.ngOnDestroy = function () {
|
|
11347
11604
|
this._subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -11387,7 +11644,7 @@
|
|
|
11387
11644
|
TransactionReceiveGoodsLineComponent.decorators = [
|
|
11388
11645
|
{ type: i0.Component, args: [{
|
|
11389
11646
|
selector: "co-transaction-receive-goods-line",
|
|
11390
|
-
template: "\n <co-transaction-base-line [line]=\"viewModel\" [preview]=\"preview\" [actionButtons]=\"false\" (click)=\"handleLineClicked($event)\" observeVisibility (visible)=\"handleRowVisible()\">\n <div class=\"line-content-wrapper\" data-action=\"openSidePanel\">\n <co-transaction-line-warehouse-button [transactionLine]=\"viewModel\" [readonly]=\"viewModel.quantityReceived === viewModel.amount\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button [readonly]=\"viewModel.quantityReceived === viewModel.amount || !viewModel.isLocationRequired\" [line]=\"viewModel\"></co-transaction-line-warehouse-location-button>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"viewModel.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\"\n [class.fully-delivered]=\"viewModel.quantityReceived === viewModel.amount\"\n [class.partially-delivered]=\"viewModel.quantityReceived !== viewModel.amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"viewModel.quantityToReceive\"\n [min]=\"!allowPartialDelivery ? viewModel.amount : 1\"\n [max]=\"viewModel.amount - viewModel.quantityReceived\"\n [readonly]=\"readonly || !allowPartialDelivery || viewModel.quantityReceived === viewModel.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-input-checkbox class=\"transaction-line-checkbox\"\n [(model)]=\"viewModel.selected\"\n [disabled]=\"viewModel.quantityReceived === viewModel.amount || viewModel.quantityToReceive < 0\"\n ></co-input-checkbox>\n <div class=\"print-button\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PrintSolid)\"></co-icon>\n <span class=\"price\" [textContent]=\"1\"></span>\n </div>\n </div>\n </co-transaction-base-line>\n ",
|
|
11647
|
+
template: "\n <co-transaction-base-line [line]=\"viewModel\" [preview]=\"preview\" [actionButtons]=\"false\" (click)=\"handleLineClicked($event)\" observeVisibility (visible)=\"handleRowVisible()\">\n <div class=\"line-content-wrapper\" data-action=\"openSidePanel\">\n <co-transaction-line-warehouse-button [transactionLine]=\"viewModel\" [readonly]=\"viewModel.quantityReceived === viewModel.amount\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button [readonly]=\"viewModel.quantityReceived === viewModel.amount || !viewModel.isLocationRequired\" [line]=\"viewModel\"></co-transaction-line-warehouse-location-button>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"viewModel.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <div class=\"transaction-line-totals-amount\"\n [class.fully-delivered]=\"viewModel.quantityReceived === viewModel.amount\"\n [class.partially-delivered]=\"viewModel.quantityReceived !== viewModel.amount && viewModel.quantityReceived !== 0\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"viewModel.quantityToReceive\"\n [min]=\"!allowPartialDelivery ? viewModel.amount : 1\"\n [max]=\"viewModel.amount - viewModel.quantityReceived\"\n [readonly]=\"readonly || !allowPartialDelivery || viewModel.quantityReceived === viewModel.amount\"\n (modelChange)=\"changeLineAmount($event)\">\n </co-input-number-picker>\n </div>\n <co-input-checkbox class=\"transaction-line-checkbox\"\n [(model)]=\"viewModel.selected\"\n [disabled]=\"viewModel.quantityReceived === viewModel.amount || viewModel.quantityToReceive < 0\"\n ></co-input-checkbox>\n <div class=\"print-button\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PrintSolid)\"></co-icon>\n <span class=\"price\" [textContent]=\"1\"></span>\n </div>\n </div>\n </co-transaction-base-line>\n ",
|
|
11391
11648
|
encapsulation: i0.ViewEncapsulation.None
|
|
11392
11649
|
},] }
|
|
11393
11650
|
];
|
|
@@ -11435,7 +11692,7 @@
|
|
|
11435
11692
|
TransactionPurchaseLineComponent.decorators = [
|
|
11436
11693
|
{ type: i0.Component, args: [{
|
|
11437
11694
|
selector: "co-transaction-purchase-line",
|
|
11438
|
-
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"showCheckboxForLine\" [checkboxValue]=\"selected\" (checkboxValueChanged)=\"selected = $event\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"service.currentTransaction.transactionInfo.transactionKind\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <co-transaction-line-supplier-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-supplier-button>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width transaction-line-totals-discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\" [transactionLine]=\"line\"></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"readonly\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n ",
|
|
11695
|
+
template: "\n <co-transaction-base-line [line]=\"line\" [preview]=\"preview\" [checkbox]=\"showCheckboxForLine\" [checkboxValue]=\"selected\" (checkboxValueChanged)=\"selected = $event\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <co-transaction-line-commission-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-commission-button>\n <co-transaction-line-warehouse-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-delivery-date-button [transactionLine]=\"line\" class=\"two-column\"></co-transaction-line-delivery-date-button>\n </div>\n <div class=\"column2\">\n <co-transaction-line-delivery-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-statusbar [transaction]=\"line\" [transactionKind]=\"service.currentTransaction.transactionInfo.transactionKind\" [transactionTypeCategory]=\"activeCategory\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <co-transaction-line-supplier-button [transactionLine]=\"line\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-supplier-button>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [transactionLine]=\"line\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <div class=\"transaction-line-button custom-width transaction-line-totals-discount\" (click)=\"showDialogDiscount = true\">\n <span class=\"co-transaction-overflow-ellipsis\" [class.transaction-negative-value]=\"line.lineTotalDiscountAmount < 0\"\n [textContent]=\"(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\" [transactionLine]=\"line\"></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"line.displayNetLineTotal | coCurrency\"\n [editModel]=\"line.displayNetLineTotal\"\n [readonly]=\"readonly\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n <co-dialog-transaction-line-discount *ngIf=\"showDialogDiscount\"\n [transactionInfo]=\"service.currentTransaction.transactionInfo\"\n [transactionLine]=\"line\"\n (close)=\"showDialogDiscount = false\"\n ></co-dialog-transaction-line-discount>\n ",
|
|
11439
11696
|
encapsulation: i0.ViewEncapsulation.None
|
|
11440
11697
|
},] }
|
|
11441
11698
|
];
|
|
@@ -11563,51 +11820,267 @@
|
|
|
11563
11820
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-sales-purchase-button-bar-button',] }]
|
|
11564
11821
|
};
|
|
11565
11822
|
|
|
11566
|
-
var
|
|
11567
|
-
function
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11823
|
+
var TransactionAllocateGoodsService = /** @class */ (function () {
|
|
11824
|
+
function TransactionAllocateGoodsService(_transactionService, _transactionEventService) {
|
|
11825
|
+
var _this = this;
|
|
11826
|
+
this._transactionService = _transactionService;
|
|
11827
|
+
this._transactionEventService = _transactionEventService;
|
|
11828
|
+
this.lines = [];
|
|
11829
|
+
this._subscriptions = [];
|
|
11830
|
+
this._subscriptions.push(this._transactionEventService.commitReceivePurchaseOrders.subscribe(function () {
|
|
11831
|
+
_this.handleAllocateSelectedPurchaseOrders();
|
|
11832
|
+
}));
|
|
11833
|
+
}
|
|
11834
|
+
TransactionAllocateGoodsService.prototype.handleAllocateSelectedPurchaseOrders = function () {
|
|
11835
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11836
|
+
var selectedLines, allocateGoodsRequest_1, success;
|
|
11837
|
+
return __generator(this, function (_a) {
|
|
11838
|
+
switch (_a.label) {
|
|
11839
|
+
case 0:
|
|
11840
|
+
selectedLines = this.lines.filter(function (line) { return line.selected && line.quantityToAllocate > 0; });
|
|
11841
|
+
if (!(selectedLines.length > 0)) return [3 /*break*/, 2];
|
|
11842
|
+
allocateGoodsRequest_1 = new allocateGoodsForSalesOrderRequest.AllocateGoodsForSalesOrderRequest();
|
|
11843
|
+
allocateGoodsRequest_1.transId = selectedLines[0].transId;
|
|
11844
|
+
allocateGoodsRequest_1.salesOrderLineAllocationDetailsDTOS = [];
|
|
11845
|
+
selectedLines.forEach(function (line) {
|
|
11846
|
+
var detail = new salesOrderLineAllocationDetails.SalesOrderLineAllocationDetails();
|
|
11847
|
+
detail.lineNr = line.lineNr;
|
|
11848
|
+
detail.quantityToAllocate = line.quantityToAllocate;
|
|
11849
|
+
detail.warehouseNr = line.warehouseNumber;
|
|
11850
|
+
detail.locationNr = line.locationNr;
|
|
11851
|
+
allocateGoodsRequest_1.salesOrderLineAllocationDetailsDTOS.push(detail);
|
|
11852
|
+
});
|
|
11853
|
+
return [4 /*yield*/, this._transactionService.allocateGoodsForSalesOrder(allocateGoodsRequest_1)];
|
|
11854
|
+
case 1:
|
|
11855
|
+
success = _a.sent();
|
|
11856
|
+
if (success) {
|
|
11857
|
+
this._handleAfterCommitReceivedOrders(selectedLines);
|
|
11858
|
+
}
|
|
11859
|
+
return [2 /*return*/, !!success];
|
|
11860
|
+
case 2: return [2 /*return*/, false];
|
|
11861
|
+
}
|
|
11862
|
+
});
|
|
11863
|
+
});
|
|
11864
|
+
};
|
|
11865
|
+
TransactionAllocateGoodsService.prototype._handleAfterCommitReceivedOrders = function (selectedLines) {
|
|
11866
|
+
var _this = this;
|
|
11867
|
+
selectedLines.forEach(function (line) {
|
|
11868
|
+
line.quantityAllocated += line.quantityToAllocate;
|
|
11869
|
+
line.quantityToAllocate -= line.quantityToAllocate;
|
|
11870
|
+
_this._transactionEventService.transactionLineChanged.next(line);
|
|
11871
|
+
});
|
|
11872
|
+
this._transactionEventService.selectAllLines.next(false);
|
|
11873
|
+
};
|
|
11874
|
+
return TransactionAllocateGoodsService;
|
|
11875
|
+
}());
|
|
11876
|
+
TransactionAllocateGoodsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionAllocateGoodsService_Factory() { return new TransactionAllocateGoodsService(i0__namespace.ɵɵinject(TransactionService), i0__namespace.ɵɵinject(TransactionEventService)); }, token: TransactionAllocateGoodsService, providedIn: "root" });
|
|
11877
|
+
TransactionAllocateGoodsService.decorators = [
|
|
11878
|
+
{ type: i0.Injectable, args: [{
|
|
11879
|
+
providedIn: "root"
|
|
11880
|
+
},] }
|
|
11881
|
+
];
|
|
11882
|
+
TransactionAllocateGoodsService.ctorParameters = function () { return [
|
|
11883
|
+
{ type: TransactionService },
|
|
11884
|
+
{ type: TransactionEventService }
|
|
11885
|
+
]; };
|
|
11886
|
+
|
|
11887
|
+
var TransactionGoodsAllocationLineComponent = /** @class */ (function (_super) {
|
|
11888
|
+
__extends(TransactionGoodsAllocationLineComponent, _super);
|
|
11889
|
+
function TransactionGoodsAllocationLineComponent(iconCacheService, service, _transactionService, _transactionEventService, _transactionAllocateGoodsService) {
|
|
11890
|
+
var _this = _super.call(this) || this;
|
|
11891
|
+
_this.iconCacheService = iconCacheService;
|
|
11892
|
+
_this.service = service;
|
|
11893
|
+
_this._transactionService = _transactionService;
|
|
11894
|
+
_this._transactionEventService = _transactionEventService;
|
|
11895
|
+
_this._transactionAllocateGoodsService = _transactionAllocateGoodsService;
|
|
11896
|
+
_this.icons = Icon;
|
|
11897
|
+
_this.viewModel = new ExtendedTransactionLineViewModel();
|
|
11898
|
+
_this._subscriptions = [];
|
|
11899
|
+
return _this;
|
|
11900
|
+
}
|
|
11901
|
+
TransactionGoodsAllocationLineComponent.prototype.showClass = function () {
|
|
11902
|
+
return true;
|
|
11903
|
+
};
|
|
11904
|
+
TransactionGoodsAllocationLineComponent.prototype.ngOnInit = function () {
|
|
11905
|
+
var _this = this;
|
|
11906
|
+
this._initViewModel();
|
|
11907
|
+
this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
|
|
11908
|
+
this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe(function (value) {
|
|
11909
|
+
_this.viewModel.selected = _this.viewModel.quantityAllocated === _this.viewModel.amount || _this.viewModel.quantityToAllocate < 0 ? false : value;
|
|
11910
|
+
}), this._transactionEventService.transactionLineChanged.subscribe(function (line) {
|
|
11911
|
+
if (line.lineNr === _this.viewModel.lineNr) {
|
|
11912
|
+
_this.viewModel.quantityToAllocate = line.quantityToAllocate;
|
|
11913
|
+
_this.viewModel.quantityAllocated = line.quantityAllocated;
|
|
11914
|
+
}
|
|
11915
|
+
}));
|
|
11916
|
+
};
|
|
11917
|
+
TransactionGoodsAllocationLineComponent.prototype.ngOnDestroy = function () {
|
|
11918
|
+
this._subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
11919
|
+
this._transactionAllocateGoodsService.lines = [];
|
|
11920
|
+
};
|
|
11921
|
+
TransactionGoodsAllocationLineComponent.prototype.handleRowVisible = function () {
|
|
11922
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11923
|
+
var goodsAllocationStatus;
|
|
11924
|
+
return __generator(this, function (_a) {
|
|
11925
|
+
switch (_a.label) {
|
|
11926
|
+
case 0:
|
|
11927
|
+
if (!this.line.isArticle) return [3 /*break*/, 2];
|
|
11928
|
+
return [4 /*yield*/, this._transactionService.getGoodsAllocationStatus(this.transactionId, this.line.lineNr)];
|
|
11929
|
+
case 1:
|
|
11930
|
+
goodsAllocationStatus = _a.sent();
|
|
11931
|
+
this.viewModel.quantityToAllocate = goodsAllocationStatus.quantityToAllocate;
|
|
11932
|
+
this.viewModel.quantityAllocated = goodsAllocationStatus.quantityAllocated;
|
|
11933
|
+
this.viewModel.selected = this.viewModel.quantityAllocated !== this.viewModel.amount && !this.viewModel.isSerialNrRequired && !this.viewModel.isBatchNrRequired && this.viewModel.quantityToAllocate > 0;
|
|
11934
|
+
this._transactionAllocateGoodsService.lines.push(this.viewModel);
|
|
11935
|
+
_a.label = 2;
|
|
11936
|
+
case 2: return [2 /*return*/];
|
|
11937
|
+
}
|
|
11938
|
+
});
|
|
11939
|
+
});
|
|
11940
|
+
};
|
|
11941
|
+
TransactionGoodsAllocationLineComponent.prototype.handleLineClicked = function (mouseClick) {
|
|
11942
|
+
var target = mouseClick.target;
|
|
11943
|
+
if (target && target.dataset && target.dataset['action'] && target.dataset['action'] === 'openSidePanel') {
|
|
11944
|
+
this._transactionEventService.openSidePanel.next(this.line);
|
|
11945
|
+
}
|
|
11946
|
+
};
|
|
11947
|
+
TransactionGoodsAllocationLineComponent.prototype._initViewModel = function () {
|
|
11948
|
+
Object.assign(this.viewModel, this.line);
|
|
11949
|
+
this.viewModel.quantityToAllocate = 0;
|
|
11950
|
+
this.viewModel.quantityAllocated = 0;
|
|
11951
|
+
this.viewModel.lineNr = this.line.lineNr;
|
|
11952
|
+
this.viewModel.transId = this.transactionId;
|
|
11953
|
+
};
|
|
11954
|
+
return TransactionGoodsAllocationLineComponent;
|
|
11955
|
+
}(TransactionLinesLineBaseComponent));
|
|
11956
|
+
TransactionGoodsAllocationLineComponent.decorators = [
|
|
11957
|
+
{ type: i0.Component, args: [{
|
|
11958
|
+
selector: "co-transaction-goods-allocation-line",
|
|
11959
|
+
template: "\n <co-transaction-base-line [line]=\"viewModel\" [preview]=\"preview\" [actionButtons]=\"false\" (click)=\"handleLineClicked($event)\" observeVisibility (visible)=\"handleRowVisible()\">\n <div class=\"line-content-wrapper\" data-action=\"openSidePanel\">\n <co-transaction-line-warehouse-button [transactionLine]=\"viewModel\" [readonly]=\"viewModel.quantityAllocated === viewModel.amount\" [transactionInfo]=\"service.currentTransaction.transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-warehouse-location-button [readonly]=\"viewModel.quantityAllocated === viewModel.amount || !viewModel.isLocationRequired\" [line]=\"viewModel\"></co-transaction-line-warehouse-location-button>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [model]=\"viewModel.amount.toString() + 'x'\"\n [readonly]=\"true\"\n ></co-editable-label>\n <co-transaction-line-statusbar class=\"status-bar-wrapper\" [transaction]=\"line\" [transactionKind]=\"transactionKind\" [transactionTypeCategory]=\"activeCategory\"></co-transaction-line-statusbar>\n <div class=\"transaction-line-totals-amount\"\n [class.fully-delivered]=\"viewModel.quantityAllocated === viewModel.amount\"\n [class.partially-delivered]=\"viewModel.quantityAllocated !== viewModel.amount && viewModel.quantityAllocated !== 0\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"viewModel.quantityToAllocate\"\n [min]=\"1\"\n [max]=\"viewModel.amount - viewModel.quantityAllocated\"\n [readonly]=\"readonly || viewModel.quantityAllocated === viewModel.amount\"\n ></co-input-number-picker>\n </div>\n <co-input-checkbox class=\"transaction-line-checkbox\"\n [(model)]=\"viewModel.selected\"\n [disabled]=\"viewModel.quantityAllocated === viewModel.amount\"\n ></co-input-checkbox>\n </div>\n </co-transaction-base-line>\n ",
|
|
11960
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11961
|
+
},] }
|
|
11962
|
+
];
|
|
11963
|
+
TransactionGoodsAllocationLineComponent.ctorParameters = function () { return [
|
|
11964
|
+
{ type: IconCacheService },
|
|
11965
|
+
{ type: TransactionService },
|
|
11966
|
+
{ type: TransactionService },
|
|
11967
|
+
{ type: TransactionEventService },
|
|
11968
|
+
{ type: TransactionAllocateGoodsService }
|
|
11969
|
+
]; };
|
|
11970
|
+
TransactionGoodsAllocationLineComponent.propDecorators = {
|
|
11971
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-goods-allocation-line",] }]
|
|
11972
|
+
};
|
|
11973
|
+
|
|
11974
|
+
var TransactionQuickAccessGoodsAllocationComponent = /** @class */ (function (_super) {
|
|
11975
|
+
__extends(TransactionQuickAccessGoodsAllocationComponent, _super);
|
|
11976
|
+
function TransactionQuickAccessGoodsAllocationComponent(iconService, _transactionService, _transactionEventService, _allocateGoodsService) {
|
|
11977
|
+
var _this = _super.call(this, _transactionService) || this;
|
|
11978
|
+
_this.iconService = iconService;
|
|
11979
|
+
_this._transactionService = _transactionService;
|
|
11980
|
+
_this._transactionEventService = _transactionEventService;
|
|
11981
|
+
_this._allocateGoodsService = _allocateGoodsService;
|
|
11982
|
+
_this.icons = Icon;
|
|
11983
|
+
_this.awaitingResult = false;
|
|
11984
|
+
_this.resultSuccessful = false;
|
|
11985
|
+
_this.iconVisible = true;
|
|
11986
|
+
return _this;
|
|
11987
|
+
}
|
|
11988
|
+
TransactionQuickAccessGoodsAllocationComponent.prototype.showClass = function () {
|
|
11989
|
+
return true;
|
|
11990
|
+
};
|
|
11991
|
+
TransactionQuickAccessGoodsAllocationComponent.prototype.handleSelectAllLines = function (value) {
|
|
11992
|
+
this._transactionEventService.selectAllLines.next(value);
|
|
11993
|
+
};
|
|
11994
|
+
TransactionQuickAccessGoodsAllocationComponent.prototype.handleCommitEvent = function () {
|
|
11995
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11996
|
+
var _a;
|
|
11997
|
+
var _this = this;
|
|
11998
|
+
return __generator(this, function (_b) {
|
|
11999
|
+
switch (_b.label) {
|
|
12000
|
+
case 0:
|
|
12001
|
+
this.iconVisible = false;
|
|
12002
|
+
this.resultSuccessful = false;
|
|
12003
|
+
this.awaitingResult = true;
|
|
12004
|
+
_a = this;
|
|
12005
|
+
return [4 /*yield*/, this._allocateGoodsService.handleAllocateSelectedPurchaseOrders()];
|
|
12006
|
+
case 1:
|
|
12007
|
+
_a.resultSuccessful = _b.sent();
|
|
12008
|
+
this.awaitingResult = false;
|
|
12009
|
+
setTimeout(function () {
|
|
12010
|
+
_this.iconVisible = true;
|
|
12011
|
+
}, 600);
|
|
12012
|
+
return [2 /*return*/];
|
|
12013
|
+
}
|
|
12014
|
+
});
|
|
12015
|
+
});
|
|
12016
|
+
};
|
|
12017
|
+
return TransactionQuickAccessGoodsAllocationComponent;
|
|
12018
|
+
}(TransactionBaseComponent));
|
|
12019
|
+
TransactionQuickAccessGoodsAllocationComponent.decorators = [
|
|
12020
|
+
{ type: i0.Component, args: [{
|
|
12021
|
+
selector: "co-transaction-quick-access-goods-allocation",
|
|
12022
|
+
template: "\n <div class=\"quick-access-content-wrapper\">\n <div class=\"select-all-wrapper\">\n <co-input-checkbox\n [label]=\"'SELECT_ALL_LINES' | localize\"\n (modelChange)=\"handleSelectAllLines($event)\"\n ></co-input-checkbox>\n </div>\n <div class=\"button-wrapper\" (click)=\"handleCommitEvent()\">\n <co-checkmark-overlay [successful]=\"resultSuccessful\" [visible]=\"awaitingResult\"></co-checkmark-overlay>\n <co-icon class=\"button-icon\" [iconData]=\"iconService.getIcon(icons.GearSolid)\" [class.hidden]=\"!iconVisible\"></co-icon>\n </div>\n </div>\n ",
|
|
12023
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
12024
|
+
},] }
|
|
12025
|
+
];
|
|
12026
|
+
TransactionQuickAccessGoodsAllocationComponent.ctorParameters = function () { return [
|
|
12027
|
+
{ type: IconCacheService },
|
|
12028
|
+
{ type: TransactionService },
|
|
12029
|
+
{ type: TransactionEventService },
|
|
12030
|
+
{ type: TransactionAllocateGoodsService }
|
|
12031
|
+
]; };
|
|
12032
|
+
TransactionQuickAccessGoodsAllocationComponent.propDecorators = {
|
|
12033
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-goods-allocation",] }]
|
|
12034
|
+
};
|
|
12035
|
+
|
|
12036
|
+
var TransactionMappingService = /** @class */ (function () {
|
|
12037
|
+
function TransactionMappingService() {
|
|
12038
|
+
this._buttonBarTransaction = new Map([
|
|
12039
|
+
[transactionKind_enum.TransactionKind.PurchaseOrder, [
|
|
12040
|
+
{ title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.PurchaseOrderOverview },
|
|
12041
|
+
{ title: 'CONFIRMATION', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation },
|
|
12042
|
+
{ title: 'TRANSPORT', icon: Icon.TruckContainerSolid, category: TransactionTypeCategory.PurchaseOrderTransport },
|
|
12043
|
+
{ title: 'RECEIVED', icon: Icon.CartFlatbedBoxesSolid, category: TransactionTypeCategory.PurchaseOrderReceivedGoods },
|
|
12044
|
+
{ title: 'INVOICE_CHECK', icon: Icon.Tag, category: TransactionTypeCategory.PurchaseOrderInvoiceCheck },
|
|
12045
|
+
{ title: 'MENU', icon: Icon.Tag, category: TransactionTypeCategory.PurchaseOrderMenu }
|
|
12046
|
+
]],
|
|
12047
|
+
[transactionKind_enum.TransactionKind.SalesOrder, [
|
|
12048
|
+
{ title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderOverview },
|
|
12049
|
+
{ title: 'PURCHASE', icon: Icon.PalletBoxesSolid, category: TransactionTypeCategory.SalesOrderPurchase, component: TransactionSalesPurchaseButtonBarButtonComponent },
|
|
12050
|
+
{ title: 'ALLOCATION', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderAllocation },
|
|
12051
|
+
{ title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
|
|
12052
|
+
{ title: 'PLANNING', icon: Icon.TruckMovingSolid, category: TransactionTypeCategory.SalesOrderPlanning },
|
|
12053
|
+
{ title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
|
|
12054
|
+
{ title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
|
|
12055
|
+
]],
|
|
12056
|
+
]);
|
|
12057
|
+
this._quickAccessComponent = new Map([
|
|
12058
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionQuickAccessOrderConfirmationComponent],
|
|
12059
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionQuickAccessReceivedGoodsComponent],
|
|
12060
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionQuickAccessOverviewComponent],
|
|
12061
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPurchase }, TransactionQuickAccessOrderPurchaseComponent],
|
|
12062
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderAllocation }, TransactionQuickAccessGoodsAllocationComponent],
|
|
12063
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderDeliveryNote }, TransactionQuickAccessOrderDeliveryComponent]
|
|
12064
|
+
]);
|
|
12065
|
+
this._transactionGridComponent = new Map([
|
|
12066
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionLinesGridComponent],
|
|
12067
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionOrderConfirmationGridComponent],
|
|
12068
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionLinesGridComponent]
|
|
12069
|
+
]);
|
|
12070
|
+
this._transactionLineComponent = new Map([
|
|
12071
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionOverviewLineComponent],
|
|
12072
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderPurchase }, TransactionPurchaseLineComponent],
|
|
12073
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderAllocation }, TransactionGoodsAllocationLineComponent],
|
|
12074
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderDeliveryNote }, TransactionOrderDeliveryLineComponent],
|
|
12075
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionOrderDeliveryLineComponent],
|
|
12076
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
|
|
12077
|
+
]);
|
|
12078
|
+
this._transactionFilterComponent = new Map([
|
|
12079
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder }, TransactionSalesOrderFilterComponent],
|
|
12080
|
+
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder }, TransactionPurchaseOrderFilterComponent],
|
|
12081
|
+
]);
|
|
12082
|
+
this._transactionSearchGridComponent = new Map([
|
|
12083
|
+
[{ type: transactionKind_enum.TransactionKind.SalesOrder }, TransactionSearchSalesOrderGridComponent],
|
|
11611
12084
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder }, TransactionSearchPurchaseOrderGridComponent],
|
|
11612
12085
|
]);
|
|
11613
12086
|
this._transactionSearchTileComponent = new Map([
|
|
@@ -11788,6 +12261,7 @@
|
|
|
11788
12261
|
this._componentRef.instance.selected = this.selected;
|
|
11789
12262
|
this._componentRef.instance.line = this.line;
|
|
11790
12263
|
this._componentRef.instance.transactionId = this.transactionId;
|
|
12264
|
+
this._componentRef.instance.activeCategory = this.activeCategory;
|
|
11791
12265
|
this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
|
|
11792
12266
|
this._componentRef.instance.lineVisible = this.lineVisible;
|
|
11793
12267
|
}
|
|
@@ -11955,7 +12429,7 @@
|
|
|
11955
12429
|
TransactionLinesComponent.decorators = [
|
|
11956
12430
|
{ type: i0.Component, args: [{
|
|
11957
12431
|
selector: "co-transaction-lines",
|
|
11958
|
-
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon *ngIf=\"!preview\" class=\"transaction-line-drag-handle\"\n [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line\n [transactionType]=\"service.currentTransaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionId]=\"transactionId\"\n [preview]=\"preview\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n
|
|
12432
|
+
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-icon *ngIf=\"!preview\" class=\"transaction-line-drag-handle\"\n [class.show]=\"line === selectedTransactionLine && transactionLines.length > 1\" cdkDragHandle\n [iconData]=\"iconCacheService.getIcon(icons.GripDotsVerticalSolid)\">\n </co-icon>\n <co-transaction-line\n [transactionType]=\"service.currentTransaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionId]=\"transactionId\"\n [preview]=\"preview\"\n [line]=\"line\"\n [selected]=\"line === selectedTransactionLine\"\n (waitingForUserAction)=\"userActionRequired = $event\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (click)=\"selectedTransactionLine = line\"\n ></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=\"!preview && transactionLines.length === 0\" class=\"add-text-button circle\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
11959
12433
|
encapsulation: i0.ViewEncapsulation.None
|
|
11960
12434
|
},] }
|
|
11961
12435
|
];
|
|
@@ -13673,7 +14147,7 @@
|
|
|
13673
14147
|
CheckoutOverviewPaymentComponent.decorators = [
|
|
13674
14148
|
{ type: i0.Component, args: [{
|
|
13675
14149
|
selector: "co-checkout-overview-payment",
|
|
13676
|
-
template: "\n <div class=\"checkout-overview-section\">\n <span class=\"overview-section-title\" [textContent]=\"'YOUR_DATA' | localize\"></span>\n <div class=\"two-column-grid\">\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'DELIVERY_ADDRESS' | localize\"></span>\n <span [textContent]=\"relation.displayName\"></span>\n <span [textContent]=\"deliveryAddress.displayAddress\"></span>\n <span [textContent]=\"deliveryAddress.displayPostal\"></span>\n </div>\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n <span [textContent]=\"relation.displayName\"></span>\n <span [textContent]=\"invoiceAddress.displayAddress\"></span>\n <span [textContent]=\"invoiceAddress.displayPostal\"></span>\n </div>\n </div>\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n <span [textContent]=\"relation.primaryEmail\"></span>\n <span [textContent]=\"relation.primaryPhoneNumber\"></span>\n </div>\n <div class=\"overview-section-change-link\">\n <icon class=\"overview-section-change-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'CHANGE_DATA' | localize\" (click)=\"changeYourDataClick.emit()\"></div>\n </div>\n </div>\n <div class=\"checkout-overview-section\">\n <span class=\"overview-section-title\" [textContent]=\"'DELIVERY' | localize\"></span>\n <div class=\"overview-address\">\n <div class=\"overview-row\">\n <span [textContent]=\"'EXPECTED_DELIVERY_DATE' | localize | append:':'\"></span><span [textContent]=\"transaction.transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n </div>\n <div class=\"overview-row\">\n <span [textContent]=\"'DELIVERY_METHOD' | localize | append:':'\"></span><span [textContent]=\"transaction.transactionInfo.deliveryMethod\"></span>\n </div>\n </div>\n <div class=\"overview-section-change-link\">\n <icon class=\"overview-section-change-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'CHANGE_DATA' | localize\" (click)=\"changeDeliveryClick.emit()\"></div>\n </div>\n </div>\n <co-payment\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [amount]=\"transaction.
|
|
14150
|
+
template: "\n <div class=\"checkout-overview-section\">\n <span class=\"overview-section-title\" [textContent]=\"'YOUR_DATA' | localize\"></span>\n <div class=\"two-column-grid\">\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'DELIVERY_ADDRESS' | localize\"></span>\n <span [textContent]=\"relation.displayName\"></span>\n <span [textContent]=\"deliveryAddress.displayAddress\"></span>\n <span [textContent]=\"deliveryAddress.displayPostal\"></span>\n </div>\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n <span [textContent]=\"relation.displayName\"></span>\n <span [textContent]=\"invoiceAddress.displayAddress\"></span>\n <span [textContent]=\"invoiceAddress.displayPostal\"></span>\n </div>\n </div>\n <div class=\"overview-address\">\n <span class=\"overview-address-title\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n <span [textContent]=\"relation.primaryEmail\"></span>\n <span [textContent]=\"relation.primaryPhoneNumber\"></span>\n </div>\n <div class=\"overview-section-change-link\">\n <icon class=\"overview-section-change-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'CHANGE_DATA' | localize\" (click)=\"changeYourDataClick.emit()\"></div>\n </div>\n </div>\n <div class=\"checkout-overview-section\">\n <span class=\"overview-section-title\" [textContent]=\"'DELIVERY' | localize\"></span>\n <div class=\"overview-address\">\n <div class=\"overview-row\">\n <span [textContent]=\"'EXPECTED_DELIVERY_DATE' | localize | append:':'\"></span><span [textContent]=\"transaction.transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n </div>\n <div class=\"overview-row\">\n <span [textContent]=\"'DELIVERY_METHOD' | localize | append:':'\"></span><span [textContent]=\"transaction.transactionInfo.deliveryMethod\"></span>\n </div>\n </div>\n <div class=\"overview-section-change-link\">\n <icon class=\"overview-section-change-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'CHANGE_DATA' | localize\" (click)=\"changeDeliveryClick.emit()\"></div>\n </div>\n </div>\n <co-payment\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [amount]=\"transaction.transactionInfo.toDownPayAmount\"\n [currencyId]=\"transaction.transactionInfo.currencyId\"\n (payed)=\"handlePayed()\"\n ></co-payment>\n ",
|
|
13677
14151
|
encapsulation: i0.ViewEncapsulation.None
|
|
13678
14152
|
},] }
|
|
13679
14153
|
];
|
|
@@ -15007,7 +15481,7 @@
|
|
|
15007
15481
|
TransactionHeaderDownpaymentAmountComponent.decorators = [
|
|
15008
15482
|
{ type: i0.Component, args: [{
|
|
15009
15483
|
selector: "co-transaction-header-downpayment-amount",
|
|
15010
|
-
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"transactionInfo.toDownPayAmount | coCurrency\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DOWNPAYMENT' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.toDownPayAmount\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
|
|
15484
|
+
template: "\n <span *ngIf=\"(!editMode || readonly) && !defaultEditMode\" [textContent]=\"(transactionInfo.toDownPayAmount | coCurrency) || '...'\"></span>\n <co-input-text #input *ngIf=\"editMode || defaultEditMode\"\n [type]=\"'number'\"\n [placeholder]=\"showLabel ? ('DOWNPAYMENT' | localize) : ''\"\n [showSaveCancel]=\"!readonly\"\n [readonly]=\"readonly\"\n [model]=\"transactionInfo.toDownPayAmount\"\n (blur)=\"editMode = false\"\n ></co-input-text>\n ",
|
|
15011
15485
|
encapsulation: i0.ViewEncapsulation.None
|
|
15012
15486
|
},] }
|
|
15013
15487
|
];
|
|
@@ -15531,7 +16005,7 @@
|
|
|
15531
16005
|
TransactionLineSidePanelComponent.decorators = [
|
|
15532
16006
|
{ type: i0.Component, args: [{
|
|
15533
16007
|
selector: "co-transaction-line-side-panel",
|
|
15534
|
-
template: "\n <div class=\"transaction-line-side-panel-wrapper\" *ngIf=\"show\" @showHideSidePanel>\n <icon (click)=\"handleCancelClick()\" [icon]=\"icons.Cancel\" class=\"close-button\"></icon>\n <div class=\"transaction-line-side-panel-header\">\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'DESCRIPTION'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.goodDescription\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.amount\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? ('OPEN' | localize) : ('PRICE' | localize)\"></span>\n <span class=\"side-panel-header-field\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)\"></span>\n </div>\n </div>\n <div class=\"transaction-line-side-panel-nav-bar\">\n <co-transaction-button-bar\n [selectedCategory]=\"activeCategory\"\n [transactionType]=\"transactionInfo.transactionKind\"\n (buttonClicked)=\"activeCategory = $event.category\"\n ></co-transaction-button-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"transactionInfo.transactionKind\">\n <ng-container *ngSwitchCase=\"transactionTypes.PurchaseOrder\">\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n (quantityToReceiveChange)=\"quantityToReceive = $event\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n </ng-container>\n </div>\n </div>\n ",
|
|
16008
|
+
template: "\n <div class=\"transaction-line-side-panel-wrapper\" *ngIf=\"show\" @showHideSidePanel>\n <icon (click)=\"handleCancelClick()\" [icon]=\"icons.Cancel\" class=\"close-button\"></icon>\n <div class=\"transaction-line-side-panel-header\">\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'DESCRIPTION'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.goodDescription\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.amount\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? ('OPEN' | localize) : ('PRICE' | localize)\"></span>\n <span class=\"side-panel-header-field\"\n [textContent]=\"activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)\"></span>\n </div>\n </div>\n <div class=\"transaction-line-side-panel-nav-bar\">\n <co-transaction-button-bar\n [selectedCategory]=\"activeCategory\"\n [transactionType]=\"transactionInfo.transactionKind\"\n (buttonClicked)=\"activeCategory = $event.category\"\n ></co-transaction-button-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"transactionInfo.transactionKind\">\n <ng-container *ngSwitchCase=\"transactionTypes.PurchaseOrder\">\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n (quantityToReceiveChange)=\"quantityToReceive = $event\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n <ng-container *ngSwitchCase=\"transactionTypes.SalesOrder\">\n <co-transaction-line-side-panel-sales\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-sales>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n </ng-container>\n </div>\n </div>\n ",
|
|
15535
16009
|
animations: [
|
|
15536
16010
|
animations.trigger("showHideSidePanel", [
|
|
15537
16011
|
animations.state("void", animations.style({ transform: 'translateX(100%)' })),
|
|
@@ -15644,7 +16118,7 @@
|
|
|
15644
16118
|
TransactionComponent.decorators = [
|
|
15645
16119
|
{ type: i0.Component, args: [{
|
|
15646
16120
|
selector: "co-transaction",
|
|
15647
|
-
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-quick-send-button class=\"quick-send-button\" [transaction]=\"transaction\">\n\n </co-quick-send-button>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\"\n ></co-transaction-totals>\n </div>\n ",
|
|
16121
|
+
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\" [relation]=\"relation\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transaction]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-quick-send-button class=\"quick-send-button\" [transaction]=\"transaction\">\n\n </co-quick-send-button>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid, viewModes.Tiles]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <co-transaction-tile\n *ngFor=\"let transaction of transaction.transactionLines\"\n [transactionLine]=\"transaction\"\n [activeCategory]=\"activeCategory\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-tile>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionTotal]=\"transaction.transactionTotal\"\n [showDiscount]=\"true\"\n ></co-transaction-totals>\n </div>\n ",
|
|
15648
16122
|
encapsulation: i0.ViewEncapsulation.None
|
|
15649
16123
|
},] }
|
|
15650
16124
|
];
|
|
@@ -15656,14 +16130,14 @@
|
|
|
15656
16130
|
{ type: TransactionEventService }
|
|
15657
16131
|
]; };
|
|
15658
16132
|
TransactionComponent.propDecorators = {
|
|
16133
|
+
sidePanelComponents: [{ type: i0.ViewChildren, args: [TransactionLineSidePanelComponent,] }],
|
|
15659
16134
|
relation: [{ type: i0.Input }],
|
|
15660
16135
|
transaction: [{ type: i0.Input }],
|
|
15661
16136
|
transactionId: [{ type: i0.Input }],
|
|
15662
16137
|
showHeader: [{ type: i0.Input }],
|
|
15663
16138
|
showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
|
|
15664
16139
|
showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
|
|
15665
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction",] }]
|
|
15666
|
-
sidePanelComponents: [{ type: i0.ViewChildren, args: [TransactionLineSidePanelComponent,] }]
|
|
16140
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction",] }]
|
|
15667
16141
|
};
|
|
15668
16142
|
|
|
15669
16143
|
var TransactionHeaderComponent = /** @class */ (function () {
|
|
@@ -16061,7 +16535,7 @@
|
|
|
16061
16535
|
TransactionHeaderPaymentComponent.decorators = [
|
|
16062
16536
|
{ type: i0.Component, args: [{
|
|
16063
16537
|
selector: "co-transaction-header-payment",
|
|
16064
|
-
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"'BALANCE' | localize\"></div>\n <div class=\"header-block-balance\" *ngIf=\"transactionInfo.transactionKind !== transactionKind.PurchaseOrder\" (click)=\"openPayment($event)\">\n <co-icon class=\"payment-icon\" [iconData]=\"iconService.getIcon(icons.CreditCardSolid)\"></co-icon>\n <div class=\"payment-payed-wrapper\">\n <span class=\"payment-to-pay\" [textContent]=\"toPay | priceDisplay\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"paid | priceDisplay\"></span>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <co-transaction-header-downpayment-percentage class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-percentage>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-downpayment-amount class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-amount>\n </ng-template>\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n </co-dialog>\n <co-dialog class=\"payment-dialog\" [customCssClass]=\"'co-transaction-small-toolbar'\" *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n (closeClick)=\"showPaymentDialog = false\"\n >\n <co-payment\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"transactionTotal.netAmount\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
|
|
16538
|
+
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [hasDetails]=\"true\"\n (headerClick)=\"showDialog = true\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"'BALANCE' | localize\"></div>\n <div class=\"header-block-balance\" *ngIf=\"transactionInfo.transactionKind !== transactionKind.PurchaseOrder\" (click)=\"openPayment($event)\">\n <co-icon class=\"payment-icon\" [iconData]=\"iconService.getIcon(icons.CreditCardSolid)\"></co-icon>\n <div class=\"payment-payed-wrapper\">\n <span class=\"payment-to-pay\" [textContent]=\"(toPay | priceDisplay) || 0\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-paid\" [class.success]=\"paid >= toPay\" [textContent]=\"(paid | priceDisplay) || 0\"></span>\n </div>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <co-transaction-header-downpayment-percentage class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-percentage>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <co-transaction-header-downpayment-amount class=\"transaction-header-downpayment\"\n [transactionInfo]=\"transactionInfo\"\n [defaultEditMode]=\"false\"\n [showLabel]=\"false\"\n ></co-transaction-header-downpayment-amount>\n </ng-template>\n <co-dialog class=\"transaction-header-payment-dialog\" [headerTemplate]=\"headerTemplate\" *ngIf=\"showDialog\" (closeClick)=\"showDialog = false\">\n <ng-template #headerTemplate>\n <div class=\"co-transaction-dialog-header-title\" [textContent]=\"'PAYMENT_INFORMATION' | localize\"></div>\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n </ng-template>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n <div class=\"payment-dialog-section\">\n <span [textContent]=\"'NOG_NIET_GEIMPLEMENTEERD'\"></span>\n </div>\n </co-dialog>\n <co-dialog class=\"payment-dialog\" [customCssClass]=\"'co-transaction-small-toolbar'\" *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n (closeClick)=\"showPaymentDialog = false\"\n >\n <co-payment\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"transactionTotal.netAmount\"\n [currencyId]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
|
|
16065
16539
|
encapsulation: i0.ViewEncapsulation.None
|
|
16066
16540
|
},] }
|
|
16067
16541
|
];
|
|
@@ -16128,9 +16602,11 @@
|
|
|
16128
16602
|
];
|
|
16129
16603
|
|
|
16130
16604
|
var TransactionLineStatusbarComponent = /** @class */ (function () {
|
|
16131
|
-
function TransactionLineStatusbarComponent(_dictionary) {
|
|
16605
|
+
function TransactionLineStatusbarComponent(_dictionary, _transactionEventService) {
|
|
16132
16606
|
this._dictionary = _dictionary;
|
|
16607
|
+
this._transactionEventService = _transactionEventService;
|
|
16133
16608
|
this.showClass = true;
|
|
16609
|
+
this._subscriptions = [];
|
|
16134
16610
|
}
|
|
16135
16611
|
Object.defineProperty(TransactionLineStatusbarComponent.prototype, "transaction", {
|
|
16136
16612
|
get: function () {
|
|
@@ -16144,7 +16620,17 @@
|
|
|
16144
16620
|
configurable: true
|
|
16145
16621
|
});
|
|
16146
16622
|
TransactionLineStatusbarComponent.prototype.ngOnInit = function () {
|
|
16623
|
+
var _this = this;
|
|
16147
16624
|
this.setStatusbarData();
|
|
16625
|
+
this._subscriptions.push(this._transactionEventService.transactionLineChanged.subscribe(function (line) {
|
|
16626
|
+
if (line.lineNr === _this.transaction.lineNr) {
|
|
16627
|
+
_this.transaction.quantityAllocatedFromStock = line.quantityAllocated;
|
|
16628
|
+
_this.setStatusbarData();
|
|
16629
|
+
}
|
|
16630
|
+
}));
|
|
16631
|
+
};
|
|
16632
|
+
TransactionLineStatusbarComponent.prototype.ngOnDestroy = function () {
|
|
16633
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
16148
16634
|
};
|
|
16149
16635
|
TransactionLineStatusbarComponent.prototype.setStatusbarData = function () {
|
|
16150
16636
|
if (this.transactionKind === transactionKind_enum.TransactionKind.PurchaseOrder) {
|
|
@@ -16153,6 +16639,7 @@
|
|
|
16153
16639
|
else {
|
|
16154
16640
|
this.setStatusbardataForSalesOrder();
|
|
16155
16641
|
}
|
|
16642
|
+
this.setFocusedStatusBlock();
|
|
16156
16643
|
};
|
|
16157
16644
|
TransactionLineStatusbarComponent.prototype.setStatusbardataForSalesOrder = function () {
|
|
16158
16645
|
var transaction = this._transaction;
|
|
@@ -16188,21 +16675,39 @@
|
|
|
16188
16675
|
}
|
|
16189
16676
|
return Math.floor((amount / totalAmount) * 100);
|
|
16190
16677
|
};
|
|
16678
|
+
TransactionLineStatusbarComponent.prototype.setFocusedStatusBlock = function () {
|
|
16679
|
+
switch (this.transactionTypeCategory) {
|
|
16680
|
+
case TransactionTypeCategory.SalesOrderPurchase:
|
|
16681
|
+
this.focusedStatusIndex = 0;
|
|
16682
|
+
break;
|
|
16683
|
+
case TransactionTypeCategory.SalesOrderAllocation:
|
|
16684
|
+
this.focusedStatusIndex = 1;
|
|
16685
|
+
break;
|
|
16686
|
+
case TransactionTypeCategory.SalesOrderDeliveryNote:
|
|
16687
|
+
this.focusedStatusIndex = 7;
|
|
16688
|
+
break;
|
|
16689
|
+
case TransactionTypeCategory.SalesOrderInvoice:
|
|
16690
|
+
this.focusedStatusIndex = 8;
|
|
16691
|
+
break;
|
|
16692
|
+
}
|
|
16693
|
+
};
|
|
16191
16694
|
return TransactionLineStatusbarComponent;
|
|
16192
16695
|
}());
|
|
16193
16696
|
TransactionLineStatusbarComponent.decorators = [
|
|
16194
16697
|
{ type: i0.Component, args: [{
|
|
16195
16698
|
selector: "co-transaction-line-statusbar",
|
|
16196
|
-
template: "\n <co-statusbar [statusbarData]=\"statusbarData\"></co-statusbar>\n ",
|
|
16699
|
+
template: "\n <co-statusbar [statusbarData]=\"statusbarData\" [focusedStatusIndex]=\"focusedStatusIndex\"></co-statusbar>\n ",
|
|
16197
16700
|
encapsulation: i0.ViewEncapsulation.None
|
|
16198
16701
|
},] }
|
|
16199
16702
|
];
|
|
16200
16703
|
TransactionLineStatusbarComponent.ctorParameters = function () { return [
|
|
16201
|
-
{ type: DictionaryService }
|
|
16704
|
+
{ type: DictionaryService },
|
|
16705
|
+
{ type: TransactionEventService }
|
|
16202
16706
|
]; };
|
|
16203
16707
|
TransactionLineStatusbarComponent.propDecorators = {
|
|
16204
16708
|
transaction: [{ type: i0.Input }],
|
|
16205
16709
|
transactionKind: [{ type: i0.Input }],
|
|
16710
|
+
transactionTypeCategory: [{ type: i0.Input }],
|
|
16206
16711
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-statusbar",] }]
|
|
16207
16712
|
};
|
|
16208
16713
|
|
|
@@ -17744,13 +18249,16 @@
|
|
|
17744
18249
|
TransactionReceivingGoodsHistoryComponent.prototype.showClass = function () {
|
|
17745
18250
|
return true;
|
|
17746
18251
|
};
|
|
18252
|
+
TransactionReceivingGoodsHistoryComponent.prototype.ngAfterViewInit = function () {
|
|
18253
|
+
this.reloadReceivingGoodsHistory.next();
|
|
18254
|
+
};
|
|
17747
18255
|
TransactionReceivingGoodsHistoryComponent.prototype.handleDeleteSelectedRow = function (row) {
|
|
17748
18256
|
var _this = this;
|
|
17749
18257
|
if (row && row.type !== 'correction') {
|
|
17750
18258
|
var request = new receiveGoodsForPurchaseOrderCorrectionRequest_bo.ReceiveGoodsForPurchaseOrderCorrectionRequest();
|
|
17751
18259
|
var correctionDetails = new purchaseOrderLineReceiptCorrectionDetails_bo.PurchaseOrderLineReceiptCorrectionDetails();
|
|
17752
18260
|
request.allowedToRemovePickedAllocations = false;
|
|
17753
|
-
request.transId = this.
|
|
18261
|
+
request.transId = this.transactionInfo.id;
|
|
17754
18262
|
request.purchaseOrderLineReceiptCorrectionDetailsDTOS = [correctionDetails];
|
|
17755
18263
|
correctionDetails.lineNr = this.transactionLine.lineNr;
|
|
17756
18264
|
correctionDetails.quantityToCorrect = row.quantity;
|
|
@@ -17775,8 +18283,8 @@
|
|
|
17775
18283
|
]; };
|
|
17776
18284
|
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
17777
18285
|
goodsReceiptHistory: [{ type: i0.Input }],
|
|
18286
|
+
transactionInfo: [{ type: i0.Input }],
|
|
17778
18287
|
transactionLine: [{ type: i0.Input }],
|
|
17779
|
-
transactionId: [{ type: i0.Input }],
|
|
17780
18288
|
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
17781
18289
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
|
|
17782
18290
|
};
|
|
@@ -17807,250 +18315,41 @@
|
|
|
17807
18315
|
},] }
|
|
17808
18316
|
];
|
|
17809
18317
|
|
|
17810
|
-
var
|
|
17811
|
-
function
|
|
17812
|
-
this.
|
|
17813
|
-
this.
|
|
18318
|
+
var TransactionButtonBarComponent = /** @class */ (function () {
|
|
18319
|
+
function TransactionButtonBarComponent(_mappingService) {
|
|
18320
|
+
this._mappingService = _mappingService;
|
|
18321
|
+
this.buttonClicked = new i0.EventEmitter();
|
|
18322
|
+
this.buttons = [];
|
|
18323
|
+
this._transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
17814
18324
|
}
|
|
17815
|
-
|
|
17816
|
-
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
18325
|
+
Object.defineProperty(TransactionButtonBarComponent.prototype, "transactionType", {
|
|
18326
|
+
get: function () {
|
|
18327
|
+
return this._transactionType;
|
|
18328
|
+
},
|
|
18329
|
+
set: function (value) {
|
|
18330
|
+
this._transactionType = value;
|
|
18331
|
+
this.buttons = this._mappingService.getButtonBar(this._transactionType);
|
|
18332
|
+
if (this.buttons && this.buttons.length > 0 && !this.selectedCategory) {
|
|
18333
|
+
this.selectCategory(0);
|
|
18334
|
+
}
|
|
18335
|
+
},
|
|
18336
|
+
enumerable: false,
|
|
18337
|
+
configurable: true
|
|
18338
|
+
});
|
|
18339
|
+
TransactionButtonBarComponent.prototype.showClass = function () {
|
|
18340
|
+
return true;
|
|
17825
18341
|
};
|
|
17826
|
-
|
|
18342
|
+
TransactionButtonBarComponent.prototype.selectCategory = function (idx) {
|
|
18343
|
+
this.selectedCategory = this.buttons[idx].category;
|
|
18344
|
+
this.buttonClicked.next(this.buttons[idx]);
|
|
18345
|
+
};
|
|
18346
|
+
return TransactionButtonBarComponent;
|
|
17827
18347
|
}());
|
|
17828
|
-
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
];
|
|
17834
|
-
ArticleService.ctorParameters = function () { return [
|
|
17835
|
-
{ type: ArticleConnectorService },
|
|
17836
|
-
{ type: SelectMultipleCacheService }
|
|
17837
|
-
]; };
|
|
17838
|
-
|
|
17839
|
-
var TransactionReceivingGoodsDetailsComponent = /** @class */ (function () {
|
|
17840
|
-
function TransactionReceivingGoodsDetailsComponent(iconCacheService, _formMaster, _service, _articleService, _dialogService, _receiveGoodsService) {
|
|
17841
|
-
this.iconCacheService = iconCacheService;
|
|
17842
|
-
this._formMaster = _formMaster;
|
|
17843
|
-
this._service = _service;
|
|
17844
|
-
this._articleService = _articleService;
|
|
17845
|
-
this._dialogService = _dialogService;
|
|
17846
|
-
this._receiveGoodsService = _receiveGoodsService;
|
|
17847
|
-
this.icons = Icon;
|
|
17848
|
-
this.reloadReceivingGoodsHistory = new i0.EventEmitter();
|
|
17849
|
-
this.receiptDetails = new purchaseOrderLineReceiptDetails_bo.PurchaseOrderLineReceiptDetails();
|
|
17850
|
-
this.request = new receiveGoodsForPurchaseOrderRequest_bo.ReceiveGoodsForPurchaseOrderRequest();
|
|
17851
|
-
this.saveButtonDisabled = false;
|
|
17852
|
-
this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
17853
|
-
this.readonly = false;
|
|
17854
|
-
this._subscriptions = [];
|
|
17855
|
-
this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
17856
|
-
var timeElapsed = Date.now();
|
|
17857
|
-
this.request.receivedDate = new Date(timeElapsed);
|
|
17858
|
-
}
|
|
17859
|
-
Object.defineProperty(TransactionReceivingGoodsDetailsComponent.prototype, "amountLeftToReceive", {
|
|
17860
|
-
get: function () {
|
|
17861
|
-
return this._amountLeftToReceive;
|
|
17862
|
-
},
|
|
17863
|
-
set: function (value) {
|
|
17864
|
-
this._amountLeftToReceive = value;
|
|
17865
|
-
this.receiptDetails.quantityToReceive = value;
|
|
17866
|
-
},
|
|
17867
|
-
enumerable: false,
|
|
17868
|
-
configurable: true
|
|
17869
|
-
});
|
|
17870
|
-
Object.defineProperty(TransactionReceivingGoodsDetailsComponent.prototype, "transactionLine", {
|
|
17871
|
-
get: function () {
|
|
17872
|
-
return this._transactionLine;
|
|
17873
|
-
},
|
|
17874
|
-
set: function (value) {
|
|
17875
|
-
this._transactionLine = value;
|
|
17876
|
-
this.readonly = this._transactionLine.hasInvoices;
|
|
17877
|
-
this.receiptDetails.warehouseNr = value.warehouseNumber;
|
|
17878
|
-
this.receiptDetails.lineNr = value.lineNr;
|
|
17879
|
-
},
|
|
17880
|
-
enumerable: false,
|
|
17881
|
-
configurable: true
|
|
17882
|
-
});
|
|
17883
|
-
TransactionReceivingGoodsDetailsComponent.prototype.showClass = function () {
|
|
17884
|
-
return true;
|
|
17885
|
-
};
|
|
17886
|
-
TransactionReceivingGoodsDetailsComponent.prototype.ngOnInit = function () {
|
|
17887
|
-
var _this = this;
|
|
17888
|
-
this._subscriptions.push(this._receiveGoodsService.returnArticleSelected.subscribe(function (availableStock) {
|
|
17889
|
-
_this._handleReturnStock(availableStock);
|
|
17890
|
-
}));
|
|
17891
|
-
};
|
|
17892
|
-
TransactionReceivingGoodsDetailsComponent.prototype.ngOnDestroy = function () {
|
|
17893
|
-
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
17894
|
-
};
|
|
17895
|
-
TransactionReceivingGoodsDetailsComponent.prototype.submit = function () {
|
|
17896
|
-
return this._formMaster.submitSlaves();
|
|
17897
|
-
};
|
|
17898
|
-
TransactionReceivingGoodsDetailsComponent.prototype.locationRequired = function () {
|
|
17899
|
-
return this._transactionLine.isLocationRequired ||
|
|
17900
|
-
this._transactionLine.isBatchNrRequired ||
|
|
17901
|
-
this._transactionLine.isSerialNrRequired;
|
|
17902
|
-
};
|
|
17903
|
-
TransactionReceivingGoodsDetailsComponent.prototype.handleSaveDetailsEdit = function () {
|
|
17904
|
-
var _this = this;
|
|
17905
|
-
var valid = this.submit();
|
|
17906
|
-
if (valid) {
|
|
17907
|
-
this.saveButtonDisabled = true;
|
|
17908
|
-
var request = this.request;
|
|
17909
|
-
this.receiptDetails.quantityToReceive = this.returnStockMode() ?
|
|
17910
|
-
-this.receiptDetails.quantityToReceive : this.receiptDetails.quantityToReceive;
|
|
17911
|
-
request.transId = this.transactionId;
|
|
17912
|
-
this._service.receiveGoodsForPurchaseOrder(request).then(function () {
|
|
17913
|
-
if (_this.returnStockMode()) {
|
|
17914
|
-
_this._receiveGoodsService.reloadAvailableStockData.next();
|
|
17915
|
-
_this.receiptDetails.locationNr = undefined;
|
|
17916
|
-
}
|
|
17917
|
-
_this.reloadReceivingGoodsHistory.next();
|
|
17918
|
-
}).catch(function (e) {
|
|
17919
|
-
_this.saveButtonDisabled = false;
|
|
17920
|
-
});
|
|
17921
|
-
this.saveButtonDisabled = false;
|
|
17922
|
-
}
|
|
17923
|
-
};
|
|
17924
|
-
TransactionReceivingGoodsDetailsComponent.prototype.handleCancelDetailsEdit = function () {
|
|
17925
|
-
// Velden resetten
|
|
17926
|
-
};
|
|
17927
|
-
TransactionReceivingGoodsDetailsComponent.prototype.handleDropDownSelected = function (warehouseNr) {
|
|
17928
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
17929
|
-
var _a;
|
|
17930
|
-
return __generator(this, function (_b) {
|
|
17931
|
-
switch (_b.label) {
|
|
17932
|
-
case 0:
|
|
17933
|
-
if (!!this.locations) return [3 /*break*/, 2];
|
|
17934
|
-
_a = this;
|
|
17935
|
-
return [4 /*yield*/, this._articleService.getWarehouseLocations(warehouseNr)];
|
|
17936
|
-
case 1:
|
|
17937
|
-
_a.locations = _b.sent();
|
|
17938
|
-
_b.label = 2;
|
|
17939
|
-
case 2: return [2 /*return*/];
|
|
17940
|
-
}
|
|
17941
|
-
});
|
|
17942
|
-
});
|
|
17943
|
-
};
|
|
17944
|
-
TransactionReceivingGoodsDetailsComponent.prototype.openWarehouseLocationDialog = function () {
|
|
17945
|
-
var _this = this;
|
|
17946
|
-
if (!this.returnStockMode()) {
|
|
17947
|
-
this._dialogService.showWarehouseLocation(this.receiptDetails.warehouseNr, true, true, true, this.transactionLine)
|
|
17948
|
-
.then(function () { return _this.receiptDetails.locationNr = _this.transactionLine.locationNr; });
|
|
17949
|
-
}
|
|
17950
|
-
};
|
|
17951
|
-
TransactionReceivingGoodsDetailsComponent.prototype.returnStockMode = function () {
|
|
17952
|
-
return this.transactionLine.amount < 0;
|
|
17953
|
-
};
|
|
17954
|
-
TransactionReceivingGoodsDetailsComponent.prototype._handleReturnStock = function (availableStock) {
|
|
17955
|
-
var maxToReturn = this.amountLeftToReceive < 0 ? Math.abs(this.amountLeftToReceive) : this.amountLeftToReceive;
|
|
17956
|
-
this.returnMaxToReceive = maxToReturn > availableStock.availableQuantity ? availableStock.availableQuantity : maxToReturn;
|
|
17957
|
-
this.receiptDetails.quantityToReceive = this.returnMaxToReceive;
|
|
17958
|
-
this.receiptDetails.warehouseNr = availableStock.warehouseNumber;
|
|
17959
|
-
this.receiptDetails.locationNr = availableStock.locationNumber;
|
|
17960
|
-
this.receiptDetails.serialNr = availableStock.serialNumber;
|
|
17961
|
-
this.receiptDetails.batchNr = availableStock.batchNumber;
|
|
17962
|
-
this.receiptDetails.lineNr = this.transactionLine.lineNr;
|
|
17963
|
-
};
|
|
17964
|
-
return TransactionReceivingGoodsDetailsComponent;
|
|
17965
|
-
}());
|
|
17966
|
-
TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
17967
|
-
{ type: i0.Component, args: [{
|
|
17968
|
-
selector: 'co-transaction-receiving-goods-details',
|
|
17969
|
-
template: "\n <div class=\"receipt-details-wrapper\">\n <co-form>\n <div class=\"details-header\" [textContent]=\"returnStockMode() ? ('RETURN_DETAILS' | localize | uppercase) : ('RECEIPT_DETAILS' | localize | uppercase)\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"returnStockMode() ? returnMaxToReceive : amountLeftToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly || returnStockMode()\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined || returnStockMode()\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper\" [class.clickable]=\"!returnStockMode()\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!receiptDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"receiptDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"receiptDetails.locationNr ? receiptDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n <co-input-text class=\"details-input\"\n *ngIf=\"!returnStockMode()\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-date class=\"details-input\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n <!-- <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.refLineNr\"-->\n <!-- [placeholder]=\"'REFERENCE_ID' | localize\"></co-input-text>-->\n </div>\n </div>\n </co-form>\n\n <div class=\"receive-button-wrapper\">\n <div class=\"receive-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\" [class.disabled]=\"saveButtonDisabled || amountLeftToReceive === 0\">\n <span class=\"receive-text\" [textContent]=\"returnStockMode() ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>\n </div>\n </div>\n </div>\n ",
|
|
17970
|
-
providers: [
|
|
17971
|
-
corecomponents_v12.FormMasterService
|
|
17972
|
-
],
|
|
17973
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
17974
|
-
},] }
|
|
17975
|
-
];
|
|
17976
|
-
TransactionReceivingGoodsDetailsComponent.ctorParameters = function () { return [
|
|
17977
|
-
{ type: IconCacheService },
|
|
17978
|
-
{ type: corecomponents_v12.FormMasterService },
|
|
17979
|
-
{ type: TransactionService },
|
|
17980
|
-
{ type: ArticleService },
|
|
17981
|
-
{ type: DialogService },
|
|
17982
|
-
{ type: TransactionReceiveGoodsService }
|
|
17983
|
-
]; };
|
|
17984
|
-
TransactionReceivingGoodsDetailsComponent.propDecorators = {
|
|
17985
|
-
amountLeftToReceive: [{ type: i0.Input }],
|
|
17986
|
-
transactionId: [{ type: i0.Input }],
|
|
17987
|
-
transactionLine: [{ type: i0.Input }],
|
|
17988
|
-
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
17989
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
|
|
17990
|
-
};
|
|
17991
|
-
|
|
17992
|
-
var TransactionReceivingGoodsDetailsModule = /** @class */ (function () {
|
|
17993
|
-
function TransactionReceivingGoodsDetailsModule() {
|
|
17994
|
-
}
|
|
17995
|
-
return TransactionReceivingGoodsDetailsModule;
|
|
17996
|
-
}());
|
|
17997
|
-
TransactionReceivingGoodsDetailsModule.decorators = [
|
|
17998
|
-
{ type: i0.NgModule, args: [{
|
|
17999
|
-
imports: [
|
|
18000
|
-
common.CommonModule,
|
|
18001
|
-
CoreModule,
|
|
18002
|
-
PipeModule,
|
|
18003
|
-
corecomponents_v12.InputTextModule,
|
|
18004
|
-
corecomponents_v12.FormModule,
|
|
18005
|
-
corecomponents_v12.InputDatePickerModule,
|
|
18006
|
-
corecomponents_v12.ButtonModule,
|
|
18007
|
-
corecomponents_v12.DropDownModule,
|
|
18008
|
-
corecomponents_v12.IconModule,
|
|
18009
|
-
],
|
|
18010
|
-
declarations: [
|
|
18011
|
-
TransactionReceivingGoodsDetailsComponent
|
|
18012
|
-
],
|
|
18013
|
-
exports: [
|
|
18014
|
-
TransactionReceivingGoodsDetailsComponent
|
|
18015
|
-
]
|
|
18016
|
-
},] }
|
|
18017
|
-
];
|
|
18018
|
-
|
|
18019
|
-
var TransactionButtonBarComponent = /** @class */ (function () {
|
|
18020
|
-
function TransactionButtonBarComponent(_mappingService) {
|
|
18021
|
-
this._mappingService = _mappingService;
|
|
18022
|
-
this.buttonClicked = new i0.EventEmitter();
|
|
18023
|
-
this.buttons = [];
|
|
18024
|
-
this._transactionType = transactionKind_enum.TransactionKind.SalesOrder;
|
|
18025
|
-
}
|
|
18026
|
-
Object.defineProperty(TransactionButtonBarComponent.prototype, "transactionType", {
|
|
18027
|
-
get: function () {
|
|
18028
|
-
return this._transactionType;
|
|
18029
|
-
},
|
|
18030
|
-
set: function (value) {
|
|
18031
|
-
this._transactionType = value;
|
|
18032
|
-
this.buttons = this._mappingService.getButtonBar(this._transactionType);
|
|
18033
|
-
if (this.buttons && this.buttons.length > 0 && !this.selectedCategory) {
|
|
18034
|
-
this.selectCategory(0);
|
|
18035
|
-
}
|
|
18036
|
-
},
|
|
18037
|
-
enumerable: false,
|
|
18038
|
-
configurable: true
|
|
18039
|
-
});
|
|
18040
|
-
TransactionButtonBarComponent.prototype.showClass = function () {
|
|
18041
|
-
return true;
|
|
18042
|
-
};
|
|
18043
|
-
TransactionButtonBarComponent.prototype.selectCategory = function (idx) {
|
|
18044
|
-
this.selectedCategory = this.buttons[idx].category;
|
|
18045
|
-
this.buttonClicked.next(this.buttons[idx]);
|
|
18046
|
-
};
|
|
18047
|
-
return TransactionButtonBarComponent;
|
|
18048
|
-
}());
|
|
18049
|
-
TransactionButtonBarComponent.decorators = [
|
|
18050
|
-
{ type: i0.Component, args: [{
|
|
18051
|
-
selector: "co-transaction-button-bar",
|
|
18052
|
-
template: "\n <div class=\"button-bar-wrapper\">\n <co-transaction-button-bar-button *ngFor=\"let button of buttons; let index = index\"\n [transactionInfoResponse]=\"transactionInfoResponse\"\n [component]=\"button.component\"\n [class.selected]=\"selectedCategory === button.category\"\n [title]=\"button.title\"\n [iconName]=\"button.icon\"\n (click)=\"selectCategory(index)\"\n ></co-transaction-button-bar-button>\n </div>\n ",
|
|
18053
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
18348
|
+
TransactionButtonBarComponent.decorators = [
|
|
18349
|
+
{ type: i0.Component, args: [{
|
|
18350
|
+
selector: "co-transaction-button-bar",
|
|
18351
|
+
template: "\n <div class=\"button-bar-wrapper\">\n <co-transaction-button-bar-button *ngFor=\"let button of buttons; let index = index\"\n [transactionInfoResponse]=\"transactionInfoResponse\"\n [component]=\"button.component\"\n [class.selected]=\"selectedCategory === button.category\"\n [title]=\"button.title\"\n [iconName]=\"button.icon\"\n (click)=\"selectCategory(index)\"\n ></co-transaction-button-bar-button>\n </div>\n ",
|
|
18352
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18054
18353
|
},] }
|
|
18055
18354
|
];
|
|
18056
18355
|
TransactionButtonBarComponent.ctorParameters = function () { return [
|
|
@@ -18427,79 +18726,564 @@
|
|
|
18427
18726
|
encapsulation: i0.ViewEncapsulation.None
|
|
18428
18727
|
},] }
|
|
18429
18728
|
];
|
|
18430
|
-
DefaultOkCancelButtonsComponent.propDecorators = {
|
|
18431
|
-
okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }],
|
|
18432
|
-
okDisabled: [{ type: i0.Input }],
|
|
18433
|
-
hideCancel: [{ type: i0.Input }],
|
|
18434
|
-
hideOk: [{ type: i0.Input }],
|
|
18435
|
-
okLabel: [{ type: i0.Input }],
|
|
18436
|
-
okClick: [{ type: i0.Output }],
|
|
18437
|
-
cancelClick: [{ type: i0.Output }],
|
|
18438
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-default-ok-cancel-buttons',] }]
|
|
18729
|
+
DefaultOkCancelButtonsComponent.propDecorators = {
|
|
18730
|
+
okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }],
|
|
18731
|
+
okDisabled: [{ type: i0.Input }],
|
|
18732
|
+
hideCancel: [{ type: i0.Input }],
|
|
18733
|
+
hideOk: [{ type: i0.Input }],
|
|
18734
|
+
okLabel: [{ type: i0.Input }],
|
|
18735
|
+
okClick: [{ type: i0.Output }],
|
|
18736
|
+
cancelClick: [{ type: i0.Output }],
|
|
18737
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-default-ok-cancel-buttons',] }]
|
|
18738
|
+
};
|
|
18739
|
+
|
|
18740
|
+
var DefaultOkCancelButtonsModule = /** @class */ (function () {
|
|
18741
|
+
function DefaultOkCancelButtonsModule() {
|
|
18742
|
+
}
|
|
18743
|
+
return DefaultOkCancelButtonsModule;
|
|
18744
|
+
}());
|
|
18745
|
+
DefaultOkCancelButtonsModule.decorators = [
|
|
18746
|
+
{ type: i0.NgModule, args: [{
|
|
18747
|
+
imports: [
|
|
18748
|
+
common.CommonModule,
|
|
18749
|
+
corecomponents_v12.ButtonModule
|
|
18750
|
+
],
|
|
18751
|
+
declarations: [
|
|
18752
|
+
DefaultOkCancelButtonsComponent
|
|
18753
|
+
],
|
|
18754
|
+
exports: [
|
|
18755
|
+
DefaultOkCancelButtonsComponent
|
|
18756
|
+
]
|
|
18757
|
+
},] }
|
|
18758
|
+
];
|
|
18759
|
+
|
|
18760
|
+
var TransactionConfirmationDetailsModule = /** @class */ (function () {
|
|
18761
|
+
function TransactionConfirmationDetailsModule() {
|
|
18762
|
+
}
|
|
18763
|
+
return TransactionConfirmationDetailsModule;
|
|
18764
|
+
}());
|
|
18765
|
+
TransactionConfirmationDetailsModule.decorators = [
|
|
18766
|
+
{ type: i0.NgModule, args: [{
|
|
18767
|
+
imports: [
|
|
18768
|
+
common.CommonModule,
|
|
18769
|
+
CoreModule,
|
|
18770
|
+
PipeModule,
|
|
18771
|
+
corecomponents_v12.InputTextModule,
|
|
18772
|
+
corecomponents_v12.InputDateRangePickerModule,
|
|
18773
|
+
corecomponents_v12.IconModule,
|
|
18774
|
+
corecomponents_v12.FormModule,
|
|
18775
|
+
DefaultOkCancelButtonsModule,
|
|
18776
|
+
corecomponents_v12.InputDatePickerModule,
|
|
18777
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
18778
|
+
],
|
|
18779
|
+
declarations: [
|
|
18780
|
+
TransactionConfirmationDetailsComponent,
|
|
18781
|
+
TransactionConfirmationDetailsComponent
|
|
18782
|
+
],
|
|
18783
|
+
exports: [
|
|
18784
|
+
TransactionConfirmationDetailsComponent,
|
|
18785
|
+
TransactionConfirmationDetailsComponent
|
|
18786
|
+
]
|
|
18787
|
+
},] }
|
|
18788
|
+
];
|
|
18789
|
+
|
|
18790
|
+
var TransactionLineSidePanelPurchaseComponent = /** @class */ (function () {
|
|
18791
|
+
function TransactionLineSidePanelPurchaseComponent(_service, _transactionEventService) {
|
|
18792
|
+
this._service = _service;
|
|
18793
|
+
this._transactionEventService = _transactionEventService;
|
|
18794
|
+
this.categories = TransactionTypeCategory;
|
|
18795
|
+
this.quantityToReceiveChange = new i0.EventEmitter();
|
|
18796
|
+
this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
|
|
18797
|
+
this.selectedLineDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
|
|
18798
|
+
this.isDocBatchSaved = false;
|
|
18799
|
+
this._transactionInfo = new transactionInfo_bo.TransactionInfo();
|
|
18800
|
+
}
|
|
18801
|
+
Object.defineProperty(TransactionLineSidePanelPurchaseComponent.prototype, "transactionInfo", {
|
|
18802
|
+
get: function () {
|
|
18803
|
+
return this._transactionInfo;
|
|
18804
|
+
},
|
|
18805
|
+
set: function (value) {
|
|
18806
|
+
this._transactionInfo = value;
|
|
18807
|
+
},
|
|
18808
|
+
enumerable: false,
|
|
18809
|
+
configurable: true
|
|
18810
|
+
});
|
|
18811
|
+
TransactionLineSidePanelPurchaseComponent.prototype.showClass = function () {
|
|
18812
|
+
return true;
|
|
18813
|
+
};
|
|
18814
|
+
TransactionLineSidePanelPurchaseComponent.prototype.getGoodsReceiptStatusWithHistory = function () {
|
|
18815
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18816
|
+
var _this = this;
|
|
18817
|
+
return __generator(this, function (_a) {
|
|
18818
|
+
this._service.getGoodsReceiptStatusWithHistory(this._transactionInfo.id, this.transactionLine.lineNr)
|
|
18819
|
+
.then(function (result) {
|
|
18820
|
+
_this.goodsReceiptStatus = result;
|
|
18821
|
+
var tempViewModel = Object.assign(new ExtendedTransactionLineViewModel(), _this.transactionLine);
|
|
18822
|
+
tempViewModel.quantityReceived = result.quantityReceived;
|
|
18823
|
+
tempViewModel.quantityToReceive = result.quantityToReceive;
|
|
18824
|
+
_this._transactionEventService.transactionLineChanged.next(tempViewModel);
|
|
18825
|
+
_this.quantityToReceiveChange.next(result.quantityToReceive);
|
|
18826
|
+
});
|
|
18827
|
+
return [2 /*return*/];
|
|
18828
|
+
});
|
|
18829
|
+
});
|
|
18830
|
+
};
|
|
18831
|
+
TransactionLineSidePanelPurchaseComponent.prototype.fillInputOnClick = function (data) {
|
|
18832
|
+
this.selectedLineDocBatchArray = data;
|
|
18833
|
+
};
|
|
18834
|
+
TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
|
|
18835
|
+
this.isDocBatchSaved = data;
|
|
18836
|
+
};
|
|
18837
|
+
return TransactionLineSidePanelPurchaseComponent;
|
|
18838
|
+
}());
|
|
18839
|
+
TransactionLineSidePanelPurchaseComponent.decorators = [
|
|
18840
|
+
{ type: i0.Component, args: [{
|
|
18841
|
+
selector: "co-transaction-line-side-panel-purchase",
|
|
18842
|
+
template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderOrderConfirmation\">\n <co-transaction-confirmation-details\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionLines]=\"transactionLine\"\n [newDocBatchArray]=\"selectedLineDocBatchArray\"\n (docBatchSaved)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-details>\n <co-transaction-confirmation-history\n [transactionLines]=\"transactionLine\"\n [transactionInfoNr]=\"transactionInfo.transactionNr\"\n [transactionId]=\"transactionInfo.id\"\n (lineSelected)=\"fillInputOnClick($event)\"\n [isDocBatchSaved]=\"isDocBatchSaved\"\n (docBatchApplied)=\"docBatchSaved($event)\"\n ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-side-panel-edit-request-details\n [category]=\"categories.PurchaseOrderReceivedGoods\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-side-panel-edit-request-details>\n <co-transaction-receiving-goods-history\n *ngIf=\"transactionLine.amount >= 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\n <co-transaction-available-stock-grid\n *ngIf=\"transactionLine.amount < 0\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-available-stock-grid>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
|
|
18843
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18844
|
+
},] }
|
|
18845
|
+
];
|
|
18846
|
+
TransactionLineSidePanelPurchaseComponent.ctorParameters = function () { return [
|
|
18847
|
+
{ type: TransactionService },
|
|
18848
|
+
{ type: TransactionEventService }
|
|
18849
|
+
]; };
|
|
18850
|
+
TransactionLineSidePanelPurchaseComponent.propDecorators = {
|
|
18851
|
+
transactionLine: [{ type: i0.Input }],
|
|
18852
|
+
transactionInfo: [{ type: i0.Input }],
|
|
18853
|
+
category: [{ type: i0.Input }],
|
|
18854
|
+
quantityToReceiveChange: [{ type: i0.Output }],
|
|
18855
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel-purchase",] }]
|
|
18856
|
+
};
|
|
18857
|
+
|
|
18858
|
+
var TransactionAvailableStockGridComponent = /** @class */ (function () {
|
|
18859
|
+
function TransactionAvailableStockGridComponent(iconsService, _transactionService, _transactionReceiveGoodsService) {
|
|
18860
|
+
this.iconsService = iconsService;
|
|
18861
|
+
this._transactionService = _transactionService;
|
|
18862
|
+
this._transactionReceiveGoodsService = _transactionReceiveGoodsService;
|
|
18863
|
+
this.icons = Icon;
|
|
18864
|
+
this._subscriptions = [];
|
|
18865
|
+
}
|
|
18866
|
+
TransactionAvailableStockGridComponent.prototype.showClass = function () {
|
|
18867
|
+
return true;
|
|
18868
|
+
};
|
|
18869
|
+
TransactionAvailableStockGridComponent.prototype.ngOnInit = function () {
|
|
18870
|
+
var _this = this;
|
|
18871
|
+
this._subscriptions.push(this._transactionReceiveGoodsService.reloadAvailableStockData.subscribe(function () { return _this._getAvailableStock(); }));
|
|
18872
|
+
this._getAvailableStock();
|
|
18873
|
+
};
|
|
18874
|
+
TransactionAvailableStockGridComponent.prototype.ngOnDestroy = function () {
|
|
18875
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
18876
|
+
};
|
|
18877
|
+
TransactionAvailableStockGridComponent.prototype.handleSelectRow = function (availableStock) {
|
|
18878
|
+
this.selectedStock = availableStock;
|
|
18879
|
+
this._transactionReceiveGoodsService.returnArticleSelected.next(availableStock);
|
|
18880
|
+
};
|
|
18881
|
+
TransactionAvailableStockGridComponent.prototype.handleDeleteClick = function () {
|
|
18882
|
+
};
|
|
18883
|
+
TransactionAvailableStockGridComponent.prototype._getAvailableStock = function () {
|
|
18884
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18885
|
+
var _a;
|
|
18886
|
+
return __generator(this, function (_b) {
|
|
18887
|
+
switch (_b.label) {
|
|
18888
|
+
case 0:
|
|
18889
|
+
_a = this;
|
|
18890
|
+
return [4 /*yield*/, this._transactionService.getAvailableStockGroupedByWLBSByTransIdLineNr(this.transactionInfo.id, this.transactionLine.lineNr)];
|
|
18891
|
+
case 1:
|
|
18892
|
+
_a.collection = _b.sent();
|
|
18893
|
+
return [2 /*return*/];
|
|
18894
|
+
}
|
|
18895
|
+
});
|
|
18896
|
+
});
|
|
18897
|
+
};
|
|
18898
|
+
return TransactionAvailableStockGridComponent;
|
|
18899
|
+
}());
|
|
18900
|
+
TransactionAvailableStockGridComponent.decorators = [
|
|
18901
|
+
{ type: i0.Component, args: [{
|
|
18902
|
+
selector: "co-transaction-available-stock-grid",
|
|
18903
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid [data]=\"collection\" (selectRow)=\"handleSelectRow($event)\">\n <co-simple-grid-column [headerText]=\"'ARTICLE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.articleNumber\"></span>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.warehouseNumber\"></span>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.locationNumber\"></span>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'BATCH' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.batchNumber\"></span>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'SERIAL_NUMBER' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.serialNumber\"></span>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"row.availableQuantity\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
18904
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18905
|
+
},] }
|
|
18906
|
+
];
|
|
18907
|
+
TransactionAvailableStockGridComponent.ctorParameters = function () { return [
|
|
18908
|
+
{ type: IconCacheService },
|
|
18909
|
+
{ type: TransactionService },
|
|
18910
|
+
{ type: TransactionReceiveGoodsService }
|
|
18911
|
+
]; };
|
|
18912
|
+
TransactionAvailableStockGridComponent.propDecorators = {
|
|
18913
|
+
transactionInfo: [{ type: i0.Input }],
|
|
18914
|
+
transactionLine: [{ type: i0.Input }],
|
|
18915
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-available-stock-grid",] }]
|
|
18916
|
+
};
|
|
18917
|
+
|
|
18918
|
+
var TransactionAvailableStockGridModule = /** @class */ (function () {
|
|
18919
|
+
function TransactionAvailableStockGridModule() {
|
|
18920
|
+
}
|
|
18921
|
+
return TransactionAvailableStockGridModule;
|
|
18922
|
+
}());
|
|
18923
|
+
TransactionAvailableStockGridModule.decorators = [
|
|
18924
|
+
{ type: i0.NgModule, args: [{
|
|
18925
|
+
imports: [
|
|
18926
|
+
common.CommonModule,
|
|
18927
|
+
corecomponents_v12.SimpleGridModule,
|
|
18928
|
+
corecomponents_v12.GridToolbarButtonModule,
|
|
18929
|
+
PipeModule
|
|
18930
|
+
],
|
|
18931
|
+
declarations: [
|
|
18932
|
+
TransactionAvailableStockGridComponent
|
|
18933
|
+
],
|
|
18934
|
+
exports: [
|
|
18935
|
+
TransactionAvailableStockGridComponent
|
|
18936
|
+
]
|
|
18937
|
+
},] }
|
|
18938
|
+
];
|
|
18939
|
+
|
|
18940
|
+
var TransactionSidePanelEditRequestDetailsComponent = /** @class */ (function () {
|
|
18941
|
+
function TransactionSidePanelEditRequestDetailsComponent() {
|
|
18942
|
+
this.categories = TransactionTypeCategory;
|
|
18943
|
+
this.reloadReceivingGoodsHistory = new i0.EventEmitter();
|
|
18944
|
+
this.reloadAllocationGoodsHistory = new i0.EventEmitter();
|
|
18945
|
+
}
|
|
18946
|
+
TransactionSidePanelEditRequestDetailsComponent.prototype.showClass = function () {
|
|
18947
|
+
return true;
|
|
18948
|
+
};
|
|
18949
|
+
return TransactionSidePanelEditRequestDetailsComponent;
|
|
18950
|
+
}());
|
|
18951
|
+
TransactionSidePanelEditRequestDetailsComponent.decorators = [
|
|
18952
|
+
{ type: i0.Component, args: [{
|
|
18953
|
+
selector: "co-transaction-side-panel-edit-request-details",
|
|
18954
|
+
template: "\n <div class=\"edit-request-details-wrapper\">\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.SalesOrderAllocation\">\n <co-allocation-request\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToAllocate]=\"amountLeftToAllocate\"\n (reloadAllocationGoodsHistory)=\"reloadAllocationGoodsHistory.next()\"\n ></co-allocation-request>\n </ng-container>\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-receive-goods-request\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"amountLeftToReceive\"\n (reloadReceivingGoodsHistory)=\"reloadReceivingGoodsHistory.next()\"\n ></co-receive-goods-request>\n </ng-container>\n </ng-container>\n </div>\n ",
|
|
18955
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
18956
|
+
},] }
|
|
18957
|
+
];
|
|
18958
|
+
TransactionSidePanelEditRequestDetailsComponent.propDecorators = {
|
|
18959
|
+
category: [{ type: i0.Input }],
|
|
18960
|
+
transactionInfo: [{ type: i0.Input }],
|
|
18961
|
+
transactionLine: [{ type: i0.Input }],
|
|
18962
|
+
amountLeftToReceive: [{ type: i0.Input }],
|
|
18963
|
+
amountLeftToAllocate: [{ type: i0.Input }],
|
|
18964
|
+
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
18965
|
+
reloadAllocationGoodsHistory: [{ type: i0.Output }],
|
|
18966
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-side-panel-edit-request-details",] }]
|
|
18967
|
+
};
|
|
18968
|
+
|
|
18969
|
+
var AllocationRequestComponent = /** @class */ (function () {
|
|
18970
|
+
function AllocationRequestComponent(iconCacheService, _formMaster, _service, _dialogService) {
|
|
18971
|
+
this.iconCacheService = iconCacheService;
|
|
18972
|
+
this._formMaster = _formMaster;
|
|
18973
|
+
this._service = _service;
|
|
18974
|
+
this._dialogService = _dialogService;
|
|
18975
|
+
this.icons = Icon;
|
|
18976
|
+
this.reloadAllocationGoodsHistory = new i0.EventEmitter();
|
|
18977
|
+
this.allocationRequest = new allocateGoodsForSalesOrderRequest.AllocateGoodsForSalesOrderRequest();
|
|
18978
|
+
this.allocationDetails = new salesOrderLineAllocationDetails.SalesOrderLineAllocationDetails();
|
|
18979
|
+
this.readonly = false;
|
|
18980
|
+
this.saveButtonDisabled = false;
|
|
18981
|
+
this._subscriptions = [];
|
|
18982
|
+
this.allocationRequest.salesOrderLineAllocationDetailsDTOS = [this.allocationDetails];
|
|
18983
|
+
}
|
|
18984
|
+
Object.defineProperty(AllocationRequestComponent.prototype, "amountLeftToAllocate", {
|
|
18985
|
+
get: function () {
|
|
18986
|
+
return this._amountLeftToAllocate;
|
|
18987
|
+
},
|
|
18988
|
+
set: function (value) {
|
|
18989
|
+
this._amountLeftToAllocate = value;
|
|
18990
|
+
this.allocationDetails.quantityToAllocate = value;
|
|
18991
|
+
},
|
|
18992
|
+
enumerable: false,
|
|
18993
|
+
configurable: true
|
|
18994
|
+
});
|
|
18995
|
+
Object.defineProperty(AllocationRequestComponent.prototype, "transactionLine", {
|
|
18996
|
+
get: function () {
|
|
18997
|
+
return this._transactionLine;
|
|
18998
|
+
},
|
|
18999
|
+
set: function (value) {
|
|
19000
|
+
this._transactionLine = value;
|
|
19001
|
+
this.readonly = this._transactionLine.hasInvoices;
|
|
19002
|
+
this.allocationDetails.warehouseNr = value.warehouseNumber;
|
|
19003
|
+
this.allocationDetails.lineNr = value.lineNr;
|
|
19004
|
+
},
|
|
19005
|
+
enumerable: false,
|
|
19006
|
+
configurable: true
|
|
19007
|
+
});
|
|
19008
|
+
AllocationRequestComponent.prototype.showClass = function () {
|
|
19009
|
+
return true;
|
|
19010
|
+
};
|
|
19011
|
+
AllocationRequestComponent.prototype.submit = function () {
|
|
19012
|
+
return this._formMaster.submitSlaves();
|
|
19013
|
+
};
|
|
19014
|
+
AllocationRequestComponent.prototype.handleSaveDetailsEdit = function () {
|
|
19015
|
+
var _this = this;
|
|
19016
|
+
var valid = this.submit();
|
|
19017
|
+
if (valid) {
|
|
19018
|
+
this.saveButtonDisabled = true;
|
|
19019
|
+
var request = this.allocationRequest;
|
|
19020
|
+
request.transId = this.transactionInfo.id;
|
|
19021
|
+
this._service.allocateGoodsForSalesOrder(request).then(function (success) {
|
|
19022
|
+
if (success) {
|
|
19023
|
+
_this.allocationDetails.locationNr = undefined;
|
|
19024
|
+
_this.reloadAllocationGoodsHistory.next();
|
|
19025
|
+
}
|
|
19026
|
+
else {
|
|
19027
|
+
_this.saveButtonDisabled = false;
|
|
19028
|
+
}
|
|
19029
|
+
}).catch(function (e) {
|
|
19030
|
+
_this.saveButtonDisabled = false;
|
|
19031
|
+
});
|
|
19032
|
+
}
|
|
19033
|
+
};
|
|
19034
|
+
AllocationRequestComponent.prototype.openWarehouseLocationDialog = function () {
|
|
19035
|
+
var _this = this;
|
|
19036
|
+
if (this.amountLeftToAllocate > 0) {
|
|
19037
|
+
this._dialogService.showWarehouseLocation(this.allocationDetails.warehouseNr, true, true, true, this.transactionLine)
|
|
19038
|
+
.then(function () { return _this.allocationDetails.locationNr = _this.transactionLine.locationNr; });
|
|
19039
|
+
}
|
|
19040
|
+
};
|
|
19041
|
+
return AllocationRequestComponent;
|
|
19042
|
+
}());
|
|
19043
|
+
AllocationRequestComponent.decorators = [
|
|
19044
|
+
{ type: i0.Component, args: [{
|
|
19045
|
+
selector: "co-allocation-request",
|
|
19046
|
+
template: "\n <co-form>\n <div class=\"details-header\" [textContent]=\"'ALLOCATE_DETAILS' | localize | uppercase\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"amountLeftToAllocate\"\n [(model)]=\"allocationDetails.serialNr ? 1 : allocationDetails.quantityToAllocate\"\n [disabled]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0\"\n [readonly]=\"!!allocationDetails.serialNr || allocationDetails.quantityToAllocate === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"allocationDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper clickable\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!allocationDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"allocationDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"allocationDetails.locationNr ? allocationDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"allocationDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button\" [class.clickable]=\"amountLeftToAllocate > 0\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\" [class.disabled]=\"saveButtonDisabled || amountLeftToAllocate === 0\">\n <span class=\"commit-text\" [textContent]=\"'ALLOCATE' | localize\"></span>\n </div>\n </div>\n ",
|
|
19047
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
19048
|
+
},] }
|
|
19049
|
+
];
|
|
19050
|
+
AllocationRequestComponent.ctorParameters = function () { return [
|
|
19051
|
+
{ type: IconCacheService },
|
|
19052
|
+
{ type: corecomponents_v12.FormMasterService },
|
|
19053
|
+
{ type: TransactionService },
|
|
19054
|
+
{ type: DialogService }
|
|
19055
|
+
]; };
|
|
19056
|
+
AllocationRequestComponent.propDecorators = {
|
|
19057
|
+
amountLeftToAllocate: [{ type: i0.Input }],
|
|
19058
|
+
transactionLine: [{ type: i0.Input }],
|
|
19059
|
+
transactionInfo: [{ type: i0.Input }],
|
|
19060
|
+
reloadAllocationGoodsHistory: [{ type: i0.Output }],
|
|
19061
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-allocate-goods-details",] }]
|
|
19062
|
+
};
|
|
19063
|
+
|
|
19064
|
+
var ArticleService = /** @class */ (function () {
|
|
19065
|
+
function ArticleService(_articleConnectorService, _selectMultipleCacheService) {
|
|
19066
|
+
this._articleConnectorService = _articleConnectorService;
|
|
19067
|
+
this._selectMultipleCacheService = _selectMultipleCacheService;
|
|
19068
|
+
}
|
|
19069
|
+
ArticleService.prototype.getWarehouseLocations = function (warehouseNr) {
|
|
19070
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19071
|
+
var _this = this;
|
|
19072
|
+
return __generator(this, function (_a) {
|
|
19073
|
+
// @ts-ignore
|
|
19074
|
+
return [2 /*return*/, this._selectMultipleCacheService.requestCache(stockLocation_bo.StockLocation, function () {
|
|
19075
|
+
return _this._articleConnectorService.getWarehouseLocations(warehouseNr);
|
|
19076
|
+
}).getValue()];
|
|
19077
|
+
});
|
|
19078
|
+
});
|
|
19079
|
+
};
|
|
19080
|
+
return ArticleService;
|
|
19081
|
+
}());
|
|
19082
|
+
ArticleService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ArticleService_Factory() { return new ArticleService(i0__namespace.ɵɵinject(ArticleConnectorService), i0__namespace.ɵɵinject(SelectMultipleCacheService)); }, token: ArticleService, providedIn: "root" });
|
|
19083
|
+
ArticleService.decorators = [
|
|
19084
|
+
{ type: i0.Injectable, args: [{
|
|
19085
|
+
providedIn: "root"
|
|
19086
|
+
},] }
|
|
19087
|
+
];
|
|
19088
|
+
ArticleService.ctorParameters = function () { return [
|
|
19089
|
+
{ type: ArticleConnectorService },
|
|
19090
|
+
{ type: SelectMultipleCacheService }
|
|
19091
|
+
]; };
|
|
19092
|
+
|
|
19093
|
+
var ReceiveGoodsRequestComponent = /** @class */ (function () {
|
|
19094
|
+
function ReceiveGoodsRequestComponent(iconCacheService, _formMaster, _service, _articleService, _dialogService, _receiveGoodsService) {
|
|
19095
|
+
this.iconCacheService = iconCacheService;
|
|
19096
|
+
this._formMaster = _formMaster;
|
|
19097
|
+
this._service = _service;
|
|
19098
|
+
this._articleService = _articleService;
|
|
19099
|
+
this._dialogService = _dialogService;
|
|
19100
|
+
this._receiveGoodsService = _receiveGoodsService;
|
|
19101
|
+
this.icons = Icon;
|
|
19102
|
+
this.reloadReceivingGoodsHistory = new i0.EventEmitter();
|
|
19103
|
+
this.receiptDetails = new purchaseOrderLineReceiptDetails_bo.PurchaseOrderLineReceiptDetails();
|
|
19104
|
+
this.request = new receiveGoodsForPurchaseOrderRequest_bo.ReceiveGoodsForPurchaseOrderRequest();
|
|
19105
|
+
this.saveButtonDisabled = false;
|
|
19106
|
+
this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
19107
|
+
this.readonly = false;
|
|
19108
|
+
this._subscriptions = [];
|
|
19109
|
+
this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
19110
|
+
var timeElapsed = Date.now();
|
|
19111
|
+
this.request.receivedDate = new Date(timeElapsed);
|
|
19112
|
+
}
|
|
19113
|
+
Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "amountLeftToReceive", {
|
|
19114
|
+
get: function () {
|
|
19115
|
+
return this._amountLeftToReceive;
|
|
19116
|
+
},
|
|
19117
|
+
set: function (value) {
|
|
19118
|
+
this._amountLeftToReceive = value;
|
|
19119
|
+
this.receiptDetails.quantityToReceive = value;
|
|
19120
|
+
},
|
|
19121
|
+
enumerable: false,
|
|
19122
|
+
configurable: true
|
|
19123
|
+
});
|
|
19124
|
+
Object.defineProperty(ReceiveGoodsRequestComponent.prototype, "transactionLine", {
|
|
19125
|
+
get: function () {
|
|
19126
|
+
return this._transactionLine;
|
|
19127
|
+
},
|
|
19128
|
+
set: function (value) {
|
|
19129
|
+
this._transactionLine = value;
|
|
19130
|
+
this.readonly = this._transactionLine.hasInvoices;
|
|
19131
|
+
this.receiptDetails.warehouseNr = value.warehouseNumber;
|
|
19132
|
+
this.receiptDetails.lineNr = value.lineNr;
|
|
19133
|
+
},
|
|
19134
|
+
enumerable: false,
|
|
19135
|
+
configurable: true
|
|
19136
|
+
});
|
|
19137
|
+
ReceiveGoodsRequestComponent.prototype.showClass = function () {
|
|
19138
|
+
return true;
|
|
19139
|
+
};
|
|
19140
|
+
ReceiveGoodsRequestComponent.prototype.ngOnInit = function () {
|
|
19141
|
+
var _this = this;
|
|
19142
|
+
this._subscriptions.push(this._receiveGoodsService.returnArticleSelected.subscribe(function (availableStock) {
|
|
19143
|
+
_this._handleReturnStock(availableStock);
|
|
19144
|
+
}));
|
|
19145
|
+
};
|
|
19146
|
+
ReceiveGoodsRequestComponent.prototype.ngOnDestroy = function () {
|
|
19147
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
19148
|
+
};
|
|
19149
|
+
ReceiveGoodsRequestComponent.prototype.submit = function () {
|
|
19150
|
+
return this._formMaster.submitSlaves();
|
|
19151
|
+
};
|
|
19152
|
+
ReceiveGoodsRequestComponent.prototype.locationRequired = function () {
|
|
19153
|
+
return this._transactionLine.isLocationRequired ||
|
|
19154
|
+
this._transactionLine.isBatchNrRequired ||
|
|
19155
|
+
this._transactionLine.isSerialNrRequired;
|
|
19156
|
+
};
|
|
19157
|
+
ReceiveGoodsRequestComponent.prototype.handleSaveDetailsEdit = function () {
|
|
19158
|
+
var _this = this;
|
|
19159
|
+
var valid = this.submit();
|
|
19160
|
+
if (valid) {
|
|
19161
|
+
this.saveButtonDisabled = true;
|
|
19162
|
+
var request = this.request;
|
|
19163
|
+
this.receiptDetails.quantityToReceive = this.returnStockMode() ?
|
|
19164
|
+
-this.receiptDetails.quantityToReceive : this.receiptDetails.quantityToReceive;
|
|
19165
|
+
request.transId = this._service.currentTransaction.transactionInfo.id;
|
|
19166
|
+
this._service.receiveGoodsForPurchaseOrder(request).then(function () {
|
|
19167
|
+
if (_this.returnStockMode()) {
|
|
19168
|
+
_this._receiveGoodsService.reloadAvailableStockData.next();
|
|
19169
|
+
_this.receiptDetails.locationNr = undefined;
|
|
19170
|
+
}
|
|
19171
|
+
_this.reloadReceivingGoodsHistory.next();
|
|
19172
|
+
}).catch(function (e) {
|
|
19173
|
+
_this.saveButtonDisabled = false;
|
|
19174
|
+
});
|
|
19175
|
+
this.saveButtonDisabled = false;
|
|
19176
|
+
}
|
|
19177
|
+
};
|
|
19178
|
+
ReceiveGoodsRequestComponent.prototype.openWarehouseLocationDialog = function () {
|
|
19179
|
+
var _this = this;
|
|
19180
|
+
if (!this.returnStockMode()) {
|
|
19181
|
+
this._dialogService.showWarehouseLocation(this.receiptDetails.warehouseNr, true, true, true, this.transactionLine)
|
|
19182
|
+
.then(function () { return _this.receiptDetails.locationNr = _this.transactionLine.locationNr; });
|
|
19183
|
+
}
|
|
19184
|
+
};
|
|
19185
|
+
ReceiveGoodsRequestComponent.prototype.returnStockMode = function () {
|
|
19186
|
+
return this.transactionLine.amount < 0;
|
|
19187
|
+
};
|
|
19188
|
+
ReceiveGoodsRequestComponent.prototype._handleReturnStock = function (availableStock) {
|
|
19189
|
+
var maxToReturn = this.amountLeftToReceive < 0 ? Math.abs(this.amountLeftToReceive) : this.amountLeftToReceive;
|
|
19190
|
+
this.returnMaxToReceive = maxToReturn > availableStock.availableQuantity ? availableStock.availableQuantity : maxToReturn;
|
|
19191
|
+
this.receiptDetails.quantityToReceive = this.returnMaxToReceive;
|
|
19192
|
+
this.receiptDetails.warehouseNr = availableStock.warehouseNumber;
|
|
19193
|
+
this.receiptDetails.locationNr = availableStock.locationNumber;
|
|
19194
|
+
this.receiptDetails.serialNr = availableStock.serialNumber;
|
|
19195
|
+
this.receiptDetails.batchNr = availableStock.batchNumber;
|
|
19196
|
+
this.receiptDetails.lineNr = this.transactionLine.lineNr;
|
|
19197
|
+
};
|
|
19198
|
+
return ReceiveGoodsRequestComponent;
|
|
19199
|
+
}());
|
|
19200
|
+
ReceiveGoodsRequestComponent.decorators = [
|
|
19201
|
+
{ type: i0.Component, args: [{
|
|
19202
|
+
selector: "co-receive-goods-request",
|
|
19203
|
+
template: "\n <co-form>\n <div class=\"details-header\" [textContent]=\"returnStockMode() ? ('RETURN_DETAILS' | localize | uppercase) : ('RECEIPT_DETAILS' | localize | uppercase)\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"returnStockMode() ? returnMaxToReceive : amountLeftToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0 || readonly\"\n [required]=\"true\"\n [type]=\"'number'\"\n [min]=\"1\"\n [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.warehouseNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"transactionLine.warehouseNumber !== undefined || readonly || returnStockMode()\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined || returnStockMode()\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <div class=\"location-wrapper\" [class.clickable]=\"!returnStockMode()\" (click)=\"openWarehouseLocationDialog()\">\n <span *ngIf=\"!receiptDetails.locationNr && transactionLine.isLocationRequired\" class=\"required\" [textContent]=\"'*'\"></span>\n <co-icon *ngIf=\"receiptDetails.locationNr\" [iconData]=\"iconCacheService.getIcon(icons.ShelvesLight)\"></co-icon>\n <div [textContent]=\"receiptDetails.locationNr ? receiptDetails.locationNr : ('LOCATION' | localize)\"></div>\n </div>\n <co-input-text class=\"details-input\"\n *ngIf=\"!returnStockMode()\"\n [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [required]=\"true\"\n [readonly]=\"readonly\"\n ></co-input-text>\n </div>\n <div class=\"divider-wrapper\">\n <div class=\"divider\"></div>\n </div>\n <div class=\"details-column\">\n <co-input-date class=\"details-input\"\n [(model)]=\"request.receivedDate\"\n [readonly]=\"readonly\"\n ></co-input-date>\n <co-input-text *ngIf=\"transactionLine.isBatchNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text *ngIf=\"transactionLine.isSerialNrRequired\" class=\"details-input\" [(model)]=\"receiptDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [readonly]=\"readonly || returnStockMode()\"\n [disabled]=\"returnStockMode()\"\n [required]=\"transactionLine.isSerialNrRequired\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </div>\n </div>\n </co-form>\n\n <div class=\"commit-button-wrapper\">\n <div class=\"commit-button clickable\" *ngIf=\"!readonly\" (click)=\"handleSaveDetailsEdit()\" [class.disabled]=\"saveButtonDisabled || amountLeftToReceive === 0\">\n <span class=\"commit-text\" [textContent]=\"returnStockMode() ? ('RETURN_STOCK' | localize) : ('RECEIVE' | localize)\"></span>\n </div>\n </div>\n ",
|
|
19204
|
+
providers: [
|
|
19205
|
+
corecomponents_v12.FormMasterService
|
|
19206
|
+
],
|
|
19207
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
19208
|
+
},] }
|
|
19209
|
+
];
|
|
19210
|
+
ReceiveGoodsRequestComponent.ctorParameters = function () { return [
|
|
19211
|
+
{ type: IconCacheService },
|
|
19212
|
+
{ type: corecomponents_v12.FormMasterService },
|
|
19213
|
+
{ type: TransactionService },
|
|
19214
|
+
{ type: ArticleService },
|
|
19215
|
+
{ type: DialogService },
|
|
19216
|
+
{ type: TransactionReceiveGoodsService }
|
|
19217
|
+
]; };
|
|
19218
|
+
ReceiveGoodsRequestComponent.propDecorators = {
|
|
19219
|
+
amountLeftToReceive: [{ type: i0.Input }],
|
|
19220
|
+
transactionLine: [{ type: i0.Input }],
|
|
19221
|
+
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
19222
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
|
|
18439
19223
|
};
|
|
18440
19224
|
|
|
18441
|
-
var
|
|
18442
|
-
function
|
|
19225
|
+
var TransactionSidePanelEditRequestDetailsModule = /** @class */ (function () {
|
|
19226
|
+
function TransactionSidePanelEditRequestDetailsModule() {
|
|
18443
19227
|
}
|
|
18444
|
-
return
|
|
19228
|
+
return TransactionSidePanelEditRequestDetailsModule;
|
|
18445
19229
|
}());
|
|
18446
|
-
|
|
19230
|
+
TransactionSidePanelEditRequestDetailsModule.decorators = [
|
|
18447
19231
|
{ type: i0.NgModule, args: [{
|
|
18448
19232
|
imports: [
|
|
18449
19233
|
common.CommonModule,
|
|
18450
|
-
corecomponents_v12.
|
|
19234
|
+
corecomponents_v12.FormModule,
|
|
19235
|
+
corecomponents_v12.InputTextModule,
|
|
19236
|
+
PipeModule,
|
|
19237
|
+
corecomponents_v12.IconModule,
|
|
19238
|
+
corecomponents_v12.InputDatePickerModule
|
|
18451
19239
|
],
|
|
18452
19240
|
declarations: [
|
|
18453
|
-
|
|
19241
|
+
TransactionSidePanelEditRequestDetailsComponent,
|
|
19242
|
+
AllocationRequestComponent,
|
|
19243
|
+
ReceiveGoodsRequestComponent
|
|
18454
19244
|
],
|
|
18455
19245
|
exports: [
|
|
18456
|
-
|
|
19246
|
+
TransactionSidePanelEditRequestDetailsComponent
|
|
18457
19247
|
]
|
|
18458
19248
|
},] }
|
|
18459
19249
|
];
|
|
18460
19250
|
|
|
18461
|
-
var
|
|
18462
|
-
function
|
|
19251
|
+
var TransactionLineSidePanelPurchaseModule = /** @class */ (function () {
|
|
19252
|
+
function TransactionLineSidePanelPurchaseModule() {
|
|
18463
19253
|
}
|
|
18464
|
-
return
|
|
19254
|
+
return TransactionLineSidePanelPurchaseModule;
|
|
18465
19255
|
}());
|
|
18466
|
-
|
|
19256
|
+
TransactionLineSidePanelPurchaseModule.decorators = [
|
|
18467
19257
|
{ type: i0.NgModule, args: [{
|
|
18468
19258
|
imports: [
|
|
18469
19259
|
common.CommonModule,
|
|
18470
|
-
|
|
19260
|
+
TransactionConfirmationHistoryModule,
|
|
19261
|
+
TransactionReceivingGoodsHistoryModule,
|
|
19262
|
+
corecomponents_v12.ButtonModule,
|
|
18471
19263
|
PipeModule,
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
DefaultOkCancelButtonsModule,
|
|
18477
|
-
corecomponents_v12.InputDatePickerModule,
|
|
18478
|
-
corecomponents_v12.InputNumberPickerModule,
|
|
19264
|
+
TransactionLineSidePanelDefaultModule,
|
|
19265
|
+
TransactionConfirmationDetailsModule,
|
|
19266
|
+
TransactionAvailableStockGridModule,
|
|
19267
|
+
TransactionSidePanelEditRequestDetailsModule
|
|
18479
19268
|
],
|
|
18480
19269
|
declarations: [
|
|
18481
|
-
|
|
18482
|
-
TransactionConfirmationDetailsComponent
|
|
19270
|
+
TransactionLineSidePanelPurchaseComponent
|
|
18483
19271
|
],
|
|
18484
19272
|
exports: [
|
|
18485
|
-
|
|
18486
|
-
TransactionConfirmationDetailsComponent
|
|
19273
|
+
TransactionLineSidePanelPurchaseComponent
|
|
18487
19274
|
]
|
|
18488
19275
|
},] }
|
|
18489
19276
|
];
|
|
18490
19277
|
|
|
18491
|
-
var
|
|
18492
|
-
function
|
|
19278
|
+
var TransactionLineSidePanelSalesComponent = /** @class */ (function () {
|
|
19279
|
+
function TransactionLineSidePanelSalesComponent(_service, _transactionEventService) {
|
|
18493
19280
|
this._service = _service;
|
|
18494
19281
|
this._transactionEventService = _transactionEventService;
|
|
18495
19282
|
this.categories = TransactionTypeCategory;
|
|
18496
|
-
this.
|
|
18497
|
-
this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
|
|
18498
|
-
this.selectedLineDocBatchArray = new docDeliveryBatch_bo.DocDeliveryBatch();
|
|
18499
|
-
this.isDocBatchSaved = false;
|
|
19283
|
+
this.goodsAllocationStatus = new goodsAllocationStatusWithHistory_bo.GoodsAllocationStatusWithHistory();
|
|
18500
19284
|
this._transactionInfo = new transactionInfo_bo.TransactionInfo();
|
|
18501
19285
|
}
|
|
18502
|
-
Object.defineProperty(
|
|
19286
|
+
Object.defineProperty(TransactionLineSidePanelSalesComponent.prototype, "transactionInfo", {
|
|
18503
19287
|
get: function () {
|
|
18504
19288
|
return this._transactionInfo;
|
|
18505
19289
|
},
|
|
@@ -18509,158 +19293,145 @@
|
|
|
18509
19293
|
enumerable: false,
|
|
18510
19294
|
configurable: true
|
|
18511
19295
|
});
|
|
18512
|
-
|
|
19296
|
+
TransactionLineSidePanelSalesComponent.prototype.showClass = function () {
|
|
18513
19297
|
return true;
|
|
18514
19298
|
};
|
|
18515
|
-
|
|
18516
|
-
this.getGoodsReceiptStatusWithHistory();
|
|
18517
|
-
};
|
|
18518
|
-
TransactionLineSidePanelPurchaseComponent.prototype.getGoodsReceiptStatusWithHistory = function () {
|
|
19299
|
+
TransactionLineSidePanelSalesComponent.prototype.getGoodsAllocationStatusWithHistory = function () {
|
|
18519
19300
|
return __awaiter(this, void 0, void 0, function () {
|
|
18520
19301
|
var _this = this;
|
|
18521
19302
|
return __generator(this, function (_a) {
|
|
18522
|
-
this._service.
|
|
19303
|
+
this._service.getGoodsAllocationStatusWithHistory(this._transactionInfo.id, this.transactionLine.lineNr)
|
|
18523
19304
|
.then(function (result) {
|
|
18524
|
-
_this.
|
|
18525
|
-
|
|
18526
|
-
|
|
19305
|
+
_this.goodsAllocationStatus = result;
|
|
19306
|
+
var tempViewModel = Object.assign(new ExtendedTransactionLineViewModel(), _this.transactionLine);
|
|
19307
|
+
tempViewModel.quantityToAllocate = result.quantityToAllocate;
|
|
19308
|
+
tempViewModel.quantityAllocated = result.quantityAllocated;
|
|
19309
|
+
_this._transactionEventService.transactionLineChanged.next(tempViewModel);
|
|
18527
19310
|
});
|
|
18528
19311
|
return [2 /*return*/];
|
|
18529
19312
|
});
|
|
18530
19313
|
});
|
|
18531
19314
|
};
|
|
18532
|
-
|
|
18533
|
-
this.selectedLineDocBatchArray = data;
|
|
18534
|
-
};
|
|
18535
|
-
TransactionLineSidePanelPurchaseComponent.prototype.docBatchSaved = function (data) {
|
|
18536
|
-
this.isDocBatchSaved = data;
|
|
18537
|
-
};
|
|
18538
|
-
return TransactionLineSidePanelPurchaseComponent;
|
|
19315
|
+
return TransactionLineSidePanelSalesComponent;
|
|
18539
19316
|
}());
|
|
18540
|
-
|
|
19317
|
+
TransactionLineSidePanelSalesComponent.decorators = [
|
|
18541
19318
|
{ type: i0.Component, args: [{
|
|
18542
|
-
selector: "co-transaction-line-side-panel-
|
|
18543
|
-
template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.
|
|
19319
|
+
selector: "co-transaction-line-side-panel-sales",
|
|
19320
|
+
template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.SalesOrderAllocation\">\n <co-transaction-side-panel-edit-request-details\n [category]=\"categories.SalesOrderAllocation\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToAllocate]=\"goodsAllocationStatus.quantityToAllocate\"\n (reloadAllocationGoodsHistory)=\"getGoodsAllocationStatusWithHistory()\"\n ></co-transaction-side-panel-edit-request-details>\n <co-transaction-allocate-goods-history\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [goodsAllocationHistory]=\"goodsAllocationStatus.goodsAllocationHistory\"\n (reloadAllocationGoodsHistory)=\"getGoodsAllocationStatusWithHistory()\"\n ></co-transaction-allocate-goods-history>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
|
|
18544
19321
|
encapsulation: i0.ViewEncapsulation.None
|
|
18545
19322
|
},] }
|
|
18546
19323
|
];
|
|
18547
|
-
|
|
19324
|
+
TransactionLineSidePanelSalesComponent.ctorParameters = function () { return [
|
|
18548
19325
|
{ type: TransactionService },
|
|
18549
19326
|
{ type: TransactionEventService }
|
|
18550
19327
|
]; };
|
|
18551
|
-
|
|
19328
|
+
TransactionLineSidePanelSalesComponent.propDecorators = {
|
|
18552
19329
|
transactionLine: [{ type: i0.Input }],
|
|
18553
19330
|
transactionInfo: [{ type: i0.Input }],
|
|
18554
19331
|
category: [{ type: i0.Input }],
|
|
18555
|
-
|
|
18556
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel-purchase",] }]
|
|
19332
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel-sales",] }]
|
|
18557
19333
|
};
|
|
18558
19334
|
|
|
18559
|
-
var
|
|
18560
|
-
function
|
|
18561
|
-
this.
|
|
18562
|
-
this.
|
|
18563
|
-
this._transactionReceiveGoodsService = _transactionReceiveGoodsService;
|
|
18564
|
-
this.icons = Icon;
|
|
18565
|
-
this._subscriptions = [];
|
|
19335
|
+
var TransactionAllocateGoodsHistoryComponent = /** @class */ (function () {
|
|
19336
|
+
function TransactionAllocateGoodsHistoryComponent(_service) {
|
|
19337
|
+
this._service = _service;
|
|
19338
|
+
this.reloadAllocationGoodsHistory = new i0.EventEmitter();
|
|
18566
19339
|
}
|
|
18567
|
-
|
|
19340
|
+
Object.defineProperty(TransactionAllocateGoodsHistoryComponent.prototype, "goodsAllocationHistory", {
|
|
19341
|
+
get: function () {
|
|
19342
|
+
return this._goodsAllocationHistory;
|
|
19343
|
+
},
|
|
19344
|
+
set: function (value) {
|
|
19345
|
+
if (value) {
|
|
19346
|
+
this._goodsAllocationHistory = value.reverse();
|
|
19347
|
+
}
|
|
19348
|
+
},
|
|
19349
|
+
enumerable: false,
|
|
19350
|
+
configurable: true
|
|
19351
|
+
});
|
|
19352
|
+
TransactionAllocateGoodsHistoryComponent.prototype.showClass = function () {
|
|
18568
19353
|
return true;
|
|
18569
19354
|
};
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
this._subscriptions.push(this._transactionReceiveGoodsService.reloadAvailableStockData.subscribe(function () { return _this._getAvailableStock(); }));
|
|
18573
|
-
this._getAvailableStock();
|
|
18574
|
-
};
|
|
18575
|
-
TransactionAvailableStockGridComponent.prototype.ngOnDestroy = function () {
|
|
18576
|
-
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
18577
|
-
};
|
|
18578
|
-
TransactionAvailableStockGridComponent.prototype.handleSelectRow = function (availableStock) {
|
|
18579
|
-
this.selectedStock = availableStock;
|
|
18580
|
-
this._transactionReceiveGoodsService.returnArticleSelected.next(availableStock);
|
|
18581
|
-
};
|
|
18582
|
-
TransactionAvailableStockGridComponent.prototype.handleDeleteClick = function () {
|
|
19355
|
+
TransactionAllocateGoodsHistoryComponent.prototype.ngAfterViewInit = function () {
|
|
19356
|
+
this.reloadAllocationGoodsHistory.next();
|
|
18583
19357
|
};
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18595
|
-
|
|
19358
|
+
TransactionAllocateGoodsHistoryComponent.prototype.handleDeleteSelectedRow = function (row) {
|
|
19359
|
+
var _this = this;
|
|
19360
|
+
if (row && row.type !== 'correction') {
|
|
19361
|
+
var request = new allocateGoodsForSalesOrderCorrectionRequest.AllocateGoodsForSalesOrderCorrectionRequest();
|
|
19362
|
+
var correctionDetails = new salesOrderLineAllocationCorrectionDetails.SalesOrderLineAllocationCorrectionDetails();
|
|
19363
|
+
request.allowedToRemovePickedAllocations = false;
|
|
19364
|
+
request.transId = this.transactionInfo.id;
|
|
19365
|
+
request.salesOrderLineAllocationCorrectionDetailsDTOS = [correctionDetails];
|
|
19366
|
+
correctionDetails.lineNr = this.transactionLine.lineNr;
|
|
19367
|
+
correctionDetails.quantityToCorrect = row.quantity;
|
|
19368
|
+
correctionDetails.documentId = row.documentId;
|
|
19369
|
+
correctionDetails.documentLineNr = row.lineNumber;
|
|
19370
|
+
this._service.allocateGoodsForSalesOrderCorrection(request).then(function () {
|
|
19371
|
+
_this.reloadAllocationGoodsHistory.next();
|
|
18596
19372
|
});
|
|
18597
|
-
}
|
|
19373
|
+
}
|
|
18598
19374
|
};
|
|
18599
|
-
return
|
|
19375
|
+
return TransactionAllocateGoodsHistoryComponent;
|
|
18600
19376
|
}());
|
|
18601
|
-
|
|
19377
|
+
TransactionAllocateGoodsHistoryComponent.decorators = [
|
|
18602
19378
|
{ type: i0.Component, args: [{
|
|
18603
|
-
selector: "co-transaction-
|
|
18604
|
-
template: "\n <
|
|
19379
|
+
selector: "co-transaction-allocate-goods-history",
|
|
19380
|
+
template: "\n <co-transaction-history-grid\n [collection]=\"goodsAllocationHistory\"\n (deleteSelectedRow)=\"handleDeleteSelectedRow($event)\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [order]=\"40\">\n <ng-template #template let-row=\"row\">\n <div class=\"row-container\">\n <span class=\"row\" [textContent]=\"row.warehouseNumber\"></span>\n <span class=\"correction\" *ngFor=\"let correction of row.corrections\" [textContent]=\"correction.warehouseNumber\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [order]=\"60\">\n <ng-template #template let-row=\"row\">\n <div class=\"row-container\">\n <span class=\"row\" [textContent]=\"row.locationNumber\"></span>\n <span class=\"correction\" *ngFor=\"let correction of row.corrections\" [textContent]=\"correction.locationNumber\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n </co-transaction-history-grid>\n ",
|
|
18605
19381
|
encapsulation: i0.ViewEncapsulation.None
|
|
18606
19382
|
},] }
|
|
18607
19383
|
];
|
|
18608
|
-
|
|
18609
|
-
{ type:
|
|
18610
|
-
{ type: TransactionService },
|
|
18611
|
-
{ type: TransactionReceiveGoodsService }
|
|
19384
|
+
TransactionAllocateGoodsHistoryComponent.ctorParameters = function () { return [
|
|
19385
|
+
{ type: TransactionService }
|
|
18612
19386
|
]; };
|
|
18613
|
-
|
|
19387
|
+
TransactionAllocateGoodsHistoryComponent.propDecorators = {
|
|
19388
|
+
goodsAllocationHistory: [{ type: i0.Input }],
|
|
19389
|
+
transactionInfo: [{ type: i0.Input }],
|
|
18614
19390
|
transactionLine: [{ type: i0.Input }],
|
|
18615
|
-
|
|
18616
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-
|
|
19391
|
+
reloadAllocationGoodsHistory: [{ type: i0.Output }],
|
|
19392
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-allocate-goods-history",] }]
|
|
18617
19393
|
};
|
|
18618
19394
|
|
|
18619
|
-
var
|
|
18620
|
-
function
|
|
19395
|
+
var TransactionAllocateGoodsHistoryModule = /** @class */ (function () {
|
|
19396
|
+
function TransactionAllocateGoodsHistoryModule() {
|
|
18621
19397
|
}
|
|
18622
|
-
return
|
|
19398
|
+
return TransactionAllocateGoodsHistoryModule;
|
|
18623
19399
|
}());
|
|
18624
|
-
|
|
19400
|
+
TransactionAllocateGoodsHistoryModule.decorators = [
|
|
18625
19401
|
{ type: i0.NgModule, args: [{
|
|
18626
19402
|
imports: [
|
|
18627
19403
|
common.CommonModule,
|
|
18628
19404
|
corecomponents_v12.SimpleGridModule,
|
|
18629
|
-
|
|
19405
|
+
TransactionHistoryGridModule,
|
|
18630
19406
|
PipeModule
|
|
18631
19407
|
],
|
|
18632
19408
|
declarations: [
|
|
18633
|
-
|
|
19409
|
+
TransactionAllocateGoodsHistoryComponent
|
|
18634
19410
|
],
|
|
18635
19411
|
exports: [
|
|
18636
|
-
|
|
19412
|
+
TransactionAllocateGoodsHistoryComponent
|
|
18637
19413
|
]
|
|
18638
19414
|
},] }
|
|
18639
19415
|
];
|
|
18640
19416
|
|
|
18641
|
-
var
|
|
18642
|
-
function
|
|
19417
|
+
var TransactionLineSidePanelSalesModule = /** @class */ (function () {
|
|
19418
|
+
function TransactionLineSidePanelSalesModule() {
|
|
18643
19419
|
}
|
|
18644
|
-
return
|
|
19420
|
+
return TransactionLineSidePanelSalesModule;
|
|
18645
19421
|
}());
|
|
18646
|
-
|
|
19422
|
+
TransactionLineSidePanelSalesModule.decorators = [
|
|
18647
19423
|
{ type: i0.NgModule, args: [{
|
|
18648
19424
|
imports: [
|
|
18649
19425
|
common.CommonModule,
|
|
18650
|
-
TransactionConfirmationHistoryModule,
|
|
18651
|
-
TransactionReceivingGoodsDetailsModule,
|
|
18652
|
-
TransactionReceivingGoodsHistoryModule,
|
|
18653
|
-
corecomponents_v12.ButtonModule,
|
|
18654
|
-
PipeModule,
|
|
18655
19426
|
TransactionLineSidePanelDefaultModule,
|
|
18656
|
-
|
|
18657
|
-
|
|
19427
|
+
TransactionSidePanelEditRequestDetailsModule,
|
|
19428
|
+
TransactionAllocateGoodsHistoryModule
|
|
18658
19429
|
],
|
|
18659
19430
|
declarations: [
|
|
18660
|
-
|
|
19431
|
+
TransactionLineSidePanelSalesComponent
|
|
18661
19432
|
],
|
|
18662
19433
|
exports: [
|
|
18663
|
-
|
|
19434
|
+
TransactionLineSidePanelSalesComponent
|
|
18664
19435
|
]
|
|
18665
19436
|
},] }
|
|
18666
19437
|
];
|
|
@@ -18677,7 +19448,6 @@
|
|
|
18677
19448
|
CoreModule,
|
|
18678
19449
|
TransactionLineSidePanelDefaultModule,
|
|
18679
19450
|
TransactionReceivingGoodsHistoryModule,
|
|
18680
|
-
TransactionReceivingGoodsDetailsModule,
|
|
18681
19451
|
PipeModule,
|
|
18682
19452
|
corecomponents_v12.ButtonModule,
|
|
18683
19453
|
TransactionButtonBarModule,
|
|
@@ -18685,7 +19455,8 @@
|
|
|
18685
19455
|
TransactionConfirmationHistoryModule,
|
|
18686
19456
|
TransactionLineSidePanelPurchaseModule,
|
|
18687
19457
|
TransactionConfirmationHistoryModule,
|
|
18688
|
-
TransactionConfirmationDetailsModule
|
|
19458
|
+
TransactionConfirmationDetailsModule,
|
|
19459
|
+
TransactionLineSidePanelSalesModule
|
|
18689
19460
|
],
|
|
18690
19461
|
declarations: [
|
|
18691
19462
|
TransactionLineSidePanelComponent
|
|
@@ -19415,6 +20186,62 @@
|
|
|
19415
20186
|
},] }
|
|
19416
20187
|
];
|
|
19417
20188
|
|
|
20189
|
+
var DialogCatalogComponent = /** @class */ (function () {
|
|
20190
|
+
function DialogCatalogComponent(_optionsService) {
|
|
20191
|
+
this._optionsService = _optionsService;
|
|
20192
|
+
this.showNavigation = true;
|
|
20193
|
+
this.closeClick = new i0.EventEmitter();
|
|
20194
|
+
this.articleClicked = new i0.EventEmitter();
|
|
20195
|
+
}
|
|
20196
|
+
DialogCatalogComponent.prototype.showClass = function () {
|
|
20197
|
+
return true;
|
|
20198
|
+
};
|
|
20199
|
+
DialogCatalogComponent.prototype.ngOnInit = function () {
|
|
20200
|
+
this.catalogSettings = this._optionsService.options;
|
|
20201
|
+
this.catalogSettings.options = this.options;
|
|
20202
|
+
};
|
|
20203
|
+
return DialogCatalogComponent;
|
|
20204
|
+
}());
|
|
20205
|
+
DialogCatalogComponent.decorators = [
|
|
20206
|
+
{ type: i0.Component, args: [{
|
|
20207
|
+
selector: "co-dialog-catalog",
|
|
20208
|
+
template: "\n <co-dialog (closeClick)=\"closeClick.emit($event)\">\n <app-ione-catalog-navigation *ngIf=\"showNavigation\"></app-ione-catalog-navigation>\n <app-ione-catalog\n [settings]=\"catalogSettings\"\n [parameters]=\"parameters\"\n (onArticleClick)=\"articleClicked.emit($event)\"\n ></app-ione-catalog>\n </co-dialog>\n ",
|
|
20209
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
20210
|
+
},] }
|
|
20211
|
+
];
|
|
20212
|
+
DialogCatalogComponent.ctorParameters = function () { return [
|
|
20213
|
+
{ type: OptionsService }
|
|
20214
|
+
]; };
|
|
20215
|
+
DialogCatalogComponent.propDecorators = {
|
|
20216
|
+
options: [{ type: i0.Input }],
|
|
20217
|
+
parameters: [{ type: i0.Input }],
|
|
20218
|
+
showNavigation: [{ type: i0.Input }],
|
|
20219
|
+
closeClick: [{ type: i0.Output }],
|
|
20220
|
+
articleClicked: [{ type: i0.Output }],
|
|
20221
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-dialog-catalog",] }]
|
|
20222
|
+
};
|
|
20223
|
+
|
|
20224
|
+
var DialogCatalogModule = /** @class */ (function () {
|
|
20225
|
+
function DialogCatalogModule() {
|
|
20226
|
+
}
|
|
20227
|
+
return DialogCatalogModule;
|
|
20228
|
+
}());
|
|
20229
|
+
DialogCatalogModule.decorators = [
|
|
20230
|
+
{ type: i0.NgModule, args: [{
|
|
20231
|
+
imports: [
|
|
20232
|
+
common.CommonModule,
|
|
20233
|
+
corecomponents_v12.CoDialogModule,
|
|
20234
|
+
catalog.IoneCatalogModule
|
|
20235
|
+
],
|
|
20236
|
+
declarations: [
|
|
20237
|
+
DialogCatalogComponent
|
|
20238
|
+
],
|
|
20239
|
+
exports: [
|
|
20240
|
+
DialogCatalogComponent
|
|
20241
|
+
]
|
|
20242
|
+
},] }
|
|
20243
|
+
];
|
|
20244
|
+
|
|
19418
20245
|
var TransactionQuickAccessOverviewModule = /** @class */ (function () {
|
|
19419
20246
|
function TransactionQuickAccessOverviewModule() {
|
|
19420
20247
|
}
|
|
@@ -19425,7 +20252,9 @@
|
|
|
19425
20252
|
imports: [
|
|
19426
20253
|
common.CommonModule,
|
|
19427
20254
|
corecomponents_v12.InputSearchModule,
|
|
19428
|
-
PipeModule
|
|
20255
|
+
PipeModule,
|
|
20256
|
+
DialogCatalogModule,
|
|
20257
|
+
catalog.IoneCatalogModule
|
|
19429
20258
|
],
|
|
19430
20259
|
declarations: [
|
|
19431
20260
|
TransactionQuickAccessOverviewComponent
|
|
@@ -19561,6 +20390,29 @@
|
|
|
19561
20390
|
},] }
|
|
19562
20391
|
];
|
|
19563
20392
|
|
|
20393
|
+
var TransactionQuickAccessGoodsAllocationModule = /** @class */ (function () {
|
|
20394
|
+
function TransactionQuickAccessGoodsAllocationModule() {
|
|
20395
|
+
}
|
|
20396
|
+
return TransactionQuickAccessGoodsAllocationModule;
|
|
20397
|
+
}());
|
|
20398
|
+
TransactionQuickAccessGoodsAllocationModule.decorators = [
|
|
20399
|
+
{ type: i0.NgModule, args: [{
|
|
20400
|
+
imports: [
|
|
20401
|
+
common.CommonModule,
|
|
20402
|
+
corecomponents_v12.InputCheckboxModule,
|
|
20403
|
+
PipeModule,
|
|
20404
|
+
corecomponents_v12.CheckmarkOverlayModule,
|
|
20405
|
+
corecomponents_v12.IconModule
|
|
20406
|
+
],
|
|
20407
|
+
declarations: [
|
|
20408
|
+
TransactionQuickAccessGoodsAllocationComponent
|
|
20409
|
+
],
|
|
20410
|
+
exports: [
|
|
20411
|
+
TransactionQuickAccessGoodsAllocationComponent
|
|
20412
|
+
]
|
|
20413
|
+
},] }
|
|
20414
|
+
];
|
|
20415
|
+
|
|
19564
20416
|
var TransactionQuickAccessModule = /** @class */ (function () {
|
|
19565
20417
|
function TransactionQuickAccessModule() {
|
|
19566
20418
|
}
|
|
@@ -19579,7 +20431,8 @@
|
|
|
19579
20431
|
TransactionQuickAccessReceivedGoodsModule,
|
|
19580
20432
|
TransactionQuickAccessOverviewModule,
|
|
19581
20433
|
TransactionQuickAccessOrderDeliveryModule,
|
|
19582
|
-
TransactionQuickAccessOrderPurchaseModule
|
|
20434
|
+
TransactionQuickAccessOrderPurchaseModule,
|
|
20435
|
+
TransactionQuickAccessGoodsAllocationModule
|
|
19583
20436
|
],
|
|
19584
20437
|
declarations: [
|
|
19585
20438
|
TransactionQuickAccessComponent
|
|
@@ -19897,10 +20750,10 @@
|
|
|
19897
20750
|
}
|
|
19898
20751
|
});
|
|
19899
20752
|
};
|
|
19900
|
-
TransactionReceivedGoodsGridComponent.prototype.handleTransactionLineChanged = function (
|
|
19901
|
-
|
|
19902
|
-
receiveGoodsViewModel.goodsReceiptStatus.quantityToReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
19903
|
-
receiveGoodsViewModel.toReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
20753
|
+
TransactionReceivedGoodsGridComponent.prototype.handleTransactionLineChanged = function (viewModel) {
|
|
20754
|
+
// const receiveGoodsViewModel: ReceiveGoodsViewModel = this.rowViewModels.get(viewModel.transactionLine);
|
|
20755
|
+
// receiveGoodsViewModel.goodsReceiptStatus.quantityToReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
20756
|
+
// receiveGoodsViewModel.toReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
19904
20757
|
};
|
|
19905
20758
|
return TransactionReceivedGoodsGridComponent;
|
|
19906
20759
|
}(TransactionGridBaseComponent));
|
|
@@ -20133,7 +20986,7 @@
|
|
|
20133
20986
|
TransactionTileComponent.decorators = [
|
|
20134
20987
|
{ type: i0.Component, args: [{
|
|
20135
20988
|
selector: "co-transaction-tile",
|
|
20136
|
-
template: "\n <div class=\"transaction-tile-wrapper\" *ngIf=\"transactionLine\">\n <div class=\"header-row center\">\n <div class=\"header-transport-container center\">\n <co-icon class=\"transport-method-icon\" [iconData]=\"iconCacheService.getIcon(icon.DeliveryTruck)\"></co-icon>\n <span class=\"transport-method-text\" [textContent]=\"'Dropshipment door leverancier'\"></span>\n </div>\n <span class=\"header-date bold\" [textContent]=\"transactionLine.deliveryDate | date : 'd-MM-yyyy'\"></span>\n <co-icon class=\"header-side-panel-button\"\n [iconData]=\"iconCacheService.getIcon(icon.ThickLines)\"\n (click)=\"handleSidePanelButtonClicked()\"\n ></co-icon>\n </div>\n\n <div class=\"transaction-details-row\">\n <div class=\"transaction-details-container\">\n <span class=\"transaction-tile-title bold\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span *ngFor=\"let text of transactionLine.articleTestAsArray\" class=\"transaction-tile-description\"\n [innerHTML]=\"text | safeHtml\"></span>\n </div>\n <co-image-display class=\"tile-image\" [model]=\"image\"></co-image-display>\n </div>\n\n <div class=\"transaction-order-status-row\">\n <co-transaction-line-statusbar [transaction]=\"transactionLine\" [transactionKind]=\"transactionType\"></co-transaction-line-statusbar>\n </div>\n\n <div class=\"transaction-data-row center\">\n <div class=\"transaction-data-header\">\n <div class=\"transaction-data-header-item\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.articleNumber ? transactionLine.articleNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'PRICE'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.price ? (transactionLine.price | priceDisplay) : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'DISCOUNT'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.discountAmount ? transactionLine.discountAmount : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'Mag'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.warehouseNumber ? transactionLine.warehouseNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'CC'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.commissionCode ? transactionLine.commissionCode : '-'\"></span>\n </div>\n </div>\n <div class=\"transaction-data-header-item mutable center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <input type=\"number\" class=\"transaction-data-header-field bold amount-input\" [(ngModel)]=\"transactionLine.amount\">\n </div>\n </div>\n </div>\n ",
|
|
20989
|
+
template: "\n <div class=\"transaction-tile-wrapper\" *ngIf=\"transactionLine\">\n <div class=\"header-row center\">\n <div class=\"header-transport-container center\">\n <co-icon class=\"transport-method-icon\" [iconData]=\"iconCacheService.getIcon(icon.DeliveryTruck)\"></co-icon>\n <span class=\"transport-method-text\" [textContent]=\"'Dropshipment door leverancier'\"></span>\n </div>\n <span class=\"header-date bold\" [textContent]=\"transactionLine.deliveryDate | date : 'd-MM-yyyy'\"></span>\n <co-icon class=\"header-side-panel-button\"\n [iconData]=\"iconCacheService.getIcon(icon.ThickLines)\"\n (click)=\"handleSidePanelButtonClicked()\"\n ></co-icon>\n </div>\n\n <div class=\"transaction-details-row\">\n <div class=\"transaction-details-container\">\n <span class=\"transaction-tile-title bold\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span *ngFor=\"let text of transactionLine.articleTestAsArray\" class=\"transaction-tile-description\"\n [innerHTML]=\"text | safeHtml\"></span>\n </div>\n <co-image-display class=\"tile-image\" [model]=\"image\"></co-image-display>\n </div>\n\n <div class=\"transaction-order-status-row\">\n <co-transaction-line-statusbar [transaction]=\"transactionLine\" [transactionKind]=\"transactionType\" [transactionTypeCategory]=\"activeCategory\"></co-transaction-line-statusbar>\n </div>\n\n <div class=\"transaction-data-row center\">\n <div class=\"transaction-data-header\">\n <div class=\"transaction-data-header-item\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.articleNumber ? transactionLine.articleNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'PRICE'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.price ? (transactionLine.price | priceDisplay) : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'DISCOUNT'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.discountAmount ? transactionLine.discountAmount : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'Mag'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.warehouseNumber ? transactionLine.warehouseNumber : '-'\"></span>\n </div>\n <div class=\"transaction-data-header-divider\"></div>\n <div class=\"transaction-data-header-item center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'CC'| localize\"></span>\n <span class=\"transaction-data-header-field\"\n [textContent]=\"transactionLine.commissionCode ? transactionLine.commissionCode : '-'\"></span>\n </div>\n </div>\n <div class=\"transaction-data-header-item mutable center\">\n <span class=\"transaction-data-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <input type=\"number\" class=\"transaction-data-header-field bold amount-input\" [(ngModel)]=\"transactionLine.amount\">\n </div>\n </div>\n </div>\n ",
|
|
20137
20990
|
encapsulation: i0.ViewEncapsulation.None
|
|
20138
20991
|
},] }
|
|
20139
20992
|
];
|
|
@@ -20143,6 +20996,7 @@
|
|
|
20143
20996
|
]; };
|
|
20144
20997
|
TransactionTileComponent.propDecorators = {
|
|
20145
20998
|
transactionType: [{ type: i0.Input }],
|
|
20999
|
+
activeCategory: [{ type: i0.Input }],
|
|
20146
21000
|
transactionLine: [{ type: i0.Input }],
|
|
20147
21001
|
showSidePanelClicked: [{ type: i0.Output }],
|
|
20148
21002
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-tile",] }]
|
|
@@ -20295,7 +21149,7 @@
|
|
|
20295
21149
|
TransactionBaseLineComponent.decorators = [
|
|
20296
21150
|
{ type: i0.Component, args: [{
|
|
20297
21151
|
selector: "co-transaction-base-line",
|
|
20298
|
-
template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-base-line-section\" [class.line-start]=\"!preview\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\" [class.hidden]=\"hideCheckbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"line.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [line]=\"line\"\n (handleDeleteLine)=\"deleteTransactionLineClick()\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\" [class.preview-margin]=\"preview\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [transactionLine]=\"line\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n </ng-container>\n </div>\n ",
|
|
21152
|
+
template: "\n <div class=\"transaction-base-line-wrapper\" data-action=\"openSidePanel\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-base-line-section\" [class.line-start]=\"!preview\">\n <co-input-checkbox *ngIf=\"checkbox\" class=\"transaction-line-checkbox\" [class.hidden]=\"hideCheckbox\"\n [model]=\"checkboxValue\"\n (modelChange)=\"checkboxValueChanged.emit($event)\"\n ></co-input-checkbox>\n <co-transaction-line-image-and-description\n *ngIf=\"line.isArticle\" class=\"transaction-line-image-and-description-wrapper\"\n [preview]=\"preview\"\n [line]=\"line\"\n (handleDeleteLine)=\"deleteTransactionLineClick()\"\n ></co-transaction-line-image-and-description>\n </div>\n <div class=\"transaction-base-line-section\" [class.preview-margin]=\"preview\">\n <ng-content></ng-content>\n <div *ngIf=\"!preview && actionButtons\" class=\"transaction-line-buttons\">\n <co-transaction-line-action-buttons\n [showActionButtons]=\"selected\"\n [transactionLine]=\"line\"\n (waitingForUserAction)=\"waitingForUserAction.next($event)\"\n (sidePanelButtonClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-line-action-buttons>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <co-icon class=\"delete-icon\" [iconData]=\"iconCacheService.getIcon(icons.TrashCanLight)\" (click)=\"deleteTransactionLineClick()\"></co-icon>\n </div>\n </ng-container>\n </div>\n ",
|
|
20299
21153
|
encapsulation: i0.ViewEncapsulation.None
|
|
20300
21154
|
},] }
|
|
20301
21155
|
];
|
|
@@ -20993,6 +21847,33 @@
|
|
|
20993
21847
|
},] }
|
|
20994
21848
|
];
|
|
20995
21849
|
|
|
21850
|
+
var TransactionGoodsAllocationLineModule = /** @class */ (function () {
|
|
21851
|
+
function TransactionGoodsAllocationLineModule() {
|
|
21852
|
+
}
|
|
21853
|
+
return TransactionGoodsAllocationLineModule;
|
|
21854
|
+
}());
|
|
21855
|
+
TransactionGoodsAllocationLineModule.decorators = [
|
|
21856
|
+
{ type: i0.NgModule, args: [{
|
|
21857
|
+
imports: [
|
|
21858
|
+
common.CommonModule,
|
|
21859
|
+
TransactionBaseLineModule,
|
|
21860
|
+
TransactionLineWarehouseButtonModule,
|
|
21861
|
+
TransactionLineWarehouseLocationButtonModule,
|
|
21862
|
+
EditableLabelModule,
|
|
21863
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
21864
|
+
corecomponents_v12.InputCheckboxModule,
|
|
21865
|
+
corecomponents_v12.ObserveVisibilityModule,
|
|
21866
|
+
TransactionLineStatusbarModule
|
|
21867
|
+
],
|
|
21868
|
+
declarations: [
|
|
21869
|
+
TransactionGoodsAllocationLineComponent
|
|
21870
|
+
],
|
|
21871
|
+
exports: [
|
|
21872
|
+
TransactionGoodsAllocationLineComponent
|
|
21873
|
+
]
|
|
21874
|
+
},] }
|
|
21875
|
+
];
|
|
21876
|
+
|
|
20996
21877
|
var TransactionModule = /** @class */ (function () {
|
|
20997
21878
|
function TransactionModule() {
|
|
20998
21879
|
}
|
|
@@ -21026,7 +21907,8 @@
|
|
|
21026
21907
|
TransactionOrderDeliveryLineModule,
|
|
21027
21908
|
TransactionReceiveGoodsLineModule,
|
|
21028
21909
|
TransactionPurchaseLineModule,
|
|
21029
|
-
QuickSendButtonModule
|
|
21910
|
+
QuickSendButtonModule,
|
|
21911
|
+
TransactionGoodsAllocationLineModule
|
|
21030
21912
|
],
|
|
21031
21913
|
declarations: [
|
|
21032
21914
|
TransactionComponent
|
|
@@ -21061,13 +21943,18 @@
|
|
|
21061
21943
|
];
|
|
21062
21944
|
|
|
21063
21945
|
var TransactionSearchComponent = /** @class */ (function () {
|
|
21064
|
-
function TransactionSearchComponent(transactionSearchService) {
|
|
21946
|
+
function TransactionSearchComponent(transactionSearchService, _transactionEventService) {
|
|
21947
|
+
var _this = this;
|
|
21065
21948
|
this.transactionSearchService = transactionSearchService;
|
|
21949
|
+
this._transactionEventService = _transactionEventService;
|
|
21066
21950
|
this.searchViewModes = exports.SearchViewMode;
|
|
21067
21951
|
this.orientations = corecomponents_v12.CoOrientation;
|
|
21068
21952
|
this.directionRight = corecomponents_v12.CoDirection.Right;
|
|
21069
21953
|
this.transactionClick = new i0.EventEmitter();
|
|
21070
21954
|
this.searchViewModeChange = new i0.EventEmitter();
|
|
21955
|
+
this.createTransactionClick = new i0.EventEmitter();
|
|
21956
|
+
this._subs = [];
|
|
21957
|
+
this._subs.push(this._transactionEventService.createTransaction.subscribe(function () { return _this.createTransactionClick.emit(); }));
|
|
21071
21958
|
}
|
|
21072
21959
|
Object.defineProperty(TransactionSearchComponent.prototype, "transactionType", {
|
|
21073
21960
|
get: function () {
|
|
@@ -21083,6 +21970,9 @@
|
|
|
21083
21970
|
TransactionSearchComponent.prototype.showClass = function () {
|
|
21084
21971
|
return true;
|
|
21085
21972
|
};
|
|
21973
|
+
TransactionSearchComponent.prototype.ngOnDestroy = function () {
|
|
21974
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
21975
|
+
};
|
|
21086
21976
|
TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
|
|
21087
21977
|
if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
|
|
21088
21978
|
this.collapseSearchBar();
|
|
@@ -21148,12 +22038,14 @@
|
|
|
21148
22038
|
},] }
|
|
21149
22039
|
];
|
|
21150
22040
|
TransactionSearchComponent.ctorParameters = function () { return [
|
|
21151
|
-
{ type: TransactionSearchService }
|
|
22041
|
+
{ type: TransactionSearchService },
|
|
22042
|
+
{ type: TransactionEventService }
|
|
21152
22043
|
]; };
|
|
21153
22044
|
TransactionSearchComponent.propDecorators = {
|
|
21154
22045
|
transactionType: [{ type: i0.Input }],
|
|
21155
22046
|
transactionClick: [{ type: i0.Output }],
|
|
21156
22047
|
searchViewModeChange: [{ type: i0.Output }],
|
|
22048
|
+
createTransactionClick: [{ type: i0.Output }],
|
|
21157
22049
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
21158
22050
|
};
|
|
21159
22051
|
|
|
@@ -22133,10 +23025,11 @@
|
|
|
22133
23025
|
];
|
|
22134
23026
|
|
|
22135
23027
|
var TransactionSearchHeaderComponent = /** @class */ (function () {
|
|
22136
|
-
function TransactionSearchHeaderComponent(searchService, iconCacheService, _dictionary) {
|
|
23028
|
+
function TransactionSearchHeaderComponent(searchService, iconCacheService, _dictionary, _transactionEventService) {
|
|
22137
23029
|
this.searchService = searchService;
|
|
22138
23030
|
this.iconCacheService = iconCacheService;
|
|
22139
23031
|
this._dictionary = _dictionary;
|
|
23032
|
+
this._transactionEventService = _transactionEventService;
|
|
22140
23033
|
this.icon = Icon;
|
|
22141
23034
|
this.contentViewModes = ContentViewMode;
|
|
22142
23035
|
this.searchViewModes = exports.SearchViewMode;
|
|
@@ -22177,12 +23070,15 @@
|
|
|
22177
23070
|
TransactionSearchHeaderComponent.prototype.onViewModeChange = function (viewMode) {
|
|
22178
23071
|
this.viewModeChange.emit(viewMode);
|
|
22179
23072
|
};
|
|
23073
|
+
TransactionSearchHeaderComponent.prototype.handleAddTransactionClick = function () {
|
|
23074
|
+
this._transactionEventService.createTransaction.next();
|
|
23075
|
+
};
|
|
22180
23076
|
return TransactionSearchHeaderComponent;
|
|
22181
23077
|
}());
|
|
22182
23078
|
TransactionSearchHeaderComponent.decorators = [
|
|
22183
23079
|
{ type: i0.Component, args: [{
|
|
22184
23080
|
selector: "co-transaction-search-header",
|
|
22185
|
-
template: "\n <div class=\"transaction-search-header-wrapper\">\n <div class=\"upper-header\">\n <div class=\"header-buttons-wrapper\">\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\" >\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button small transparent\"\n (click)=\"onCloseClick()\">\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div class=\"header-searchbar-title\" [textContent]=\"label | localize\" *ngIf=\"fullscreen\" @showHideLabel></div>\n <co-input-search class=\"transaction-search-general\"\n [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n [centerLabel]=\"true\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"searchPlaceholder | localize\"\n [initFocus]=\"true\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n <div class=\"header-search-bar-button-wrapper\">\n <co-button class=\"transaction-search-filter-button\"\n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"filterButtonClick.emit()\">\n </co-button>\n <co-button [iconData]=\"fullscreen ? iconSlideIn : iconResize\"\n [ngClass]=\"!fullscreen ? 'small' : ''\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n </div>\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
|
|
23081
|
+
template: "\n <div class=\"transaction-search-header-wrapper\">\n <div class=\"upper-header\">\n <div class=\"header-buttons-wrapper\">\n <div class=\"close-search-button-wrapper button-wrapper\" *ngIf=\"!fullscreen\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\" >\n <co-button [iconData]=\"iconCancel\"\n class=\"toggle-sidebar-button small transparent\"\n (click)=\"onCloseClick()\">\n </co-button>\n </div>\n </div>\n </div>\n <div class=\"header-searchbar-wrapper\">\n <div class=\"header-searchbar-title\" [textContent]=\"label | localize\" *ngIf=\"fullscreen\" @showHideLabel></div>\n <co-icon class=\"transaction-add-button\" [iconData]=\"iconCacheService.getIcon(icon.PlusSimple)\"\n (click)=\"handleAddTransactionClick()\"></co-icon>\n <co-input-search class=\"transaction-search-general\"\n [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n [centerLabel]=\"true\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"searchPlaceholder | localize\"\n [initFocus]=\"true\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n <div class=\"header-search-bar-button-wrapper\">\n <co-button class=\"transaction-search-filter-button\"\n [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"filterButtonClick.emit()\">\n </co-button>\n <co-button [iconData]=\"fullscreen ? iconSlideIn : iconResize\"\n [ngClass]=\"!fullscreen ? 'small' : ''\"\n class=\"toggle-sidebar-button transparent\"\n (click)=\"onResizeClick()\"></co-button>\n </div>\n </div>\n <div class=\"view-mode-buttons-wrapper\">\n <co-view-mode-buttons\n *ngIf=\"fullscreen\"\n [showViewModes]=\"[contentViewModes.Tiles, contentViewModes.Grid]\"\n (viewModeChange)=\"onViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n ",
|
|
22186
23082
|
animations: [
|
|
22187
23083
|
animations.trigger("showHideLabel", [
|
|
22188
23084
|
animations.state("void", animations.style({ opacity: 0 })),
|
|
@@ -22196,7 +23092,8 @@
|
|
|
22196
23092
|
TransactionSearchHeaderComponent.ctorParameters = function () { return [
|
|
22197
23093
|
{ type: TransactionSearchService },
|
|
22198
23094
|
{ type: IconCacheService },
|
|
22199
|
-
{ type: DictionaryService }
|
|
23095
|
+
{ type: DictionaryService },
|
|
23096
|
+
{ type: TransactionEventService }
|
|
22200
23097
|
]; };
|
|
22201
23098
|
TransactionSearchHeaderComponent.propDecorators = {
|
|
22202
23099
|
transactionType: [{ type: i0.Input }],
|
|
@@ -22221,7 +23118,8 @@
|
|
|
22221
23118
|
PipeModule,
|
|
22222
23119
|
corecomponents_v12.ButtonModule,
|
|
22223
23120
|
corecomponents_v12.InputSearchModule,
|
|
22224
|
-
ViewModeButtonsModule
|
|
23121
|
+
ViewModeButtonsModule,
|
|
23122
|
+
corecomponents_v12.IconModule
|
|
22225
23123
|
],
|
|
22226
23124
|
declarations: [
|
|
22227
23125
|
TransactionSearchHeaderComponent
|
|
@@ -23248,151 +24146,164 @@
|
|
|
23248
24146
|
exports["ɵhe"] = TransactionHistoryGridStatusComponent;
|
|
23249
24147
|
exports["ɵhf"] = TransactionHistoryGridComponent;
|
|
23250
24148
|
exports["ɵhg"] = TransactionReceivingGoodsHistoryComponent;
|
|
23251
|
-
exports["ɵhh"] =
|
|
23252
|
-
exports["ɵhi"] =
|
|
23253
|
-
exports["ɵhj"] =
|
|
23254
|
-
exports["ɵhk"] =
|
|
23255
|
-
exports["ɵhl"] =
|
|
23256
|
-
exports["ɵhm"] =
|
|
23257
|
-
exports["ɵhn"] =
|
|
23258
|
-
exports["ɵho"] =
|
|
23259
|
-
exports["ɵhp"] =
|
|
23260
|
-
exports["ɵhq"] =
|
|
23261
|
-
exports["ɵhr"] =
|
|
23262
|
-
exports["ɵhs"] =
|
|
23263
|
-
exports["ɵht"] =
|
|
23264
|
-
exports["ɵhu"] =
|
|
23265
|
-
exports["ɵhv"] =
|
|
23266
|
-
exports["ɵhw"] =
|
|
23267
|
-
exports["ɵhx"] =
|
|
23268
|
-
exports["ɵhy"] =
|
|
23269
|
-
exports["ɵhz"] =
|
|
24149
|
+
exports["ɵhh"] = TransactionButtonBarModule;
|
|
24150
|
+
exports["ɵhi"] = AnimatedCheckboxModule;
|
|
24151
|
+
exports["ɵhj"] = AnimatedCheckboxComponent;
|
|
24152
|
+
exports["ɵhk"] = TransactionButtonBarComponent;
|
|
24153
|
+
exports["ɵhl"] = TransactionButtonBarButtonComponent;
|
|
24154
|
+
exports["ɵhm"] = TransactionButtonBarButtonBaseComponent;
|
|
24155
|
+
exports["ɵhn"] = TransactionSalesPurchaseButtonBarButtonComponent;
|
|
24156
|
+
exports["ɵho"] = TransactionLineSidePanelPurchaseModule;
|
|
24157
|
+
exports["ɵhp"] = DefaultOkCancelButtonsModule;
|
|
24158
|
+
exports["ɵhq"] = DefaultOkCancelButtonsComponent;
|
|
24159
|
+
exports["ɵhr"] = TransactionAvailableStockGridModule;
|
|
24160
|
+
exports["ɵhs"] = TransactionAvailableStockGridComponent;
|
|
24161
|
+
exports["ɵht"] = TransactionSidePanelEditRequestDetailsModule;
|
|
24162
|
+
exports["ɵhu"] = TransactionSidePanelEditRequestDetailsComponent;
|
|
24163
|
+
exports["ɵhv"] = AllocationRequestComponent;
|
|
24164
|
+
exports["ɵhw"] = ReceiveGoodsRequestComponent;
|
|
24165
|
+
exports["ɵhx"] = ArticleService;
|
|
24166
|
+
exports["ɵhy"] = TransactionLineSidePanelPurchaseComponent;
|
|
24167
|
+
exports["ɵhz"] = TransactionLineSidePanelSalesModule;
|
|
23270
24168
|
exports["ɵi"] = BusinessObjectCacheManagerService;
|
|
23271
|
-
exports["ɵia"] =
|
|
23272
|
-
exports["ɵib"] =
|
|
23273
|
-
exports["ɵic"] =
|
|
23274
|
-
exports["ɵid"] =
|
|
23275
|
-
exports["ɵie"] =
|
|
23276
|
-
exports["ɵif"] =
|
|
23277
|
-
exports["ɵig"] =
|
|
23278
|
-
exports["ɵih"] =
|
|
23279
|
-
exports["ɵii"] =
|
|
23280
|
-
exports["ɵij"] =
|
|
23281
|
-
exports["ɵik"] =
|
|
23282
|
-
exports["ɵil"] =
|
|
23283
|
-
exports["ɵim"] =
|
|
23284
|
-
exports["ɵin"] =
|
|
23285
|
-
exports["ɵio"] =
|
|
23286
|
-
exports["ɵip"] =
|
|
23287
|
-
exports["ɵiq"] =
|
|
23288
|
-
exports["ɵir"] =
|
|
23289
|
-
exports["ɵis"] =
|
|
23290
|
-
exports["ɵit"] =
|
|
23291
|
-
exports["ɵiu"] =
|
|
23292
|
-
exports["ɵiv"] =
|
|
23293
|
-
exports["ɵiw"] =
|
|
23294
|
-
exports["ɵix"] =
|
|
23295
|
-
exports["ɵiy"] =
|
|
23296
|
-
exports["ɵiz"] =
|
|
24169
|
+
exports["ɵia"] = TransactionAllocateGoodsHistoryModule;
|
|
24170
|
+
exports["ɵib"] = TransactionAllocateGoodsHistoryComponent;
|
|
24171
|
+
exports["ɵic"] = TransactionLineSidePanelSalesComponent;
|
|
24172
|
+
exports["ɵid"] = TransactionLineSidePanelComponent;
|
|
24173
|
+
exports["ɵie"] = DynamicBaseComponent;
|
|
24174
|
+
exports["ɵif"] = TransactionLineActionButtonsModule;
|
|
24175
|
+
exports["ɵig"] = TransactionArticleTextOverviewModule;
|
|
24176
|
+
exports["ɵih"] = TransactionArticleTextOverviewComponent;
|
|
24177
|
+
exports["ɵii"] = TransactionLineActionButtonsComponent;
|
|
24178
|
+
exports["ɵij"] = TransactionBaseGridComponent;
|
|
24179
|
+
exports["ɵik"] = TransactionGridBaseComponent;
|
|
24180
|
+
exports["ɵil"] = DialogTransactionLineCommissionCodeModule;
|
|
24181
|
+
exports["ɵim"] = DialogTransactionLineCommissionCodeComponent;
|
|
24182
|
+
exports["ɵin"] = DialogTransactionLineBaseComponent;
|
|
24183
|
+
exports["ɵio"] = DialogTransactionLineWarehouseModule;
|
|
24184
|
+
exports["ɵip"] = DialogTransactionLineWarehouseComponent;
|
|
24185
|
+
exports["ɵiq"] = DialogTransactionLineWarehouseCcModule;
|
|
24186
|
+
exports["ɵir"] = DialogTransactionLineWarehouseCcComponent;
|
|
24187
|
+
exports["ɵis"] = DialogTransactionLineDeliveryMethodModule;
|
|
24188
|
+
exports["ɵit"] = DialogTransactionLineDeliveryMethodComponent;
|
|
24189
|
+
exports["ɵiu"] = DialogTransactionLineVatModule;
|
|
24190
|
+
exports["ɵiv"] = DialogTransactionLineVatComponent;
|
|
24191
|
+
exports["ɵiw"] = DialogTransactionLineDiscountModule;
|
|
24192
|
+
exports["ɵix"] = DialogTransactionLinePriceListModule;
|
|
24193
|
+
exports["ɵiy"] = DialogTransactionLinePriceListComponent;
|
|
24194
|
+
exports["ɵiz"] = DialogTransactionLineDiscountComponent;
|
|
23297
24195
|
exports["ɵj"] = CacheField;
|
|
23298
|
-
exports["ɵja"] =
|
|
23299
|
-
exports["ɵjb"] =
|
|
23300
|
-
exports["ɵjc"] =
|
|
23301
|
-
exports["ɵjd"] =
|
|
23302
|
-
exports["ɵje"] =
|
|
23303
|
-
exports["ɵjf"] =
|
|
23304
|
-
exports["ɵjg"] =
|
|
23305
|
-
exports["ɵjh"] =
|
|
23306
|
-
exports["ɵji"] =
|
|
23307
|
-
exports["ɵjj"] =
|
|
23308
|
-
exports["ɵjk"] =
|
|
23309
|
-
exports["ɵjl"] =
|
|
23310
|
-
exports["ɵjm"] =
|
|
23311
|
-
exports["ɵjn"] =
|
|
23312
|
-
exports["ɵjo"] =
|
|
23313
|
-
exports["ɵjp"] =
|
|
23314
|
-
exports["ɵjq"] =
|
|
23315
|
-
exports["ɵjr"] =
|
|
23316
|
-
exports["ɵjs"] =
|
|
23317
|
-
exports["ɵjt"] =
|
|
23318
|
-
exports["ɵju"] =
|
|
23319
|
-
exports["ɵjv"] =
|
|
23320
|
-
exports["ɵjw"] =
|
|
23321
|
-
exports["ɵjx"] =
|
|
23322
|
-
exports["ɵjy"] =
|
|
23323
|
-
exports["ɵjz"] =
|
|
24196
|
+
exports["ɵja"] = TransactionLinesGridComponent;
|
|
24197
|
+
exports["ɵjb"] = DiscountModule;
|
|
24198
|
+
exports["ɵjc"] = DiscountComponent;
|
|
24199
|
+
exports["ɵjd"] = TransactionQuickAccessOverviewModule;
|
|
24200
|
+
exports["ɵje"] = DialogCatalogModule;
|
|
24201
|
+
exports["ɵjf"] = DialogCatalogComponent;
|
|
24202
|
+
exports["ɵjg"] = TransactionQuickAccessOverviewComponent;
|
|
24203
|
+
exports["ɵjh"] = TransactionQuickAccessOrderDeliveryModule;
|
|
24204
|
+
exports["ɵji"] = TransactionSendButtonDialogModule;
|
|
24205
|
+
exports["ɵjj"] = TransactionSendButtonDialogComponent;
|
|
24206
|
+
exports["ɵjk"] = TransactionQuickAccessOrderDeliveryComponent;
|
|
24207
|
+
exports["ɵjl"] = TransactionOrderDeliveryService;
|
|
24208
|
+
exports["ɵjm"] = TransactionQuickAccessOrderPurchaseModule;
|
|
24209
|
+
exports["ɵjn"] = TransactionQuickAccessOrderPurchaseComponent;
|
|
24210
|
+
exports["ɵjo"] = TransactionQuickAccessGoodsAllocationModule;
|
|
24211
|
+
exports["ɵjp"] = TransactionQuickAccessGoodsAllocationComponent;
|
|
24212
|
+
exports["ɵjq"] = TransactionAllocateGoodsService;
|
|
24213
|
+
exports["ɵjr"] = TransactionOrderConfirmationGridModule;
|
|
24214
|
+
exports["ɵjs"] = TransactionOrderConfirmationGridComponent;
|
|
24215
|
+
exports["ɵjt"] = TransactionReceivedGoodsGridModule;
|
|
24216
|
+
exports["ɵju"] = DialogTransactionLineWarehouseLocationModule;
|
|
24217
|
+
exports["ɵjv"] = TransactionLineWarehouseLocationModule;
|
|
24218
|
+
exports["ɵjw"] = TransactionLineWarehouseLocationComponent;
|
|
24219
|
+
exports["ɵjx"] = DialogTransactionLineWarehouseLocationComponent;
|
|
24220
|
+
exports["ɵjy"] = TransactionLineWarehouseLocationButtonModule;
|
|
24221
|
+
exports["ɵjz"] = TransactionLineWarehouseLocationButtonComponent;
|
|
23324
24222
|
exports["ɵk"] = SelectMultipleParameterizedCacheService;
|
|
23325
|
-
exports["ɵka"] =
|
|
23326
|
-
exports["ɵkb"] =
|
|
23327
|
-
exports["ɵkc"] =
|
|
23328
|
-
exports["ɵkd"] =
|
|
23329
|
-
exports["ɵke"] =
|
|
23330
|
-
exports["ɵkf"] =
|
|
23331
|
-
exports["ɵkg"] =
|
|
23332
|
-
exports["ɵkh"] =
|
|
23333
|
-
exports["ɵki"] =
|
|
23334
|
-
exports["ɵkj"] =
|
|
23335
|
-
exports["ɵkk"] =
|
|
23336
|
-
exports["ɵkl"] =
|
|
23337
|
-
exports["ɵkm"] =
|
|
23338
|
-
exports["ɵkn"] =
|
|
23339
|
-
exports["ɵko"] =
|
|
23340
|
-
exports["ɵkp"] =
|
|
23341
|
-
exports["ɵkq"] =
|
|
23342
|
-
exports["ɵkr"] =
|
|
23343
|
-
exports["ɵks"] =
|
|
23344
|
-
exports["ɵkt"] =
|
|
23345
|
-
exports["ɵku"] =
|
|
23346
|
-
exports["ɵkv"] =
|
|
23347
|
-
exports["ɵkw"] =
|
|
23348
|
-
exports["ɵkx"] =
|
|
23349
|
-
exports["ɵky"] =
|
|
23350
|
-
exports["ɵkz"] =
|
|
24223
|
+
exports["ɵka"] = TransactionReceivedGoodsGridComponent;
|
|
24224
|
+
exports["ɵkb"] = ViewModeButtonsModule;
|
|
24225
|
+
exports["ɵkc"] = ViewModeButtonsComponent;
|
|
24226
|
+
exports["ɵkd"] = TransactionGridModule;
|
|
24227
|
+
exports["ɵke"] = TransactionGridComponent;
|
|
24228
|
+
exports["ɵkf"] = TransactionTileModule;
|
|
24229
|
+
exports["ɵkg"] = TransactionTileComponent;
|
|
24230
|
+
exports["ɵkh"] = TransactionOverviewLineModule;
|
|
24231
|
+
exports["ɵki"] = EditableLabelModule;
|
|
24232
|
+
exports["ɵkj"] = EditableLabelComponent;
|
|
24233
|
+
exports["ɵkk"] = TransactionBaseLineModule;
|
|
24234
|
+
exports["ɵkl"] = TransactionBaseLineComponent;
|
|
24235
|
+
exports["ɵkm"] = TransactionLinesLineBaseComponent;
|
|
24236
|
+
exports["ɵkn"] = TransactionLineCommissionButtonModule;
|
|
24237
|
+
exports["ɵko"] = TransactionLineCommissionButtonComponent;
|
|
24238
|
+
exports["ɵkp"] = TransactionLineWarehouseButtonModule;
|
|
24239
|
+
exports["ɵkq"] = TransactionLineWarehouseButtonComponent;
|
|
24240
|
+
exports["ɵkr"] = TransactionLineDeliveryButtonModule;
|
|
24241
|
+
exports["ɵks"] = TransactionLineDeliveryButtonComponent;
|
|
24242
|
+
exports["ɵkt"] = TransactionLineDeliveryDateButtonModule;
|
|
24243
|
+
exports["ɵku"] = TransactionLineDeliveryDateButtonComponent;
|
|
24244
|
+
exports["ɵkv"] = TransactionLineAmountModule;
|
|
24245
|
+
exports["ɵkw"] = TransactionLineAmountComponent;
|
|
24246
|
+
exports["ɵkx"] = TransactionOverviewLineComponent;
|
|
24247
|
+
exports["ɵky"] = TransactionOrderDeliveryLineModule;
|
|
24248
|
+
exports["ɵkz"] = TransactionOrderDeliveryLineComponent;
|
|
23351
24249
|
exports["ɵl"] = ErrorService;
|
|
23352
|
-
exports["ɵla"] =
|
|
23353
|
-
exports["ɵlb"] =
|
|
23354
|
-
exports["ɵlc"] =
|
|
23355
|
-
exports["ɵld"] =
|
|
23356
|
-
exports["ɵle"] =
|
|
23357
|
-
exports["ɵlf"] =
|
|
23358
|
-
exports["ɵlg"] =
|
|
23359
|
-
exports["ɵlh"] =
|
|
23360
|
-
exports["ɵli"] =
|
|
23361
|
-
exports["ɵlj"] =
|
|
23362
|
-
exports["ɵlk"] =
|
|
23363
|
-
exports["ɵll"] =
|
|
23364
|
-
exports["ɵlm"] =
|
|
23365
|
-
exports["ɵln"] =
|
|
23366
|
-
exports["ɵlo"] =
|
|
23367
|
-
exports["ɵlp"] =
|
|
23368
|
-
exports["ɵlq"] =
|
|
23369
|
-
exports["ɵlr"] =
|
|
23370
|
-
exports["ɵls"] =
|
|
23371
|
-
exports["ɵlt"] =
|
|
23372
|
-
exports["ɵlu"] =
|
|
23373
|
-
exports["ɵlv"] =
|
|
23374
|
-
exports["ɵlw"] =
|
|
23375
|
-
exports["ɵlx"] =
|
|
23376
|
-
exports["ɵly"] =
|
|
23377
|
-
exports["ɵlz"] =
|
|
24250
|
+
exports["ɵla"] = TransactionReceiveGoodsLineModule;
|
|
24251
|
+
exports["ɵlb"] = TransactionReceiveGoodsLineComponent;
|
|
24252
|
+
exports["ɵlc"] = TransactionPurchaseLineModule;
|
|
24253
|
+
exports["ɵld"] = TransactionLineSupplierButtonModule;
|
|
24254
|
+
exports["ɵle"] = DialogTransactionLineSupplierModule;
|
|
24255
|
+
exports["ɵlf"] = DialogTransactionLineSupplierComponent;
|
|
24256
|
+
exports["ɵlg"] = TransactionLineSupplierButtonComponent;
|
|
24257
|
+
exports["ɵlh"] = TransactionPurchaseLineComponent;
|
|
24258
|
+
exports["ɵli"] = QuickSendButtonModule;
|
|
24259
|
+
exports["ɵlj"] = QuickSendButtonComponent;
|
|
24260
|
+
exports["ɵlk"] = TransactionGoodsAllocationLineModule;
|
|
24261
|
+
exports["ɵll"] = TransactionGoodsAllocationLineComponent;
|
|
24262
|
+
exports["ɵlm"] = TransactionSearchResultModule;
|
|
24263
|
+
exports["ɵln"] = TransactionSearchSalesOrderTileModule;
|
|
24264
|
+
exports["ɵlo"] = TransactionSearchSalesOrderTileComponent;
|
|
24265
|
+
exports["ɵlp"] = TransactionSearchTileBaseComponent;
|
|
24266
|
+
exports["ɵlq"] = TransactionSearchPurchaseOrderTileModule;
|
|
24267
|
+
exports["ɵlr"] = TransactionSearchPurchaseOrderTileComponent;
|
|
24268
|
+
exports["ɵls"] = TransactionSearchSalesOrderGridModule;
|
|
24269
|
+
exports["ɵlt"] = TransactionSearchSalesOrderGridComponent;
|
|
24270
|
+
exports["ɵlu"] = TransactionSearchGridBaseComponent;
|
|
24271
|
+
exports["ɵlv"] = TransactionSearchPurchaseOrderGridModule;
|
|
24272
|
+
exports["ɵlw"] = TransactionSearchPurchaseOrderGridComponent;
|
|
24273
|
+
exports["ɵlx"] = TransactionSearchHeaderModule;
|
|
24274
|
+
exports["ɵly"] = TransactionSearchHeaderComponent;
|
|
24275
|
+
exports["ɵlz"] = TransactionSearchGridModule;
|
|
23378
24276
|
exports["ɵm"] = SelectSingleCacheService;
|
|
23379
|
-
exports["ɵma"] =
|
|
23380
|
-
exports["ɵmb"] =
|
|
23381
|
-
exports["ɵmc"] =
|
|
23382
|
-
exports["ɵmd"] =
|
|
23383
|
-
exports["ɵme"] =
|
|
23384
|
-
exports["ɵmf"] =
|
|
23385
|
-
exports["ɵmg"] =
|
|
23386
|
-
exports["ɵmh"] =
|
|
23387
|
-
exports["ɵmi"] =
|
|
23388
|
-
exports["ɵmj"] =
|
|
23389
|
-
exports["ɵmk"] =
|
|
23390
|
-
exports["ɵml"] =
|
|
23391
|
-
exports["ɵmm"] =
|
|
23392
|
-
exports["ɵmn"] =
|
|
23393
|
-
exports["ɵmo"] =
|
|
23394
|
-
exports["ɵmp"] =
|
|
24277
|
+
exports["ɵma"] = TransactionSearchGridComponent;
|
|
24278
|
+
exports["ɵmb"] = TransactionSearchTileModule;
|
|
24279
|
+
exports["ɵmc"] = TransactionSearchTileComponent;
|
|
24280
|
+
exports["ɵmd"] = TransactionSearchResultComponent;
|
|
24281
|
+
exports["ɵme"] = TransactionSalesOrderFilterModule;
|
|
24282
|
+
exports["ɵmf"] = TransactionSalesOrderFilterContentOrderModule;
|
|
24283
|
+
exports["ɵmg"] = TransactionFilterItemModule;
|
|
24284
|
+
exports["ɵmh"] = TransactionFilterItemComponent;
|
|
24285
|
+
exports["ɵmi"] = TransactionSalesOrderFilterContentOrderComponent;
|
|
24286
|
+
exports["ɵmj"] = TransactionFilterContentBaseComponent;
|
|
24287
|
+
exports["ɵmk"] = FilterRequestService;
|
|
24288
|
+
exports["ɵml"] = TransactionSalesOrderFilterContentLogisticsModule;
|
|
24289
|
+
exports["ɵmm"] = TransactionFilterHistoricStateModule;
|
|
24290
|
+
exports["ɵmn"] = TransactionFilterHistoricStateComponent;
|
|
24291
|
+
exports["ɵmo"] = TransactionSalesOrderFilterContentLogisticsComponent;
|
|
24292
|
+
exports["ɵmp"] = TransactionSalesOrderFilterContentArticleModule;
|
|
24293
|
+
exports["ɵmq"] = TransactionSalesOrderFilterContentArticleComponent;
|
|
24294
|
+
exports["ɵmr"] = TransactionSalesOrderFilterComponent;
|
|
24295
|
+
exports["ɵms"] = TransactionFilterBaseComponent;
|
|
24296
|
+
exports["ɵmt"] = TransactionPurchaseOrderFilterModule;
|
|
24297
|
+
exports["ɵmu"] = TransactionPurchaseOrderFilterContentOrderModule;
|
|
24298
|
+
exports["ɵmv"] = TransactionPurchaseOrderFilterContentOrderComponent;
|
|
24299
|
+
exports["ɵmw"] = TransactionPurchaseOrderFilterContentLogisticsModule;
|
|
24300
|
+
exports["ɵmx"] = TransactionPurchaseOrderFilterContentLogisticsComponent;
|
|
24301
|
+
exports["ɵmy"] = TransactionPurchaseOrderFilterContentArticleModule;
|
|
24302
|
+
exports["ɵmz"] = TransactionPurchaseOrderFilterContentArticleComponent;
|
|
23395
24303
|
exports["ɵn"] = ArticleConnectorService;
|
|
24304
|
+
exports["ɵna"] = TransactionPurchaseOrderFilterComponent;
|
|
24305
|
+
exports["ɵnb"] = TransactionFilterModule;
|
|
24306
|
+
exports["ɵnc"] = TransactionFilterComponent;
|
|
23396
24307
|
exports["ɵo"] = TransactionEventService;
|
|
23397
24308
|
exports["ɵp"] = RelationConnectorService;
|
|
23398
24309
|
exports["ɵq"] = CoreModule;
|