@colijnit/transaction 12.1.15 → 12.1.18
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 +1755 -518
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +146 -136
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +147 -137
- package/esm2015/lib/assets/dictionary/text.properties.js +37 -2
- package/esm2015/lib/component/avatar/avatar.component.js +9 -6
- package/esm2015/lib/component/checkout/checkout.component.js +8 -7
- package/esm2015/lib/component/core/base/transaction-grid-base.component.js +5 -2
- package/esm2015/lib/component/core/relation/customer-groups.component.js +3 -3
- package/esm2015/lib/component/payment/payment.component.js +112 -30
- package/esm2015/lib/component/payment/payment.module.js +7 -3
- package/esm2015/lib/component/payment-tile/payment-tile.component.js +4 -2
- package/esm2015/lib/component/relation-address/relation-address.component.js +3 -3
- package/esm2015/lib/component/transaction/transaction.component.js +7 -3
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +2 -2
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +7 -2
- package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.component.js +3 -1
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +31 -14
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.js +131 -17
- package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.js +5 -3
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +2 -2
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +6 -2
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +19 -2
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +6 -3
- package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.js +16 -3
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +20 -8
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +49 -6
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.js +1 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +48 -10
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.js +4 -3
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +131 -19
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +5 -2
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +57 -11
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.js +6 -3
- package/esm2015/lib/component/transaction-search/service/filter-request.service.js +65 -22
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +1 -1
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +4 -7
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +83 -44
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +101 -112
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +6 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +86 -70
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +60 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.js +24 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +16 -6
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +4 -2
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +5 -6
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +2 -5
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +86 -0
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +26 -0
- package/esm2015/lib/component/view-mode-buttons/view-mode-buttons.component.js +5 -3
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/enum/position-grid-row.enum.js +6 -0
- package/esm2015/lib/enum/status-type.enum.js +3 -1
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/model/payment.viewmodel.js +6 -0
- package/esm2015/lib/model/received-goods-view-model.js +11 -0
- package/esm2015/lib/service/article-connector.service.js +113 -0
- package/esm2015/lib/service/article.service.js +25 -0
- package/esm2015/lib/service/options.service.js +3 -1
- package/esm2015/lib/service/payment.service.js +51 -0
- package/esm2015/lib/service/pending-reason.service.js +10 -6
- package/esm2015/lib/service/shared-connector.service.js +53 -0
- package/esm2015/lib/service/shared.service.js +38 -0
- package/esm2015/lib/service/transaction-connector.service.js +1051 -0
- package/esm2015/lib/service/transaction-event.service.js +29 -0
- package/esm2015/lib/service/transaction-image.service.js +5 -5
- package/esm2015/lib/service/transaction-mapping.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +36 -8
- package/fesm2015/colijnit-transaction.js +1707 -492
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/avatar.component.d.ts +4 -2
- package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +3 -3
- package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss +2 -2
- package/lib/component/core/base/transaction-grid-base.component.d.ts +2 -0
- package/lib/component/core/relation/customer-groups.component.d.ts +2 -2
- package/lib/component/payment/payment.component.d.ts +22 -5
- package/lib/component/payment/style/_layout.scss +23 -1
- package/lib/component/payment/style/_material-definition.scss +0 -1
- package/lib/component/payment/style/_theme.scss +24 -0
- package/lib/component/payment-tile/payment-tile.component.d.ts +1 -0
- package/lib/component/payment-tile/style/_layout.scss +2 -1
- package/lib/component/relation-address/relation-address.component.d.ts +2 -2
- package/lib/component/transaction/style/_material-definition.scss +1 -1
- package/lib/component/transaction/transaction.component.d.ts +2 -2
- package/lib/component/transaction-button-bar/style/_layout.scss +6 -3
- package/lib/component/transaction-button-bar/style/_material-definition.scss +4 -3
- package/lib/component/transaction-grid/transaction-base-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-grid/transaction-grid/transaction-grid.component.d.ts +1 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_layout.scss +8 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_material-definition.scss +1 -0
- package/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.d.ts +10 -5
- package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.d.ts +34 -1
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +5 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +1 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_theme.scss +8 -0
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +5 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +1 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +2 -0
- package/lib/component/transaction-history-grid-status/style/_layout.scss +7 -7
- package/lib/component/transaction-history-grid-status/style/_material-definition.scss +8 -0
- package/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.d.ts +2 -0
- package/lib/component/transaction-line/style/_layout.scss +2 -1
- package/lib/component/transaction-line/style/_material-definition.scss +4 -3
- package/lib/component/transaction-line/style/_theme.scss +5 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +7 -4
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +8 -3
- package/lib/component/transaction-line-side-panel-default/style/_layout.scss +3 -0
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +14 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +24 -1
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +4 -4
- package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +3 -1
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +27 -3
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +14 -1
- package/lib/component/transaction-search/service/filter-request.service.d.ts +15 -5
- package/lib/component/transaction-search/style/_material-definition.scss +3 -1
- package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +32 -9
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +1 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +11 -12
- package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +17 -19
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_layout.scss +9 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.d.ts +22 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +6 -2
- package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +6 -2
- package/lib/component/transaction-search-grid/style/_layout.scss +6 -0
- package/lib/component/transaction-search-grid/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-search-grid/style/material.scss +7 -0
- package/lib/component/transaction-search-grid/transaction-search-grid.component.d.ts +13 -0
- package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +2 -0
- package/lib/component/view-mode-buttons/style/_material-definition.scss +1 -1
- package/lib/component/view-mode-buttons/view-mode-buttons.component.d.ts +4 -3
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/enum/position-grid-row.enum.d.ts +4 -0
- package/lib/enum/status-type.enum.d.ts +3 -1
- package/lib/model/payment.viewmodel.d.ts +6 -0
- package/lib/model/received-goods-view-model.d.ts +10 -0
- package/lib/service/article-connector.service.d.ts +20 -0
- package/lib/service/article.service.d.ts +6 -0
- package/lib/service/options.service.d.ts +1 -0
- package/lib/service/payment.service.d.ts +9 -0
- package/lib/service/pending-reason.service.d.ts +5 -3
- package/lib/service/shared-connector.service.d.ts +12 -0
- package/lib/service/shared.service.d.ts +13 -0
- package/lib/service/{ione-connector-adapter.service.d.ts → transaction-connector.service.d.ts} +12 -2
- package/lib/service/transaction-event.service.d.ts +65 -0
- package/lib/service/transaction-image.service.d.ts +2 -2
- package/lib/service/transaction.service.d.ts +15 -2
- package/lib/style/_variables.scss +2 -0
- package/lib/style/transaction-globals.scss +2 -0
- package/package.json +3 -3
- package/esm2015/lib/enum/tab-category.enum.js +0 -10
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -970
- package/lib/enum/tab-category.enum.d.ts +0 -8
|
@@ -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/address-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('rxjs'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/co-domain-value.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/transaction-search-view.bo'), require('@colijnit/transactionapi/build/model/branch-lov.bo'), require('@colijnit/transactionapi/build/model/sales-person.bo'), require('@colijnit/transactionapi/build/model/tag'), require('@colijnit/transactionapi/build/model/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/code-description'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/animations'), require('@angular/platform-browser'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/relation-request'), require('@colijnit/transactionapi/build/enum/discount-type.enum'), require('@colijnit/transactionapi/build/model/transaction-search-view-request')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/nul-relation-object', 'rxjs', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/co-domain-value.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/transaction-search-view.bo', '@colijnit/transactionapi/build/model/branch-lov.bo', '@colijnit/transactionapi/build/model/sales-person.bo', '@colijnit/transactionapi/build/model/tag', '@colijnit/transactionapi/build/model/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/code-description', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/animations', '@angular/platform-browser', '@angular/common', '@angular/forms', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/relation-request', '@colijnit/transactionapi/build/enum/discount-type.enum', '@colijnit/transactionapi/build/model/transaction-search-view-request'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.addressType_enum, global.pendingReasonType_enum, global.sequenceName_enum, global.transactionKind_enum, global.transactionLineType_enum, global.nulRelationObject, global.rxjs, global.transactionInfoResponse_bo, global.customerFullObject_bo, global.relationPrivacySetting_bo, global.deliveryMethod_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.coDomainValue_bo, global.articleFullObject, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.transactionLineInfo_bo, global.cashRegister, global.priceList, global.vat, global.transactionSearchView_bo, global.branchLov_bo, global.salesPerson_bo, global.tag, global.onHoldCode_bo, global.warehouse_bo, global.codeDescription, global.relationStatus_enum, global.resolvePendingReasonRequest_bo, global.corecomponents_v12, global.ng.flexLayout, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.animations, global.ng.platformBrowser, global.ng.common, global.ng.forms, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.stockStatus_enum, global.relationRequest, global.discountType_enum, global.transactionSearchViewRequest));
|
|
5
|
-
})(this, (function (exports, i0, addressType_enum, pendingReasonType_enum, sequenceName_enum, transactionKind_enum, transactionLineType_enum, nulRelationObject, rxjs, transactionInfoResponse_bo, customerFullObject_bo, relationPrivacySetting_bo, deliveryMethod_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, coDomainValue_bo, articleFullObject, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, transactionLineInfo_bo, cashRegister, priceList, vat, transactionSearchView_bo, branchLov_bo, salesPerson_bo, tag, onHoldCode_bo, warehouse_bo, codeDescription, relationStatus_enum, resolvePendingReasonRequest_bo, corecomponents_v12, flexLayout, communicationType_enum, contactOption_bo, relationNameKind_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, animations, i1, common, forms, dragDrop, transactionAddTextLineRequest_bo, stockStatus_enum, relationRequest, discountType_enum, transactionSearchViewRequest) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('rxjs'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/co-domain-value.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/transaction-search-view.bo'), require('@colijnit/transactionapi/build/model/branch-lov.bo'), require('@colijnit/transactionapi/build/model/sales-person.bo'), require('@colijnit/transactionapi/build/model/tag'), require('@colijnit/transactionapi/build/model/on-hold-code.bo'), require('@colijnit/transactionapi/build/model/warehouse.bo'), require('@colijnit/transactionapi/build/model/code-description'), require('@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo'), require('@colijnit/transactionapi/build/model/payment-method.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-light.bo'), require('@colijnit/articleapi/build/model/turnover-group-image.bo'), require('@colijnit/articleapi/build/model/main-article.bo'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/animations'), require('@angular/platform-browser'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/relation-request'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/co-document.bo'), require('@colijnit/sharedcomponents'), require('@colijnit/transactionapi/build/enum/discount-type.enum'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo'), require('@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo'), require('@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo'), require('@colijnit/transactionapi/build/model/goods-receipt-status.bo'), require('@colijnit/transactionapi/build/model/transaction-search-view-request'), require('@colijnit/transactionapi/build/enum/relation-kind.enum'), 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/address-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/nul-relation-object', 'rxjs', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/co-domain-value.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/transaction-search-view.bo', '@colijnit/transactionapi/build/model/branch-lov.bo', '@colijnit/transactionapi/build/model/sales-person.bo', '@colijnit/transactionapi/build/model/tag', '@colijnit/transactionapi/build/model/on-hold-code.bo', '@colijnit/transactionapi/build/model/warehouse.bo', '@colijnit/transactionapi/build/model/code-description', '@colijnit/transactionapi/build/model/goods-receipt-status-with-history.bo', '@colijnit/transactionapi/build/model/payment-method.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-light.bo', '@colijnit/articleapi/build/model/turnover-group-image.bo', '@colijnit/articleapi/build/model/main-article.bo', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/animations', '@angular/platform-browser', '@angular/common', '@angular/forms', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/relation-request', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/co-document.bo', '@colijnit/sharedcomponents', '@colijnit/transactionapi/build/enum/discount-type.enum', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo', '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo', '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo', '@colijnit/transactionapi/build/model/goods-receipt-status.bo', '@colijnit/transactionapi/build/model/transaction-search-view-request', '@colijnit/transactionapi/build/enum/relation-kind.enum', '@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.addressType_enum, global.pendingReasonType_enum, global.sequenceName_enum, global.transactionKind_enum, global.transactionLineType_enum, global.nulRelationObject, global.rxjs, global.transactionInfoResponse_bo, global.customerFullObject_bo, global.relationPrivacySetting_bo, global.deliveryMethod_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.coDomainValue_bo, global.articleFullObject, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.transactionLineInfo_bo, global.cashRegister, global.priceList, global.vat, global.transactionSearchView_bo, global.branchLov_bo, global.salesPerson_bo, global.tag, global.onHoldCode_bo, global.warehouse_bo, global.codeDescription, global.goodsReceiptStatusWithHistory_bo, global.paymentMethod_bo, global.relationStatus_enum, global.resolvePendingReasonRequest_bo, global.articles, global.stockLocation_bo, global.articleLight_bo, global.turnoverGroupImage_bo, global.mainArticle_bo, global.corecomponents_v12, global.ng.flexLayout, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.animations, global.ng.platformBrowser, global.ng.common, global.ng.forms, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.stockStatus_enum, global.relationRequest, global.sharedapi, global.coDocument_bo, global.sharedcomponents, global.discountType_enum, global.receiveGoodsForPurchaseOrderCorrectionRequest_bo, global.purchaseOrderLineReceiptCorrectionDetails_bo, global.purchaseOrderLineReceiptDetails_bo, global.receiveGoodsForPurchaseOrderRequest_bo, global.goodsReceiptStatus_bo, global.transactionSearchViewRequest, global.relationKind_enum, global.articleExtendedRequest, global.quantityInHistoricState_enum));
|
|
5
|
+
})(this, (function (exports, i0, addressType_enum, pendingReasonType_enum, sequenceName_enum, transactionKind_enum, transactionLineType_enum, nulRelationObject, rxjs, transactionInfoResponse_bo, customerFullObject_bo, relationPrivacySetting_bo, deliveryMethod_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, coDomainValue_bo, articleFullObject, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, transactionLineInfo_bo, cashRegister, priceList, vat, transactionSearchView_bo, branchLov_bo, salesPerson_bo, tag, onHoldCode_bo, warehouse_bo, codeDescription, goodsReceiptStatusWithHistory_bo, paymentMethod_bo, relationStatus_enum, resolvePendingReasonRequest_bo, articles, stockLocation_bo, articleLight_bo, turnoverGroupImage_bo, mainArticle_bo, corecomponents_v12, flexLayout, communicationType_enum, contactOption_bo, relationNameKind_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, animations, i1, common, forms, dragDrop, transactionAddTextLineRequest_bo, stockStatus_enum, relationRequest, sharedapi, coDocument_bo, sharedcomponents, discountType_enum, receiveGoodsForPurchaseOrderCorrectionRequest_bo, purchaseOrderLineReceiptCorrectionDetails_bo, purchaseOrderLineReceiptDetails_bo, receiveGoodsForPurchaseOrderRequest_bo, goodsReceiptStatus_bo, transactionSearchViewRequest, relationKind_enum, articleExtendedRequest, quantityInHistoricState_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -430,6 +430,7 @@
|
|
|
430
430
|
"ACCOUNT_DETAILS": "Accountgegevens",
|
|
431
431
|
"ACCOUNT_EXPLANATION": "Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. " +
|
|
432
432
|
"Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",
|
|
433
|
+
"ACTIVE": "Actief",
|
|
433
434
|
"ADD_ARTICLE_LINE_UP": "Artikelregel boven toevoegen",
|
|
434
435
|
"ADD_ARTICLE_LINE_DOWN": "Artikelregel onder toevoegen",
|
|
435
436
|
"ADD_ARTICLE_TEXT_LINE_UP": "Tekstregel boven toevoegen",
|
|
@@ -492,6 +493,7 @@
|
|
|
492
493
|
"CUSTOMER_NAME": "Klantnaam",
|
|
493
494
|
"DATE": "Datum",
|
|
494
495
|
"DATE_OF_BIRTH": "Geboortedatum",
|
|
496
|
+
"DEFINITIVE": "Definitief",
|
|
495
497
|
"DELETE_TRANSACTION_LINE": "verwijderen",
|
|
496
498
|
"DELETE_TRANSACTION_LINE_HINT": "Verwijderen transactieregel",
|
|
497
499
|
"DELETE_TRANSACTION_LINE_FAILED": "Het verwijderen van de transactieregel is mislukt",
|
|
@@ -504,6 +506,7 @@
|
|
|
504
506
|
"DELIVERY_COSTS": "Bezorgkosten",
|
|
505
507
|
"DELIVERY_DATA": "Levergegevens",
|
|
506
508
|
"DELIVERY_DATE": "Leverdatum",
|
|
509
|
+
"DELIVERY_DATE_DEFINITIVE": "Leverdatum definitief",
|
|
507
510
|
"DELIVERY_DATE_FINAL": "Definitieve leverdatum",
|
|
508
511
|
"DELIVERY_DIRECT": "Direct leverbaar",
|
|
509
512
|
"DELIVERY_LOCATION": "Bezorgingslocatie",
|
|
@@ -536,6 +539,12 @@
|
|
|
536
539
|
"FABRICATION_COST_LINE_TOTAL": "Fabricageprijs regeltotaal",
|
|
537
540
|
"FEMALE": "Vrouw",
|
|
538
541
|
"FIRST_NAME": "Voornaam",
|
|
542
|
+
"FREE": "Gratis",
|
|
543
|
+
"FULLY_ALLOCATED": "Volledig toegewezen",
|
|
544
|
+
"FULLY_DELIVERED": "Volledig geleverd",
|
|
545
|
+
"FULLY_INVOICED": "Volledig gefactureerd",
|
|
546
|
+
"FULLY_TO_BE_PICKED": "Volledig te picken",
|
|
547
|
+
"FULLY_PICKED": "Volledig gepickt",
|
|
539
548
|
"GROSS_PRICE": "Bruto prijs",
|
|
540
549
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
541
550
|
"HANDLED_BY": "Verkoper",
|
|
@@ -575,6 +584,11 @@
|
|
|
575
584
|
"NO_IMAGE": "Geen afbeelding",
|
|
576
585
|
"NOT_AFTER": "Niet later dan",
|
|
577
586
|
"NOT_BEFORE": "Niet eerder dan",
|
|
587
|
+
"NOTHING_ALLOCATED": "Niets toegewezen",
|
|
588
|
+
"NOTHING_DELIVERED": "Niets geleverd",
|
|
589
|
+
"NOTHING_INVOICED": "Niets gefactureerd",
|
|
590
|
+
"NOTHING_TO_BE_PICKED": "Niets te picken",
|
|
591
|
+
"NOTHING_PICKED": "Niets gepickt",
|
|
578
592
|
"NR": "Nummer",
|
|
579
593
|
"NUMBER": "Aantal",
|
|
580
594
|
"ON_DATE": "Op datum",
|
|
@@ -591,6 +605,7 @@
|
|
|
591
605
|
"ORDER_RULESET": "Orderregelset",
|
|
592
606
|
"ORDER_TOTAL": "Ordertotaal",
|
|
593
607
|
"ORDER_TYPE": "Type bestelling",
|
|
608
|
+
"ORDERED": "Besteld",
|
|
594
609
|
"OTHER": "Overig",
|
|
595
610
|
"OVERVIEW": "Overzicht",
|
|
596
611
|
"OWN_REFERENCE": "Eigen referentie",
|
|
@@ -598,9 +613,15 @@
|
|
|
598
613
|
"PAID_DOWN2": "Aanbetaald",
|
|
599
614
|
"PART_DELIVERY": "Deellevering",
|
|
600
615
|
"PART_DELIVERIES": "Deelleveringen",
|
|
616
|
+
"PARTLY_ALLOCATED": "Gedeeltelijk toegewezen",
|
|
617
|
+
"PARTLY_DELIVERED": "Gedeeltelijk geleverd",
|
|
618
|
+
"PARTLY_INVOICED": "Gedeeltelijk gefactureerd",
|
|
619
|
+
"PARTLY_TO_BE_PICKED": "Gedeeltelijk te picken",
|
|
620
|
+
"PARTLY_PICKED": "Gedeeltelijk gepickt",
|
|
601
621
|
"PASSWORD": "Wachtwoord",
|
|
602
622
|
"PAY": "Betalen",
|
|
603
623
|
"PAYMENT": "Betaling",
|
|
624
|
+
"PAYMENT_METHOD": "Betaalmethode",
|
|
604
625
|
"PERSONAL_DATA": "Basisgegevens",
|
|
605
626
|
"PICKED": "Gepickt",
|
|
606
627
|
"PHONE_NO": "Telefoonnummer",
|
|
@@ -640,6 +661,8 @@
|
|
|
640
661
|
"SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
|
|
641
662
|
"SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
|
|
642
663
|
"SELECT": "Selecteren",
|
|
664
|
+
"SELECT_A": "Selecteer een",
|
|
665
|
+
"SELECT_CASH_REGISTER": "Selecteer kassa",
|
|
643
666
|
"SELECT_DATE": "Selecteer een start- en einddatum",
|
|
644
667
|
"SERIAL_NUMBER": "Serienummer",
|
|
645
668
|
"SERVICE_NUMBER": "Servicenummer",
|
|
@@ -664,13 +687,15 @@
|
|
|
664
687
|
"STREET": "Straatnaam",
|
|
665
688
|
"TAGS": "Tags",
|
|
666
689
|
"TEXT_ARTICLE_BOUND": "Text bij artikel |~",
|
|
690
|
+
"TO_REPORT_IN": 'Binnen te melden',
|
|
667
691
|
"TO_BE_PICKED": "Te picken",
|
|
668
692
|
"TO_DELIVER": "Te leveren",
|
|
693
|
+
"TO_PAY": "Te betalen",
|
|
669
694
|
"TOTAL_AMOUNT": "Totaalbedrag",
|
|
670
695
|
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
671
696
|
"TOTAL_GROSS": "Totaal bruto",
|
|
672
697
|
"TOTAL_LINE_DISCOUNT": "Totale regelkorting",
|
|
673
|
-
"TRANSACTION_DATE": "
|
|
698
|
+
"TRANSACTION_DATE": "Orderdatum",
|
|
674
699
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
675
700
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
676
701
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
@@ -700,6 +725,7 @@
|
|
|
700
725
|
"en": {
|
|
701
726
|
"ACCOUNT_DETAILS": "Account details",
|
|
702
727
|
"ACCOUNT_EXPLANATION": "E-mailaddress and password are needed to gain access to the data. We also notify you on this e-mailaddress about the order status",
|
|
728
|
+
"ACTIVE": "Active",
|
|
703
729
|
"ADD_ARTICLE_LINE_UP": "Add article line up",
|
|
704
730
|
"ADD_ARTICLE_LINE_DOWN": "Add article line down",
|
|
705
731
|
"ADD_ARTICLE_TEXT_LINE_UP": "Add text line up",
|
|
@@ -760,6 +786,7 @@
|
|
|
760
786
|
"CUSTOMER_NAME": "Customer name",
|
|
761
787
|
"DATE": "Date",
|
|
762
788
|
"DATE_OF_BIRTH": "Date of birth",
|
|
789
|
+
"DEFINITIVE": "Definitive",
|
|
763
790
|
"DELETE_TRANSACTION_LINE": "Delete transaction line verwijderen?",
|
|
764
791
|
"DELETE_TRANSACTION_LINE_HINT": "Delete transaction line",
|
|
765
792
|
"DELETE_TRANSACTION_LINE_FAILED": "Deletion of transaction line has failed",
|
|
@@ -771,6 +798,7 @@
|
|
|
771
798
|
"DELIVERY_COSTS": "Delivery costs",
|
|
772
799
|
"DELIVERY_DATA": "Deliverydata",
|
|
773
800
|
"DELIVERY_DATE": "Delivery date",
|
|
801
|
+
"DELIVERY_DATE_DEFINITIVE": "Delivery date definitive",
|
|
774
802
|
"DELIVERY_DATE_FINAL": "Final delivery date",
|
|
775
803
|
"DELIVERY_DIRECT": "Direct delivery",
|
|
776
804
|
"DELIVERY_LOCATION": "Delivery location",
|
|
@@ -802,6 +830,7 @@
|
|
|
802
830
|
"FABRICATION_COST_LINE_TOTAL": "Fabricationcost linetotal",
|
|
803
831
|
"FEMALE": "Female",
|
|
804
832
|
"FIRST_NAME": "First name",
|
|
833
|
+
"FREE": "Free",
|
|
805
834
|
"GOOD_DESCRIPTION": "Article description",
|
|
806
835
|
"GROSS_PRICE": "Gross price",
|
|
807
836
|
"HANDLED_BY": "Handled by",
|
|
@@ -857,6 +886,7 @@
|
|
|
857
886
|
"ORDER_RULESET": "Orderruleset",
|
|
858
887
|
"ORDER_TOTAAL": "Order total",
|
|
859
888
|
"ORDER_TYPE": "Order type",
|
|
889
|
+
"ORDERED": "Ordered",
|
|
860
890
|
"OTHER": "Other",
|
|
861
891
|
"OVERVIEW": "Overview",
|
|
862
892
|
"OWN_REFERENCE": "Own reference",
|
|
@@ -867,6 +897,7 @@
|
|
|
867
897
|
"PASSWORD": "Password",
|
|
868
898
|
"PAY": "Pay",
|
|
869
899
|
"PAYMENT": "Payment",
|
|
900
|
+
"PAYMENT_METHOD": "Payment method",
|
|
870
901
|
"PERSONAL_DATA": "Personal data",
|
|
871
902
|
"PHONE_NO": "Telephone number",
|
|
872
903
|
"PLANNING": "Planning",
|
|
@@ -897,6 +928,8 @@
|
|
|
897
928
|
"SEARCH_ADD_ARTICLE": "Search and add article",
|
|
898
929
|
"SEARCH_IN_COLLECTION": "Search in collection...",
|
|
899
930
|
"SELECT": "Select",
|
|
931
|
+
"SELECT_A": "Select a",
|
|
932
|
+
"SELECT_CASH_REGISTER": "Select cash register",
|
|
900
933
|
"SELECT_DATE_RANGE": "Select a date range",
|
|
901
934
|
"SERIAL_NUMBER": "Serial number",
|
|
902
935
|
"SERVICE_NUMBER": "Service number",
|
|
@@ -920,8 +953,10 @@
|
|
|
920
953
|
"STATE": "STATUS",
|
|
921
954
|
"STREET": "Streetname",
|
|
922
955
|
"TAGS": "Tags",
|
|
956
|
+
"TO_REPORT_IN": 'To report in',
|
|
923
957
|
"TO_BE_PICKED": "Te be picked",
|
|
924
958
|
"TO_DELIVER": "To deliver",
|
|
959
|
+
"TO_PAY": "To pay",
|
|
925
960
|
"TOTAL_AMOUNT": "Total amount",
|
|
926
961
|
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
927
962
|
"TOTAL_GROSS": "Gross total",
|
|
@@ -1046,6 +1081,7 @@
|
|
|
1046
1081
|
var OptionsService = /** @class */ (function () {
|
|
1047
1082
|
function OptionsService(_dictionary) {
|
|
1048
1083
|
this._dictionary = _dictionary;
|
|
1084
|
+
this.optionsInitialized = new rxjs.BehaviorSubject(false);
|
|
1049
1085
|
this.optionsLoaded = new rxjs.BehaviorSubject(false);
|
|
1050
1086
|
}
|
|
1051
1087
|
Object.defineProperty(OptionsService.prototype, "options", {
|
|
@@ -1106,6 +1142,7 @@
|
|
|
1106
1142
|
return [4 /*yield*/, this._dictionary.setDictionary(this.options.languageCode)];
|
|
1107
1143
|
case 2:
|
|
1108
1144
|
_a.sent();
|
|
1145
|
+
this.optionsInitialized.next(true);
|
|
1109
1146
|
_a.label = 3;
|
|
1110
1147
|
case 3: return [2 /*return*/];
|
|
1111
1148
|
}
|
|
@@ -1846,22 +1883,23 @@
|
|
|
1846
1883
|
},] }
|
|
1847
1884
|
];
|
|
1848
1885
|
|
|
1849
|
-
var
|
|
1850
|
-
function
|
|
1886
|
+
var TransactionConnectorService = /** @class */ (function () {
|
|
1887
|
+
function TransactionConnectorService(_optionsService, _collectionService) {
|
|
1851
1888
|
this._optionsService = _optionsService;
|
|
1852
1889
|
this._collectionService = _collectionService;
|
|
1853
1890
|
this._boFactory = new BusinessObjectFactory();
|
|
1854
1891
|
this._countryList = [];
|
|
1855
1892
|
}
|
|
1856
|
-
|
|
1893
|
+
TransactionConnectorService.prototype.connect = function () {
|
|
1857
1894
|
return __awaiter(this, void 0, void 0, function () {
|
|
1858
1895
|
return __generator(this, function (_a) {
|
|
1859
1896
|
this.connector = new transaction.Transaction(this._optionsService.options);
|
|
1897
|
+
this._optionsService.options.session = this.connector.session;
|
|
1860
1898
|
return [2 /*return*/];
|
|
1861
1899
|
});
|
|
1862
1900
|
});
|
|
1863
1901
|
};
|
|
1864
|
-
|
|
1902
|
+
TransactionConnectorService.prototype.getArticleFullObject = function (goodId) {
|
|
1865
1903
|
return __awaiter(this, void 0, void 0, function () {
|
|
1866
1904
|
var _this = this;
|
|
1867
1905
|
return __generator(this, function (_a) {
|
|
@@ -1880,7 +1918,7 @@
|
|
|
1880
1918
|
});
|
|
1881
1919
|
});
|
|
1882
1920
|
};
|
|
1883
|
-
|
|
1921
|
+
TransactionConnectorService.prototype.getGoodIdFromArticleNr = function (articleNr) {
|
|
1884
1922
|
var _this = this;
|
|
1885
1923
|
return new Promise(function (resolve, reject) {
|
|
1886
1924
|
return _this.connector.getGoodIdFromArticleNr(articleNr).then(function (result) {
|
|
@@ -1893,7 +1931,7 @@
|
|
|
1893
1931
|
});
|
|
1894
1932
|
});
|
|
1895
1933
|
};
|
|
1896
|
-
|
|
1934
|
+
TransactionConnectorService.prototype.getSingleImage = function (nodeId, publication, includeMimetype, thumb) {
|
|
1897
1935
|
var _this = this;
|
|
1898
1936
|
return new Promise(function (resolve, reject) {
|
|
1899
1937
|
return _this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then(function (result) {
|
|
@@ -1919,21 +1957,7 @@
|
|
|
1919
1957
|
});
|
|
1920
1958
|
});
|
|
1921
1959
|
};
|
|
1922
|
-
|
|
1923
|
-
var _this = this;
|
|
1924
|
-
if (thumbnail === void 0) { thumbnail = true; }
|
|
1925
|
-
return new Promise(function (resolve, reject) {
|
|
1926
|
-
return _this.connector.getDocumentContent(id, thumbnail).then(function (result) {
|
|
1927
|
-
if (result.validationResult && result.validationResult.success) {
|
|
1928
|
-
resolve(result.resultObject.documentContent);
|
|
1929
|
-
}
|
|
1930
|
-
else {
|
|
1931
|
-
reject(result.validationMessagesAsString);
|
|
1932
|
-
}
|
|
1933
|
-
});
|
|
1934
|
-
});
|
|
1935
|
-
};
|
|
1936
|
-
IOneConnectorAdapterService.prototype.getCountries = function () {
|
|
1960
|
+
TransactionConnectorService.prototype.getCountries = function () {
|
|
1937
1961
|
var _this = this;
|
|
1938
1962
|
if (this._countryList.length > 0) {
|
|
1939
1963
|
return new Promise(function (resolve) {
|
|
@@ -1952,7 +1976,7 @@
|
|
|
1952
1976
|
});
|
|
1953
1977
|
});
|
|
1954
1978
|
};
|
|
1955
|
-
|
|
1979
|
+
TransactionConnectorService.prototype.getCustomerGroups = function () {
|
|
1956
1980
|
return __awaiter(this, void 0, void 0, function () {
|
|
1957
1981
|
var response;
|
|
1958
1982
|
return __generator(this, function (_a) {
|
|
@@ -1971,7 +1995,7 @@
|
|
|
1971
1995
|
});
|
|
1972
1996
|
});
|
|
1973
1997
|
};
|
|
1974
|
-
|
|
1998
|
+
TransactionConnectorService.prototype.getCountry = function (countryCode) {
|
|
1975
1999
|
return __awaiter(this, void 0, void 0, function () {
|
|
1976
2000
|
return __generator(this, function (_a) {
|
|
1977
2001
|
switch (_a.label) {
|
|
@@ -1983,7 +2007,7 @@
|
|
|
1983
2007
|
});
|
|
1984
2008
|
});
|
|
1985
2009
|
};
|
|
1986
|
-
|
|
2010
|
+
TransactionConnectorService.prototype.getPrivacySettings = function () {
|
|
1987
2011
|
var _this = this;
|
|
1988
2012
|
return new Promise(function (resolve, reject) {
|
|
1989
2013
|
return _this.connector.getPrivacySettings().then(function (result) {
|
|
@@ -1996,7 +2020,7 @@
|
|
|
1996
2020
|
});
|
|
1997
2021
|
});
|
|
1998
2022
|
};
|
|
1999
|
-
|
|
2023
|
+
TransactionConnectorService.prototype.getRelationPrivacySettings = function () {
|
|
2000
2024
|
return __awaiter(this, void 0, void 0, function () {
|
|
2001
2025
|
var privacySettings, basePrivacySettings, i, len, basePrivSetting, newRelPrivSet;
|
|
2002
2026
|
return __generator(this, function (_a) {
|
|
@@ -2017,7 +2041,7 @@
|
|
|
2017
2041
|
});
|
|
2018
2042
|
});
|
|
2019
2043
|
};
|
|
2020
|
-
|
|
2044
|
+
TransactionConnectorService.prototype.getMarketingCodes = function () {
|
|
2021
2045
|
var _this = this;
|
|
2022
2046
|
return new Promise(function (resolve, reject) {
|
|
2023
2047
|
return _this.connector.getMarketingCodes().then(function (result) {
|
|
@@ -2030,7 +2054,7 @@
|
|
|
2030
2054
|
});
|
|
2031
2055
|
});
|
|
2032
2056
|
};
|
|
2033
|
-
|
|
2057
|
+
TransactionConnectorService.prototype.createTransaction = function (kind, branchNr) {
|
|
2034
2058
|
var _this = this;
|
|
2035
2059
|
return new Promise(function (resolve, reject) {
|
|
2036
2060
|
return _this.connector.createTransaction(kind, branchNr).then(function (result) {
|
|
@@ -2043,7 +2067,7 @@
|
|
|
2043
2067
|
});
|
|
2044
2068
|
});
|
|
2045
2069
|
};
|
|
2046
|
-
|
|
2070
|
+
TransactionConnectorService.prototype.getArticleBoundTextLinesOfArticleLine = function (articleLineUuid) {
|
|
2047
2071
|
return __awaiter(this, void 0, void 0, function () {
|
|
2048
2072
|
var result;
|
|
2049
2073
|
return __generator(this, function (_a) {
|
|
@@ -2062,7 +2086,7 @@
|
|
|
2062
2086
|
});
|
|
2063
2087
|
});
|
|
2064
2088
|
};
|
|
2065
|
-
|
|
2089
|
+
TransactionConnectorService.prototype.getTransactionByNrAndKind = function (kind, transactionNo) {
|
|
2066
2090
|
var _this = this;
|
|
2067
2091
|
return new Promise(function (resolve, reject) {
|
|
2068
2092
|
return _this.connector.getTransactionByNrAndKind(kind, transactionNo).then(function (result) {
|
|
@@ -2075,7 +2099,7 @@
|
|
|
2075
2099
|
});
|
|
2076
2100
|
});
|
|
2077
2101
|
};
|
|
2078
|
-
|
|
2102
|
+
TransactionConnectorService.prototype.getTransactionById = function (transactionId) {
|
|
2079
2103
|
var _this = this;
|
|
2080
2104
|
return new Promise(function (resolve, reject) {
|
|
2081
2105
|
return _this.connector.getTransactionById(transactionId).then(function (result) {
|
|
@@ -2088,10 +2112,10 @@
|
|
|
2088
2112
|
});
|
|
2089
2113
|
});
|
|
2090
2114
|
};
|
|
2091
|
-
|
|
2115
|
+
TransactionConnectorService.prototype.commit = function () {
|
|
2092
2116
|
return this.connector.commit();
|
|
2093
2117
|
};
|
|
2094
|
-
|
|
2118
|
+
TransactionConnectorService.prototype.saveTransaction = function (uuid) {
|
|
2095
2119
|
var _this = this;
|
|
2096
2120
|
return new Promise(function (resolve, reject) {
|
|
2097
2121
|
return _this.connector.saveTransaction(uuid).then(function (result) {
|
|
@@ -2104,7 +2128,7 @@
|
|
|
2104
2128
|
});
|
|
2105
2129
|
});
|
|
2106
2130
|
};
|
|
2107
|
-
|
|
2131
|
+
TransactionConnectorService.prototype.getCustomerFullObject = function (relationNo) {
|
|
2108
2132
|
var _this = this;
|
|
2109
2133
|
return new Promise(function (resolve, reject) {
|
|
2110
2134
|
return _this.connector.getCustomerFullObject(relationNo).then(function (result) {
|
|
@@ -2117,7 +2141,7 @@
|
|
|
2117
2141
|
});
|
|
2118
2142
|
});
|
|
2119
2143
|
};
|
|
2120
|
-
|
|
2144
|
+
TransactionConnectorService.prototype.getCashRegisters = function (branch, group) {
|
|
2121
2145
|
return __awaiter(this, void 0, void 0, function () {
|
|
2122
2146
|
var response;
|
|
2123
2147
|
return __generator(this, function (_a) {
|
|
@@ -2136,7 +2160,7 @@
|
|
|
2136
2160
|
});
|
|
2137
2161
|
});
|
|
2138
2162
|
};
|
|
2139
|
-
|
|
2163
|
+
TransactionConnectorService.prototype.getRelationNumber = function (relationId) {
|
|
2140
2164
|
return __awaiter(this, void 0, void 0, function () {
|
|
2141
2165
|
var _this = this;
|
|
2142
2166
|
return __generator(this, function (_a) {
|
|
@@ -2153,7 +2177,7 @@
|
|
|
2153
2177
|
});
|
|
2154
2178
|
});
|
|
2155
2179
|
};
|
|
2156
|
-
|
|
2180
|
+
TransactionConnectorService.prototype.getPriceLists = function (code) {
|
|
2157
2181
|
return __awaiter(this, void 0, void 0, function () {
|
|
2158
2182
|
var response;
|
|
2159
2183
|
return __generator(this, function (_a) {
|
|
@@ -2172,7 +2196,7 @@
|
|
|
2172
2196
|
});
|
|
2173
2197
|
});
|
|
2174
2198
|
};
|
|
2175
|
-
|
|
2199
|
+
TransactionConnectorService.prototype.getVatList = function (onlyValid) {
|
|
2176
2200
|
if (onlyValid === void 0) { onlyValid = false; }
|
|
2177
2201
|
return __awaiter(this, void 0, void 0, function () {
|
|
2178
2202
|
var response;
|
|
@@ -2192,7 +2216,7 @@
|
|
|
2192
2216
|
});
|
|
2193
2217
|
});
|
|
2194
2218
|
};
|
|
2195
|
-
|
|
2219
|
+
TransactionConnectorService.prototype.searchTransactions = function (request) {
|
|
2196
2220
|
return __awaiter(this, void 0, void 0, function () {
|
|
2197
2221
|
var response;
|
|
2198
2222
|
return __generator(this, function (_a) {
|
|
@@ -2211,7 +2235,7 @@
|
|
|
2211
2235
|
});
|
|
2212
2236
|
});
|
|
2213
2237
|
};
|
|
2214
|
-
|
|
2238
|
+
TransactionConnectorService.prototype.getSequenceValue = function (sequenceName) {
|
|
2215
2239
|
return __awaiter(this, void 0, void 0, function () {
|
|
2216
2240
|
var _this = this;
|
|
2217
2241
|
return __generator(this, function (_a) {
|
|
@@ -2228,7 +2252,7 @@
|
|
|
2228
2252
|
});
|
|
2229
2253
|
});
|
|
2230
2254
|
};
|
|
2231
|
-
|
|
2255
|
+
TransactionConnectorService.prototype.insertCustomer = function (relation) {
|
|
2232
2256
|
return __awaiter(this, void 0, void 0, function () {
|
|
2233
2257
|
var _this = this;
|
|
2234
2258
|
return __generator(this, function (_a) {
|
|
@@ -2245,7 +2269,7 @@
|
|
|
2245
2269
|
});
|
|
2246
2270
|
});
|
|
2247
2271
|
};
|
|
2248
|
-
|
|
2272
|
+
TransactionConnectorService.prototype.updateCustomer = function (relation) {
|
|
2249
2273
|
return __awaiter(this, void 0, void 0, function () {
|
|
2250
2274
|
var _this = this;
|
|
2251
2275
|
return __generator(this, function (_a) {
|
|
@@ -2262,7 +2286,7 @@
|
|
|
2262
2286
|
});
|
|
2263
2287
|
});
|
|
2264
2288
|
};
|
|
2265
|
-
|
|
2289
|
+
TransactionConnectorService.prototype.getDeliveryMethods = function () {
|
|
2266
2290
|
return __awaiter(this, void 0, void 0, function () {
|
|
2267
2291
|
var _this = this;
|
|
2268
2292
|
return __generator(this, function (_a) {
|
|
@@ -2279,7 +2303,7 @@
|
|
|
2279
2303
|
});
|
|
2280
2304
|
});
|
|
2281
2305
|
};
|
|
2282
|
-
|
|
2306
|
+
TransactionConnectorService.prototype.getDeliveryOptions = function () {
|
|
2283
2307
|
return __awaiter(this, void 0, void 0, function () {
|
|
2284
2308
|
var _this = this;
|
|
2285
2309
|
return __generator(this, function (_a) {
|
|
@@ -2296,7 +2320,7 @@
|
|
|
2296
2320
|
});
|
|
2297
2321
|
});
|
|
2298
2322
|
};
|
|
2299
|
-
|
|
2323
|
+
TransactionConnectorService.prototype.addRelationToTransaction = function (uuid, relationId) {
|
|
2300
2324
|
return __awaiter(this, void 0, void 0, function () {
|
|
2301
2325
|
var _this = this;
|
|
2302
2326
|
return __generator(this, function (_a) {
|
|
@@ -2313,7 +2337,7 @@
|
|
|
2313
2337
|
});
|
|
2314
2338
|
});
|
|
2315
2339
|
};
|
|
2316
|
-
|
|
2340
|
+
TransactionConnectorService.prototype.setTransactionDeliveryOptions = function (transactionDeliveryOptionsRequest) {
|
|
2317
2341
|
return __awaiter(this, void 0, void 0, function () {
|
|
2318
2342
|
var _this = this;
|
|
2319
2343
|
return __generator(this, function (_a) {
|
|
@@ -2330,7 +2354,7 @@
|
|
|
2330
2354
|
});
|
|
2331
2355
|
});
|
|
2332
2356
|
};
|
|
2333
|
-
|
|
2357
|
+
TransactionConnectorService.prototype.getPostalCodeRetrieval = function (postcalCode, houseNo) {
|
|
2334
2358
|
return __awaiter(this, void 0, void 0, function () {
|
|
2335
2359
|
var _this = this;
|
|
2336
2360
|
return __generator(this, function (_a) {
|
|
@@ -2352,7 +2376,7 @@
|
|
|
2352
2376
|
});
|
|
2353
2377
|
});
|
|
2354
2378
|
};
|
|
2355
|
-
|
|
2379
|
+
TransactionConnectorService.prototype.getRelationListObjects = function (relationRequest) {
|
|
2356
2380
|
return __awaiter(this, void 0, void 0, function () {
|
|
2357
2381
|
var _this = this;
|
|
2358
2382
|
return __generator(this, function (_a) {
|
|
@@ -2369,7 +2393,7 @@
|
|
|
2369
2393
|
});
|
|
2370
2394
|
});
|
|
2371
2395
|
};
|
|
2372
|
-
|
|
2396
|
+
TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
|
|
2373
2397
|
return __awaiter(this, void 0, void 0, function () {
|
|
2374
2398
|
var _this = this;
|
|
2375
2399
|
return __generator(this, function (_a) {
|
|
@@ -2386,7 +2410,7 @@
|
|
|
2386
2410
|
});
|
|
2387
2411
|
});
|
|
2388
2412
|
};
|
|
2389
|
-
|
|
2413
|
+
TransactionConnectorService.prototype.addTextLineToTransaction = function (uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
2390
2414
|
return __awaiter(this, void 0, void 0, function () {
|
|
2391
2415
|
var _this = this;
|
|
2392
2416
|
return __generator(this, function (_a) {
|
|
@@ -2403,7 +2427,7 @@
|
|
|
2403
2427
|
});
|
|
2404
2428
|
});
|
|
2405
2429
|
};
|
|
2406
|
-
|
|
2430
|
+
TransactionConnectorService.prototype.changeLineSequence = function (uuid, lineUuid, aboveLineNr, belowLineNr) {
|
|
2407
2431
|
return __awaiter(this, void 0, void 0, function () {
|
|
2408
2432
|
var _this = this;
|
|
2409
2433
|
return __generator(this, function (_a) {
|
|
@@ -2426,7 +2450,7 @@
|
|
|
2426
2450
|
});
|
|
2427
2451
|
});
|
|
2428
2452
|
};
|
|
2429
|
-
|
|
2453
|
+
TransactionConnectorService.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
2430
2454
|
return __awaiter(this, void 0, void 0, function () {
|
|
2431
2455
|
var _this = this;
|
|
2432
2456
|
return __generator(this, function (_a) {
|
|
@@ -2443,7 +2467,7 @@
|
|
|
2443
2467
|
});
|
|
2444
2468
|
});
|
|
2445
2469
|
};
|
|
2446
|
-
|
|
2470
|
+
TransactionConnectorService.prototype.deleteTransactionLine = function (uuid, lineUuid) {
|
|
2447
2471
|
return __awaiter(this, void 0, void 0, function () {
|
|
2448
2472
|
var _this = this;
|
|
2449
2473
|
return __generator(this, function (_a) {
|
|
@@ -2460,7 +2484,7 @@
|
|
|
2460
2484
|
});
|
|
2461
2485
|
});
|
|
2462
2486
|
};
|
|
2463
|
-
|
|
2487
|
+
TransactionConnectorService.prototype.changeTransactionLineQuantity = function (uuid, lineUuid, newQuantity) {
|
|
2464
2488
|
return __awaiter(this, void 0, void 0, function () {
|
|
2465
2489
|
var _this = this;
|
|
2466
2490
|
return __generator(this, function (_a) {
|
|
@@ -2482,7 +2506,7 @@
|
|
|
2482
2506
|
});
|
|
2483
2507
|
});
|
|
2484
2508
|
};
|
|
2485
|
-
|
|
2509
|
+
TransactionConnectorService.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
2486
2510
|
return __awaiter(this, void 0, void 0, function () {
|
|
2487
2511
|
var _this = this;
|
|
2488
2512
|
return __generator(this, function (_a) {
|
|
@@ -2499,7 +2523,7 @@
|
|
|
2499
2523
|
});
|
|
2500
2524
|
});
|
|
2501
2525
|
};
|
|
2502
|
-
|
|
2526
|
+
TransactionConnectorService.prototype.getCommissionCodes = function (languageCode) {
|
|
2503
2527
|
return __awaiter(this, void 0, void 0, function () {
|
|
2504
2528
|
var _this = this;
|
|
2505
2529
|
return __generator(this, function (_a) {
|
|
@@ -2516,7 +2540,7 @@
|
|
|
2516
2540
|
});
|
|
2517
2541
|
});
|
|
2518
2542
|
};
|
|
2519
|
-
|
|
2543
|
+
TransactionConnectorService.prototype.getInOutCollection = function (languageCode) {
|
|
2520
2544
|
return __awaiter(this, void 0, void 0, function () {
|
|
2521
2545
|
var _this = this;
|
|
2522
2546
|
return __generator(this, function (_a) {
|
|
@@ -2533,7 +2557,7 @@
|
|
|
2533
2557
|
});
|
|
2534
2558
|
});
|
|
2535
2559
|
};
|
|
2536
|
-
|
|
2560
|
+
TransactionConnectorService.prototype.getTransactionArticleWarehouses = function (goodId) {
|
|
2537
2561
|
return __awaiter(this, void 0, void 0, function () {
|
|
2538
2562
|
var _this = this;
|
|
2539
2563
|
return __generator(this, function (_a) {
|
|
@@ -2550,7 +2574,7 @@
|
|
|
2550
2574
|
});
|
|
2551
2575
|
});
|
|
2552
2576
|
};
|
|
2553
|
-
|
|
2577
|
+
TransactionConnectorService.prototype.setRelationByUser = function (uuid, username, password) {
|
|
2554
2578
|
return __awaiter(this, void 0, void 0, function () {
|
|
2555
2579
|
var _this = this;
|
|
2556
2580
|
return __generator(this, function (_a) {
|
|
@@ -2567,7 +2591,7 @@
|
|
|
2567
2591
|
});
|
|
2568
2592
|
});
|
|
2569
2593
|
};
|
|
2570
|
-
|
|
2594
|
+
TransactionConnectorService.prototype.getTextTypes = function (languageCode) {
|
|
2571
2595
|
return __awaiter(this, void 0, void 0, function () {
|
|
2572
2596
|
var _this = this;
|
|
2573
2597
|
return __generator(this, function (_a) {
|
|
@@ -2586,7 +2610,7 @@
|
|
|
2586
2610
|
});
|
|
2587
2611
|
});
|
|
2588
2612
|
};
|
|
2589
|
-
|
|
2613
|
+
TransactionConnectorService.prototype.getStandardTexts = function (languageCode) {
|
|
2590
2614
|
return __awaiter(this, void 0, void 0, function () {
|
|
2591
2615
|
var _this = this;
|
|
2592
2616
|
return __generator(this, function (_a) {
|
|
@@ -2603,7 +2627,7 @@
|
|
|
2603
2627
|
});
|
|
2604
2628
|
});
|
|
2605
2629
|
};
|
|
2606
|
-
|
|
2630
|
+
TransactionConnectorService.prototype.getBranches = function (branchNr) {
|
|
2607
2631
|
return __awaiter(this, void 0, void 0, function () {
|
|
2608
2632
|
var _this = this;
|
|
2609
2633
|
return __generator(this, function (_a) {
|
|
@@ -2620,7 +2644,7 @@
|
|
|
2620
2644
|
});
|
|
2621
2645
|
});
|
|
2622
2646
|
};
|
|
2623
|
-
|
|
2647
|
+
TransactionConnectorService.prototype.getSalesPersons = function (date) {
|
|
2624
2648
|
return __awaiter(this, void 0, void 0, function () {
|
|
2625
2649
|
var _this = this;
|
|
2626
2650
|
return __generator(this, function (_a) {
|
|
@@ -2637,7 +2661,7 @@
|
|
|
2637
2661
|
});
|
|
2638
2662
|
});
|
|
2639
2663
|
};
|
|
2640
|
-
|
|
2664
|
+
TransactionConnectorService.prototype.getTags = function (category) {
|
|
2641
2665
|
return __awaiter(this, void 0, void 0, function () {
|
|
2642
2666
|
var _this = this;
|
|
2643
2667
|
return __generator(this, function (_a) {
|
|
@@ -2660,7 +2684,7 @@
|
|
|
2660
2684
|
});
|
|
2661
2685
|
});
|
|
2662
2686
|
};
|
|
2663
|
-
|
|
2687
|
+
TransactionConnectorService.prototype.getOnHoldCodes = function () {
|
|
2664
2688
|
return __awaiter(this, void 0, void 0, function () {
|
|
2665
2689
|
var _this = this;
|
|
2666
2690
|
return __generator(this, function (_a) {
|
|
@@ -2683,7 +2707,7 @@
|
|
|
2683
2707
|
});
|
|
2684
2708
|
});
|
|
2685
2709
|
};
|
|
2686
|
-
|
|
2710
|
+
TransactionConnectorService.prototype.getWarehouses = function (branchNr) {
|
|
2687
2711
|
return __awaiter(this, void 0, void 0, function () {
|
|
2688
2712
|
var _this = this;
|
|
2689
2713
|
return __generator(this, function (_a) {
|
|
@@ -2700,7 +2724,7 @@
|
|
|
2700
2724
|
});
|
|
2701
2725
|
});
|
|
2702
2726
|
};
|
|
2703
|
-
|
|
2727
|
+
TransactionConnectorService.prototype.getHistoricStateValues = function () {
|
|
2704
2728
|
return __awaiter(this, void 0, void 0, function () {
|
|
2705
2729
|
var _this = this;
|
|
2706
2730
|
return __generator(this, function (_a) {
|
|
@@ -2716,7 +2740,31 @@
|
|
|
2716
2740
|
});
|
|
2717
2741
|
});
|
|
2718
2742
|
};
|
|
2719
|
-
|
|
2743
|
+
TransactionConnectorService.prototype.getPaymentMethods = function () {
|
|
2744
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2745
|
+
var _this = this;
|
|
2746
|
+
return __generator(this, function (_a) {
|
|
2747
|
+
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
2748
|
+
var result;
|
|
2749
|
+
return __generator(this, function (_a) {
|
|
2750
|
+
switch (_a.label) {
|
|
2751
|
+
case 0: return [4 /*yield*/, this.connector.getPaymentMethods()];
|
|
2752
|
+
case 1:
|
|
2753
|
+
result = _a.sent();
|
|
2754
|
+
if (result.validationResult && result.validationResult.success) {
|
|
2755
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(paymentMethod_bo.PaymentMethod, result.resultObjects));
|
|
2756
|
+
}
|
|
2757
|
+
else {
|
|
2758
|
+
reject(result.validationMessagesAsString);
|
|
2759
|
+
}
|
|
2760
|
+
return [2 /*return*/];
|
|
2761
|
+
}
|
|
2762
|
+
});
|
|
2763
|
+
}); })];
|
|
2764
|
+
});
|
|
2765
|
+
});
|
|
2766
|
+
};
|
|
2767
|
+
TransactionConnectorService.prototype.changeTransactionLineCommissionCode = function (uuid, lineUuid, code) {
|
|
2720
2768
|
return __awaiter(this, void 0, void 0, function () {
|
|
2721
2769
|
var request, response;
|
|
2722
2770
|
return __generator(this, function (_a) {
|
|
@@ -2741,7 +2789,7 @@
|
|
|
2741
2789
|
});
|
|
2742
2790
|
});
|
|
2743
2791
|
};
|
|
2744
|
-
|
|
2792
|
+
TransactionConnectorService.prototype.changeTransactionLineWarehouse = function (uuid, lineUuid, warehouseNumber) {
|
|
2745
2793
|
return __awaiter(this, void 0, void 0, function () {
|
|
2746
2794
|
var request, response;
|
|
2747
2795
|
return __generator(this, function (_a) {
|
|
@@ -2766,7 +2814,7 @@
|
|
|
2766
2814
|
});
|
|
2767
2815
|
});
|
|
2768
2816
|
};
|
|
2769
|
-
|
|
2817
|
+
TransactionConnectorService.prototype.changeTransactionLinePrice = function (uuid, lineUuid, price) {
|
|
2770
2818
|
return __awaiter(this, void 0, void 0, function () {
|
|
2771
2819
|
var request, response;
|
|
2772
2820
|
return __generator(this, function (_a) {
|
|
@@ -2791,7 +2839,7 @@
|
|
|
2791
2839
|
});
|
|
2792
2840
|
});
|
|
2793
2841
|
};
|
|
2794
|
-
|
|
2842
|
+
TransactionConnectorService.prototype.changeTransactionLinePriceList = function (uuid, lineUuid, priceList) {
|
|
2795
2843
|
return __awaiter(this, void 0, void 0, function () {
|
|
2796
2844
|
var request, response;
|
|
2797
2845
|
return __generator(this, function (_a) {
|
|
@@ -2816,7 +2864,7 @@
|
|
|
2816
2864
|
});
|
|
2817
2865
|
});
|
|
2818
2866
|
};
|
|
2819
|
-
|
|
2867
|
+
TransactionConnectorService.prototype.changeTransactionLineVat = function (uuid, lineUuid, id) {
|
|
2820
2868
|
return __awaiter(this, void 0, void 0, function () {
|
|
2821
2869
|
var request, response;
|
|
2822
2870
|
return __generator(this, function (_a) {
|
|
@@ -2841,7 +2889,7 @@
|
|
|
2841
2889
|
});
|
|
2842
2890
|
});
|
|
2843
2891
|
};
|
|
2844
|
-
|
|
2892
|
+
TransactionConnectorService.prototype.changeTransactionLineLineDiscount = function (uuid, lineUuid, type, discount, reason, code) {
|
|
2845
2893
|
return __awaiter(this, void 0, void 0, function () {
|
|
2846
2894
|
var request, response;
|
|
2847
2895
|
return __generator(this, function (_a) {
|
|
@@ -2869,7 +2917,7 @@
|
|
|
2869
2917
|
});
|
|
2870
2918
|
});
|
|
2871
2919
|
};
|
|
2872
|
-
|
|
2920
|
+
TransactionConnectorService.prototype.changeTransactionLineDeliveryMethod = function (uuid, lineUuid, method) {
|
|
2873
2921
|
return __awaiter(this, void 0, void 0, function () {
|
|
2874
2922
|
var request, response;
|
|
2875
2923
|
return __generator(this, function (_a) {
|
|
@@ -2894,7 +2942,7 @@
|
|
|
2894
2942
|
});
|
|
2895
2943
|
});
|
|
2896
2944
|
};
|
|
2897
|
-
|
|
2945
|
+
TransactionConnectorService.prototype.changeTransactionLineDeliveryDate = function (uuid, lineUuid, date) {
|
|
2898
2946
|
return __awaiter(this, void 0, void 0, function () {
|
|
2899
2947
|
var request, response;
|
|
2900
2948
|
return __generator(this, function (_a) {
|
|
@@ -2919,7 +2967,7 @@
|
|
|
2919
2967
|
});
|
|
2920
2968
|
});
|
|
2921
2969
|
};
|
|
2922
|
-
|
|
2970
|
+
TransactionConnectorService.prototype.changeTransactionLineAssemblyTime = function (uuid, lineUuid, time) {
|
|
2923
2971
|
return __awaiter(this, void 0, void 0, function () {
|
|
2924
2972
|
var request, response;
|
|
2925
2973
|
return __generator(this, function (_a) {
|
|
@@ -2944,7 +2992,7 @@
|
|
|
2944
2992
|
});
|
|
2945
2993
|
});
|
|
2946
2994
|
};
|
|
2947
|
-
|
|
2995
|
+
TransactionConnectorService.prototype.changeTransactionLineEditTime = function (uuid, lineUuid, time) {
|
|
2948
2996
|
return __awaiter(this, void 0, void 0, function () {
|
|
2949
2997
|
var request, response;
|
|
2950
2998
|
return __generator(this, function (_a) {
|
|
@@ -2969,7 +3017,7 @@
|
|
|
2969
3017
|
});
|
|
2970
3018
|
});
|
|
2971
3019
|
};
|
|
2972
|
-
|
|
3020
|
+
TransactionConnectorService.prototype.changeTransactionLineSupplierArticleNumber = function (uuid, lineUuid, articleNumber) {
|
|
2973
3021
|
return __awaiter(this, void 0, void 0, function () {
|
|
2974
3022
|
var request, response;
|
|
2975
3023
|
return __generator(this, function (_a) {
|
|
@@ -2994,7 +3042,7 @@
|
|
|
2994
3042
|
});
|
|
2995
3043
|
});
|
|
2996
3044
|
};
|
|
2997
|
-
|
|
3045
|
+
TransactionConnectorService.prototype.changeTransactionLineReference = function (uuid, lineUuid, reference) {
|
|
2998
3046
|
return __awaiter(this, void 0, void 0, function () {
|
|
2999
3047
|
var request, response;
|
|
3000
3048
|
return __generator(this, function (_a) {
|
|
@@ -3019,7 +3067,7 @@
|
|
|
3019
3067
|
});
|
|
3020
3068
|
});
|
|
3021
3069
|
};
|
|
3022
|
-
|
|
3070
|
+
TransactionConnectorService.prototype.changeHeaderTransactionDefinitive = function (uuid, definitive) {
|
|
3023
3071
|
return __awaiter(this, void 0, void 0, function () {
|
|
3024
3072
|
var request, response;
|
|
3025
3073
|
return __generator(this, function (_a) {
|
|
@@ -3043,7 +3091,7 @@
|
|
|
3043
3091
|
});
|
|
3044
3092
|
});
|
|
3045
3093
|
};
|
|
3046
|
-
|
|
3094
|
+
TransactionConnectorService.prototype.changeTransactionLineCollectionCode = function (uuid, lineUuid, code) {
|
|
3047
3095
|
return __awaiter(this, void 0, void 0, function () {
|
|
3048
3096
|
var request, response;
|
|
3049
3097
|
return __generator(this, function (_a) {
|
|
@@ -3068,15 +3116,142 @@
|
|
|
3068
3116
|
});
|
|
3069
3117
|
});
|
|
3070
3118
|
};
|
|
3071
|
-
|
|
3119
|
+
TransactionConnectorService.prototype.createOutstandingEntry = function (uuid, amount) {
|
|
3120
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3121
|
+
var request, response;
|
|
3122
|
+
return __generator(this, function (_a) {
|
|
3123
|
+
switch (_a.label) {
|
|
3124
|
+
case 0:
|
|
3125
|
+
request = {
|
|
3126
|
+
transUUID: uuid,
|
|
3127
|
+
amount: amount
|
|
3128
|
+
};
|
|
3129
|
+
return [4 /*yield*/, this.connector.createOutstandingEntry(request)];
|
|
3130
|
+
case 1:
|
|
3131
|
+
response = _a.sent();
|
|
3132
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3133
|
+
console.log(response);
|
|
3134
|
+
}
|
|
3135
|
+
else {
|
|
3136
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3137
|
+
}
|
|
3138
|
+
return [2 /*return*/];
|
|
3139
|
+
}
|
|
3140
|
+
});
|
|
3141
|
+
});
|
|
3142
|
+
};
|
|
3143
|
+
TransactionConnectorService.prototype.registerSalesOrderPayment = function (uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
|
|
3144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3145
|
+
var request, response;
|
|
3146
|
+
return __generator(this, function (_a) {
|
|
3147
|
+
switch (_a.label) {
|
|
3148
|
+
case 0:
|
|
3149
|
+
request = {
|
|
3150
|
+
transUUID: uuid,
|
|
3151
|
+
amount: amount,
|
|
3152
|
+
currencyCode: currencyCode,
|
|
3153
|
+
paymentMethodCode: paymentMethod,
|
|
3154
|
+
cashRegisterGroupId: cashRegisterGroupId
|
|
3155
|
+
};
|
|
3156
|
+
return [4 /*yield*/, this.connector.registerSalesOrderPayment(request)];
|
|
3157
|
+
case 1:
|
|
3158
|
+
response = _a.sent();
|
|
3159
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3160
|
+
console.log(response);
|
|
3161
|
+
}
|
|
3162
|
+
else {
|
|
3163
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3164
|
+
}
|
|
3165
|
+
return [2 /*return*/];
|
|
3166
|
+
}
|
|
3167
|
+
});
|
|
3168
|
+
});
|
|
3169
|
+
};
|
|
3170
|
+
TransactionConnectorService.prototype.getGoodsReceiptStatus = function (transId, lineNr) {
|
|
3171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3172
|
+
var response;
|
|
3173
|
+
return __generator(this, function (_a) {
|
|
3174
|
+
switch (_a.label) {
|
|
3175
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsReceiptStatus(transId, lineNr)];
|
|
3176
|
+
case 1:
|
|
3177
|
+
response = _a.sent();
|
|
3178
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3179
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory, response.resultObject)];
|
|
3180
|
+
}
|
|
3181
|
+
else {
|
|
3182
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3183
|
+
}
|
|
3184
|
+
return [2 /*return*/];
|
|
3185
|
+
}
|
|
3186
|
+
});
|
|
3187
|
+
});
|
|
3188
|
+
};
|
|
3189
|
+
TransactionConnectorService.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
3190
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3191
|
+
var response;
|
|
3192
|
+
return __generator(this, function (_a) {
|
|
3193
|
+
switch (_a.label) {
|
|
3194
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsReceiptStatusWithHistory(transId, lineNr)];
|
|
3195
|
+
case 1:
|
|
3196
|
+
response = _a.sent();
|
|
3197
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3198
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory, response.resultObject)];
|
|
3199
|
+
}
|
|
3200
|
+
else {
|
|
3201
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3202
|
+
}
|
|
3203
|
+
return [2 /*return*/];
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
});
|
|
3207
|
+
};
|
|
3208
|
+
TransactionConnectorService.prototype.receiveGoodsForPurchaseOrder = function (request) {
|
|
3209
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3210
|
+
var response;
|
|
3211
|
+
return __generator(this, function (_a) {
|
|
3212
|
+
switch (_a.label) {
|
|
3213
|
+
case 0: return [4 /*yield*/, this.connector.receiveGoodsForPurchaseOrder(request)];
|
|
3214
|
+
case 1:
|
|
3215
|
+
response = _a.sent();
|
|
3216
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3217
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
3218
|
+
}
|
|
3219
|
+
else {
|
|
3220
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3221
|
+
}
|
|
3222
|
+
return [2 /*return*/];
|
|
3223
|
+
}
|
|
3224
|
+
});
|
|
3225
|
+
});
|
|
3226
|
+
};
|
|
3227
|
+
TransactionConnectorService.prototype.receiveGoodsForPurchaseOrderCorrection = function (request) {
|
|
3228
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3229
|
+
var response;
|
|
3230
|
+
return __generator(this, function (_a) {
|
|
3231
|
+
switch (_a.label) {
|
|
3232
|
+
case 0: return [4 /*yield*/, this.connector.receiveGoodsForPurchaseOrderCorrection(request)];
|
|
3233
|
+
case 1:
|
|
3234
|
+
response = _a.sent();
|
|
3235
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3236
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
3237
|
+
}
|
|
3238
|
+
else {
|
|
3239
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
3240
|
+
}
|
|
3241
|
+
return [2 /*return*/];
|
|
3242
|
+
}
|
|
3243
|
+
});
|
|
3244
|
+
});
|
|
3245
|
+
};
|
|
3246
|
+
return TransactionConnectorService;
|
|
3072
3247
|
}());
|
|
3073
|
-
|
|
3074
|
-
|
|
3248
|
+
TransactionConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(CollectionCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
|
|
3249
|
+
TransactionConnectorService.decorators = [
|
|
3075
3250
|
{ type: i0.Injectable, args: [{
|
|
3076
3251
|
providedIn: "root"
|
|
3077
3252
|
},] }
|
|
3078
3253
|
];
|
|
3079
|
-
|
|
3254
|
+
TransactionConnectorService.ctorParameters = function () { return [
|
|
3080
3255
|
{ type: OptionsService },
|
|
3081
3256
|
{ type: CollectionCacheService }
|
|
3082
3257
|
]; };
|
|
@@ -3224,11 +3399,129 @@
|
|
|
3224
3399
|
{ type: i0.Injector }
|
|
3225
3400
|
]; };
|
|
3226
3401
|
|
|
3402
|
+
var ArticleConnectorService = /** @class */ (function () {
|
|
3403
|
+
function ArticleConnectorService(_optionsService, _collectionService) {
|
|
3404
|
+
var _this = this;
|
|
3405
|
+
this._optionsService = _optionsService;
|
|
3406
|
+
this._collectionService = _collectionService;
|
|
3407
|
+
this._boFactory = new BusinessObjectFactory();
|
|
3408
|
+
this._optionsService.optionsInitialized.subscribe(function (initialized) {
|
|
3409
|
+
if (initialized) {
|
|
3410
|
+
_this.connect();
|
|
3411
|
+
}
|
|
3412
|
+
});
|
|
3413
|
+
}
|
|
3414
|
+
ArticleConnectorService.prototype.connect = function () {
|
|
3415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3416
|
+
return __generator(this, function (_a) {
|
|
3417
|
+
this.connector = new articles.Articles(this._optionsService.options);
|
|
3418
|
+
return [2 /*return*/];
|
|
3419
|
+
});
|
|
3420
|
+
});
|
|
3421
|
+
};
|
|
3422
|
+
ArticleConnectorService.prototype.getWarehouseLocations = function (warehouseNr) {
|
|
3423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3424
|
+
var _this = this;
|
|
3425
|
+
return __generator(this, function (_a) {
|
|
3426
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3427
|
+
var collection = _this._collectionService.getCollection(stockLocation_bo.StockLocation.name, [warehouseNr]);
|
|
3428
|
+
if (collection) {
|
|
3429
|
+
resolve(collection);
|
|
3430
|
+
}
|
|
3431
|
+
else {
|
|
3432
|
+
return _this.connector.getStockManagementLocations(warehouseNr).then(function (response) {
|
|
3433
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3434
|
+
var collection_1 = _this._boFactory.makeBOArrayFromRawBackendDataArray(stockLocation_bo.StockLocation, response.resultObjects);
|
|
3435
|
+
_this._collectionService.cacheCollection(stockLocation_bo.StockLocation.name, collection_1, [warehouseNr]);
|
|
3436
|
+
resolve(collection_1);
|
|
3437
|
+
}
|
|
3438
|
+
else {
|
|
3439
|
+
reject(response.validationMessagesAsString);
|
|
3440
|
+
}
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
})];
|
|
3444
|
+
});
|
|
3445
|
+
});
|
|
3446
|
+
};
|
|
3447
|
+
ArticleConnectorService.prototype.searchArticles = function (request) {
|
|
3448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3449
|
+
var _this = this;
|
|
3450
|
+
return __generator(this, function (_a) {
|
|
3451
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3452
|
+
return _this.connector.searchArticlesLight(request).then(function (response) {
|
|
3453
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3454
|
+
var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(articleLight_bo.ArticleLight, response.resultObjects);
|
|
3455
|
+
resolve(collection);
|
|
3456
|
+
}
|
|
3457
|
+
else {
|
|
3458
|
+
reject(response.validationMessagesAsString);
|
|
3459
|
+
}
|
|
3460
|
+
});
|
|
3461
|
+
})];
|
|
3462
|
+
});
|
|
3463
|
+
});
|
|
3464
|
+
};
|
|
3465
|
+
ArticleConnectorService.prototype.getMainArticles = function () {
|
|
3466
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3467
|
+
var _this = this;
|
|
3468
|
+
return __generator(this, function (_a) {
|
|
3469
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3470
|
+
return _this.connector.getMainArticles().then(function (response) {
|
|
3471
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
3472
|
+
var collection = _this._boFactory.makeBOArrayFromRawBackendDataArray(mainArticle_bo.MainArticle, response.resultObjects);
|
|
3473
|
+
resolve(collection);
|
|
3474
|
+
}
|
|
3475
|
+
else {
|
|
3476
|
+
reject(response.validationMessagesAsString);
|
|
3477
|
+
}
|
|
3478
|
+
});
|
|
3479
|
+
})];
|
|
3480
|
+
});
|
|
3481
|
+
});
|
|
3482
|
+
};
|
|
3483
|
+
ArticleConnectorService.prototype.getTurnoverGroups = function (category) {
|
|
3484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3485
|
+
var _this = this;
|
|
3486
|
+
return __generator(this, function (_a) {
|
|
3487
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3488
|
+
var collection = _this._collectionService.getCollection(turnoverGroupImage_bo.TurnoverGroupImage.name);
|
|
3489
|
+
if (collection) {
|
|
3490
|
+
return resolve(collection);
|
|
3491
|
+
}
|
|
3492
|
+
return _this.connector.getTurnoverGroups(category).then(function (result) {
|
|
3493
|
+
if (result.validationResult && result.validationResult.success) {
|
|
3494
|
+
var collection_2 = _this._boFactory.makeBOArrayFromRawBackendDataArray(turnoverGroupImage_bo.TurnoverGroupImage, result.resultObjects);
|
|
3495
|
+
_this._collectionService.cacheCollection(turnoverGroupImage_bo.TurnoverGroupImage.name, collection_2);
|
|
3496
|
+
resolve(collection_2);
|
|
3497
|
+
}
|
|
3498
|
+
else {
|
|
3499
|
+
reject(result.validationMessagesAsString);
|
|
3500
|
+
}
|
|
3501
|
+
});
|
|
3502
|
+
})];
|
|
3503
|
+
});
|
|
3504
|
+
});
|
|
3505
|
+
};
|
|
3506
|
+
return ArticleConnectorService;
|
|
3507
|
+
}());
|
|
3508
|
+
ArticleConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
|
|
3509
|
+
ArticleConnectorService.decorators = [
|
|
3510
|
+
{ type: i0.Injectable, args: [{
|
|
3511
|
+
providedIn: "root"
|
|
3512
|
+
},] }
|
|
3513
|
+
];
|
|
3514
|
+
ArticleConnectorService.ctorParameters = function () { return [
|
|
3515
|
+
{ type: OptionsService },
|
|
3516
|
+
{ type: CollectionCacheService }
|
|
3517
|
+
]; };
|
|
3518
|
+
|
|
3227
3519
|
var PendingReasonService = /** @class */ (function () {
|
|
3228
|
-
function PendingReasonService(dialogService, options, connector) {
|
|
3520
|
+
function PendingReasonService(dialogService, options, connector, articleConnector) {
|
|
3229
3521
|
this.dialogService = dialogService;
|
|
3230
3522
|
this.options = options;
|
|
3231
3523
|
this.connector = connector;
|
|
3524
|
+
this.articleConnector = articleConnector;
|
|
3232
3525
|
this.transactionUpdated = new rxjs.BehaviorSubject(undefined);
|
|
3233
3526
|
this.applicationUser = false;
|
|
3234
3527
|
this.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
@@ -3443,7 +3736,7 @@
|
|
|
3443
3736
|
};
|
|
3444
3737
|
return PendingReasonService;
|
|
3445
3738
|
}());
|
|
3446
|
-
PendingReasonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(
|
|
3739
|
+
PendingReasonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(ArticleConnectorService)); }, token: PendingReasonService, providedIn: "root" });
|
|
3447
3740
|
PendingReasonService.decorators = [
|
|
3448
3741
|
{ type: i0.Injectable, args: [{
|
|
3449
3742
|
providedIn: "root"
|
|
@@ -3452,7 +3745,8 @@
|
|
|
3452
3745
|
PendingReasonService.ctorParameters = function () { return [
|
|
3453
3746
|
{ type: DialogService },
|
|
3454
3747
|
{ type: OptionsService },
|
|
3455
|
-
{ type:
|
|
3748
|
+
{ type: TransactionConnectorService },
|
|
3749
|
+
{ type: ArticleConnectorService }
|
|
3456
3750
|
]; };
|
|
3457
3751
|
|
|
3458
3752
|
var TransactionService = /** @class */ (function (_super) {
|
|
@@ -3893,12 +4187,21 @@
|
|
|
3893
4187
|
TransactionService.prototype.getInOutCollection = function (languageCode) {
|
|
3894
4188
|
return this.connector.getInOutCollection(languageCode);
|
|
3895
4189
|
};
|
|
4190
|
+
TransactionService.prototype.getTurnoverGroups = function () {
|
|
4191
|
+
return this.articleConnector.getTurnoverGroups();
|
|
4192
|
+
};
|
|
3896
4193
|
TransactionService.prototype.getTransactionArticleWarehouses = function (goodId) {
|
|
3897
4194
|
return this.connector.getTransactionArticleWarehouses(goodId);
|
|
3898
4195
|
};
|
|
3899
4196
|
TransactionService.prototype.getMarketingCodes = function () {
|
|
3900
4197
|
return this.connector.getMarketingCodes();
|
|
3901
4198
|
};
|
|
4199
|
+
TransactionService.prototype.getArticles = function (request) {
|
|
4200
|
+
return this.articleConnector.searchArticles(request);
|
|
4201
|
+
};
|
|
4202
|
+
TransactionService.prototype.getMainArticles = function () {
|
|
4203
|
+
return this.articleConnector.getMainArticles();
|
|
4204
|
+
};
|
|
3902
4205
|
TransactionService.prototype.insertCustomer = function (relation) {
|
|
3903
4206
|
return this.connector.insertCustomer(relation);
|
|
3904
4207
|
};
|
|
@@ -3927,6 +4230,7 @@
|
|
|
3927
4230
|
TransactionService.prototype.getDeliveryOptions = function () {
|
|
3928
4231
|
return this.connector.getDeliveryOptions();
|
|
3929
4232
|
};
|
|
4233
|
+
// todo: move to relation api?
|
|
3930
4234
|
TransactionService.prototype.getRelationListObjects = function (relationRequest) {
|
|
3931
4235
|
return this.connector.getRelationListObjects(relationRequest);
|
|
3932
4236
|
};
|
|
@@ -4160,6 +4464,46 @@
|
|
|
4160
4464
|
// const response: boolean = await this.connector.setRelationByUser(this.currentTransaction.uuid, username, password);
|
|
4161
4465
|
// return response;
|
|
4162
4466
|
// }
|
|
4467
|
+
TransactionService.prototype.getGoodsReceiptStatus = function (transId, lineNr) {
|
|
4468
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4469
|
+
return __generator(this, function (_a) {
|
|
4470
|
+
switch (_a.label) {
|
|
4471
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsReceiptStatus(transId, lineNr)];
|
|
4472
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
4473
|
+
}
|
|
4474
|
+
});
|
|
4475
|
+
});
|
|
4476
|
+
};
|
|
4477
|
+
TransactionService.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
4478
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4479
|
+
return __generator(this, function (_a) {
|
|
4480
|
+
switch (_a.label) {
|
|
4481
|
+
case 0: return [4 /*yield*/, this.connector.getGoodsReceiptStatusWithHistory(transId, lineNr)];
|
|
4482
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
4483
|
+
}
|
|
4484
|
+
});
|
|
4485
|
+
});
|
|
4486
|
+
};
|
|
4487
|
+
TransactionService.prototype.receiveGoodsForPurchaseOrder = function (request) {
|
|
4488
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4489
|
+
return __generator(this, function (_a) {
|
|
4490
|
+
switch (_a.label) {
|
|
4491
|
+
case 0: return [4 /*yield*/, this.connector.receiveGoodsForPurchaseOrder(request)];
|
|
4492
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
4493
|
+
}
|
|
4494
|
+
});
|
|
4495
|
+
});
|
|
4496
|
+
};
|
|
4497
|
+
TransactionService.prototype.receiveGoodsForPurchaseOrderCorrection = function (request) {
|
|
4498
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4499
|
+
return __generator(this, function (_a) {
|
|
4500
|
+
switch (_a.label) {
|
|
4501
|
+
case 0: return [4 /*yield*/, this.connector.receiveGoodsForPurchaseOrderCorrection(request)];
|
|
4502
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
4503
|
+
}
|
|
4504
|
+
});
|
|
4505
|
+
});
|
|
4506
|
+
};
|
|
4163
4507
|
TransactionService.prototype.getTextTypes = function (languageCode) {
|
|
4164
4508
|
return this.connector.getTextTypes(languageCode);
|
|
4165
4509
|
};
|
|
@@ -4169,17 +4513,14 @@
|
|
|
4169
4513
|
TransactionService.prototype.getArticleFullObject = function (goodId) {
|
|
4170
4514
|
return this.connector.getArticleFullObject(goodId);
|
|
4171
4515
|
};
|
|
4172
|
-
TransactionService.prototype.getDocumentContent = function (id) {
|
|
4173
|
-
return this.connector.getDocumentContent(id);
|
|
4174
|
-
};
|
|
4175
4516
|
TransactionService.prototype.getGoodIdFromArticleNr = function (sku) {
|
|
4176
4517
|
return this.connector.getGoodIdFromArticleNr(sku);
|
|
4177
4518
|
};
|
|
4178
4519
|
TransactionService.prototype.getCountry = function (countryCode) {
|
|
4179
4520
|
return this.connector.getCountry(countryCode);
|
|
4180
4521
|
};
|
|
4181
|
-
TransactionService.prototype.getCashRegisters = function () {
|
|
4182
|
-
return this.connector.getCashRegisters(
|
|
4522
|
+
TransactionService.prototype.getCashRegisters = function (branch, group) {
|
|
4523
|
+
return this.connector.getCashRegisters(branch, group);
|
|
4183
4524
|
};
|
|
4184
4525
|
TransactionService.prototype.getRelationNumber = function (relationId) {
|
|
4185
4526
|
return this.connector.getRelationNumber(relationId);
|
|
@@ -4247,7 +4588,7 @@
|
|
|
4247
4588
|
};
|
|
4248
4589
|
return TransactionService;
|
|
4249
4590
|
}(PendingReasonService));
|
|
4250
|
-
TransactionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(
|
|
4591
|
+
TransactionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(TransactionConnectorService), i0__namespace.ɵɵinject(ArticleConnectorService)); }, token: TransactionService, providedIn: "root" });
|
|
4251
4592
|
TransactionService.decorators = [
|
|
4252
4593
|
{ type: i0.Injectable, args: [{
|
|
4253
4594
|
providedIn: "root"
|
|
@@ -4277,37 +4618,31 @@
|
|
|
4277
4618
|
// }
|
|
4278
4619
|
CheckoutComponent.prototype.handleRelationValidation = function () {
|
|
4279
4620
|
return __awaiter(this, void 0, void 0, function () {
|
|
4280
|
-
var valid
|
|
4281
|
-
return __generator(this, function (
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
case 1:
|
|
4289
|
-
_a.completed = _b.sent();
|
|
4290
|
-
_b.label = 2;
|
|
4291
|
-
case 2: return [2 /*return*/];
|
|
4621
|
+
var valid;
|
|
4622
|
+
return __generator(this, function (_a) {
|
|
4623
|
+
if (this.checkoutRelation && this.stepRelation) {
|
|
4624
|
+
valid = this.checkoutRelation.submit();
|
|
4625
|
+
this.stepRelation.completed = true; // await this.saveRelation();
|
|
4626
|
+
// if (valid) {
|
|
4627
|
+
// this.saveRelation();
|
|
4628
|
+
// }
|
|
4292
4629
|
}
|
|
4630
|
+
return [2 /*return*/];
|
|
4293
4631
|
});
|
|
4294
4632
|
});
|
|
4295
4633
|
};
|
|
4296
4634
|
CheckoutComponent.prototype.handleDeliveryValidation = function () {
|
|
4297
4635
|
return __awaiter(this, void 0, void 0, function () {
|
|
4298
|
-
var valid
|
|
4299
|
-
return __generator(this, function (
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
case 1:
|
|
4307
|
-
_a.completed = _b.sent();
|
|
4308
|
-
_b.label = 2;
|
|
4309
|
-
case 2: return [2 /*return*/];
|
|
4636
|
+
var valid;
|
|
4637
|
+
return __generator(this, function (_a) {
|
|
4638
|
+
if (this.checkoutDelivery && this.stepDelivery) {
|
|
4639
|
+
valid = this.checkoutDelivery.submit();
|
|
4640
|
+
this.stepDelivery.completed = true; // await this.handleSaveDelivery();
|
|
4641
|
+
// if (valid) {
|
|
4642
|
+
// this.handleSaveDelivery();
|
|
4643
|
+
// }
|
|
4310
4644
|
}
|
|
4645
|
+
return [2 /*return*/];
|
|
4311
4646
|
});
|
|
4312
4647
|
});
|
|
4313
4648
|
};
|
|
@@ -4361,7 +4696,7 @@
|
|
|
4361
4696
|
CheckoutComponent.decorators = [
|
|
4362
4697
|
{ type: i0.Component, args: [{
|
|
4363
4698
|
selector: "co-checkout",
|
|
4364
|
-
template: "\n <co-stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"handleFinishStep()\">\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\"\n (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 #
|
|
4699
|
+
template: "\n <co-stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"handleFinishStep()\">\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\"\n (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]=\"4\" [label]=\"'OVERVIEW' | localize\" (validateStep)=\"handleOverviewValidation()\">\n </co-stepper-step>\n <co-stepper-step #stepPayment [index]=\"3\" [label]=\"'PAYMENT' | localize\" (validateStep)=\"handlePaymentValidation()\">\n <co-payment #checkoutPayment *ngIf=\"stepPayment.show\"\n [transactionUuid]=\"service.currentTransaction.transactionInfo.uuid\"\n [amount]=\"service.currentTransaction.transactionTotal.netAmount\"\n ></co-payment>\n </co-stepper-step>\n <div class=\"co-checkout-right-panel\">\n <div class=\"co-checkout-right-panel-relation\">\n <co-avatar [relationId]=\"sellerId\"></co-avatar>\n </div>\n <co-shopping-cart-preview [showCheckoutButton]=\"false\" [withoutBorder]=\"true\"></co-shopping-cart-preview>\n </div>\n </co-stepper>\n ",
|
|
4365
4700
|
encapsulation: i0.ViewEncapsulation.None
|
|
4366
4701
|
},] }
|
|
4367
4702
|
];
|
|
@@ -4393,8 +4728,10 @@
|
|
|
4393
4728
|
Icon["Article"] = "article";
|
|
4394
4729
|
Icon["Barcode"] = "barcode";
|
|
4395
4730
|
Icon["BarcodeSolid"] = "barcode_solid";
|
|
4731
|
+
Icon["BarsFilter"] = "bars_filter";
|
|
4396
4732
|
Icon["CalendarDay"] = "calendar_day";
|
|
4397
4733
|
Icon["Cancel"] = "cancel";
|
|
4734
|
+
Icon["CartCheck"] = "cart_check";
|
|
4398
4735
|
Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
|
|
4399
4736
|
Icon["CartShoppingSolid"] = "cart_shopping_solid";
|
|
4400
4737
|
Icon["CashRegister"] = "cash_register";
|
|
@@ -4417,6 +4754,7 @@
|
|
|
4417
4754
|
Icon["Tag"] = "tag";
|
|
4418
4755
|
Icon["ThickLines"] = "thick_lines";
|
|
4419
4756
|
Icon["ThinLines"] = "thin_lines";
|
|
4757
|
+
Icon["TrashBin"] = "trash_bin";
|
|
4420
4758
|
Icon["TriangleDown"] = "triangle_down";
|
|
4421
4759
|
Icon["TriangleUp"] = "triangle_up";
|
|
4422
4760
|
Icon["Truck"] = "truck";
|
|
@@ -4829,8 +5167,10 @@
|
|
|
4829
5167
|
"article": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M37.43,15.14H12.57A2.57,2.57,0,0,0,10,17.71V32.29a2.57,2.57,0,0,0,2.57,2.57H37.43A2.57,2.57,0,0,0,40,32.29V17.71A2.57,2.57,0,0,0,37.43,15.14ZM14.29,32.71H12.15V17.29h2.14Zm2,0H15V17.29h1.29Zm2.57,0H17.54V17.29h1.29Zm3.52,0H20.2V17.29h2.15Zm2,0H23.11V17.29H24.4Zm2.06,0H25.17V17.29h1.29Zm2.66,0H27.83V17.29h1.29Zm3.51,0H31.34V17.29h1.29Zm3.34,0H33.4V17.29H36Zm2.32,0H37V17.29h1.29Z\" fill=\"#484f60\"/></svg>",
|
|
4830
5168
|
"barcode": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M2,6H4V18H2V6M5,6H6V18H5V6M7,6H10V18H7V6M11,6H12V18H11V6M14,6H16V18H14V6M17,6H20V18H17V6M21,6H22V18H21V6Z\" /></svg>",
|
|
4831
5169
|
"barcode_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M40 32C53.25 32 64 42.75 64 56V456C64 469.3 53.25 480 40 480H24C10.75 480 0 469.3 0 456V56C0 42.75 10.75 32 24 32H40zM128 48V464C128 472.8 120.8 480 112 480C103.2 480 96 472.8 96 464V48C96 39.16 103.2 32 112 32C120.8 32 128 39.16 128 48zM200 32C213.3 32 224 42.75 224 56V456C224 469.3 213.3 480 200 480H184C170.7 480 160 469.3 160 456V56C160 42.75 170.7 32 184 32H200zM296 32C309.3 32 320 42.75 320 56V456C320 469.3 309.3 480 296 480H280C266.7 480 256 469.3 256 456V56C256 42.75 266.7 32 280 32H296zM448 56C448 42.75 458.7 32 472 32H488C501.3 32 512 42.75 512 56V456C512 469.3 501.3 480 488 480H472C458.7 480 448 469.3 448 456V56zM384 48C384 39.16 391.2 32 400 32C408.8 32 416 39.16 416 48V464C416 472.8 408.8 480 400 480C391.2 480 384 472.8 384 464V48z\"/></svg>",
|
|
5170
|
+
"bars_filter": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M264 392H183.1C170.8 392 160 402.8 160 415.1C160 429.2 170.8 440 183.1 440h80C277.2 440 288 429.2 288 416C288 402.8 277.2 392 264 392zM424 72H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zM360 232H87.1C74.8 232 64 242.8 64 255.1C64 269.2 74.8 280 87.1 280h272C373.2 280 384 269.2 384 256C384 242.8 373.2 232 360 232z\"/></svg>",
|
|
4832
5171
|
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
4833
5172
|
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
5173
|
+
"cart_check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g ><g ><g><g opacity=\".75\"><path d=\"M16.58,29.12c-.99,0-1.8,.81-1.8,1.8s.81,1.8,1.8,1.8,1.8-.81,1.8-1.8-.81-1.8-1.8-1.8Z\" fill=\"#484f60\"/><path d=\"M16.51,24.98c-.67,0-1.38-.52-1.57-1.16l-2.31-5.61c-.19-.64,.19-1.22,.86-1.28l19.71-2.51c.67-.06,1.12,.42,1,1.08l-.89,3.99c.66,.15,1.3,.36,1.91,.63l1.38-6.84c.12-.66-.34-1.15-1-1.08l-24.68,2.93c-.67,.06-1.06,.64-.87,1.28l3.34,9.44c.19,.64,.89,1.17,1.56,1.17h5.92c.19-.71,.45-1.38,.77-2.02h-5.13Z\" fill=\"#484f60\"/><path d=\"M39.01,11.31c-.66,.14-1.27,.79-1.37,1.46l-.42,2.9c-.1,.66,.31,.98,.9,.7,.59-.28,1.19-1.04,1.33-1.7l.51-2.42c.14-.66-.28-1.08-.94-.94h-.02Z\" fill=\"#484f60\"/></g><g><path d=\"M31,21.72c4.41,0,8,3.59,8,8s-3.59,8-8,8-8-3.59-8-8,3.59-8,8-8m0-1c-4.97,0-9,4.03-9,9s4.03,9,9,9,9-4.03,9-9-4.03-9-9-9h0Z\" fill=\"#484f60\"/><polygon points=\"30.63 34.72 26.79 29.33 28.31 28.25 30.34 31.11 33.54 24.72 35.21 25.55 30.63 34.72\" fill=\"#484f60\"/></g></g></g></g><g /></svg>",
|
|
4834
5174
|
"cart_flatbed_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M448 160h64c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32h-64c-17.6 0-32 14.4-32 32v64C416 145.6 430.4 160 448 160zM448 320h128c17.6 0 32-14.4 32-32V224c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v64C416 305.6 430.4 320 448 320zM224 320h128c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32H224C206.4 32 192 46.4 192 64v224C192 305.6 206.4 320 224 320zM640 415.1c0 17.6-14.4 32-32 31.1l-66.88-.0011c1.787 5.027 2.907 10.36 2.907 16c0 26.51-21.5 48-48.01 48c-26.51 0-47.99-21.49-47.99-48c0-5.641 1.141-10.97 2.928-16H253.1C254.9 453 256 458.4 256 464C256 490.5 234.5 512 208 512S160 490.5 160 464c0-5.641 1.13-10.97 2.917-16l-66.92 .0011C78.4 448 64 433.6 64 415.1V80C64 71.16 56.84 64 48 64H31.1C14.4 64 0 49.6 0 32S14.4 0 31.1 0H64c35.2 0 64 28.8 64 64v320h480C625.6 384 640 398.4 640 415.1z\"/></svg>",
|
|
4835
5175
|
"cart_shopping_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M96 0C107.5 0 117.4 8.19 119.6 19.51L121.1 32H541.8C562.1 32 578.3 52.25 572.6 72.66L518.6 264.7C514.7 278.5 502.1 288 487.8 288H170.7L179.9 336H488C501.3 336 512 346.7 512 360C512 373.3 501.3 384 488 384H159.1C148.5 384 138.6 375.8 136.4 364.5L76.14 48H24C10.75 48 0 37.25 0 24C0 10.75 10.75 0 24 0H96zM128 464C128 437.5 149.5 416 176 416C202.5 416 224 437.5 224 464C224 490.5 202.5 512 176 512C149.5 512 128 490.5 128 464zM512 464C512 490.5 490.5 512 464 512C437.5 512 416 490.5 416 464C416 437.5 437.5 416 464 416C490.5 416 512 437.5 512 464z\"/></svg>",
|
|
4836
5176
|
"cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -4853,6 +5193,7 @@
|
|
|
4853
5193
|
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
4854
5194
|
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
4855
5195
|
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
5196
|
+
"trash_bin": "<svg preserveAspectRatio=\"none\" version=\"1.1\" viewBox=\"0 0 50 50\" x=\"0px\" xmlns=\"http://www.w3.org/2000/svg\" y=\"0px\"><g transform=\" translate(14 10)\"><path d=\"M 0 0 L 0 18.215 C 0 19.99 1.439 21.429 3.215 21.429 L 15 21.429 C 16.775 21.429 18.215 19.99 18.215 18.215 L 18.215 0 L 0 0 Z M 4.287 19.286 L 2.143 19.286 L 2.143 2.143 L 4.287 2.143 L 4.287 19.286 Z M 10.18 19.286 L 8.037 19.286 L 8.037 2.143 L 10.18 2.143 L 10.18 19.286 Z M 16.072 19.286 L 13.93 19.286 L 13.93 2.143 L 16.072 2.143 L 16.072 19.286 Z\" fill=\"#1E2930\" transform=\" translate(1.891 8.571)\" /><path d=\"M 18.213 2.143 L 10.713 2.143 C 11.305 2.143 11.785 1.664 11.785 1.071 C 11.785 0.479 11.305 0 10.713 0 L 9.643 0 C 9.051 0 8.57 0.479 8.57 1.071 C 8.57 1.664 9.051 2.143 9.643 2.143 L 2.143 2.143 C 0.959 2.143 0 3.103 0 4.286 L 0 5.357 C 0 6.541 0.959 6.429 2.143 6.429 L 18.213 6.429 C 19.397 6.429 20.357 6.541 20.357 5.357 L 20.357 4.286 C 20.357 3.103 19.397 2.143 18.213 2.143 Z\" fill=\"#1E2930\" transform=\" translate(0.821 0)\" /></g></svg>",
|
|
4856
5197
|
"triangle_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"29.06 18.75 37.5 18.75 25 31.25 12.5 18.75 20.95 18.75 29.06 18.75\" fill=\"#484f60\"/></svg>",
|
|
4857
5198
|
"triangle_up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"20.94 31.25 12.5 31.25 25 18.75 37.5 31.25 29.05 31.25 20.94 31.25\" fill=\"#484f60\"/></svg>",
|
|
4858
5199
|
"truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.75\" width=\"17.47\" height=\"12.62\" fill=\"#484f60\"/><path d=\"M37,18.11h-8V28.84H20.22a4.42,4.42,0,0,1,1.41,2.73H30a4.41,4.41,0,0,1,8.76,0H40V24.63Zm-.26,6.73H32.25a.57.57,0,0,1-.57-.57V20a.57.57,0,0,1,.57-.58h2.63a.58.58,0,0,1,.52.35L37.31,24A.58.58,0,0,1,36.78,24.84Z\" fill=\"#484f60\"/><path d=\"M14.28,28.84a4.39,4.39,0,0,0-1.42,2.73H12l-2-1.26V28.84Z\" fill=\"#484f60\"/><path d=\"M31.25,32.1a3.16,3.16,0,1,0,3.16-3.16A3.16,3.16,0,0,0,31.25,32.1Z\" fill=\"#484f60\"/><path d=\"M14.09,32.1a3.16,3.16,0,1,0,3.16-3.16A3.15,3.15,0,0,0,14.09,32.1Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -5311,7 +5652,7 @@
|
|
|
5311
5652
|
},] }
|
|
5312
5653
|
];
|
|
5313
5654
|
CustomerGroupsComponent.ctorParameters = function () { return [
|
|
5314
|
-
{ type:
|
|
5655
|
+
{ type: TransactionConnectorService }
|
|
5315
5656
|
]; };
|
|
5316
5657
|
CustomerGroupsComponent.propDecorators = {
|
|
5317
5658
|
required: [{ type: i0.Input }],
|
|
@@ -5858,7 +6199,7 @@
|
|
|
5858
6199
|
];
|
|
5859
6200
|
RelationAddressComponent.ctorParameters = function () { return [
|
|
5860
6201
|
{ type: DictionaryService },
|
|
5861
|
-
{ type:
|
|
6202
|
+
{ type: TransactionConnectorService },
|
|
5862
6203
|
{ type: corecomponents_v12.FormMasterService }
|
|
5863
6204
|
]; };
|
|
5864
6205
|
RelationAddressComponent.propDecorators = {
|
|
@@ -6461,14 +6802,14 @@
|
|
|
6461
6802
|
};
|
|
6462
6803
|
return TransactionImageService;
|
|
6463
6804
|
}());
|
|
6464
|
-
TransactionImageService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionImageService_Factory() { return new TransactionImageService(i0__namespace.ɵɵinject(
|
|
6805
|
+
TransactionImageService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionImageService_Factory() { return new TransactionImageService(i0__namespace.ɵɵinject(TransactionConnectorService)); }, token: TransactionImageService, providedIn: "root" });
|
|
6465
6806
|
TransactionImageService.decorators = [
|
|
6466
6807
|
{ type: i0.Injectable, args: [{
|
|
6467
6808
|
providedIn: "root"
|
|
6468
6809
|
},] }
|
|
6469
6810
|
];
|
|
6470
6811
|
TransactionImageService.ctorParameters = function () { return [
|
|
6471
|
-
{ type:
|
|
6812
|
+
{ type: TransactionConnectorService }
|
|
6472
6813
|
]; };
|
|
6473
6814
|
|
|
6474
6815
|
var TransactionLineComponent = /** @class */ (function () {
|
|
@@ -6996,9 +7337,97 @@
|
|
|
6996
7337
|
},] }
|
|
6997
7338
|
];
|
|
6998
7339
|
|
|
7340
|
+
var SharedConnectorService = /** @class */ (function () {
|
|
7341
|
+
function SharedConnectorService(_optionsService) {
|
|
7342
|
+
this._optionsService = _optionsService;
|
|
7343
|
+
this._boFactory = new BusinessObjectFactory();
|
|
7344
|
+
}
|
|
7345
|
+
SharedConnectorService.prototype.connect = function () {
|
|
7346
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7347
|
+
return __generator(this, function (_a) {
|
|
7348
|
+
this.connector = new sharedapi.Sharedapi(this._optionsService.options);
|
|
7349
|
+
return [2 /*return*/];
|
|
7350
|
+
});
|
|
7351
|
+
});
|
|
7352
|
+
};
|
|
7353
|
+
SharedConnectorService.prototype.selectDocsByTableKey = function (table, key) {
|
|
7354
|
+
var _this = this;
|
|
7355
|
+
return new Promise(function (resolve, reject) {
|
|
7356
|
+
return _this.connector.selectDocsByTableKey(table, key).then(function (result) {
|
|
7357
|
+
if (result.validationResult && result.validationResult.success) {
|
|
7358
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(coDocument_bo.CoDocument, result.resultObjects));
|
|
7359
|
+
}
|
|
7360
|
+
else {
|
|
7361
|
+
reject(result.validationMessagesAsString);
|
|
7362
|
+
}
|
|
7363
|
+
});
|
|
7364
|
+
});
|
|
7365
|
+
};
|
|
7366
|
+
SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
7367
|
+
var _this = this;
|
|
7368
|
+
if (thumbnail === void 0) { thumbnail = true; }
|
|
7369
|
+
return new Promise(function (resolve, reject) {
|
|
7370
|
+
return _this.connector.getDocumentContent(id, thumbnail).then(function (result) {
|
|
7371
|
+
if (result.validationResult && result.validationResult.success) {
|
|
7372
|
+
resolve(result.resultObject.documentContent);
|
|
7373
|
+
}
|
|
7374
|
+
else {
|
|
7375
|
+
reject(result.validationMessagesAsString);
|
|
7376
|
+
}
|
|
7377
|
+
});
|
|
7378
|
+
});
|
|
7379
|
+
};
|
|
7380
|
+
return SharedConnectorService;
|
|
7381
|
+
}());
|
|
7382
|
+
SharedConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedConnectorService_Factory() { return new SharedConnectorService(i0__namespace.ɵɵinject(OptionsService)); }, token: SharedConnectorService, providedIn: "root" });
|
|
7383
|
+
SharedConnectorService.decorators = [
|
|
7384
|
+
{ type: i0.Injectable, args: [{
|
|
7385
|
+
providedIn: "root"
|
|
7386
|
+
},] }
|
|
7387
|
+
];
|
|
7388
|
+
SharedConnectorService.ctorParameters = function () { return [
|
|
7389
|
+
{ type: OptionsService }
|
|
7390
|
+
]; };
|
|
7391
|
+
|
|
7392
|
+
var SharedService = /** @class */ (function () {
|
|
7393
|
+
function SharedService(_optionsService, _connector) {
|
|
7394
|
+
var _this = this;
|
|
7395
|
+
this._optionsService = _optionsService;
|
|
7396
|
+
this._connector = _connector;
|
|
7397
|
+
this._subs = [];
|
|
7398
|
+
this._subs.push(this._optionsService.optionsLoaded.subscribe(function (loaded) {
|
|
7399
|
+
if (loaded) {
|
|
7400
|
+
_this._connector.connect();
|
|
7401
|
+
}
|
|
7402
|
+
}));
|
|
7403
|
+
}
|
|
7404
|
+
SharedService.prototype.ngOnDestroy = function () {
|
|
7405
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
7406
|
+
};
|
|
7407
|
+
SharedService.prototype.selectDocsByTableKey = function (table, key) {
|
|
7408
|
+
return this._connector.selectDocsByTableKey(table, key);
|
|
7409
|
+
};
|
|
7410
|
+
SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
7411
|
+
if (thumbnail === void 0) { thumbnail = true; }
|
|
7412
|
+
return this._connector.getDocumentContent(docId, thumbnail);
|
|
7413
|
+
};
|
|
7414
|
+
return SharedService;
|
|
7415
|
+
}());
|
|
7416
|
+
SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
7417
|
+
SharedService.decorators = [
|
|
7418
|
+
{ type: i0.Injectable, args: [{
|
|
7419
|
+
providedIn: "root"
|
|
7420
|
+
},] }
|
|
7421
|
+
];
|
|
7422
|
+
SharedService.ctorParameters = function () { return [
|
|
7423
|
+
{ type: OptionsService },
|
|
7424
|
+
{ type: SharedConnectorService }
|
|
7425
|
+
]; };
|
|
7426
|
+
|
|
6999
7427
|
var AvatarComponent = /** @class */ (function () {
|
|
7000
|
-
function AvatarComponent(
|
|
7001
|
-
this.
|
|
7428
|
+
function AvatarComponent(_transactionService, _sharedService) {
|
|
7429
|
+
this._transactionService = _transactionService;
|
|
7430
|
+
this._sharedService = _sharedService;
|
|
7002
7431
|
}
|
|
7003
7432
|
Object.defineProperty(AvatarComponent.prototype, "relationId", {
|
|
7004
7433
|
get: function () {
|
|
@@ -7019,11 +7448,11 @@
|
|
|
7019
7448
|
if (!isNaN(this._relationId)) {
|
|
7020
7449
|
var request = new relationRequest.RelationRequest();
|
|
7021
7450
|
request.relationId = this._relationId;
|
|
7022
|
-
this.
|
|
7451
|
+
this._transactionService.getRelationListObjects(request).then(function (data) {
|
|
7023
7452
|
if (data && data.length > 0) {
|
|
7024
7453
|
_this.relation = data[0];
|
|
7025
7454
|
if (_this.relation && _this.relation.image && _this.relation.image.documentId) {
|
|
7026
|
-
_this.
|
|
7455
|
+
_this._sharedService.getDocumentContent(_this.relation.image.documentId)
|
|
7027
7456
|
.then(function (content) {
|
|
7028
7457
|
_this.image = content;
|
|
7029
7458
|
})
|
|
@@ -7045,7 +7474,8 @@
|
|
|
7045
7474
|
},] }
|
|
7046
7475
|
];
|
|
7047
7476
|
AvatarComponent.ctorParameters = function () { return [
|
|
7048
|
-
{ type: TransactionService }
|
|
7477
|
+
{ type: TransactionService },
|
|
7478
|
+
{ type: SharedService }
|
|
7049
7479
|
]; };
|
|
7050
7480
|
AvatarComponent.propDecorators = {
|
|
7051
7481
|
relationId: [{ type: i0.Input }],
|
|
@@ -7121,30 +7551,174 @@
|
|
|
7121
7551
|
},] }
|
|
7122
7552
|
];
|
|
7123
7553
|
|
|
7554
|
+
var PaymentService = /** @class */ (function () {
|
|
7555
|
+
function PaymentService(_connector) {
|
|
7556
|
+
this._connector = _connector;
|
|
7557
|
+
}
|
|
7558
|
+
PaymentService.prototype.createOutstandingEntry = function (uuid, amount) {
|
|
7559
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7560
|
+
var response;
|
|
7561
|
+
return __generator(this, function (_a) {
|
|
7562
|
+
switch (_a.label) {
|
|
7563
|
+
case 0: return [4 /*yield*/, this._connector.createOutstandingEntry(uuid, amount)
|
|
7564
|
+
.catch(function (error) {
|
|
7565
|
+
// todo: do something with the error
|
|
7566
|
+
return false;
|
|
7567
|
+
})];
|
|
7568
|
+
case 1:
|
|
7569
|
+
response = _a.sent();
|
|
7570
|
+
if (response) {
|
|
7571
|
+
return [2 /*return*/, true];
|
|
7572
|
+
}
|
|
7573
|
+
return [2 /*return*/, false];
|
|
7574
|
+
}
|
|
7575
|
+
});
|
|
7576
|
+
});
|
|
7577
|
+
};
|
|
7578
|
+
PaymentService.prototype.registerSalesOrderPayment = function (uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId) {
|
|
7579
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7580
|
+
var response;
|
|
7581
|
+
return __generator(this, function (_a) {
|
|
7582
|
+
switch (_a.label) {
|
|
7583
|
+
case 0: return [4 /*yield*/, this._connector.registerSalesOrderPayment(uuid, amount, currencyCode, paymentMethod, cashRegisterGroupId)];
|
|
7584
|
+
case 1:
|
|
7585
|
+
response = _a.sent();
|
|
7586
|
+
// .catch((error) => {
|
|
7587
|
+
// // todo: do something with the error
|
|
7588
|
+
// // return;
|
|
7589
|
+
// });
|
|
7590
|
+
if (response) {
|
|
7591
|
+
return [2 /*return*/, true];
|
|
7592
|
+
}
|
|
7593
|
+
return [2 /*return*/, false];
|
|
7594
|
+
}
|
|
7595
|
+
});
|
|
7596
|
+
});
|
|
7597
|
+
};
|
|
7598
|
+
PaymentService.prototype.getPaymentMethods = function () {
|
|
7599
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7600
|
+
return __generator(this, function (_a) {
|
|
7601
|
+
return [2 /*return*/, this._connector.getPaymentMethods()];
|
|
7602
|
+
});
|
|
7603
|
+
});
|
|
7604
|
+
};
|
|
7605
|
+
return PaymentService;
|
|
7606
|
+
}());
|
|
7607
|
+
PaymentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PaymentService_Factory() { return new PaymentService(i0__namespace.ɵɵinject(TransactionConnectorService)); }, token: PaymentService, providedIn: "root" });
|
|
7608
|
+
PaymentService.decorators = [
|
|
7609
|
+
{ type: i0.Injectable, args: [{
|
|
7610
|
+
providedIn: "root"
|
|
7611
|
+
},] }
|
|
7612
|
+
];
|
|
7613
|
+
PaymentService.ctorParameters = function () { return [
|
|
7614
|
+
{ type: TransactionConnectorService }
|
|
7615
|
+
]; };
|
|
7616
|
+
|
|
7617
|
+
var PaymentViewmodel = /** @class */ (function () {
|
|
7618
|
+
function PaymentViewmodel(method) {
|
|
7619
|
+
this.payment = method;
|
|
7620
|
+
}
|
|
7621
|
+
return PaymentViewmodel;
|
|
7622
|
+
}());
|
|
7623
|
+
|
|
7124
7624
|
var PaymentComponent = /** @class */ (function () {
|
|
7125
|
-
function PaymentComponent(_transactionService) {
|
|
7625
|
+
function PaymentComponent(_transactionService, _sharedService, _paymentService) {
|
|
7126
7626
|
this._transactionService = _transactionService;
|
|
7627
|
+
this._sharedService = _sharedService;
|
|
7628
|
+
this._paymentService = _paymentService;
|
|
7127
7629
|
this.icons = Icon;
|
|
7128
7630
|
this.amount = 0;
|
|
7129
7631
|
this.paymentMethodIdx = 0;
|
|
7130
|
-
this.
|
|
7131
|
-
|
|
7132
|
-
{ icon: this.icons.IdealLogo, description: 'iDeal' },
|
|
7133
|
-
{ icon: this.icons.Truck, description: 'Creditcard' },
|
|
7134
|
-
{ icon: this.icons.Truck, description: 'Overschrijving' }
|
|
7135
|
-
];
|
|
7632
|
+
this.cashRegisterIdx = 0;
|
|
7633
|
+
this.paymentMethods = [];
|
|
7136
7634
|
this.cashRegisters = [];
|
|
7635
|
+
this.showCashRegisters = false;
|
|
7636
|
+
this.showKeyPad = false;
|
|
7137
7637
|
}
|
|
7138
7638
|
PaymentComponent.prototype.showClass = function () {
|
|
7139
7639
|
return true;
|
|
7140
7640
|
};
|
|
7141
7641
|
PaymentComponent.prototype.ngOnInit = function () {
|
|
7142
|
-
this
|
|
7642
|
+
var _this = this;
|
|
7643
|
+
this._paymentService.createOutstandingEntry(this.transactionUuid, this.amount).then(function () {
|
|
7644
|
+
_this._getPaymentMethods().then(function () {
|
|
7645
|
+
_this._prepareCashRegisters();
|
|
7646
|
+
});
|
|
7647
|
+
});
|
|
7648
|
+
};
|
|
7649
|
+
PaymentComponent.prototype.paymentMethodSelected = function (method, index) {
|
|
7650
|
+
this.paymentMethodIdx = index;
|
|
7651
|
+
this._prepareCashRegisters();
|
|
7652
|
+
};
|
|
7653
|
+
PaymentComponent.prototype.handlePayment = function () {
|
|
7654
|
+
var _this = this;
|
|
7655
|
+
var currentPaymentMethod = this.paymentMethods[this.paymentMethodIdx];
|
|
7656
|
+
var currentCashRegister = this.cashRegisters[this.cashRegisterIdx];
|
|
7657
|
+
this._paymentService.registerSalesOrderPayment(this.transactionUuid, this.amount, this.currencyCode, currentPaymentMethod.payment.code, currentCashRegister.group).then(function () {
|
|
7658
|
+
_this.showKeyPad = false;
|
|
7659
|
+
});
|
|
7660
|
+
};
|
|
7661
|
+
PaymentComponent.prototype.handleKeyPadModelChange = function (model) {
|
|
7662
|
+
this.amount = model;
|
|
7663
|
+
console.log(model);
|
|
7664
|
+
};
|
|
7665
|
+
/**
|
|
7666
|
+
*
|
|
7667
|
+
* @private
|
|
7668
|
+
*/
|
|
7669
|
+
PaymentComponent.prototype._prepareCashRegisters = function () {
|
|
7670
|
+
var _this = this;
|
|
7671
|
+
var paymentMethod = this.paymentMethods[this.paymentMethodIdx].payment;
|
|
7672
|
+
if (paymentMethod && !paymentMethod.externalSourceId) {
|
|
7673
|
+
this.cashRegisters.length = 0;
|
|
7674
|
+
paymentMethod.posGroups.forEach(function (crg) {
|
|
7675
|
+
_this._getCashRegisters(crg.branchNo, crg.id);
|
|
7676
|
+
});
|
|
7677
|
+
this.showCashRegisters = true;
|
|
7678
|
+
}
|
|
7679
|
+
else {
|
|
7680
|
+
this.showCashRegisters = false;
|
|
7681
|
+
}
|
|
7682
|
+
};
|
|
7683
|
+
PaymentComponent.prototype._getCashRegisters = function (branch, group) {
|
|
7684
|
+
var _this = this;
|
|
7685
|
+
this._transactionService.getCashRegisters(branch, group).then(function (cashRegisters) {
|
|
7686
|
+
var _a;
|
|
7687
|
+
(_a = _this.cashRegisters).push.apply(_a, __spreadArray([], __read(cashRegisters)));
|
|
7688
|
+
});
|
|
7143
7689
|
};
|
|
7144
|
-
PaymentComponent.prototype.
|
|
7690
|
+
PaymentComponent.prototype._getPaymentMethods = function () {
|
|
7145
7691
|
var _this = this;
|
|
7146
|
-
this.
|
|
7147
|
-
|
|
7692
|
+
this.paymentMethods.length = 0;
|
|
7693
|
+
return this._paymentService.getPaymentMethods().then(function (methods) {
|
|
7694
|
+
methods.forEach(function (m) { return __awaiter(_this, void 0, void 0, function () {
|
|
7695
|
+
var paymentViewModel, imageDocs, image, content;
|
|
7696
|
+
return __generator(this, function (_a) {
|
|
7697
|
+
switch (_a.label) {
|
|
7698
|
+
case 0:
|
|
7699
|
+
paymentViewModel = new PaymentViewmodel(m);
|
|
7700
|
+
imageDocs = m.documents.filter(function (d) { return d.isImageDocument(); });
|
|
7701
|
+
if (!(imageDocs && imageDocs.length)) return [3 /*break*/, 4];
|
|
7702
|
+
image = imageDocs[0];
|
|
7703
|
+
if (!image.filePath) return [3 /*break*/, 1];
|
|
7704
|
+
paymentViewModel.image = image.filePath;
|
|
7705
|
+
return [3 /*break*/, 4];
|
|
7706
|
+
case 1:
|
|
7707
|
+
if (!!image.thumbnailBody) return [3 /*break*/, 3];
|
|
7708
|
+
return [4 /*yield*/, this._sharedService.getDocumentContent(image.documentId)];
|
|
7709
|
+
case 2:
|
|
7710
|
+
content = _a.sent();
|
|
7711
|
+
image.thumbnailBody = content;
|
|
7712
|
+
_a.label = 3;
|
|
7713
|
+
case 3:
|
|
7714
|
+
paymentViewModel.image = image.thumbnailBodyAsDataUri;
|
|
7715
|
+
_a.label = 4;
|
|
7716
|
+
case 4:
|
|
7717
|
+
this.paymentMethods.push(paymentViewModel);
|
|
7718
|
+
return [2 /*return*/];
|
|
7719
|
+
}
|
|
7720
|
+
});
|
|
7721
|
+
}); });
|
|
7148
7722
|
});
|
|
7149
7723
|
};
|
|
7150
7724
|
return PaymentComponent;
|
|
@@ -7152,15 +7726,19 @@
|
|
|
7152
7726
|
PaymentComponent.decorators = [
|
|
7153
7727
|
{ type: i0.Component, args: [{
|
|
7154
7728
|
selector: "co-payment",
|
|
7155
|
-
template: "\n <div class=\"payment-wrapper\">\n <div class=\"payment-methods-header\">\n <span class=\"payment-header-title\" [textContent]=\"'
|
|
7729
|
+
template: "\n <div class=\"payment-wrapper\">\n <div class=\"payment-methods-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT_A' | localize\"></span>\n <span class=\"payment-header-title extra\" [textContent]=\"'FREE' | localize:false\"></span>\n <span class=\"payment-header-title\" [textContent]=\"'PAYMENT_METHOD' | localize:false\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let paymentMethod of paymentMethods; let index = index\"\n [image]=\"paymentMethod.image\"\n [description]=\"paymentMethod.payment.description\"\n [selected]=\"paymentMethodIdx === index\"\n (selectedChange)=\"paymentMethodSelected(paymentMethod.payment, index)\"\n ></co-payment-tile>\n </div>\n <div class=\"payment-cash-register-wrapper\" *ngIf=\"showCashRegisters\">\n <div class=\"payment-cash-register-header\">\n <span class=\"payment-header-title\" [textContent]=\"'SELECT_CASH_REGISTER' | localize\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let cashRegister of cashRegisters; let index = index\"\n [icon]=\"cashRegister.icon\"\n [description]=\"cashRegister.description\"\n [selected]=\"cashRegisterIdx === index\"\n ></co-payment-tile>\n </div>\n </div>\n <div class=\"payment-to-pay-wrapper\">\n <div class=\"payment-to-pay\">\n <div [textContent]=\"'TO_PAY' | localize\"></div>\n <div class=\"payment-amount\" [textContent]=\"amount | priceDisplay\"></div>\n </div>\n <div class=\"payment-to-pay-button\">\n <co-button [label]=\"'PAY' | localize\" (click)=\"handlePayment()\"></co-button>\n </div>\n <co-key-pad class=\"payment-to-pay-keypad\"\n [showValue]=\"false\"\n [emitModelChangeOnEnter]=\"false\"\n [model]=\"amount\"\n (modelChange)=\"handleKeyPadModelChange($event)\"\n (enterClick)=\"handlePayment()\"\n ></co-key-pad>\n </div>\n </div>\n ",
|
|
7156
7730
|
encapsulation: i0.ViewEncapsulation.None
|
|
7157
7731
|
},] }
|
|
7158
7732
|
];
|
|
7159
7733
|
PaymentComponent.ctorParameters = function () { return [
|
|
7160
|
-
{ type: TransactionService }
|
|
7734
|
+
{ type: TransactionService },
|
|
7735
|
+
{ type: SharedService },
|
|
7736
|
+
{ type: PaymentService }
|
|
7161
7737
|
]; };
|
|
7162
7738
|
PaymentComponent.propDecorators = {
|
|
7739
|
+
transactionUuid: [{ type: i0.Input }],
|
|
7163
7740
|
amount: [{ type: i0.Input }],
|
|
7741
|
+
currencyCode: [{ type: i0.Input }],
|
|
7164
7742
|
showClass: [{ type: i0.HostBinding, args: ["class.co-payment",] }]
|
|
7165
7743
|
};
|
|
7166
7744
|
|
|
@@ -7177,13 +7755,14 @@
|
|
|
7177
7755
|
PaymentTileComponent.decorators = [
|
|
7178
7756
|
{ type: i0.Component, args: [{
|
|
7179
7757
|
selector: "co-payment-tile",
|
|
7180
|
-
template: "\n <co-tile [selected]=\"selected\" (selectedChange)=\"selectedChange.emit($event)\">\n <div class=\"payment-tile-wrapper\">\n <icon class=\"payment-tile-icon\" [icon]=\"icon\"></icon>\n <span class=\"payment-tile-description\" [textContent]=\"description | localize\"></span>\n </div>\n </co-tile>\n ",
|
|
7758
|
+
template: "\n <co-tile [selected]=\"selected\" (selectedChange)=\"selectedChange.emit($event)\">\n <div class=\"payment-tile-wrapper\">\n <icon *ngIf=\"icon\" class=\"payment-tile-icon\" [icon]=\"icon\"></icon>\n <img *ngIf=\"image\" class=\"payment-tile-image\" [src]=\"image\"/>\n <span class=\"payment-tile-description\" [textContent]=\"description | localize\"></span>\n </div>\n </co-tile>\n ",
|
|
7181
7759
|
encapsulation: i0.ViewEncapsulation.None
|
|
7182
7760
|
},] }
|
|
7183
7761
|
];
|
|
7184
7762
|
PaymentTileComponent.propDecorators = {
|
|
7185
7763
|
selected: [{ type: i0.Input }],
|
|
7186
7764
|
icon: [{ type: i0.Input }],
|
|
7765
|
+
image: [{ type: i0.Input }],
|
|
7187
7766
|
description: [{ type: i0.Input }],
|
|
7188
7767
|
selectedChange: [{ type: i0.Output }],
|
|
7189
7768
|
showClass: [{ type: i0.HostBinding, args: ["class.co-payment-tile",] }]
|
|
@@ -7223,7 +7802,10 @@
|
|
|
7223
7802
|
CoreModule,
|
|
7224
7803
|
PipeModule,
|
|
7225
7804
|
PaymentTileModule,
|
|
7226
|
-
corecomponents_v12.PriceDisplayPipeModule
|
|
7805
|
+
corecomponents_v12.PriceDisplayPipeModule,
|
|
7806
|
+
sharedcomponents.KeyPadModule,
|
|
7807
|
+
corecomponents_v12.CoDialogModule,
|
|
7808
|
+
corecomponents_v12.ButtonModule
|
|
7227
7809
|
],
|
|
7228
7810
|
declarations: [
|
|
7229
7811
|
PaymentComponent
|
|
@@ -7350,23 +7932,12 @@
|
|
|
7350
7932
|
ContentViewMode[ContentViewMode["Tiles"] = 5] = "Tiles";
|
|
7351
7933
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
7352
7934
|
|
|
7353
|
-
var TabCategory;
|
|
7354
|
-
(function (TabCategory) {
|
|
7355
|
-
TabCategory[TabCategory["Overview"] = 0] = "Overview";
|
|
7356
|
-
TabCategory[TabCategory["OrderConfirmation"] = 1] = "OrderConfirmation";
|
|
7357
|
-
TabCategory[TabCategory["Transport"] = 2] = "Transport";
|
|
7358
|
-
TabCategory[TabCategory["ReceivedGoods"] = 3] = "ReceivedGoods";
|
|
7359
|
-
TabCategory[TabCategory["InvoiceCheck"] = 4] = "InvoiceCheck";
|
|
7360
|
-
TabCategory[TabCategory["Menu"] = 5] = "Menu";
|
|
7361
|
-
})(TabCategory || (TabCategory = {}));
|
|
7362
|
-
|
|
7363
7935
|
var TransactionComponent = /** @class */ (function () {
|
|
7364
7936
|
function TransactionComponent(iconCacheService, _service) {
|
|
7365
7937
|
var _this = this;
|
|
7366
7938
|
this.iconCacheService = iconCacheService;
|
|
7367
7939
|
this._service = _service;
|
|
7368
7940
|
this.viewModes = ContentViewMode;
|
|
7369
|
-
this.tabCategory = TabCategory;
|
|
7370
7941
|
this.icons = Icon;
|
|
7371
7942
|
this.showHeader = true;
|
|
7372
7943
|
this.showQuickAccess = true;
|
|
@@ -7396,8 +7967,12 @@
|
|
|
7396
7967
|
configurable: true
|
|
7397
7968
|
});
|
|
7398
7969
|
Object.defineProperty(TransactionComponent.prototype, "transactionId", {
|
|
7970
|
+
get: function () {
|
|
7971
|
+
return this._transactionId;
|
|
7972
|
+
},
|
|
7399
7973
|
set: function (value) {
|
|
7400
7974
|
if (value) {
|
|
7975
|
+
this._transactionId = value;
|
|
7401
7976
|
this._service.getTransactionById(value).catch(function () { });
|
|
7402
7977
|
}
|
|
7403
7978
|
},
|
|
@@ -7439,7 +8014,7 @@
|
|
|
7439
8014
|
TransactionComponent.decorators = [
|
|
7440
8015
|
{ type: i0.Component, args: [{
|
|
7441
8016
|
selector: "co-transaction",
|
|
7442
|
-
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionLines]=\"transaction.transactionLines\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\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 [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\" @showHideSidePanel\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionLine]=\"sidePanelTransactionLine\"\n (cancelClick)=\"handleCloseSidePanel($event)\"\n ></co-transaction-line-side-panel>\n ",
|
|
8017
|
+
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n ></co-transaction-quick-access>\n\n <co-transaction-button-bar *ngIf=\"showButtonBar\" class=\"transaction-lines-header-item\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\"\n ></co-transaction-button-bar>\n\n <co-view-mode-buttons class=\"transaction-lines-header-item\"\n [showViewModes]=\"[viewModes.List, viewModes.Grid]\" (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n </div>\n\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionLines]=\"transaction.transactionLines\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-grid\n [transactionLines]=\"transaction.transactionLines\"\n [transactionId]=\"transactionId\"\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-grid>\n <!--\n <co-transaction-order-confirmation-grid\n *ngIf=\"activeCategory === 1\"\n [transactionLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"handleShowSidePanel($event)\"\n ></co-transaction-order-confirmation-grid>\n -->\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\" @showHideSidePanel\n [transactionType]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n [transactionLine]=\"sidePanelTransactionLine\"\n [transactionId]=\"transactionId\"\n (cancelClick)=\"handleCloseSidePanel($event)\"\n ></co-transaction-line-side-panel>\n ",
|
|
7443
8018
|
animations: [
|
|
7444
8019
|
animations.trigger("showHideSidePanel", [
|
|
7445
8020
|
animations.state("void", animations.style({ transform: 'translateX(100%)' })),
|
|
@@ -7720,7 +8295,7 @@
|
|
|
7720
8295
|
TransactionHeaderDeliveryComponent.decorators = [
|
|
7721
8296
|
{ type: i0.Component, args: [{
|
|
7722
8297
|
selector: "co-transaction-header-delivery",
|
|
7723
|
-
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\">\n <co-icon [iconData]=\"iconService.getIcon(icons.DeliveryTruck)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDay)\"></co-icon>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <span class=\"header-delivery-deliverydate\" [textContent]=\"transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.Lock)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.Unlock)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <div class=\"header-delivery-preferred-deliverydate\" [textContent]=\"transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy'\"></div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-delivery-partial-delivery-label co-transaction-label\" [textContent]=\"'PART_DELIVERY' | localize\"></div>\n <co-input-checkbox class=\"header-delivery-partial-delivery\" [model]=\"transactionInfo.allowPartialDelivery\"></co-input-checkbox>\n </ng-template>\n ",
|
|
8298
|
+
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-delivery-method\">\n <co-icon class=\"header-delivery-truck-icon\" [iconData]=\"iconService.getIcon(icons.DeliveryTruck)\"></co-icon>\n <span [textContent]=\"deliveryMethod?.description\"></span>\n </div>\n <co-icon class=\"planning-request-button\" [class.co-transaction-check]=\"transactionInfo.deliveryDateDefinitive\"\n [iconData]=\"iconService.getIcon(icons.CalendarDay)\"></co-icon>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-delivery-deliverydate-label co-transaction-label\" [textContent]=\"'DELIVERY_DATE' | localize\"></div>\n <div class=\"header-delivery-deliverydate-wrapper\" [class.closed]=\"transactionInfo.deliveryDateDefinitive\">\n <span class=\"header-delivery-deliverydate\" [textContent]=\"transactionInfo.deliveryDate | date:'dd MMM yyyy'\"></span>\n <co-icon *ngIf=\"transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.Lock)\"></co-icon>\n <co-icon *ngIf=\"!transactionInfo.deliveryDateDefinitive\" [iconData]=\"iconService.getIcon(icons.Unlock)\"></co-icon>\n </div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-delivery-preferred-deliverydate-label co-transaction-label\" [textContent]=\"'PREFERRED_DATE' | localize\"></div>\n <div class=\"header-delivery-preferred-deliverydate\" [textContent]=\"transactionInfo.preferredDeliveryDate | date:'dd MMM yyyy'\"></div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-delivery-partial-delivery-label co-transaction-label\" [textContent]=\"'PART_DELIVERY' | localize\"></div>\n <co-input-checkbox class=\"header-delivery-partial-delivery\" [model]=\"transactionInfo.allowPartialDelivery\"></co-input-checkbox>\n </ng-template>\n ",
|
|
7724
8299
|
encapsulation: i0.ViewEncapsulation.None
|
|
7725
8300
|
},] }
|
|
7726
8301
|
];
|
|
@@ -7769,7 +8344,7 @@
|
|
|
7769
8344
|
TransactionHeaderOrderComponent.decorators = [
|
|
7770
8345
|
{ type: i0.Component, args: [{
|
|
7771
8346
|
selector: "co-transaction-header-order",
|
|
7772
|
-
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n
|
|
8347
|
+
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\n [thirdBlockTemplate]=\"thirdBlock\"\n >\n </co-transaction-header-block>\n <ng-template #headerBlock>\n <div class=\"header-block-label\" [textContent]=\"transactionInfo.branch?.familyName\"></div>\n </ng-template>\n <ng-template #firstBlock>\n <span class=\"header-order-total-label co-transaction-label\" [textContent]=\"'ORDER_TOTAL' | localize\"></span>\n <div class=\"header-order-total\" [textContent]=\"transactionTotal.netAmount | priceDisplay\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <span class=\"header-order-line-amount-label co-transaction-label\" [textContent]=\"'ORDER_LINES' | localize\"></span>\n <div class=\"header-order-line-amount\" [textContent]=\"transactionLines.length\"></div>\n </ng-template>\n <ng-template #thirdBlock>\n <div class=\"header-order-definitive-label co-transaction-label\" [textContent]=\"'DEFINITIVE' | localize\"></div>\n <co-input-checkbox [model]=\"true\"></co-input-checkbox>\n </ng-template>\n ",
|
|
7773
8348
|
encapsulation: i0.ViewEncapsulation.None
|
|
7774
8349
|
},] }
|
|
7775
8350
|
];
|
|
@@ -7803,17 +8378,22 @@
|
|
|
7803
8378
|
var TransactionHeaderPaymentComponent = /** @class */ (function (_super) {
|
|
7804
8379
|
__extends(TransactionHeaderPaymentComponent, _super);
|
|
7805
8380
|
function TransactionHeaderPaymentComponent() {
|
|
7806
|
-
|
|
8381
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
8382
|
+
_this.showPaymentDialog = false;
|
|
8383
|
+
return _this;
|
|
7807
8384
|
}
|
|
7808
8385
|
TransactionHeaderPaymentComponent.prototype.showClass = function () {
|
|
7809
8386
|
return true;
|
|
7810
8387
|
};
|
|
8388
|
+
TransactionHeaderPaymentComponent.prototype.openPayment = function () {
|
|
8389
|
+
this.showPaymentDialog = true;
|
|
8390
|
+
};
|
|
7811
8391
|
return TransactionHeaderPaymentComponent;
|
|
7812
8392
|
}(TransactionBaseComponent));
|
|
7813
8393
|
TransactionHeaderPaymentComponent.decorators = [
|
|
7814
8394
|
{ type: i0.Component, args: [{
|
|
7815
8395
|
selector: "co-transaction-header-payment",
|
|
7816
|
-
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\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\">\n <span class=\"payment-paid\" [textContent]=\"200 | priceDisplay\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-to-pay\" [textContent]=\"100 | priceDisplay\"></span>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <div class=\"header-downpayment-percentage\" [textContent]=\"'NOT_IMPLEMENTED'\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <div class=\"header-downpayment\" [textContent]=\"'NOT_IMPLEMENTED'\"></div>\n </ng-template>\n ",
|
|
8396
|
+
template: "\n <co-transaction-header-block\n [headerBlockTemplate]=\"headerBlock\"\n [firstBlockTemplate]=\"firstBlock\"\n [secondBlockTemplate]=\"secondBlock\"\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\" (click)=\"openPayment()\">\n <span class=\"payment-paid\" [textContent]=\"200 | priceDisplay\"></span>\n <span class=\"payment-divider\" [textContent]=\"'/'\"></span>\n <span class=\"payment-to-pay\" [textContent]=\"100 | priceDisplay\"></span>\n </div>\n </ng-template>\n <ng-template #firstBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></div>\n <div class=\"header-downpayment-percentage\" [textContent]=\"'NOT_IMPLEMENTED'\"></div>\n </ng-template>\n <ng-template #secondBlock>\n <div class=\"header-downpayment-label co-transaction-label\" [textContent]=\"'DOWNPAYMENT_AMOUNT' | localize\"></div>\n <div class=\"header-downpayment\" [textContent]=\"'NOT_IMPLEMENTED'\"></div>\n </ng-template>\n <co-dialog class=\"payment-dialog\" *ngIf=\"showPaymentDialog\"\n [modal]=\"true\"\n (closeClick)=\"showPaymentDialog = false\"\n >\n <co-payment\n [transactionUuid]=\"transactionInfo.uuid\"\n [amount]=\"transactionTotal.netAmount\"\n [currencyCode]=\"transactionInfo.currencyId\"\n ></co-payment>\n </co-dialog>\n ",
|
|
7817
8397
|
encapsulation: i0.ViewEncapsulation.None
|
|
7818
8398
|
},] }
|
|
7819
8399
|
];
|
|
@@ -7832,7 +8412,9 @@
|
|
|
7832
8412
|
common.CommonModule,
|
|
7833
8413
|
TransactionHeaderBlockModule,
|
|
7834
8414
|
PipeModule,
|
|
7835
|
-
corecomponents_v12.PriceDisplayPipeModule
|
|
8415
|
+
corecomponents_v12.PriceDisplayPipeModule,
|
|
8416
|
+
corecomponents_v12.CoDialogModule,
|
|
8417
|
+
PaymentModule
|
|
7836
8418
|
],
|
|
7837
8419
|
declarations: [
|
|
7838
8420
|
TransactionHeaderPaymentComponent
|
|
@@ -7873,6 +8455,7 @@
|
|
|
7873
8455
|
this.icons = Icon;
|
|
7874
8456
|
this.align = corecomponents_v12.ColumnAlign;
|
|
7875
8457
|
this.sidePanelClicked = new i0.EventEmitter();
|
|
8458
|
+
this.rowVisible = new i0.EventEmitter();
|
|
7876
8459
|
this.extraColumns = [];
|
|
7877
8460
|
this._transactionLines = [];
|
|
7878
8461
|
}
|
|
@@ -7923,8 +8506,10 @@
|
|
|
7923
8506
|
]; };
|
|
7924
8507
|
TransactionGridBaseComponent.propDecorators = {
|
|
7925
8508
|
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
8509
|
+
transactionId: [{ type: i0.Input }],
|
|
7926
8510
|
transactionLines: [{ type: i0.Input }],
|
|
7927
|
-
sidePanelClicked: [{ type: i0.Output }]
|
|
8511
|
+
sidePanelClicked: [{ type: i0.Output }],
|
|
8512
|
+
rowVisible: [{ type: i0.Output }]
|
|
7928
8513
|
};
|
|
7929
8514
|
|
|
7930
8515
|
var TransactionLinesGridComponent = /** @class */ (function (_super) {
|
|
@@ -7979,7 +8564,7 @@
|
|
|
7979
8564
|
TransactionBaseGridComponent.decorators = [
|
|
7980
8565
|
{ type: i0.Component, args: [{
|
|
7981
8566
|
selector: "co-transaction-base-grid",
|
|
7982
|
-
template: "\n <co-simple-grid [data]=\"transactionLines\"
|
|
8567
|
+
template: "\n <co-simple-grid [data]=\"transactionLines\"\n [extraColumns]=\"extraColumns\"\n [dragDropEnabled]=\"true\"\n [emitDragDrop]=\"true\"\n (onDrop)=\"handleDrop($event)\"\n (rowVisible)=\"rowVisible.next($event)\">\n <co-simple-grid-column [headerText]=\"'DESCRIPTION' | localize\" [width]=\"300\" [order]=\"10\">\n <ng-template #template let-row = \"row\">\n <div class=\"transaction-grid-article-description\" [textContent]=\"row.goodDescription\"></div>\n <div class=\"transaction-grid-article-text\" [textContent]=\"row.articleBoundConcatenatedText\"></div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [width]=\"150\" [order]=\"20\">\n <ng-template #template let-row = \"row\">\n <co-image-display class=\"transaction-grid-article-image\" [model]=\"row.articleImageData\"></co-image-display>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [field]=\"'articleNumber'\" [width]=\"70\" [order]=\"30\" [textAlign]=\"align.Center\">\n <ng-template #headerTemplate>\n <icon class=\"transaction-grid-header-icon\" [icon]=\"icon.BarcodeSolid\"></icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"''\" [width]=\"40\" [field]=\"'sideMenuButton'\" [order]=\"400\">\n <ng-template #template let-row = \"row\">\n <icon class=\"sidepanel-icon\" [icon]=\"icons.Menu\" (click)=\"openSidePanel(row)\"></icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n ",
|
|
7983
8568
|
encapsulation: i0.ViewEncapsulation.None
|
|
7984
8569
|
},] }
|
|
7985
8570
|
];
|
|
@@ -7987,11 +8572,56 @@
|
|
|
7987
8572
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-base-grid',] }]
|
|
7988
8573
|
};
|
|
7989
8574
|
|
|
8575
|
+
var TransactionTypeCategory;
|
|
8576
|
+
(function (TransactionTypeCategory) {
|
|
8577
|
+
TransactionTypeCategory["PurchaseOrderOverview"] = "purchaseOrderOverview";
|
|
8578
|
+
TransactionTypeCategory["PurchaseOrderOrderConfirmation"] = "purchaseOrderOrderConfirmation";
|
|
8579
|
+
TransactionTypeCategory["PurchaseOrderTransport"] = "purchaseOrderTransport";
|
|
8580
|
+
TransactionTypeCategory["PurchaseOrderReceivedGoods"] = "purchaseOrderReceivedGoods";
|
|
8581
|
+
TransactionTypeCategory["PurchaseOrderInvoiceCheck"] = "purchaseOrderInvoiceCheck";
|
|
8582
|
+
TransactionTypeCategory["PurchaseOrderMenu"] = "purchaseOrderMenu";
|
|
8583
|
+
TransactionTypeCategory["SalesOrderOverview"] = "salesOrderOverview";
|
|
8584
|
+
TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
|
|
8585
|
+
TransactionTypeCategory["SalesOrderLogistics"] = "salesOrderLogistics";
|
|
8586
|
+
TransactionTypeCategory["SalesOrderPlanning"] = "salesOrderPlanning";
|
|
8587
|
+
TransactionTypeCategory["SalesOrderDeliveryNote"] = "salesOrderDeliveryNote";
|
|
8588
|
+
TransactionTypeCategory["SalesOrderInvoice"] = "salesOrderInvoice";
|
|
8589
|
+
})(TransactionTypeCategory || (TransactionTypeCategory = {}));
|
|
8590
|
+
|
|
8591
|
+
var TransactionEventService = /** @class */ (function () {
|
|
8592
|
+
function TransactionEventService() {
|
|
8593
|
+
this.addToCartBySku = new rxjs.Subject();
|
|
8594
|
+
this.addToCartBySelectorResult = new rxjs.Subject();
|
|
8595
|
+
this.openShoppingCartModule = new rxjs.Subject();
|
|
8596
|
+
this.loggedIn = new rxjs.Subject();
|
|
8597
|
+
this.addNewUserToShoppingCartModule = new rxjs.Subject();
|
|
8598
|
+
this.addUserRelationShoppingCartModule = new rxjs.Subject();
|
|
8599
|
+
this.addArticleLine = new rxjs.Subject();
|
|
8600
|
+
this.addTextLine = new rxjs.Subject();
|
|
8601
|
+
this.addArticleLineAt = new rxjs.Subject();
|
|
8602
|
+
this.addTextLineAt = new rxjs.Subject();
|
|
8603
|
+
this.changeLineSequence = new rxjs.Subject();
|
|
8604
|
+
this.transactionLineClicked = new rxjs.Subject();
|
|
8605
|
+
this.rightSidebarClose = new rxjs.Subject();
|
|
8606
|
+
this.scrollContent = new rxjs.Subject();
|
|
8607
|
+
this.receivedPurchaseOrderCommit = new rxjs.Subject();
|
|
8608
|
+
this.commitReceivePurchaseOrders = new rxjs.Subject();
|
|
8609
|
+
this.transactionLineChanged = new rxjs.Subject();
|
|
8610
|
+
}
|
|
8611
|
+
return TransactionEventService;
|
|
8612
|
+
}());
|
|
8613
|
+
TransactionEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
|
|
8614
|
+
TransactionEventService.decorators = [
|
|
8615
|
+
{ type: i0.Injectable, args: [{ providedIn: "root" },] }
|
|
8616
|
+
];
|
|
8617
|
+
|
|
7990
8618
|
var TransactionLineSidePanelComponent = /** @class */ (function () {
|
|
7991
|
-
function TransactionLineSidePanelComponent(iconService) {
|
|
8619
|
+
function TransactionLineSidePanelComponent(iconService, _service, _transactionEventService) {
|
|
7992
8620
|
this.iconService = iconService;
|
|
8621
|
+
this._service = _service;
|
|
8622
|
+
this._transactionEventService = _transactionEventService;
|
|
7993
8623
|
this.icons = Icon;
|
|
7994
|
-
this.
|
|
8624
|
+
this.categories = TransactionTypeCategory;
|
|
7995
8625
|
this.transactionTypes = transactionKind_enum.TransactionKind;
|
|
7996
8626
|
this.transactionLine = new transactionLineInfo_bo.TransactionLineInfo();
|
|
7997
8627
|
this.cancelClick = new i0.EventEmitter();
|
|
@@ -8007,16 +8637,19 @@
|
|
|
8007
8637
|
TransactionLineSidePanelComponent.decorators = [
|
|
8008
8638
|
{ type: i0.Component, args: [{
|
|
8009
8639
|
selector: "co-transaction-line-side-panel",
|
|
8010
|
-
template: "\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\"
|
|
8640
|
+
template: "\n <icon (click)=\"handleCancelClick($event)\" [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 ? ('TO_REPORT_IN' | 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 [transactionType]=\"transactionType\"\n (buttonClicked)=\"activeCategory = $event.category\"\n ></co-transaction-button-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"transactionType\">\n <ng-container *ngSwitchCase=\"transactionTypes.PurchaseOrder\">\n <co-transaction-line-side-panel-purchase\n [transactionLine]=\"transactionLine\"\n [transactionId]=\"transactionId\"\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 [category]=\"activeCategory\"\n ></co-transaction-line-side-panel-purchase>\n </ng-container>\n </ng-container>\n </div>\n ",
|
|
8011
8641
|
encapsulation: i0.ViewEncapsulation.None
|
|
8012
8642
|
},] }
|
|
8013
8643
|
];
|
|
8014
8644
|
TransactionLineSidePanelComponent.ctorParameters = function () { return [
|
|
8015
|
-
{ type: IconCacheService }
|
|
8645
|
+
{ type: IconCacheService },
|
|
8646
|
+
{ type: TransactionService },
|
|
8647
|
+
{ type: TransactionEventService }
|
|
8016
8648
|
]; };
|
|
8017
8649
|
TransactionLineSidePanelComponent.propDecorators = {
|
|
8018
8650
|
transactionType: [{ type: i0.Input }],
|
|
8019
8651
|
transactionLine: [{ type: i0.Input }],
|
|
8652
|
+
transactionId: [{ type: i0.Input }],
|
|
8020
8653
|
activeCategory: [{ type: i0.Input }],
|
|
8021
8654
|
cancelClick: [{ type: i0.Output }],
|
|
8022
8655
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
@@ -9025,36 +9658,19 @@
|
|
|
9025
9658
|
},] }
|
|
9026
9659
|
];
|
|
9027
9660
|
|
|
9028
|
-
var TransactionReceivingGoodsHistoryComponent = /** @class */ (function () {
|
|
9029
|
-
function TransactionReceivingGoodsHistoryComponent() {
|
|
9030
|
-
this.transactionLines = [];
|
|
9031
|
-
}
|
|
9032
|
-
TransactionReceivingGoodsHistoryComponent.prototype.showClass = function () {
|
|
9033
|
-
return true;
|
|
9034
|
-
};
|
|
9035
|
-
return TransactionReceivingGoodsHistoryComponent;
|
|
9036
|
-
}());
|
|
9037
|
-
TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
9038
|
-
{ type: i0.Component, args: [{
|
|
9039
|
-
selector: "co-transaction-receiving-goods-history",
|
|
9040
|
-
template: "\n <div class=\"history-grid-wrapper\">\n <co-transaction-history-grid [transactionLines]=\"transactionLines\">\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\" [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [field]=\"'warehouseLocation'\" [order]=\"60\"></co-simple-grid-column>\n </co-transaction-history-grid>\n </div>\n ",
|
|
9041
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
9042
|
-
},] }
|
|
9043
|
-
];
|
|
9044
|
-
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
9045
|
-
transactionLines: [{ type: i0.Input }],
|
|
9046
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
|
|
9047
|
-
};
|
|
9048
|
-
|
|
9049
9661
|
var StatusType;
|
|
9050
9662
|
(function (StatusType) {
|
|
9051
9663
|
StatusType["Unknown"] = "UNKNOWN";
|
|
9664
|
+
StatusType["BG"] = "RECEIVED";
|
|
9665
|
+
StatusType["BT"] = "ORDERED";
|
|
9052
9666
|
})(StatusType || (StatusType = {}));
|
|
9053
9667
|
|
|
9054
9668
|
var TransactionHistoryGridComponent = /** @class */ (function () {
|
|
9055
|
-
function TransactionHistoryGridComponent() {
|
|
9056
|
-
this.
|
|
9669
|
+
function TransactionHistoryGridComponent(iconsService) {
|
|
9670
|
+
this.iconsService = iconsService;
|
|
9057
9671
|
this.statusType = StatusType;
|
|
9672
|
+
this.icons = Icon;
|
|
9673
|
+
this.deleteSelectedRow = new i0.EventEmitter();
|
|
9058
9674
|
this.extraColumns = [];
|
|
9059
9675
|
}
|
|
9060
9676
|
Object.defineProperty(TransactionHistoryGridComponent.prototype, "content", {
|
|
@@ -9068,33 +9684,50 @@
|
|
|
9068
9684
|
return true;
|
|
9069
9685
|
};
|
|
9070
9686
|
TransactionHistoryGridComponent.prototype.handleSelectRow = function (row) {
|
|
9071
|
-
|
|
9687
|
+
this.selectedRow = row;
|
|
9688
|
+
};
|
|
9689
|
+
TransactionHistoryGridComponent.prototype.handleDeleteClick = function () {
|
|
9690
|
+
this.deleteSelectedRow.next(this.selectedRow);
|
|
9072
9691
|
};
|
|
9073
9692
|
return TransactionHistoryGridComponent;
|
|
9074
9693
|
}());
|
|
9075
9694
|
TransactionHistoryGridComponent.decorators = [
|
|
9076
9695
|
{ type: i0.Component, args: [{
|
|
9077
9696
|
selector: "co-transaction-history-grid",
|
|
9078
|
-
template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid [data]=\"
|
|
9697
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <div class=\"delete-button-wrapper\">\n <co-grid-toolbar-button\n (buttonClick)=\"handleDeleteClick()\"\n [iconData]=\"iconsService.getIcon(icons.TrashBin)\"\n [disabled]=\"!selectedRow\"\n ></co-grid-toolbar-button>\n </div>\n <co-simple-grid [data]=\"collection\" [extraColumns]=\"extraColumns\" (selectRow)=\"handleSelectRow($event)\">\n <co-simple-grid-column [headerText]=\"'STATE' | localize\" [field]=\"'status'\" [order]=\"10\" [width]=\"150\">\n <ng-template #template let-row=\"row\">\n <co-transaction-history-grid-status [statusType]=\"row.status\" [subType]=\"row.type\"></co-transaction-history-grid-status>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\" [field]=\"'receiptDate'\" [order]=\"20\" [width]=\"100\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [field]=\"'quantity'\" [order]=\"30\" [width]=\"70\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE' | localize\" [field]=\"'reference'\" [order]=\"50\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER' | localize\" [field]=\"'username'\" [order]=\"70\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
9079
9698
|
encapsulation: i0.ViewEncapsulation.None
|
|
9080
9699
|
},] }
|
|
9081
9700
|
];
|
|
9701
|
+
TransactionHistoryGridComponent.ctorParameters = function () { return [
|
|
9702
|
+
{ type: IconCacheService }
|
|
9703
|
+
]; };
|
|
9082
9704
|
TransactionHistoryGridComponent.propDecorators = {
|
|
9083
9705
|
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
9084
|
-
|
|
9706
|
+
collection: [{ type: i0.Input }],
|
|
9707
|
+
deleteSelectedRow: [{ type: i0.Output }],
|
|
9085
9708
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-history-grid",] }]
|
|
9086
9709
|
};
|
|
9087
9710
|
|
|
9088
9711
|
var TransactionHistoryGridStatusComponent = /** @class */ (function () {
|
|
9089
9712
|
function TransactionHistoryGridStatusComponent() {
|
|
9713
|
+
this.type = StatusType;
|
|
9090
9714
|
}
|
|
9091
9715
|
TransactionHistoryGridStatusComponent.prototype.showClass = function () {
|
|
9092
9716
|
return true;
|
|
9093
9717
|
};
|
|
9094
9718
|
TransactionHistoryGridStatusComponent.prototype._getStatusIndicatorColor = function () {
|
|
9095
|
-
switch (this.statusType) {
|
|
9719
|
+
switch (this.type[this.statusType]) {
|
|
9096
9720
|
case StatusType.Unknown:
|
|
9097
9721
|
return '#dce4ea';
|
|
9722
|
+
case StatusType.BG:
|
|
9723
|
+
if (this.subType && this.subType === 'correction') {
|
|
9724
|
+
return '#f19826';
|
|
9725
|
+
}
|
|
9726
|
+
else {
|
|
9727
|
+
return '#48d521';
|
|
9728
|
+
}
|
|
9729
|
+
case StatusType.BT:
|
|
9730
|
+
return '#f19826';
|
|
9098
9731
|
}
|
|
9099
9732
|
};
|
|
9100
9733
|
TransactionHistoryGridStatusComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -9107,12 +9740,13 @@
|
|
|
9107
9740
|
TransactionHistoryGridStatusComponent.decorators = [
|
|
9108
9741
|
{ type: i0.Component, args: [{
|
|
9109
9742
|
selector: "co-transaction-history-grid-status",
|
|
9110
|
-
template: "\n <div class=\"transaction-status-indication\">\n <div #statusIndicator class=\"status-color-circle\"></div>\n <span class=\"status-text\" [textContent]=\"statusType | localize\"></span>\n </div>\n ",
|
|
9743
|
+
template: "\n <div class=\"transaction-status-indication\">\n <div #statusIndicator class=\"status-color-circle\"></div>\n <span class=\"status-text\" [textContent]=\"type[statusType] | localize\"></span>\n </div>\n ",
|
|
9111
9744
|
encapsulation: i0.ViewEncapsulation.None
|
|
9112
9745
|
},] }
|
|
9113
9746
|
];
|
|
9114
9747
|
TransactionHistoryGridStatusComponent.propDecorators = {
|
|
9115
9748
|
statusType: [{ type: i0.Input }],
|
|
9749
|
+
subType: [{ type: i0.Input }],
|
|
9116
9750
|
statusIndicator: [{ type: i0.ViewChild, args: ["statusIndicator", { read: i0.ElementRef },] }],
|
|
9117
9751
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-history-grid-status",] }]
|
|
9118
9752
|
};
|
|
@@ -9150,7 +9784,8 @@
|
|
|
9150
9784
|
CoreModule,
|
|
9151
9785
|
corecomponents_v12.SimpleGridModule,
|
|
9152
9786
|
PipeModule,
|
|
9153
|
-
TransactionHistoryGridStatusModule
|
|
9787
|
+
TransactionHistoryGridStatusModule,
|
|
9788
|
+
corecomponents_v12.GridToolbarButtonModule
|
|
9154
9789
|
],
|
|
9155
9790
|
declarations: [
|
|
9156
9791
|
TransactionHistoryGridComponent
|
|
@@ -9161,6 +9796,80 @@
|
|
|
9161
9796
|
},] }
|
|
9162
9797
|
];
|
|
9163
9798
|
|
|
9799
|
+
var TransactionReceivingGoodsHistoryComponent = /** @class */ (function () {
|
|
9800
|
+
function TransactionReceivingGoodsHistoryComponent(_service, _datePipe) {
|
|
9801
|
+
this._service = _service;
|
|
9802
|
+
this._datePipe = _datePipe;
|
|
9803
|
+
this.reloadReceivingGoodsHistory = new i0.EventEmitter();
|
|
9804
|
+
}
|
|
9805
|
+
Object.defineProperty(TransactionReceivingGoodsHistoryComponent.prototype, "goodsReceiptHistory", {
|
|
9806
|
+
get: function () {
|
|
9807
|
+
var _this = this;
|
|
9808
|
+
return this._goodsReceiptHistory.map(function (receipt) {
|
|
9809
|
+
receipt.receiptDate = _this._datePipe.transform(receipt.receiptDate);
|
|
9810
|
+
return receipt;
|
|
9811
|
+
});
|
|
9812
|
+
},
|
|
9813
|
+
set: function (value) {
|
|
9814
|
+
if (value) {
|
|
9815
|
+
this._goodsReceiptHistory = value.reverse();
|
|
9816
|
+
}
|
|
9817
|
+
},
|
|
9818
|
+
enumerable: false,
|
|
9819
|
+
configurable: true
|
|
9820
|
+
});
|
|
9821
|
+
TransactionReceivingGoodsHistoryComponent.prototype.showClass = function () {
|
|
9822
|
+
return true;
|
|
9823
|
+
};
|
|
9824
|
+
TransactionReceivingGoodsHistoryComponent.prototype.handleDeleteSelectedRow = function (row) {
|
|
9825
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9826
|
+
var request, correctionDetails;
|
|
9827
|
+
var _this = this;
|
|
9828
|
+
return __generator(this, function (_a) {
|
|
9829
|
+
switch (_a.label) {
|
|
9830
|
+
case 0:
|
|
9831
|
+
if (!(row && row.type !== 'correction')) return [3 /*break*/, 2];
|
|
9832
|
+
request = new receiveGoodsForPurchaseOrderCorrectionRequest_bo.ReceiveGoodsForPurchaseOrderCorrectionRequest();
|
|
9833
|
+
correctionDetails = new purchaseOrderLineReceiptCorrectionDetails_bo.PurchaseOrderLineReceiptCorrectionDetails();
|
|
9834
|
+
request.allowedToRemovePickedAllocations = false;
|
|
9835
|
+
request.transId = this.transactionId;
|
|
9836
|
+
request.purchaseOrderLineReceiptCorrectionDetailsDTOS = [correctionDetails];
|
|
9837
|
+
correctionDetails.lineNr = this.transactionLine.lineNr;
|
|
9838
|
+
correctionDetails.quantityToCorrect = row.quantity;
|
|
9839
|
+
correctionDetails.documentId = row.documentId;
|
|
9840
|
+
correctionDetails.documentLineNr = row.lineNumber;
|
|
9841
|
+
return [4 /*yield*/, this._service.receiveGoodsForPurchaseOrderCorrection(request).then(function () {
|
|
9842
|
+
_this.reloadReceivingGoodsHistory.next();
|
|
9843
|
+
})];
|
|
9844
|
+
case 1:
|
|
9845
|
+
_a.sent();
|
|
9846
|
+
_a.label = 2;
|
|
9847
|
+
case 2: return [2 /*return*/];
|
|
9848
|
+
}
|
|
9849
|
+
});
|
|
9850
|
+
});
|
|
9851
|
+
};
|
|
9852
|
+
return TransactionReceivingGoodsHistoryComponent;
|
|
9853
|
+
}());
|
|
9854
|
+
TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
9855
|
+
{ type: i0.Component, args: [{
|
|
9856
|
+
selector: "co-transaction-receiving-goods-history",
|
|
9857
|
+
template: "\n <co-transaction-history-grid\n [collection]=\"goodsReceiptHistory\"\n (deleteSelectedRow)=\"handleDeleteSelectedRow($event)\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\"\n [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNumber'\"\n [order]=\"60\"></co-simple-grid-column>\n </co-transaction-history-grid>\n ",
|
|
9858
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9859
|
+
},] }
|
|
9860
|
+
];
|
|
9861
|
+
TransactionReceivingGoodsHistoryComponent.ctorParameters = function () { return [
|
|
9862
|
+
{ type: TransactionService },
|
|
9863
|
+
{ type: common.DatePipe }
|
|
9864
|
+
]; };
|
|
9865
|
+
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
9866
|
+
goodsReceiptHistory: [{ type: i0.Input }],
|
|
9867
|
+
transactionLine: [{ type: i0.Input }],
|
|
9868
|
+
transactionId: [{ type: i0.Input }],
|
|
9869
|
+
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
9870
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
|
|
9871
|
+
};
|
|
9872
|
+
|
|
9164
9873
|
var TransactionReceivingGoodsHistoryModule = /** @class */ (function () {
|
|
9165
9874
|
function TransactionReceivingGoodsHistoryModule() {
|
|
9166
9875
|
}
|
|
@@ -9180,32 +9889,156 @@
|
|
|
9180
9889
|
],
|
|
9181
9890
|
exports: [
|
|
9182
9891
|
TransactionReceivingGoodsHistoryComponent
|
|
9892
|
+
],
|
|
9893
|
+
providers: [
|
|
9894
|
+
common.DatePipe
|
|
9183
9895
|
]
|
|
9184
9896
|
},] }
|
|
9185
9897
|
];
|
|
9186
9898
|
|
|
9187
|
-
var
|
|
9188
|
-
function
|
|
9189
|
-
this.
|
|
9899
|
+
var ArticleService = /** @class */ (function () {
|
|
9900
|
+
function ArticleService(_articleConnectorService) {
|
|
9901
|
+
this._articleConnectorService = _articleConnectorService;
|
|
9190
9902
|
}
|
|
9903
|
+
ArticleService.prototype.getWarehouseLocations = function (warehouseNr) {
|
|
9904
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9905
|
+
return __generator(this, function (_a) {
|
|
9906
|
+
switch (_a.label) {
|
|
9907
|
+
case 0: return [4 /*yield*/, this._articleConnectorService.getWarehouseLocations(warehouseNr)];
|
|
9908
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
9909
|
+
}
|
|
9910
|
+
});
|
|
9911
|
+
});
|
|
9912
|
+
};
|
|
9913
|
+
return ArticleService;
|
|
9914
|
+
}());
|
|
9915
|
+
ArticleService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ArticleService_Factory() { return new ArticleService(i0__namespace.ɵɵinject(ArticleConnectorService)); }, token: ArticleService, providedIn: "root" });
|
|
9916
|
+
ArticleService.decorators = [
|
|
9917
|
+
{ type: i0.Injectable, args: [{
|
|
9918
|
+
providedIn: "root"
|
|
9919
|
+
},] }
|
|
9920
|
+
];
|
|
9921
|
+
ArticleService.ctorParameters = function () { return [
|
|
9922
|
+
{ type: ArticleConnectorService }
|
|
9923
|
+
]; };
|
|
9924
|
+
|
|
9925
|
+
var TransactionReceivingGoodsDetailsComponent = /** @class */ (function () {
|
|
9926
|
+
function TransactionReceivingGoodsDetailsComponent(_formMaster, _service, _articleService) {
|
|
9927
|
+
this._formMaster = _formMaster;
|
|
9928
|
+
this._service = _service;
|
|
9929
|
+
this._articleService = _articleService;
|
|
9930
|
+
this.reloadReceivingGoodsHistory = new i0.EventEmitter();
|
|
9931
|
+
this.receiptDetails = new purchaseOrderLineReceiptDetails_bo.PurchaseOrderLineReceiptDetails();
|
|
9932
|
+
this.request = new receiveGoodsForPurchaseOrderRequest_bo.ReceiveGoodsForPurchaseOrderRequest();
|
|
9933
|
+
this.saveButtonDisabled = false;
|
|
9934
|
+
this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
9935
|
+
this.request.purchaseOrderLineReceiptDetailsDTOS = [this.receiptDetails];
|
|
9936
|
+
var timeElapsed = Date.now();
|
|
9937
|
+
this.request.receivedDate = new Date(timeElapsed);
|
|
9938
|
+
}
|
|
9939
|
+
Object.defineProperty(TransactionReceivingGoodsDetailsComponent.prototype, "amountLeftToReceive", {
|
|
9940
|
+
get: function () {
|
|
9941
|
+
return this._amountLeftToReceive;
|
|
9942
|
+
},
|
|
9943
|
+
set: function (value) {
|
|
9944
|
+
this._amountLeftToReceive = value;
|
|
9945
|
+
this.receiptDetails.quantityToReceive = value;
|
|
9946
|
+
},
|
|
9947
|
+
enumerable: false,
|
|
9948
|
+
configurable: true
|
|
9949
|
+
});
|
|
9950
|
+
Object.defineProperty(TransactionReceivingGoodsDetailsComponent.prototype, "transactionLine", {
|
|
9951
|
+
get: function () {
|
|
9952
|
+
return this._transactionLine;
|
|
9953
|
+
},
|
|
9954
|
+
set: function (value) {
|
|
9955
|
+
this._transactionLine = value;
|
|
9956
|
+
this.receiptDetails.warehouseNr = value.warehouseNumber;
|
|
9957
|
+
this.receiptDetails.lineNr = value.lineNr;
|
|
9958
|
+
},
|
|
9959
|
+
enumerable: false,
|
|
9960
|
+
configurable: true
|
|
9961
|
+
});
|
|
9191
9962
|
TransactionReceivingGoodsDetailsComponent.prototype.showClass = function () {
|
|
9192
9963
|
return true;
|
|
9193
9964
|
};
|
|
9965
|
+
TransactionReceivingGoodsDetailsComponent.prototype.submit = function () {
|
|
9966
|
+
return this._formMaster.submitSlaves();
|
|
9967
|
+
};
|
|
9968
|
+
TransactionReceivingGoodsDetailsComponent.prototype.locationRequired = function () {
|
|
9969
|
+
return this._transactionLine.isLocationRequired ||
|
|
9970
|
+
this._transactionLine.isBatchNrRequired ||
|
|
9971
|
+
this._transactionLine.isSerialNrRequired;
|
|
9972
|
+
};
|
|
9194
9973
|
TransactionReceivingGoodsDetailsComponent.prototype.handleSaveDetailsEdit = function () {
|
|
9974
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9975
|
+
var valid, request;
|
|
9976
|
+
var _this = this;
|
|
9977
|
+
return __generator(this, function (_a) {
|
|
9978
|
+
switch (_a.label) {
|
|
9979
|
+
case 0:
|
|
9980
|
+
valid = this.submit();
|
|
9981
|
+
if (!valid) return [3 /*break*/, 2];
|
|
9982
|
+
this.saveButtonDisabled = true;
|
|
9983
|
+
request = this.request;
|
|
9984
|
+
request.transId = this.transactionId;
|
|
9985
|
+
return [4 /*yield*/, this._service.receiveGoodsForPurchaseOrder(request).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
9986
|
+
return __generator(this, function (_a) {
|
|
9987
|
+
this.reloadReceivingGoodsHistory.next();
|
|
9988
|
+
return [2 /*return*/];
|
|
9989
|
+
});
|
|
9990
|
+
}); }).catch(function (e) {
|
|
9991
|
+
_this.saveButtonDisabled = false;
|
|
9992
|
+
})];
|
|
9993
|
+
case 1:
|
|
9994
|
+
_a.sent();
|
|
9995
|
+
this.saveButtonDisabled = false;
|
|
9996
|
+
_a.label = 2;
|
|
9997
|
+
case 2: return [2 /*return*/];
|
|
9998
|
+
}
|
|
9999
|
+
});
|
|
10000
|
+
});
|
|
9195
10001
|
};
|
|
9196
10002
|
TransactionReceivingGoodsDetailsComponent.prototype.handleCancelDetailsEdit = function () {
|
|
10003
|
+
// Velden resetten
|
|
10004
|
+
};
|
|
10005
|
+
TransactionReceivingGoodsDetailsComponent.prototype.handleDropDownSelected = function (warehouseNr) {
|
|
10006
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10007
|
+
var _this = this;
|
|
10008
|
+
return __generator(this, function (_a) {
|
|
10009
|
+
switch (_a.label) {
|
|
10010
|
+
case 0:
|
|
10011
|
+
if (!!this.locations) return [3 /*break*/, 2];
|
|
10012
|
+
return [4 /*yield*/, this._articleService.getWarehouseLocations(warehouseNr).then(function (result) {
|
|
10013
|
+
_this.locations = result;
|
|
10014
|
+
})];
|
|
10015
|
+
case 1:
|
|
10016
|
+
_a.sent();
|
|
10017
|
+
_a.label = 2;
|
|
10018
|
+
case 2: return [2 /*return*/];
|
|
10019
|
+
}
|
|
10020
|
+
});
|
|
10021
|
+
});
|
|
9197
10022
|
};
|
|
9198
10023
|
return TransactionReceivingGoodsDetailsComponent;
|
|
9199
10024
|
}());
|
|
9200
10025
|
TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
9201
10026
|
{ type: i0.Component, args: [{
|
|
9202
10027
|
selector: 'co-transaction-receiving-goods-details',
|
|
9203
|
-
template: "\n <div class=\"receipt-details-wrapper\">\n <
|
|
10028
|
+
template: "\n <div class=\"receipt-details-wrapper\">\n <co-form>\n <div class=\"details-header\" [textContent]=\"'RECEIPT_DETAILS' | localize | uppercase\"></div>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\"\n [max]=\"amountLeftToReceive\"\n [(model)]=\"receiptDetails.serialNr ? 1 : receiptDetails.quantityToReceive\"\n [disabled]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0\"\n [readonly]=\"!!receiptDetails.serialNr || receiptDetails.quantityToReceive === 0\"\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\"\n [disabled]=\"transactionLine.warehouseNumber !== undefined\"\n [required]=\"transactionLine.isWarehouseRequired\"\n [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <co-drop-down-list class=\"details-input\"\n noTriangleGraphic\n (focus)=\"handleDropDownSelected(receiptDetails.warehouseNr)\"\n [collection]=\"locations\"\n [fields]=\"locationDropdownFields\"\n [(model)]=\"receiptDetails.locationNr\"\n [required]=\"locationRequired()\"\n [readonly]=\"receiptDetails.quantityToReceive === 0\"\n [disabled]=\"receiptDetails.quantityToReceive === 0\"\n [placeholder]=\"'LOCATION' | localize\"\n ></co-drop-down-list>\n <co-input-text class=\"details-input\" [(model)]=\"request.packingSlipNr\"\n [placeholder]=\"'PACKING_SLIP' | localize\"></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\" [(model)]=\"request.receivedDate\"\n ></co-input-date>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.batchNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\n [required]=\"transactionLine.isBatchNrRequired\"\n [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"receiptDetails.serialNr\"\n [type]=\"'number'\"\n [hideArrowButtons]=\"true\"\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=\"save-cancel-wrapper\">\n <co-button class=\"button-wrapper\" [label]=\"'SAVE' | localize\" (click)=\"handleSaveDetailsEdit()\"></co-button>\n <co-button class=\"button-wrapper\" [label]=\"'CANCEL' | localize\" (click)=\"handleCancelDetailsEdit()\"></co-button>\n </div>\n </div>\n ",
|
|
9204
10029
|
encapsulation: i0.ViewEncapsulation.None
|
|
9205
10030
|
},] }
|
|
9206
10031
|
];
|
|
10032
|
+
TransactionReceivingGoodsDetailsComponent.ctorParameters = function () { return [
|
|
10033
|
+
{ type: corecomponents_v12.FormMasterService },
|
|
10034
|
+
{ type: TransactionService },
|
|
10035
|
+
{ type: ArticleService }
|
|
10036
|
+
]; };
|
|
9207
10037
|
TransactionReceivingGoodsDetailsComponent.propDecorators = {
|
|
9208
|
-
|
|
10038
|
+
amountLeftToReceive: [{ type: i0.Input }],
|
|
10039
|
+
transactionId: [{ type: i0.Input }],
|
|
10040
|
+
transactionLine: [{ type: i0.Input }],
|
|
10041
|
+
reloadReceivingGoodsHistory: [{ type: i0.Output }],
|
|
9209
10042
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
|
|
9210
10043
|
};
|
|
9211
10044
|
|
|
@@ -9221,7 +10054,10 @@
|
|
|
9221
10054
|
CoreModule,
|
|
9222
10055
|
PipeModule,
|
|
9223
10056
|
corecomponents_v12.InputTextModule,
|
|
10057
|
+
corecomponents_v12.FormModule,
|
|
10058
|
+
corecomponents_v12.InputDatePickerModule,
|
|
9224
10059
|
corecomponents_v12.ButtonModule,
|
|
10060
|
+
corecomponents_v12.DropDownModule,
|
|
9225
10061
|
],
|
|
9226
10062
|
declarations: [
|
|
9227
10063
|
TransactionReceivingGoodsDetailsComponent
|
|
@@ -9232,22 +10068,6 @@
|
|
|
9232
10068
|
},] }
|
|
9233
10069
|
];
|
|
9234
10070
|
|
|
9235
|
-
var TransactionTypeCategory;
|
|
9236
|
-
(function (TransactionTypeCategory) {
|
|
9237
|
-
TransactionTypeCategory["PurchaseOrderOverview"] = "purchaseOrderOverview";
|
|
9238
|
-
TransactionTypeCategory["PurchaseOrderOrderConfirmation"] = "purchaseOrderOrderConfirmation";
|
|
9239
|
-
TransactionTypeCategory["PurchaseOrderTransport"] = "purchaseOrderTransport";
|
|
9240
|
-
TransactionTypeCategory["PurchaseOrderReceivedGoods"] = "purchaseOrderReceivedGoods";
|
|
9241
|
-
TransactionTypeCategory["PurchaseOrderInvoiceCheck"] = "purchaseOrderInvoiceCheck";
|
|
9242
|
-
TransactionTypeCategory["PurchaseOrderMenu"] = "purchaseOrderMenu";
|
|
9243
|
-
TransactionTypeCategory["SalesOrderOverview"] = "salesOrderOverview";
|
|
9244
|
-
TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
|
|
9245
|
-
TransactionTypeCategory["SalesOrderLogistics"] = "salesOrderLogistics";
|
|
9246
|
-
TransactionTypeCategory["SalesOrderPlanning"] = "salesOrderPlanning";
|
|
9247
|
-
TransactionTypeCategory["SalesOrderDeliveryNote"] = "salesOrderDeliveryNote";
|
|
9248
|
-
TransactionTypeCategory["SalesOrderInvoice"] = "salesOrderInvoice";
|
|
9249
|
-
})(TransactionTypeCategory || (TransactionTypeCategory = {}));
|
|
9250
|
-
|
|
9251
10071
|
var TransactionQuickAccessOrderConfirmationComponent = /** @class */ (function (_super) {
|
|
9252
10072
|
__extends(TransactionQuickAccessOrderConfirmationComponent, _super);
|
|
9253
10073
|
function TransactionQuickAccessOrderConfirmationComponent() {
|
|
@@ -9271,22 +10091,51 @@
|
|
|
9271
10091
|
|
|
9272
10092
|
var TransactionQuickAccessReceivedGoodsComponent = /** @class */ (function (_super) {
|
|
9273
10093
|
__extends(TransactionQuickAccessReceivedGoodsComponent, _super);
|
|
9274
|
-
function TransactionQuickAccessReceivedGoodsComponent() {
|
|
9275
|
-
|
|
10094
|
+
function TransactionQuickAccessReceivedGoodsComponent(_transactionService, _transactionEventService) {
|
|
10095
|
+
var _this = _super.call(this, _transactionService) || this;
|
|
10096
|
+
_this._transactionService = _transactionService;
|
|
10097
|
+
_this._transactionEventService = _transactionEventService;
|
|
10098
|
+
// Route through event service instead
|
|
10099
|
+
_this.checkboxValueChanged = new i0.EventEmitter();
|
|
10100
|
+
_this.commitCheckboxState = false;
|
|
10101
|
+
_this._subscriptions = [];
|
|
10102
|
+
return _this;
|
|
9276
10103
|
}
|
|
9277
10104
|
TransactionQuickAccessReceivedGoodsComponent.prototype.showClass = function () {
|
|
9278
10105
|
return true;
|
|
9279
10106
|
};
|
|
10107
|
+
TransactionQuickAccessReceivedGoodsComponent.prototype.ngOnInit = function () {
|
|
10108
|
+
var _this = this;
|
|
10109
|
+
var timeElapsed = Date.now();
|
|
10110
|
+
this.commitDate = new Date(timeElapsed);
|
|
10111
|
+
this._subscriptions.push(this._transactionEventService.receivedPurchaseOrderCommit.subscribe(function (value) {
|
|
10112
|
+
_this.commitCheckboxState = value;
|
|
10113
|
+
}));
|
|
10114
|
+
};
|
|
10115
|
+
TransactionQuickAccessReceivedGoodsComponent.prototype.ngOnDestroy = function () {
|
|
10116
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
10117
|
+
};
|
|
10118
|
+
TransactionQuickAccessReceivedGoodsComponent.prototype.handleCommitEvent = function (value) {
|
|
10119
|
+
this._transactionEventService.commitReceivePurchaseOrders.next(value);
|
|
10120
|
+
};
|
|
9280
10121
|
return TransactionQuickAccessReceivedGoodsComponent;
|
|
9281
10122
|
}(TransactionBaseComponent));
|
|
9282
10123
|
TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
9283
10124
|
{ type: i0.Component, args: [{
|
|
9284
10125
|
selector: "co-transaction-quick-access-received-goods",
|
|
9285
|
-
template: "\n
|
|
10126
|
+
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)]=\"commitCheckboxState\"\n [disabled]=\"commitCheckboxState\"\n (modelChange)=\"handleCommitEvent({checkboxValue: $event, date: this.commitDate, id: this.commitReferenceId})\"\n ></co-input-checkbox>\n ",
|
|
9286
10127
|
encapsulation: i0.ViewEncapsulation.None
|
|
9287
10128
|
},] }
|
|
9288
10129
|
];
|
|
10130
|
+
TransactionQuickAccessReceivedGoodsComponent.ctorParameters = function () { return [
|
|
10131
|
+
{ type: TransactionService },
|
|
10132
|
+
{ type: TransactionEventService }
|
|
10133
|
+
]; };
|
|
9289
10134
|
TransactionQuickAccessReceivedGoodsComponent.propDecorators = {
|
|
10135
|
+
commitDate: [{ type: i0.Input }],
|
|
10136
|
+
commitReferenceId: [{ type: i0.Input }],
|
|
10137
|
+
packingSlipId: [{ type: i0.Input }],
|
|
10138
|
+
checkboxValueChanged: [{ type: i0.Output }],
|
|
9290
10139
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-quick-access-received-goods",] }]
|
|
9291
10140
|
};
|
|
9292
10141
|
|
|
@@ -9332,23 +10181,151 @@
|
|
|
9332
10181
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-order-confirmation-grid",] }]
|
|
9333
10182
|
};
|
|
9334
10183
|
|
|
10184
|
+
var ReceiveGoodsViewModel = /** @class */ (function () {
|
|
10185
|
+
function ReceiveGoodsViewModel(transactionLine, goodsReceiptStatus, selected, toReceive) {
|
|
10186
|
+
this.toReceive = 0;
|
|
10187
|
+
this.location = '';
|
|
10188
|
+
this.transactionLine = transactionLine;
|
|
10189
|
+
this.goodsReceiptStatus = goodsReceiptStatus;
|
|
10190
|
+
this.selected = selected;
|
|
10191
|
+
this.toReceive = toReceive;
|
|
10192
|
+
}
|
|
10193
|
+
return ReceiveGoodsViewModel;
|
|
10194
|
+
}());
|
|
10195
|
+
|
|
9335
10196
|
var TransactionReceivedGoodsGridComponent = /** @class */ (function (_super) {
|
|
9336
10197
|
__extends(TransactionReceivedGoodsGridComponent, _super);
|
|
9337
|
-
function TransactionReceivedGoodsGridComponent() {
|
|
9338
|
-
|
|
10198
|
+
function TransactionReceivedGoodsGridComponent(_imageService, _transactionService, _transactionEventService, _articleService) {
|
|
10199
|
+
var _this = _super.call(this, _imageService) || this;
|
|
10200
|
+
_this._imageService = _imageService;
|
|
10201
|
+
_this._transactionService = _transactionService;
|
|
10202
|
+
_this._transactionEventService = _transactionEventService;
|
|
10203
|
+
_this._articleService = _articleService;
|
|
10204
|
+
_this.locationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
10205
|
+
_this.rowViewModels = new Map();
|
|
10206
|
+
_this._subscriptions = [];
|
|
10207
|
+
_this._subscriptions.push(_this._transactionEventService.commitReceivePurchaseOrders.subscribe((function (value) {
|
|
10208
|
+
_this.handleReceiveSelectedPurchaseOrders(value);
|
|
10209
|
+
})), _this._transactionEventService.transactionLineChanged.subscribe(function (value) {
|
|
10210
|
+
_this.handleTransactionLineChanged(value);
|
|
10211
|
+
}));
|
|
10212
|
+
return _this;
|
|
9339
10213
|
}
|
|
9340
10214
|
TransactionReceivedGoodsGridComponent.prototype.showClass = function () {
|
|
9341
10215
|
return true;
|
|
9342
10216
|
};
|
|
10217
|
+
TransactionReceivedGoodsGridComponent.prototype.ngOnInit = function () {
|
|
10218
|
+
var _this = this;
|
|
10219
|
+
this.transactionLines.forEach(function (line) {
|
|
10220
|
+
_this.rowViewModels.set(line, new ReceiveGoodsViewModel(line, new goodsReceiptStatus_bo.GoodsReceiptStatus(), false));
|
|
10221
|
+
});
|
|
10222
|
+
};
|
|
10223
|
+
TransactionReceivedGoodsGridComponent.prototype.ngOnDestroy = function () {
|
|
10224
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
10225
|
+
};
|
|
10226
|
+
TransactionReceivedGoodsGridComponent.prototype.handleRowVisible = function (row) {
|
|
10227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10228
|
+
var _this = this;
|
|
10229
|
+
return __generator(this, function (_a) {
|
|
10230
|
+
switch (_a.label) {
|
|
10231
|
+
case 0: return [4 /*yield*/, this._transactionService.getGoodsReceiptStatus(this.transactionId, row.lineNr)
|
|
10232
|
+
.then(function (result) {
|
|
10233
|
+
_this.rowViewModels.set(row, new ReceiveGoodsViewModel(row, result, result.quantityToReceive === 0, result.quantityToReceive));
|
|
10234
|
+
})];
|
|
10235
|
+
case 1:
|
|
10236
|
+
_a.sent();
|
|
10237
|
+
return [2 /*return*/];
|
|
10238
|
+
}
|
|
10239
|
+
});
|
|
10240
|
+
});
|
|
10241
|
+
};
|
|
10242
|
+
TransactionReceivedGoodsGridComponent.prototype.locationRequired = function (row) {
|
|
10243
|
+
return row.isLocationRequired || row.isBatchNrRequired || row.isSerialNrRequired;
|
|
10244
|
+
};
|
|
10245
|
+
TransactionReceivedGoodsGridComponent.prototype.handleDropDownSelected = function (warehouseNr) {
|
|
10246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10247
|
+
var _this = this;
|
|
10248
|
+
return __generator(this, function (_a) {
|
|
10249
|
+
switch (_a.label) {
|
|
10250
|
+
case 0:
|
|
10251
|
+
if (!!this.locations) return [3 /*break*/, 2];
|
|
10252
|
+
return [4 /*yield*/, this._articleService.getWarehouseLocations(warehouseNr).then(function (result) {
|
|
10253
|
+
_this.locations = result;
|
|
10254
|
+
})];
|
|
10255
|
+
case 1:
|
|
10256
|
+
_a.sent();
|
|
10257
|
+
_a.label = 2;
|
|
10258
|
+
case 2: return [2 /*return*/];
|
|
10259
|
+
}
|
|
10260
|
+
});
|
|
10261
|
+
});
|
|
10262
|
+
};
|
|
10263
|
+
TransactionReceivedGoodsGridComponent.prototype.getRowViewModel = function (row) {
|
|
10264
|
+
return this.rowViewModels.get(row);
|
|
10265
|
+
};
|
|
10266
|
+
TransactionReceivedGoodsGridComponent.prototype.handleReceiveSelectedPurchaseOrders = function (value) {
|
|
10267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10268
|
+
var selectedRows, receivedGoodsRequest_1;
|
|
10269
|
+
var _this = this;
|
|
10270
|
+
return __generator(this, function (_a) {
|
|
10271
|
+
switch (_a.label) {
|
|
10272
|
+
case 0:
|
|
10273
|
+
selectedRows = __spreadArray([], __read(this.rowViewModels.values())).filter(function (row) { return row.selected && row.toReceive !== 0; });
|
|
10274
|
+
if (!(value.checkboxValue && selectedRows.length > 0)) return [3 /*break*/, 2];
|
|
10275
|
+
receivedGoodsRequest_1 = new receiveGoodsForPurchaseOrderRequest_bo.ReceiveGoodsForPurchaseOrderRequest();
|
|
10276
|
+
receivedGoodsRequest_1.transId = this.transactionId;
|
|
10277
|
+
receivedGoodsRequest_1.receivedDate = value.date;
|
|
10278
|
+
receivedGoodsRequest_1.packingSlipNr = value.id;
|
|
10279
|
+
receivedGoodsRequest_1.purchaseOrderLineReceiptDetailsDTOS = [];
|
|
10280
|
+
selectedRows.forEach(function (row) {
|
|
10281
|
+
var detail = new purchaseOrderLineReceiptDetails_bo.PurchaseOrderLineReceiptDetails();
|
|
10282
|
+
detail.lineNr = row.transactionLine.lineNr;
|
|
10283
|
+
detail.quantityToReceive = row.toReceive;
|
|
10284
|
+
detail.warehouseNr = row.transactionLine.warehouseNumber;
|
|
10285
|
+
detail.locationNr = row.location;
|
|
10286
|
+
receivedGoodsRequest_1.purchaseOrderLineReceiptDetailsDTOS.push(detail);
|
|
10287
|
+
});
|
|
10288
|
+
return [4 /*yield*/, this._transactionService.receiveGoodsForPurchaseOrder(receivedGoodsRequest_1).then(function () {
|
|
10289
|
+
_this._handleAfterCommitReceivedOrders(selectedRows);
|
|
10290
|
+
})];
|
|
10291
|
+
case 1:
|
|
10292
|
+
_a.sent();
|
|
10293
|
+
_a.label = 2;
|
|
10294
|
+
case 2: return [2 /*return*/];
|
|
10295
|
+
}
|
|
10296
|
+
});
|
|
10297
|
+
});
|
|
10298
|
+
};
|
|
10299
|
+
TransactionReceivedGoodsGridComponent.prototype._handleAfterCommitReceivedOrders = function (selectedRows) {
|
|
10300
|
+
selectedRows.forEach(function (row) {
|
|
10301
|
+
row.goodsReceiptStatus.quantityToReceive = row.goodsReceiptStatus.quantityToReceive -= row.toReceive;
|
|
10302
|
+
row.toReceive = row.goodsReceiptStatus.quantityToReceive;
|
|
10303
|
+
if (row.goodsReceiptStatus.quantityToReceive !== 0) {
|
|
10304
|
+
row.selected = false;
|
|
10305
|
+
}
|
|
10306
|
+
});
|
|
10307
|
+
this._transactionEventService.receivedPurchaseOrderCommit.next(false);
|
|
10308
|
+
};
|
|
10309
|
+
TransactionReceivedGoodsGridComponent.prototype.handleTransactionLineChanged = function (change) {
|
|
10310
|
+
var receiveGoodsViewModel = this.rowViewModels.get(change.transactionLine);
|
|
10311
|
+
receiveGoodsViewModel.goodsReceiptStatus.quantityToReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
10312
|
+
receiveGoodsViewModel.toReceive = change.goodsReceiptStatus.quantityToReceive;
|
|
10313
|
+
};
|
|
9343
10314
|
return TransactionReceivedGoodsGridComponent;
|
|
9344
10315
|
}(TransactionGridBaseComponent));
|
|
9345
10316
|
TransactionReceivedGoodsGridComponent.decorators = [
|
|
9346
10317
|
{ type: i0.Component, args: [{
|
|
9347
10318
|
selector: "co-transaction-received-goods-grid",
|
|
9348
|
-
template: "\n <co-transaction-base-grid [transactionLines]=\"transactionLines\" (sidePanelClicked)=\"openSidePanel($event)\">\n <co-simple-grid-column [
|
|
10319
|
+
template: "\n <co-transaction-base-grid [transactionLines]=\"transactionLines\" (sidePanelClicked)=\"openSidePanel($event)\" (rowVisible)=\"handleRowVisible($event)\">\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\" [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [order]=\"45\">\n <ng-template #template let-row = \"row\">\n <co-drop-down-list\n noTriangleGraphic\n (focus)=\"handleDropDownSelected(row.warehouseNumber)\"\n [required]=\"locationRequired(row) && getRowViewModel(row).goodsReceiptStatus.quantityToReceive > 0\"\n [collection]=\"locations\"\n [fields]=\"locationDropdownFields\"\n [(model)]=\"getRowViewModel(row).location\"\n [disabled]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0\"\n ></co-drop-down-list>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'IN_ORDER' | localize\" [field]=\"'amount'\" [order]=\"50\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RECEIVED' | localize\" [order]=\"51\">\n <ng-template #template let-row = \"row\">\n <co-input-number-picker\n [min]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive > 0 ? 1 : 0\"\n [max]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive\"\n [(model)]=\"getRowViewModel(row).toReceive\"\n [disabled]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0\"\n [readonly]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0\"\n ></co-input-number-picker>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH' | localize\" [field]=\"'inOrder'\" [order]=\"52\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'Commit button'\" [field]=\"'commitButton'\" [order]=\"55\">\n <ng-template #template let-row = \"row\">\n <co-input-checkbox\n [(model)]=\"getRowViewModel(row).selected\"\n [disabled]=\"getRowViewModel(row).goodsReceiptStatus.quantityToReceive === 0\"\n ></co-input-checkbox>\n </ng-template>\n </co-simple-grid-column>\n </co-transaction-base-grid>\n ",
|
|
9349
10320
|
encapsulation: i0.ViewEncapsulation.None
|
|
9350
10321
|
},] }
|
|
9351
10322
|
];
|
|
10323
|
+
TransactionReceivedGoodsGridComponent.ctorParameters = function () { return [
|
|
10324
|
+
{ type: TransactionImageService },
|
|
10325
|
+
{ type: TransactionService },
|
|
10326
|
+
{ type: TransactionEventService },
|
|
10327
|
+
{ type: ArticleService }
|
|
10328
|
+
]; };
|
|
9352
10329
|
TransactionReceivedGoodsGridComponent.propDecorators = {
|
|
9353
10330
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-received-goods-grid",] }]
|
|
9354
10331
|
};
|
|
@@ -9370,7 +10347,7 @@
|
|
|
9370
10347
|
{ title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
|
|
9371
10348
|
{ title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
|
|
9372
10349
|
{ title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
|
|
9373
|
-
{ title: 'INVOICE', icon: Icon.
|
|
10350
|
+
{ title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
|
|
9374
10351
|
]],
|
|
9375
10352
|
]);
|
|
9376
10353
|
this._quickAccessComponent = new Map([
|
|
@@ -9534,7 +10511,7 @@
|
|
|
9534
10511
|
TransactionConfirmationHistoryComponent.decorators = [
|
|
9535
10512
|
{ type: i0.Component, args: [{
|
|
9536
10513
|
selector: "co-transaction-confirmation-history",
|
|
9537
|
-
template: "\n <div class=\"history-grid-wrapper\">\n <co-transaction-history-grid [
|
|
10514
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <co-transaction-history-grid [collection]=\"transactionLines\">\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'price'\" [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE' | localize\" [field]=\"'date'\" [order]=\"60\"></co-simple-grid-column>\n </co-transaction-history-grid>\n </div>\n ",
|
|
9538
10515
|
encapsulation: i0.ViewEncapsulation.None
|
|
9539
10516
|
},] }
|
|
9540
10517
|
];
|
|
@@ -9567,25 +10544,66 @@
|
|
|
9567
10544
|
];
|
|
9568
10545
|
|
|
9569
10546
|
var TransactionLineSidePanelPurchaseComponent = /** @class */ (function () {
|
|
9570
|
-
function TransactionLineSidePanelPurchaseComponent() {
|
|
10547
|
+
function TransactionLineSidePanelPurchaseComponent(_service, _transactionEventService) {
|
|
10548
|
+
this._service = _service;
|
|
10549
|
+
this._transactionEventService = _transactionEventService;
|
|
9571
10550
|
this.categories = TransactionTypeCategory;
|
|
9572
10551
|
this.transactionLine = new transactionLineInfo_bo.TransactionLineInfo();
|
|
10552
|
+
this.quantityToReceiveChange = new i0.EventEmitter();
|
|
10553
|
+
this.goodsReceiptStatus = new goodsReceiptStatusWithHistory_bo.GoodsReceiptStatusWithHistory();
|
|
9573
10554
|
}
|
|
10555
|
+
Object.defineProperty(TransactionLineSidePanelPurchaseComponent.prototype, "transactionId", {
|
|
10556
|
+
get: function () {
|
|
10557
|
+
return this._transactionId;
|
|
10558
|
+
},
|
|
10559
|
+
set: function (value) {
|
|
10560
|
+
if (value) {
|
|
10561
|
+
this._transactionId = value;
|
|
10562
|
+
this.getGoodsReceiptStatusWithHistory();
|
|
10563
|
+
}
|
|
10564
|
+
},
|
|
10565
|
+
enumerable: false,
|
|
10566
|
+
configurable: true
|
|
10567
|
+
});
|
|
9574
10568
|
TransactionLineSidePanelPurchaseComponent.prototype.showClass = function () {
|
|
9575
10569
|
return true;
|
|
9576
10570
|
};
|
|
10571
|
+
TransactionLineSidePanelPurchaseComponent.prototype.getGoodsReceiptStatusWithHistory = function () {
|
|
10572
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10573
|
+
var _this = this;
|
|
10574
|
+
return __generator(this, function (_a) {
|
|
10575
|
+
switch (_a.label) {
|
|
10576
|
+
case 0: return [4 /*yield*/, this._service.getGoodsReceiptStatusWithHistory(this._transactionId, this.transactionLine.lineNr)
|
|
10577
|
+
.then(function (result) {
|
|
10578
|
+
_this.goodsReceiptStatus = result;
|
|
10579
|
+
_this._transactionEventService.transactionLineChanged.next({ transactionLine: _this.transactionLine, goodsReceiptStatus: result });
|
|
10580
|
+
_this.quantityToReceiveChange.next(result.quantityToReceive);
|
|
10581
|
+
})];
|
|
10582
|
+
case 1:
|
|
10583
|
+
_a.sent();
|
|
10584
|
+
return [2 /*return*/];
|
|
10585
|
+
}
|
|
10586
|
+
});
|
|
10587
|
+
});
|
|
10588
|
+
};
|
|
9577
10589
|
return TransactionLineSidePanelPurchaseComponent;
|
|
9578
10590
|
}());
|
|
9579
10591
|
TransactionLineSidePanelPurchaseComponent.decorators = [
|
|
9580
10592
|
{ type: i0.Component, args: [{
|
|
9581
10593
|
selector: "co-transaction-line-side-panel-purchase",
|
|
9582
|
-
template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderOrderConfirmation\">\n <co-transaction-confirmation-history\n\n ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-receiving-goods-details></co-transaction-receiving-goods-details>\n <co-transaction-receiving-goods-history></co-transaction-receiving-goods-history>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
|
|
10594
|
+
template: "\n <ng-container [ngSwitch]=\"category\">\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderOrderConfirmation\">\n <co-transaction-confirmation-history\n\n ></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"categories.PurchaseOrderReceivedGoods\">\n <co-transaction-receiving-goods-details\n [transactionId]=\"transactionId\"\n [transactionLine]=\"transactionLine\"\n [amountLeftToReceive]=\"goodsReceiptStatus.quantityToReceive\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-details>\n <co-transaction-receiving-goods-history\n [transactionId]=\"transactionId\"\n [transactionLine]=\"transactionLine\"\n [goodsReceiptHistory]=\"goodsReceiptStatus.goodsReceiptHistory\"\n (reloadReceivingGoodsHistory)=\"getGoodsReceiptStatusWithHistory()\"\n ></co-transaction-receiving-goods-history>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n ",
|
|
9583
10595
|
encapsulation: i0.ViewEncapsulation.None
|
|
9584
10596
|
},] }
|
|
9585
10597
|
];
|
|
10598
|
+
TransactionLineSidePanelPurchaseComponent.ctorParameters = function () { return [
|
|
10599
|
+
{ type: TransactionService },
|
|
10600
|
+
{ type: TransactionEventService }
|
|
10601
|
+
]; };
|
|
9586
10602
|
TransactionLineSidePanelPurchaseComponent.propDecorators = {
|
|
9587
|
-
category: [{ type: i0.Input }],
|
|
9588
10603
|
transactionLine: [{ type: i0.Input }],
|
|
10604
|
+
transactionId: [{ type: i0.Input }],
|
|
10605
|
+
category: [{ type: i0.Input }],
|
|
10606
|
+
quantityToReceiveChange: [{ type: i0.Output }],
|
|
9589
10607
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel-purchase",] }]
|
|
9590
10608
|
};
|
|
9591
10609
|
|
|
@@ -9902,7 +10920,8 @@
|
|
|
9902
10920
|
common.CommonModule,
|
|
9903
10921
|
corecomponents_v12.InputTextModule,
|
|
9904
10922
|
PipeModule,
|
|
9905
|
-
corecomponents_v12.InputCheckboxModule
|
|
10923
|
+
corecomponents_v12.InputCheckboxModule,
|
|
10924
|
+
corecomponents_v12.InputDatePickerModule
|
|
9906
10925
|
],
|
|
9907
10926
|
declarations: [
|
|
9908
10927
|
TransactionQuickAccessReceivedGoodsComponent
|
|
@@ -9993,7 +11012,6 @@
|
|
|
9993
11012
|
this.viewModes = ContentViewMode;
|
|
9994
11013
|
this.showViewModes = [this.viewModes.List, this.viewModes.Grid, this.viewModes.Tiles];
|
|
9995
11014
|
this.viewModeChange = new i0.EventEmitter();
|
|
9996
|
-
this._activeViewMode = ContentViewMode.List;
|
|
9997
11015
|
}
|
|
9998
11016
|
ViewModeButtonsComponent.prototype.showClass = function () {
|
|
9999
11017
|
return true;
|
|
@@ -10009,6 +11027,9 @@
|
|
|
10009
11027
|
enumerable: false,
|
|
10010
11028
|
configurable: true
|
|
10011
11029
|
});
|
|
11030
|
+
ViewModeButtonsComponent.prototype.ngOnInit = function () {
|
|
11031
|
+
this.activeViewMode = this.showViewModes.includes(ContentViewMode.List) ? ContentViewMode.List : this.showViewModes[0];
|
|
11032
|
+
};
|
|
10012
11033
|
return ViewModeButtonsComponent;
|
|
10013
11034
|
}());
|
|
10014
11035
|
ViewModeButtonsComponent.decorators = [
|
|
@@ -10108,6 +11129,7 @@
|
|
|
10108
11129
|
.create(this.injector);
|
|
10109
11130
|
this.appRef.attachView(this._componentRef.hostView);
|
|
10110
11131
|
this._componentRef.instance.transactionLines = this.transactionLines;
|
|
11132
|
+
this._componentRef.instance.transactionId = this.transactionId;
|
|
10111
11133
|
this._componentRef.instance.sidePanelClicked = this.sidePanelClicked;
|
|
10112
11134
|
var domElem = this._componentRef.hostView
|
|
10113
11135
|
.rootNodes[0];
|
|
@@ -10135,6 +11157,7 @@
|
|
|
10135
11157
|
container: [{ type: i0.ViewChild, args: ['transactionGrid', { read: i0.ElementRef },] }],
|
|
10136
11158
|
transactionType: [{ type: i0.Input }],
|
|
10137
11159
|
activeCategory: [{ type: i0.Input }],
|
|
11160
|
+
transactionId: [{ type: i0.Input }],
|
|
10138
11161
|
transactionLines: [{ type: i0.Input }],
|
|
10139
11162
|
sidePanelClicked: [{ type: i0.Output }],
|
|
10140
11163
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-grid",] }]
|
|
@@ -10172,7 +11195,9 @@
|
|
|
10172
11195
|
TransactionBaseGridModule,
|
|
10173
11196
|
corecomponents_v12.SimpleGridModule,
|
|
10174
11197
|
PipeModule,
|
|
10175
|
-
corecomponents_v12.InputCheckboxModule
|
|
11198
|
+
corecomponents_v12.InputCheckboxModule,
|
|
11199
|
+
corecomponents_v12.DropDownModule,
|
|
11200
|
+
corecomponents_v12.InputNumberPickerModule
|
|
10176
11201
|
],
|
|
10177
11202
|
declarations: [
|
|
10178
11203
|
TransactionReceivedGoodsGridComponent
|
|
@@ -10260,10 +11285,8 @@
|
|
|
10260
11285
|
};
|
|
10261
11286
|
TransactionSearchComponent.prototype.handleResetFilter = function () {
|
|
10262
11287
|
var _this = this;
|
|
10263
|
-
this.
|
|
10264
|
-
setTimeout(function () {
|
|
10265
|
-
_this.handleShowFilter();
|
|
10266
|
-
}, 10);
|
|
11288
|
+
this.showFilterSidebar = false;
|
|
11289
|
+
setTimeout(function () { _this.showFilterSidebar = true; }, 10);
|
|
10267
11290
|
};
|
|
10268
11291
|
TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
|
|
10269
11292
|
this.transactionClick.emit(transaction);
|
|
@@ -10273,7 +11296,7 @@
|
|
|
10273
11296
|
TransactionSearchComponent.decorators = [
|
|
10274
11297
|
{ type: i0.Component, args: [{
|
|
10275
11298
|
selector: 'co-transaction-search',
|
|
10276
|
-
template: "\n <div class=\"transaction-search-wrapper\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\" *ngIf=\"showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter (closeButtonClick)=\"handleHideFilter()\"\n (resetFilterClick)=\"handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\">\n <co-transaction-search-result (filterButtonClick)=\"handleShowFilter()\"
|
|
11299
|
+
template: "\n <div class=\"transaction-search-wrapper\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\" *ngIf=\"showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter (closeButtonClick)=\"handleHideFilter()\"\n (resetFilterClick)=\"handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\">\n <co-transaction-search-result (filterButtonClick)=\"handleShowFilter()\"\n (transactionClick)=\"onTransactionClick($event)\"></co-transaction-search-result>\n </div>\n </div>\n ",
|
|
10277
11300
|
animations: [
|
|
10278
11301
|
animations.trigger("showHideFilterSidebar", [
|
|
10279
11302
|
animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
|
|
@@ -10290,6 +11313,66 @@
|
|
|
10290
11313
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
10291
11314
|
};
|
|
10292
11315
|
|
|
11316
|
+
var TransactionSearchGridComponent = /** @class */ (function () {
|
|
11317
|
+
function TransactionSearchGridComponent() {
|
|
11318
|
+
this.align = corecomponents_v12.ColumnAlign;
|
|
11319
|
+
this.transactions = [];
|
|
11320
|
+
this.transactionClick = new i0.EventEmitter();
|
|
11321
|
+
this.extraColumns = [];
|
|
11322
|
+
}
|
|
11323
|
+
Object.defineProperty(TransactionSearchGridComponent.prototype, "content", {
|
|
11324
|
+
set: function (columnComponents) {
|
|
11325
|
+
this.extraColumns = columnComponents.toArray();
|
|
11326
|
+
},
|
|
11327
|
+
enumerable: false,
|
|
11328
|
+
configurable: true
|
|
11329
|
+
});
|
|
11330
|
+
TransactionSearchGridComponent.prototype.showClass = function () {
|
|
11331
|
+
return true;
|
|
11332
|
+
};
|
|
11333
|
+
TransactionSearchGridComponent.prototype.onTransactionClick = function (transaction) {
|
|
11334
|
+
this.transactionClick.emit(transaction);
|
|
11335
|
+
};
|
|
11336
|
+
return TransactionSearchGridComponent;
|
|
11337
|
+
}());
|
|
11338
|
+
TransactionSearchGridComponent.decorators = [
|
|
11339
|
+
{ type: i0.Component, args: [{
|
|
11340
|
+
selector: "co-transaction-search-grid",
|
|
11341
|
+
template: "\n <div>\n <co-simple-grid [data]=\"transactions\" [extraColumns]=\"extraColumns\" [dragDropEnabled]=\"true\" [emitDragDrop]=\"false\"\n (selectRow)=\"onTransactionClick($event)\">\n <co-simple-grid-column [headerText]=\"'ACTIVE' | localize\"\n [order]=\"10\" [textAlign]=\"align.Center\">\n <ng-template #template let-row= \"row\">\n <co-input-checkbox [model]=\"row.active\" readonly></co-input-checkbox>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'NR' | localize\" [field]=\"'transNr'\" [order]=\"20\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'NAME' | localize\" [field]=\"'relationName'\"\n [order]=\"30\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_NUMBER' | localize\" [field]=\"'relationNr'\"\n [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BRANCH' | localize\" [field]=\"'brancheName'\"\n [order]=\"50\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ADDRESS' | localize\" [field]=\"'adres'\"\n [order]=\"70\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE_RELATION' | localize\" [field]=\"'relationReference'\" [order]=\"80\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PREFERRED_DATE' | localize\"\n [order]=\"90\" [textAlign]=\"align.Right\" [resizable]=\"false\">\n <ng-template #template let-row = \"row\">\n <div [textContent]=\"\"></div> <!--todo: wachten op aanpassing api-->\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSACTION_DATE' | localize\"\n [order]=\"100\" [textAlign]=\"align.Right\" [resizable]=\"false\">\n <ng-template #template let-row = \"row\">\n <div [textContent]=\"row.transDate | date:'dd MMM yyyy'\"></div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ORDER_DEFINITIVE' | localize\"\n [order]=\"105\" [textAlign]=\"align.Center\">\n <ng-template #template let-row= \"row\">\n <co-input-checkbox [model]=\"row.transactionDefinitive\" readonly></co-input-checkbox>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\"\n [order]=\"110\" [textAlign]=\"align.Right\" [resizable]=\"false\" >\n <ng-template #template let-row = \"row\">\n <div [textContent]=\"row.deliveryDate | date:'dd MMM yyyy'\"></div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE_DEFINITIVE' | localize\"\n [order]=\"115\" [textAlign]=\"align.Center\">\n <ng-template #template let-row= \"row\">\n <co-input-checkbox [model]=\"row.deliveryDateDefinitive\" readonly></co-input-checkbox>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
11342
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11343
|
+
},] }
|
|
11344
|
+
];
|
|
11345
|
+
TransactionSearchGridComponent.ctorParameters = function () { return []; };
|
|
11346
|
+
TransactionSearchGridComponent.propDecorators = {
|
|
11347
|
+
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
11348
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search-grid",] }],
|
|
11349
|
+
transactions: [{ type: i0.Input }],
|
|
11350
|
+
transactionClick: [{ type: i0.Output }]
|
|
11351
|
+
};
|
|
11352
|
+
|
|
11353
|
+
var TransactionSearchGridModule = /** @class */ (function () {
|
|
11354
|
+
function TransactionSearchGridModule() {
|
|
11355
|
+
}
|
|
11356
|
+
return TransactionSearchGridModule;
|
|
11357
|
+
}());
|
|
11358
|
+
TransactionSearchGridModule.decorators = [
|
|
11359
|
+
{ type: i0.NgModule, args: [{
|
|
11360
|
+
imports: [
|
|
11361
|
+
common.CommonModule,
|
|
11362
|
+
CoreModule,
|
|
11363
|
+
PipeModule,
|
|
11364
|
+
corecomponents_v12.SimpleGridModule,
|
|
11365
|
+
corecomponents_v12.InputCheckboxModule
|
|
11366
|
+
],
|
|
11367
|
+
declarations: [
|
|
11368
|
+
TransactionSearchGridComponent
|
|
11369
|
+
],
|
|
11370
|
+
exports: [
|
|
11371
|
+
TransactionSearchGridComponent
|
|
11372
|
+
]
|
|
11373
|
+
},] }
|
|
11374
|
+
];
|
|
11375
|
+
|
|
10293
11376
|
var TransactionTileComponent = /** @class */ (function () {
|
|
10294
11377
|
function TransactionTileComponent(iconCacheService) {
|
|
10295
11378
|
this.iconCacheService = iconCacheService;
|
|
@@ -10307,7 +11390,7 @@
|
|
|
10307
11390
|
TransactionTileComponent.decorators = [
|
|
10308
11391
|
{ type: i0.Component, args: [{
|
|
10309
11392
|
selector: "co-transaction-tile",
|
|
10310
|
-
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTileClick($event)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"'\
|
|
11393
|
+
template: "\n <div class=\"transaction-tile-wrapper\" (click)=\"onTileClick($event)\">\n <div class=\"transaction-tile-body\">\n <div class=\"transaction-tile-avatar\">\n <co-avatar [relationId]=\"transaction.handledBy\"></co-avatar>\n </div>\n <div class=\"transaction-tile-seller-info\">\n <div>\n <div class=\"header\"><span [textContent]=\"transaction.transNr\"></span></div>\n <div class=\"text\"><span [textContent]=\"transaction.brancheName\"></span></div>\n </div>\n <div>\n <div class=\"text\"><span [textContent]=\"transaction.getAdres()\"></span></div>\n </div>\n </div>\n <div class=\"transaction-tile-order-summary\">\n <div class=\"header\"><span [textContent]=\"'\u20AC12.345'\"></span></div> <!--todo: vullen als api aanpassing gedaan is-->\n </div>\n </div>\n <div class=\"transaction-tile-footer\">\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getTransDate() | date:'dd MMM yyyy'\"></span></div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'DELIVERY_DATE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"transaction.getDeliveryDate() | date:'dd MMM yyyy'\"></span>\n <div *ngIf=\"transaction.getDeliveryDate()\">\n <co-icon *ngIf=\"transaction.deliveryDateDefinitive; else indefinite\"\n [iconData]=\"this.iconCacheService.getIcon(this.icons.Lock)\" class=\"lock-icon\"></co-icon>\n <ng-template #indefinite>\n <co-icon [iconData]=\"this.iconCacheService.getIcon(this.icons.Unlock)\" class=\"unlock-icon\"></co-icon>\n </ng-template>\n </div>\n </div>\n </div>\n <div class=\"order-info-section\">\n <div class=\"label\"><span [textContent]=\"'ORDER_RULE' | localize\"></span></div>\n <div class=\"value\">\n <span [textContent]=\"'68/00'\"></span></div>\n </div>\n </div>\n\n </div>",
|
|
10311
11394
|
encapsulation: i0.ViewEncapsulation.None
|
|
10312
11395
|
},] }
|
|
10313
11396
|
];
|
|
@@ -10375,8 +11458,10 @@
|
|
|
10375
11458
|
]; };
|
|
10376
11459
|
|
|
10377
11460
|
var TransactionSearchResultComponent = /** @class */ (function () {
|
|
10378
|
-
function TransactionSearchResultComponent(searchService) {
|
|
11461
|
+
function TransactionSearchResultComponent(searchService, iconCacheService) {
|
|
10379
11462
|
this.searchService = searchService;
|
|
11463
|
+
this.iconCacheService = iconCacheService;
|
|
11464
|
+
this.icon = Icon;
|
|
10380
11465
|
this.viewModes = ContentViewMode;
|
|
10381
11466
|
this.filterButtonClick = new i0.EventEmitter();
|
|
10382
11467
|
this.transactionClick = new i0.EventEmitter();
|
|
@@ -10387,7 +11472,7 @@
|
|
|
10387
11472
|
};
|
|
10388
11473
|
TransactionSearchResultComponent.prototype.ngOnInit = function () {
|
|
10389
11474
|
};
|
|
10390
|
-
TransactionSearchResultComponent.prototype.
|
|
11475
|
+
TransactionSearchResultComponent.prototype.onTransactionClick = function (transaction) {
|
|
10391
11476
|
this.transactionClick.emit(transaction);
|
|
10392
11477
|
};
|
|
10393
11478
|
return TransactionSearchResultComponent;
|
|
@@ -10395,12 +11480,13 @@
|
|
|
10395
11480
|
TransactionSearchResultComponent.decorators = [
|
|
10396
11481
|
{ type: i0.Component, args: [{
|
|
10397
11482
|
selector: 'co-transaction-search-result',
|
|
10398
|
-
template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-input-search class=\"transaction-search-general\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"'Waar ben je naar op zoek?'\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n <co-button class=\"transaction-search-filter-button\" [
|
|
11483
|
+
template: "\n <div class=\"transaction-search-header-wrapper\">\n <co-input-search class=\"transaction-search-general\"\n [(model)]=\"searchService.searchRequest.general\"\n [placeholder]=\"'Waar ben je naar op zoek?'\"\n (search)=\"searchService.searchTransactions()\"></co-input-search>\n <co-button class=\"transaction-search-filter-button\" [iconData]=\"iconCacheService.getIcon(icon.BarsFilter)\"\n (click)=\"filterButtonClick.emit()\"></co-button>\n </div>\n <co-view-mode-buttons [showViewModes]=\"[viewModes.Tiles, viewModes.Grid]\"\n (viewModeChange)=\"activeViewMode = $event\"></co-view-mode-buttons>\n <div class=\"transaction-search-result-content-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-tile [transaction]=\"transaction\"\n (tileClick)=\"onTransactionClick(transaction)\"></co-transaction-tile>\n </div>\n </div>\n <div class=\"transaction-search-result-content-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-search-grid [transactions]=\"searchService.transactions\"\n (transactionClick)=\"onTransactionClick($event)\"></co-transaction-search-grid>\n </div>\n ",
|
|
10399
11484
|
encapsulation: i0.ViewEncapsulation.None
|
|
10400
11485
|
},] }
|
|
10401
11486
|
];
|
|
10402
11487
|
TransactionSearchResultComponent.ctorParameters = function () { return [
|
|
10403
|
-
{ type: TransactionSearchService }
|
|
11488
|
+
{ type: TransactionSearchService },
|
|
11489
|
+
{ type: IconCacheService }
|
|
10404
11490
|
]; };
|
|
10405
11491
|
TransactionSearchResultComponent.propDecorators = {
|
|
10406
11492
|
filterButtonClick: [{ type: i0.Output }],
|
|
@@ -10421,7 +11507,8 @@
|
|
|
10421
11507
|
corecomponents_v12.ButtonModule,
|
|
10422
11508
|
ViewModeButtonsModule,
|
|
10423
11509
|
AvatarModule,
|
|
10424
|
-
TransactionTileModule
|
|
11510
|
+
TransactionTileModule,
|
|
11511
|
+
TransactionSearchGridModule
|
|
10425
11512
|
],
|
|
10426
11513
|
declarations: [
|
|
10427
11514
|
TransactionSearchResultComponent
|
|
@@ -10432,11 +11519,73 @@
|
|
|
10432
11519
|
},] }
|
|
10433
11520
|
];
|
|
10434
11521
|
|
|
11522
|
+
var FilterItemViewmodel = /** @class */ (function () {
|
|
11523
|
+
function FilterItemViewmodel(code, description, checked, count) {
|
|
11524
|
+
this.checked = false;
|
|
11525
|
+
this.code = code;
|
|
11526
|
+
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
11527
|
+
this.count = count;
|
|
11528
|
+
}
|
|
11529
|
+
return FilterItemViewmodel;
|
|
11530
|
+
}());
|
|
11531
|
+
|
|
11532
|
+
var FilterViewmodel = /** @class */ (function () {
|
|
11533
|
+
function FilterViewmodel(collection, fields) {
|
|
11534
|
+
var _this = this;
|
|
11535
|
+
this.filterItems = [];
|
|
11536
|
+
collection.forEach(function (item) {
|
|
11537
|
+
var _a, _b;
|
|
11538
|
+
_this.filterItems.push(new FilterItemViewmodel(item[fields.value], item[fields.text], (_a = item.checked) !== null && _a !== void 0 ? _a : false, (_b = item.count) !== null && _b !== void 0 ? _b : null));
|
|
11539
|
+
});
|
|
11540
|
+
}
|
|
11541
|
+
return FilterViewmodel;
|
|
11542
|
+
}());
|
|
11543
|
+
|
|
10435
11544
|
var FilterRequestService = /** @class */ (function () {
|
|
10436
|
-
function FilterRequestService(_transactionService) {
|
|
11545
|
+
function FilterRequestService(searchService, _transactionService) {
|
|
11546
|
+
this.searchService = searchService;
|
|
10437
11547
|
this._transactionService = _transactionService;
|
|
10438
11548
|
}
|
|
10439
|
-
FilterRequestService.prototype.
|
|
11549
|
+
FilterRequestService.prototype.handleCollectionChangeForRange = function (collection, modelName) {
|
|
11550
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionRange(collection);
|
|
11551
|
+
};
|
|
11552
|
+
FilterRequestService.prototype.handleCollectionChangeForArray = function (collection, modelName) {
|
|
11553
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionArray(collection);
|
|
11554
|
+
};
|
|
11555
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11556
|
+
FilterRequestService.prototype.handleCollectionChangeForSingleValue = function (value, modelName) {
|
|
11557
|
+
this.searchService.searchRequest[modelName] = value;
|
|
11558
|
+
};
|
|
11559
|
+
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11560
|
+
FilterRequestService.prototype.handleCollectionChangeForSingleNumber = function (value, modelName) {
|
|
11561
|
+
this.searchService.searchRequest[modelName] = value;
|
|
11562
|
+
};
|
|
11563
|
+
FilterRequestService.prototype.handleCheckboxValueChangeForString = function (value, modelName) {
|
|
11564
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
|
|
11565
|
+
};
|
|
11566
|
+
FilterRequestService.prototype.handleCheckboxValueChangeForNumber = function (value, modelName) {
|
|
11567
|
+
this.searchService.searchRequest[modelName] = value ? 1 : 0;
|
|
11568
|
+
};
|
|
11569
|
+
FilterRequestService.prototype.handleDateRangeChange = function (dates, modelName) {
|
|
11570
|
+
if (dates) {
|
|
11571
|
+
var startDate = dates[0];
|
|
11572
|
+
var endDate = dates[1];
|
|
11573
|
+
this.searchService.searchRequest[modelName] = this._getFilterRequestForDateRange(startDate, endDate);
|
|
11574
|
+
}
|
|
11575
|
+
};
|
|
11576
|
+
FilterRequestService.prototype.getDateFromFilterRequestRange = function (filterRequestRange, index) {
|
|
11577
|
+
if (filterRequestRange) {
|
|
11578
|
+
var datePattern = new RegExp('\\d{2}\\-\\d{2}\\-\\d{4}');
|
|
11579
|
+
var dateString = filterRequestRange
|
|
11580
|
+
.split(',')[index]
|
|
11581
|
+
.match(datePattern)[0];
|
|
11582
|
+
var day = Number(dateString.match('^\\d{2}')[0]);
|
|
11583
|
+
var month = Number(dateString.match('(?<=\\-)(\\d{2})(?=\\-)')[0]) - 1;
|
|
11584
|
+
var year = Number(dateString.match('\\d{4}')[0]);
|
|
11585
|
+
return new Date(year, month, day);
|
|
11586
|
+
}
|
|
11587
|
+
};
|
|
11588
|
+
FilterRequestService.prototype._getFilterRequestForCollectionRange = function (collection) {
|
|
10440
11589
|
var filterRequest = '';
|
|
10441
11590
|
collection === null || collection === void 0 ? void 0 : collection.forEach(function (item) {
|
|
10442
11591
|
if (item.checked) {
|
|
@@ -10446,31 +11595,31 @@
|
|
|
10446
11595
|
});
|
|
10447
11596
|
return filterRequest;
|
|
10448
11597
|
};
|
|
10449
|
-
FilterRequestService.prototype.
|
|
11598
|
+
FilterRequestService.prototype._getFilterRequestForBooleanToString = function (value) {
|
|
11599
|
+
var filterRequest = '';
|
|
11600
|
+
if (value) {
|
|
11601
|
+
filterRequest = "?='J'";
|
|
11602
|
+
}
|
|
11603
|
+
else {
|
|
11604
|
+
filterRequest = "?='N'";
|
|
11605
|
+
}
|
|
11606
|
+
return filterRequest;
|
|
11607
|
+
};
|
|
11608
|
+
FilterRequestService.prototype._getFilterRequestForCollectionArray = function (collection) {
|
|
10450
11609
|
var filterRequest = [];
|
|
10451
11610
|
collection === null || collection === void 0 ? void 0 : collection.forEach(function (item) {
|
|
10452
11611
|
if (item.checked) {
|
|
11612
|
+
filterRequest.push(item.code.toString());
|
|
10453
11613
|
}
|
|
10454
|
-
filterRequest.push(item.code.toString());
|
|
10455
11614
|
});
|
|
10456
11615
|
return filterRequest;
|
|
10457
11616
|
};
|
|
10458
|
-
FilterRequestService.prototype.
|
|
10459
|
-
var startDateRequest = startDate ? this.
|
|
10460
|
-
var endDateRequest = endDate ? this.
|
|
10461
|
-
return "
|
|
10462
|
-
};
|
|
10463
|
-
FilterRequestService.prototype.getDateFromFilterRequestRange = function (filterRequestRange, index) {
|
|
10464
|
-
if (filterRequestRange) {
|
|
10465
|
-
var dateRange = filterRequestRange.replace("?=", "");
|
|
10466
|
-
var date = Number(dateRange
|
|
10467
|
-
.split(",")[index]
|
|
10468
|
-
.replace("'", "")
|
|
10469
|
-
.replace("'", ""));
|
|
10470
|
-
return new Date(date);
|
|
10471
|
-
}
|
|
11617
|
+
FilterRequestService.prototype._getFilterRequestForDateRange = function (startDate, endDate) {
|
|
11618
|
+
var startDateRequest = startDate ? this._formatDateToString(startDate) : '';
|
|
11619
|
+
var endDateRequest = endDate ? this._formatDateToString(endDate) : '';
|
|
11620
|
+
return "?>='" + startDateRequest + "'& ?<='" + endDateRequest + "'";
|
|
10472
11621
|
};
|
|
10473
|
-
FilterRequestService.prototype.
|
|
11622
|
+
FilterRequestService.prototype._formatDateToString = function (date) {
|
|
10474
11623
|
var day = date.getDate().toString().padStart(2, '0');
|
|
10475
11624
|
var month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
10476
11625
|
var year = date.getFullYear();
|
|
@@ -10478,64 +11627,96 @@
|
|
|
10478
11627
|
};
|
|
10479
11628
|
return FilterRequestService;
|
|
10480
11629
|
}());
|
|
10481
|
-
FilterRequestService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FilterRequestService_Factory() { return new FilterRequestService(i0__namespace.ɵɵinject(TransactionService)); }, token: FilterRequestService, providedIn: "root" });
|
|
11630
|
+
FilterRequestService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FilterRequestService_Factory() { return new FilterRequestService(i0__namespace.ɵɵinject(TransactionSearchService), i0__namespace.ɵɵinject(TransactionService)); }, token: FilterRequestService, providedIn: "root" });
|
|
10482
11631
|
FilterRequestService.decorators = [
|
|
10483
11632
|
{ type: i0.Injectable, args: [{
|
|
10484
11633
|
providedIn: "root"
|
|
10485
11634
|
},] }
|
|
10486
11635
|
];
|
|
10487
11636
|
FilterRequestService.ctorParameters = function () { return [
|
|
11637
|
+
{ type: TransactionSearchService },
|
|
10488
11638
|
{ type: TransactionService }
|
|
10489
11639
|
]; };
|
|
10490
11640
|
|
|
10491
11641
|
var TransactionFilterContentArticleComponent = /** @class */ (function () {
|
|
10492
|
-
function TransactionFilterContentArticleComponent(searchService,
|
|
11642
|
+
function TransactionFilterContentArticleComponent(searchService, filterRequestService, _transactionService) {
|
|
11643
|
+
var _this = this;
|
|
10493
11644
|
this.searchService = searchService;
|
|
11645
|
+
this.filterRequestService = filterRequestService;
|
|
10494
11646
|
this._transactionService = _transactionService;
|
|
10495
|
-
this.
|
|
10496
|
-
this.searchRequestChange = new i0.EventEmitter();
|
|
11647
|
+
this.searchRequest = this.searchService.searchRequest;
|
|
10497
11648
|
this.searchPlaceholder = "SEARCH_IN_COLLECTION";
|
|
11649
|
+
this.showMoreLabel = "SHOW_MORE";
|
|
11650
|
+
this.showLessLabel = "SHOW_LESS";
|
|
10498
11651
|
this.articleNumberFields = { text: "description", value: "code" };
|
|
11652
|
+
this.exceedanceCodeFields = { text: "description", value: "code" };
|
|
11653
|
+
this.turnoverGroupFields = { text: "description", value: "turnovergroupNr" };
|
|
11654
|
+
this.mainArticleFields = { text: "description", value: "articlenumber" };
|
|
11655
|
+
this.supplierFields = { text: "displayName", value: "relationId" };
|
|
11656
|
+
this.getArticles = function (text) {
|
|
11657
|
+
var request = new articleExtendedRequest.ArticleExtendedRequest();
|
|
11658
|
+
request.articleNumber = text;
|
|
11659
|
+
return _this._transactionService.getArticles(request).then(function (articles) {
|
|
11660
|
+
return new FilterViewmodel(articles, { text: 'articleNumber', value: 'articleNumber' }).filterItems;
|
|
11661
|
+
});
|
|
11662
|
+
};
|
|
10499
11663
|
}
|
|
10500
11664
|
TransactionFilterContentArticleComponent.prototype.showClass = function () {
|
|
10501
11665
|
return true;
|
|
10502
11666
|
};
|
|
10503
11667
|
TransactionFilterContentArticleComponent.prototype.ngOnInit = function () {
|
|
10504
|
-
this.
|
|
11668
|
+
this._setExceedanceCodes();
|
|
11669
|
+
this._setSuppliers();
|
|
11670
|
+
this._setTurnoverGroups();
|
|
11671
|
+
this._setMainArticles();
|
|
10505
11672
|
};
|
|
10506
|
-
|
|
10507
|
-
|
|
11673
|
+
TransactionFilterContentArticleComponent.prototype.onFilterButtonClick = function () {
|
|
11674
|
+
this.searchService.searchTransactions();
|
|
10508
11675
|
};
|
|
10509
|
-
TransactionFilterContentArticleComponent.prototype.
|
|
10510
|
-
|
|
11676
|
+
TransactionFilterContentArticleComponent.prototype.handleCollectionChangeArticleNumber = function (collection) {
|
|
11677
|
+
var checkedItem = collection.find(function (c) { return c.checked; });
|
|
11678
|
+
this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'articleNr');
|
|
10511
11679
|
};
|
|
10512
|
-
TransactionFilterContentArticleComponent.prototype.
|
|
10513
|
-
|
|
11680
|
+
TransactionFilterContentArticleComponent.prototype._setExceedanceCodes = function () {
|
|
11681
|
+
var _this = this;
|
|
11682
|
+
this._transactionService.getInOutCollection("NL").then(function (exceedanceCodes) {
|
|
11683
|
+
_this.exceedanceCodes = new FilterViewmodel(exceedanceCodes, _this.exceedanceCodeFields).filterItems;
|
|
11684
|
+
});
|
|
10514
11685
|
};
|
|
10515
|
-
TransactionFilterContentArticleComponent.prototype.
|
|
10516
|
-
var
|
|
10517
|
-
|
|
10518
|
-
|
|
11686
|
+
TransactionFilterContentArticleComponent.prototype._setTurnoverGroups = function () {
|
|
11687
|
+
var _this = this;
|
|
11688
|
+
this._transactionService.getTurnoverGroups().then(function (turnoverGroups) {
|
|
11689
|
+
_this.turnoverGroups = new FilterViewmodel(turnoverGroups, _this.turnoverGroupFields).filterItems;
|
|
11690
|
+
});
|
|
10519
11691
|
};
|
|
10520
|
-
TransactionFilterContentArticleComponent.prototype.
|
|
10521
|
-
this
|
|
11692
|
+
TransactionFilterContentArticleComponent.prototype._setMainArticles = function () {
|
|
11693
|
+
var _this = this;
|
|
11694
|
+
this._transactionService.getMainArticles().then(function (articles) {
|
|
11695
|
+
_this.mainArticles = new FilterViewmodel(articles, _this.mainArticleFields).filterItems;
|
|
11696
|
+
});
|
|
11697
|
+
};
|
|
11698
|
+
TransactionFilterContentArticleComponent.prototype._setSuppliers = function () {
|
|
11699
|
+
var _this = this;
|
|
11700
|
+
var request = new relationRequest.RelationRequest();
|
|
11701
|
+
request.relationType = relationKind_enum.RelationKind.Supplier;
|
|
11702
|
+
this._transactionService.getRelationListObjects(request).then(function (relationListObjects) {
|
|
11703
|
+
_this.suppliers = new FilterViewmodel(relationListObjects, _this.supplierFields).filterItems;
|
|
11704
|
+
});
|
|
10522
11705
|
};
|
|
10523
11706
|
return TransactionFilterContentArticleComponent;
|
|
10524
11707
|
}());
|
|
10525
11708
|
TransactionFilterContentArticleComponent.decorators = [
|
|
10526
11709
|
{ type: i0.Component, args: [{
|
|
10527
11710
|
selector: 'co-transaction-filter-content-article',
|
|
10528
|
-
template: "\n <div class=\"transaction-filter-content-article-wrapper\">\n\n <!--Artikelnummer
|
|
11711
|
+
template: "\n <div class=\"transaction-filter-content-article-wrapper\">\n\n <!--Artikelnummer-->\n <co-filter-item\n [placeholder]=\"'ARTICLE_NR' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [minSearchCharsToLoadCollection]=\"3\"\n [collectionLoadFn]=\"getArticles\"\n (collectionChange)=\"handleCollectionChangeArticleNumber($event)\"\n >\n </co-filter-item>\n\n <!--Omzetgroep-->\n <co-filter-item\n [placeholder]=\"'TURNOVER_GROUP' | localize\"\n [expanded]=\"true\"\n [collection]=\"turnoverGroups\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')\"\n >\n </co-filter-item>\n\n <!--Hoofdartikel-->\n <co-filter-item\n [placeholder]=\"'MAIN_ARTICLE' | localize\"\n [expanded]=\"true\"\n [collection]=\"mainArticles\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'mainArticleNrRange')\"\n >\n </co-filter-item>\n\n <!--Uitloopcode -->\n <co-filter-item\n [placeholder]=\"'EXCEEDENCE_CODE' | localize\"\n [expanded]=\"true\"\n [collection]=\"exceedanceCodes\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')\"\n >\n </co-filter-item>\n\n <!--Leverancier-->\n <co-filter-item\n [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')\"\n >\n </co-filter-item>\n <div class=\"filter-button-container\">\n <co-button class=\"clickable\" [label]=\"'Filter'\" (click)=\"onFilterButtonClick()\"></co-button>\n </div>\n </div>\n "
|
|
10529
11712
|
},] }
|
|
10530
11713
|
];
|
|
10531
11714
|
TransactionFilterContentArticleComponent.ctorParameters = function () { return [
|
|
10532
11715
|
{ type: TransactionSearchService },
|
|
10533
|
-
{ type:
|
|
10534
|
-
{ type:
|
|
11716
|
+
{ type: FilterRequestService },
|
|
11717
|
+
{ type: TransactionService }
|
|
10535
11718
|
]; };
|
|
10536
11719
|
TransactionFilterContentArticleComponent.propDecorators = {
|
|
10537
|
-
searchRequest: [{ type: i0.Input }],
|
|
10538
|
-
searchRequestChange: [{ type: i0.Output }],
|
|
10539
11720
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-filter-content-article",] }]
|
|
10540
11721
|
};
|
|
10541
11722
|
|
|
@@ -10562,38 +11743,17 @@
|
|
|
10562
11743
|
},] }
|
|
10563
11744
|
];
|
|
10564
11745
|
|
|
10565
|
-
var FilterItemViewmodel = /** @class */ (function () {
|
|
10566
|
-
function FilterItemViewmodel(code, description, checked, count) {
|
|
10567
|
-
this.checked = false;
|
|
10568
|
-
this.code = code;
|
|
10569
|
-
this.description = description === null || description === void 0 ? void 0 : description.toString();
|
|
10570
|
-
this.count = count;
|
|
10571
|
-
}
|
|
10572
|
-
return FilterItemViewmodel;
|
|
10573
|
-
}());
|
|
10574
|
-
|
|
10575
|
-
var FilterViewmodel = /** @class */ (function () {
|
|
10576
|
-
function FilterViewmodel(collection, fields) {
|
|
10577
|
-
var _this = this;
|
|
10578
|
-
this.filterItems = [];
|
|
10579
|
-
collection.forEach(function (item) {
|
|
10580
|
-
var _a, _b;
|
|
10581
|
-
_this.filterItems.push(new FilterItemViewmodel(item[fields.value], item[fields.text], (_a = item.checked) !== null && _a !== void 0 ? _a : false, (_b = item.count) !== null && _b !== void 0 ? _b : null));
|
|
10582
|
-
});
|
|
10583
|
-
}
|
|
10584
|
-
return FilterViewmodel;
|
|
10585
|
-
}());
|
|
10586
|
-
|
|
10587
11746
|
var TransactionFilterContentLogisticsComponent = /** @class */ (function () {
|
|
10588
|
-
function TransactionFilterContentLogisticsComponent(searchService,
|
|
11747
|
+
function TransactionFilterContentLogisticsComponent(searchService, filterRequestService, _transactionService) {
|
|
10589
11748
|
this.searchService = searchService;
|
|
11749
|
+
this.filterRequestService = filterRequestService;
|
|
10590
11750
|
this._transactionService = _transactionService;
|
|
10591
|
-
this.
|
|
10592
|
-
this.searchRequestChange = new i0.EventEmitter();
|
|
11751
|
+
this.searchRequest = this.searchService.searchRequest;
|
|
10593
11752
|
this.searchPlaceholder = "SEARCH_IN_COLLECTION";
|
|
11753
|
+
this.showMoreLabel = "SHOW_MORE";
|
|
11754
|
+
this.showLessLabel = "SHOW_LESS";
|
|
10594
11755
|
this.deliveryMethods = [];
|
|
10595
11756
|
this.deliveryMethodFields = { text: "description", value: "code" };
|
|
10596
|
-
this.warehouses = [];
|
|
10597
11757
|
this.warehouseFields = { text: "description", value: "warehouseNo" };
|
|
10598
11758
|
}
|
|
10599
11759
|
TransactionFilterContentLogisticsComponent.prototype.showClass = function () {
|
|
@@ -10601,62 +11761,124 @@
|
|
|
10601
11761
|
};
|
|
10602
11762
|
TransactionFilterContentLogisticsComponent.prototype.ngOnInit = function () {
|
|
10603
11763
|
this._setRangeDates();
|
|
10604
|
-
this.
|
|
10605
|
-
this.
|
|
11764
|
+
this._setDeliveryMethods();
|
|
11765
|
+
this._setWarehouses();
|
|
11766
|
+
};
|
|
11767
|
+
TransactionFilterContentLogisticsComponent.prototype.onFilterButtonClick = function () {
|
|
11768
|
+
this.searchService.searchTransactions();
|
|
11769
|
+
};
|
|
11770
|
+
TransactionFilterContentLogisticsComponent.prototype.handleAllocatedChange = function (value) {
|
|
11771
|
+
console.log(value);
|
|
10606
11772
|
};
|
|
10607
11773
|
TransactionFilterContentLogisticsComponent.prototype._setRangeDates = function () {
|
|
10608
|
-
this.confirmedDeliveryStartDate = this.
|
|
10609
|
-
this.confirmedDeliveryEndDate = this.
|
|
10610
|
-
this.arrivalStartDate = this.
|
|
10611
|
-
this.arrivalEndDate = this.
|
|
11774
|
+
this.confirmedDeliveryStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 0);
|
|
11775
|
+
this.confirmedDeliveryEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 1);
|
|
11776
|
+
this.arrivalStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.arrivalDateRange, 0);
|
|
11777
|
+
this.arrivalEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.arrivalDateRange, 1);
|
|
10612
11778
|
};
|
|
10613
11779
|
//Delivery Methods
|
|
10614
|
-
TransactionFilterContentLogisticsComponent.prototype.
|
|
11780
|
+
TransactionFilterContentLogisticsComponent.prototype._setDeliveryMethods = function () {
|
|
10615
11781
|
var _this = this;
|
|
10616
11782
|
this._transactionService.getDeliveryMethods().then(function (deliveryMethods) {
|
|
10617
11783
|
_this.deliveryMethods = new FilterViewmodel(deliveryMethods, _this.deliveryMethodFields).filterItems;
|
|
10618
11784
|
});
|
|
10619
11785
|
};
|
|
10620
11786
|
//Warehouses
|
|
10621
|
-
TransactionFilterContentLogisticsComponent.prototype.
|
|
11787
|
+
TransactionFilterContentLogisticsComponent.prototype._setWarehouses = function () {
|
|
10622
11788
|
var _this = this;
|
|
10623
11789
|
this._transactionService.getWarehouses().then(function (warehouses) {
|
|
10624
|
-
_this.warehouses = warehouses;
|
|
11790
|
+
_this.warehouses = new FilterViewmodel(warehouses, _this.warehouseFields).filterItems;
|
|
10625
11791
|
});
|
|
10626
11792
|
};
|
|
10627
|
-
TransactionFilterContentLogisticsComponent.prototype.handleCollectionChangeForRange = function (collection, model) {
|
|
10628
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForCollectionRange(collection);
|
|
10629
|
-
};
|
|
10630
|
-
TransactionFilterContentLogisticsComponent.prototype.handleCollectionChangeForArray = function (collection, model) {
|
|
10631
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForCollectionArray(collection);
|
|
10632
|
-
};
|
|
10633
|
-
TransactionFilterContentLogisticsComponent.prototype.handleDateRangeChange = function (dates, model) {
|
|
10634
|
-
var startDate = dates[0];
|
|
10635
|
-
var endDate = dates[1];
|
|
10636
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForDateRange(startDate, endDate);
|
|
10637
|
-
};
|
|
10638
|
-
TransactionFilterContentLogisticsComponent.prototype.onFilterButtonClick = function () {
|
|
10639
|
-
this.searchService.searchTransactions();
|
|
10640
|
-
};
|
|
10641
11793
|
return TransactionFilterContentLogisticsComponent;
|
|
10642
11794
|
}());
|
|
10643
11795
|
TransactionFilterContentLogisticsComponent.decorators = [
|
|
10644
11796
|
{ type: i0.Component, args: [{
|
|
10645
11797
|
selector: 'co-transaction-filter-content-logistics',
|
|
10646
|
-
template: "\n <div class=\"transaction-filter-content-logistics-wrapper\">\n\n <!--Levermethode
|
|
11798
|
+
template: "\n <div class=\"transaction-filter-content-logistics-wrapper\">\n\n <!--Levermethode-->\n <co-filter-item\n [placeholder]=\"'DELIVERY_METHOD' | localize\"\n [expanded]=\"true\"\n [collection]=\"deliveryMethods\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')\">\n </co-filter-item>\n\n\n <!--Leverdatum definitief-->\n <co-filter-item\n [placeholder]=\"'DELIVERY_DATE_FINAL' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [model]=\"searchRequest.deliveryDateDefinitive === 'J'\"\n (modelChange)=\"filterRequestService.handleCheckboxValueChangeForString($event, 'deliveryDateDefinitive')\"\n [label]=\"'DELIVERY_DATE_FINAL' | localize\"></co-input-checkbox>\n </co-filter-item>\n\n <!--Toegewezen-->\n <co-transaction-filter-historic-state\n [label]=\"'ALLOCATED'\"\n (filterClicked)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityAllocated')\"\n ></co-transaction-filter-historic-state>\n\n <!--Geleverd-->\n <co-transaction-filter-historic-state\n [label]=\"'DELIVERED'\"\n (filterClicked)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityDelivered')\"\n ></co-transaction-filter-historic-state>\n\n <!--Gefactureerd-->\n <co-transaction-filter-historic-state\n [label]=\"'INVOICED'\"\n (filterClicked)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityInvoiced')\"\n ></co-transaction-filter-historic-state>\n\n <!--Te picken-->\n <co-transaction-filter-historic-state\n [label]=\"'TO_BE_PICKED'\"\n (filterClicked)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityToBePicked')\"\n ></co-transaction-filter-historic-state>\n\n <!--Gepicked-->\n <co-transaction-filter-historic-state\n [label]=\"'PICKED'\"\n (filterClicked)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityPicked')\"\n ></co-transaction-filter-historic-state>\n\n <!--Bevestigde leverdatum-->\n <co-filter-item\n [placeholder]=\"'CONFIRMED_DELIVERY_DATE' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-date-range\n [startDate]=\"confirmedDeliveryStartDate\"\n [endDate]=\"confirmedDeliveryEndDate\"\n (dateRangeChange)=\"filterRequestService.handleDateRangeChange($event, 'confirmedDeliveryDateRange')\"\n [placeholder]=\"'SELECT_DATE' | localize\">\n </co-input-date-range>\n </co-filter-item>\n\n <!--Aankomstdatum-->\n <co-filter-item\n [placeholder]=\"'ARRIVAL_DATE' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-date-range\n [startDate]=\"arrivalStartDate\"\n [endDate]=\"arrivalEndDate\"\n (dateRangeChange)=\"filterRequestService.handleDateRangeChange($event, 'arrivalDateRange')\"\n [placeholder]=\"'SELECT_DATE' | localize\">\n </co-input-date-range>\n </co-filter-item>\n\n <!--Deellevering-->\n <co-filter-item\n [placeholder]=\"'PART_DELIVERY' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [model]=\"searchRequest.partialDelivery === 'J'\"\n (modelChange)=\"filterRequestService.handleCheckboxValueChangeForString($event, 'partialDelivery')\"\n [label]=\"'PART_DELIVERY' | localize\">\n </co-input-checkbox>\n </co-filter-item>\n\n <!--Magazijn -->\n <co-filter-item\n [placeholder]=\"'WAREHOUSE' | localize\"\n [expanded]=\"true\"\n [collection]=\"warehouses\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'warehouse')\">\n </co-filter-item>\n\n\n <!--Bron magazijn-->\n <co-filter-item\n [placeholder]=\"'SOURCE_WAREHOUSE' | localize\"\n [expanded]=\"true\"\n [collection]=\"warehouses\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForSingleNumber($event, 'sourceWarehouse')\">\n </co-filter-item>\n\n\n <!--Serienummer -->\n <co-filter-item\n [placeholder]=\"'SERIAL_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.serialNumber\"\n [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Batchnummer -->\n <co-filter-item\n [placeholder]=\"'BATCH_NUMBER' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.batchNumber\" [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Inclusief retouren-->\n <co-filter-item\n [placeholder]=\"'INCLUDING_RETURNS' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [label]=\"'INCLUDING_RETURNS' | localize\"\n [model]=\"searchRequest.includingReturns === 1\"\n (modelChange)=\"filterRequestService.handleCheckboxValueChangeForNumber($event, 'includingReturns')\"\n >\n </co-input-checkbox>\n </co-filter-item>\n\n <!--Levermethode op (regel/header): todo: nog uitzoeken welke filter dit is-->\n <!-- <co-filter-item\n [placeholder]=\"'Levermethode op regel/header'\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [label]=\"'Levermethode op regel/header'\"\n >\n </co-input-checkbox>\n </co-filter-item>-->\n <div class=\"filter-button-container\">\n <co-button class=\"clickable\" [label]=\"'Filter'\" (click)=\"onFilterButtonClick()\"></co-button>\n </div>\n </div>\n "
|
|
10647
11799
|
},] }
|
|
10648
11800
|
];
|
|
10649
11801
|
TransactionFilterContentLogisticsComponent.ctorParameters = function () { return [
|
|
10650
11802
|
{ type: TransactionSearchService },
|
|
10651
|
-
{ type:
|
|
10652
|
-
{ type:
|
|
11803
|
+
{ type: FilterRequestService },
|
|
11804
|
+
{ type: TransactionService }
|
|
10653
11805
|
]; };
|
|
10654
11806
|
TransactionFilterContentLogisticsComponent.propDecorators = {
|
|
10655
|
-
searchRequest: [{ type: i0.Input }],
|
|
10656
|
-
searchRequestChange: [{ type: i0.Output }],
|
|
10657
11807
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-filter-content-logistics",] }]
|
|
10658
11808
|
};
|
|
10659
11809
|
|
|
11810
|
+
var TransactionFilterHistoricStateComponent = /** @class */ (function () {
|
|
11811
|
+
function TransactionFilterHistoricStateComponent() {
|
|
11812
|
+
this.expanded = true;
|
|
11813
|
+
this.filterClicked = new i0.EventEmitter();
|
|
11814
|
+
this.states = [];
|
|
11815
|
+
}
|
|
11816
|
+
Object.defineProperty(TransactionFilterHistoricStateComponent.prototype, "label", {
|
|
11817
|
+
get: function () {
|
|
11818
|
+
return this._label;
|
|
11819
|
+
},
|
|
11820
|
+
set: function (value) {
|
|
11821
|
+
this._label = value;
|
|
11822
|
+
this.groupName = this._label.toLowerCase() + "_group";
|
|
11823
|
+
this.labelNothing = "NOTHING_" + this._label.toUpperCase();
|
|
11824
|
+
this.labelPartly = "PARTLY_" + this._label.toUpperCase();
|
|
11825
|
+
this.labelFully = "FULLY_" + this._label.toUpperCase();
|
|
11826
|
+
this._setStates();
|
|
11827
|
+
},
|
|
11828
|
+
enumerable: false,
|
|
11829
|
+
configurable: true
|
|
11830
|
+
});
|
|
11831
|
+
TransactionFilterHistoricStateComponent.prototype.showClass = function () {
|
|
11832
|
+
return true;
|
|
11833
|
+
};
|
|
11834
|
+
TransactionFilterHistoricStateComponent.prototype.handleStateChange = function (value) {
|
|
11835
|
+
this.filterClicked.emit(value);
|
|
11836
|
+
};
|
|
11837
|
+
TransactionFilterHistoricStateComponent.prototype._setStates = function () {
|
|
11838
|
+
this.states = [
|
|
11839
|
+
{ label: this.labelNothing, value: quantityInHistoricState_enum.QuantityInHistoricState.Nothing, checked: false },
|
|
11840
|
+
{ label: this.labelPartly, value: quantityInHistoricState_enum.QuantityInHistoricState.Partly, checked: false },
|
|
11841
|
+
{ label: this.labelFully, value: quantityInHistoricState_enum.QuantityInHistoricState.Fully, checked: false }
|
|
11842
|
+
];
|
|
11843
|
+
};
|
|
11844
|
+
return TransactionFilterHistoricStateComponent;
|
|
11845
|
+
}());
|
|
11846
|
+
TransactionFilterHistoricStateComponent.decorators = [
|
|
11847
|
+
{ type: i0.Component, args: [{
|
|
11848
|
+
selector: "co-transaction-filter-historic-state",
|
|
11849
|
+
template: "\n <co-filter-item\n [placeholder]=\"label | localize\"\n [customContent]=\"true\"\n [expanded]=\"expanded\">\n <co-input-radio-button *ngFor=\"let state of states\"\n [name]=\"groupName\"\n [value]=\"state.value\"\n [model]=\"state.checked\"\n [label]=\"state.label | localize\"\n (modelChange)=\"handleStateChange($event)\"\n ></co-input-radio-button>\n </co-filter-item>\n ",
|
|
11850
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11851
|
+
},] }
|
|
11852
|
+
];
|
|
11853
|
+
TransactionFilterHistoricStateComponent.propDecorators = {
|
|
11854
|
+
label: [{ type: i0.Input }],
|
|
11855
|
+
expanded: [{ type: i0.Input }],
|
|
11856
|
+
filterClicked: [{ type: i0.Output }],
|
|
11857
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-filter-historic-state",] }]
|
|
11858
|
+
};
|
|
11859
|
+
|
|
11860
|
+
var TransactionFilterHistoricStateModule = /** @class */ (function () {
|
|
11861
|
+
function TransactionFilterHistoricStateModule() {
|
|
11862
|
+
}
|
|
11863
|
+
return TransactionFilterHistoricStateModule;
|
|
11864
|
+
}());
|
|
11865
|
+
TransactionFilterHistoricStateModule.decorators = [
|
|
11866
|
+
{ type: i0.NgModule, args: [{
|
|
11867
|
+
imports: [
|
|
11868
|
+
common.CommonModule,
|
|
11869
|
+
corecomponents_v12.FilterItemModule,
|
|
11870
|
+
PipeModule,
|
|
11871
|
+
corecomponents_v12.InputRadioButtonModule
|
|
11872
|
+
],
|
|
11873
|
+
declarations: [
|
|
11874
|
+
TransactionFilterHistoricStateComponent
|
|
11875
|
+
],
|
|
11876
|
+
exports: [
|
|
11877
|
+
TransactionFilterHistoricStateComponent
|
|
11878
|
+
]
|
|
11879
|
+
},] }
|
|
11880
|
+
];
|
|
11881
|
+
|
|
10660
11882
|
var TransactionFilterContentLogisticsModule = /** @class */ (function () {
|
|
10661
11883
|
function TransactionFilterContentLogisticsModule() {
|
|
10662
11884
|
}
|
|
@@ -10672,7 +11894,9 @@
|
|
|
10672
11894
|
PipeModule,
|
|
10673
11895
|
corecomponents_v12.InputDatePickerModule,
|
|
10674
11896
|
corecomponents_v12.ButtonModule,
|
|
10675
|
-
corecomponents_v12.InputCheckboxModule
|
|
11897
|
+
corecomponents_v12.InputCheckboxModule,
|
|
11898
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
11899
|
+
TransactionFilterHistoricStateModule
|
|
10676
11900
|
],
|
|
10677
11901
|
declarations: [
|
|
10678
11902
|
TransactionFilterContentLogisticsComponent
|
|
@@ -10684,110 +11908,113 @@
|
|
|
10684
11908
|
];
|
|
10685
11909
|
|
|
10686
11910
|
var TransactionFilterContentOrderComponent = /** @class */ (function () {
|
|
10687
|
-
function TransactionFilterContentOrderComponent(
|
|
10688
|
-
|
|
11911
|
+
function TransactionFilterContentOrderComponent(searchService, filterRequestService, _transactionService) {
|
|
11912
|
+
var _this = this;
|
|
10689
11913
|
this.searchService = searchService;
|
|
10690
|
-
this.
|
|
10691
|
-
this.
|
|
10692
|
-
this.
|
|
11914
|
+
this.filterRequestService = filterRequestService;
|
|
11915
|
+
this._transactionService = _transactionService;
|
|
11916
|
+
this.searchRequest = this.searchService.searchRequest;
|
|
10693
11917
|
this.searchPlaceholder = "SEARCH_IN_COLLECTION";
|
|
11918
|
+
this.showMoreLabel = "SHOW_MORE";
|
|
11919
|
+
this.showLessLabel = "SHOW_LESS";
|
|
10694
11920
|
this.salesPersonsFields = { text: "name", value: "relationId" };
|
|
10695
11921
|
this.tagsFields = { text: "description", value: "tagValueId" };
|
|
10696
11922
|
this.branchFields = { text: "description", value: "relationId" };
|
|
10697
11923
|
this.onHoldCodeFields = { text: "description", value: "onHoldCode" };
|
|
10698
11924
|
this.commissionCodeFields = { text: "description", value: "code" };
|
|
10699
11925
|
this.customerGroupFields = { text: "naam", value: "groepsnummer" };
|
|
11926
|
+
this.loadCustomers = function (nameFilter) { return __awaiter(_this, void 0, void 0, function () {
|
|
11927
|
+
var request;
|
|
11928
|
+
return __generator(this, function (_a) {
|
|
11929
|
+
request = new relationRequest.RelationRequest();
|
|
11930
|
+
request.familyName = nameFilter;
|
|
11931
|
+
return [2 /*return*/, this._transactionService.getRelationListObjects(request).then(function (relations) {
|
|
11932
|
+
return new FilterViewmodel(relations, { text: 'familyName', value: 'familyName' }).filterItems;
|
|
11933
|
+
})];
|
|
11934
|
+
});
|
|
11935
|
+
}); };
|
|
10700
11936
|
}
|
|
10701
11937
|
TransactionFilterContentOrderComponent.prototype.showClass = function () {
|
|
10702
11938
|
return true;
|
|
10703
11939
|
};
|
|
10704
11940
|
TransactionFilterContentOrderComponent.prototype.ngOnInit = function () {
|
|
10705
11941
|
this._setRangeDates();
|
|
10706
|
-
this.
|
|
10707
|
-
this.
|
|
10708
|
-
this.
|
|
10709
|
-
this.
|
|
10710
|
-
this.
|
|
10711
|
-
this.
|
|
11942
|
+
this._setSalesPersons();
|
|
11943
|
+
this._setTags();
|
|
11944
|
+
this._setBranches();
|
|
11945
|
+
this._setOnHoldCodes();
|
|
11946
|
+
this._setCommissionCodes();
|
|
11947
|
+
this._setCustomerGroups();
|
|
11948
|
+
};
|
|
11949
|
+
TransactionFilterContentOrderComponent.prototype.onFilterButtonClick = function () {
|
|
11950
|
+
this.searchService.searchTransactions();
|
|
11951
|
+
};
|
|
11952
|
+
TransactionFilterContentOrderComponent.prototype.handleCollectionChangeCustomerName = function (collection) {
|
|
11953
|
+
var checkedItem = collection.find(function (c) { return c.checked; });
|
|
11954
|
+
this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'relationName');
|
|
10712
11955
|
};
|
|
10713
11956
|
TransactionFilterContentOrderComponent.prototype._setRangeDates = function () {
|
|
10714
|
-
this.transStartDate = this.
|
|
10715
|
-
this.transEndDate = this.
|
|
10716
|
-
this.deliveryStartDate = this.
|
|
10717
|
-
this.deliveryEndDate = this.
|
|
11957
|
+
this.transStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 0);
|
|
11958
|
+
this.transEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 1);
|
|
11959
|
+
this.deliveryStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.deliveryDateRange, 0);
|
|
11960
|
+
this.deliveryEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.deliveryDateRange, 1);
|
|
10718
11961
|
};
|
|
10719
11962
|
//Verkoper
|
|
10720
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11963
|
+
TransactionFilterContentOrderComponent.prototype._setSalesPersons = function () {
|
|
10721
11964
|
var _this = this;
|
|
10722
11965
|
this._transactionService.getSalesPersons().then(function (salesPersons) {
|
|
10723
11966
|
_this.salesPersons = new FilterViewmodel(salesPersons, _this.salesPersonsFields).filterItems;
|
|
10724
11967
|
});
|
|
10725
11968
|
};
|
|
10726
11969
|
// Tags
|
|
10727
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11970
|
+
TransactionFilterContentOrderComponent.prototype._setTags = function () {
|
|
10728
11971
|
var _this = this;
|
|
10729
11972
|
this._transactionService.getTags(1).then(function (tags) {
|
|
10730
11973
|
_this.tags = new FilterViewmodel(tags, _this.tagsFields).filterItems;
|
|
10731
11974
|
});
|
|
10732
11975
|
};
|
|
10733
11976
|
//Branches
|
|
10734
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11977
|
+
TransactionFilterContentOrderComponent.prototype._setBranches = function () {
|
|
10735
11978
|
var _this = this;
|
|
10736
11979
|
this._transactionService.getBranches().then(function (branches) {
|
|
10737
11980
|
_this.branches = new FilterViewmodel(branches, _this.branchFields).filterItems;
|
|
10738
11981
|
});
|
|
10739
11982
|
};
|
|
10740
11983
|
//OnHoldCodes
|
|
10741
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11984
|
+
TransactionFilterContentOrderComponent.prototype._setOnHoldCodes = function () {
|
|
10742
11985
|
var _this = this;
|
|
10743
11986
|
this._transactionService.getOnHoldCodes().then(function (onHoldCodes) {
|
|
10744
11987
|
_this.onHoldCodes = new FilterViewmodel(onHoldCodes, _this.onHoldCodeFields).filterItems;
|
|
10745
11988
|
});
|
|
10746
11989
|
};
|
|
10747
11990
|
//CommissionCodes
|
|
10748
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11991
|
+
TransactionFilterContentOrderComponent.prototype._setCommissionCodes = function () {
|
|
10749
11992
|
var _this = this;
|
|
10750
11993
|
this._transactionService.getCommissionCodes("NL").then(function (commissionCodes) {
|
|
10751
11994
|
_this.commissionCodes = new FilterViewmodel(commissionCodes, _this.commissionCodeFields).filterItems;
|
|
10752
11995
|
});
|
|
10753
11996
|
};
|
|
10754
11997
|
//CustomerGroups
|
|
10755
|
-
TransactionFilterContentOrderComponent.prototype.
|
|
11998
|
+
TransactionFilterContentOrderComponent.prototype._setCustomerGroups = function () {
|
|
10756
11999
|
var _this = this;
|
|
10757
12000
|
this._transactionService.getCustomerGroups().then(function (customerGroups) {
|
|
10758
12001
|
_this.customerGroups = new FilterViewmodel(customerGroups, _this.customerGroupFields).filterItems;
|
|
10759
12002
|
});
|
|
10760
12003
|
};
|
|
10761
|
-
TransactionFilterContentOrderComponent.prototype.handleCollectionChangeForRange = function (collection, model) {
|
|
10762
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForCollectionRange(collection);
|
|
10763
|
-
};
|
|
10764
|
-
TransactionFilterContentOrderComponent.prototype.handleCollectionChangeForArray = function (collection, model) {
|
|
10765
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForCollectionArray(collection);
|
|
10766
|
-
};
|
|
10767
|
-
TransactionFilterContentOrderComponent.prototype.handleDateRangeChange = function (dates, model) {
|
|
10768
|
-
var startDate = dates[0];
|
|
10769
|
-
var endDate = dates[1];
|
|
10770
|
-
this.searchRequest[model] = this._filterRequestService.getFilterRequestForDateRange(startDate, endDate);
|
|
10771
|
-
};
|
|
10772
|
-
TransactionFilterContentOrderComponent.prototype.onFilterButtonClick = function () {
|
|
10773
|
-
this.searchService.searchTransactions();
|
|
10774
|
-
};
|
|
10775
12004
|
return TransactionFilterContentOrderComponent;
|
|
10776
12005
|
}());
|
|
10777
12006
|
TransactionFilterContentOrderComponent.decorators = [
|
|
10778
12007
|
{ type: i0.Component, args: [{
|
|
10779
12008
|
selector: 'co-transaction-filter-content-order',
|
|
10780
|
-
template: "\n <div class=\"transaction-filter-content-order-wrapper\">\n\n <!--Orderdatum
|
|
12009
|
+
template: "\n <div class=\"transaction-filter-content-order-wrapper\">\n\n <!--Orderdatum-->\n <co-filter-item\n [placeholder]=\"'ORDER_DATE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-date-range\n [startDate]=\"transStartDate\"\n [endDate]=\"transEndDate\"\n (dateRangeChange)=\"filterRequestService.handleDateRangeChange($event, 'rangeTransDate')\"\n [placeholder]=\"'SELECT_DATE' | localize\">\n </co-input-date-range>\n </co-filter-item>\n\n <!--Leverdatum-->\n <co-filter-item\n [placeholder]=\"'DELIVERY_DATE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-date-range\n [startDate]=\"deliveryStartDate\"\n [endDate]=\"deliveryEndDate\"\n (dateRangeChange)=\"filterRequestService.handleDateRangeChange($event, 'deliveryDateRange')\"\n [placeholder]=\"'SELECT_DATE' | localize\">\n </co-input-date-range>\n </co-filter-item>\n\n <!--Filiaal-->\n <co-filter-item\n [placeholder]=\"'BRANCH' | localize\"\n [expanded]=\"true\"\n [collection]=\"branches\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')\"\n >\n </co-filter-item>\n\n <!--Verkoper-->\n <co-filter-item\n [placeholder]=\"'HANDLED_BY' | localize\"\n [expanded]=\"true\"\n [collection]=\"salesPersons\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')\"\n >\n </co-filter-item>\n\n <!--Eigen referentie-->\n <co-filter-item\n [placeholder]=\"'OWN_REFERENCE' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-text [(model)]=\"searchRequest.userReference\"\n [placeholder]=\"'OWN_REFERENCE' | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Tags-->\n <co-filter-item\n [placeholder]=\"'TAGS' | localize\"\n [expanded]=\"true\"\n [collection]=\"tags\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event, 'tagRange')\"\n >\n <co-input-text [(model)]=\"searchRequest.tagRange\" [placeholder]=\"'TAGS' | localize\"></co-input-text>\n </co-filter-item>\n\n <!--On hold codes-->\n <co-filter-item\n [placeholder]=\"'ON_HOLD' | localize\"\n [expanded]=\"true\"\n [collection]=\"onHoldCodes\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')\"\n >\n <co-input-text [(model)]=\"searchRequest.tagRange\" [placeholder]=\"'TAGS' | localize\"></co-input-text>\n </co-filter-item>\n\n <!--Order definitief-->\n <co-filter-item\n [placeholder]=\"'ORDER_DEFINITIVE' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [model]=\"searchRequest.transactionDefinitive === 'J'\"\n (modelChange)=\"filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')\"\n [label]=\"'ORDER_DEFINITIVE' | localize\"></co-input-checkbox>\n </co-filter-item>\n\n <!--Commissiecode-->\n <co-filter-item\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [expanded]=\"true\"\n [collection]=\"commissionCodes\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')\"\n >\n </co-filter-item>\n\n <!--Inactieve transacties-->\n <co-filter-item\n [placeholder]=\"'INACTIVE_TRANSACTIONS' | localize\"\n [customContent]=\"true\"\n [expanded]=\"true\">\n <co-input-checkbox\n [model]=\"searchRequest.active === false\"\n (modelChange)=\"searchRequest.active = !$event\"\n [label]=\"'INACTIVE_TRANSACTIONS' | localize\"\n ></co-input-checkbox>\n </co-filter-item>\n\n <!--Klantnaam-->\n <co-filter-item\n [placeholder]=\"'CUSTOMER_NAME' | localize\"\n [expanded]=\"true\"\n [singleSelect]=\"true\"\n [minSearchCharsToLoadCollection]=\"3\"\n [collectionLoadFn]=\"loadCustomers\"\n (collectionChange)=\"handleCollectionChangeCustomerName($event)\"\n >\n </co-filter-item>\n\n <!--Klantgroep-->\n <co-filter-item\n [placeholder]=\"'CUSTOMER_GROUP' | localize\"\n [expanded]=\"true\"\n [collection]=\"customerGroups\"\n [searchPlaceholder]=\"searchPlaceholder | localize\"\n [showMoreLabel]=\"showMoreLabel | localize\"\n [showLessLabel]=\"showLessLabel | localize\"\n (collectionChange)=\"filterRequestService.handleCollectionChangeForSingleValue($event, 'customerGroupId')\">\n </co-filter-item>\n <div class=\"filter-button-container\">\n <co-button class=\"clickable\" [label]=\"'Filter'\" (click)=\"onFilterButtonClick()\"></co-button>\n </div>\n </div>\n "
|
|
10781
12010
|
},] }
|
|
10782
12011
|
];
|
|
10783
12012
|
TransactionFilterContentOrderComponent.ctorParameters = function () { return [
|
|
10784
|
-
{ type: TransactionService },
|
|
10785
12013
|
{ type: TransactionSearchService },
|
|
10786
|
-
{ type: FilterRequestService }
|
|
12014
|
+
{ type: FilterRequestService },
|
|
12015
|
+
{ type: TransactionService }
|
|
10787
12016
|
]; };
|
|
10788
12017
|
TransactionFilterContentOrderComponent.propDecorators = {
|
|
10789
|
-
searchRequest: [{ type: i0.Input }],
|
|
10790
|
-
searchRequestChange: [{ type: i0.Output }],
|
|
10791
12018
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-filter-content-order",] }]
|
|
10792
12019
|
};
|
|
10793
12020
|
|
|
@@ -10858,7 +12085,7 @@
|
|
|
10858
12085
|
TransactionFilterComponent.decorators = [
|
|
10859
12086
|
{ type: i0.Component, args: [{
|
|
10860
12087
|
selector: 'co-transaction-filter',
|
|
10861
|
-
template: "\n <div class=\"transaction-filter-header-wrapper\">\n <div class=\"transaction-filter-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.SyncAlt)\"\n (click)=\"resetFilters()\"\n ></co-icon>\n </div>\n <co-icon class=\"clickable\" [iconData]=\"iconCacheService.getIcon(icon.Cancel)\"\n (click)=\"onCloseButtonClick()\"></co-icon>\n </div>\n <div class=\"transaction-filter-categories\">\n <co-transaction-filter-categories [categories]=\"filterCategories\"\n (categoryClick)=\"handleCategoryClick($event)\"></co-transaction-filter-categories>\n </div>\n <div #filterItems class=\"transaction-category-filter-wrapper\" data-ride=\"carousel\">\n <div #orderFilter class=\"transaction-filter-category-content\">\n <co-transaction-filter-content-order
|
|
12088
|
+
template: "\n <div class=\"transaction-filter-header-wrapper\">\n <div class=\"transaction-filter-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icon.SyncAlt)\"\n (click)=\"resetFilters()\"\n ></co-icon>\n </div>\n <co-icon class=\"clickable\" [iconData]=\"iconCacheService.getIcon(icon.Cancel)\"\n (click)=\"onCloseButtonClick()\"></co-icon>\n </div>\n <div class=\"transaction-filter-categories\">\n <co-transaction-filter-categories [categories]=\"filterCategories\"\n (categoryClick)=\"handleCategoryClick($event)\"></co-transaction-filter-categories>\n </div>\n <div #filterItems class=\"transaction-category-filter-wrapper\" data-ride=\"carousel\">\n <div #orderFilter class=\"transaction-filter-category-content\">\n <co-transaction-filter-content-order></co-transaction-filter-content-order>\n </div>\n <div #logisticsFilter class=\"transaction-filter-category-content\">\n <co-transaction-filter-content-logistics></co-transaction-filter-content-logistics>\n </div>\n <div #articleFilter class=\"transaction-filter-category-content\">\n <co-transaction-filter-content-article></co-transaction-filter-content-article>\n </div>\n </div>\n ",
|
|
10862
12089
|
encapsulation: i0.ViewEncapsulation.None
|
|
10863
12090
|
},] }
|
|
10864
12091
|
];
|
|
@@ -11123,145 +12350,155 @@
|
|
|
11123
12350
|
exports.TransactionTotalsModule = TransactionTotalsModule;
|
|
11124
12351
|
exports["ɵa"] = PendingReasonService;
|
|
11125
12352
|
exports["ɵb"] = DialogService;
|
|
11126
|
-
exports["ɵba"] =
|
|
11127
|
-
exports["ɵbb"] =
|
|
11128
|
-
exports["ɵbc"] =
|
|
11129
|
-
exports["ɵbd"] =
|
|
11130
|
-
exports["ɵbe"] =
|
|
11131
|
-
exports["ɵbf"] =
|
|
11132
|
-
exports["ɵbg"] =
|
|
11133
|
-
exports["ɵbh"] =
|
|
11134
|
-
exports["ɵbi"] =
|
|
11135
|
-
exports["ɵbj"] =
|
|
11136
|
-
exports["ɵbk"] =
|
|
11137
|
-
exports["ɵbl"] =
|
|
11138
|
-
exports["ɵbm"] =
|
|
11139
|
-
exports["ɵbn"] =
|
|
11140
|
-
exports["ɵbo"] =
|
|
11141
|
-
exports["ɵbp"] =
|
|
11142
|
-
exports["ɵbq"] =
|
|
11143
|
-
exports["ɵbr"] =
|
|
11144
|
-
exports["ɵbs"] =
|
|
11145
|
-
exports["ɵbt"] =
|
|
11146
|
-
exports["ɵbu"] =
|
|
11147
|
-
exports["ɵbv"] =
|
|
11148
|
-
exports["ɵbw"] =
|
|
11149
|
-
exports["ɵbx"] =
|
|
11150
|
-
exports["ɵby"] =
|
|
11151
|
-
exports["ɵbz"] =
|
|
12353
|
+
exports["ɵba"] = RelationAddressSelectModule;
|
|
12354
|
+
exports["ɵbb"] = RelationAddressTileModule;
|
|
12355
|
+
exports["ɵbc"] = TileModule;
|
|
12356
|
+
exports["ɵbd"] = TileComponent;
|
|
12357
|
+
exports["ɵbe"] = RelationAddressTileComponent;
|
|
12358
|
+
exports["ɵbf"] = RelationAddressSelectComponent;
|
|
12359
|
+
exports["ɵbg"] = BusinessObjectFactory;
|
|
12360
|
+
exports["ɵbh"] = StepperModule;
|
|
12361
|
+
exports["ɵbi"] = StepperComponent;
|
|
12362
|
+
exports["ɵbj"] = StepperStepComponent;
|
|
12363
|
+
exports["ɵbk"] = TransactionArticleTextModule;
|
|
12364
|
+
exports["ɵbl"] = TransactionArticleTextComponent;
|
|
12365
|
+
exports["ɵbm"] = TransactionArticleTextOverviewModule;
|
|
12366
|
+
exports["ɵbn"] = TransactionArticleTextOverviewComponent;
|
|
12367
|
+
exports["ɵbo"] = TransactionImageService;
|
|
12368
|
+
exports["ɵbp"] = AvatarModule;
|
|
12369
|
+
exports["ɵbq"] = AvatarComponent;
|
|
12370
|
+
exports["ɵbr"] = SharedService;
|
|
12371
|
+
exports["ɵbs"] = SharedConnectorService;
|
|
12372
|
+
exports["ɵbt"] = DeliveryTypeTileModule;
|
|
12373
|
+
exports["ɵbu"] = DeliveryTypeTileComponent;
|
|
12374
|
+
exports["ɵbv"] = PaymentModule;
|
|
12375
|
+
exports["ɵbw"] = PaymentTileModule;
|
|
12376
|
+
exports["ɵbx"] = PaymentTileComponent;
|
|
12377
|
+
exports["ɵby"] = PaymentComponent;
|
|
12378
|
+
exports["ɵbz"] = PaymentService;
|
|
11152
12379
|
exports["ɵc"] = OptionsService;
|
|
11153
|
-
exports["ɵca"] =
|
|
11154
|
-
exports["ɵcb"] =
|
|
11155
|
-
exports["ɵcc"] =
|
|
11156
|
-
exports["ɵcd"] =
|
|
11157
|
-
exports["ɵce"] =
|
|
11158
|
-
exports["ɵcf"] =
|
|
11159
|
-
exports["ɵcg"] =
|
|
11160
|
-
exports["ɵch"] =
|
|
11161
|
-
exports["ɵci"] =
|
|
11162
|
-
exports["ɵcj"] =
|
|
11163
|
-
exports["ɵck"] =
|
|
11164
|
-
exports["ɵcl"] =
|
|
11165
|
-
exports["ɵcm"] =
|
|
11166
|
-
exports["ɵcn"] =
|
|
11167
|
-
exports["ɵco"] =
|
|
11168
|
-
exports["ɵcp"] =
|
|
11169
|
-
exports["ɵcq"] =
|
|
11170
|
-
exports["ɵcr"] =
|
|
11171
|
-
exports["ɵcs"] =
|
|
11172
|
-
exports["ɵct"] =
|
|
11173
|
-
exports["ɵcu"] =
|
|
11174
|
-
exports["ɵcv"] =
|
|
11175
|
-
exports["ɵcw"] =
|
|
11176
|
-
exports["ɵcx"] =
|
|
11177
|
-
exports["ɵcy"] =
|
|
11178
|
-
exports["ɵcz"] =
|
|
12380
|
+
exports["ɵca"] = CheckoutOverviewRelationEditComponent;
|
|
12381
|
+
exports["ɵcb"] = CheckoutOverviewDeliveryEditComponent;
|
|
12382
|
+
exports["ɵcc"] = CheckoutOverviewDeliveryAddressComponent;
|
|
12383
|
+
exports["ɵcd"] = CheckOutRelationSuggestionsListComponent;
|
|
12384
|
+
exports["ɵce"] = CheckOutRelationSuggestionsListItemComponent;
|
|
12385
|
+
exports["ɵcf"] = CheckoutLoginComponent;
|
|
12386
|
+
exports["ɵcg"] = TransactionHeaderModule$1;
|
|
12387
|
+
exports["ɵch"] = TransactionHeaderBlockModule;
|
|
12388
|
+
exports["ɵci"] = TransactionHeaderBlockComponent;
|
|
12389
|
+
exports["ɵcj"] = TransactionBaseComponent;
|
|
12390
|
+
exports["ɵck"] = TransactionHeaderPaymentModule;
|
|
12391
|
+
exports["ɵcl"] = TransactionHeaderPaymentComponent;
|
|
12392
|
+
exports["ɵcm"] = TransactionHeaderComponent$1;
|
|
12393
|
+
exports["ɵcn"] = TransactionLinesGridModule;
|
|
12394
|
+
exports["ɵco"] = TransactionBaseGridModule;
|
|
12395
|
+
exports["ɵcp"] = TransactionLineSidePanelModule;
|
|
12396
|
+
exports["ɵcq"] = TransactionLineSidePanelDefaultModule;
|
|
12397
|
+
exports["ɵcr"] = TransactionLinePriceModule;
|
|
12398
|
+
exports["ɵcs"] = TransactionLinePriceComponent;
|
|
12399
|
+
exports["ɵct"] = TransactionLineFieldsBaseComponent;
|
|
12400
|
+
exports["ɵcu"] = TransactionLinePriceListModule;
|
|
12401
|
+
exports["ɵcv"] = TransactionLinePriceListComponent;
|
|
12402
|
+
exports["ɵcw"] = TransactionLineVatModule;
|
|
12403
|
+
exports["ɵcx"] = TransactionLineVatComponent;
|
|
12404
|
+
exports["ɵcy"] = TransactionLineQuantityModule;
|
|
12405
|
+
exports["ɵcz"] = TransactionLineQuantityComponent;
|
|
11179
12406
|
exports["ɵd"] = DictionaryService;
|
|
11180
|
-
exports["ɵda"] =
|
|
11181
|
-
exports["ɵdb"] =
|
|
11182
|
-
exports["ɵdc"] =
|
|
11183
|
-
exports["ɵdd"] =
|
|
11184
|
-
exports["ɵde"] =
|
|
11185
|
-
exports["ɵdf"] =
|
|
11186
|
-
exports["ɵdg"] =
|
|
11187
|
-
exports["ɵdh"] =
|
|
11188
|
-
exports["ɵdi"] =
|
|
11189
|
-
exports["ɵdj"] =
|
|
11190
|
-
exports["ɵdk"] =
|
|
11191
|
-
exports["ɵdl"] =
|
|
11192
|
-
exports["ɵdm"] =
|
|
11193
|
-
exports["ɵdn"] =
|
|
11194
|
-
exports["ɵdo"] =
|
|
11195
|
-
exports["ɵdp"] =
|
|
11196
|
-
exports["ɵdq"] =
|
|
11197
|
-
exports["ɵdr"] =
|
|
11198
|
-
exports["ɵds"] =
|
|
11199
|
-
exports["ɵdt"] =
|
|
11200
|
-
exports["ɵdu"] =
|
|
11201
|
-
exports["ɵdv"] =
|
|
11202
|
-
exports["ɵdw"] =
|
|
11203
|
-
exports["ɵdx"] =
|
|
11204
|
-
exports["ɵdy"] =
|
|
11205
|
-
exports["ɵdz"] =
|
|
11206
|
-
exports["ɵe"] =
|
|
11207
|
-
exports["ɵea"] =
|
|
11208
|
-
exports["ɵeb"] =
|
|
11209
|
-
exports["ɵec"] =
|
|
11210
|
-
exports["ɵed"] =
|
|
11211
|
-
exports["ɵee"] =
|
|
11212
|
-
exports["ɵef"] =
|
|
11213
|
-
exports["ɵeg"] =
|
|
11214
|
-
exports["ɵeh"] =
|
|
11215
|
-
exports["ɵei"] =
|
|
11216
|
-
exports["ɵej"] =
|
|
11217
|
-
exports["ɵek"] =
|
|
11218
|
-
exports["ɵel"] =
|
|
11219
|
-
exports["ɵem"] =
|
|
11220
|
-
exports["ɵen"] =
|
|
11221
|
-
exports["ɵeo"] =
|
|
11222
|
-
exports["ɵep"] =
|
|
11223
|
-
exports["ɵeq"] =
|
|
11224
|
-
exports["ɵer"] =
|
|
11225
|
-
exports["ɵes"] =
|
|
11226
|
-
exports["ɵet"] =
|
|
11227
|
-
exports["ɵeu"] =
|
|
11228
|
-
exports["ɵev"] =
|
|
11229
|
-
exports["ɵew"] =
|
|
11230
|
-
exports["ɵex"] =
|
|
11231
|
-
exports["ɵey"] =
|
|
11232
|
-
exports["ɵez"] =
|
|
12407
|
+
exports["ɵda"] = TransactionLineLineDiscountModule;
|
|
12408
|
+
exports["ɵdb"] = TransactionLineLineDiscountComponent;
|
|
12409
|
+
exports["ɵdc"] = TransactionLineDeliveryMethodModule;
|
|
12410
|
+
exports["ɵdd"] = TransactionLineDeliveryMethodComponent;
|
|
12411
|
+
exports["ɵde"] = TransactionLineDeliveryDateModule;
|
|
12412
|
+
exports["ɵdf"] = TransactionLineDeliveryDateComponent;
|
|
12413
|
+
exports["ɵdg"] = TransactionLineReferenceModule;
|
|
12414
|
+
exports["ɵdh"] = TransactionLineReferenceComponent;
|
|
12415
|
+
exports["ɵdi"] = TransactionLineCommissionCodeModule;
|
|
12416
|
+
exports["ɵdj"] = TransactionLineCommissionCodeComponent;
|
|
12417
|
+
exports["ɵdk"] = TransactionLineWarehouseModule;
|
|
12418
|
+
exports["ɵdl"] = TransactionLineWarehouseComponent;
|
|
12419
|
+
exports["ɵdm"] = TransactionLineDiscountAmountModule;
|
|
12420
|
+
exports["ɵdn"] = TransactionLineDiscountAmountComponent;
|
|
12421
|
+
exports["ɵdo"] = TransactionLineQuantumDiscountModule;
|
|
12422
|
+
exports["ɵdp"] = TransactionLineQuantumDiscountComponent;
|
|
12423
|
+
exports["ɵdq"] = TransactionLineSpecialDiscountModule;
|
|
12424
|
+
exports["ɵdr"] = TransactionLineSpecialDiscountComponent;
|
|
12425
|
+
exports["ɵds"] = TransactionLineSidePanelDefaultComponent;
|
|
12426
|
+
exports["ɵdt"] = TransactionReceivingGoodsHistoryModule;
|
|
12427
|
+
exports["ɵdu"] = TransactionHistoryGridModule;
|
|
12428
|
+
exports["ɵdv"] = TransactionHistoryGridStatusModule;
|
|
12429
|
+
exports["ɵdw"] = TransactionHistoryGridStatusComponent;
|
|
12430
|
+
exports["ɵdx"] = TransactionHistoryGridComponent;
|
|
12431
|
+
exports["ɵdy"] = TransactionReceivingGoodsHistoryComponent;
|
|
12432
|
+
exports["ɵdz"] = TransactionReceivingGoodsDetailsModule;
|
|
12433
|
+
exports["ɵe"] = TransactionConnectorService;
|
|
12434
|
+
exports["ɵea"] = TransactionReceivingGoodsDetailsComponent;
|
|
12435
|
+
exports["ɵeb"] = ArticleService;
|
|
12436
|
+
exports["ɵec"] = TransactionButtonBarModule;
|
|
12437
|
+
exports["ɵed"] = TransactionButtonBarComponent;
|
|
12438
|
+
exports["ɵee"] = TransactionMappingService;
|
|
12439
|
+
exports["ɵef"] = TransactionButtonBarButtonComponent;
|
|
12440
|
+
exports["ɵeg"] = TransactionConfirmationHistoryModule;
|
|
12441
|
+
exports["ɵeh"] = TransactionConfirmationHistoryComponent;
|
|
12442
|
+
exports["ɵei"] = TransactionLineSidePanelPurchaseModule;
|
|
12443
|
+
exports["ɵej"] = TransactionLineSidePanelPurchaseComponent;
|
|
12444
|
+
exports["ɵek"] = TransactionEventService;
|
|
12445
|
+
exports["ɵel"] = TransactionLineSidePanelComponent;
|
|
12446
|
+
exports["ɵem"] = TransactionBaseGridComponent;
|
|
12447
|
+
exports["ɵen"] = TransactionGridBaseComponent;
|
|
12448
|
+
exports["ɵeo"] = TransactionLinesGridComponent;
|
|
12449
|
+
exports["ɵep"] = DiscountModule;
|
|
12450
|
+
exports["ɵeq"] = DiscountComponent;
|
|
12451
|
+
exports["ɵer"] = TransactionQuickAccessOverviewModule;
|
|
12452
|
+
exports["ɵes"] = TransactionQuickAccessOverviewComponent;
|
|
12453
|
+
exports["ɵet"] = TransactionOrderConfirmationGridModule;
|
|
12454
|
+
exports["ɵeu"] = TransactionOrderConfirmationGridComponent;
|
|
12455
|
+
exports["ɵev"] = TransactionReceivedGoodsGridModule;
|
|
12456
|
+
exports["ɵew"] = TransactionReceivedGoodsGridComponent;
|
|
12457
|
+
exports["ɵex"] = ViewModeButtonsModule;
|
|
12458
|
+
exports["ɵey"] = ViewModeButtonsComponent;
|
|
12459
|
+
exports["ɵez"] = TransactionGridModule;
|
|
11233
12460
|
exports["ɵf"] = CollectionCacheService;
|
|
11234
|
-
exports["ɵfa"] =
|
|
11235
|
-
exports["ɵfb"] =
|
|
11236
|
-
exports["ɵfc"] =
|
|
11237
|
-
exports["ɵfd"] =
|
|
11238
|
-
exports["ɵfe"] =
|
|
11239
|
-
exports["ɵff"] =
|
|
11240
|
-
exports["ɵfg"] =
|
|
11241
|
-
exports["ɵfh"] =
|
|
11242
|
-
exports["ɵfi"] =
|
|
11243
|
-
exports["ɵfj"] =
|
|
11244
|
-
exports["ɵfk"] =
|
|
11245
|
-
exports["
|
|
11246
|
-
exports["
|
|
11247
|
-
exports["
|
|
11248
|
-
exports["
|
|
11249
|
-
exports["
|
|
11250
|
-
exports["
|
|
11251
|
-
exports["
|
|
11252
|
-
exports["
|
|
11253
|
-
exports["
|
|
11254
|
-
exports["
|
|
11255
|
-
exports["
|
|
11256
|
-
exports["
|
|
11257
|
-
exports["
|
|
11258
|
-
exports["
|
|
11259
|
-
exports["
|
|
11260
|
-
exports["
|
|
11261
|
-
exports["
|
|
11262
|
-
exports["
|
|
11263
|
-
exports["
|
|
11264
|
-
exports["
|
|
12461
|
+
exports["ɵfa"] = TransactionGridComponent;
|
|
12462
|
+
exports["ɵfb"] = TransactionSearchResultModule;
|
|
12463
|
+
exports["ɵfc"] = TransactionTileModule;
|
|
12464
|
+
exports["ɵfd"] = TransactionTileComponent;
|
|
12465
|
+
exports["ɵfe"] = TransactionSearchGridModule;
|
|
12466
|
+
exports["ɵff"] = TransactionSearchGridComponent;
|
|
12467
|
+
exports["ɵfg"] = TransactionSearchResultComponent;
|
|
12468
|
+
exports["ɵfh"] = TransactionSearchService;
|
|
12469
|
+
exports["ɵfi"] = TransactionFilterModule;
|
|
12470
|
+
exports["ɵfj"] = TransactionFilterCategoriesModule;
|
|
12471
|
+
exports["ɵfk"] = TransactionFilterCategoriesComponent;
|
|
12472
|
+
exports["ɵfl"] = TransactionFilterContentOrderModule;
|
|
12473
|
+
exports["ɵfm"] = TransactionFilterContentOrderComponent;
|
|
12474
|
+
exports["ɵfn"] = FilterRequestService;
|
|
12475
|
+
exports["ɵfo"] = TransactionFilterContentLogisticsModule;
|
|
12476
|
+
exports["ɵfp"] = TransactionFilterHistoricStateModule;
|
|
12477
|
+
exports["ɵfq"] = TransactionFilterHistoricStateComponent;
|
|
12478
|
+
exports["ɵfr"] = TransactionFilterContentLogisticsComponent;
|
|
12479
|
+
exports["ɵfs"] = TransactionFilterContentArticleModule;
|
|
12480
|
+
exports["ɵft"] = TransactionFilterContentArticleComponent;
|
|
12481
|
+
exports["ɵfu"] = TransactionFilterComponent;
|
|
12482
|
+
exports["ɵg"] = ArticleConnectorService;
|
|
12483
|
+
exports["ɵh"] = CoreModule;
|
|
12484
|
+
exports["ɵi"] = ConfirmationDialogModule;
|
|
12485
|
+
exports["ɵj"] = PipeModule;
|
|
12486
|
+
exports["ɵk"] = AppendPipe;
|
|
12487
|
+
exports["ɵl"] = DeliveryTimePipe;
|
|
12488
|
+
exports["ɵm"] = DateDurationPipe;
|
|
12489
|
+
exports["ɵn"] = LocalizePipe;
|
|
12490
|
+
exports["ɵo"] = CoCurrencyPipe;
|
|
12491
|
+
exports["ɵp"] = SafeStylePipe;
|
|
12492
|
+
exports["ɵq"] = SafeHtmlPipe;
|
|
12493
|
+
exports["ɵr"] = ConfirmationDialogComponent;
|
|
12494
|
+
exports["ɵs"] = DialogBaseComponent;
|
|
12495
|
+
exports["ɵt"] = ImageDisplayComponent;
|
|
12496
|
+
exports["ɵu"] = IconComponent;
|
|
12497
|
+
exports["ɵv"] = IconCacheService;
|
|
12498
|
+
exports["ɵw"] = CustomerGroupsComponent;
|
|
12499
|
+
exports["ɵx"] = StockStatusIndicatorComponent;
|
|
12500
|
+
exports["ɵy"] = RelationAddressModule;
|
|
12501
|
+
exports["ɵz"] = RelationAddressComponent;
|
|
11265
12502
|
|
|
11266
12503
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11267
12504
|
|