@colijnit/transaction 12.0.5 → 12.1.3
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/app/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
- package/app/component/core/base/transaction-base.component.d.ts +48 -0
- package/app/component/{shopping-cart → core}/characteristic-answer/characteristic-answer.component.d.ts +0 -0
- package/app/component/core/directive/template-wrapper.directive.d.ts +13 -0
- package/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
- package/app/component/core/warehouse/warehouse.component.d.ts +35 -0
- package/app/component/service-order/ione-service-order-module.d.ts +2 -0
- package/app/component/service-order/ione-service-order.component.d.ts +25 -0
- package/app/component/service-order/service-order.component.d.ts +53 -0
- package/app/component/service-order/summary/transaction-article-summary.component.d.ts +17 -0
- package/app/component/service-order/summary/transaction-delivery-summary.component.d.ts +20 -0
- package/app/component/service-order/summary/transaction-order-summary.component.d.ts +16 -0
- package/app/component/service-order/summary/transaction-payment-info.component.d.ts +14 -0
- package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts +7 -0
- package/app/component/service-order/summary/transaction-product-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-status.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-summary-block.component.d.ts +16 -0
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +24 -0
- package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts +15 -0
- package/app/component/service-order/transaction-manager/transaction-manager.component.d.ts +63 -0
- package/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.d.ts +16 -0
- package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts +25 -0
- package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +6 -0
- package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts +22 -0
- package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts +29 -0
- package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts +11 -0
- package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts +26 -0
- package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +1 -1
- package/app/service/ione-connector-adapter.service.d.ts +1 -0
- package/app/service/transaction-event.service.d.ts +5 -0
- package/app/service/transaction.service.d.ts +19 -8
- package/bundles/colijnit-transaction.umd.js +2396 -63
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +26 -2
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +2 -2
- package/esm2015/app/component/checkout/ione-checkout.module.js +3 -3
- package/esm2015/app/component/common/icon/icon.component.js +2 -1
- package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +39 -0
- package/esm2015/app/component/core/base/transaction-base.component.js +146 -0
- package/esm2015/app/component/core/characteristic-answer/characteristic-answer.component.js +100 -0
- package/esm2015/app/component/core/directive/template-wrapper.directive.js +69 -0
- package/esm2015/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/app/component/core/warehouse/warehouse.component.js +133 -0
- package/esm2015/app/component/service-order/ione-service-order-module.js +108 -0
- package/esm2015/app/component/service-order/ione-service-order.component.js +96 -0
- package/esm2015/app/component/service-order/service-order.component.js +195 -0
- package/esm2015/app/component/service-order/summary/transaction-article-summary.component.js +55 -0
- package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +59 -0
- package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +43 -0
- package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +35 -0
- package/esm2015/app/component/service-order/summary/transaction-product-contract-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-product-summary.component.js +41 -0
- package/esm2015/app/component/service-order/summary/transaction-service-status.component.js +37 -0
- package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-summary-block.component.js +53 -0
- package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +194 -0
- package/esm2015/app/component/service-order/transaction-header-block/transaction-header-block.component.js +83 -0
- package/esm2015/app/component/service-order/transaction-manager/transaction-manager.component.js +305 -0
- package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +76 -0
- package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +71 -0
- package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +36 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-address.component.js +116 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-edit.component.js +225 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.js +172 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.js +120 -0
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +4 -6
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +1 -1
- package/esm2015/app/service/ione-connector-adapter.service.js +24 -6
- package/esm2015/app/service/transaction-event.service.js +4 -1
- package/esm2015/app/service/transaction.service.js +122 -37
- package/esm2015/assets/dictionary/text.properties.js +37 -1
- package/esm2015/colijnit-transaction.js +27 -3
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +2625 -50
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +3 -3
- package/public_api.d.ts +2 -0
- package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +0 -99
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/line-operation-response.bo'), 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/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/utils/array-utils'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/line-operation-status.bo'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), 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/address-type.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/line-operation-response.bo', '@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/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/utils/array-utils', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/line-operation-status.bo', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@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/address-type.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.rxjs, global.options, global.customerFullObject_bo, global.transactionInfoResponse_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.articleFullObject, global.lineOperationResponse_bo, 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.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.arrayUtils, global.setTransactionDeliveryOptionsRequest_bo, global.transactionTotal_bo, global.transactionLineType_enum, global.lineOperationStatus_bo, global.transactionInfo_bo, global.pendingReasonType_enum, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.addressType_enum, global.genderType_enum, global.businessObjectUtils, global.
|
|
5
|
-
})(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, articleFullObject, lineOperationResponse_bo, 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, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/line-operation-response.bo'), 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/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/utils/array-utils'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/line-operation-status.bo'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/corecomponents_v12'), 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/address-type.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/flex-layout'), require('@angular/material/stepper'), require('@angular/common'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/enum/sort-direction'), require('@colijnit/transactionapi/build/enum/sort-type.enum'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@angular/animations'), require('@colijnit/transactionapi/build/model/relation-request'), require('@syncfusion/ej2-angular-splitbuttons'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-navigations'), require('@syncfusion/ej2-angular-navigations'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/line-operation-response.bo', '@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/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/utils/array-utils', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/line-operation-status.bo', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/corecomponents_v12', '@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/address-type.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/flex-layout', '@angular/material/stepper', '@angular/common', '@angular/platform-browser', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/enum/sort-direction', '@colijnit/transactionapi/build/enum/sort-type.enum', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@angular/animations', '@colijnit/transactionapi/build/model/relation-request', '@syncfusion/ej2-angular-splitbuttons', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-navigations', '@syncfusion/ej2-angular-navigations', '@colijnit/transactionapi/build/model/transaction-line-info.bo'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.rxjs, global.options, global.customerFullObject_bo, global.transactionInfoResponse_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.articleFullObject, global.lineOperationResponse_bo, 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.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.arrayUtils, global.setTransactionDeliveryOptionsRequest_bo, global.transactionTotal_bo, global.transactionLineType_enum, global.lineOperationStatus_bo, global.transactionInfo_bo, global.pendingReasonType_enum, global.corecomponents_v12, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.addressType_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.flexLayout, global.ng.material.stepper, global.ng.common, global.ng.platformBrowser, global.resolvePendingReasonRequest_bo, global.sortDirection, global.sortType_enum, global.stockStatus_enum, global.ng.animations, global.relationRequest, global.ej2AngularSplitbuttons, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2Navigations, global.ej2AngularNavigations, global.transactionLineInfo_bo));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, articleFullObject, lineOperationResponse_bo, 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, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, corecomponents_v12, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, flexLayout, stepper, common, platformBrowser, resolvePendingReasonRequest_bo, sortDirection, sortType_enum, stockStatus_enum, animations, relationRequest, ej2AngularSplitbuttons, ej2AngularButtons, ej2AngularDropdowns, ej2Navigations, ej2AngularNavigations, transactionLineInfo_bo) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -1187,14 +1187,19 @@
|
|
|
1187
1187
|
return new Promise(function (resolve, reject) {
|
|
1188
1188
|
return _this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then(function (result) {
|
|
1189
1189
|
if (result.validationResult && result.validationResult.success) {
|
|
1190
|
-
if (result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
|
|
1190
|
+
if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
|
|
1191
1191
|
return resolve(imageUtils.ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
|
|
1192
1192
|
}
|
|
1193
1193
|
else {
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1194
|
+
if (result.resultObject) {
|
|
1195
|
+
if (includeMimetype) {
|
|
1196
|
+
return resolve(imageUtils.ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
|
|
1197
|
+
}
|
|
1198
|
+
return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
|
|
1199
|
+
}
|
|
1200
|
+
else {
|
|
1201
|
+
reject(result.validationMessagesAsString);
|
|
1196
1202
|
}
|
|
1197
|
-
return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
|
|
1198
1203
|
}
|
|
1199
1204
|
}
|
|
1200
1205
|
else {
|
|
@@ -1312,6 +1317,19 @@
|
|
|
1312
1317
|
});
|
|
1313
1318
|
});
|
|
1314
1319
|
};
|
|
1320
|
+
IOneConnectorAdapterService.prototype.getTransactionById = function (transactionId) {
|
|
1321
|
+
var _this = this;
|
|
1322
|
+
return new Promise(function (resolve, reject) {
|
|
1323
|
+
return _this.connector.getTransactionById(transactionId).then(function (result) {
|
|
1324
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1325
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
1326
|
+
}
|
|
1327
|
+
else {
|
|
1328
|
+
reject(result.validationMessagesAsString);
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1315
1333
|
IOneConnectorAdapterService.prototype.saveTransaction = function (uuid) {
|
|
1316
1334
|
var _this = this;
|
|
1317
1335
|
return new Promise(function (resolve, reject) {
|
|
@@ -1503,7 +1521,7 @@
|
|
|
1503
1521
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1504
1522
|
return _this.connector.getRelationListObjects(relationRequest).then(function (result) {
|
|
1505
1523
|
if (result.validationResult && result.validationResult.success) {
|
|
1506
|
-
resolve(result.resultObjects);
|
|
1524
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects));
|
|
1507
1525
|
}
|
|
1508
1526
|
else {
|
|
1509
1527
|
reject(result.validationMessagesAsString);
|
|
@@ -1711,9 +1729,11 @@
|
|
|
1711
1729
|
IOneConnectorAdapterService.ctorParameters = function () { return []; };
|
|
1712
1730
|
|
|
1713
1731
|
var TransactionService = /** @class */ (function () {
|
|
1714
|
-
function TransactionService(_connector) {
|
|
1732
|
+
function TransactionService(_connector, _prompt) {
|
|
1715
1733
|
this._connector = _connector;
|
|
1734
|
+
this._prompt = _prompt;
|
|
1716
1735
|
this.transactionUpdated = new i0.EventEmitter();
|
|
1736
|
+
this.transactionLoaded = new i0.EventEmitter();
|
|
1717
1737
|
this.applicationUser = false;
|
|
1718
1738
|
this.articleAmount = 0;
|
|
1719
1739
|
this._currentLines = [];
|
|
@@ -1781,6 +1801,11 @@
|
|
|
1781
1801
|
enumerable: false,
|
|
1782
1802
|
configurable: true
|
|
1783
1803
|
});
|
|
1804
|
+
TransactionService.prototype.pendingLineOperationStatus = function (lineOperationStatuses) {
|
|
1805
|
+
var status = lineOperationStatuses.find(function (line) { return line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NONE
|
|
1806
|
+
&& line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION; });
|
|
1807
|
+
return status;
|
|
1808
|
+
};
|
|
1784
1809
|
TransactionService.prototype.getArticleFullObject = function (goodId) {
|
|
1785
1810
|
return __awaiter(this, void 0, void 0, function () {
|
|
1786
1811
|
return __generator(this, function (_a) {
|
|
@@ -1954,13 +1979,13 @@
|
|
|
1954
1979
|
});
|
|
1955
1980
|
});
|
|
1956
1981
|
};
|
|
1957
|
-
TransactionService.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
1982
|
+
TransactionService.prototype.resolvePendingLineReason = function (pendingLineValues, remember) {
|
|
1958
1983
|
var _this = this;
|
|
1984
|
+
if (remember === void 0) { remember = true; }
|
|
1959
1985
|
return new Promise(function (resolve) {
|
|
1960
1986
|
_this._connector.resolvePendingLineReason(pendingLineValues).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1961
1987
|
return __generator(this, function (_a) {
|
|
1962
|
-
this.
|
|
1963
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
1988
|
+
this._rememberResponse(remember, response);
|
|
1964
1989
|
resolve(response);
|
|
1965
1990
|
return [2 /*return*/];
|
|
1966
1991
|
});
|
|
@@ -1985,8 +2010,29 @@
|
|
|
1985
2010
|
_this._connector.getTransactionByNrAndKind(kind, transactionNr)
|
|
1986
2011
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1987
2012
|
return __generator(this, function (_a) {
|
|
1988
|
-
this._rememberCurrentTransaction(response);
|
|
1989
2013
|
if (response.isSuccess) {
|
|
2014
|
+
this.transactionLoaded.emit(response);
|
|
2015
|
+
resolve(true);
|
|
2016
|
+
}
|
|
2017
|
+
else {
|
|
2018
|
+
reject(false);
|
|
2019
|
+
}
|
|
2020
|
+
return [2 /*return*/];
|
|
2021
|
+
});
|
|
2022
|
+
}); })
|
|
2023
|
+
.catch(function (reason) {
|
|
2024
|
+
reject(false);
|
|
2025
|
+
});
|
|
2026
|
+
});
|
|
2027
|
+
};
|
|
2028
|
+
TransactionService.prototype.getTransactionById = function (transactionId) {
|
|
2029
|
+
var _this = this;
|
|
2030
|
+
return new Promise(function (resolve, reject) {
|
|
2031
|
+
_this._connector.getTransactionById(transactionId)
|
|
2032
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2033
|
+
return __generator(this, function (_a) {
|
|
2034
|
+
if (response.isSuccess) {
|
|
2035
|
+
this.transactionLoaded.emit(response);
|
|
1990
2036
|
resolve(true);
|
|
1991
2037
|
}
|
|
1992
2038
|
else {
|
|
@@ -2017,6 +2063,34 @@
|
|
|
2017
2063
|
});
|
|
2018
2064
|
});
|
|
2019
2065
|
};
|
|
2066
|
+
TransactionService.prototype.saveTransactionByUuid = function (transactionUuid) {
|
|
2067
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2068
|
+
var _this = this;
|
|
2069
|
+
return __generator(this, function (_a) {
|
|
2070
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2071
|
+
_this._connector.saveTransaction(transactionUuid)
|
|
2072
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2073
|
+
return __generator(this, function (_a) {
|
|
2074
|
+
if (response.isSuccess) {
|
|
2075
|
+
this.transactionLoaded.emit(response);
|
|
2076
|
+
resolve(true);
|
|
2077
|
+
}
|
|
2078
|
+
else {
|
|
2079
|
+
reject(false);
|
|
2080
|
+
}
|
|
2081
|
+
return [2 /*return*/];
|
|
2082
|
+
});
|
|
2083
|
+
}); })
|
|
2084
|
+
.catch(function (reason) {
|
|
2085
|
+
if (reason) {
|
|
2086
|
+
_this._prompt.showError(reason.getFullErrorString());
|
|
2087
|
+
}
|
|
2088
|
+
reject(false);
|
|
2089
|
+
});
|
|
2090
|
+
})];
|
|
2091
|
+
});
|
|
2092
|
+
});
|
|
2093
|
+
};
|
|
2020
2094
|
TransactionService.prototype.addRelationToTransaction = function (relationId) {
|
|
2021
2095
|
return __awaiter(this, void 0, void 0, function () {
|
|
2022
2096
|
var success;
|
|
@@ -2157,21 +2231,38 @@
|
|
|
2157
2231
|
});
|
|
2158
2232
|
};
|
|
2159
2233
|
TransactionService.prototype.retrieveLineImage = function (line) {
|
|
2234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2235
|
+
return __generator(this, function (_a) {
|
|
2236
|
+
switch (_a.label) {
|
|
2237
|
+
case 0: return [4 /*yield*/, this.getArticleImageByArticleNumber(line.articleNumber)];
|
|
2238
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2239
|
+
}
|
|
2240
|
+
});
|
|
2241
|
+
});
|
|
2242
|
+
};
|
|
2243
|
+
TransactionService.prototype.getArticleImageByArticleNumber = function (articleNumber) {
|
|
2160
2244
|
return __awaiter(this, void 0, void 0, function () {
|
|
2161
2245
|
var goodId;
|
|
2162
2246
|
return __generator(this, function (_a) {
|
|
2163
2247
|
switch (_a.label) {
|
|
2164
|
-
case 0: return [4 /*yield*/, this._connector.getGoodIdFromArticleNr(
|
|
2248
|
+
case 0: return [4 /*yield*/, this._connector.getGoodIdFromArticleNr(articleNumber)];
|
|
2165
2249
|
case 1:
|
|
2166
2250
|
goodId = _a.sent();
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2251
|
+
return [2 /*return*/, this.getArticleImageByGoodId(goodId)];
|
|
2252
|
+
}
|
|
2253
|
+
});
|
|
2254
|
+
});
|
|
2255
|
+
};
|
|
2256
|
+
TransactionService.prototype.getArticleImageByGoodId = function (goodId) {
|
|
2257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2258
|
+
return __generator(this, function (_a) {
|
|
2259
|
+
if (!isNaN(goodId)) {
|
|
2260
|
+
return [2 /*return*/, this._connector.getSingleImage(goodId, 1, true, true)];
|
|
2261
|
+
}
|
|
2262
|
+
else {
|
|
2263
|
+
return [2 /*return*/, ""];
|
|
2174
2264
|
}
|
|
2265
|
+
return [2 /*return*/];
|
|
2175
2266
|
});
|
|
2176
2267
|
});
|
|
2177
2268
|
};
|
|
@@ -2202,7 +2293,37 @@
|
|
|
2202
2293
|
});
|
|
2203
2294
|
});
|
|
2204
2295
|
};
|
|
2205
|
-
TransactionService.prototype.
|
|
2296
|
+
TransactionService.prototype.addArticleToTransaction = function (transactionUuid, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
|
|
2297
|
+
if (amount === void 0) { amount = 1; }
|
|
2298
|
+
if (warehouseNo === void 0) { warehouseNo = 1; }
|
|
2299
|
+
if (commissionCode === void 0) { commissionCode = "2"; }
|
|
2300
|
+
if (isReturn === void 0) { isReturn = false; }
|
|
2301
|
+
if (aboveLineNr === void 0) { aboveLineNr = 0; }
|
|
2302
|
+
if (belowLineNr === void 0) { belowLineNr = 0; }
|
|
2303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2304
|
+
var _this = this;
|
|
2305
|
+
return __generator(this, function (_a) {
|
|
2306
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2307
|
+
_this._connector.addTransactionLine(transactionUuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
|
|
2308
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2309
|
+
return __generator(this, function (_a) {
|
|
2310
|
+
resolve(response);
|
|
2311
|
+
return [2 /*return*/];
|
|
2312
|
+
});
|
|
2313
|
+
}); }, function (error) {
|
|
2314
|
+
_this._prompt.showError(error);
|
|
2315
|
+
reject(error);
|
|
2316
|
+
})
|
|
2317
|
+
.catch(function (reason) {
|
|
2318
|
+
_this._prompt.showError(reason.getFullErrorString());
|
|
2319
|
+
resolve(null);
|
|
2320
|
+
});
|
|
2321
|
+
})];
|
|
2322
|
+
});
|
|
2323
|
+
});
|
|
2324
|
+
};
|
|
2325
|
+
TransactionService.prototype.addTransactionLine = function (lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr, remember) {
|
|
2326
|
+
if (remember === void 0) { remember = true; }
|
|
2206
2327
|
return __awaiter(this, void 0, void 0, function () {
|
|
2207
2328
|
var _this = this;
|
|
2208
2329
|
return __generator(this, function (_a) {
|
|
@@ -2210,8 +2331,7 @@
|
|
|
2210
2331
|
_this._connector.addTransactionLine(_this.currentTransaction.uuid, lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
|
|
2211
2332
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2212
2333
|
return __generator(this, function (_a) {
|
|
2213
|
-
this.
|
|
2214
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
2334
|
+
this._rememberResponse(remember, response);
|
|
2215
2335
|
resolve(response);
|
|
2216
2336
|
return [2 /*return*/];
|
|
2217
2337
|
});
|
|
@@ -2225,7 +2345,8 @@
|
|
|
2225
2345
|
});
|
|
2226
2346
|
});
|
|
2227
2347
|
};
|
|
2228
|
-
TransactionService.prototype.addTextLineToTransaction = function (showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
2348
|
+
TransactionService.prototype.addTextLineToTransaction = function (showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr, remember) {
|
|
2349
|
+
if (remember === void 0) { remember = true; }
|
|
2229
2350
|
return __awaiter(this, void 0, void 0, function () {
|
|
2230
2351
|
var _this = this;
|
|
2231
2352
|
return __generator(this, function (_a) {
|
|
@@ -2233,8 +2354,7 @@
|
|
|
2233
2354
|
_this._connector.addTextLineToTransaction(_this.currentTransaction.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
|
|
2234
2355
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2235
2356
|
return __generator(this, function (_a) {
|
|
2236
|
-
this.
|
|
2237
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
2357
|
+
this._rememberResponse(remember, response);
|
|
2238
2358
|
resolve(response);
|
|
2239
2359
|
return [2 /*return*/];
|
|
2240
2360
|
});
|
|
@@ -2248,14 +2368,14 @@
|
|
|
2248
2368
|
});
|
|
2249
2369
|
});
|
|
2250
2370
|
};
|
|
2251
|
-
TransactionService.prototype.changeLineSequence = function (lineUuid, aboveLineNr, belowLineNr) {
|
|
2371
|
+
TransactionService.prototype.changeLineSequence = function (lineUuid, aboveLineNr, belowLineNr, remember) {
|
|
2252
2372
|
var _this = this;
|
|
2373
|
+
if (remember === void 0) { remember = true; }
|
|
2253
2374
|
return new Promise(function (resolve, reject) {
|
|
2254
2375
|
_this._connector.changeLineSequence(_this.currentTransaction.uuid, lineUuid, aboveLineNr, belowLineNr)
|
|
2255
2376
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2256
2377
|
return __generator(this, function (_a) {
|
|
2257
|
-
this.
|
|
2258
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
2378
|
+
this._rememberResponse(remember, response);
|
|
2259
2379
|
resolve(response);
|
|
2260
2380
|
return [2 /*return*/];
|
|
2261
2381
|
});
|
|
@@ -2267,7 +2387,8 @@
|
|
|
2267
2387
|
});
|
|
2268
2388
|
});
|
|
2269
2389
|
};
|
|
2270
|
-
TransactionService.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
2390
|
+
TransactionService.prototype.cancelAddTransactionLine = function (lineUuid, remember) {
|
|
2391
|
+
if (remember === void 0) { remember = true; }
|
|
2271
2392
|
return __awaiter(this, void 0, void 0, function () {
|
|
2272
2393
|
var _this = this;
|
|
2273
2394
|
return __generator(this, function (_a) {
|
|
@@ -2275,7 +2396,9 @@
|
|
|
2275
2396
|
_this._connector.cancelAddTransactionLine(lineUuid)
|
|
2276
2397
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2277
2398
|
return __generator(this, function (_a) {
|
|
2278
|
-
|
|
2399
|
+
if (remember) {
|
|
2400
|
+
this._rememberCurrentTransaction(response);
|
|
2401
|
+
}
|
|
2279
2402
|
if (response.isSuccess) {
|
|
2280
2403
|
resolve(response);
|
|
2281
2404
|
}
|
|
@@ -2292,7 +2415,8 @@
|
|
|
2292
2415
|
});
|
|
2293
2416
|
});
|
|
2294
2417
|
};
|
|
2295
|
-
TransactionService.prototype.deleteTransactionLine = function (transactionUuid, TransactionLineUuid) {
|
|
2418
|
+
TransactionService.prototype.deleteTransactionLine = function (transactionUuid, TransactionLineUuid, remember) {
|
|
2419
|
+
if (remember === void 0) { remember = true; }
|
|
2296
2420
|
return __awaiter(this, void 0, void 0, function () {
|
|
2297
2421
|
var _this = this;
|
|
2298
2422
|
return __generator(this, function (_a) {
|
|
@@ -2300,8 +2424,7 @@
|
|
|
2300
2424
|
_this._connector.deleteTransactionLine(transactionUuid, TransactionLineUuid)
|
|
2301
2425
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2302
2426
|
return __generator(this, function (_a) {
|
|
2303
|
-
this.
|
|
2304
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
2427
|
+
this._rememberResponse(remember, response);
|
|
2305
2428
|
if (response.isSuccess) {
|
|
2306
2429
|
resolve(response);
|
|
2307
2430
|
}
|
|
@@ -2318,7 +2441,8 @@
|
|
|
2318
2441
|
});
|
|
2319
2442
|
});
|
|
2320
2443
|
};
|
|
2321
|
-
TransactionService.prototype.changeTransactionLineQuantity = function (lineUuid, newQuantity) {
|
|
2444
|
+
TransactionService.prototype.changeTransactionLineQuantity = function (lineUuid, newQuantity, remember) {
|
|
2445
|
+
if (remember === void 0) { remember = true; }
|
|
2322
2446
|
return __awaiter(this, void 0, void 0, function () {
|
|
2323
2447
|
var _this = this;
|
|
2324
2448
|
return __generator(this, function (_a) {
|
|
@@ -2327,8 +2451,7 @@
|
|
|
2327
2451
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2328
2452
|
return __generator(this, function (_a) {
|
|
2329
2453
|
if (response.isSuccess) {
|
|
2330
|
-
this.
|
|
2331
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
2454
|
+
this._rememberResponse(remember, response);
|
|
2332
2455
|
}
|
|
2333
2456
|
resolve(response);
|
|
2334
2457
|
return [2 /*return*/];
|
|
@@ -2358,6 +2481,22 @@
|
|
|
2358
2481
|
});
|
|
2359
2482
|
});
|
|
2360
2483
|
};
|
|
2484
|
+
TransactionService.prototype.getCustomerFulObjectByRelationId = function (relationId) {
|
|
2485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2486
|
+
var relationNr;
|
|
2487
|
+
return __generator(this, function (_a) {
|
|
2488
|
+
switch (_a.label) {
|
|
2489
|
+
case 0: return [4 /*yield*/, this._connector.getRelationNumber(relationId)];
|
|
2490
|
+
case 1:
|
|
2491
|
+
relationNr = _a.sent();
|
|
2492
|
+
if (!relationNr) return [3 /*break*/, 3];
|
|
2493
|
+
return [4 /*yield*/, this._connector.getCustomerFullObject(Number(relationNr))];
|
|
2494
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2495
|
+
case 3: return [2 /*return*/, nulRelationObject.NULL_CUSTOMER_FULL_OBJECT];
|
|
2496
|
+
}
|
|
2497
|
+
});
|
|
2498
|
+
});
|
|
2499
|
+
};
|
|
2361
2500
|
// public async setRelationByUser(username: string, password: string): Promise<boolean> {
|
|
2362
2501
|
// const response: boolean = await this._connector.setRelationByUser(this.currentTransaction.uuid, username, password);
|
|
2363
2502
|
// return response;
|
|
@@ -2368,13 +2507,23 @@
|
|
|
2368
2507
|
}
|
|
2369
2508
|
};
|
|
2370
2509
|
TransactionService.prototype._rememberCurrentTransaction = function (value) {
|
|
2371
|
-
this
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2510
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2511
|
+
return __generator(this, function (_a) {
|
|
2512
|
+
switch (_a.label) {
|
|
2513
|
+
case 0:
|
|
2514
|
+
this._currentTransaction = value.transactionInfo;
|
|
2515
|
+
this._initializeTransaction();
|
|
2516
|
+
this.currentLines = value.transactionLines;
|
|
2517
|
+
this.currentTotals = value.transactionTotal;
|
|
2518
|
+
this.currentLineOperationStatuses = value.lineOperationStatuses;
|
|
2519
|
+
return [4 /*yield*/, this._updateRelation()];
|
|
2520
|
+
case 1:
|
|
2521
|
+
_a.sent();
|
|
2522
|
+
this.transactionUpdated.emit();
|
|
2523
|
+
return [2 /*return*/];
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
});
|
|
2378
2527
|
};
|
|
2379
2528
|
TransactionService.prototype._rememberCurrentTransactionLineStatus = function (value) {
|
|
2380
2529
|
// this._currentLineOperationStatus.uuid = value.lineUuid;
|
|
@@ -2383,22 +2532,18 @@
|
|
|
2383
2532
|
};
|
|
2384
2533
|
TransactionService.prototype._updateRelation = function () {
|
|
2385
2534
|
return __awaiter(this, void 0, void 0, function () {
|
|
2386
|
-
var
|
|
2535
|
+
var _a;
|
|
2387
2536
|
return __generator(this, function (_b) {
|
|
2388
2537
|
switch (_b.label) {
|
|
2389
2538
|
case 0:
|
|
2390
|
-
if (!(this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId)) return [3 /*break*/,
|
|
2391
|
-
if (!(!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId)) return [3 /*break*/,
|
|
2392
|
-
return [4 /*yield*/, this._connector.getRelationNumber(this.currentTransaction.relation.relationId)];
|
|
2393
|
-
case 1:
|
|
2394
|
-
relationNr = _b.sent();
|
|
2395
|
-
if (!relationNr) return [3 /*break*/, 3];
|
|
2539
|
+
if (!(this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId)) return [3 /*break*/, 2];
|
|
2540
|
+
if (!(!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId)) return [3 /*break*/, 2];
|
|
2396
2541
|
_a = this;
|
|
2397
|
-
return [4 /*yield*/, this.
|
|
2398
|
-
case
|
|
2542
|
+
return [4 /*yield*/, this.getCustomerFulObjectByRelationId(this.currentTransaction.relation.relationId)];
|
|
2543
|
+
case 1:
|
|
2399
2544
|
_a._currentRelation = _b.sent();
|
|
2400
|
-
_b.label =
|
|
2401
|
-
case
|
|
2545
|
+
_b.label = 2;
|
|
2546
|
+
case 2: return [2 /*return*/];
|
|
2402
2547
|
}
|
|
2403
2548
|
});
|
|
2404
2549
|
});
|
|
@@ -2420,13 +2565,20 @@
|
|
|
2420
2565
|
transactionDeliveryOptionsRequest.invoiceAddress = this._currentTransaction.invoiceAddress.nawNr;
|
|
2421
2566
|
return transactionDeliveryOptionsRequest;
|
|
2422
2567
|
};
|
|
2568
|
+
TransactionService.prototype._rememberResponse = function (remember, response) {
|
|
2569
|
+
if (remember) {
|
|
2570
|
+
this._rememberCurrentTransaction(response);
|
|
2571
|
+
this._rememberCurrentTransactionLineStatus(response);
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2423
2574
|
return TransactionService;
|
|
2424
2575
|
}());
|
|
2425
2576
|
TransactionService.decorators = [
|
|
2426
2577
|
{ type: i0.Injectable }
|
|
2427
2578
|
];
|
|
2428
2579
|
TransactionService.ctorParameters = function () { return [
|
|
2429
|
-
{ type: IOneConnectorAdapterService }
|
|
2580
|
+
{ type: IOneConnectorAdapterService },
|
|
2581
|
+
{ type: corecomponents_v12.PromptService }
|
|
2430
2582
|
]; };
|
|
2431
2583
|
|
|
2432
2584
|
var LanguageCode;
|
|
@@ -2527,8 +2679,10 @@
|
|
|
2527
2679
|
"ADDRESS_CHANGE": "Adres wijzigen",
|
|
2528
2680
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Controleer magazijn en commissiecode",
|
|
2529
2681
|
"ARTICLE": "Artikel",
|
|
2682
|
+
"ARTICLE_DESCRIPTION": "Artikelomschrijving",
|
|
2530
2683
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
2531
2684
|
"ARTICLE_NR": "Artikelnummer",
|
|
2685
|
+
"ARTICLE_UNKNOWN": "Onbekend artikel",
|
|
2532
2686
|
"ASSEMBLY_COSTS": "Montagekosten",
|
|
2533
2687
|
"ASSEMBLY_DATE": "Montagedatum",
|
|
2534
2688
|
"AMOUNT": "Aantal",
|
|
@@ -2567,12 +2721,15 @@
|
|
|
2567
2721
|
"DELIVERY_OPTARTICLE_NRIONS": "Bezorgopties",
|
|
2568
2722
|
"DELIVERY_TIME_PERIOD": "Levertijd",
|
|
2569
2723
|
"DESCRIPTION": "Omschrijving",
|
|
2724
|
+
"DETAILS": "Details",
|
|
2570
2725
|
"DISCOUNT": "Korting",
|
|
2571
2726
|
"DISCOUNT_AMOUNT": "Kortingsbedrag",
|
|
2572
2727
|
"DISCOUNT_PERCENTAGE": "Kortings %",
|
|
2573
2728
|
"DROPSHIPMENT": "Dropshipment",
|
|
2574
2729
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2575
2730
|
"EXISTING_CUSTOMERS": "Bestaande klanten",
|
|
2731
|
+
"EXPECTED_DELIVERY_DATE": "Verwachte bezorgdatum",
|
|
2732
|
+
"EXPECTED_DELIVERY_WEEK": "Verwachte leverweek",
|
|
2576
2733
|
"FEMALE": "Vrouw",
|
|
2577
2734
|
"FIRST_NAME": "Voornaam",
|
|
2578
2735
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
@@ -2599,11 +2756,14 @@
|
|
|
2599
2756
|
"NUMBER": "Aantal",
|
|
2600
2757
|
"ON_DATE": "Op datum",
|
|
2601
2758
|
"OPEN_SHOPPING_CART": "Open winkelwagen",
|
|
2759
|
+
"ORDER_DATE": "Orderdatum",
|
|
2602
2760
|
"ORDER_GROSS": "Ordertotaal bruto",
|
|
2603
2761
|
"ORDER_NET": "Ordertotaal netto",
|
|
2762
|
+
"ORDER_NUMBER": "Ordernummer",
|
|
2604
2763
|
"ORDER_TYPE": "Type bestelling",
|
|
2605
2764
|
"OVERVIEW": "Overzicht",
|
|
2606
2765
|
"OWN_REFERENCE": "Eigen referentie",
|
|
2766
|
+
"PAID_DOWN2": "Aanbetaald",
|
|
2607
2767
|
"PART_DELIVERIES": "Deelleveringen",
|
|
2608
2768
|
"PASSWORD": "Wachtwoord",
|
|
2609
2769
|
"PAYMENT": "Betaling",
|
|
@@ -2616,6 +2776,8 @@
|
|
|
2616
2776
|
"PRICE_LIST": "Prijslijst",
|
|
2617
2777
|
"PRIVACY_PREFERENCES": "Privacyvoorkeuren",
|
|
2618
2778
|
"PRIVATE_PERSON": "Particulier",
|
|
2779
|
+
"PRODUCT": "Product",
|
|
2780
|
+
"PRODUCT_TYPE": "Productsoort",
|
|
2619
2781
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Het aantal mag geen 0 zijn.",
|
|
2620
2782
|
"QUANTITY_CANNOT_BE_LESS_THAN_DELIVERED": "Het aantal moet gelijk zijn aan het geleverde aantal",
|
|
2621
2783
|
"QUANTITY_CANNOT_BE_MORE_THAN_DELIVERED": "Het aantal moet gelijk zijn aan het geleverde aantal",
|
|
@@ -2631,6 +2793,9 @@
|
|
|
2631
2793
|
"SALUTATION": "Aanhef",
|
|
2632
2794
|
"SAVE": "Opslaan",
|
|
2633
2795
|
"SELECT": "Selecteren",
|
|
2796
|
+
"SERVICE_NUMBER": "Servicenummer",
|
|
2797
|
+
"SERVICE_REQUEST_DATE": "Datum aanvraag",
|
|
2798
|
+
"SERVICE_STATE": "Service status",
|
|
2634
2799
|
"SHOPPING_CART": "Winkelwagen",
|
|
2635
2800
|
"SHOPPING_CART_CHECKOUT": "Bestellen",
|
|
2636
2801
|
"SHOPPING_CART_OVERVIEW": "Overzicht van uw bestelling",
|
|
@@ -2642,17 +2807,22 @@
|
|
|
2642
2807
|
"SUBTOTAL": "Subtotaal",
|
|
2643
2808
|
"SUGGESTIONS": "Suggesties",
|
|
2644
2809
|
"SURCHARGE_AMOUNT": "Toeslag",
|
|
2810
|
+
"STATE": "Status",
|
|
2645
2811
|
"STREET": "Straatnaam",
|
|
2812
|
+
"TOTAL_AMOUNT": "Totaalbedrag",
|
|
2646
2813
|
"TOTAL_GROSS": "Totaal bruto",
|
|
2647
2814
|
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
2648
2815
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
2649
2816
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
2650
2817
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
2818
|
+
"TRANSACTION_SUM_I": "Ordertotaal incl. BTW",
|
|
2651
2819
|
"TRANSACTION_TOTAL": "Transactie totaal",
|
|
2652
2820
|
"UNKNOWN": "Onbekend",
|
|
2653
2821
|
"UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
|
|
2654
2822
|
"VAT": "Btw",
|
|
2823
|
+
"VAT_AMOUNT": "BTW-bedrag",
|
|
2655
2824
|
"VALUE": "Waarde",
|
|
2825
|
+
"WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
|
|
2656
2826
|
"WAREHOUSE": "Magazijn",
|
|
2657
2827
|
"YOUR_DATA": "Uw gegevens",
|
|
2658
2828
|
},
|
|
@@ -2672,8 +2842,10 @@
|
|
|
2672
2842
|
"ADDRESS_CHANGE": "Change address",
|
|
2673
2843
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Check warehouse and commissioncode",
|
|
2674
2844
|
"ARTICLE": "Article",
|
|
2845
|
+
"ARTICLE_DESCRIPTION": "Article description",
|
|
2675
2846
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
2676
2847
|
"ARTICLE_NR": "Article number",
|
|
2848
|
+
"ARTICLE_UNKNOWN": "Article unknown",
|
|
2677
2849
|
"ASSEMBLY_COSTS": "Assembly costs",
|
|
2678
2850
|
"ASSEMBLY_DATE": "Assembly date",
|
|
2679
2851
|
"AMOUNT": "Amount",
|
|
@@ -2712,12 +2884,15 @@
|
|
|
2712
2884
|
"DELIVERY_OPTARTICLE_NRIONS": "Delivery options",
|
|
2713
2885
|
"DELIVERY_TIME_PERIOD": "Delivery time period",
|
|
2714
2886
|
"DESCRIPTION": "Description",
|
|
2887
|
+
"DETAILS": "Details",
|
|
2715
2888
|
"DISCOUNT": "Discount",
|
|
2716
2889
|
"DISCOUNT_AMOUNT": "Discount amount",
|
|
2717
2890
|
"DISCOUNT_PERCENTAGE": "Discount %",
|
|
2718
2891
|
"DROPSHIPMENT": "Dropshipment",
|
|
2719
2892
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2720
2893
|
"EXISTING_CUSTOMERS": "Existing customers",
|
|
2894
|
+
"EXPECTED_DELIVERY_DATE": "Expected delivery date",
|
|
2895
|
+
"EXPECTED_DELIVERY_WEEK": "Expected delivery week",
|
|
2721
2896
|
"FEMALE": "Female",
|
|
2722
2897
|
"FIRST_NAME": "First name",
|
|
2723
2898
|
"GOOD_DESCRIPTION": "Article description",
|
|
@@ -2744,11 +2919,14 @@
|
|
|
2744
2919
|
"NUMBER": "Amount",
|
|
2745
2920
|
"ON_DATE": "On date",
|
|
2746
2921
|
"OPEN_SHOPPING_CART": "Open shopping cart",
|
|
2922
|
+
"ORDER_DATE": "Order date",
|
|
2747
2923
|
"ORDER_GROSS": "Total gross amount",
|
|
2748
2924
|
"ORDER_NET": "Total net amount",
|
|
2925
|
+
"ORDER_NUMBER": "Order number",
|
|
2749
2926
|
"ORDER_TYPE": "Order type",
|
|
2750
2927
|
"OVERVIEW": "Overview",
|
|
2751
2928
|
"OWN_REFERENCE": "Own reference",
|
|
2929
|
+
"PAID_DOWN2": "Prepaid",
|
|
2752
2930
|
"PART_DELIVERIES": "Partial deliveries",
|
|
2753
2931
|
"PASSWORD": "Password",
|
|
2754
2932
|
"PAYMENT": "Payment",
|
|
@@ -2761,6 +2939,8 @@
|
|
|
2761
2939
|
"PRICE_LIST": "Pricelist",
|
|
2762
2940
|
"PRIVACY_PREFERENCES": "Privacy preferences",
|
|
2763
2941
|
"PRIVATE_PERSON": "Private",
|
|
2942
|
+
"PRODUCT": "Product",
|
|
2943
|
+
"PRODUCT_TYPE": "Product type",
|
|
2764
2944
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Quantity cannot be zero or empty",
|
|
2765
2945
|
"QUANTUM_DISCOUNT": "Quantum discount",
|
|
2766
2946
|
"REFERENCE_RELATION": "Ref. relation",
|
|
@@ -2768,6 +2948,9 @@
|
|
|
2768
2948
|
"SALUTATION": "Salutation",
|
|
2769
2949
|
"SAVE": "Save",
|
|
2770
2950
|
"SELECT": "Select",
|
|
2951
|
+
"SERVICE_NUMBER": "Service number",
|
|
2952
|
+
"SERVICE_REQUEST_DATE": "Service request data",
|
|
2953
|
+
"SERVICE_STATE": "Service state",
|
|
2771
2954
|
"SHOPPING_CART": "Shopping cart",
|
|
2772
2955
|
"SHOPPING_CART_CHECKOUT": "Checkout",
|
|
2773
2956
|
"SHOPPING_CART_OVERVIEW": "Order overview",
|
|
@@ -2779,18 +2962,23 @@
|
|
|
2779
2962
|
"SUBTOTAL": "Subtotal",
|
|
2780
2963
|
"SUGGESTIONS": "Suggestions",
|
|
2781
2964
|
"SURCHARGE_AMOUNT": "Surcharge",
|
|
2965
|
+
"STATE": "STATUS",
|
|
2782
2966
|
"STREET": "Streetname",
|
|
2967
|
+
"TOTAL_AMOUNT": "Total amount",
|
|
2783
2968
|
"TOTAL_GROSS": "Gross total",
|
|
2784
2969
|
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
2785
2970
|
"TRANSACTION_DISCOUNT": "Total transaction discount",
|
|
2786
2971
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. discount",
|
|
2787
2972
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
2973
|
+
"TRANSACTION_SUM_I": "Ordertotal incl VAT",
|
|
2788
2974
|
"TRANSACTION_TOTAL": "Transaction total",
|
|
2789
2975
|
"UNKNOWN": "unknown",
|
|
2790
2976
|
"UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
|
|
2791
2977
|
"VALUE": "Value",
|
|
2792
2978
|
"VAT": "VAT",
|
|
2979
|
+
"VAT_AMOUNT": "VAT amount",
|
|
2793
2980
|
"WAREHOUSE": "Warehouse",
|
|
2981
|
+
"WHERE_ARE_YOU_LOOKING_FOR": "Where are you looking for?",
|
|
2794
2982
|
"YOUR_DATA": "Your data",
|
|
2795
2983
|
},
|
|
2796
2984
|
};
|
|
@@ -2889,6 +3077,9 @@
|
|
|
2889
3077
|
this.addArticleLineAt = new rxjs.Subject();
|
|
2890
3078
|
this.addTextLineAt = new rxjs.Subject();
|
|
2891
3079
|
this.changeLineSequence = new rxjs.Subject();
|
|
3080
|
+
this.transactionLineClicked = new rxjs.Subject();
|
|
3081
|
+
this.rightSidebarClose = new rxjs.Subject();
|
|
3082
|
+
this.scrollContent = new rxjs.Subject();
|
|
2892
3083
|
}
|
|
2893
3084
|
return TransactionEventService;
|
|
2894
3085
|
}());
|
|
@@ -3634,7 +3825,7 @@
|
|
|
3634
3825
|
CheckoutOverviewComponent.decorators = [
|
|
3635
3826
|
{ type: i0.Component, args: [{
|
|
3636
3827
|
selector: "checkout-overview",
|
|
3637
|
-
template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep
|
|
3828
|
+
template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep === steps.Relation && editMode\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onRelationValid()\"\n (invalidSubmit)=\"onRelationInvalid()\"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr=\"3\" label=\"DELIVERY\"\n [hidden]=\"currentStep !== steps.Delivery\"\n (editModeChange)=\"handleEditChangeDelivery($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]=\"currentStep !== steps.Delivery\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onDeliveryValid()\"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ",
|
|
3638
3829
|
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
3639
3830
|
},] }
|
|
3640
3831
|
];
|
|
@@ -4573,6 +4764,7 @@
|
|
|
4573
4764
|
}());
|
|
4574
4765
|
IconComponent.decorators = [
|
|
4575
4766
|
{ type: i0.Component, args: [{
|
|
4767
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
4576
4768
|
selector: "icon",
|
|
4577
4769
|
template: "",
|
|
4578
4770
|
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.circle:host{border-radius:50%}.flex-center{display:flex}:host{display:inline-flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.no-shrink:host{flex-shrink:0}:host.action ::ng-deep{cursor:pointer}:host ::ng-deep svg{width:100%}:host ::ng-deep svg{height:100%}.massive:host{width:100px;height:100px}.humongous:host{width:70px;height:70px}.very-big:host{width:45px;height:45px}.big:host{width:40px;height:40px}:host{width:30px;height:30px}.small:host{width:25px;height:25px}.nano:host{width:18px;height:18px}.pico:host{width:14px;height:14px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.dark ::ng-deep [fill]{fill:#22313c}:host.light ::ng-deep [fill]{fill:#fff}:host.red ::ng-deep [fill]{fill:#c1002a}:host.grey ::ng-deep [fill]{fill:#dad9d9}:host.action-color ::ng-deep [fill]{fill:#2b60a7}:host.inactive{opacity:.25}:host.disabled{opacity:.25!important}:host:hover.action ::ng-deep [fill]{fill:#2b60a7}\n"]
|
|
@@ -4629,7 +4821,6 @@
|
|
|
4629
4821
|
IoneCheckoutModule.decorators = [
|
|
4630
4822
|
{ type: i0.NgModule, args: [{
|
|
4631
4823
|
imports: [
|
|
4632
|
-
animations.BrowserAnimationsModule,
|
|
4633
4824
|
corecomponents_v12.IconModule,
|
|
4634
4825
|
corecomponents_v12.InputTextModule,
|
|
4635
4826
|
corecomponents_v12.InputCheckboxModule,
|
|
@@ -4649,6 +4840,7 @@
|
|
|
4649
4840
|
corecomponents_v12.CoSidebarModule,
|
|
4650
4841
|
corecomponents_v12.CoGridModule,
|
|
4651
4842
|
CoreModule,
|
|
4843
|
+
common.CommonModule,
|
|
4652
4844
|
],
|
|
4653
4845
|
declarations: [
|
|
4654
4846
|
CheckoutComponent,
|
|
@@ -5870,7 +6062,7 @@
|
|
|
5870
6062
|
{ type: i0.Component, args: [{
|
|
5871
6063
|
selector: "shopping-cart-line",
|
|
5872
6064
|
template: "\n <div *ngIf=\"line.isArticle\" class=\"cart-line-r\" fxFlex>\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconTrashBin)\"\n [title]=\"'DELETE_TRANSACTION_LINE_HINT' | localize\"\n (click)=\"deleteTransactionLineClick()\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <image-display [model]=\"image\" hideOnEmptyModel></image-display>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"cart-line-right\">\n <div fxLayout=\"column\" class=\"cart-line-stock\" *ngIf=\"!overlayMode && !overviewMode\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"cart-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"localAmount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n\n <div class=\"cart-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n <div *ngIf=\"line.isText\" class=\"cart-line-t\" fxFlex\n [class.article-text]=\"line.articleBound\"\n [textContent]=\"line.text\">\n </div>\n ",
|
|
5873
|
-
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
|
|
6065
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.horizontal{display:flex;flex-direction:row}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
|
|
5874
6066
|
},] }
|
|
5875
6067
|
];
|
|
5876
6068
|
ShoppingCartLineComponent.ctorParameters = function () { return [
|
|
@@ -5953,6 +6145,7 @@
|
|
|
5953
6145
|
}());
|
|
5954
6146
|
CharacteristicAnswerComponent.decorators = [
|
|
5955
6147
|
{ type: i0.Component, args: [{
|
|
6148
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
5956
6149
|
selector: "characteristic-answer",
|
|
5957
6150
|
template: "\n <co-dialog\n #characteristic\n [showCloseIcon]=\"false\"\n >\n <ng-container header>\n <div>\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('ARTICLE')\"\n ></span>\n <span [textContent]=\"title\"></span>\n </div>\n </ng-container>\n\n <ng-container>\n <div>\n <div class=\"characteristic-header\">\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('CHARACTERISTIC_QUESTION')\"\n ></span>\n </div>\n <div class=\"characteristic-header\">\n <span [textContent]=\"question | localize\"></span>\n </div>\n <div *ngIf=\"characteristicOptions\" class=\"npm characteristic-options\">\n <co-input-combo-box [(model)]=\"value\"\n [source]=\"characteristics\"\n [fields]=\"characteristicsFields\"\n [placeholder]=\"'VALUE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div *ngIf=\"!characteristicOptions\" class=\"characteristic-value\">\n <co-input-text\n [(model)]=\"value\"\n [placeholder]=\"'VALUE' | localize \"\n required\n ></co-input-text>\n </div>\n </div>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onCharacteristicOkClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
|
|
5958
6151
|
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.characteristic-title{font-weight:bold;font-size:20px;margin-right:10px}.characteristic-value{font-weight:bold;font-size:20px}.characteristic-header{display:flex;justify-content:center}\n"]
|
|
@@ -5984,7 +6177,6 @@
|
|
|
5984
6177
|
CharacteristicAnswerComponent,
|
|
5985
6178
|
],
|
|
5986
6179
|
imports: [
|
|
5987
|
-
animations.BrowserAnimationsModule,
|
|
5988
6180
|
common.CommonModule,
|
|
5989
6181
|
corecomponents_v12.IconModule,
|
|
5990
6182
|
corecomponents_v12.InputTextModule,
|
|
@@ -6014,11 +6206,2126 @@
|
|
|
6014
6206
|
entryComponents: [
|
|
6015
6207
|
IoneShoppingCartComponent
|
|
6016
6208
|
],
|
|
6017
|
-
exports: [IoneShoppingCartComponent],
|
|
6209
|
+
exports: [IoneShoppingCartComponent, StockStatusIndicatorComponent, CharacteristicAnswerComponent],
|
|
6018
6210
|
bootstrap: [IoneShoppingCartComponent]
|
|
6019
6211
|
},] }
|
|
6020
6212
|
];
|
|
6021
6213
|
|
|
6214
|
+
var IoneServiceOrderComponent = /** @class */ (function () {
|
|
6215
|
+
function IoneServiceOrderComponent(_changeDetector, _optionsService, _connector, _dictionary, _service) {
|
|
6216
|
+
var _this = this;
|
|
6217
|
+
this._changeDetector = _changeDetector;
|
|
6218
|
+
this._optionsService = _optionsService;
|
|
6219
|
+
this._connector = _connector;
|
|
6220
|
+
this._dictionary = _dictionary;
|
|
6221
|
+
this._service = _service;
|
|
6222
|
+
this.upAndLoaded = false;
|
|
6223
|
+
this._subscriptions = [];
|
|
6224
|
+
this._remoteOptions = true;
|
|
6225
|
+
this._publicOptions = true;
|
|
6226
|
+
this._orderId = 0;
|
|
6227
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
|
|
6228
|
+
}
|
|
6229
|
+
Object.defineProperty(IoneServiceOrderComponent.prototype, "orderId", {
|
|
6230
|
+
set: function (value) {
|
|
6231
|
+
this._orderId = value;
|
|
6232
|
+
this._getTransactionById(this._orderId);
|
|
6233
|
+
},
|
|
6234
|
+
enumerable: false,
|
|
6235
|
+
configurable: true
|
|
6236
|
+
});
|
|
6237
|
+
;
|
|
6238
|
+
Object.defineProperty(IoneServiceOrderComponent.prototype, "options", {
|
|
6239
|
+
set: function (value) {
|
|
6240
|
+
if (value) {
|
|
6241
|
+
var options = void 0;
|
|
6242
|
+
if (typeof value === "string") {
|
|
6243
|
+
options = JSON.parse(value);
|
|
6244
|
+
}
|
|
6245
|
+
else {
|
|
6246
|
+
options = value;
|
|
6247
|
+
}
|
|
6248
|
+
this._publicOptions = true;
|
|
6249
|
+
this._optionsService.initialize(options).then();
|
|
6250
|
+
}
|
|
6251
|
+
},
|
|
6252
|
+
enumerable: false,
|
|
6253
|
+
configurable: true
|
|
6254
|
+
});
|
|
6255
|
+
IoneServiceOrderComponent.prototype.ngOnInit = function () {
|
|
6256
|
+
if (!this._publicOptions) {
|
|
6257
|
+
this._optionsService.initializeDevelopmentOptions(this._remoteOptions);
|
|
6258
|
+
}
|
|
6259
|
+
};
|
|
6260
|
+
IoneServiceOrderComponent.prototype.ngOnDestroy = function () {
|
|
6261
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
6262
|
+
};
|
|
6263
|
+
IoneServiceOrderComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
6264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6265
|
+
return __generator(this, function (_a) {
|
|
6266
|
+
switch (_a.label) {
|
|
6267
|
+
case 0:
|
|
6268
|
+
if (!loaded) return [3 /*break*/, 2];
|
|
6269
|
+
return [4 /*yield*/, this._initConnection().then()];
|
|
6270
|
+
case 1:
|
|
6271
|
+
_a.sent();
|
|
6272
|
+
this.upAndLoaded = true;
|
|
6273
|
+
_a.label = 2;
|
|
6274
|
+
case 2: return [2 /*return*/];
|
|
6275
|
+
}
|
|
6276
|
+
});
|
|
6277
|
+
});
|
|
6278
|
+
};
|
|
6279
|
+
IoneServiceOrderComponent.prototype._initConnection = function () {
|
|
6280
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6281
|
+
var _this = this;
|
|
6282
|
+
return __generator(this, function (_a) {
|
|
6283
|
+
switch (_a.label) {
|
|
6284
|
+
case 0: return [4 /*yield*/, this._connector.connect(this._optionsService.options)];
|
|
6285
|
+
case 1:
|
|
6286
|
+
_a.sent();
|
|
6287
|
+
if (this._optionsService.options.url) {
|
|
6288
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
6289
|
+
}
|
|
6290
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
6291
|
+
case 2:
|
|
6292
|
+
_a.sent();
|
|
6293
|
+
setTimeout(function () {
|
|
6294
|
+
_this._changeDetector.detectChanges();
|
|
6295
|
+
});
|
|
6296
|
+
return [2 /*return*/];
|
|
6297
|
+
}
|
|
6298
|
+
});
|
|
6299
|
+
});
|
|
6300
|
+
};
|
|
6301
|
+
IoneServiceOrderComponent.prototype._getTransactionById = function (orderId) {
|
|
6302
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6303
|
+
return __generator(this, function (_a) {
|
|
6304
|
+
switch (_a.label) {
|
|
6305
|
+
case 0: return [4 /*yield*/, this._service.getTransactionById(orderId)];
|
|
6306
|
+
case 1:
|
|
6307
|
+
_a.sent();
|
|
6308
|
+
return [2 /*return*/];
|
|
6309
|
+
}
|
|
6310
|
+
});
|
|
6311
|
+
});
|
|
6312
|
+
};
|
|
6313
|
+
return IoneServiceOrderComponent;
|
|
6314
|
+
}());
|
|
6315
|
+
IoneServiceOrderComponent.decorators = [
|
|
6316
|
+
{ type: i0.Component, args: [{
|
|
6317
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6318
|
+
selector: "ione-service-order",
|
|
6319
|
+
template: "\n <div>\n <service-order></service-order>\n </div>\n <transaction-sidebar-right></transaction-sidebar-right>\n "
|
|
6320
|
+
},] }
|
|
6321
|
+
];
|
|
6322
|
+
IoneServiceOrderComponent.ctorParameters = function () { return [
|
|
6323
|
+
{ type: i0.ChangeDetectorRef },
|
|
6324
|
+
{ type: OptionsService },
|
|
6325
|
+
{ type: IOneConnectorAdapterService },
|
|
6326
|
+
{ type: DictionaryService },
|
|
6327
|
+
{ type: TransactionService }
|
|
6328
|
+
]; };
|
|
6329
|
+
IoneServiceOrderComponent.propDecorators = {
|
|
6330
|
+
orderId: [{ type: i0.Input }],
|
|
6331
|
+
options: [{ type: i0.Input }]
|
|
6332
|
+
};
|
|
6333
|
+
|
|
6334
|
+
var TransactionBaseComponent = /** @class */ (function () {
|
|
6335
|
+
function TransactionBaseComponent(service) {
|
|
6336
|
+
this.service = service;
|
|
6337
|
+
this.relation = nulRelationObject.NULL_RELATION_LIST_OBJECT;
|
|
6338
|
+
this.customer = nulRelationObject.NULL_CUSTOMER_FULL_OBJECT;
|
|
6339
|
+
this._isService = false;
|
|
6340
|
+
this.basedOnProduct = false;
|
|
6341
|
+
this._lineOperationStatuses = [];
|
|
6342
|
+
this._transactionLines = [];
|
|
6343
|
+
}
|
|
6344
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transaction", {
|
|
6345
|
+
get: function () {
|
|
6346
|
+
return this._transaction;
|
|
6347
|
+
},
|
|
6348
|
+
set: function (value) {
|
|
6349
|
+
this._transaction = value;
|
|
6350
|
+
if (this._transaction) {
|
|
6351
|
+
if (this._transaction.transactionInfo) {
|
|
6352
|
+
this._transactionInfo = this._transaction.transactionInfo;
|
|
6353
|
+
this._isService = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.ServiceOrder;
|
|
6354
|
+
}
|
|
6355
|
+
if (this._transaction.transactionLines) {
|
|
6356
|
+
this.transactionLines = this._transaction.transactionLines;
|
|
6357
|
+
}
|
|
6358
|
+
if (this._transaction.transactionTotal) {
|
|
6359
|
+
this._transactionTotal = this._transaction.transactionTotal;
|
|
6360
|
+
}
|
|
6361
|
+
if (this._transaction.lineOperationStatuses) {
|
|
6362
|
+
this.lineOperationStatuses = this._transaction.lineOperationStatuses;
|
|
6363
|
+
}
|
|
6364
|
+
}
|
|
6365
|
+
},
|
|
6366
|
+
enumerable: false,
|
|
6367
|
+
configurable: true
|
|
6368
|
+
});
|
|
6369
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionInfo", {
|
|
6370
|
+
get: function () {
|
|
6371
|
+
return this._transactionInfo;
|
|
6372
|
+
},
|
|
6373
|
+
set: function (value) {
|
|
6374
|
+
this._transactionInfo = value;
|
|
6375
|
+
},
|
|
6376
|
+
enumerable: false,
|
|
6377
|
+
configurable: true
|
|
6378
|
+
});
|
|
6379
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionLines", {
|
|
6380
|
+
get: function () {
|
|
6381
|
+
return this._transactionLines;
|
|
6382
|
+
},
|
|
6383
|
+
set: function (value) {
|
|
6384
|
+
this._transactionLines = value;
|
|
6385
|
+
},
|
|
6386
|
+
enumerable: false,
|
|
6387
|
+
configurable: true
|
|
6388
|
+
});
|
|
6389
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionTotal", {
|
|
6390
|
+
get: function () {
|
|
6391
|
+
return this._transactionTotal;
|
|
6392
|
+
},
|
|
6393
|
+
set: function (value) {
|
|
6394
|
+
this._transactionTotal = value;
|
|
6395
|
+
},
|
|
6396
|
+
enumerable: false,
|
|
6397
|
+
configurable: true
|
|
6398
|
+
});
|
|
6399
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "lineOperationStatuses", {
|
|
6400
|
+
get: function () {
|
|
6401
|
+
return this._lineOperationStatuses;
|
|
6402
|
+
},
|
|
6403
|
+
set: function (value) {
|
|
6404
|
+
this._lineOperationStatuses = value;
|
|
6405
|
+
},
|
|
6406
|
+
enumerable: false,
|
|
6407
|
+
configurable: true
|
|
6408
|
+
});
|
|
6409
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "isService", {
|
|
6410
|
+
get: function () {
|
|
6411
|
+
return this._isService;
|
|
6412
|
+
},
|
|
6413
|
+
enumerable: false,
|
|
6414
|
+
configurable: true
|
|
6415
|
+
});
|
|
6416
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "relationId", {
|
|
6417
|
+
get: function () {
|
|
6418
|
+
return this._relationId;
|
|
6419
|
+
},
|
|
6420
|
+
set: function (value) {
|
|
6421
|
+
if (value === undefined) {
|
|
6422
|
+
return;
|
|
6423
|
+
}
|
|
6424
|
+
this._relationId = value;
|
|
6425
|
+
this._retrieveRelation();
|
|
6426
|
+
},
|
|
6427
|
+
enumerable: false,
|
|
6428
|
+
configurable: true
|
|
6429
|
+
});
|
|
6430
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "customerId", {
|
|
6431
|
+
get: function () {
|
|
6432
|
+
return this._customerId;
|
|
6433
|
+
},
|
|
6434
|
+
set: function (value) {
|
|
6435
|
+
if (value === undefined) {
|
|
6436
|
+
return;
|
|
6437
|
+
}
|
|
6438
|
+
this._customerId = value;
|
|
6439
|
+
this._retrieveCustomer();
|
|
6440
|
+
},
|
|
6441
|
+
enumerable: false,
|
|
6442
|
+
configurable: true
|
|
6443
|
+
});
|
|
6444
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "product", {
|
|
6445
|
+
get: function () {
|
|
6446
|
+
return this._product;
|
|
6447
|
+
},
|
|
6448
|
+
set: function (value) {
|
|
6449
|
+
this._product = value;
|
|
6450
|
+
this.productSet();
|
|
6451
|
+
this._setBasedOnProduct();
|
|
6452
|
+
},
|
|
6453
|
+
enumerable: false,
|
|
6454
|
+
configurable: true
|
|
6455
|
+
});
|
|
6456
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "isNew", {
|
|
6457
|
+
get: function () {
|
|
6458
|
+
return isNill_function.isNill(this.transaction) || isNill_function.isNill(this.transactionInfo.transactionNr);
|
|
6459
|
+
},
|
|
6460
|
+
enumerable: false,
|
|
6461
|
+
configurable: true
|
|
6462
|
+
});
|
|
6463
|
+
TransactionBaseComponent.prototype.transactionSet = function () {
|
|
6464
|
+
// overridden by descendents
|
|
6465
|
+
};
|
|
6466
|
+
TransactionBaseComponent.prototype.productSet = function () {
|
|
6467
|
+
// overridden by descendents
|
|
6468
|
+
};
|
|
6469
|
+
TransactionBaseComponent.prototype._retrieveCustomer = function () {
|
|
6470
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6471
|
+
var _a;
|
|
6472
|
+
return __generator(this, function (_b) {
|
|
6473
|
+
switch (_b.label) {
|
|
6474
|
+
case 0:
|
|
6475
|
+
_a = this;
|
|
6476
|
+
return [4 /*yield*/, this.service.getCustomerFulObjectByRelationId(this._customerId)];
|
|
6477
|
+
case 1:
|
|
6478
|
+
_a.customer = _b.sent();
|
|
6479
|
+
return [2 /*return*/];
|
|
6480
|
+
}
|
|
6481
|
+
});
|
|
6482
|
+
});
|
|
6483
|
+
};
|
|
6484
|
+
TransactionBaseComponent.prototype._retrieveRelation = function () {
|
|
6485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6486
|
+
var relationRequest$1, relations;
|
|
6487
|
+
return __generator(this, function (_a) {
|
|
6488
|
+
switch (_a.label) {
|
|
6489
|
+
case 0:
|
|
6490
|
+
relationRequest$1 = new relationRequest.RelationRequest();
|
|
6491
|
+
relations = [];
|
|
6492
|
+
relationRequest$1.relationId = this.relationId;
|
|
6493
|
+
return [4 /*yield*/, this.service.getRelationListObjects(relationRequest$1)];
|
|
6494
|
+
case 1:
|
|
6495
|
+
relations = _a.sent();
|
|
6496
|
+
if (relations && relations.length) {
|
|
6497
|
+
this.relation = relations[0];
|
|
6498
|
+
}
|
|
6499
|
+
return [2 /*return*/];
|
|
6500
|
+
}
|
|
6501
|
+
});
|
|
6502
|
+
});
|
|
6503
|
+
};
|
|
6504
|
+
TransactionBaseComponent.prototype._setBasedOnProduct = function () {
|
|
6505
|
+
if (this.product) {
|
|
6506
|
+
this.basedOnProduct = true;
|
|
6507
|
+
}
|
|
6508
|
+
else { //check transaction (service) for product
|
|
6509
|
+
// TODO: assProduct is not a property of transaction right now.
|
|
6510
|
+
// this.basedOnProduct = notNill(this._transaction.assProduct);
|
|
6511
|
+
// if (this.basedOnProduct) {
|
|
6512
|
+
// this._product = this.transaction.assProduct;
|
|
6513
|
+
// }
|
|
6514
|
+
}
|
|
6515
|
+
};
|
|
6516
|
+
return TransactionBaseComponent;
|
|
6517
|
+
}());
|
|
6518
|
+
TransactionBaseComponent.decorators = [
|
|
6519
|
+
{ type: i0.Directive }
|
|
6520
|
+
];
|
|
6521
|
+
TransactionBaseComponent.ctorParameters = function () { return [
|
|
6522
|
+
{ type: TransactionService }
|
|
6523
|
+
]; };
|
|
6524
|
+
TransactionBaseComponent.propDecorators = {
|
|
6525
|
+
transaction: [{ type: i0.Input }],
|
|
6526
|
+
relationId: [{ type: i0.Input }],
|
|
6527
|
+
customerId: [{ type: i0.Input }],
|
|
6528
|
+
product: [{ type: i0.Input }],
|
|
6529
|
+
relation: [{ type: i0.Input }],
|
|
6530
|
+
customer: [{ type: i0.Input }]
|
|
6531
|
+
};
|
|
6532
|
+
|
|
6533
|
+
// import {
|
|
6534
|
+
// ToolbarService,
|
|
6535
|
+
// LinkService,
|
|
6536
|
+
// ImageService,
|
|
6537
|
+
// HtmlEditorService,
|
|
6538
|
+
// RichTextEditor
|
|
6539
|
+
// } from '@syncfusion/ej2-angular-richtexteditor';
|
|
6540
|
+
var TransactionArticleTextComponent = /** @class */ (function (_super) {
|
|
6541
|
+
__extends(TransactionArticleTextComponent, _super);
|
|
6542
|
+
function TransactionArticleTextComponent(service) {
|
|
6543
|
+
var _this = _super.call(this, service) || this;
|
|
6544
|
+
_this.service = service;
|
|
6545
|
+
_this.visible = false;
|
|
6546
|
+
_this.floatButtonSelected = false;
|
|
6547
|
+
_this.overviewSelected = false;
|
|
6548
|
+
_this.editArtikelText = false;
|
|
6549
|
+
_this.collection = [
|
|
6550
|
+
{ id: 1, name: "Standaardtekst 1" },
|
|
6551
|
+
{ id: 2, name: "Standaardtekst 1" },
|
|
6552
|
+
{ id: 3, name: "Standaardtekst 1" },
|
|
6553
|
+
{ id: 4, name: "Standaardtekst 1" },
|
|
6554
|
+
{ id: 5, name: "Standaardtekst 1" }
|
|
6555
|
+
];
|
|
6556
|
+
_this.articleTexts = [
|
|
6557
|
+
{ title: "title 1", description: "Omschrijving 1" },
|
|
6558
|
+
{ title: "title 2", description: "Omschrijving 2" },
|
|
6559
|
+
{ title: "title 3", description: "Omschrijving 3" },
|
|
6560
|
+
{ title: "title 4", description: "Omschrijving 4" },
|
|
6561
|
+
{ title: "title 5", description: "Omschrijving 5" },
|
|
6562
|
+
];
|
|
6563
|
+
_this.fields = { text: "name", value: "id" };
|
|
6564
|
+
return _this;
|
|
6565
|
+
}
|
|
6566
|
+
TransactionArticleTextComponent.prototype.onOkClick = function () {
|
|
6567
|
+
this.hide();
|
|
6568
|
+
};
|
|
6569
|
+
TransactionArticleTextComponent.prototype.onPopupClose = function () {
|
|
6570
|
+
this.hide();
|
|
6571
|
+
this.hideOverview();
|
|
6572
|
+
this.hideEditArtikelText();
|
|
6573
|
+
};
|
|
6574
|
+
TransactionArticleTextComponent.prototype.hide = function () {
|
|
6575
|
+
// TODO: throw hide event
|
|
6576
|
+
this.visible = false;
|
|
6577
|
+
};
|
|
6578
|
+
TransactionArticleTextComponent.prototype.onOverview = function () {
|
|
6579
|
+
this.overviewSelected = true;
|
|
6580
|
+
};
|
|
6581
|
+
TransactionArticleTextComponent.prototype.onOkOverviewClick = function () {
|
|
6582
|
+
this.hideOverview();
|
|
6583
|
+
};
|
|
6584
|
+
TransactionArticleTextComponent.prototype.hideOverview = function () {
|
|
6585
|
+
this.overviewSelected = false;
|
|
6586
|
+
};
|
|
6587
|
+
TransactionArticleTextComponent.prototype.onDetailLinkClick = function (bo) {
|
|
6588
|
+
this.editArtikelText = true;
|
|
6589
|
+
};
|
|
6590
|
+
TransactionArticleTextComponent.prototype.hideEditArtikelText = function () {
|
|
6591
|
+
this.editArtikelText = false;
|
|
6592
|
+
};
|
|
6593
|
+
TransactionArticleTextComponent.prototype.onOkEditArtikelTextClick = function () {
|
|
6594
|
+
this.editArtikelText = false;
|
|
6595
|
+
};
|
|
6596
|
+
return TransactionArticleTextComponent;
|
|
6597
|
+
}(TransactionBaseComponent));
|
|
6598
|
+
TransactionArticleTextComponent.decorators = [
|
|
6599
|
+
{ type: i0.Component, args: [{
|
|
6600
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6601
|
+
selector: "transaction-article-text",
|
|
6602
|
+
template: "\n <co-dialog [visible]=\"visible\" (close)=\"onPopupClose()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!-- <ejs-richtexteditor-->\n<!-- #rte-->\n<!-- id=\"Rte\"-->\n<!-- >-->\n<!-- </ejs-richtexteditor>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:16px;\">\n <ejs-dropdownlist\n [dataSource]=\"collection\"\n [fields]=\"fields\"\n placeholder=\"Standaardteksten\"\n ></ejs-dropdownlist>\n\n </div>\n <div style=\"margin-top:20px;\">\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\">\n </co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hide()\"></co-button>\n <co-button label=\"OVERVIEW\" (click)=\"onOverview()\"></co-button>\n<!-- <co-button label=\"TEST\" (click)=\"onTest()\"></co-button>-->\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"overviewSelected\" (close)=\"hideOverview()\">\n <ng-container header>Artikelgebonden teksten {{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\" style=\"width:75%\">\n<!-- <grid [data]=\"articleTexts\" detailLink (detailLinkClick)=\"onDetailLinkClick($event)\">-->\n<!-- <grid-column key=\"title\" header=\"TITLE\" width=\"100px;\"></grid-column>-->\n<!-- <grid-column key=\"description\" header=\"DESCRIPTION\" width=\"200px\"></grid-column>-->\n<!-- </grid>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:20px;\">\n\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\"\n value=\"true\"\n ></co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxPosition=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkOverviewClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideOverview()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"editArtikelText\" (close)=\"hideEditArtikelText()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!-- <co-text-editor-->\n<!-- label=\"Artikeltekst\"-->\n<!-- ></co-text-editor>-->\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkEditArtikelTextClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideEditArtikelText()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
|
|
6603
|
+
styles: [""]
|
|
6604
|
+
},] }
|
|
6605
|
+
];
|
|
6606
|
+
TransactionArticleTextComponent.ctorParameters = function () { return [
|
|
6607
|
+
{ type: TransactionService }
|
|
6608
|
+
]; };
|
|
6609
|
+
TransactionArticleTextComponent.propDecorators = {
|
|
6610
|
+
subHeader: [{ type: i0.Input }]
|
|
6611
|
+
};
|
|
6612
|
+
|
|
6613
|
+
var TransactionManagerComponent = /** @class */ (function (_super) {
|
|
6614
|
+
__extends(TransactionManagerComponent, _super);
|
|
6615
|
+
function TransactionManagerComponent(service, transactionEvents, promptService, _dictionaryService) {
|
|
6616
|
+
var _this = _super.call(this, service) || this;
|
|
6617
|
+
_this.service = service;
|
|
6618
|
+
_this.transactionEvents = transactionEvents;
|
|
6619
|
+
_this.promptService = promptService;
|
|
6620
|
+
_this._dictionaryService = _dictionaryService;
|
|
6621
|
+
_this.linesChanged = new i0.EventEmitter();
|
|
6622
|
+
_this.articleAdded = new i0.EventEmitter();
|
|
6623
|
+
_this.columns = [];
|
|
6624
|
+
_this._inOutCollection = [];
|
|
6625
|
+
_this._showCharacteristic = false;
|
|
6626
|
+
_this._subs = [];
|
|
6627
|
+
_this._subs.push(_this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
|
|
6628
|
+
if (transactionInfoResponse.isSuccess) {
|
|
6629
|
+
_this.transaction = transactionInfoResponse;
|
|
6630
|
+
}
|
|
6631
|
+
}));
|
|
6632
|
+
return _this;
|
|
6633
|
+
}
|
|
6634
|
+
Object.defineProperty(TransactionManagerComponent.prototype, "amountOfLines", {
|
|
6635
|
+
get: function () {
|
|
6636
|
+
return numberUtils.NumberUtils.NrOrDefault(this.service.articleAmount, 0);
|
|
6637
|
+
},
|
|
6638
|
+
enumerable: false,
|
|
6639
|
+
configurable: true
|
|
6640
|
+
});
|
|
6641
|
+
Object.defineProperty(TransactionManagerComponent.prototype, "showCharacteristicDialog", {
|
|
6642
|
+
get: function () {
|
|
6643
|
+
return this._showCharacteristic;
|
|
6644
|
+
},
|
|
6645
|
+
set: function (value) {
|
|
6646
|
+
this._showCharacteristic = value;
|
|
6647
|
+
},
|
|
6648
|
+
enumerable: false,
|
|
6649
|
+
configurable: true
|
|
6650
|
+
});
|
|
6651
|
+
TransactionManagerComponent.prototype.ngOnDestroy = function () {
|
|
6652
|
+
this._subs.forEach(function (sub) { return sub.unsubscribe(); });
|
|
6653
|
+
};
|
|
6654
|
+
TransactionManagerComponent.prototype.addArticleLine = function (transactionUuid, sku, amount, lineNr, beforeOrAfter) {
|
|
6655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6656
|
+
var goodId;
|
|
6657
|
+
return __generator(this, function (_a) {
|
|
6658
|
+
switch (_a.label) {
|
|
6659
|
+
case 0: return [4 /*yield*/, this.service.getGoodIdFromArticleNr(sku)];
|
|
6660
|
+
case 1:
|
|
6661
|
+
goodId = _a.sent();
|
|
6662
|
+
if (!goodId) return [3 /*break*/, 4];
|
|
6663
|
+
return [4 /*yield*/, this._loadArticle(goodId)];
|
|
6664
|
+
case 2:
|
|
6665
|
+
_a.sent();
|
|
6666
|
+
return [4 /*yield*/, this._handleAddArticleLineAt(amount, lineNr, beforeOrAfter)];
|
|
6667
|
+
case 3:
|
|
6668
|
+
_a.sent();
|
|
6669
|
+
return [3 /*break*/, 5];
|
|
6670
|
+
case 4:
|
|
6671
|
+
this.promptService.showError(this._dictionaryService.get("ARTICLE_UNKNOWN"));
|
|
6672
|
+
_a.label = 5;
|
|
6673
|
+
case 5: return [2 /*return*/];
|
|
6674
|
+
}
|
|
6675
|
+
});
|
|
6676
|
+
});
|
|
6677
|
+
};
|
|
6678
|
+
TransactionManagerComponent.prototype.changeLineSequence = function (fromIndex, toIndex) {
|
|
6679
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6680
|
+
var fromLine, toLine, aboveLineNr, belowLineNr;
|
|
6681
|
+
var _this = this;
|
|
6682
|
+
return __generator(this, function (_a) {
|
|
6683
|
+
switch (_a.label) {
|
|
6684
|
+
case 0:
|
|
6685
|
+
fromLine = this._getTransactionLineInfoByIndex(fromIndex);
|
|
6686
|
+
toLine = this._getTransactionLineInfoByIndex(toIndex);
|
|
6687
|
+
if (fromIndex > toIndex) {
|
|
6688
|
+
aboveLineNr = toLine.lineNr;
|
|
6689
|
+
}
|
|
6690
|
+
else {
|
|
6691
|
+
belowLineNr = toLine.lineNr;
|
|
6692
|
+
}
|
|
6693
|
+
return [4 /*yield*/, this.service.changeLineSequence(fromLine.uuid, aboveLineNr, belowLineNr, false)
|
|
6694
|
+
.then(function (value) {
|
|
6695
|
+
_this.handleLineOperationStatus(value);
|
|
6696
|
+
}, function (error) { return _this.promptService.showError(error); })];
|
|
6697
|
+
case 1:
|
|
6698
|
+
_a.sent();
|
|
6699
|
+
return [2 /*return*/];
|
|
6700
|
+
}
|
|
6701
|
+
});
|
|
6702
|
+
});
|
|
6703
|
+
};
|
|
6704
|
+
TransactionManagerComponent.prototype.showStockManager = function (line) {
|
|
6705
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6706
|
+
return __generator(this, function (_a) {
|
|
6707
|
+
this.warehouse.selectedWarehouseNr = line.warehouseNumber;
|
|
6708
|
+
this.warehouse.amount = line.amount;
|
|
6709
|
+
this.warehouse.commissionCode = line.commissionCode;
|
|
6710
|
+
this.warehouse.message = this.currentOperationStatus.pendingReason;
|
|
6711
|
+
this.warehouse.show(line.articleNumber);
|
|
6712
|
+
return [2 /*return*/];
|
|
6713
|
+
});
|
|
6714
|
+
});
|
|
6715
|
+
};
|
|
6716
|
+
TransactionManagerComponent.prototype.warehouseOkClick = function () {
|
|
6717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6718
|
+
var _this = this;
|
|
6719
|
+
return __generator(this, function (_a) {
|
|
6720
|
+
switch (_a.label) {
|
|
6721
|
+
case 0:
|
|
6722
|
+
if (this.warehouse.commissionCode !== undefined) {
|
|
6723
|
+
this.currentReason.commissionCode = this.warehouse.commissionCode;
|
|
6724
|
+
}
|
|
6725
|
+
if (this.warehouse.amount !== undefined) {
|
|
6726
|
+
this.currentReason.quantity = this.warehouse.amount;
|
|
6727
|
+
}
|
|
6728
|
+
if (this.warehouse.selectedWarehouseNr !== undefined) {
|
|
6729
|
+
this.currentReason.warehouseNr = this.warehouse.selectedWarehouseNr;
|
|
6730
|
+
}
|
|
6731
|
+
if (!this.currentReason) return [3 /*break*/, 2];
|
|
6732
|
+
return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
|
|
6733
|
+
.then(function (value) {
|
|
6734
|
+
_this.handleLineOperationStatus(value);
|
|
6735
|
+
})];
|
|
6736
|
+
case 1:
|
|
6737
|
+
_a.sent();
|
|
6738
|
+
_a.label = 2;
|
|
6739
|
+
case 2: return [2 /*return*/];
|
|
6740
|
+
}
|
|
6741
|
+
});
|
|
6742
|
+
});
|
|
6743
|
+
};
|
|
6744
|
+
TransactionManagerComponent.prototype.warehouseCancelClick = function () {
|
|
6745
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6746
|
+
return __generator(this, function (_a) {
|
|
6747
|
+
switch (_a.label) {
|
|
6748
|
+
case 0:
|
|
6749
|
+
if (!this.currentReason) return [3 /*break*/, 2];
|
|
6750
|
+
return [4 /*yield*/, this._cancelArticle(this.currentReason.lineUuid)];
|
|
6751
|
+
case 1:
|
|
6752
|
+
_a.sent();
|
|
6753
|
+
_a.label = 2;
|
|
6754
|
+
case 2: return [2 /*return*/];
|
|
6755
|
+
}
|
|
6756
|
+
});
|
|
6757
|
+
});
|
|
6758
|
+
};
|
|
6759
|
+
TransactionManagerComponent.prototype.handleCharacteristicAnswerOkClick = function (answer) {
|
|
6760
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6761
|
+
var _this = this;
|
|
6762
|
+
return __generator(this, function (_a) {
|
|
6763
|
+
switch (_a.label) {
|
|
6764
|
+
case 0:
|
|
6765
|
+
this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
|
|
6766
|
+
this.currentReason.textualUserInput = answer;
|
|
6767
|
+
return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
|
|
6768
|
+
.then(function (value) {
|
|
6769
|
+
_this.handleLineOperationStatus(value);
|
|
6770
|
+
})];
|
|
6771
|
+
case 1:
|
|
6772
|
+
_a.sent();
|
|
6773
|
+
return [2 /*return*/];
|
|
6774
|
+
}
|
|
6775
|
+
});
|
|
6776
|
+
});
|
|
6777
|
+
};
|
|
6778
|
+
TransactionManagerComponent.prototype._handleAddArticle = function (amount) {
|
|
6779
|
+
if (amount === void 0) { amount = 1; }
|
|
6780
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6781
|
+
var _this = this;
|
|
6782
|
+
return __generator(this, function (_a) {
|
|
6783
|
+
switch (_a.label) {
|
|
6784
|
+
case 0: return [4 /*yield*/, this.service.addTransactionLine(transactionLineType_enum.TransactionLineType.ArticleLine, this.newArticleNr, amount, this.newArticle.standardWareHouse, this.newArticle.commissionCode, false, 0, 0, false)
|
|
6785
|
+
.then(function (value) {
|
|
6786
|
+
_this.handleLineOperationStatus(value);
|
|
6787
|
+
}, function (error) { return _this.promptService.showError(error); })];
|
|
6788
|
+
case 1:
|
|
6789
|
+
_a.sent();
|
|
6790
|
+
return [2 /*return*/];
|
|
6791
|
+
}
|
|
6792
|
+
});
|
|
6793
|
+
});
|
|
6794
|
+
};
|
|
6795
|
+
TransactionManagerComponent.prototype._handleAddArticleLineAt = function (amount, lineNr, beforeOrAfter) {
|
|
6796
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6797
|
+
var _this = this;
|
|
6798
|
+
return __generator(this, function (_a) {
|
|
6799
|
+
switch (_a.label) {
|
|
6800
|
+
case 0: return [4 /*yield*/, this.service.addArticleToTransaction(this.transactionInfo.uuid, this.newArticleNr, amount, this.newArticle.standardWareHouse, this.newArticle.commissionCode, false, beforeOrAfter === PositionGridRow.Before ? lineNr : undefined, beforeOrAfter === PositionGridRow.After ? lineNr : undefined)
|
|
6801
|
+
.then(function (value) {
|
|
6802
|
+
_this.lineOperationStatuses = value.lineOperationStatuses;
|
|
6803
|
+
_this.handleLineOperationStatus(value);
|
|
6804
|
+
}, function (error) { return _this.promptService.showError(error); })];
|
|
6805
|
+
case 1:
|
|
6806
|
+
_a.sent();
|
|
6807
|
+
return [2 /*return*/];
|
|
6808
|
+
}
|
|
6809
|
+
});
|
|
6810
|
+
});
|
|
6811
|
+
};
|
|
6812
|
+
TransactionManagerComponent.prototype._getWareHouseNoFromArticle = function () {
|
|
6813
|
+
if (this.newArticle !== undefined && this.newArticle.stockLocations !== undefined && this.newArticle.stockLocations.length) {
|
|
6814
|
+
return this.newArticle.stockLocations[0].warehouseNr;
|
|
6815
|
+
}
|
|
6816
|
+
return 0;
|
|
6817
|
+
};
|
|
6818
|
+
TransactionManagerComponent.prototype.isLineOperationStatus = function (lineOperationStatuses) {
|
|
6819
|
+
this.currentOperationStatus = this.service.pendingLineOperationStatus(lineOperationStatuses);
|
|
6820
|
+
if (this.currentOperationStatus !== undefined) {
|
|
6821
|
+
return true;
|
|
6822
|
+
}
|
|
6823
|
+
return false;
|
|
6824
|
+
};
|
|
6825
|
+
TransactionManagerComponent.prototype._confirmAction = function () {
|
|
6826
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6827
|
+
var pendingReasonText, _a;
|
|
6828
|
+
var _this = this;
|
|
6829
|
+
return __generator(this, function (_b) {
|
|
6830
|
+
switch (_b.label) {
|
|
6831
|
+
case 0:
|
|
6832
|
+
this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
|
|
6833
|
+
return [4 /*yield*/, this._getPendingReasonText(this.currentOperationStatus.pendingReason)];
|
|
6834
|
+
case 1:
|
|
6835
|
+
pendingReasonText = _b.sent();
|
|
6836
|
+
_a = this.currentReason;
|
|
6837
|
+
return [4 /*yield*/, this.promptService.showYesNo(pendingReasonText, " ")];
|
|
6838
|
+
case 2:
|
|
6839
|
+
_a.confirmation = _b.sent();
|
|
6840
|
+
return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
|
|
6841
|
+
.then(function (value) {
|
|
6842
|
+
_this.handleLineOperationStatus(value);
|
|
6843
|
+
})];
|
|
6844
|
+
case 3:
|
|
6845
|
+
_b.sent();
|
|
6846
|
+
return [2 /*return*/];
|
|
6847
|
+
}
|
|
6848
|
+
});
|
|
6849
|
+
});
|
|
6850
|
+
};
|
|
6851
|
+
TransactionManagerComponent.prototype._showInformation = function () {
|
|
6852
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6853
|
+
var pendingReasonText;
|
|
6854
|
+
var _this = this;
|
|
6855
|
+
return __generator(this, function (_a) {
|
|
6856
|
+
switch (_a.label) {
|
|
6857
|
+
case 0:
|
|
6858
|
+
this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
|
|
6859
|
+
return [4 /*yield*/, this._getPendingReasonText(this.currentOperationStatus.pendingReason)];
|
|
6860
|
+
case 1:
|
|
6861
|
+
pendingReasonText = _a.sent();
|
|
6862
|
+
return [4 /*yield*/, this.promptService.showOkModal(pendingReasonText, " ")];
|
|
6863
|
+
case 2:
|
|
6864
|
+
_a.sent();
|
|
6865
|
+
return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
|
|
6866
|
+
.then(function (value) {
|
|
6867
|
+
_this.handleLineOperationStatus(value);
|
|
6868
|
+
})];
|
|
6869
|
+
case 3:
|
|
6870
|
+
_a.sent();
|
|
6871
|
+
return [2 /*return*/];
|
|
6872
|
+
}
|
|
6873
|
+
});
|
|
6874
|
+
});
|
|
6875
|
+
};
|
|
6876
|
+
TransactionManagerComponent.prototype._getPendingReasonText = function (pendingReason) {
|
|
6877
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6878
|
+
var _a, _b, _c;
|
|
6879
|
+
return __generator(this, function (_d) {
|
|
6880
|
+
switch (_d.label) {
|
|
6881
|
+
case 0:
|
|
6882
|
+
if (!(pendingReason === "ARTICLE_IS_DISCONTINUED_DO_YOU_WANT_TO_CONTINUE_PLEASE_CONFIRM")) return [3 /*break*/, 2];
|
|
6883
|
+
_b = (_a = this._dictionaryService.get("ARTICLE_IN_OUT_COLLECTION")).replace;
|
|
6884
|
+
_c = ["|~"];
|
|
6885
|
+
return [4 /*yield*/, this.getInOutCollectionOfArticle()];
|
|
6886
|
+
case 1: return [2 /*return*/, _b.apply(_a, _c.concat([_d.sent()]))];
|
|
6887
|
+
case 2: return [2 /*return*/, this._dictionaryService.get(pendingReason)];
|
|
6888
|
+
}
|
|
6889
|
+
});
|
|
6890
|
+
});
|
|
6891
|
+
};
|
|
6892
|
+
TransactionManagerComponent.prototype.getInOutCollectionOfArticle = function () {
|
|
6893
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6894
|
+
var _a, domainValue;
|
|
6895
|
+
var _this = this;
|
|
6896
|
+
return __generator(this, function (_b) {
|
|
6897
|
+
switch (_b.label) {
|
|
6898
|
+
case 0:
|
|
6899
|
+
if (!!this._inOutCollection.length) return [3 /*break*/, 2];
|
|
6900
|
+
_a = this;
|
|
6901
|
+
return [4 /*yield*/, this.service.getInOutCollection("NL")];
|
|
6902
|
+
case 1:
|
|
6903
|
+
_a._inOutCollection = _b.sent();
|
|
6904
|
+
_b.label = 2;
|
|
6905
|
+
case 2:
|
|
6906
|
+
domainValue = this._inOutCollection.find(function (element) { return element.code === _this.newArticle.inOutCollection; });
|
|
6907
|
+
if (domainValue) {
|
|
6908
|
+
return [2 /*return*/, domainValue.description];
|
|
6909
|
+
}
|
|
6910
|
+
return [2 /*return*/, ""];
|
|
6911
|
+
}
|
|
6912
|
+
});
|
|
6913
|
+
});
|
|
6914
|
+
};
|
|
6915
|
+
TransactionManagerComponent.prototype.handleLineOperationStatus = function (lineOperationResponse) {
|
|
6916
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6917
|
+
return __generator(this, function (_a) {
|
|
6918
|
+
switch (_a.label) {
|
|
6919
|
+
case 0:
|
|
6920
|
+
if (!this.isLineOperationStatus(lineOperationResponse.lineOperationStatuses)) return [3 /*break*/, 2];
|
|
6921
|
+
this.transaction = lineOperationResponse;
|
|
6922
|
+
this.articleAdded.emit(this.transaction);
|
|
6923
|
+
return [4 /*yield*/, this._handlePendingLine(this.currentOperationStatus.uuid).then()];
|
|
6924
|
+
case 1:
|
|
6925
|
+
_a.sent();
|
|
6926
|
+
return [3 /*break*/, 4];
|
|
6927
|
+
case 2: return [4 /*yield*/, this._saveTransaction()];
|
|
6928
|
+
case 3:
|
|
6929
|
+
_a.sent();
|
|
6930
|
+
_a.label = 4;
|
|
6931
|
+
case 4: return [2 /*return*/];
|
|
6932
|
+
}
|
|
6933
|
+
});
|
|
6934
|
+
});
|
|
6935
|
+
};
|
|
6936
|
+
TransactionManagerComponent.prototype._handlePendingLine = function (lineUuid) {
|
|
6937
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6938
|
+
var _a;
|
|
6939
|
+
return __generator(this, function (_b) {
|
|
6940
|
+
switch (_b.label) {
|
|
6941
|
+
case 0:
|
|
6942
|
+
this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
|
|
6943
|
+
this.currentPendingLine = this.transactionLines.find(function (l) { return l.uuid === lineUuid; });
|
|
6944
|
+
_a = this.currentOperationStatus.pendingReasonType;
|
|
6945
|
+
switch (_a) {
|
|
6946
|
+
case pendingReasonType_enum.PendingReasonType.ABORTED: return [3 /*break*/, 1];
|
|
6947
|
+
case pendingReasonType_enum.PendingReasonType.CANCELLED: return [3 /*break*/, 1];
|
|
6948
|
+
case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/, 3];
|
|
6949
|
+
case pendingReasonType_enum.PendingReasonType.INVALID_LOGISTICS: return [3 /*break*/, 5];
|
|
6950
|
+
case pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION: return [3 /*break*/, 7];
|
|
6951
|
+
case pendingReasonType_enum.PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED: return [3 /*break*/, 9];
|
|
6952
|
+
case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/, 10];
|
|
6953
|
+
}
|
|
6954
|
+
return [3 /*break*/, 10];
|
|
6955
|
+
case 1: return [4 /*yield*/, this._cancelArticle(this.currentPendingLine.uuid)];
|
|
6956
|
+
case 2:
|
|
6957
|
+
_b.sent();
|
|
6958
|
+
return [3 /*break*/, 11];
|
|
6959
|
+
case 3: return [4 /*yield*/, this._confirmAction()];
|
|
6960
|
+
case 4:
|
|
6961
|
+
_b.sent();
|
|
6962
|
+
return [3 /*break*/, 11];
|
|
6963
|
+
case 5: return [4 /*yield*/, this.showStockManager(this.currentPendingLine)];
|
|
6964
|
+
case 6:
|
|
6965
|
+
_b.sent();
|
|
6966
|
+
return [3 /*break*/, 11];
|
|
6967
|
+
case 7: return [4 /*yield*/, this._showInformation()];
|
|
6968
|
+
case 8:
|
|
6969
|
+
_b.sent();
|
|
6970
|
+
return [3 /*break*/, 11];
|
|
6971
|
+
case 9:
|
|
6972
|
+
this.CharacteristicsAnswerNeeded();
|
|
6973
|
+
return [3 /*break*/, 11];
|
|
6974
|
+
case 10:
|
|
6975
|
+
this.currentReason = undefined;
|
|
6976
|
+
this.currentPendingLine = undefined;
|
|
6977
|
+
return [3 /*break*/, 11];
|
|
6978
|
+
case 11: return [2 /*return*/];
|
|
6979
|
+
}
|
|
6980
|
+
});
|
|
6981
|
+
});
|
|
6982
|
+
};
|
|
6983
|
+
TransactionManagerComponent.prototype._saveTransaction = function () {
|
|
6984
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6985
|
+
var success;
|
|
6986
|
+
return __generator(this, function (_a) {
|
|
6987
|
+
switch (_a.label) {
|
|
6988
|
+
case 0:
|
|
6989
|
+
if (!this.transactionInfo) return [3 /*break*/, 2];
|
|
6990
|
+
return [4 /*yield*/, this.service.saveTransactionByUuid(this.transactionInfo.uuid)];
|
|
6991
|
+
case 1:
|
|
6992
|
+
success = _a.sent();
|
|
6993
|
+
if (!success) {
|
|
6994
|
+
this.promptService.showError("Transaction could not be saved!");
|
|
6995
|
+
}
|
|
6996
|
+
_a.label = 2;
|
|
6997
|
+
case 2: return [2 /*return*/];
|
|
6998
|
+
}
|
|
6999
|
+
});
|
|
7000
|
+
});
|
|
7001
|
+
};
|
|
7002
|
+
TransactionManagerComponent.prototype._loadArticle = function (goodId) {
|
|
7003
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7004
|
+
var _a;
|
|
7005
|
+
return __generator(this, function (_b) {
|
|
7006
|
+
switch (_b.label) {
|
|
7007
|
+
case 0:
|
|
7008
|
+
_a = this;
|
|
7009
|
+
return [4 /*yield*/, this.service.getArticleFullObject(goodId)];
|
|
7010
|
+
case 1:
|
|
7011
|
+
_a.newArticle = _b.sent();
|
|
7012
|
+
this.newArticleNr = this.newArticle.articleNr;
|
|
7013
|
+
return [2 /*return*/];
|
|
7014
|
+
}
|
|
7015
|
+
});
|
|
7016
|
+
});
|
|
7017
|
+
};
|
|
7018
|
+
TransactionManagerComponent.prototype.addEmailAddressToTransaction = function (emailAddress) {
|
|
7019
|
+
this.service.emailAddress = emailAddress;
|
|
7020
|
+
};
|
|
7021
|
+
TransactionManagerComponent.prototype.CharacteristicsAnswerNeeded = function () {
|
|
7022
|
+
var _this = this;
|
|
7023
|
+
this.characteristicAnswer.question = this.currentOperationStatus.characteristic.question;
|
|
7024
|
+
this.characteristicAnswer.title = this.newArticle.description;
|
|
7025
|
+
this.characteristicAnswer.value = this.currentOperationStatus.characteristic.value;
|
|
7026
|
+
this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
|
|
7027
|
+
setTimeout(function () {
|
|
7028
|
+
_this.characteristicAnswer.open();
|
|
7029
|
+
// eslint-disable-next-line no-magic-numbers
|
|
7030
|
+
}, 1000);
|
|
7031
|
+
};
|
|
7032
|
+
TransactionManagerComponent.prototype._getTransactionLineInfoByIndex = function (index) {
|
|
7033
|
+
if (index >= 0 && index < this.transactionLines.length) {
|
|
7034
|
+
return this.service.currentLines[index];
|
|
7035
|
+
}
|
|
7036
|
+
};
|
|
7037
|
+
TransactionManagerComponent.prototype._cancelArticle = function (uuid) {
|
|
7038
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7039
|
+
var _this = this;
|
|
7040
|
+
return __generator(this, function (_a) {
|
|
7041
|
+
switch (_a.label) {
|
|
7042
|
+
case 0: return [4 /*yield*/, this.service.cancelAddTransactionLine(uuid, false)
|
|
7043
|
+
.then(function (response) {
|
|
7044
|
+
_this.transaction = response;
|
|
7045
|
+
_this.articleAdded.emit(response);
|
|
7046
|
+
})];
|
|
7047
|
+
case 1:
|
|
7048
|
+
_a.sent();
|
|
7049
|
+
return [2 /*return*/];
|
|
7050
|
+
}
|
|
7051
|
+
});
|
|
7052
|
+
});
|
|
7053
|
+
};
|
|
7054
|
+
return TransactionManagerComponent;
|
|
7055
|
+
}(TransactionBaseComponent));
|
|
7056
|
+
TransactionManagerComponent.decorators = [
|
|
7057
|
+
{ type: i0.Component, args: [{
|
|
7058
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7059
|
+
selector: "transaction-manager",
|
|
7060
|
+
template: "\n <warehouse #warehouse\n (okClick)=\"warehouseOkClick()\"\n (cancelClick)=\"warehouseCancelClick()\"\n ></warehouse>\n <characteristic-answer\n #characteristicAnswer\n (okClick)=\"handleCharacteristicAnswerOkClick($event)\"\n ></characteristic-answer>\n ",
|
|
7061
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
|
|
7062
|
+
},] }
|
|
7063
|
+
];
|
|
7064
|
+
TransactionManagerComponent.ctorParameters = function () { return [
|
|
7065
|
+
{ type: TransactionService },
|
|
7066
|
+
{ type: TransactionEventService },
|
|
7067
|
+
{ type: corecomponents_v12.PromptService },
|
|
7068
|
+
{ type: DictionaryService }
|
|
7069
|
+
]; };
|
|
7070
|
+
TransactionManagerComponent.propDecorators = {
|
|
7071
|
+
warehouse: [{ type: i0.ViewChild, args: ["warehouse",] }],
|
|
7072
|
+
characteristicAnswer: [{ type: i0.ViewChild, args: ["characteristicAnswer",] }],
|
|
7073
|
+
linesChanged: [{ type: i0.Output }],
|
|
7074
|
+
articleAdded: [{ type: i0.Output }]
|
|
7075
|
+
};
|
|
7076
|
+
|
|
7077
|
+
var ServiceOrderComponent = /** @class */ (function (_super) {
|
|
7078
|
+
__extends(ServiceOrderComponent, _super);
|
|
7079
|
+
function ServiceOrderComponent(service, transactionEvents, iconCacheService, _promptService) {
|
|
7080
|
+
var _this = _super.call(this, service) || this;
|
|
7081
|
+
_this.service = service;
|
|
7082
|
+
_this.transactionEvents = transactionEvents;
|
|
7083
|
+
_this.iconCacheService = iconCacheService;
|
|
7084
|
+
_this._promptService = _promptService;
|
|
7085
|
+
_this.iconThickLines = corecomponents_v12.CoreComponentsIcon.ThickLines;
|
|
7086
|
+
_this.iconThinLines = corecomponents_v12.CoreComponentsIcon.ThinLines;
|
|
7087
|
+
_this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
|
|
7088
|
+
_this.viewModes = ContentViewMode;
|
|
7089
|
+
_this.canPlanDelivery = false;
|
|
7090
|
+
_this.showTotals = true;
|
|
7091
|
+
_this.contextMenuItems = [];
|
|
7092
|
+
_this.isRouteOptimizationConfigured = false;
|
|
7093
|
+
_this.activeViewMode = ContentViewMode.List;
|
|
7094
|
+
_this.floatButtonSelected = false;
|
|
7095
|
+
_this.newArticleNr = "";
|
|
7096
|
+
_this._subs = [];
|
|
7097
|
+
return _this;
|
|
7098
|
+
}
|
|
7099
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "inListView", {
|
|
7100
|
+
get: function () {
|
|
7101
|
+
return this.activeViewMode === ContentViewMode.List;
|
|
7102
|
+
},
|
|
7103
|
+
enumerable: false,
|
|
7104
|
+
configurable: true
|
|
7105
|
+
});
|
|
7106
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "inGridView", {
|
|
7107
|
+
get: function () {
|
|
7108
|
+
return this.activeViewMode === ContentViewMode.Grid;
|
|
7109
|
+
},
|
|
7110
|
+
enumerable: false,
|
|
7111
|
+
configurable: true
|
|
7112
|
+
});
|
|
7113
|
+
ServiceOrderComponent.prototype.ngOnInit = function () {
|
|
7114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7115
|
+
var _this = this;
|
|
7116
|
+
return __generator(this, function (_a) {
|
|
7117
|
+
this._subs.push(this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
|
|
7118
|
+
if (transactionInfoResponse.isSuccess) {
|
|
7119
|
+
_this.transaction = transactionInfoResponse;
|
|
7120
|
+
if (_this.transaction && _this.transaction.transactionInfo) {
|
|
7121
|
+
_this.customerId = Number(_this.transaction.transactionInfo.relation.relationNr);
|
|
7122
|
+
_this.relationId = _this.transaction.transactionInfo.relation.relationId;
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
}), this.transactionEvents.rightSidebarClose.subscribe(function () {
|
|
7126
|
+
_this.moveFloatingButtonToRight();
|
|
7127
|
+
}), this.transactionEvents.transactionLineClicked.subscribe(function (transactionLine) {
|
|
7128
|
+
_this._selectedTransLine = transactionLine;
|
|
7129
|
+
_this.moveFloatingButtonToLeft();
|
|
7130
|
+
}), this.transactionEvents.scrollContent.subscribe(function (event) {
|
|
7131
|
+
_this.hideOrderTotals(event);
|
|
7132
|
+
}));
|
|
7133
|
+
return [2 /*return*/];
|
|
7134
|
+
});
|
|
7135
|
+
});
|
|
7136
|
+
};
|
|
7137
|
+
ServiceOrderComponent.prototype.ngAfterViewInit = function () {
|
|
7138
|
+
var _this = this;
|
|
7139
|
+
this._subs.push(this._transactionManager.articleAdded.subscribe(function (transactionInfoResponse) {
|
|
7140
|
+
_this.transaction = transactionInfoResponse;
|
|
7141
|
+
}));
|
|
7142
|
+
};
|
|
7143
|
+
ServiceOrderComponent.prototype.ngOnDestroy = function () {
|
|
7144
|
+
this._subs.forEach(function (sub) { return sub.unsubscribe(); });
|
|
7145
|
+
};
|
|
7146
|
+
ServiceOrderComponent.prototype.animationFn = function () {
|
|
7147
|
+
return animations.trigger("showPopup", [
|
|
7148
|
+
animations.state("void", animations.style({ transform: "translate3d(0, 0, 0)" })),
|
|
7149
|
+
animations.state("*", animations.style({ transform: "translate3d(100%, 0, 0)" })),
|
|
7150
|
+
animations.transition("void <=> *", [
|
|
7151
|
+
animations.animate("200ms ease-in-out")
|
|
7152
|
+
])
|
|
7153
|
+
]);
|
|
7154
|
+
};
|
|
7155
|
+
ServiceOrderComponent.prototype.trackByFn = function (index, line) {
|
|
7156
|
+
return line.lineNr;
|
|
7157
|
+
};
|
|
7158
|
+
ServiceOrderComponent.prototype.handleRowsSelected = function (rows) {
|
|
7159
|
+
this._selectedTransLine = rows.find(function (x) { return x !== undefined; });
|
|
7160
|
+
};
|
|
7161
|
+
ServiceOrderComponent.prototype.handlePlanningRequest = function (event) {
|
|
7162
|
+
// TODO: handlePlanningRequest... from new Planning package
|
|
7163
|
+
};
|
|
7164
|
+
ServiceOrderComponent.prototype.moveFloatingButtonToLeft = function () {
|
|
7165
|
+
if (this.floatButtonRightPosition === ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR) {
|
|
7166
|
+
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR;
|
|
7167
|
+
}
|
|
7168
|
+
};
|
|
7169
|
+
ServiceOrderComponent.prototype.moveFloatingButtonToRight = function () {
|
|
7170
|
+
if (this.floatButtonRightPosition === ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR) {
|
|
7171
|
+
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR;
|
|
7172
|
+
}
|
|
7173
|
+
};
|
|
7174
|
+
ServiceOrderComponent.prototype.onOkClick = function () {
|
|
7175
|
+
this.hide();
|
|
7176
|
+
};
|
|
7177
|
+
ServiceOrderComponent.prototype.hide = function () {
|
|
7178
|
+
this.floatButtonSelected = false;
|
|
7179
|
+
};
|
|
7180
|
+
ServiceOrderComponent.prototype.floatButtonClick = function () {
|
|
7181
|
+
this.floatButtonSelected = true;
|
|
7182
|
+
this._transactionArticleTextComponent.visible = this.floatButtonSelected;
|
|
7183
|
+
};
|
|
7184
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "subHeader", {
|
|
7185
|
+
get: function () {
|
|
7186
|
+
if (this._selectedTransLine) {
|
|
7187
|
+
return this._selectedTransLine.goodDescription;
|
|
7188
|
+
}
|
|
7189
|
+
return "";
|
|
7190
|
+
},
|
|
7191
|
+
enumerable: false,
|
|
7192
|
+
configurable: true
|
|
7193
|
+
});
|
|
7194
|
+
ServiceOrderComponent.prototype.hideOrderTotals = function (event) {
|
|
7195
|
+
this.showTotals = false;
|
|
7196
|
+
};
|
|
7197
|
+
ServiceOrderComponent.prototype.addArticleLine = function (event) {
|
|
7198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7199
|
+
return __generator(this, function (_a) {
|
|
7200
|
+
switch (_a.label) {
|
|
7201
|
+
case 0:
|
|
7202
|
+
if (!(event.code === "Enter")) return [3 /*break*/, 2];
|
|
7203
|
+
if (!(this.newArticleNr && this.newArticleNr !== "")) return [3 /*break*/, 2];
|
|
7204
|
+
return [4 /*yield*/, this._transactionManager.addArticleLine(this.transactionInfo.uuid, this.newArticleNr, 1, 0, PositionGridRow.After)];
|
|
7205
|
+
case 1:
|
|
7206
|
+
_a.sent();
|
|
7207
|
+
_a.label = 2;
|
|
7208
|
+
case 2: return [2 /*return*/];
|
|
7209
|
+
}
|
|
7210
|
+
});
|
|
7211
|
+
});
|
|
7212
|
+
};
|
|
7213
|
+
return ServiceOrderComponent;
|
|
7214
|
+
}(TransactionBaseComponent));
|
|
7215
|
+
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR = 50;
|
|
7216
|
+
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR = 350;
|
|
7217
|
+
ServiceOrderComponent.decorators = [
|
|
7218
|
+
{ type: i0.Component, args: [{
|
|
7219
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7220
|
+
selector: "service-order",
|
|
7221
|
+
template: "\n <transaction-manager></transaction-manager>\n <div id=\"transaction-general-tab\" style=\"height:100%;\">\n <transaction-header-block\n [relationId]=\"relationId\"\n [transaction]=\"transaction\"\n [canPlanDelivery]=\"canPlanDelivery\"\n (planningRequestButtonClick)=\"handlePlanningRequest($event)\"\n ></transaction-header-block>\n <div *ngIf=\"!isService\">\n <div style=\"display: flex; flex-direction: row; place-content: center\">\n <co-input-text style=\"width: 200px;\"\n [(model)]=\"newArticleNr\"\n [placeholder]=\"'WHERE_ARE_YOU_LOOKING_FOR' | localize\"\n [showClearButton]=\"true\"\n (keypress)=\"addArticleLine($event)\"\n ></co-input-text>\n </div>\n <div class=\"transaction-view\" fxLayout=\"row\" fxLayoutGap=\"1px\" fxLayoutAlign=\"flex-end\">\n <div class=\"view-mode-buttons\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n <co-button [iconData]=\"iconCacheService.getIcon(iconThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.List\">\n <transaction-order-line-view *ngFor=\"let line of transactionLines; trackBy:trackByFn;\"\n [line]=\"line\"\n ></transaction-order-line-view>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.Grid\">\n <transaction-order-lines [transaction]=\"transaction\"></transaction-order-lines>\n </div>\n <div class=\"floating-icon-wrapper\" [style.right.px]=\"floatButtonRightPosition\">\n <icon [icon]=\"iconOrder\"\n class=\"light\"\n (click)=\"floatButtonClick()\" id=\"floatingIcon\"\n [style.right.px]=\"floatButtonRightPosition\"></icon>\n </div>\n </div>\n <transaction-order-totals *ngIf=\"!isService\"\n [ngClass]=\"showTotals ? 'transaction-totals-show' : 'transaction-totals-hide'\"></transaction-order-totals>\n </div>\n\n <transaction-article-text></transaction-article-text>\n ",
|
|
7222
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host :host{display:flex}.flex-center{flex-direction:row}:host :host{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.transaction-view .view-mode-buttons{margin-left:11px}:host :host{width:100%}:host :host{overflow:hidden}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host :host{padding-bottom:60px}.page-wrapper :host{padding:20px;margin-bottom:60px}:host transaction-order-totals{display:flex;flex-direction:column;align-items:flex-end}:host .transaction-totals-show{padding:20px}:host .transaction-totals-hide{position:relative;bottom:0;right:0}::ng-deep #transaction_planning_agenda{top:160px!important;width:calc(100vw - 80px)!important}::ng-deep #transaction_planning_agenda .popup-card-title{padding:10px 20px;background:#74B77F;color:#fff}::ng-deep #transaction_planning_agenda .popup-card-title .header-wrapper{align-items:center!important}::ng-deep #transaction_planning_agenda .popup-card-title .separator{border-color:#fff!important}::ng-deep #transaction_planning_agenda .popup-card-title .header{font-size:15px;font-weight:normal}::ng-deep #transaction_planning_agenda .popup-card-title .sub-header{font-size:18px;color:#fff!important;font-weight:bold!important}::ng-deep #transaction_planning_agenda .popup-card-title button-select icon [fill]{fill:#fff}::ng-deep #transaction_planning_agenda .popup-card-content{overflow:hidden}@media only screen and (max-width: 599px){::ng-deep #transaction_planning_agenda{width:100vw!important}::ng-deep #transaction_planning_agenda .popup-card-content{padding:0}}.column-separator{padding-right:25px;border-right:1px solid #0000001c}.floating-icon-wrapper{position:fixed;bottom:50px;right:50px;display:flex;flex-shrink:0;align-items:center;justify-content:center;background:#475060;height:50px;width:50px;opacity:.5;transition:opacity .4s ease-in-out;border-radius:50%;overflow:hidden;box-shadow:0 0 6px #0009;-webkit-box-shadow:0px 0px 6px 0px rgba(0,0,0,.6);-moz-box-shadow:0px 0px 6px 0px rgba(0,0,0,.6);cursor:pointer}.floating-icon-wrapper:hover{opacity:1;transition:opacity .4s ease-in-out}.floating-icon-wrapper ::ng-deep icon{height:44px!important;width:44px!important;color:#fff!important;flex-shrink:0}.transaction-wrapper{padding:0 20px}.view-mode-buttons co-button{padding:0}.transaction-view{display:flex;margin-top:10px;justify-content:stretch}.transaction-view .view-mode-buttons{display:flex;flex-direction:row}.transaction-view .view-mode-buttons button-select ::ng-deep button-colijn{border-radius:0}.transaction-view .view-mode-buttons button-select:first-child{margin-right:5px}.transaction-view .view-mode-buttons button-select:first-child ::ng-deep button-colijn{border-radius:3px}.transaction-view .view-mode-buttons button-select:nth-child(2) ::ng-deep button-colijn{border-top-left-radius:3px;border-bottom-left-radius:3px}.transaction-view .view-mode-buttons button-select:last-child ::ng-deep button-colijn{border-top-right-radius:3px;border-bottom-right-radius:3px}\n"]
|
|
7223
|
+
},] }
|
|
7224
|
+
];
|
|
7225
|
+
ServiceOrderComponent.ctorParameters = function () { return [
|
|
7226
|
+
{ type: TransactionService },
|
|
7227
|
+
{ type: TransactionEventService },
|
|
7228
|
+
{ type: corecomponents_v12.IconCacheService },
|
|
7229
|
+
{ type: corecomponents_v12.PromptService }
|
|
7230
|
+
]; };
|
|
7231
|
+
ServiceOrderComponent.propDecorators = {
|
|
7232
|
+
_transactionArticleTextComponent: [{ type: i0.ViewChild, args: [TransactionArticleTextComponent,] }],
|
|
7233
|
+
_transactionManager: [{ type: i0.ViewChild, args: [TransactionManagerComponent,] }]
|
|
7234
|
+
};
|
|
7235
|
+
|
|
7236
|
+
var TransactionOrderTotalsComponent = /** @class */ (function (_super) {
|
|
7237
|
+
__extends(TransactionOrderTotalsComponent, _super);
|
|
7238
|
+
function TransactionOrderTotalsComponent(service) {
|
|
7239
|
+
var _this = _super.call(this, service) || this;
|
|
7240
|
+
_this.service = service;
|
|
7241
|
+
return _this;
|
|
7242
|
+
}
|
|
7243
|
+
return TransactionOrderTotalsComponent;
|
|
7244
|
+
}(TransactionBaseComponent));
|
|
7245
|
+
TransactionOrderTotalsComponent.decorators = [
|
|
7246
|
+
{ type: i0.Component, args: [{
|
|
7247
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7248
|
+
selector: "transaction-order-totals",
|
|
7249
|
+
template: "\n <div class=\"totals-wrapper\">\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'SUBTOTAL' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.grossAmount | coCurrency | coCurrency\"></div>\n </div>\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'VAT_AMOUNT' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"totals-item total\">\n <div class=\"totals-item-description\" [textContent]=\"'TRANSACTION_SUM_I' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.netAmount | coCurrency\"></div>\n </div>\n </div>\n ",
|
|
7250
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host .totals-wrapper{width:310px;font-size:13px}:host .totals-item{display:flex;flex-direction:row;height:25px;align-items:center}:host .totals-item>div{text-align:end;width:50%}:host .totals-item.total{font-weight:bold;height:30px;border-top:1px solid #DCE4EA}\n"]
|
|
7251
|
+
},] }
|
|
7252
|
+
];
|
|
7253
|
+
TransactionOrderTotalsComponent.ctorParameters = function () { return [
|
|
7254
|
+
{ type: TransactionService }
|
|
7255
|
+
]; };
|
|
7256
|
+
|
|
7257
|
+
var TransactionOrderLineViewComponent = /** @class */ (function () {
|
|
7258
|
+
function TransactionOrderLineViewComponent(_service, _eventService) {
|
|
7259
|
+
this._service = _service;
|
|
7260
|
+
this._eventService = _eventService;
|
|
7261
|
+
this.stock = stockStatus_enum.StockStatus.Low;
|
|
7262
|
+
}
|
|
7263
|
+
TransactionOrderLineViewComponent.prototype.ngOnInit = function () {
|
|
7264
|
+
this._loadArticleImage();
|
|
7265
|
+
};
|
|
7266
|
+
TransactionOrderLineViewComponent.prototype._loadArticleImage = function () {
|
|
7267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7268
|
+
var _a, _b;
|
|
7269
|
+
return __generator(this, function (_c) {
|
|
7270
|
+
switch (_c.label) {
|
|
7271
|
+
case 0:
|
|
7272
|
+
if (!this.line) return [3 /*break*/, 4];
|
|
7273
|
+
_a = this;
|
|
7274
|
+
if (!this.line) return [3 /*break*/, 2];
|
|
7275
|
+
return [4 /*yield*/, this._service.retrieveLineImage(this.line)];
|
|
7276
|
+
case 1:
|
|
7277
|
+
_b = _c.sent();
|
|
7278
|
+
return [3 /*break*/, 3];
|
|
7279
|
+
case 2:
|
|
7280
|
+
_b = undefined;
|
|
7281
|
+
_c.label = 3;
|
|
7282
|
+
case 3:
|
|
7283
|
+
_a.image = _b;
|
|
7284
|
+
_c.label = 4;
|
|
7285
|
+
case 4: return [2 /*return*/];
|
|
7286
|
+
}
|
|
7287
|
+
});
|
|
7288
|
+
});
|
|
7289
|
+
};
|
|
7290
|
+
TransactionOrderLineViewComponent.prototype.transactionLineClick = function (line) {
|
|
7291
|
+
this._eventService.transactionLineClicked.next(this.line);
|
|
7292
|
+
};
|
|
7293
|
+
return TransactionOrderLineViewComponent;
|
|
7294
|
+
}());
|
|
7295
|
+
TransactionOrderLineViewComponent.decorators = [
|
|
7296
|
+
{ type: i0.Component, args: [{
|
|
7297
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7298
|
+
selector: "transaction-order-line-view",
|
|
7299
|
+
template: "\n <div class=\"transaction-order-line-r\" fxFlex (click)=\"transactionLineClick(line)\">\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"transaction-order-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <div>\n <span [innerHTML]=\"line.configurationReadable\" class=\"cart-line-description-detail\"></span>\n </div>\n </div>\n <div fxLayout=\"column\" class=\"transaction-order-line-image\">\n <image-display [model]=\"image\"></image-display>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"transaction-order-line-right\">\n <div fxLayout=\"column\" class=\"transaction-order-line-stock\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"transaction-order-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"line.amount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"></co-input-number-picker>\n </div>\n <div class=\"transaction-order-line-totals\">\n <span [textContent]=\"line.netLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n ",
|
|
7300
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.horizontal{display:flex;flex-direction:row}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:15em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
|
|
7301
|
+
},] }
|
|
7302
|
+
];
|
|
7303
|
+
TransactionOrderLineViewComponent.ctorParameters = function () { return [
|
|
7304
|
+
{ type: TransactionService },
|
|
7305
|
+
{ type: TransactionEventService }
|
|
7306
|
+
]; };
|
|
7307
|
+
TransactionOrderLineViewComponent.propDecorators = {
|
|
7308
|
+
line: [{ type: i0.Input }]
|
|
7309
|
+
};
|
|
7310
|
+
|
|
7311
|
+
var TransactionOrderLinesComponent = /** @class */ (function (_super) {
|
|
7312
|
+
__extends(TransactionOrderLinesComponent, _super);
|
|
7313
|
+
function TransactionOrderLinesComponent(service, _eventService, _dictionaryService) {
|
|
7314
|
+
var _this = _super.call(this, service) || this;
|
|
7315
|
+
_this.service = service;
|
|
7316
|
+
_this._eventService = _eventService;
|
|
7317
|
+
_this._dictionaryService = _dictionaryService;
|
|
7318
|
+
_this.createServiceClick = new i0.EventEmitter();
|
|
7319
|
+
_this.nothingSelected = true;
|
|
7320
|
+
_this.columns = [];
|
|
7321
|
+
_this.columns.push({ field: "articleNumber", headerText: _this._dictionaryService.get("ARTICLE_NR"), allowFiltering: false }, { field: "goodDescription", headerText: _this._dictionaryService.get("DESCRIPTION") }, { field: "detailsAsString", headerText: _this._dictionaryService.get("DETAILS") }, { field: "price", headerText: _this._dictionaryService.get("PRICE") }, { field: "amount", headerText: _this._dictionaryService.get("NUMBER") }, { field: "lineTotal", headerText: _this._dictionaryService.get("SUBTOTAL") }, { field: "logisticState", headerText: _this._dictionaryService.get("STATE") }, { field: "expectedDeliveryDate", headerText: _this._dictionaryService.get("EXPECTED_DELIVERY_DATE") });
|
|
7322
|
+
return _this;
|
|
7323
|
+
}
|
|
7324
|
+
Object.defineProperty(TransactionOrderLinesComponent.prototype, "pagingEnabled", {
|
|
7325
|
+
get: function () {
|
|
7326
|
+
if (this.transactionLines) {
|
|
7327
|
+
return this.transactionLines.length >= TransactionOrderLinesComponent.MAX_TRANSACTION_LINES;
|
|
7328
|
+
}
|
|
7329
|
+
return false;
|
|
7330
|
+
},
|
|
7331
|
+
enumerable: false,
|
|
7332
|
+
configurable: true
|
|
7333
|
+
});
|
|
7334
|
+
Object.defineProperty(TransactionOrderLinesComponent.prototype, "selectedTransLine", {
|
|
7335
|
+
get: function () {
|
|
7336
|
+
return this._selectedTransLine;
|
|
7337
|
+
},
|
|
7338
|
+
set: function (value) {
|
|
7339
|
+
this._selectedTransLine = value;
|
|
7340
|
+
this.nothingSelected = this._selectedTransLine === null;
|
|
7341
|
+
},
|
|
7342
|
+
enumerable: false,
|
|
7343
|
+
configurable: true
|
|
7344
|
+
});
|
|
7345
|
+
TransactionOrderLinesComponent.prototype.onRowClick = function (row) {
|
|
7346
|
+
this.selectedTransLine = row;
|
|
7347
|
+
this._eventService.transactionLineClicked.next(this.selectedTransLine);
|
|
7348
|
+
};
|
|
7349
|
+
TransactionOrderLinesComponent.prototype.onRowDeselect = function (event) {
|
|
7350
|
+
this.selectedTransLine = null;
|
|
7351
|
+
};
|
|
7352
|
+
// TODO: navragen wat de bedoeling is, zie originele source iOneJS
|
|
7353
|
+
TransactionOrderLinesComponent.prototype.newServiceRequestClick = function () {
|
|
7354
|
+
if (this.nothingSelected) {
|
|
7355
|
+
return;
|
|
7356
|
+
}
|
|
7357
|
+
this.createServiceClick.emit(this._selectedTransLine);
|
|
7358
|
+
};
|
|
7359
|
+
return TransactionOrderLinesComponent;
|
|
7360
|
+
}(TransactionBaseComponent));
|
|
7361
|
+
TransactionOrderLinesComponent.MAX_TRANSACTION_LINES = 20;
|
|
7362
|
+
TransactionOrderLinesComponent.decorators = [
|
|
7363
|
+
{ type: i0.Component, args: [{
|
|
7364
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7365
|
+
selector: "transaction-order-lines",
|
|
7366
|
+
template: "\n <co-grid #transactionGrid\n [data]=\"transactionLines\"\n [columns]=\"columns\"\n [pagingEnabled]=\"pagingEnabled\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"onRowClick($event)\"\n ></co-grid>\n ",
|
|
7367
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:15em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
|
|
7368
|
+
},] }
|
|
7369
|
+
];
|
|
7370
|
+
TransactionOrderLinesComponent.ctorParameters = function () { return [
|
|
7371
|
+
{ type: TransactionService },
|
|
7372
|
+
{ type: TransactionEventService },
|
|
7373
|
+
{ type: DictionaryService }
|
|
7374
|
+
]; };
|
|
7375
|
+
TransactionOrderLinesComponent.propDecorators = {
|
|
7376
|
+
transactionGrid: [{ type: i0.ViewChild, args: ["transactionGrid",] }],
|
|
7377
|
+
createServiceClick: [{ type: i0.Output }]
|
|
7378
|
+
};
|
|
7379
|
+
|
|
7380
|
+
var TransactionRelationAddressComponent = /** @class */ (function () {
|
|
7381
|
+
function TransactionRelationAddressComponent(_dictionary, _connector) {
|
|
7382
|
+
this._dictionary = _dictionary;
|
|
7383
|
+
this._connector = _connector;
|
|
7384
|
+
this.countries = [];
|
|
7385
|
+
this.fields = { text: "description", value: "code" };
|
|
7386
|
+
this.postalCodeCheckErrorMessage = "";
|
|
7387
|
+
this._prevPostalCodeForCheck = "";
|
|
7388
|
+
}
|
|
7389
|
+
Object.defineProperty(TransactionRelationAddressComponent.prototype, "address", {
|
|
7390
|
+
get: function () {
|
|
7391
|
+
if (this._address === undefined) {
|
|
7392
|
+
this._address = new address_bo.Address();
|
|
7393
|
+
}
|
|
7394
|
+
return this._address;
|
|
7395
|
+
},
|
|
7396
|
+
set: function (address) {
|
|
7397
|
+
this._address = address;
|
|
7398
|
+
},
|
|
7399
|
+
enumerable: false,
|
|
7400
|
+
configurable: true
|
|
7401
|
+
});
|
|
7402
|
+
TransactionRelationAddressComponent.prototype.ngOnInit = function () {
|
|
7403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7404
|
+
var _a;
|
|
7405
|
+
return __generator(this, function (_b) {
|
|
7406
|
+
switch (_b.label) {
|
|
7407
|
+
case 0:
|
|
7408
|
+
_a = this;
|
|
7409
|
+
return [4 /*yield*/, this._connector.getCountries()];
|
|
7410
|
+
case 1:
|
|
7411
|
+
_a.countries = _b.sent();
|
|
7412
|
+
return [2 /*return*/];
|
|
7413
|
+
}
|
|
7414
|
+
});
|
|
7415
|
+
});
|
|
7416
|
+
};
|
|
7417
|
+
TransactionRelationAddressComponent.prototype.checkForPostalCodeCheckError = function () {
|
|
7418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7419
|
+
var postalCodeResponse;
|
|
7420
|
+
return __generator(this, function (_a) {
|
|
7421
|
+
switch (_a.label) {
|
|
7422
|
+
case 0:
|
|
7423
|
+
if (!this.address.postalCode || isNill_function.isNill(this.address.houseNo)) {
|
|
7424
|
+
this.postalCodeCheckErrorMessage = "";
|
|
7425
|
+
return [2 /*return*/];
|
|
7426
|
+
}
|
|
7427
|
+
if (!(this._prevPostalCodeForCheck !== this.address.postalCode || this._prevHouseNoForCheck !== this.address.houseNo)) return [3 /*break*/, 2];
|
|
7428
|
+
this._prevPostalCodeForCheck = this.address.postalCode;
|
|
7429
|
+
this._prevHouseNoForCheck = this.address.houseNo;
|
|
7430
|
+
return [4 /*yield*/, this._connector.getPostalCodeRetrieval((this.address.postalCode ? this.address.postalCode : ""), StringUtils.ParseString(this.address.houseNo))];
|
|
7431
|
+
case 1:
|
|
7432
|
+
postalCodeResponse = _a.sent();
|
|
7433
|
+
if (postalCodeResponse && postalCodeResponse.isBadAddress) {
|
|
7434
|
+
this.postalCodeCheckErrorMessage = this._dictionary.get("UNKNOWN_ADDRESS_CHECK_IT");
|
|
7435
|
+
}
|
|
7436
|
+
else {
|
|
7437
|
+
this.postalCodeCheckErrorMessage = "";
|
|
7438
|
+
this.address.streetName = postalCodeResponse.street;
|
|
7439
|
+
this.address.city = postalCodeResponse.city;
|
|
7440
|
+
}
|
|
7441
|
+
_a.label = 2;
|
|
7442
|
+
case 2: return [2 /*return*/];
|
|
7443
|
+
}
|
|
7444
|
+
});
|
|
7445
|
+
});
|
|
7446
|
+
};
|
|
7447
|
+
TransactionRelationAddressComponent.prototype.changeHouseNo = function () {
|
|
7448
|
+
this.address.houseNo = Number(this.address.houseNo);
|
|
7449
|
+
};
|
|
7450
|
+
return TransactionRelationAddressComponent;
|
|
7451
|
+
}());
|
|
7452
|
+
TransactionRelationAddressComponent.decorators = [
|
|
7453
|
+
{ type: i0.Component, args: [{
|
|
7454
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7455
|
+
selector: "transaction-relation-address",
|
|
7456
|
+
template: "\n <label [textContent]=\"label | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange) = \"changeHouseNo()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n </div>\n </div>\n <div>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.streetName\" [placeholder]=\"'STREET' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.city\" [placeholder]=\"'CITY' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"address.countryId\"\n [source]=\"countries\"\n [fields]=\"fields\"\n [placeholder]=\"'COUNTRY'| localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n </div>\n </div>\n ",
|
|
7457
|
+
styles: [".button-wrapper{margin-top:10px;justify-content:center}co-input-radio-button{margin-left:16px}.transaction-relation-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.transaction-relation-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}\n"]
|
|
7458
|
+
},] }
|
|
7459
|
+
];
|
|
7460
|
+
TransactionRelationAddressComponent.ctorParameters = function () { return [
|
|
7461
|
+
{ type: DictionaryService },
|
|
7462
|
+
{ type: IOneConnectorAdapterService }
|
|
7463
|
+
]; };
|
|
7464
|
+
TransactionRelationAddressComponent.propDecorators = {
|
|
7465
|
+
label: [{ type: i0.Input }],
|
|
7466
|
+
address: [{ type: i0.Input }]
|
|
7467
|
+
};
|
|
7468
|
+
|
|
7469
|
+
var TransactionSidebarRightComponent = /** @class */ (function (_super) {
|
|
7470
|
+
__extends(TransactionSidebarRightComponent, _super);
|
|
7471
|
+
function TransactionSidebarRightComponent(service, iconCacheService, _eventService, changeDetector) {
|
|
7472
|
+
var _this = _super.call(this, service) || this;
|
|
7473
|
+
_this.service = service;
|
|
7474
|
+
_this.iconCacheService = iconCacheService;
|
|
7475
|
+
_this._eventService = _eventService;
|
|
7476
|
+
_this.changeDetector = changeDetector;
|
|
7477
|
+
_this.iconDetailView = corecomponents_v12.CoreComponentsIcon.DetailView;
|
|
7478
|
+
_this.iconArrowPointRight = corecomponents_v12.CoreComponentsIcon.ArrowPointRight;
|
|
7479
|
+
_this.iconStock = corecomponents_v12.CoreComponentsIcon.Stock;
|
|
7480
|
+
_this.iconDocuments = corecomponents_v12.CoreComponentsIcon.Documents;
|
|
7481
|
+
_this.test = "";
|
|
7482
|
+
_this.defaultSidebar = new ej2Navigations.Sidebar({
|
|
7483
|
+
width: "320px",
|
|
7484
|
+
type: "Auto",
|
|
7485
|
+
isOpen: false,
|
|
7486
|
+
position: "Right",
|
|
7487
|
+
target: "#app-module-sidebar-right"
|
|
7488
|
+
});
|
|
7489
|
+
_this._subscriptions = [];
|
|
7490
|
+
_this._subscriptions.push(_this._eventService.transactionLineClicked.subscribe(function (transactionLine) {
|
|
7491
|
+
_this.transactionLine = transactionLine;
|
|
7492
|
+
_this.defaultSidebar.show();
|
|
7493
|
+
}));
|
|
7494
|
+
return _this;
|
|
7495
|
+
}
|
|
7496
|
+
TransactionSidebarRightComponent.prototype.ngOnInit = function () {
|
|
7497
|
+
var _this = this;
|
|
7498
|
+
setTimeout(function () {
|
|
7499
|
+
_this.defaultSidebar.appendTo("#default-sidebar");
|
|
7500
|
+
_this.sidebarCloseClick();
|
|
7501
|
+
_this.changeDetector.detectChanges();
|
|
7502
|
+
});
|
|
7503
|
+
};
|
|
7504
|
+
TransactionSidebarRightComponent.prototype.ngOnDestroy = function () {
|
|
7505
|
+
this._subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
7506
|
+
};
|
|
7507
|
+
TransactionSidebarRightComponent.prototype.sidebarCloseClick = function () {
|
|
7508
|
+
this.defaultSidebar.hide();
|
|
7509
|
+
this._eventService.rightSidebarClose.next();
|
|
7510
|
+
};
|
|
7511
|
+
return TransactionSidebarRightComponent;
|
|
7512
|
+
}(TransactionBaseComponent));
|
|
7513
|
+
TransactionSidebarRightComponent.decorators = [
|
|
7514
|
+
{ type: i0.Component, args: [{
|
|
7515
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7516
|
+
selector: "transaction-sidebar-right",
|
|
7517
|
+
template: "\n <div id=\"default-sidebar\">\n <div>\n <icon [icon]=\"iconArrowPointRight\" (click)=\"sidebarCloseClick()\"></icon>\n <label [textContent]=\"transactionLine?.goodDescription\"></label>\n </div>\n <div>\n <ejs-tab id=\"element2\">\n <e-tabitems>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconDetailView\" title=\"Regeldetails\"></icon>\n </ng-template>\n <ng-template #content>\n <transaction-line-accordion [transactionLine]=\"transactionLine\"></transaction-line-accordion>\n </ng-template>\n </e-tabitem>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconStock\" title=\"Voorraad\"></icon>\n </ng-template>\n <ng-template #content>\n <div style=\"margin: 10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In voorraad\"></co-input-text>\n <co-input-text placeholder=\"In order voorraad\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In order commissie\"></co-input-text>\n <co-input-text placeholder=\"Beschikbaar\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In bestelling\"></co-input-text>\n <co-input-text placeholder=\"Later beschikbaar\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Toegewezen\" [model]=\"transactionLine?.amount\"></co-input-text>\n <co-input-text placeholder=\"Vrije voorraad\"></co-input-text>\n </div>\n </div>\n </ng-template>\n </e-tabitem>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconDocuments\" title=\"Documenten en notities\"></icon>\n </ng-template>\n <ng-template #content>\n <div>\n Documenten en notities\n </div>\n </ng-template>\n </e-tabitem>\n </e-tabitems>\n </ejs-tab>\n </div>\n </div>\n ",
|
|
7518
|
+
styles: [":host{display:block;width:100%}.e-accordion{border:none}.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon .e-icons{color:#add8e6}.e-tab .e-toolbar-items{display:flex;justify-content:center}\n"]
|
|
7519
|
+
},] }
|
|
7520
|
+
];
|
|
7521
|
+
TransactionSidebarRightComponent.ctorParameters = function () { return [
|
|
7522
|
+
{ type: TransactionService },
|
|
7523
|
+
{ type: corecomponents_v12.IconCacheService },
|
|
7524
|
+
{ type: TransactionEventService },
|
|
7525
|
+
{ type: i0.ChangeDetectorRef }
|
|
7526
|
+
]; };
|
|
7527
|
+
|
|
7528
|
+
var TransactionLineAccordionComponent = /** @class */ (function () {
|
|
7529
|
+
function TransactionLineAccordionComponent(changeDetector) {
|
|
7530
|
+
this.changeDetector = changeDetector;
|
|
7531
|
+
this.transactionLine = new transactionLineInfo_bo.TransactionLineInfo;
|
|
7532
|
+
this.accordion = new ej2Navigations.Accordion({});
|
|
7533
|
+
this._subscriptions = [];
|
|
7534
|
+
}
|
|
7535
|
+
TransactionLineAccordionComponent.prototype.ngOnInit = function () {
|
|
7536
|
+
var _this = this;
|
|
7537
|
+
setTimeout(function () {
|
|
7538
|
+
_this.accordion.appendTo("#accordion_html_markup");
|
|
7539
|
+
_this.changeDetector.detectChanges();
|
|
7540
|
+
});
|
|
7541
|
+
};
|
|
7542
|
+
return TransactionLineAccordionComponent;
|
|
7543
|
+
}());
|
|
7544
|
+
TransactionLineAccordionComponent.decorators = [
|
|
7545
|
+
{ type: i0.Component, args: [{
|
|
7546
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7547
|
+
selector: "transaction-line-accordion",
|
|
7548
|
+
template: "\n <div id='container'>\n <div id='accordion_html_markup'>\n <div>\n <div>Prijsdetails</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Aantal\" [model]=\"transactionLine?.amount\"></co-input-text>\n <co-input-text placeholder=\"Verkoopprijs\" [model]=\"transactionLine?.price\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Adviesprijs\"></co-input-text>\n <co-input-text placeholder=\"Totaal korting\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Koritngspercentage\"></co-input-text>\n <co-input-text placeholder=\"Kortingsbedrag\" [model]=\"transactionLine?.discountAmount\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Speciale korting\"></co-input-text>\n <co-input-text placeholder=\"Transactiekorting\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Business rule korting\"></co-input-text>\n <co-input-text placeholder=\"Kwantumkorting\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Toeslag\"></co-input-text>\n <co-input-text placeholder=\"BTW\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Prijslijst\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div>Logistiek</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Commissiecode\"></co-input-text>\n <co-input-text placeholder=\"Levermethode\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Montagetijd\"></co-input-text>\n <co-input-text placeholder=\"Bewerkingstijd\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Leverancier\"></co-input-text>\n <co-input-text placeholder=\"Artikelnummer leverancier\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In/uit collectie\"></co-input-text>\n <co-input-text placeholder=\"Dropshipment\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Leverdatum\"></co-input-text>\n <co-input-text placeholder=\"Referentie\"></co-input-text>\n </div>\n </div>\n </div>\n\n </div>\n <div>\n <div id=\"header\">Opmaak</div>\n <div id=\"opmaak\">\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Orderregelset\"></co-input-text>\n <co-input-text placeholder=\"Hoofdstuk\"></co-input-text>\n </div>\n <div>\n <co-input-text placeholder=\"Laatste wijziging Door\"></co-input-text>\n </div>\n <div>\n <co-input-text placeholder=\"Zichtbaar op documenten\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div>Artikelkenmerken</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Breedte\"></co-input-text>\n <co-input-text placeholder=\"Lengte\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Hoogte\"></co-input-text>\n <co-input-text placeholder=\"Zitdiepte\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Zithoogte\"></co-input-text>\n <co-input-text placeholder=\"Volume\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Stopmaat\"></co-input-text>\n <co-input-text placeholder=\"Patroonhoogte\"></co-input-text>\n </div>\n <br>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Standaard levertijd\"></co-input-text>\n <co-input-text placeholder=\"Standaard levertijd verkoop\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Eenheid verkoop\"></co-input-text>\n <co-input-text placeholder=\"Verkoophoeveelheid\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Aantal\"></co-input-text>\n <co-input-text placeholder=\"Colli\"></co-input-text>\n </div>\n <br>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Omzetgroep\"></co-input-text>\n <co-input-text placeholder=\"Artikelgroep\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Hoofdartikel\"></co-input-text>\n <co-input-text placeholder=\"Sfeer\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Concept\"></co-input-text>\n <co-input-text placeholder=\"Afdeling\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n ",
|
|
7549
|
+
styles: [""]
|
|
7550
|
+
},] }
|
|
7551
|
+
];
|
|
7552
|
+
TransactionLineAccordionComponent.ctorParameters = function () { return [
|
|
7553
|
+
{ type: i0.ChangeDetectorRef }
|
|
7554
|
+
]; };
|
|
7555
|
+
TransactionLineAccordionComponent.propDecorators = {
|
|
7556
|
+
transactionLine: [{ type: i0.Input }]
|
|
7557
|
+
};
|
|
7558
|
+
|
|
7559
|
+
var TransactionRelationEditComponent = /** @class */ (function (_super) {
|
|
7560
|
+
__extends(TransactionRelationEditComponent, _super);
|
|
7561
|
+
function TransactionRelationEditComponent(service) {
|
|
7562
|
+
var _this = _super.call(this, service) || this;
|
|
7563
|
+
_this.service = service;
|
|
7564
|
+
_this.showPopup = false;
|
|
7565
|
+
_this.relType = relationNameKind_enum.RelationNameKind;
|
|
7566
|
+
_this.genderType = genderType_enum.GenderType;
|
|
7567
|
+
_this.validSubmit = new i0.EventEmitter();
|
|
7568
|
+
_this.invalidSubmit = new i0.EventEmitter();
|
|
7569
|
+
_this.dateOfBirth = new Date();
|
|
7570
|
+
_this.phoneNumber = new contactOption_bo.ContactOption();
|
|
7571
|
+
return _this;
|
|
7572
|
+
}
|
|
7573
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "readonly", {
|
|
7574
|
+
get: function () {
|
|
7575
|
+
return false;
|
|
7576
|
+
},
|
|
7577
|
+
enumerable: false,
|
|
7578
|
+
configurable: true
|
|
7579
|
+
});
|
|
7580
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "subHeader", {
|
|
7581
|
+
get: function () {
|
|
7582
|
+
return "";
|
|
7583
|
+
},
|
|
7584
|
+
enumerable: false,
|
|
7585
|
+
configurable: true
|
|
7586
|
+
});
|
|
7587
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "editFirstAddress", {
|
|
7588
|
+
get: function () {
|
|
7589
|
+
if (this.firstAddress) {
|
|
7590
|
+
return this.firstAddress;
|
|
7591
|
+
}
|
|
7592
|
+
else if (this.customer) {
|
|
7593
|
+
var address = new address_bo.Address();
|
|
7594
|
+
address.addressType = addressType_enum.AddressType.DeliveryAddress;
|
|
7595
|
+
address.startDate = new Date();
|
|
7596
|
+
address.sequence = this.customer.getNextAddressSequence();
|
|
7597
|
+
this.customer.addresses.push(address);
|
|
7598
|
+
return address;
|
|
7599
|
+
}
|
|
7600
|
+
},
|
|
7601
|
+
enumerable: false,
|
|
7602
|
+
configurable: true
|
|
7603
|
+
});
|
|
7604
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "firstAddress", {
|
|
7605
|
+
get: function () {
|
|
7606
|
+
if (!this.relation || !this.customer.addresses.length) {
|
|
7607
|
+
return;
|
|
7608
|
+
}
|
|
7609
|
+
return this.customer.getFirstAvailableAddress([
|
|
7610
|
+
addressType_enum.AddressType.DeliveryAddress,
|
|
7611
|
+
addressType_enum.AddressType.BillingAddress,
|
|
7612
|
+
addressType_enum.AddressType.VisitingAddress,
|
|
7613
|
+
addressType_enum.AddressType.MailingAddress,
|
|
7614
|
+
addressType_enum.AddressType.NursingAddress
|
|
7615
|
+
]);
|
|
7616
|
+
},
|
|
7617
|
+
enumerable: false,
|
|
7618
|
+
configurable: true
|
|
7619
|
+
});
|
|
7620
|
+
TransactionRelationEditComponent.prototype.onPopupClose = function () {
|
|
7621
|
+
this.showPopup = false;
|
|
7622
|
+
};
|
|
7623
|
+
TransactionRelationEditComponent.prototype.changeRelationType = function (relationType) {
|
|
7624
|
+
if (this.customer) {
|
|
7625
|
+
this.customer.type = relationType;
|
|
7626
|
+
}
|
|
7627
|
+
};
|
|
7628
|
+
TransactionRelationEditComponent.prototype.changeGenderType = function (genderType) {
|
|
7629
|
+
if (this.customer) {
|
|
7630
|
+
this.customer.gender = genderType;
|
|
7631
|
+
}
|
|
7632
|
+
};
|
|
7633
|
+
TransactionRelationEditComponent.prototype.firstNameChange = function (firstName) {
|
|
7634
|
+
if (this.customer) {
|
|
7635
|
+
this.customer.firstName = firstName;
|
|
7636
|
+
}
|
|
7637
|
+
};
|
|
7638
|
+
TransactionRelationEditComponent.prototype.familyNameChange = function (familyName) {
|
|
7639
|
+
if (this.customer) {
|
|
7640
|
+
this.customer.familyName = familyName;
|
|
7641
|
+
}
|
|
7642
|
+
};
|
|
7643
|
+
return TransactionRelationEditComponent;
|
|
7644
|
+
}(TransactionBaseComponent));
|
|
7645
|
+
TransactionRelationEditComponent.decorators = [
|
|
7646
|
+
{ type: i0.Component, args: [{
|
|
7647
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7648
|
+
selector: "transaction-relation-edit",
|
|
7649
|
+
template: "\n <co-dialog [visible]=\"showPopup\" header=\"ACCOUNT_DETAILS\" (close)=\"onPopupClose()\"\n noClickOutside contentSize>\n <ng-container content>\n <co-form #transactionRelationEditForm (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div style=\"min-width: 500px;\">\n <div>\n <label [textContent]=\"'PERSONAL_DATA' | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n </div>\n <div>\n <div>\n <label [textContent]=\"'ORDER_TYPE' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n </div>\n <div *ngIf=\"customer?.type\">\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"customer.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [checked]=\"customer.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"customer?.type === relType.Private\">\n <label [textContent]=\"'SALUTATION' | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div *ngIf=\"customer?.gender\">\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"customer.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"customer.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"customer.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"customer?.type === relType.Private\">\n <div>\n <label [textContent]=\"'NAME' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize \"\n (modelChange)=\"firstNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.prefix\"\n [placeholder]=\"'PREFIX' | localize \"\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-date\n [placeholder]=\"'DATE_OF_BIRTH' | localize \"\n [(model)]=\"dateOfBirth\"\n required\n ></co-input-date>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"phoneNumber.value\"\n [placeholder]=\"'PHONE_NO' | localize \"\n required\n ></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div *ngIf=\"customer?.type === relType.Company\" class=\"default-flex-column\">\n <label [textContent]=\"'COMPANY_NAME' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n <co-input-text\n [(model)]=\"customer.familyName\"\n [label]=\"'COMPANY_NAME'\"\n required\n ></co-input-text>\n </div>\n </div>\n\n <div>\n <transaction-relation-address\n label=\"DELIVERY_ADDRESS\" [address]=\"editFirstAddress\"\n ></transaction-relation-address>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" class=\"button-wrapper\">\n <default-ok-cancel-buttons\n [okDisabled]=\"readonly\"\n (okClick)=\"transactionRelationEditForm.submit()\"\n (cancelClick)=\"onPopupClose()\"\n ></default-ok-cancel-buttons>\n </div>\n </div>\n </co-form>\n </ng-container>\n </co-dialog>\n ",
|
|
7650
|
+
styles: [".button-wrapper{margin-top:10px;justify-content:center}co-input-radio-button{margin-left:16px}.transaction-relation-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.transaction-relation-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}\n"]
|
|
7651
|
+
},] }
|
|
7652
|
+
];
|
|
7653
|
+
TransactionRelationEditComponent.ctorParameters = function () { return [
|
|
7654
|
+
{ type: TransactionService }
|
|
7655
|
+
]; };
|
|
7656
|
+
TransactionRelationEditComponent.propDecorators = {
|
|
7657
|
+
transactionRelationEditForm: [{ type: i0.ViewChild, args: ["transactionRelationEditForm", { read: corecomponents_v12.FormComponent },] }],
|
|
7658
|
+
showPopup: [{ type: i0.Input }],
|
|
7659
|
+
validSubmit: [{ type: i0.Output }]
|
|
7660
|
+
};
|
|
7661
|
+
|
|
7662
|
+
var TransactionHeaderBlockComponent = /** @class */ (function (_super) {
|
|
7663
|
+
__extends(TransactionHeaderBlockComponent, _super);
|
|
7664
|
+
function TransactionHeaderBlockComponent(service) {
|
|
7665
|
+
var _this = _super.call(this, service) || this;
|
|
7666
|
+
_this.service = service;
|
|
7667
|
+
_this.planningRequestButtonClick = new i0.EventEmitter();
|
|
7668
|
+
return _this;
|
|
7669
|
+
}
|
|
7670
|
+
TransactionHeaderBlockComponent.prototype.showPopupTab = function (index) {
|
|
7671
|
+
this.selectedTab = index;
|
|
7672
|
+
};
|
|
7673
|
+
TransactionHeaderBlockComponent.prototype.tabClick = function () {
|
|
7674
|
+
this.relationPopup.showPopup = true;
|
|
7675
|
+
};
|
|
7676
|
+
TransactionHeaderBlockComponent.prototype.transactionEditClose = function () {
|
|
7677
|
+
this.relationPopup.showPopup = false;
|
|
7678
|
+
};
|
|
7679
|
+
return TransactionHeaderBlockComponent;
|
|
7680
|
+
}(TransactionBaseComponent));
|
|
7681
|
+
TransactionHeaderBlockComponent.decorators = [
|
|
7682
|
+
{ type: i0.Component, args: [{
|
|
7683
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7684
|
+
selector: "transaction-header-block",
|
|
7685
|
+
template: "\n <div fxLayout=\"row wrap\" fxLayout.xs=\"column\">\n <div class=\"summary-block\" (click)=\"tabClick()\">\n <div class=\"block-wrapper\">\n <div class=\"content-wrapper\">\n <div class=\"name\"\n [textContent]=\"relation?.displayName\"></div>\n <div class=\"address link pointer\"\n [textContent]=\"relation?.displayAddressFull\"></div>\n <div class=\"phone link pointer\"\n [textContent]=\"relation?.tel1\"></div>\n <div [textContent]=\"relation?.email\"\n class=\"email link pointer\"\n ></div>\n </div>\n </div>\n </div>\n\n <transaction-service-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-service-info>\n <transaction-service-status class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-service-status>\n <transaction-order-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-order-info>\n <transaction-payment-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-payment-info>\n <transaction-delivery-summary class=\"summary-block\"\n [transaction]=\"transaction\"\n [canPlanDelivery]=\"!isService && canPlanDelivery\"\n (planningRequestButtonClick)=\"planningRequestButtonClick.emit($event)\"\n (click)=\"showPopupTab(1)\"\n ></transaction-delivery-summary>\n <transaction-article-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-article-info>\n <transaction-product-summary class=\"summary-block\"\n [transaction]=\"transaction\"\n [product]=\"product\"\n ></transaction-product-summary>\n </div>\n\n <transaction-relation-edit [customerId]=\"relationId\" (validSubmit)=\"transactionEditClose()\"></transaction-relation-edit>\n ",
|
|
7686
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:15px 0 30px}.name{font-size:13px;font-weight:bold;color:#22313c;margin-bottom:5px}.address,.phone,.email{font-size:13px;line-height:16px;color:#5b6875}.pointer{cursor:pointer}.link{color:#2b60a7}.summary-block{width:calc(25% - 15px);border:2px dashed #DCE4EA;margin:7px;border-radius:15px;position:relative}.summary-block .block-wrapper{position:relative;display:flex;align-items:center;padding:30px 20px}.summary-block:after{content:\"\";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border:1px solid #FFF;pointer-events:none;border-radius:15px}@media only screen and (min-width: 960px) and (max-width: 1279px){.summary-block{width:calc(50% - 15px)}}@media only screen and (max-width: 599px){.summary-block{width:calc(100%);margin:7px 0}}\n"]
|
|
7687
|
+
},] }
|
|
7688
|
+
];
|
|
7689
|
+
TransactionHeaderBlockComponent.ctorParameters = function () { return [
|
|
7690
|
+
{ type: TransactionService }
|
|
7691
|
+
]; };
|
|
7692
|
+
TransactionHeaderBlockComponent.propDecorators = {
|
|
7693
|
+
relationPopup: [{ type: i0.ViewChild, args: [TransactionRelationEditComponent, { static: true },] }],
|
|
7694
|
+
canPlanDelivery: [{ type: i0.Input }],
|
|
7695
|
+
planningRequestButtonClick: [{ type: i0.Output }]
|
|
7696
|
+
};
|
|
7697
|
+
|
|
7698
|
+
var TransactionServiceSummaryComponent = /** @class */ (function (_super) {
|
|
7699
|
+
__extends(TransactionServiceSummaryComponent, _super);
|
|
7700
|
+
function TransactionServiceSummaryComponent(service, iconCacheService) {
|
|
7701
|
+
var _this = _super.call(this, service) || this;
|
|
7702
|
+
_this.service = service;
|
|
7703
|
+
_this.iconCacheService = iconCacheService;
|
|
7704
|
+
_this.iconWrench = corecomponents_v12.CoreComponentsIcon.Wrench;
|
|
7705
|
+
return _this;
|
|
7706
|
+
}
|
|
7707
|
+
return TransactionServiceSummaryComponent;
|
|
7708
|
+
}(TransactionBaseComponent));
|
|
7709
|
+
TransactionServiceSummaryComponent.decorators = [
|
|
7710
|
+
{ type: i0.Component, args: [{
|
|
7711
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7712
|
+
selector: "transaction-service-info",
|
|
7713
|
+
template: "\n <transaction-summary-block\n [hideAvatar]=\"true\"\n [class.disabled]=\"!isNew\"\n label=\"SERVICE\"\n [icon]=\"iconWrench\"\n headerLabel=\"SERVICE_NUMBER\"\n [headerValue]=\"transactionInfo?.transactionNr\"\n subHeaderLabel=\"SERVICE_REQUEST_DATE\"\n [subHeaderValue]=\"transactionInfo?.transactionDate | date:'shortDate'\"\n ></transaction-summary-block>\n "
|
|
7714
|
+
},] }
|
|
7715
|
+
];
|
|
7716
|
+
TransactionServiceSummaryComponent.ctorParameters = function () { return [
|
|
7717
|
+
{ type: TransactionService },
|
|
7718
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
7719
|
+
]; };
|
|
7720
|
+
TransactionServiceSummaryComponent.propDecorators = {
|
|
7721
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7722
|
+
};
|
|
7723
|
+
|
|
7724
|
+
var TransactionSummaryBlockComponent = /** @class */ (function () {
|
|
7725
|
+
function TransactionSummaryBlockComponent() {
|
|
7726
|
+
this.Icon = corecomponents_v12.CoreComponentsIcon;
|
|
7727
|
+
this.hideAvatar = false;
|
|
7728
|
+
this.label = "";
|
|
7729
|
+
this.headerLabel = "";
|
|
7730
|
+
this.subHeaderLabel = "";
|
|
7731
|
+
}
|
|
7732
|
+
TransactionSummaryBlockComponent.prototype.ngOnDestroy = function () {
|
|
7733
|
+
this.subHeaderTemplate = undefined;
|
|
7734
|
+
};
|
|
7735
|
+
return TransactionSummaryBlockComponent;
|
|
7736
|
+
}());
|
|
7737
|
+
TransactionSummaryBlockComponent.decorators = [
|
|
7738
|
+
{ type: i0.Component, args: [{
|
|
7739
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7740
|
+
selector: "transaction-summary-block",
|
|
7741
|
+
template: "\n <div class=\"block-wrapper\">\n <div *ngIf=\"hideAvatar\" class=\"icon-wrapper\">\n <icon *ngIf=\"icon\" [icon]=\"icon\" class=\"dark\"></icon>\n <image-display *ngIf=\"!icon\" [model]=\"image\"></image-display>\n </div>\n <div class=\"content-wrapper\">\n <div class=\"value-block\">\n <div class=\"header-label\" [textContent]=\"headerLabel | localize\"></div>\n <div class=\"header\" [textContent]=\"headerValue\"></div>\n </div>\n <div class=\"value-block\">\n <div class=\"subheader-label\" [textContent]=\"subHeaderLabel | localize\"></div>\n <ng-container *ngIf=\"subHeaderTemplate\" [templateWrapper]=\"subHeaderTemplate\"></ng-container>\n <div *ngIf=\"!subHeaderTemplate\" class=\"subheader\" [textContent]=\"subHeaderValue\"></div>\n </div>\n </div>\n </div>\n ",
|
|
7742
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{width:368px;min-height:130px;height:auto;display:flex;flex-direction:column;margin-top:1px;margin-left:1px;padding:30px 20px}:host .content-wrapper .value-block{margin-bottom:10px}:host .content-wrapper .value-block ::ng-deep .planning-wrapper{justify-content:flex-start}:host .content-wrapper .value-block ::ng-deep .planning-wrapper arrow-link{margin-right:10px}:host .disabled-indicator{position:absolute;top:0;left:0;display:none}:host.disabled .disabled-indicator{display:block}:host ::ng-deep image-display{height:60px;width:60px;flex-shrink:0}:host ::ng-deep image-display span{display:none}:host .icon-wrapper{display:flex;flex-shrink:0;align-items:center;justify-content:center;background:#F8FBFA;height:60px;width:60px;border-radius:50%;border:1px solid #DCE4EA;overflow:hidden}:host .icon-wrapper ::ng-deep icon{height:60px!important;width:60px!important;flex-shrink:0}:host .title{font-size:13px;color:#22313c}:host .block-wrapper{position:relative;display:flex;align-items:center}:host .border{border-radius:3px;padding:15px;background:white;border:1px solid #DCE4EA}:host .content-wrapper{display:flex;flex-direction:column;justify-content:center;margin-left:10px;min-height:60px;height:auto;width:100%}:host .header-label,:host .subheader-label{font-size:11px;line-height:13px;color:#5b6875}:host .header,:host .subheader{font-size:13px;font-weight:bold;color:#22313c}\n"]
|
|
7743
|
+
},] }
|
|
7744
|
+
];
|
|
7745
|
+
TransactionSummaryBlockComponent.ctorParameters = function () { return []; };
|
|
7746
|
+
TransactionSummaryBlockComponent.propDecorators = {
|
|
7747
|
+
hideAvatar: [{ type: i0.Input }],
|
|
7748
|
+
label: [{ type: i0.Input }],
|
|
7749
|
+
icon: [{ type: i0.Input }],
|
|
7750
|
+
image: [{ type: i0.Input }],
|
|
7751
|
+
headerLabel: [{ type: i0.Input }],
|
|
7752
|
+
headerValue: [{ type: i0.Input }],
|
|
7753
|
+
subHeaderLabel: [{ type: i0.Input }],
|
|
7754
|
+
subHeaderValue: [{ type: i0.Input }],
|
|
7755
|
+
subHeaderTemplate: [{ type: i0.ContentChild, args: ["subHeaderTemplate", { static: false },] }]
|
|
7756
|
+
};
|
|
7757
|
+
|
|
7758
|
+
var TransactionServiceStatusComponent = /** @class */ (function (_super) {
|
|
7759
|
+
__extends(TransactionServiceStatusComponent, _super);
|
|
7760
|
+
function TransactionServiceStatusComponent(service) {
|
|
7761
|
+
var _this = _super.call(this, service) || this;
|
|
7762
|
+
_this.service = service;
|
|
7763
|
+
_this.iconPin = corecomponents_v12.CoreComponentsIcon.Pin;
|
|
7764
|
+
return _this;
|
|
7765
|
+
}
|
|
7766
|
+
Object.defineProperty(TransactionServiceStatusComponent.prototype, "serviceStatus", {
|
|
7767
|
+
get: function () {
|
|
7768
|
+
// TODO: transaction.serviceStatus
|
|
7769
|
+
return "serviceStatus";
|
|
7770
|
+
},
|
|
7771
|
+
enumerable: false,
|
|
7772
|
+
configurable: true
|
|
7773
|
+
});
|
|
7774
|
+
return TransactionServiceStatusComponent;
|
|
7775
|
+
}(TransactionBaseComponent));
|
|
7776
|
+
TransactionServiceStatusComponent.decorators = [
|
|
7777
|
+
{ type: i0.Component, args: [{
|
|
7778
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7779
|
+
selector: "transaction-service-status",
|
|
7780
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"STATUS\"\n [icon]=\"iconPin\"\n headerLabel=\"SERVICE_STATE\"\n [headerValue]=\"serviceStatus\"\n ></transaction-summary-block>\n "
|
|
7781
|
+
},] }
|
|
7782
|
+
];
|
|
7783
|
+
TransactionServiceStatusComponent.ctorParameters = function () { return [
|
|
7784
|
+
{ type: TransactionService }
|
|
7785
|
+
]; };
|
|
7786
|
+
TransactionServiceStatusComponent.propDecorators = {
|
|
7787
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7788
|
+
};
|
|
7789
|
+
|
|
7790
|
+
var TransactionOrderSummaryComponent = /** @class */ (function (_super) {
|
|
7791
|
+
__extends(TransactionOrderSummaryComponent, _super);
|
|
7792
|
+
function TransactionOrderSummaryComponent(service) {
|
|
7793
|
+
var _this = _super.call(this, service) || this;
|
|
7794
|
+
_this.service = service;
|
|
7795
|
+
_this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
|
|
7796
|
+
return _this;
|
|
7797
|
+
}
|
|
7798
|
+
Object.defineProperty(TransactionOrderSummaryComponent.prototype, "sourceTransactionNr", {
|
|
7799
|
+
get: function () {
|
|
7800
|
+
// TODO: transaction.sourceTransactionNr
|
|
7801
|
+
return 0;
|
|
7802
|
+
},
|
|
7803
|
+
enumerable: false,
|
|
7804
|
+
configurable: true
|
|
7805
|
+
});
|
|
7806
|
+
Object.defineProperty(TransactionOrderSummaryComponent.prototype, "sourceTransactionDate", {
|
|
7807
|
+
get: function () {
|
|
7808
|
+
// TODO: transaction.sourceTransactionDate
|
|
7809
|
+
return new Date();
|
|
7810
|
+
},
|
|
7811
|
+
enumerable: false,
|
|
7812
|
+
configurable: true
|
|
7813
|
+
});
|
|
7814
|
+
return TransactionOrderSummaryComponent;
|
|
7815
|
+
}(TransactionBaseComponent));
|
|
7816
|
+
TransactionOrderSummaryComponent.decorators = [
|
|
7817
|
+
{ type: i0.Component, args: [{
|
|
7818
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7819
|
+
selector: "transaction-order-info",
|
|
7820
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"ORDER_INFO\"\n [icon]=\"iconOrder\"\n headerLabel=\"ORDER_NUMBER\"\n [headerValue]=\"isService ? sourceTransactionNr : transactionInfo?.transactionNr\"\n subHeaderLabel=\"ORDER_DATE\"\n [subHeaderValue]=\"(isService ? sourceTransactionDate : this.transactionInfo?.transactionDate) | date:'shortDate'\"\n ></transaction-summary-block>\n "
|
|
7821
|
+
},] }
|
|
7822
|
+
];
|
|
7823
|
+
TransactionOrderSummaryComponent.ctorParameters = function () { return [
|
|
7824
|
+
{ type: TransactionService }
|
|
7825
|
+
]; };
|
|
7826
|
+
TransactionOrderSummaryComponent.propDecorators = {
|
|
7827
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7828
|
+
};
|
|
7829
|
+
|
|
7830
|
+
var TransactionPaymentInfoComponent = /** @class */ (function (_super) {
|
|
7831
|
+
__extends(TransactionPaymentInfoComponent, _super);
|
|
7832
|
+
function TransactionPaymentInfoComponent(service) {
|
|
7833
|
+
var _this = _super.call(this, service) || this;
|
|
7834
|
+
_this.service = service;
|
|
7835
|
+
_this.euro = corecomponents_v12.CoreComponentsIcon.Information;
|
|
7836
|
+
return _this;
|
|
7837
|
+
}
|
|
7838
|
+
return TransactionPaymentInfoComponent;
|
|
7839
|
+
}(TransactionBaseComponent));
|
|
7840
|
+
TransactionPaymentInfoComponent.decorators = [
|
|
7841
|
+
{ type: i0.Component, args: [{
|
|
7842
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7843
|
+
selector: "transaction-payment-info",
|
|
7844
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"PAYMENT\"\n [icon]=\"euro\"\n headerLabel=\"TOTAL_AMOUNT\"\n [headerValue]=\"transactionTotal?.netAmount | coCurrency\"\n subHeaderLabel=\"PAID_DOWN2\"\n [subHeaderValue]=\"transactionTotal?.transactionDiscountAmount | coCurrency\"\n ></transaction-summary-block>\n "
|
|
7845
|
+
},] }
|
|
7846
|
+
];
|
|
7847
|
+
TransactionPaymentInfoComponent.ctorParameters = function () { return [
|
|
7848
|
+
{ type: TransactionService }
|
|
7849
|
+
]; };
|
|
7850
|
+
TransactionPaymentInfoComponent.propDecorators = {
|
|
7851
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7852
|
+
};
|
|
7853
|
+
|
|
7854
|
+
var TransactionArticleSummaryComponent = /** @class */ (function (_super) {
|
|
7855
|
+
__extends(TransactionArticleSummaryComponent, _super);
|
|
7856
|
+
function TransactionArticleSummaryComponent(service) {
|
|
7857
|
+
var _this = _super.call(this, service) || this;
|
|
7858
|
+
_this.service = service;
|
|
7859
|
+
_this.imageDataUri = "";
|
|
7860
|
+
return _this;
|
|
7861
|
+
}
|
|
7862
|
+
Object.defineProperty(TransactionArticleSummaryComponent.prototype, "sourceArticleDescription", {
|
|
7863
|
+
get: function () {
|
|
7864
|
+
// TODO: transaction.sourceArticleDescription
|
|
7865
|
+
return "sourceArticleDescription";
|
|
7866
|
+
},
|
|
7867
|
+
enumerable: false,
|
|
7868
|
+
configurable: true
|
|
7869
|
+
});
|
|
7870
|
+
Object.defineProperty(TransactionArticleSummaryComponent.prototype, "sourceArticleNr", {
|
|
7871
|
+
get: function () {
|
|
7872
|
+
// TODO: transaction.sourceArticleNr
|
|
7873
|
+
return "sourceArticleNr";
|
|
7874
|
+
},
|
|
7875
|
+
enumerable: false,
|
|
7876
|
+
configurable: true
|
|
7877
|
+
});
|
|
7878
|
+
TransactionArticleSummaryComponent.prototype._getArticleImage = function () {
|
|
7879
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7880
|
+
return __generator(this, function (_a) {
|
|
7881
|
+
return [2 /*return*/];
|
|
7882
|
+
});
|
|
7883
|
+
});
|
|
7884
|
+
};
|
|
7885
|
+
TransactionArticleSummaryComponent.prototype.transactionSet = function () {
|
|
7886
|
+
this._getArticleImage();
|
|
7887
|
+
};
|
|
7888
|
+
return TransactionArticleSummaryComponent;
|
|
7889
|
+
}(TransactionBaseComponent));
|
|
7890
|
+
TransactionArticleSummaryComponent.decorators = [
|
|
7891
|
+
{ type: i0.Component, args: [{
|
|
7892
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7893
|
+
selector: "transaction-article-info",
|
|
7894
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n headerLabel=\"ARTICLE_DESCRIPTION\"\n [image]=\"imageDataUri\"\n [headerValue]=\"sourceArticleDescription\"\n subHeaderLabel=\"ARTICLE_NR\"\n [subHeaderValue]=\"sourceArticleNr\"\n ></transaction-summary-block>\n "
|
|
7895
|
+
},] }
|
|
7896
|
+
];
|
|
7897
|
+
TransactionArticleSummaryComponent.ctorParameters = function () { return [
|
|
7898
|
+
{ type: TransactionService }
|
|
7899
|
+
]; };
|
|
7900
|
+
TransactionArticleSummaryComponent.propDecorators = {
|
|
7901
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7902
|
+
};
|
|
7903
|
+
|
|
7904
|
+
var TransactionDeliverySummaryComponent = /** @class */ (function (_super) {
|
|
7905
|
+
__extends(TransactionDeliverySummaryComponent, _super);
|
|
7906
|
+
function TransactionDeliverySummaryComponent(service) {
|
|
7907
|
+
var _this = _super.call(this, service) || this;
|
|
7908
|
+
_this.service = service;
|
|
7909
|
+
_this.deliveryTruck = corecomponents_v12.CoreComponentsIcon.DeliveryTruck;
|
|
7910
|
+
_this.calendarRoundOpen = corecomponents_v12.CoreComponentsIcon.CalendarRoundOpen;
|
|
7911
|
+
_this.deliveryMethodDescription = "";
|
|
7912
|
+
_this.canPlanDelivery = false;
|
|
7913
|
+
_this.planningRequestButtonClick = new i0.EventEmitter();
|
|
7914
|
+
return _this;
|
|
7915
|
+
}
|
|
7916
|
+
TransactionDeliverySummaryComponent.prototype.transactionSet = function () {
|
|
7917
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7918
|
+
return __generator(this, function (_a) {
|
|
7919
|
+
return [2 /*return*/];
|
|
7920
|
+
});
|
|
7921
|
+
});
|
|
7922
|
+
};
|
|
7923
|
+
return TransactionDeliverySummaryComponent;
|
|
7924
|
+
}(TransactionBaseComponent));
|
|
7925
|
+
TransactionDeliverySummaryComponent.decorators = [
|
|
7926
|
+
{ type: i0.Component, args: [{
|
|
7927
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7928
|
+
selector: "transaction-delivery-summary",
|
|
7929
|
+
template: "\n <transaction-summary-block\n label=\"DELIVERY\"\n [icon]=\"deliveryTruck\"\n headerLabel=\"DELIVERY_METHOD2\"\n [headerValue]=\"deliveryMethodDescription\"\n [subHeaderLabel]=\"transactionInfo?.preferredDeliveryDate ? 'DELIVERY_DATE' : !canPlanDelivery ? 'EXPECTED_DELIVERY_WEEK' : 'EXPECTED_DELIVERY'\"\n [subHeaderValue]=\"transactionInfo?.preferredDeliveryDate ? (transactionInfo?.deliveryDate | date:'shortDate') : 'WEEK' | localize | append:(' ') | append:(transactionInfo?.deliveryDate | date:'w')\">\n <ng-template #subHeaderTemplate *ngIf=\"canPlanDelivery\">\n <div class=\"planning-wrapper\">\n <span class=\"subheader\" *ngIf=\"transactionInfo?.preferredDeliveryDate\"\n [textContent]=\"(transactionInfo?.preferredDeliveryDate | date:'shortDate') + ', ' + transactionInfo?.preferredDeliveryDate | date: 'time' \"></span>\n<!-- <arrow-link *ngIf=\"!transactionInfo.preferredDeliveryDate\"-->\n<!-- label=\"PLAN_YOUR_DELIVERY\"-->\n<!-- (click)=\"planningRequestButtonClick.emit($event)\"-->\n<!-- ></arrow-link>-->\n <icon [icon]=\"calendarRoundOpen\" (click)=\"planningRequestButtonClick.emit($event)\"></icon>\n </div>\n </ng-template>\n </transaction-summary-block>\n ",
|
|
7930
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host .planning-wrapper{display:flex;justify-content:space-between;align-items:center;flex-direction:row;color:#2b60a7;margin-top:-10px;font-size:13px}:host .planning-wrapper ::ng-deep icon{cursor:pointer}:host .planning-wrapper ::ng-deep icon [fill]{fill:#2b60a7}\n"]
|
|
7931
|
+
},] }
|
|
7932
|
+
];
|
|
7933
|
+
TransactionDeliverySummaryComponent.ctorParameters = function () { return [
|
|
7934
|
+
{ type: TransactionService }
|
|
7935
|
+
]; };
|
|
7936
|
+
TransactionDeliverySummaryComponent.propDecorators = {
|
|
7937
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }],
|
|
7938
|
+
canPlanDelivery: [{ type: i0.Input }],
|
|
7939
|
+
planningRequestButtonClick: [{ type: i0.Output }]
|
|
7940
|
+
};
|
|
7941
|
+
|
|
7942
|
+
var TransactionProductContractSummaryComponent = /** @class */ (function (_super) {
|
|
7943
|
+
__extends(TransactionProductContractSummaryComponent, _super);
|
|
7944
|
+
function TransactionProductContractSummaryComponent(service) {
|
|
7945
|
+
var _this = _super.call(this, service) || this;
|
|
7946
|
+
_this.service = service;
|
|
7947
|
+
return _this;
|
|
7948
|
+
}
|
|
7949
|
+
TransactionProductContractSummaryComponent.prototype.productSet = function () {
|
|
7950
|
+
// TODO: add to TransactionAPI?
|
|
7951
|
+
if (!this.product.imageAsDataUri) {
|
|
7952
|
+
// this._generalRepo.getDocument(this.product.image.documentId).then((doc: CoDocument) => {
|
|
7953
|
+
// this.product.imageAsDataUri = doc.thumbnailBodyAsDataUri;
|
|
7954
|
+
// });
|
|
7955
|
+
}
|
|
7956
|
+
};
|
|
7957
|
+
return TransactionProductContractSummaryComponent;
|
|
7958
|
+
}(TransactionBaseComponent));
|
|
7959
|
+
TransactionProductContractSummaryComponent.decorators = [
|
|
7960
|
+
{ type: i0.Component, args: [{
|
|
7961
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7962
|
+
selector: "transaction-product-contract-summary",
|
|
7963
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"CONTRACT\"\n [image]=\"product?.imageAsDataUri\"\n headerLabel=\"PRODUCT\"\n [headerValue]=\"product?.product\"\n subHeaderLabel=\"REFERENCE\"\n [subHeaderValue]=\"product?.productReference\"\n ></transaction-summary-block>\n "
|
|
7964
|
+
},] }
|
|
7965
|
+
];
|
|
7966
|
+
TransactionProductContractSummaryComponent.ctorParameters = function () { return [
|
|
7967
|
+
{ type: TransactionService }
|
|
7968
|
+
]; };
|
|
7969
|
+
|
|
7970
|
+
var TransactionProductSummaryComponent = /** @class */ (function (_super) {
|
|
7971
|
+
__extends(TransactionProductSummaryComponent, _super);
|
|
7972
|
+
function TransactionProductSummaryComponent(service) {
|
|
7973
|
+
var _this = _super.call(this, service) || this;
|
|
7974
|
+
_this.service = service;
|
|
7975
|
+
return _this;
|
|
7976
|
+
}
|
|
7977
|
+
TransactionProductSummaryComponent.prototype.productSet = function () {
|
|
7978
|
+
// TODO: Add to TransactionAPI?
|
|
7979
|
+
if (this.product && !this.product.imageAsDataUri && this.product.image && this.product.image.documentId) {
|
|
7980
|
+
// this._generalRepo.getDocument(this.product.image.documentId).then((doc: CoDocument) => {
|
|
7981
|
+
// this.product.imageAsDataUri = doc.thumbnailBodyAsDataUri;
|
|
7982
|
+
// });
|
|
7983
|
+
}
|
|
7984
|
+
};
|
|
7985
|
+
return TransactionProductSummaryComponent;
|
|
7986
|
+
}(TransactionBaseComponent));
|
|
7987
|
+
TransactionProductSummaryComponent.decorators = [
|
|
7988
|
+
{ type: i0.Component, args: [{
|
|
7989
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7990
|
+
selector: "transaction-product-summary",
|
|
7991
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"PRODUCT\"\n [image]=\"product?.imageAsDataUri\"\n headerLabel=\"PRODUCT_TYPE\"\n [headerValue]=\"product?.productReference\"\n subHeaderLabel=\"PRODUCT\"\n [subHeaderValue]=\"product?.product\"\n ></transaction-summary-block>\n "
|
|
7992
|
+
},] }
|
|
7993
|
+
];
|
|
7994
|
+
TransactionProductSummaryComponent.ctorParameters = function () { return [
|
|
7995
|
+
{ type: TransactionService }
|
|
7996
|
+
]; };
|
|
7997
|
+
TransactionProductSummaryComponent.propDecorators = {
|
|
7998
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7999
|
+
};
|
|
8000
|
+
|
|
8001
|
+
var TemplateWrapperDirective = /** @class */ (function () {
|
|
8002
|
+
function TemplateWrapperDirective(viewContainer) {
|
|
8003
|
+
this.viewContainer = viewContainer;
|
|
8004
|
+
this.templateWrapper = null;
|
|
8005
|
+
this.templateWrapperContext = null;
|
|
8006
|
+
}
|
|
8007
|
+
TemplateWrapperDirective.prototype.ngOnChanges = function (changes) {
|
|
8008
|
+
var recreateView = this._shouldRecreateView(changes);
|
|
8009
|
+
if (recreateView) {
|
|
8010
|
+
if (this._viewRef) {
|
|
8011
|
+
this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
|
|
8012
|
+
}
|
|
8013
|
+
if (this.templateWrapper) {
|
|
8014
|
+
this._viewRef = this.viewContainer.createEmbeddedView(this.templateWrapper, this.templateWrapperContext);
|
|
8015
|
+
}
|
|
8016
|
+
}
|
|
8017
|
+
else {
|
|
8018
|
+
if (this._viewRef && this.templateWrapperContext) {
|
|
8019
|
+
this._updateExistingContext(this.templateWrapperContext);
|
|
8020
|
+
}
|
|
8021
|
+
}
|
|
8022
|
+
};
|
|
8023
|
+
TemplateWrapperDirective.prototype.ngOnDestroy = function () {
|
|
8024
|
+
if (this._viewRef) {
|
|
8025
|
+
this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
|
|
8026
|
+
this._viewRef = undefined;
|
|
8027
|
+
}
|
|
8028
|
+
this.templateWrapper = undefined;
|
|
8029
|
+
};
|
|
8030
|
+
TemplateWrapperDirective.prototype._shouldRecreateView = function (changes) {
|
|
8031
|
+
var ctxChange = changes["templateWrapperContext"];
|
|
8032
|
+
return !!changes["templateWrapper"] || (ctxChange && this._hasContextShapeChanged(ctxChange));
|
|
8033
|
+
};
|
|
8034
|
+
TemplateWrapperDirective.prototype._hasContextShapeChanged = function (ctxChange) {
|
|
8035
|
+
var e_1, _a;
|
|
8036
|
+
var prevCtxKeys = Object.keys(ctxChange.previousValue || {});
|
|
8037
|
+
var currCtxKeys = Object.keys(ctxChange.currentValue || {});
|
|
8038
|
+
if (prevCtxKeys.length === currCtxKeys.length) {
|
|
8039
|
+
try {
|
|
8040
|
+
for (var currCtxKeys_1 = __values(currCtxKeys), currCtxKeys_1_1 = currCtxKeys_1.next(); !currCtxKeys_1_1.done; currCtxKeys_1_1 = currCtxKeys_1.next()) {
|
|
8041
|
+
var propName = currCtxKeys_1_1.value;
|
|
8042
|
+
if (prevCtxKeys.indexOf(propName) === -1) {
|
|
8043
|
+
return true;
|
|
8044
|
+
}
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
8048
|
+
finally {
|
|
8049
|
+
try {
|
|
8050
|
+
if (currCtxKeys_1_1 && !currCtxKeys_1_1.done && (_a = currCtxKeys_1.return)) _a.call(currCtxKeys_1);
|
|
8051
|
+
}
|
|
8052
|
+
finally { if (e_1) throw e_1.error; }
|
|
8053
|
+
}
|
|
8054
|
+
return false;
|
|
8055
|
+
}
|
|
8056
|
+
else {
|
|
8057
|
+
return true;
|
|
8058
|
+
}
|
|
8059
|
+
};
|
|
8060
|
+
TemplateWrapperDirective.prototype._updateExistingContext = function (ctx) {
|
|
8061
|
+
var e_2, _a;
|
|
8062
|
+
try {
|
|
8063
|
+
for (var _b = __values(Object.keys(ctx)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
8064
|
+
var propName = _c.value;
|
|
8065
|
+
this._viewRef.context[propName] = this.templateWrapperContext[propName];
|
|
8066
|
+
}
|
|
8067
|
+
}
|
|
8068
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
8069
|
+
finally {
|
|
8070
|
+
try {
|
|
8071
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8072
|
+
}
|
|
8073
|
+
finally { if (e_2) throw e_2.error; }
|
|
8074
|
+
}
|
|
8075
|
+
};
|
|
8076
|
+
return TemplateWrapperDirective;
|
|
8077
|
+
}());
|
|
8078
|
+
TemplateWrapperDirective.decorators = [
|
|
8079
|
+
{ type: i0.Directive, args: [{
|
|
8080
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
8081
|
+
selector: "[templateWrapper]"
|
|
8082
|
+
},] }
|
|
8083
|
+
];
|
|
8084
|
+
TemplateWrapperDirective.ctorParameters = function () { return [
|
|
8085
|
+
{ type: i0.ViewContainerRef }
|
|
8086
|
+
]; };
|
|
8087
|
+
TemplateWrapperDirective.propDecorators = {
|
|
8088
|
+
templateWrapper: [{ type: i0.Input }],
|
|
8089
|
+
templateWrapperContext: [{ type: i0.Input }]
|
|
8090
|
+
};
|
|
8091
|
+
|
|
8092
|
+
var DefaultOkCancelButtonsComponent = /** @class */ (function () {
|
|
8093
|
+
function DefaultOkCancelButtonsComponent() {
|
|
8094
|
+
this.hideCancel = false;
|
|
8095
|
+
this.hideOk = false;
|
|
8096
|
+
this.okLabel = "OK";
|
|
8097
|
+
// only emits when ok button was not disabled when it was clicked
|
|
8098
|
+
this.okClick = new i0.EventEmitter();
|
|
8099
|
+
this.cancelClick = new i0.EventEmitter();
|
|
8100
|
+
}
|
|
8101
|
+
DefaultOkCancelButtonsComponent.prototype.onOkClick = function (event) {
|
|
8102
|
+
if (this.okButtonComp && !this.okButtonComp.disabled) {
|
|
8103
|
+
this.okClick.emit(event);
|
|
8104
|
+
}
|
|
8105
|
+
};
|
|
8106
|
+
return DefaultOkCancelButtonsComponent;
|
|
8107
|
+
}());
|
|
8108
|
+
DefaultOkCancelButtonsComponent.decorators = [
|
|
8109
|
+
{ type: i0.Component, args: [{
|
|
8110
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8111
|
+
selector: "default-ok-cancel-buttons",
|
|
8112
|
+
template: "\n <co-button *ngIf=\"!hideOk\" [label]=\"okLabel\" [disabled]=\"okDisabled\" class=\"ok\" #okButton (click)=\"onOkClick($event)\"></co-button>\n <co-button *ngIf=\"!hideCancel\" label=\"CANCEL\" (click)=\"cancelClick.emit($event)\"></co-button>\n <ng-content></ng-content>\n ",
|
|
8113
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.margin-popup:host{margin-top:20px}.margin-popup:host{margin-bottom:20px}.margin-popup:host{margin-left:20px}.margin-popup:host{margin-right:20px}.margin-top:host{margin-top:11px}:host button-colijn:not(:last-child){margin-right:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.justify-center{justify-content:center}\n"]
|
|
8114
|
+
},] }
|
|
8115
|
+
];
|
|
8116
|
+
DefaultOkCancelButtonsComponent.ctorParameters = function () { return []; };
|
|
8117
|
+
DefaultOkCancelButtonsComponent.propDecorators = {
|
|
8118
|
+
okDisabled: [{ type: i0.Input }],
|
|
8119
|
+
hideCancel: [{ type: i0.Input }],
|
|
8120
|
+
hideOk: [{ type: i0.Input }],
|
|
8121
|
+
okLabel: [{ type: i0.Input }],
|
|
8122
|
+
okClick: [{ type: i0.Output }],
|
|
8123
|
+
cancelClick: [{ type: i0.Output }],
|
|
8124
|
+
okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }]
|
|
8125
|
+
};
|
|
8126
|
+
|
|
8127
|
+
var WarehouseComponent = /** @class */ (function () {
|
|
8128
|
+
function WarehouseComponent(service, _dictionaryService) {
|
|
8129
|
+
this.service = service;
|
|
8130
|
+
this._dictionaryService = _dictionaryService;
|
|
8131
|
+
this.message = "";
|
|
8132
|
+
this.okClick = new i0.EventEmitter();
|
|
8133
|
+
this.cancelClick = new i0.EventEmitter();
|
|
8134
|
+
this.commissionCodes = [];
|
|
8135
|
+
this.commissionFields = { text: "description", value: "code" };
|
|
8136
|
+
this.transactionArticleWarehouses = [];
|
|
8137
|
+
this.columns = [];
|
|
8138
|
+
this._okOrCancelClick = false;
|
|
8139
|
+
this.columns.push({ field: "warehouseNr", headerText: this._dictionaryService.get("WAREHOUSE"), allowFiltering: false }, { field: "warehouseDesc", headerText: this._dictionaryService.get("DESCRIPTION") }, { field: "stockAmount", headerText: this._dictionaryService.get("STOCK") });
|
|
8140
|
+
}
|
|
8141
|
+
WarehouseComponent.prototype.ngOnInit = function () {
|
|
8142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8143
|
+
var _a;
|
|
8144
|
+
return __generator(this, function (_b) {
|
|
8145
|
+
switch (_b.label) {
|
|
8146
|
+
case 0:
|
|
8147
|
+
_a = this;
|
|
8148
|
+
return [4 /*yield*/, this.service.getCommissionCodes("NL")];
|
|
8149
|
+
case 1:
|
|
8150
|
+
_a.commissionCodes = _b.sent();
|
|
8151
|
+
return [2 /*return*/];
|
|
8152
|
+
}
|
|
8153
|
+
});
|
|
8154
|
+
});
|
|
8155
|
+
};
|
|
8156
|
+
WarehouseComponent.prototype.ngOnDestroy = function () {
|
|
8157
|
+
this.warehouseDialog.close();
|
|
8158
|
+
};
|
|
8159
|
+
WarehouseComponent.prototype.showStockManager = function (line) {
|
|
8160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8161
|
+
return __generator(this, function (_a) {
|
|
8162
|
+
this.selectedWarehouseNr = line.warehouseNumber;
|
|
8163
|
+
this.amount = line.amount;
|
|
8164
|
+
this.commissionCode = line.commissionCode;
|
|
8165
|
+
this.show(line.articleNumber);
|
|
8166
|
+
return [2 /*return*/];
|
|
8167
|
+
});
|
|
8168
|
+
});
|
|
8169
|
+
};
|
|
8170
|
+
WarehouseComponent.prototype.hide = function () {
|
|
8171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8172
|
+
return __generator(this, function (_a) {
|
|
8173
|
+
switch (_a.label) {
|
|
8174
|
+
case 0:
|
|
8175
|
+
if (this._okOrCancelClick) {
|
|
8176
|
+
this._okOrCancelClick = false;
|
|
8177
|
+
return [2 /*return*/];
|
|
8178
|
+
}
|
|
8179
|
+
return [4 /*yield*/, this.onStockManagerCancelClick()];
|
|
8180
|
+
case 1:
|
|
8181
|
+
_a.sent();
|
|
8182
|
+
return [2 /*return*/];
|
|
8183
|
+
}
|
|
8184
|
+
});
|
|
8185
|
+
});
|
|
8186
|
+
};
|
|
8187
|
+
WarehouseComponent.prototype.show = function (articleNr) {
|
|
8188
|
+
this._reloadDataCollections(articleNr).then();
|
|
8189
|
+
this.warehouseGrid.selectRow(this.selectedWarehouseNr);
|
|
8190
|
+
this.warehouseDialog.targetElement = null;
|
|
8191
|
+
this.warehouseDialog.open();
|
|
8192
|
+
};
|
|
8193
|
+
WarehouseComponent.prototype.handleRowsSelected = function (rows) {
|
|
8194
|
+
this.selectedWarehouseNr = (rows.find(function (x) { return x !== undefined; })).warehouseNr;
|
|
8195
|
+
};
|
|
8196
|
+
WarehouseComponent.prototype.onStockManagerCancelClick = function () {
|
|
8197
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8198
|
+
return __generator(this, function (_a) {
|
|
8199
|
+
this._okOrCancelClick = true;
|
|
8200
|
+
this.warehouseDialog.close();
|
|
8201
|
+
this.cancelClick.emit();
|
|
8202
|
+
return [2 /*return*/];
|
|
8203
|
+
});
|
|
8204
|
+
});
|
|
8205
|
+
};
|
|
8206
|
+
WarehouseComponent.prototype.onStockManagerOkClick = function () {
|
|
8207
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8208
|
+
return __generator(this, function (_a) {
|
|
8209
|
+
this._okOrCancelClick = true;
|
|
8210
|
+
this.warehouseDialog.close();
|
|
8211
|
+
this.okClick.emit();
|
|
8212
|
+
return [2 /*return*/];
|
|
8213
|
+
});
|
|
8214
|
+
});
|
|
8215
|
+
};
|
|
8216
|
+
WarehouseComponent.prototype._reloadDataCollections = function (articleNr) {
|
|
8217
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8218
|
+
var goodId, _a;
|
|
8219
|
+
return __generator(this, function (_b) {
|
|
8220
|
+
switch (_b.label) {
|
|
8221
|
+
case 0: return [4 /*yield*/, this.service.getGoodIdFromArticleNr(articleNr)];
|
|
8222
|
+
case 1:
|
|
8223
|
+
goodId = _b.sent();
|
|
8224
|
+
_a = this;
|
|
8225
|
+
return [4 /*yield*/, this.service.getTransactionArticleWarehouses(goodId)];
|
|
8226
|
+
case 2:
|
|
8227
|
+
_a.transactionArticleWarehouses = _b.sent();
|
|
8228
|
+
return [2 /*return*/];
|
|
8229
|
+
}
|
|
8230
|
+
});
|
|
8231
|
+
});
|
|
8232
|
+
};
|
|
8233
|
+
return WarehouseComponent;
|
|
8234
|
+
}());
|
|
8235
|
+
WarehouseComponent.decorators = [
|
|
8236
|
+
{ type: i0.Component, args: [{
|
|
8237
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8238
|
+
selector: "warehouse",
|
|
8239
|
+
template: "\n <co-dialog #warehouseDialog\n (closeClick)=\"hide()\"\n (overlayClick)=\"onStockManagerCancelClick()\"\n >\n <ng-container header>{{ 'STOCK_NOTIFICATION' | localize }}</ng-container>\n\n <ng-container content>\n <co-form>\n <div class=\"form-content\">\n <span *ngIf=\"message\" class=\"message-field\" [textContent]=\"message | localize\"></span>\n <div class=\"commission-fields\" fxLayout=\"row\">\n <co-input-number-picker class=\"horizontal\" [(model)]=\"amount\" [min]=\"0\" decimals=\"3\"></co-input-number-picker>\n <co-input-combo-box [(model)]=\"commissionCode\"\n [source]=\"commissionCodes\"\n [fields]=\"commissionFields\"\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div>\n <co-grid #warehouseGrid\n [data]=\"transactionArticleWarehouses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'10'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n </co-form>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onStockManagerOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onStockManagerCancelClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
|
|
8240
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
|
|
8241
|
+
},] }
|
|
8242
|
+
];
|
|
8243
|
+
WarehouseComponent.ctorParameters = function () { return [
|
|
8244
|
+
{ type: TransactionService },
|
|
8245
|
+
{ type: DictionaryService }
|
|
8246
|
+
]; };
|
|
8247
|
+
WarehouseComponent.propDecorators = {
|
|
8248
|
+
warehouseDialog: [{ type: i0.ViewChild, args: ["warehouseDialog",] }],
|
|
8249
|
+
warehouseGrid: [{ type: i0.ViewChild, args: ["warehouseGrid",] }],
|
|
8250
|
+
message: [{ type: i0.Input }],
|
|
8251
|
+
okClick: [{ type: i0.Output }],
|
|
8252
|
+
cancelClick: [{ type: i0.Output }]
|
|
8253
|
+
};
|
|
8254
|
+
|
|
8255
|
+
var IoneServiceOrderModule = /** @class */ (function () {
|
|
8256
|
+
function IoneServiceOrderModule() {
|
|
8257
|
+
}
|
|
8258
|
+
return IoneServiceOrderModule;
|
|
8259
|
+
}());
|
|
8260
|
+
IoneServiceOrderModule.decorators = [
|
|
8261
|
+
{ type: i0.NgModule, args: [{
|
|
8262
|
+
imports: [
|
|
8263
|
+
corecomponents_v12.IconModule,
|
|
8264
|
+
corecomponents_v12.InputTextModule,
|
|
8265
|
+
corecomponents_v12.InputCheckboxModule,
|
|
8266
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
8267
|
+
corecomponents_v12.FormModule,
|
|
8268
|
+
corecomponents_v12.InputComboBoxModule,
|
|
8269
|
+
corecomponents_v12.InputDatePickerModule,
|
|
8270
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
8271
|
+
corecomponents_v12.CoDialogModule,
|
|
8272
|
+
corecomponents_v12.CoDialogPromptModule,
|
|
8273
|
+
corecomponents_v12.ButtonModule,
|
|
8274
|
+
flexLayout.FlexModule,
|
|
8275
|
+
corecomponents_v12.MultiSelectListModule,
|
|
8276
|
+
corecomponents_v12.DropDownModule,
|
|
8277
|
+
corecomponents_v12.PopupModule.forRoot(),
|
|
8278
|
+
corecomponents_v12.CoSidebarModule,
|
|
8279
|
+
corecomponents_v12.CoGridModule,
|
|
8280
|
+
CoreModule,
|
|
8281
|
+
ej2AngularButtons.ChipListModule,
|
|
8282
|
+
ej2AngularSplitbuttons.DropDownButtonModule,
|
|
8283
|
+
ej2AngularButtons.CheckBoxModule,
|
|
8284
|
+
ej2AngularDropdowns.DropDownListModule,
|
|
8285
|
+
IoneShoppingCartModule,
|
|
8286
|
+
ej2AngularNavigations.TabModule,
|
|
8287
|
+
common.CommonModule,
|
|
8288
|
+
// RichTextEditorModule
|
|
8289
|
+
],
|
|
8290
|
+
declarations: [
|
|
8291
|
+
TemplateWrapperDirective,
|
|
8292
|
+
DefaultOkCancelButtonsComponent,
|
|
8293
|
+
IoneServiceOrderComponent,
|
|
8294
|
+
ServiceOrderComponent,
|
|
8295
|
+
TransactionOrderTotalsComponent,
|
|
8296
|
+
TransactionOrderLineViewComponent,
|
|
8297
|
+
TransactionOrderLinesComponent,
|
|
8298
|
+
TransactionRelationAddressComponent,
|
|
8299
|
+
TransactionArticleTextComponent,
|
|
8300
|
+
TransactionSidebarRightComponent,
|
|
8301
|
+
TransactionLineAccordionComponent,
|
|
8302
|
+
TransactionHeaderBlockComponent,
|
|
8303
|
+
TransactionServiceSummaryComponent,
|
|
8304
|
+
TransactionSummaryBlockComponent,
|
|
8305
|
+
TransactionServiceStatusComponent,
|
|
8306
|
+
TransactionOrderSummaryComponent,
|
|
8307
|
+
TransactionPaymentInfoComponent,
|
|
8308
|
+
TransactionRelationEditComponent,
|
|
8309
|
+
TransactionArticleSummaryComponent,
|
|
8310
|
+
TransactionDeliverySummaryComponent,
|
|
8311
|
+
TransactionProductContractSummaryComponent,
|
|
8312
|
+
TransactionProductSummaryComponent,
|
|
8313
|
+
TransactionManagerComponent,
|
|
8314
|
+
WarehouseComponent,
|
|
8315
|
+
],
|
|
8316
|
+
providers: [
|
|
8317
|
+
DictionaryService,
|
|
8318
|
+
TransactionService,
|
|
8319
|
+
OptionsService,
|
|
8320
|
+
],
|
|
8321
|
+
entryComponents: [
|
|
8322
|
+
IoneServiceOrderComponent
|
|
8323
|
+
],
|
|
8324
|
+
exports: [IoneServiceOrderComponent],
|
|
8325
|
+
bootstrap: [IoneServiceOrderComponent]
|
|
8326
|
+
},] }
|
|
8327
|
+
];
|
|
8328
|
+
|
|
6022
8329
|
//export * from "./app/component/ione-transaction.module";
|
|
6023
8330
|
|
|
6024
8331
|
/**
|
|
@@ -6027,6 +8334,8 @@
|
|
|
6027
8334
|
|
|
6028
8335
|
exports.IoneCheckoutComponent = IoneCheckoutComponent;
|
|
6029
8336
|
exports.IoneCheckoutModule = IoneCheckoutModule;
|
|
8337
|
+
exports.IoneServiceOrderComponent = IoneServiceOrderComponent;
|
|
8338
|
+
exports.IoneServiceOrderModule = IoneServiceOrderModule;
|
|
6030
8339
|
exports.IoneShoppingCartComponent = IoneShoppingCartComponent;
|
|
6031
8340
|
exports.IoneShoppingCartModule = IoneShoppingCartModule;
|
|
6032
8341
|
exports["ɵa"] = RetailTransactionCheckoutComponent;
|
|
@@ -6036,7 +8345,31 @@
|
|
|
6036
8345
|
exports["ɵbc"] = ShoppingCartLineComponent;
|
|
6037
8346
|
exports["ɵbd"] = StockStatusIndicatorComponent;
|
|
6038
8347
|
exports["ɵbe"] = CharacteristicAnswerComponent;
|
|
8348
|
+
exports["ɵbf"] = TemplateWrapperDirective;
|
|
8349
|
+
exports["ɵbg"] = DefaultOkCancelButtonsComponent;
|
|
8350
|
+
exports["ɵbh"] = ServiceOrderComponent;
|
|
8351
|
+
exports["ɵbi"] = TransactionBaseComponent;
|
|
8352
|
+
exports["ɵbj"] = TransactionArticleTextComponent;
|
|
8353
|
+
exports["ɵbk"] = TransactionManagerComponent;
|
|
8354
|
+
exports["ɵbl"] = TransactionOrderTotalsComponent;
|
|
8355
|
+
exports["ɵbm"] = TransactionOrderLineViewComponent;
|
|
8356
|
+
exports["ɵbn"] = TransactionOrderLinesComponent;
|
|
8357
|
+
exports["ɵbo"] = TransactionRelationAddressComponent;
|
|
8358
|
+
exports["ɵbp"] = TransactionSidebarRightComponent;
|
|
8359
|
+
exports["ɵbq"] = TransactionLineAccordionComponent;
|
|
8360
|
+
exports["ɵbr"] = TransactionHeaderBlockComponent;
|
|
8361
|
+
exports["ɵbs"] = TransactionRelationEditComponent;
|
|
8362
|
+
exports["ɵbt"] = TransactionServiceSummaryComponent;
|
|
8363
|
+
exports["ɵbu"] = TransactionSummaryBlockComponent;
|
|
8364
|
+
exports["ɵbv"] = TransactionServiceStatusComponent;
|
|
8365
|
+
exports["ɵbw"] = TransactionOrderSummaryComponent;
|
|
8366
|
+
exports["ɵbx"] = TransactionPaymentInfoComponent;
|
|
8367
|
+
exports["ɵby"] = TransactionArticleSummaryComponent;
|
|
8368
|
+
exports["ɵbz"] = TransactionDeliverySummaryComponent;
|
|
6039
8369
|
exports["ɵc"] = CheckoutOverviewComponent;
|
|
8370
|
+
exports["ɵca"] = TransactionProductContractSummaryComponent;
|
|
8371
|
+
exports["ɵcb"] = TransactionProductSummaryComponent;
|
|
8372
|
+
exports["ɵcc"] = WarehouseComponent;
|
|
6040
8373
|
exports["ɵd"] = CheckoutOverviewBlockComponent;
|
|
6041
8374
|
exports["ɵe"] = CheckoutOverviewRelationEditComponent;
|
|
6042
8375
|
exports["ɵf"] = TransactionService;
|