@colijnit/transaction 12.1.9 → 12.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-transaction.umd.js +2673 -242
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +84 -35
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +85 -36
- package/esm2015/lib/assets/dictionary/text.properties.js +39 -1
- package/esm2015/lib/component/checkout/checkout.component.js +1 -1
- package/esm2015/lib/component/checkout/checkout.module.js +1 -1
- package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.component.js +17 -3
- package/esm2015/lib/component/core/base/default-ok-cancel-buttons.component.js +41 -0
- package/esm2015/lib/component/core/base/transaction-base.component.js +7 -9
- package/esm2015/lib/component/core/core.module.js +6 -3
- package/esm2015/lib/component/core/enum/app-popup-type.enum.js +8 -0
- package/esm2015/lib/component/order-confirmation-grid.component/order-confirmation-grid.component.js +70 -0
- package/esm2015/lib/component/order-confirmation-grid.component/order-confirmation-grid.module.js +29 -0
- package/esm2015/lib/component/order-grid/order-grid.component.js +99 -0
- package/esm2015/lib/component/order-grid/order-grid.module.js +28 -0
- package/esm2015/lib/component/stepper/stepper.component.js +1 -1
- package/esm2015/lib/component/tile/tile.component.js +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +72 -14
- package/esm2015/lib/component/transaction/transaction.module.js +10 -2
- package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.component.js +46 -0
- package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.module.js +27 -0
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +28 -0
- package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.js +27 -0
- package/esm2015/lib/component/transaction-header/transaction-header.component.js +14 -4
- package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.component.js +5 -2
- package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.component.js +47 -0
- package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.module.js +27 -0
- package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.js +36 -0
- package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.module.js +23 -0
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +11 -7
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +2 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +49 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +40 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +48 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.component.js +50 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-discount-amount.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-fields-base.component.js +22 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.component.js +50 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-line-discount.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price-list.component.js +49 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price-list.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +49 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantity.component.js +36 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantity.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.js +50 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-quantum-discount.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.component.js +48 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-reference.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.component.js +50 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-special-discount.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.component.js +49 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-vat.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.component.js +49 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse.module.js +24 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +57 -129
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +14 -8
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +134 -0
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.js +56 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +7 -1
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +16 -11
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.js +29 -0
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.component.js +65 -0
- package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.module.js +26 -0
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +39 -0
- package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +25 -0
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +28 -0
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.js +27 -0
- package/esm2015/lib/enum/icon.enum.js +5 -1
- package/esm2015/lib/enum/status-type.enum.js +5 -0
- package/esm2015/lib/enum/tab-category.enum.js +10 -0
- package/esm2015/lib/model/icon-svg.js +6 -2
- package/esm2015/lib/pipe/delivery-time.pipe.js +4 -1
- package/esm2015/lib/service/dialog.service.js +14 -3
- package/esm2015/lib/service/ione-connector-adapter.service.js +255 -10
- package/esm2015/lib/service/pending-reason.service.js +20 -9
- package/esm2015/lib/service/transaction.service.js +187 -29
- package/fesm2015/colijnit-transaction.js +2477 -290
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/confirmation-dialog/confirmation-dialog.component.d.ts +4 -0
- package/lib/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
- package/lib/component/core/enum/app-popup-type.enum.d.ts +6 -0
- package/lib/component/core/image-display/style/_layout.scss +2 -4
- package/lib/component/order-confirmation-create/style/_layout.scss +5 -0
- package/lib/component/order-confirmation-create/style/_material-definition.scss +1 -0
- package/lib/component/order-confirmation-create/style/_theme.scss +5 -0
- package/lib/component/order-confirmation-create/style/material.scss +4 -0
- package/lib/component/order-confirmation-grid.component/order-confirmation-grid.component.d.ts +15 -0
- package/lib/component/order-confirmation-grid.component/order-confirmation-grid.module.d.ts +2 -0
- package/lib/component/order-confirmation-grid.component/style/_layout.scss +5 -0
- package/lib/component/order-confirmation-grid.component/style/_material-definition.scss +1 -0
- package/lib/component/order-confirmation-grid.component/style/_theme.scss +5 -0
- package/lib/component/order-confirmation-grid.component/style/material.scss +4 -0
- package/lib/component/order-grid/order-grid.component.d.ts +23 -0
- package/lib/component/order-grid/order-grid.module.d.ts +2 -0
- package/lib/component/order-grid/style/_layout.scss +21 -0
- package/lib/component/order-grid/style/_material-definition.scss +2 -0
- package/lib/component/order-grid/style/_theme.scss +6 -0
- package/lib/component/order-grid/style/material.scss +4 -0
- package/lib/component/transaction/style/_layout.scss +6 -0
- package/lib/component/transaction/style/material.scss +3 -0
- package/lib/component/transaction/transaction.component.d.ts +16 -1
- package/lib/component/transaction-commit-bar/style/_layout.scss +16 -0
- package/lib/component/transaction-commit-bar/style/_material-definition.scss +1 -0
- package/lib/component/transaction-commit-bar/style/_theme.scss +7 -0
- package/lib/component/transaction-commit-bar/style/material.scss +4 -0
- package/lib/component/transaction-commit-bar/transaction-commit-bar.component.d.ts +11 -0
- package/lib/component/transaction-commit-bar/transaction-commit-bar.module.d.ts +2 -0
- package/lib/component/transaction-confirmation-history/style/_layout.scss +7 -0
- package/lib/component/transaction-confirmation-history/style/_material-definition.scss +1 -0
- package/lib/component/transaction-confirmation-history/style/_theme.scss +7 -0
- package/lib/component/transaction-confirmation-history/style/material.scss +4 -0
- package/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.d.ts +5 -0
- package/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header.component.d.ts +4 -1
- package/lib/component/transaction-history-grid/style/_layout.scss +7 -0
- package/lib/component/{service-order/transaction-sidebar/transaction-line-accordion.component.scss → transaction-history-grid/style/_material-definition.scss} +0 -0
- package/lib/component/transaction-history-grid/style/_theme.scss +7 -0
- package/lib/component/transaction-history-grid/style/material.scss +4 -0
- package/lib/component/transaction-history-grid/transaction-history-grid.component.d.ts +14 -0
- package/lib/component/transaction-history-grid/transaction-history-grid.module.d.ts +2 -0
- package/lib/component/transaction-history-grid-status/style/_layout.scss +28 -0
- package/lib/component/{service-order/transaction-edit-article-text/transaction-edit-article-text.component.scss → transaction-history-grid-status/style/_material-definition.scss} +0 -0
- package/lib/component/transaction-history-grid-status/style/_theme.scss +7 -0
- package/lib/component/transaction-history-grid-status/style/material.scss +4 -0
- package/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.d.ts +9 -0
- package/lib/component/transaction-history-grid-status/transaction-history-grid-status.module.d.ts +2 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +3 -2
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +12 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-code.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +7 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-method.component.d.ts +12 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-method.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-discount-amount.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-discount-amount.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-fields-base.component.d.ts +6 -0
- package/lib/component/transaction-line-fields/transaction-line-line-discount.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-line-discount.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-price-list.component.d.ts +12 -0
- package/lib/component/transaction-line-fields/transaction-line-price-list.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-price.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-price.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-quantity.component.d.ts +7 -0
- package/lib/component/transaction-line-fields/transaction-line-quantity.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-quantum-discount.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-quantum-discount.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-reference.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-reference.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-special-discount.component.d.ts +10 -0
- package/lib/component/transaction-line-fields/transaction-line-special-discount.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-vat.component.d.ts +12 -0
- package/lib/component/transaction-line-fields/transaction-line-vat.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-warehouse.component.d.ts +12 -0
- package/lib/component/transaction-line-fields/transaction-line-warehouse.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +38 -21
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +4 -6
- package/lib/component/transaction-line-side-panel/style/_theme.scss +3 -1
- package/lib/component/transaction-line-side-panel/style/material.scss +5 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +6 -8
- package/lib/component/transaction-line-side-panel-default/style/_layout.scss +29 -0
- package/lib/component/transaction-line-side-panel-default/style/_material-definition.scss +10 -0
- package/lib/component/transaction-line-side-panel-default/style/_theme.scss +7 -0
- package/lib/component/transaction-line-side-panel-default/style/material.scss +4 -0
- package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.d.ts +16 -0
- package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.d.ts +2 -0
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +5 -0
- package/lib/component/transaction-lines-grid/transaction-lines-grid.component.d.ts +4 -1
- package/lib/component/transaction-nav-bar/style/_layout.scss +13 -0
- package/lib/component/transaction-nav-bar/style/_material-definition.scss +1 -0
- package/lib/component/transaction-nav-bar/style/_theme.scss +7 -0
- package/lib/component/transaction-nav-bar/style/material.scss +4 -0
- package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.d.ts +14 -0
- package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.scss +23 -0
- package/lib/component/transaction-nav-bar/transaction-nav-bar.component.d.ts +18 -0
- package/lib/component/transaction-nav-bar/transaction-nav-bar.module.d.ts +2 -0
- package/lib/component/transaction-receiving-goods-details/style/_layout.scss +38 -0
- package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +1 -0
- package/lib/component/transaction-receiving-goods-details/style/_theme.scss +7 -0
- package/lib/component/transaction-receiving-goods-details/style/material.scss +4 -0
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +6 -0
- package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.d.ts +2 -0
- package/lib/component/transaction-receiving-goods-history/style/_layout.scss +7 -0
- package/lib/component/transaction-receiving-goods-history/style/_material-definition.scss +1 -0
- package/lib/component/transaction-receiving-goods-history/style/_theme.scss +7 -0
- package/lib/component/transaction-receiving-goods-history/style/material.scss +4 -0
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +5 -0
- package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +5 -1
- package/lib/enum/status-type.enum.d.ts +3 -0
- package/lib/enum/tab-category.enum.d.ts +8 -0
- package/lib/service/dialog.service.d.ts +1 -0
- package/lib/service/ione-connector-adapter.service.d.ts +24 -7
- package/lib/service/pending-reason.service.d.ts +3 -2
- package/lib/service/transaction.service.d.ts +22 -9
- package/package.json +1 -1
- package/lib/component/sell-order/sell-order-side-panel/sell-order-side-panel.component.scss +0 -49
- package/lib/component/sell-order/sell-order.component.scss +0 -15
- package/lib/component/service-order/service-order.component.scss +0 -154
- package/lib/component/service-order/summary/transaction-delivery-summary.component.scss +0 -22
- package/lib/component/service-order/summary/transaction-summary-block.component.scss +0 -109
- package/lib/component/service-order/transaction-manager/transaction-manager.component.scss +0 -54
- package/lib/component/service-order/transaction-order-line-view/transaction-order-line-view.component.scss +0 -90
- package/lib/component/service-order/transaction-order-lines/transaction-order-lines.component.scss +0 -85
- package/lib/component/service-order/transaction-order-totals/transaction-order-totals.component.scss +0 -26
- package/lib/component/service-order/transaction-relation/transaction-relation-edit.component.scss +0 -24
- package/lib/component/service-order/transaction-sidebar/transaction-sidebar-right.component.scss +0 -17
- package/lib/component/service-order/warehouse/warehouse.component.scss +0 -54
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', 'rxjs', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.transactionLineType_enum, global.pendingReasonType_enum, global.rxjs, global.addressType_enum, global.transactionInfoResponse_bo, global.
|
|
5
|
-
})(this, (function (exports, i0, nulRelationObject, transactionKind_enum, sequenceName_enum, transactionLineType_enum, pendingReasonType_enum, rxjs, addressType_enum, transactionInfoResponse_bo,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), 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/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/co-domain-value.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/model/vat'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/animations'), require('@angular/platform-browser'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/relation-request'), require('@colijnit/transactionapi/build/enum/discount-type.enum')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', 'rxjs', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/co-domain-value.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/transaction-line-info.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/model/vat', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/animations', '@angular/platform-browser', '@angular/common', '@angular/forms', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/relation-request', '@colijnit/transactionapi/build/enum/discount-type.enum'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.transactionLineType_enum, global.pendingReasonType_enum, global.rxjs, global.addressType_enum, global.transactionInfoResponse_bo, global.customerFullObject_bo, global.relationPrivacySetting_bo, global.deliveryMethod_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.coDomainValue_bo, global.articleFullObject, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.transactionLineInfo_bo, global.cashRegister, global.priceList, global.vat, global.setTransactionDeliveryOptionsRequest_bo, global.relationStatus_enum, global.resolvePendingReasonRequest_bo, global.corecomponents_v12, global.ng.flexLayout, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.animations, global.ng.platformBrowser, global.ng.common, global.ng.forms, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.stockStatus_enum, global.relationRequest, global.discountType_enum));
|
|
5
|
+
})(this, (function (exports, i0, nulRelationObject, transactionKind_enum, sequenceName_enum, transactionLineType_enum, pendingReasonType_enum, rxjs, addressType_enum, transactionInfoResponse_bo, customerFullObject_bo, relationPrivacySetting_bo, deliveryMethod_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, coDomainValue_bo, articleFullObject, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, transactionLineInfo_bo, cashRegister, priceList, vat, setTransactionDeliveryOptionsRequest_bo, relationStatus_enum, resolvePendingReasonRequest_bo, corecomponents_v12, flexLayout, communicationType_enum, contactOption_bo, relationNameKind_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, animations, i1, common, forms, dragDrop, transactionAddTextLineRequest_bo, stockStatus_enum, relationRequest, discountType_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -446,6 +446,7 @@
|
|
|
446
446
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Controleer magazijn en commissiecode",
|
|
447
447
|
"ARTICLE": "Artikel",
|
|
448
448
|
"ARTICLE_DESCRIPTION": "Artikelomschrijving",
|
|
449
|
+
"ARTICLE_IMAGE": "Artikel afbeelding",
|
|
449
450
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
450
451
|
"ARTICLE_NR": "Artikelnummer",
|
|
451
452
|
"ARTICLE_NR_SUPPLIER": "Artikelnr leverancier",
|
|
@@ -457,6 +458,7 @@
|
|
|
457
458
|
"AVAILABLE_STOCK": "Bechikbaar",
|
|
458
459
|
"BACK": "Terug",
|
|
459
460
|
"BACK_TO_STOCK_LINES": "Terug naar voorraadregels",
|
|
461
|
+
"BATCH_NUMBER": "Batchnummer",
|
|
460
462
|
"BRANCH": "Filiaal",
|
|
461
463
|
"BUSINESS_RULE_DISCOUNT": "Business rule korting",
|
|
462
464
|
"CANCEL": "Annuleren",
|
|
@@ -469,6 +471,9 @@
|
|
|
469
471
|
"COMPANY": "Bedrijf",
|
|
470
472
|
"COMPANY_NAME": "Bedrijfsnaam",
|
|
471
473
|
"COMMISSION_CODE": "Commisiecode",
|
|
474
|
+
"CONFIRMED": "Bevestigd",
|
|
475
|
+
"CONFIRMATION": "Bevestiging",
|
|
476
|
+
"CONFIRMED_DATE": "Bevestigde datum",
|
|
472
477
|
"CONTACT_DETAILS": "Contactgegevens",
|
|
473
478
|
"CONTINUE": "Volgende",
|
|
474
479
|
"CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "U heeft gekozen voor het bestellen van artikelen terwijl er nog voorraad aanwezig is. Wilt u verdergaan?",
|
|
@@ -479,6 +484,7 @@
|
|
|
479
484
|
"CREATE_ACCOUNT_IN_2_MIN": "Maak binnen 2 minuten een account aan.",
|
|
480
485
|
"CUSTOMER": "Klant",
|
|
481
486
|
"CUSTOMER_GROUP": "Klantgroep",
|
|
487
|
+
"DATE": "Datum",
|
|
482
488
|
"DATE_OF_BIRTH": "Geboortedatum",
|
|
483
489
|
"DELETE_TRANSACTION_LINE": "verwijderen",
|
|
484
490
|
"DELETE_TRANSACTION_LINE_HINT": "Verwijderen transactieregel",
|
|
@@ -521,27 +527,33 @@
|
|
|
521
527
|
"FABRICATION_COST_LINE_TOTAL": "Fabricageprijs regeltotaal",
|
|
522
528
|
"FEMALE": "Vrouw",
|
|
523
529
|
"FIRST_NAME": "Voornaam",
|
|
530
|
+
"GROSS_PRICE": "Bruto prijs",
|
|
524
531
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
525
532
|
"HOUSE_NO": "Huisnummer",
|
|
526
533
|
"HOUSE_NO_ADDITION": "Huisnummer toevoeging",
|
|
534
|
+
"IN_ORDER": "In bestelling",
|
|
527
535
|
"IN_OUT_COLLECTION": "In-uit-collectie",
|
|
528
536
|
"INVITE_TO_ACCOUNT": "Uitnodigen voor account",
|
|
529
537
|
"INVOICE_ADDRESS": "Factuuradres",
|
|
530
538
|
"INVOICE_ADDRESS_ADD": "Factuuradres toevoegen",
|
|
531
539
|
"INVOICE_ADDRESS_CHANGE": "Factuuradres wijzigen",
|
|
540
|
+
"INVOICE_CHECK": "Factuurcontrole",
|
|
532
541
|
"LAST_EDITED_DATE": "Datum laatste wijziging",
|
|
533
542
|
"LAST_EDITED_USER": "Gebruiker laatste wijziging",
|
|
534
543
|
"LAST_NAME": "Achternaam",
|
|
535
544
|
"LINE_NEEDS_COMMISSION_CODE": "De commisiecode ontbreekt. Vul de commissiecode in.",
|
|
545
|
+
"LOCATION": "Locatie",
|
|
536
546
|
"LOGIN": "Inloggen",
|
|
537
547
|
"LOGIN_DETAILS": "Inloggegevens",
|
|
538
548
|
"LOGISTICS_AND_PLANNING": "Logistiek & planning",
|
|
539
549
|
"MALE": "Man",
|
|
540
550
|
"MARKETING": "Marketing",
|
|
551
|
+
"MENU": "Menu",
|
|
541
552
|
"MODIFICATION_TIME": "Bewerkingstijd",
|
|
542
553
|
"NAME": "Naam",
|
|
543
554
|
"NET_LINE_TOTAL": "Regeltotaal",
|
|
544
555
|
"NETT": "Netto",
|
|
556
|
+
"NETTO_PRICE": "Netto prijs",
|
|
545
557
|
"NEW_AT": "Nieuw bij ",
|
|
546
558
|
"NEW_LOCATION": "Nieuwe locatie",
|
|
547
559
|
"NO_IMAGE": "Geen afbeelding",
|
|
@@ -561,6 +573,7 @@
|
|
|
561
573
|
"OTHER": "Overig",
|
|
562
574
|
"OVERVIEW": "Overzicht",
|
|
563
575
|
"OWN_REFERENCE": "Eigen referentie",
|
|
576
|
+
"PACKING_SLIP": "Pakbon",
|
|
564
577
|
"PAID_DOWN2": "Aanbetaald",
|
|
565
578
|
"PART_DELIVERIES": "Deelleveringen",
|
|
566
579
|
"PASSWORD": "Wachtwoord",
|
|
@@ -589,6 +602,9 @@
|
|
|
589
602
|
"QUANTITY_CANNOT_BE_LESS_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen.",
|
|
590
603
|
"QUANTITY_CANNOT_BE_MORE_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen",
|
|
591
604
|
"QUANTUM_DISCOUNT": "Kwantumkorting",
|
|
605
|
+
"RECEIPT_DETAILS": "Ontvangst details",
|
|
606
|
+
"RECEIVED": "Ontvangst",
|
|
607
|
+
"RECEIVED_DATE": "Ontvangst datum",
|
|
592
608
|
"REFERENCE": "Referentie",
|
|
593
609
|
"REFERENCE_RELATION": "Ref. relatie",
|
|
594
610
|
"REMARKS": "Opmerkingen",
|
|
@@ -596,6 +612,7 @@
|
|
|
596
612
|
"SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
|
|
597
613
|
"SAVE": "Opslaan",
|
|
598
614
|
"SELECT": "Selecteren",
|
|
615
|
+
"SERIAL_NUMBER": "Serienummer",
|
|
599
616
|
"SERVICE_NUMBER": "Servicenummer",
|
|
600
617
|
"SERVICE_REQUEST_DATE": "Datum aanvraag",
|
|
601
618
|
"SERVICE_STATE": "Service status",
|
|
@@ -623,10 +640,12 @@
|
|
|
623
640
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
624
641
|
"TRANSACTION_SUM_I": "Ordertotaal incl. BTW",
|
|
625
642
|
"TRANSACTION_TOTAL": "Transactie totaal",
|
|
643
|
+
"TRANSPORT": "Transport",
|
|
626
644
|
"TRANSPORT_COST": "Transportkosten",
|
|
627
645
|
"TRANSPORT_COST_LINE_TOTAL": "Transportkosten regeltotaal",
|
|
628
646
|
"UNKNOWN": "Onbekend",
|
|
629
647
|
"UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
|
|
648
|
+
"USER": "Gebruiker",
|
|
630
649
|
"VAT": "Btw",
|
|
631
650
|
"VAT_AMOUNT": "BTW-bedrag",
|
|
632
651
|
"VALUE": "Waarde",
|
|
@@ -659,6 +678,7 @@
|
|
|
659
678
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Check warehouse and commissioncode",
|
|
660
679
|
"ARTICLE": "Article",
|
|
661
680
|
"ARTICLE_DESCRIPTION": "Article description",
|
|
681
|
+
"ARTICLE_IMAGE": "Article image",
|
|
662
682
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
663
683
|
"ARTICLE_NR": "Article number",
|
|
664
684
|
"ARTICLE_NR_SUPPLIER": "Artikelnr supplier",
|
|
@@ -668,6 +688,7 @@
|
|
|
668
688
|
"ASSEMBLY_TIME": "Assembly time",
|
|
669
689
|
"AMOUNT": "Amount",
|
|
670
690
|
"BACK": "Back",
|
|
691
|
+
"BATCH_NUMBER": "Batchnumber",
|
|
671
692
|
"BRANCH": "Branch",
|
|
672
693
|
"BUSINESS_RULE_DISCOUNT": "Business rule discount",
|
|
673
694
|
"CANCEL": "Cancel",
|
|
@@ -680,8 +701,11 @@
|
|
|
680
701
|
"COMPANY": "Company",
|
|
681
702
|
"COMPANY_NAME": "Company name",
|
|
682
703
|
"COMMISSION_CODE": "Commission code",
|
|
704
|
+
"CONFIRMATION": "Confirmation",
|
|
705
|
+
"CONFIRMED_DATE": "Confirmed date",
|
|
683
706
|
"CONTACT_DETAILS": "Contactdetails",
|
|
684
707
|
"CONTINUE": "Next",
|
|
708
|
+
"CONFIRMED": "Confirmed",
|
|
685
709
|
"CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "You have chosen to order articles while stock is still available. Do you wish to proceed?",
|
|
686
710
|
"CONTINUE_WITHOUT_ACCOUNT": "Continue without an account",
|
|
687
711
|
"COSTS": "Costs",
|
|
@@ -690,6 +714,7 @@
|
|
|
690
714
|
"CREATE_ACCOUNT_IN_2_MIN": "Create an account in 2 minutes.",
|
|
691
715
|
"CUSTOMER": "Customer",
|
|
692
716
|
"CUSTOMER_GROUP": "Customergroup",
|
|
717
|
+
"DATE": "Date",
|
|
693
718
|
"DATE_OF_BIRTH": "Date of birth",
|
|
694
719
|
"DELETE_TRANSACTION_LINE": "Delete transaction line verwijderen?",
|
|
695
720
|
"DELETE_TRANSACTION_LINE_HINT": "Delete transaction line",
|
|
@@ -731,26 +756,32 @@
|
|
|
731
756
|
"FEMALE": "Female",
|
|
732
757
|
"FIRST_NAME": "First name",
|
|
733
758
|
"GOOD_DESCRIPTION": "Article description",
|
|
759
|
+
"GROSS_PRICE": "Gross price",
|
|
734
760
|
"HOUSE_NO": "Housenumber",
|
|
735
761
|
"HOUSE_NO_ADDITION": "Housenumber addition",
|
|
762
|
+
"IN_ORDER": "In order",
|
|
736
763
|
"IN_OUT_COLLECTION": "In-out-collection",
|
|
737
764
|
"INVITE_TO_ACCOUNT": "Invite account",
|
|
738
765
|
"INVOICE_ADDRESS": "Invoice address",
|
|
739
766
|
"INVOICE_ADDRESS_ADD": "Add invoice address",
|
|
740
767
|
"INVOICE_ADDRESS_CHANGE": "Change invoice address",
|
|
768
|
+
"INVOICE_CHECK": "Invoice check",
|
|
741
769
|
"LAST_EDITED_DATE": "Date last mutation",
|
|
742
770
|
"LAST_EDITED_USER": "User last mutation",
|
|
743
771
|
"LAST_NAME": "Last name",
|
|
744
772
|
"LINE_NEEDS_COMMISSION_CODE": "Line needs a commission code",
|
|
773
|
+
"LOCATION": "Location",
|
|
745
774
|
"LOGIN": "Login",
|
|
746
775
|
"LOGIN_DETAILS": "Login details",
|
|
747
776
|
"LOGISTICS_AND_PLANNING": "Logistics & planning",
|
|
748
777
|
"MALE": "Male",
|
|
749
778
|
"MARKETING": "Marketing",
|
|
779
|
+
"MENU": "Menu",
|
|
750
780
|
"MODIFICATION_TIME": "Modification time",
|
|
751
781
|
"NAME": "Name",
|
|
752
782
|
"NET_LINE_TOTAL": "Linetotal",
|
|
753
783
|
"NETT": "Net",
|
|
784
|
+
"NETTO_PRICE": "Netto price",
|
|
754
785
|
"NEW_AT": "New at ",
|
|
755
786
|
"NEW_LOCATION": "New location",
|
|
756
787
|
"NO_IMAGE": "No image available",
|
|
@@ -770,6 +801,7 @@
|
|
|
770
801
|
"OTHER": "Other",
|
|
771
802
|
"OVERVIEW": "Overview",
|
|
772
803
|
"OWN_REFERENCE": "Own reference",
|
|
804
|
+
"PACKING_SLIP": "Packing slip",
|
|
773
805
|
"PAID_DOWN2": "Prepaid",
|
|
774
806
|
"PART_DELIVERIES": "Partial deliveries",
|
|
775
807
|
"PASSWORD": "Password",
|
|
@@ -789,6 +821,9 @@
|
|
|
789
821
|
"PRODUCT_TYPE": "Product type",
|
|
790
822
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Quantity cannot be zero or empty",
|
|
791
823
|
"QUANTUM_DISCOUNT": "Quantum discount",
|
|
824
|
+
"RECEIPT_DETAILS": "Receipt details",
|
|
825
|
+
"RECEIVED": "Received",
|
|
826
|
+
"RECEIVED_DATE": "Received date",
|
|
792
827
|
"REFERENCE": "Reference",
|
|
793
828
|
"REFERENCE_RELATION": "Ref. relation",
|
|
794
829
|
"REMARKS": "Remarks",
|
|
@@ -796,6 +831,7 @@
|
|
|
796
831
|
"SAME_AS_DELIVERY": "Same as delivery address",
|
|
797
832
|
"SAVE": "Save",
|
|
798
833
|
"SELECT": "Select",
|
|
834
|
+
"SERIAL_NUMBER": "Serial number",
|
|
799
835
|
"SERVICE_NUMBER": "Service number",
|
|
800
836
|
"SERVICE_REQUEST_DATE": "Service request data",
|
|
801
837
|
"SERVICE_STATE": "Service state",
|
|
@@ -822,10 +858,12 @@
|
|
|
822
858
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
823
859
|
"TRANSACTION_SUM_I": "Ordertotal incl VAT",
|
|
824
860
|
"TRANSACTION_TOTAL": "Transaction total",
|
|
861
|
+
"TRANSPORT": "Transport",
|
|
825
862
|
"TRANSPORT_COST": "Transportcosts",
|
|
826
863
|
"TRANSPORT_COST_LINE_TOTAL": "Transportcosts linetotal",
|
|
827
864
|
"UNKNOWN": "unknown",
|
|
828
865
|
"UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
|
|
866
|
+
"USER": "User",
|
|
829
867
|
"VALUE": "Value",
|
|
830
868
|
"VAT": "VAT",
|
|
831
869
|
"VAT_AMOUNT": "VAT amount",
|
|
@@ -1746,7 +1784,7 @@
|
|
|
1746
1784
|
return new Promise(function (resolve, reject) {
|
|
1747
1785
|
return _this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then(function (result) {
|
|
1748
1786
|
if (result.validationResult && result.validationResult.success) {
|
|
1749
|
-
if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
|
|
1787
|
+
if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== undefined && result.resultObject.filePath !== "") {
|
|
1750
1788
|
return resolve(imageUtils.ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
|
|
1751
1789
|
}
|
|
1752
1790
|
else {
|
|
@@ -1756,8 +1794,8 @@
|
|
|
1756
1794
|
}
|
|
1757
1795
|
return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
|
|
1758
1796
|
}
|
|
1759
|
-
else {
|
|
1760
|
-
|
|
1797
|
+
else { // no image
|
|
1798
|
+
resolve("");
|
|
1761
1799
|
}
|
|
1762
1800
|
}
|
|
1763
1801
|
}
|
|
@@ -1993,6 +2031,45 @@
|
|
|
1993
2031
|
});
|
|
1994
2032
|
});
|
|
1995
2033
|
};
|
|
2034
|
+
IOneConnectorAdapterService.prototype.getPriceLists = function (code) {
|
|
2035
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2036
|
+
var response;
|
|
2037
|
+
return __generator(this, function (_a) {
|
|
2038
|
+
switch (_a.label) {
|
|
2039
|
+
case 0: return [4 /*yield*/, this.connector.getPriceLists(code)];
|
|
2040
|
+
case 1:
|
|
2041
|
+
response = _a.sent();
|
|
2042
|
+
if (response.validationResult && response.validationResult.success) {
|
|
2043
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(priceList.PriceList, response.resultObjects)];
|
|
2044
|
+
}
|
|
2045
|
+
else {
|
|
2046
|
+
return [2 /*return*/, []]; // todo: handle error messages in a good way
|
|
2047
|
+
}
|
|
2048
|
+
return [2 /*return*/];
|
|
2049
|
+
}
|
|
2050
|
+
});
|
|
2051
|
+
});
|
|
2052
|
+
};
|
|
2053
|
+
IOneConnectorAdapterService.prototype.getVatList = function (onlyValid) {
|
|
2054
|
+
if (onlyValid === void 0) { onlyValid = false; }
|
|
2055
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2056
|
+
var response;
|
|
2057
|
+
return __generator(this, function (_a) {
|
|
2058
|
+
switch (_a.label) {
|
|
2059
|
+
case 0: return [4 /*yield*/, this.connector.getVatList(onlyValid)];
|
|
2060
|
+
case 1:
|
|
2061
|
+
response = _a.sent();
|
|
2062
|
+
if (response.validationResult && response.validationResult.success) {
|
|
2063
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(vat.Vat, response.resultObjects)];
|
|
2064
|
+
}
|
|
2065
|
+
else {
|
|
2066
|
+
return [2 /*return*/, []]; // todo: handle error messages in a good way
|
|
2067
|
+
}
|
|
2068
|
+
return [2 /*return*/];
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
});
|
|
2072
|
+
};
|
|
1996
2073
|
IOneConnectorAdapterService.prototype.getSequenceValue = function (sequenceName) {
|
|
1997
2074
|
return __awaiter(this, void 0, void 0, function () {
|
|
1998
2075
|
var _this = this;
|
|
@@ -2158,7 +2235,7 @@
|
|
|
2158
2235
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2159
2236
|
return _this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr).then(function (result) {
|
|
2160
2237
|
if (result.validationResult && result.validationResult.success) {
|
|
2161
|
-
resolve(_this._boFactory.makeWithRawBackendData(
|
|
2238
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
2162
2239
|
}
|
|
2163
2240
|
else {
|
|
2164
2241
|
reject(result.validationMessagesAsString);
|
|
@@ -2175,7 +2252,7 @@
|
|
|
2175
2252
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2176
2253
|
return _this.connector.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr).then(function (result) {
|
|
2177
2254
|
if (result.validationResult && result.validationResult.success) {
|
|
2178
|
-
resolve(_this._boFactory.makeWithRawBackendData(
|
|
2255
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
2179
2256
|
}
|
|
2180
2257
|
else {
|
|
2181
2258
|
reject(result.validationMessagesAsString);
|
|
@@ -2190,9 +2267,15 @@
|
|
|
2190
2267
|
var _this = this;
|
|
2191
2268
|
return __generator(this, function (_a) {
|
|
2192
2269
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2193
|
-
|
|
2270
|
+
var request = {
|
|
2271
|
+
transactionUuid: uuid,
|
|
2272
|
+
lineUuid: lineUuid,
|
|
2273
|
+
aboveLineNr: aboveLineNr,
|
|
2274
|
+
belowLineNr: belowLineNr
|
|
2275
|
+
};
|
|
2276
|
+
return _this.connector.changeLineSequence(request).then(function (result) {
|
|
2194
2277
|
if (result.validationResult && result.validationResult.success) {
|
|
2195
|
-
resolve(_this._boFactory.makeWithRawBackendData(
|
|
2278
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
2196
2279
|
}
|
|
2197
2280
|
else {
|
|
2198
2281
|
reject(result.validationMessagesAsString);
|
|
@@ -2241,7 +2324,12 @@
|
|
|
2241
2324
|
var _this = this;
|
|
2242
2325
|
return __generator(this, function (_a) {
|
|
2243
2326
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2244
|
-
|
|
2327
|
+
var request = {
|
|
2328
|
+
transactionUuid: uuid,
|
|
2329
|
+
lineUuid: lineUuid,
|
|
2330
|
+
newQuantity: newQuantity
|
|
2331
|
+
};
|
|
2332
|
+
return _this.connector.changeTransactionLineQuantity(request).then(function (result) {
|
|
2245
2333
|
if (result.validationResult && result.validationResult.success) {
|
|
2246
2334
|
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
2247
2335
|
}
|
|
@@ -2374,6 +2462,334 @@
|
|
|
2374
2462
|
});
|
|
2375
2463
|
});
|
|
2376
2464
|
};
|
|
2465
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineCommissionCode = function (uuid, lineUuid, code) {
|
|
2466
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2467
|
+
var request, response;
|
|
2468
|
+
return __generator(this, function (_a) {
|
|
2469
|
+
switch (_a.label) {
|
|
2470
|
+
case 0:
|
|
2471
|
+
request = {
|
|
2472
|
+
transactionUuid: uuid,
|
|
2473
|
+
lineUuid: lineUuid,
|
|
2474
|
+
newCommissionCode: code
|
|
2475
|
+
};
|
|
2476
|
+
return [4 /*yield*/, this.connector.changeTransactionLineCommissionCode(request)];
|
|
2477
|
+
case 1:
|
|
2478
|
+
response = _a.sent();
|
|
2479
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2480
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2481
|
+
}
|
|
2482
|
+
else {
|
|
2483
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2484
|
+
}
|
|
2485
|
+
return [2 /*return*/];
|
|
2486
|
+
}
|
|
2487
|
+
});
|
|
2488
|
+
});
|
|
2489
|
+
};
|
|
2490
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineWarehouse = function (uuid, lineUuid, warehouseNumber) {
|
|
2491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2492
|
+
var request, response;
|
|
2493
|
+
return __generator(this, function (_a) {
|
|
2494
|
+
switch (_a.label) {
|
|
2495
|
+
case 0:
|
|
2496
|
+
request = {
|
|
2497
|
+
transactionUuid: uuid,
|
|
2498
|
+
lineUuid: lineUuid,
|
|
2499
|
+
newWarehouseNumber: warehouseNumber
|
|
2500
|
+
};
|
|
2501
|
+
return [4 /*yield*/, this.connector.changeTransactionLineWarehouse(request)];
|
|
2502
|
+
case 1:
|
|
2503
|
+
response = _a.sent();
|
|
2504
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2505
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2506
|
+
}
|
|
2507
|
+
else {
|
|
2508
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2509
|
+
}
|
|
2510
|
+
return [2 /*return*/];
|
|
2511
|
+
}
|
|
2512
|
+
});
|
|
2513
|
+
});
|
|
2514
|
+
};
|
|
2515
|
+
IOneConnectorAdapterService.prototype.changeTransactionLinePrice = function (uuid, lineUuid, price) {
|
|
2516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2517
|
+
var request, response;
|
|
2518
|
+
return __generator(this, function (_a) {
|
|
2519
|
+
switch (_a.label) {
|
|
2520
|
+
case 0:
|
|
2521
|
+
request = {
|
|
2522
|
+
transactionUuid: uuid,
|
|
2523
|
+
lineUuid: lineUuid,
|
|
2524
|
+
newPrice: price
|
|
2525
|
+
};
|
|
2526
|
+
return [4 /*yield*/, this.connector.changeTransactionLinePrice(request)];
|
|
2527
|
+
case 1:
|
|
2528
|
+
response = _a.sent();
|
|
2529
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2530
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2531
|
+
}
|
|
2532
|
+
else {
|
|
2533
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2534
|
+
}
|
|
2535
|
+
return [2 /*return*/];
|
|
2536
|
+
}
|
|
2537
|
+
});
|
|
2538
|
+
});
|
|
2539
|
+
};
|
|
2540
|
+
IOneConnectorAdapterService.prototype.changeTransactionLinePriceList = function (uuid, lineUuid, priceList) {
|
|
2541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2542
|
+
var request, response;
|
|
2543
|
+
return __generator(this, function (_a) {
|
|
2544
|
+
switch (_a.label) {
|
|
2545
|
+
case 0:
|
|
2546
|
+
request = {
|
|
2547
|
+
transactionUuid: uuid,
|
|
2548
|
+
lineUuid: lineUuid,
|
|
2549
|
+
newPriceListCode: priceList
|
|
2550
|
+
};
|
|
2551
|
+
return [4 /*yield*/, this.connector.changeTransactionLinePriceList(request)];
|
|
2552
|
+
case 1:
|
|
2553
|
+
response = _a.sent();
|
|
2554
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2555
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2556
|
+
}
|
|
2557
|
+
else {
|
|
2558
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2559
|
+
}
|
|
2560
|
+
return [2 /*return*/];
|
|
2561
|
+
}
|
|
2562
|
+
});
|
|
2563
|
+
});
|
|
2564
|
+
};
|
|
2565
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineVat = function (uuid, lineUuid, id) {
|
|
2566
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2567
|
+
var request, response;
|
|
2568
|
+
return __generator(this, function (_a) {
|
|
2569
|
+
switch (_a.label) {
|
|
2570
|
+
case 0:
|
|
2571
|
+
request = {
|
|
2572
|
+
transactionUuid: uuid,
|
|
2573
|
+
lineUuid: lineUuid,
|
|
2574
|
+
newVatId: id
|
|
2575
|
+
};
|
|
2576
|
+
return [4 /*yield*/, this.connector.changeTransactionLineVat(request)];
|
|
2577
|
+
case 1:
|
|
2578
|
+
response = _a.sent();
|
|
2579
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2580
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2581
|
+
}
|
|
2582
|
+
else {
|
|
2583
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2584
|
+
}
|
|
2585
|
+
return [2 /*return*/];
|
|
2586
|
+
}
|
|
2587
|
+
});
|
|
2588
|
+
});
|
|
2589
|
+
};
|
|
2590
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineLineDiscount = function (uuid, lineUuid, type, discount, reason, code) {
|
|
2591
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2592
|
+
var request, response;
|
|
2593
|
+
return __generator(this, function (_a) {
|
|
2594
|
+
switch (_a.label) {
|
|
2595
|
+
case 0:
|
|
2596
|
+
request = {
|
|
2597
|
+
transactionUuid: uuid,
|
|
2598
|
+
lineUuid: lineUuid,
|
|
2599
|
+
discountType: type,
|
|
2600
|
+
newDiscount: discount,
|
|
2601
|
+
newDiscountReason: reason,
|
|
2602
|
+
newDiscountCode: code
|
|
2603
|
+
};
|
|
2604
|
+
return [4 /*yield*/, this.connector.changeTransactionLineDiscount(request)];
|
|
2605
|
+
case 1:
|
|
2606
|
+
response = _a.sent();
|
|
2607
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2608
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2609
|
+
}
|
|
2610
|
+
else {
|
|
2611
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2612
|
+
}
|
|
2613
|
+
return [2 /*return*/];
|
|
2614
|
+
}
|
|
2615
|
+
});
|
|
2616
|
+
});
|
|
2617
|
+
};
|
|
2618
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineDeliveryMethod = function (uuid, lineUuid, method) {
|
|
2619
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2620
|
+
var request, response;
|
|
2621
|
+
return __generator(this, function (_a) {
|
|
2622
|
+
switch (_a.label) {
|
|
2623
|
+
case 0:
|
|
2624
|
+
request = {
|
|
2625
|
+
transactionUuid: uuid,
|
|
2626
|
+
lineUuid: lineUuid,
|
|
2627
|
+
newDeliveryMethodCode: method
|
|
2628
|
+
};
|
|
2629
|
+
return [4 /*yield*/, this.connector.changeTransactionLineDeliveryMethod(request)];
|
|
2630
|
+
case 1:
|
|
2631
|
+
response = _a.sent();
|
|
2632
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2633
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2634
|
+
}
|
|
2635
|
+
else {
|
|
2636
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2637
|
+
}
|
|
2638
|
+
return [2 /*return*/];
|
|
2639
|
+
}
|
|
2640
|
+
});
|
|
2641
|
+
});
|
|
2642
|
+
};
|
|
2643
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineDeliveryDate = function (uuid, lineUuid, date) {
|
|
2644
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2645
|
+
var request, response;
|
|
2646
|
+
return __generator(this, function (_a) {
|
|
2647
|
+
switch (_a.label) {
|
|
2648
|
+
case 0:
|
|
2649
|
+
request = {
|
|
2650
|
+
transactionUuid: uuid,
|
|
2651
|
+
lineUuid: lineUuid,
|
|
2652
|
+
newDeliveryDate: date
|
|
2653
|
+
};
|
|
2654
|
+
return [4 /*yield*/, this.connector.changeTransactionLineDeliveryDate(request)];
|
|
2655
|
+
case 1:
|
|
2656
|
+
response = _a.sent();
|
|
2657
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2658
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2659
|
+
}
|
|
2660
|
+
else {
|
|
2661
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2662
|
+
}
|
|
2663
|
+
return [2 /*return*/];
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
});
|
|
2667
|
+
};
|
|
2668
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineAssemblyTime = function (uuid, lineUuid, time) {
|
|
2669
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2670
|
+
var request, response;
|
|
2671
|
+
return __generator(this, function (_a) {
|
|
2672
|
+
switch (_a.label) {
|
|
2673
|
+
case 0:
|
|
2674
|
+
request = {
|
|
2675
|
+
transactionUuid: uuid,
|
|
2676
|
+
lineUuid: lineUuid,
|
|
2677
|
+
newAssemblyTime: time
|
|
2678
|
+
};
|
|
2679
|
+
return [4 /*yield*/, this.connector.changeTransactionLineAssemblyTime(request)];
|
|
2680
|
+
case 1:
|
|
2681
|
+
response = _a.sent();
|
|
2682
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2683
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2684
|
+
}
|
|
2685
|
+
else {
|
|
2686
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2687
|
+
}
|
|
2688
|
+
return [2 /*return*/];
|
|
2689
|
+
}
|
|
2690
|
+
});
|
|
2691
|
+
});
|
|
2692
|
+
};
|
|
2693
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineEditTime = function (uuid, lineUuid, time) {
|
|
2694
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2695
|
+
var request, response;
|
|
2696
|
+
return __generator(this, function (_a) {
|
|
2697
|
+
switch (_a.label) {
|
|
2698
|
+
case 0:
|
|
2699
|
+
request = {
|
|
2700
|
+
transactionUuid: uuid,
|
|
2701
|
+
lineUuid: lineUuid,
|
|
2702
|
+
newEditTime: time
|
|
2703
|
+
};
|
|
2704
|
+
return [4 /*yield*/, this.connector.changeTransactionLineEditTime(request)];
|
|
2705
|
+
case 1:
|
|
2706
|
+
response = _a.sent();
|
|
2707
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2708
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2709
|
+
}
|
|
2710
|
+
else {
|
|
2711
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2712
|
+
}
|
|
2713
|
+
return [2 /*return*/];
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
});
|
|
2717
|
+
};
|
|
2718
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineSupplierArticleNumber = function (uuid, lineUuid, articleNumber) {
|
|
2719
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2720
|
+
var request, response;
|
|
2721
|
+
return __generator(this, function (_a) {
|
|
2722
|
+
switch (_a.label) {
|
|
2723
|
+
case 0:
|
|
2724
|
+
request = {
|
|
2725
|
+
transactionUuid: uuid,
|
|
2726
|
+
lineUuid: lineUuid,
|
|
2727
|
+
newSupplierArticleNumber: articleNumber
|
|
2728
|
+
};
|
|
2729
|
+
return [4 /*yield*/, this.connector.changeTransactionLineSupplierArticleNumber(request)];
|
|
2730
|
+
case 1:
|
|
2731
|
+
response = _a.sent();
|
|
2732
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2733
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2734
|
+
}
|
|
2735
|
+
else {
|
|
2736
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2737
|
+
}
|
|
2738
|
+
return [2 /*return*/];
|
|
2739
|
+
}
|
|
2740
|
+
});
|
|
2741
|
+
});
|
|
2742
|
+
};
|
|
2743
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineReference = function (uuid, lineUuid, reference) {
|
|
2744
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2745
|
+
var request, response;
|
|
2746
|
+
return __generator(this, function (_a) {
|
|
2747
|
+
switch (_a.label) {
|
|
2748
|
+
case 0:
|
|
2749
|
+
request = {
|
|
2750
|
+
transactionUuid: uuid,
|
|
2751
|
+
lineUuid: lineUuid,
|
|
2752
|
+
newReference: reference
|
|
2753
|
+
};
|
|
2754
|
+
return [4 /*yield*/, this.connector.changeTransactionLineReference(request)];
|
|
2755
|
+
case 1:
|
|
2756
|
+
response = _a.sent();
|
|
2757
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2758
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2759
|
+
}
|
|
2760
|
+
else {
|
|
2761
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2762
|
+
}
|
|
2763
|
+
return [2 /*return*/];
|
|
2764
|
+
}
|
|
2765
|
+
});
|
|
2766
|
+
});
|
|
2767
|
+
};
|
|
2768
|
+
IOneConnectorAdapterService.prototype.changeTransactionLineCollectionCode = function (uuid, lineUuid, code) {
|
|
2769
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2770
|
+
var request, response;
|
|
2771
|
+
return __generator(this, function (_a) {
|
|
2772
|
+
switch (_a.label) {
|
|
2773
|
+
case 0:
|
|
2774
|
+
request = {
|
|
2775
|
+
transactionUuid: uuid,
|
|
2776
|
+
lineUuid: lineUuid,
|
|
2777
|
+
newCollectionCode: code
|
|
2778
|
+
};
|
|
2779
|
+
return [4 /*yield*/, this.connector.changeTransactionLineCollectionCode(request)];
|
|
2780
|
+
case 1:
|
|
2781
|
+
response = _a.sent();
|
|
2782
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2783
|
+
return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
|
|
2784
|
+
}
|
|
2785
|
+
else {
|
|
2786
|
+
return [2 /*return*/, Promise.reject(response.validationMessagesAsString)];
|
|
2787
|
+
}
|
|
2788
|
+
return [2 /*return*/];
|
|
2789
|
+
}
|
|
2790
|
+
});
|
|
2791
|
+
});
|
|
2792
|
+
};
|
|
2377
2793
|
return IOneConnectorAdapterService;
|
|
2378
2794
|
}());
|
|
2379
2795
|
IOneConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IOneConnectorAdapterService_Factory() { return new IOneConnectorAdapterService(i0__namespace.ɵɵinject(OptionsService)); }, token: IOneConnectorAdapterService, providedIn: "root" });
|
|
@@ -2406,10 +2822,20 @@
|
|
|
2406
2822
|
return DialogBaseComponent;
|
|
2407
2823
|
}());
|
|
2408
2824
|
|
|
2825
|
+
var AppPopupType;
|
|
2826
|
+
(function (AppPopupType) {
|
|
2827
|
+
AppPopupType[AppPopupType["Error"] = 0] = "Error";
|
|
2828
|
+
AppPopupType[AppPopupType["Warning"] = 1] = "Warning";
|
|
2829
|
+
AppPopupType[AppPopupType["Information"] = 2] = "Information";
|
|
2830
|
+
AppPopupType[AppPopupType["Confirmation"] = 3] = "Confirmation";
|
|
2831
|
+
})(AppPopupType || (AppPopupType = {}));
|
|
2832
|
+
|
|
2409
2833
|
var ConfirmationDialogComponent = /** @class */ (function (_super) {
|
|
2410
2834
|
__extends(ConfirmationDialogComponent, _super);
|
|
2411
2835
|
function ConfirmationDialogComponent() {
|
|
2412
|
-
|
|
2836
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2837
|
+
_this.ptype = AppPopupType;
|
|
2838
|
+
return _this;
|
|
2413
2839
|
}
|
|
2414
2840
|
ConfirmationDialogComponent.prototype.showClass = function () {
|
|
2415
2841
|
return true;
|
|
@@ -2420,18 +2846,22 @@
|
|
|
2420
2846
|
ConfirmationDialogComponent.prototype.handleNoClick = function (event) {
|
|
2421
2847
|
this.onClose(AppPopupButtonType.No);
|
|
2422
2848
|
};
|
|
2849
|
+
ConfirmationDialogComponent.prototype.handleOkClick = function (event) {
|
|
2850
|
+
this.onClose(AppPopupButtonType.Ok);
|
|
2851
|
+
};
|
|
2423
2852
|
return ConfirmationDialogComponent;
|
|
2424
2853
|
}(DialogBaseComponent));
|
|
2425
2854
|
ConfirmationDialogComponent.decorators = [
|
|
2426
2855
|
{ type: i0.Component, args: [{
|
|
2427
2856
|
selector: "co-confirmation-dialog",
|
|
2428
|
-
template: "\n <co-dialog [showCloseIcon]=\"false\">\n <div class=\"confirmation-dialog-wrapper\">\n <div class=\"title\" [textContent]=\"title | localize\"></div>\n <div class=\"text\" [textContent]=\"text\"></div>\n <div class=\"button-wrapper\">\n <co-button [label]=\"'YES' | localize\" (click)=\"handleYesClick($event)\"></co-button>\n
|
|
2857
|
+
template: "\n <co-dialog [showCloseIcon]=\"false\">\n <div class=\"confirmation-dialog-wrapper\">\n <div class=\"title\" [textContent]=\"title | localize\"></div>\n <div class=\"text\" [textContent]=\"text\"></div>\n <div class=\"button-wrapper\">\n <ng-container *ngIf=\"type === ptype.Confirmation\">\n <co-button [label]=\"'YES' | localize\" (click)=\"handleYesClick($event)\"></co-button>\n <co-button [label]=\"'NO' | localize\" (click)=\"handleNoClick($event)\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"type === ptype.Information\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick($event)\"></co-button>\n </ng-container>\n </div>\n </div>\n </co-dialog>\n ",
|
|
2429
2858
|
encapsulation: i0.ViewEncapsulation.None
|
|
2430
2859
|
},] }
|
|
2431
2860
|
];
|
|
2432
2861
|
ConfirmationDialogComponent.propDecorators = {
|
|
2433
2862
|
title: [{ type: i0.Input }],
|
|
2434
2863
|
text: [{ type: i0.Input }],
|
|
2864
|
+
type: [{ type: i0.Input }],
|
|
2435
2865
|
showClass: [{ type: i0.HostBinding, args: ["class.co-confirmation-dialog",] }]
|
|
2436
2866
|
};
|
|
2437
2867
|
|
|
@@ -2449,7 +2879,8 @@
|
|
|
2449
2879
|
case 0:
|
|
2450
2880
|
data = {
|
|
2451
2881
|
title: title,
|
|
2452
|
-
text: text
|
|
2882
|
+
text: text,
|
|
2883
|
+
type: AppPopupType.Confirmation
|
|
2453
2884
|
};
|
|
2454
2885
|
return [4 /*yield*/, this._createComponent(ConfirmationDialogComponent, data)];
|
|
2455
2886
|
case 1:
|
|
@@ -2462,7 +2893,16 @@
|
|
|
2462
2893
|
DialogService.prototype.showError = function (message) {
|
|
2463
2894
|
var data = {
|
|
2464
2895
|
title: 'ERROR',
|
|
2465
|
-
text: message
|
|
2896
|
+
text: message,
|
|
2897
|
+
type: AppPopupType.Error
|
|
2898
|
+
};
|
|
2899
|
+
return this._createComponent(ConfirmationDialogComponent, data);
|
|
2900
|
+
};
|
|
2901
|
+
DialogService.prototype.showInformation = function (message) {
|
|
2902
|
+
var data = {
|
|
2903
|
+
title: 'INFORMATION',
|
|
2904
|
+
text: message,
|
|
2905
|
+
type: AppPopupType.Information
|
|
2466
2906
|
};
|
|
2467
2907
|
return this._createComponent(ConfirmationDialogComponent, data);
|
|
2468
2908
|
};
|
|
@@ -2560,23 +3000,29 @@
|
|
|
2560
3000
|
};
|
|
2561
3001
|
PendingReasonService.prototype.handleLineOperationStatuses = function (response) {
|
|
2562
3002
|
return __awaiter(this, void 0, void 0, function () {
|
|
2563
|
-
var _loop_1, this_1, i;
|
|
3003
|
+
var success, _loop_1, this_1, i;
|
|
2564
3004
|
return __generator(this, function (_a) {
|
|
2565
3005
|
switch (_a.label) {
|
|
2566
3006
|
case 0:
|
|
2567
3007
|
if (!response.lineOperationStatuses || response.lineOperationStatuses.length === 0) {
|
|
2568
3008
|
return [2 /*return*/, true];
|
|
2569
3009
|
}
|
|
3010
|
+
success = true;
|
|
2570
3011
|
_loop_1 = function (i) {
|
|
2571
|
-
var status, transLine;
|
|
2572
|
-
return __generator(this, function (
|
|
2573
|
-
switch (
|
|
3012
|
+
var status, transLine, _b;
|
|
3013
|
+
return __generator(this, function (_c) {
|
|
3014
|
+
switch (_c.label) {
|
|
2574
3015
|
case 0:
|
|
2575
3016
|
status = response.lineOperationStatuses[i];
|
|
2576
3017
|
transLine = response.transactionLines.find(function (t) { return t.lineNr === status.lineNr; });
|
|
3018
|
+
_b = success;
|
|
3019
|
+
if (!_b) return [3 /*break*/, 2];
|
|
2577
3020
|
return [4 /*yield*/, this_1._handleLineOperationStatus(status, transLine)];
|
|
2578
3021
|
case 1:
|
|
2579
|
-
_b.sent();
|
|
3022
|
+
_b = (_c.sent());
|
|
3023
|
+
_c.label = 2;
|
|
3024
|
+
case 2:
|
|
3025
|
+
success = _b;
|
|
2580
3026
|
return [2 /*return*/];
|
|
2581
3027
|
}
|
|
2582
3028
|
});
|
|
@@ -2593,7 +3039,7 @@
|
|
|
2593
3039
|
case 3:
|
|
2594
3040
|
i++;
|
|
2595
3041
|
return [3 /*break*/, 1];
|
|
2596
|
-
case 4: return [2 /*return*/,
|
|
3042
|
+
case 4: return [2 /*return*/, success];
|
|
2597
3043
|
}
|
|
2598
3044
|
});
|
|
2599
3045
|
});
|
|
@@ -2620,20 +3066,25 @@
|
|
|
2620
3066
|
switch (_a) {
|
|
2621
3067
|
case pendingReasonType_enum.PendingReasonType.ABORTED: return [3 /*break*/, 1];
|
|
2622
3068
|
case pendingReasonType_enum.PendingReasonType.CANCELLED: return [3 /*break*/, 1];
|
|
2623
|
-
case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/,
|
|
2624
|
-
case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/,
|
|
3069
|
+
case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/, 5];
|
|
3070
|
+
case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/, 7];
|
|
2625
3071
|
}
|
|
2626
|
-
return [3 /*break*/,
|
|
2627
|
-
case 1:
|
|
3072
|
+
return [3 /*break*/, 7];
|
|
3073
|
+
case 1:
|
|
3074
|
+
if (!(operationStatus.pendingReason === 'USER_DECISION')) return [3 /*break*/, 3];
|
|
3075
|
+
return [4 /*yield*/, this._cancelArticle(operationStatus.uuid)];
|
|
2628
3076
|
case 2:
|
|
2629
3077
|
_b.sent();
|
|
2630
|
-
return [3 /*break*/,
|
|
2631
|
-
case 3:
|
|
2632
|
-
|
|
2633
|
-
_b.
|
|
2634
|
-
|
|
2635
|
-
case 5: return [
|
|
2636
|
-
case 6:
|
|
3078
|
+
return [3 /*break*/, 4];
|
|
3079
|
+
case 3:
|
|
3080
|
+
this._showReasonDialog(operationStatus.pendingReason);
|
|
3081
|
+
_b.label = 4;
|
|
3082
|
+
case 4: return [2 /*return*/, false];
|
|
3083
|
+
case 5: return [4 /*yield*/, this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
3084
|
+
case 6:
|
|
3085
|
+
_b.sent();
|
|
3086
|
+
return [2 /*return*/, false];
|
|
3087
|
+
case 7: return [2 /*return*/, true];
|
|
2637
3088
|
}
|
|
2638
3089
|
});
|
|
2639
3090
|
});
|
|
@@ -2659,7 +3110,7 @@
|
|
|
2659
3110
|
return __generator(this, function (_b) {
|
|
2660
3111
|
switch (_b.label) {
|
|
2661
3112
|
case 0:
|
|
2662
|
-
reasonRequest = new resolvePendingReasonRequest_bo.
|
|
3113
|
+
reasonRequest = new resolvePendingReasonRequest_bo.ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
2663
3114
|
// const pendingReasonText: string = await this._getPendingReasonText(this.currentOperationStatus.pendingReason);
|
|
2664
3115
|
_a = reasonRequest;
|
|
2665
3116
|
return [4 /*yield*/, this.dialogService.showYesNo('Action', reason)];
|
|
@@ -2674,6 +3125,14 @@
|
|
|
2674
3125
|
});
|
|
2675
3126
|
});
|
|
2676
3127
|
};
|
|
3128
|
+
PendingReasonService.prototype._showReasonDialog = function (reason) {
|
|
3129
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3130
|
+
return __generator(this, function (_a) {
|
|
3131
|
+
this.dialogService.showInformation(reason);
|
|
3132
|
+
return [2 /*return*/];
|
|
3133
|
+
});
|
|
3134
|
+
});
|
|
3135
|
+
};
|
|
2677
3136
|
PendingReasonService.prototype._setTransactionDeliveryOptions = function () {
|
|
2678
3137
|
if (!this.deliveryOptions) {
|
|
2679
3138
|
this.deliveryOptions = new setTransactionDeliveryOptionsRequest_bo.SetTransactionDeliveryOptionsRequest();
|
|
@@ -2739,7 +3198,9 @@
|
|
|
2739
3198
|
var TransactionService = /** @class */ (function (_super) {
|
|
2740
3199
|
__extends(TransactionService, _super);
|
|
2741
3200
|
function TransactionService() {
|
|
2742
|
-
|
|
3201
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3202
|
+
_this._imageCache = new Map();
|
|
3203
|
+
return _this;
|
|
2743
3204
|
}
|
|
2744
3205
|
// public get currentLines(): TransactionLineInfo[] {
|
|
2745
3206
|
// return this._currentLines;
|
|
@@ -2796,6 +3257,238 @@
|
|
|
2796
3257
|
&& line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION; });
|
|
2797
3258
|
return status;
|
|
2798
3259
|
};
|
|
3260
|
+
TransactionService.prototype.updatePriceTransactionLine = function (uuid, lineUuid, price) {
|
|
3261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3262
|
+
var response, success;
|
|
3263
|
+
return __generator(this, function (_a) {
|
|
3264
|
+
switch (_a.label) {
|
|
3265
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLinePrice(uuid, lineUuid, price)
|
|
3266
|
+
.catch(function (error) {
|
|
3267
|
+
// todo: do something with the error
|
|
3268
|
+
return false;
|
|
3269
|
+
})];
|
|
3270
|
+
case 1:
|
|
3271
|
+
response = _a.sent();
|
|
3272
|
+
if (!response) return [3 /*break*/, 3];
|
|
3273
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3274
|
+
case 2:
|
|
3275
|
+
success = _a.sent();
|
|
3276
|
+
this._rememberCurrentTransaction(response);
|
|
3277
|
+
return [2 /*return*/, success];
|
|
3278
|
+
case 3: return [2 /*return*/, false];
|
|
3279
|
+
}
|
|
3280
|
+
});
|
|
3281
|
+
});
|
|
3282
|
+
};
|
|
3283
|
+
TransactionService.prototype.updateReferenceTransactionLine = function (uuid, lineUuid, reference) {
|
|
3284
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3285
|
+
var response, success;
|
|
3286
|
+
return __generator(this, function (_a) {
|
|
3287
|
+
switch (_a.label) {
|
|
3288
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineReference(uuid, lineUuid, reference)
|
|
3289
|
+
.catch(function (error) {
|
|
3290
|
+
// todo: do something with the error
|
|
3291
|
+
return false;
|
|
3292
|
+
})];
|
|
3293
|
+
case 1:
|
|
3294
|
+
response = _a.sent();
|
|
3295
|
+
if (!response) return [3 /*break*/, 3];
|
|
3296
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3297
|
+
case 2:
|
|
3298
|
+
success = _a.sent();
|
|
3299
|
+
this._rememberCurrentTransaction(response);
|
|
3300
|
+
return [2 /*return*/, success];
|
|
3301
|
+
case 3: return [2 /*return*/, false];
|
|
3302
|
+
}
|
|
3303
|
+
});
|
|
3304
|
+
});
|
|
3305
|
+
};
|
|
3306
|
+
TransactionService.prototype.updateQuantityTransactionLine = function (uuid, lineUuid, quantity) {
|
|
3307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3308
|
+
var response, success;
|
|
3309
|
+
return __generator(this, function (_a) {
|
|
3310
|
+
switch (_a.label) {
|
|
3311
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineQuantity(uuid, lineUuid, quantity)
|
|
3312
|
+
.catch(function (error) {
|
|
3313
|
+
// todo: do something with the error
|
|
3314
|
+
return false;
|
|
3315
|
+
})];
|
|
3316
|
+
case 1:
|
|
3317
|
+
response = _a.sent();
|
|
3318
|
+
if (!response) return [3 /*break*/, 3];
|
|
3319
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3320
|
+
case 2:
|
|
3321
|
+
success = _a.sent();
|
|
3322
|
+
this._rememberCurrentTransaction(response);
|
|
3323
|
+
return [2 /*return*/, success];
|
|
3324
|
+
case 3: return [2 /*return*/, false];
|
|
3325
|
+
}
|
|
3326
|
+
});
|
|
3327
|
+
});
|
|
3328
|
+
};
|
|
3329
|
+
TransactionService.prototype.updateDeliveryDateTransactionLine = function (uuid, lineUuid, date) {
|
|
3330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3331
|
+
var response, success;
|
|
3332
|
+
return __generator(this, function (_a) {
|
|
3333
|
+
switch (_a.label) {
|
|
3334
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineDeliveryDate(uuid, lineUuid, date)
|
|
3335
|
+
.catch(function (error) {
|
|
3336
|
+
// todo: do something with the error
|
|
3337
|
+
return false;
|
|
3338
|
+
})];
|
|
3339
|
+
case 1:
|
|
3340
|
+
response = _a.sent();
|
|
3341
|
+
if (!response) return [3 /*break*/, 3];
|
|
3342
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3343
|
+
case 2:
|
|
3344
|
+
success = _a.sent();
|
|
3345
|
+
this._rememberCurrentTransaction(response);
|
|
3346
|
+
return [2 /*return*/, success];
|
|
3347
|
+
case 3: return [2 /*return*/, false];
|
|
3348
|
+
}
|
|
3349
|
+
});
|
|
3350
|
+
});
|
|
3351
|
+
};
|
|
3352
|
+
TransactionService.prototype.updatePriceListTransactionLine = function (uuid, lineUuid, priceList) {
|
|
3353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3354
|
+
var response, success;
|
|
3355
|
+
return __generator(this, function (_a) {
|
|
3356
|
+
switch (_a.label) {
|
|
3357
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLinePriceList(uuid, lineUuid, priceList)
|
|
3358
|
+
.catch(function (error) {
|
|
3359
|
+
// todo: do something with the error
|
|
3360
|
+
return false;
|
|
3361
|
+
})];
|
|
3362
|
+
case 1:
|
|
3363
|
+
response = _a.sent();
|
|
3364
|
+
if (!response) return [3 /*break*/, 3];
|
|
3365
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3366
|
+
case 2:
|
|
3367
|
+
success = _a.sent();
|
|
3368
|
+
this._rememberCurrentTransaction(response);
|
|
3369
|
+
return [2 /*return*/, success];
|
|
3370
|
+
case 3: return [2 /*return*/, false];
|
|
3371
|
+
}
|
|
3372
|
+
});
|
|
3373
|
+
});
|
|
3374
|
+
};
|
|
3375
|
+
TransactionService.prototype.updateVatTransactionLine = function (uuid, lineUuid, id) {
|
|
3376
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3377
|
+
var response, success;
|
|
3378
|
+
return __generator(this, function (_a) {
|
|
3379
|
+
switch (_a.label) {
|
|
3380
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineVat(uuid, lineUuid, id)
|
|
3381
|
+
.catch(function (error) {
|
|
3382
|
+
// todo: do something with the error
|
|
3383
|
+
return false;
|
|
3384
|
+
})];
|
|
3385
|
+
case 1:
|
|
3386
|
+
response = _a.sent();
|
|
3387
|
+
if (!response) return [3 /*break*/, 3];
|
|
3388
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3389
|
+
case 2:
|
|
3390
|
+
success = _a.sent();
|
|
3391
|
+
this._rememberCurrentTransaction(response);
|
|
3392
|
+
return [2 /*return*/, success];
|
|
3393
|
+
case 3: return [2 /*return*/, false];
|
|
3394
|
+
}
|
|
3395
|
+
});
|
|
3396
|
+
});
|
|
3397
|
+
};
|
|
3398
|
+
TransactionService.prototype.updateCommissionCodeTransactionLine = function (uuid, lineUuid, code) {
|
|
3399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3400
|
+
var response, success;
|
|
3401
|
+
return __generator(this, function (_a) {
|
|
3402
|
+
switch (_a.label) {
|
|
3403
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineCommissionCode(uuid, lineUuid, code)
|
|
3404
|
+
.catch(function (error) {
|
|
3405
|
+
// todo: do something with the error
|
|
3406
|
+
return false;
|
|
3407
|
+
})];
|
|
3408
|
+
case 1:
|
|
3409
|
+
response = _a.sent();
|
|
3410
|
+
if (!response) return [3 /*break*/, 3];
|
|
3411
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3412
|
+
case 2:
|
|
3413
|
+
success = _a.sent();
|
|
3414
|
+
this._rememberCurrentTransaction(response);
|
|
3415
|
+
return [2 /*return*/, success];
|
|
3416
|
+
case 3: return [2 /*return*/, false];
|
|
3417
|
+
}
|
|
3418
|
+
});
|
|
3419
|
+
});
|
|
3420
|
+
};
|
|
3421
|
+
TransactionService.prototype.updateWarehouseTransactionLine = function (uuid, lineUuid, warehouseNumber) {
|
|
3422
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3423
|
+
var response, success;
|
|
3424
|
+
return __generator(this, function (_a) {
|
|
3425
|
+
switch (_a.label) {
|
|
3426
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineWarehouse(uuid, lineUuid, warehouseNumber)
|
|
3427
|
+
.catch(function (error) {
|
|
3428
|
+
// todo: do something with the error
|
|
3429
|
+
return false;
|
|
3430
|
+
})];
|
|
3431
|
+
case 1:
|
|
3432
|
+
response = _a.sent();
|
|
3433
|
+
if (!response) return [3 /*break*/, 3];
|
|
3434
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3435
|
+
case 2:
|
|
3436
|
+
success = _a.sent();
|
|
3437
|
+
this._rememberCurrentTransaction(response);
|
|
3438
|
+
return [2 /*return*/, success];
|
|
3439
|
+
case 3: return [2 /*return*/, false];
|
|
3440
|
+
}
|
|
3441
|
+
});
|
|
3442
|
+
});
|
|
3443
|
+
};
|
|
3444
|
+
TransactionService.prototype.updateDeliveryMethodTransactionLine = function (uuid, lineUuid, method) {
|
|
3445
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3446
|
+
var response, success;
|
|
3447
|
+
return __generator(this, function (_a) {
|
|
3448
|
+
switch (_a.label) {
|
|
3449
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineDeliveryMethod(uuid, lineUuid, method)
|
|
3450
|
+
.catch(function (error) {
|
|
3451
|
+
// todo: do something with the error
|
|
3452
|
+
return false;
|
|
3453
|
+
})];
|
|
3454
|
+
case 1:
|
|
3455
|
+
response = _a.sent();
|
|
3456
|
+
if (!response) return [3 /*break*/, 3];
|
|
3457
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3458
|
+
case 2:
|
|
3459
|
+
success = _a.sent();
|
|
3460
|
+
this._rememberCurrentTransaction(response);
|
|
3461
|
+
return [2 /*return*/, success];
|
|
3462
|
+
case 3: return [2 /*return*/, false];
|
|
3463
|
+
}
|
|
3464
|
+
});
|
|
3465
|
+
});
|
|
3466
|
+
};
|
|
3467
|
+
TransactionService.prototype.updateDiscountTransactionLine = function (uuid, lineUuid, type, discount, reason, code) {
|
|
3468
|
+
if (reason === void 0) { reason = ""; }
|
|
3469
|
+
if (code === void 0) { code = ""; }
|
|
3470
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3471
|
+
var response, success;
|
|
3472
|
+
return __generator(this, function (_a) {
|
|
3473
|
+
switch (_a.label) {
|
|
3474
|
+
case 0: return [4 /*yield*/, this.connector.changeTransactionLineLineDiscount(uuid, lineUuid, type, discount, reason, code)
|
|
3475
|
+
.catch(function (error) {
|
|
3476
|
+
// todo: do something with the error
|
|
3477
|
+
return false;
|
|
3478
|
+
})];
|
|
3479
|
+
case 1:
|
|
3480
|
+
response = _a.sent();
|
|
3481
|
+
if (!response) return [3 /*break*/, 3];
|
|
3482
|
+
return [4 /*yield*/, this.handleLineOperationStatuses(response)];
|
|
3483
|
+
case 2:
|
|
3484
|
+
success = _a.sent();
|
|
3485
|
+
this._rememberCurrentTransaction(response);
|
|
3486
|
+
return [2 /*return*/, success];
|
|
3487
|
+
case 3: return [2 /*return*/, false];
|
|
3488
|
+
}
|
|
3489
|
+
});
|
|
3490
|
+
});
|
|
3491
|
+
};
|
|
2799
3492
|
TransactionService.prototype.getArticleFullObject = function (goodId) {
|
|
2800
3493
|
return __awaiter(this, void 0, void 0, function () {
|
|
2801
3494
|
return __generator(this, function (_a) {
|
|
@@ -2843,6 +3536,20 @@
|
|
|
2843
3536
|
});
|
|
2844
3537
|
});
|
|
2845
3538
|
};
|
|
3539
|
+
TransactionService.prototype.getPriceLists = function () {
|
|
3540
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3541
|
+
return __generator(this, function (_a) {
|
|
3542
|
+
return [2 /*return*/, this.connector.getPriceLists()];
|
|
3543
|
+
});
|
|
3544
|
+
});
|
|
3545
|
+
};
|
|
3546
|
+
TransactionService.prototype.getVatLists = function () {
|
|
3547
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3548
|
+
return __generator(this, function (_a) {
|
|
3549
|
+
return [2 /*return*/, this.connector.getVatList()];
|
|
3550
|
+
});
|
|
3551
|
+
});
|
|
3552
|
+
};
|
|
2846
3553
|
TransactionService.prototype.saveRelation = function () {
|
|
2847
3554
|
return __awaiter(this, void 0, void 0, function () {
|
|
2848
3555
|
var _a, _b;
|
|
@@ -2942,18 +3649,16 @@
|
|
|
2942
3649
|
var _this = this;
|
|
2943
3650
|
return new Promise(function (resolve, reject) {
|
|
2944
3651
|
_this.connector.getTransactionById(transactionId)
|
|
2945
|
-
.then(function (response) {
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
});
|
|
2956
|
-
}); })
|
|
3652
|
+
.then(function (response) {
|
|
3653
|
+
if (response.isSuccess) {
|
|
3654
|
+
_this._rememberCurrentTransaction(response);
|
|
3655
|
+
_this.transactionUpdated.next(response);
|
|
3656
|
+
resolve(true);
|
|
3657
|
+
}
|
|
3658
|
+
else {
|
|
3659
|
+
reject(false);
|
|
3660
|
+
}
|
|
3661
|
+
})
|
|
2957
3662
|
.catch(function (reason) {
|
|
2958
3663
|
reject(false);
|
|
2959
3664
|
});
|
|
@@ -3159,13 +3864,24 @@
|
|
|
3159
3864
|
};
|
|
3160
3865
|
TransactionService.prototype.getArticleImageByArticleNumber = function (articleNumber) {
|
|
3161
3866
|
return __awaiter(this, void 0, void 0, function () {
|
|
3162
|
-
var goodId;
|
|
3867
|
+
var goodId, image;
|
|
3163
3868
|
return __generator(this, function (_a) {
|
|
3164
3869
|
switch (_a.label) {
|
|
3165
|
-
case 0:
|
|
3870
|
+
case 0:
|
|
3871
|
+
if (this._imageCache.has(articleNumber)) {
|
|
3872
|
+
return [2 /*return*/, this._imageCache.get(articleNumber)];
|
|
3873
|
+
}
|
|
3874
|
+
return [4 /*yield*/, this.connector.getGoodIdFromArticleNr(articleNumber).catch(function (error) {
|
|
3875
|
+
console.error(error);
|
|
3876
|
+
return null;
|
|
3877
|
+
})];
|
|
3166
3878
|
case 1:
|
|
3167
3879
|
goodId = _a.sent();
|
|
3168
|
-
return [
|
|
3880
|
+
return [4 /*yield*/, this.getArticleImageByGoodId(goodId)];
|
|
3881
|
+
case 2:
|
|
3882
|
+
image = _a.sent();
|
|
3883
|
+
this._imageCache.set(articleNumber, image);
|
|
3884
|
+
return [2 /*return*/, image];
|
|
3169
3885
|
}
|
|
3170
3886
|
});
|
|
3171
3887
|
});
|
|
@@ -3174,7 +3890,10 @@
|
|
|
3174
3890
|
return __awaiter(this, void 0, void 0, function () {
|
|
3175
3891
|
return __generator(this, function (_a) {
|
|
3176
3892
|
if (!isNaN(goodId)) {
|
|
3177
|
-
return [2 /*return*/, this.connector.getSingleImage(goodId, 1, true, true)
|
|
3893
|
+
return [2 /*return*/, this.connector.getSingleImage(goodId, 1, true, true).catch(function (error) {
|
|
3894
|
+
console.error(error);
|
|
3895
|
+
return "";
|
|
3896
|
+
})];
|
|
3178
3897
|
}
|
|
3179
3898
|
else {
|
|
3180
3899
|
return [2 /*return*/, ""];
|
|
@@ -3239,7 +3958,7 @@
|
|
|
3239
3958
|
_this.connector.addTransactionLine(_this.currentTransaction.transactionInfo.uuid, lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
|
|
3240
3959
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3241
3960
|
return __generator(this, function (_a) {
|
|
3242
|
-
this.
|
|
3961
|
+
this._rememberCurrentTransaction(response);
|
|
3243
3962
|
resolve(response);
|
|
3244
3963
|
return [2 /*return*/];
|
|
3245
3964
|
});
|
|
@@ -3267,7 +3986,7 @@
|
|
|
3267
3986
|
_this.connector.addTextLineToTransaction(_this.currentTransaction.transactionInfo.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
|
|
3268
3987
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3269
3988
|
return __generator(this, function (_a) {
|
|
3270
|
-
this.
|
|
3989
|
+
this._rememberCurrentTransaction(response);
|
|
3271
3990
|
resolve(response);
|
|
3272
3991
|
return [2 /*return*/];
|
|
3273
3992
|
});
|
|
@@ -3315,7 +4034,7 @@
|
|
|
3315
4034
|
_this.connector.changeLineSequence(_this.currentTransaction.transactionInfo.uuid, lineUuid, aboveLineNr, belowLineNr)
|
|
3316
4035
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3317
4036
|
return __generator(this, function (_a) {
|
|
3318
|
-
this.
|
|
4037
|
+
this._rememberCurrentTransaction(response);
|
|
3319
4038
|
resolve(response);
|
|
3320
4039
|
return [2 /*return*/];
|
|
3321
4040
|
});
|
|
@@ -3336,7 +4055,7 @@
|
|
|
3336
4055
|
_this.connector.deleteTransactionLine(transactionUuid, TransactionLineUuid)
|
|
3337
4056
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3338
4057
|
return __generator(this, function (_a) {
|
|
3339
|
-
this.
|
|
4058
|
+
this._rememberCurrentTransaction(response);
|
|
3340
4059
|
if (response.isSuccess) {
|
|
3341
4060
|
resolve(response);
|
|
3342
4061
|
}
|
|
@@ -3363,7 +4082,7 @@
|
|
|
3363
4082
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3364
4083
|
return __generator(this, function (_a) {
|
|
3365
4084
|
if (response.isSuccess) {
|
|
3366
|
-
this.
|
|
4085
|
+
this._rememberCurrentTransaction(response);
|
|
3367
4086
|
}
|
|
3368
4087
|
resolve(response);
|
|
3369
4088
|
return [2 /*return*/];
|
|
@@ -3467,24 +4186,6 @@
|
|
|
3467
4186
|
});
|
|
3468
4187
|
});
|
|
3469
4188
|
};
|
|
3470
|
-
TransactionService.prototype._rememberCurrentTransactionLineStatus = function (value) {
|
|
3471
|
-
// this._currentLineOperationStatus.uuid = value.lineUuid;
|
|
3472
|
-
// this._currentLineOperationStatus.pendingReason = value.pendingReason;
|
|
3473
|
-
// this._currentLineOperationStatus.pendingReasonType = value.pendingReasonType;
|
|
3474
|
-
};
|
|
3475
|
-
// private async _updateRelation(): Promise<void> {
|
|
3476
|
-
// if (this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId) {
|
|
3477
|
-
// if (!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId) {
|
|
3478
|
-
// this._currentRelation = await this.getCustomerFullObjectByRelationId(this.currentTransaction.relation.relationId);
|
|
3479
|
-
// }
|
|
3480
|
-
// }
|
|
3481
|
-
// }
|
|
3482
|
-
TransactionService.prototype._rememberResponse = function (remember, response) {
|
|
3483
|
-
if (remember) {
|
|
3484
|
-
this._rememberCurrentTransaction(response);
|
|
3485
|
-
this._rememberCurrentTransactionLineStatus(response);
|
|
3486
|
-
}
|
|
3487
|
-
};
|
|
3488
4189
|
return TransactionService;
|
|
3489
4190
|
}(PendingReasonService));
|
|
3490
4191
|
TransactionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0__namespace.ɵɵinject(DialogService), i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(IOneConnectorAdapterService)); }, token: TransactionService, providedIn: "root" });
|
|
@@ -3630,13 +4331,16 @@
|
|
|
3630
4331
|
Icon["ArrowPointDown"] = "arrow_point_down";
|
|
3631
4332
|
Icon["ArrowPointLeft"] = "arrow_point_left";
|
|
3632
4333
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
4334
|
+
Icon["Barcode"] = "barcode";
|
|
3633
4335
|
Icon["CalendarDay"] = "calendar_day";
|
|
3634
4336
|
Icon["Cancel"] = "cancel";
|
|
3635
4337
|
Icon["CashRegister"] = "cash_register";
|
|
3636
4338
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
3637
4339
|
Icon["EditPencil"] = "edit_pencil";
|
|
3638
4340
|
Icon["IdealLogo"] = "ideal_logo";
|
|
4341
|
+
Icon["MapMarker"] = "map_marker";
|
|
3639
4342
|
Icon["MasterDetail"] = "master_detail";
|
|
4343
|
+
Icon["Menu"] = "menu";
|
|
3640
4344
|
Icon["PlusRound"] = "plus_round";
|
|
3641
4345
|
Icon["SidePanel"] = "side_panel";
|
|
3642
4346
|
Icon["Tag"] = "tag";
|
|
@@ -3646,6 +4350,7 @@
|
|
|
3646
4350
|
Icon["TriangleUp"] = "triangle_up";
|
|
3647
4351
|
Icon["Truck"] = "truck";
|
|
3648
4352
|
Icon["Txt"] = "txt";
|
|
4353
|
+
Icon["Warehouse"] = "warehouse";
|
|
3649
4354
|
})(Icon || (Icon = {}));
|
|
3650
4355
|
|
|
3651
4356
|
var CheckoutOverviewRelationEditComponent = /** @class */ (function () {
|
|
@@ -4049,13 +4754,16 @@
|
|
|
4049
4754
|
"arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
|
|
4050
4755
|
"arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
|
|
4051
4756
|
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
4757
|
+
"barcode": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M2,6H4V18H2V6M5,6H6V18H5V6M7,6H10V18H7V6M11,6H12V18H11V6M14,6H16V18H14V6M17,6H20V18H17V6M21,6H22V18H21V6Z\" /></svg>",
|
|
4052
4758
|
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
4053
4759
|
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
4054
4760
|
"cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
|
|
4055
4761
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
4056
4762
|
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
4057
4763
|
"ideal_logo": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 306.1 269.8\" style=\"enable-background:new 0 0 306.1 269.8;\" ><style type=\"text/css\">.st0{fill:#FFFFFF;}.st1{fill:#CC0066;}</style><g><g><path class=\"st0\" d=\"M0,20v229.8c0,11,9,20,20,20h137.3c103.8,0,148.8-58.1,148.8-135.2C306.1,57.9,261.1,0,157.3,0H20C9,0,0,9,0,20z\"/><path class=\"st1\" d=\"M91.9,56.4v169.8h73.9c67.1,0,96.2-37.9,96.2-91.5c0-51.3-29.1-91.1-96.2-91.1h-61.1C97.6,43.6,91.9,49.4,91.9,56.4z\"/><g><g><path d=\"M157.3,251.5H37.9c-10.6,0-19.2-8.6-19.2-19.2V37.6c0-10.6,8.6-19.2,19.2-19.2h119.4c113.3,0,130.2,72.9,130.2,116.3C287.5,210,241.2,251.5,157.3,251.5z M37.9,24.8c-7.1,0-12.8,5.7-12.8,12.8v194.7c0,7.1,5.7,12.8,12.8,12.8h119.4c79.8,0,123.8-39.2,123.8-110.4c0-95.6-77.6-109.9-123.8-109.9H37.9z\"/></g></g></g><g><path class=\"st0\" d=\"M117.9,111.8c2.6,0,5,0.4,7.3,1.2c2.3,0.8,4.2,2.1,5.9,3.7c1.6,1.7,2.9,3.8,3.9,6.2c0.9,2.5,1.4,5.4,1.4,8.8c0,3-0.4,5.7-1.1,8.2c-0.8,2.5-1.9,4.7-3.4,6.5c-1.5,1.8-3.4,3.2-5.7,4.3c-2.3,1-5,1.6-8.1,1.6h-17.5v-40.6H117.9z M117.3,144.9c1.3,0,2.5-0.2,3.8-0.6c1.2-0.4,2.3-1.1,3.2-2.1c0.9-1,1.7-2.2,2.3-3.8c0.6-1.6,0.9-3.4,0.9-5.7c0-2-0.2-3.9-0.6-5.5c-0.4-1.6-1.1-3.1-2-4.2s-2.1-2.1-3.6-2.7c-1.5-0.6-3.3-0.9-5.5-0.9h-6.4v25.6H117.3z\"/><path class=\"st0\" d=\"M172.5,111.8v7.5h-21.4v8.7h19.7v6.9h-19.7v9.9H173v7.5h-30.8v-40.6H172.5z\"/><path class=\"st0\" d=\"M203.1,111.8l15.2,40.6H209l-3.1-9h-15.2l-3.2,9h-9l15.3-40.6H203.1z M203.6,136.7l-5.1-14.9h-0.1l-5.3,14.9H203.6z\"/><path class=\"st0\" d=\"M232.8,111.8v33.1h19.8v7.5h-28.7v-40.6H232.8z\"/></g><g><circle cx=\"58.5\" cy=\"132.1\" r=\"18.7\"/></g><path d=\"M72.6,226.2L72.6,226.2c-15.7,0-28.3-12.7-28.3-28.3v-22.1c0-7.8,6.3-14.2,14.2-14.2h0c7.8,0,14.2,6.3,14.2,14.2V226.2z\"/></g></svg>",
|
|
4764
|
+
"map_marker": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z\" /></svg>",
|
|
4058
4765
|
"master_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"22\" y=\"32.17\" width=\"18\" height=\"4\" transform=\"translate(62 68.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"26.17\" width=\"18\" height=\"4\" transform=\"translate(62 56.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"20.17\" width=\"18\" height=\"4\" transform=\"translate(62 44.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"14.17\" width=\"18\" height=\"4\" transform=\"translate(62 32.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"10\" y=\"14.17\" width=\"10\" height=\"22\" transform=\"translate(30 50.33) rotate(180)\" fill=\"#484f60\"/></svg>",
|
|
4766
|
+
"menu": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z\" /></svg>",
|
|
4059
4767
|
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
4060
4768
|
"side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
|
|
4061
4769
|
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -4064,7 +4772,8 @@
|
|
|
4064
4772
|
"triangle_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"29.06 18.75 37.5 18.75 25 31.25 12.5 18.75 20.95 18.75 29.06 18.75\" fill=\"#484f60\"/></svg>",
|
|
4065
4773
|
"triangle_up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"20.94 31.25 12.5 31.25 25 18.75 37.5 31.25 29.05 31.25 20.94 31.25\" fill=\"#484f60\"/></svg>",
|
|
4066
4774
|
"truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.75\" width=\"17.47\" height=\"12.62\" fill=\"#484f60\"/><path d=\"M37,18.11h-8V28.84H20.22a4.42,4.42,0,0,1,1.41,2.73H30a4.41,4.41,0,0,1,8.76,0H40V24.63Zm-.26,6.73H32.25a.57.57,0,0,1-.57-.57V20a.57.57,0,0,1,.57-.58h2.63a.58.58,0,0,1,.52.35L37.31,24A.58.58,0,0,1,36.78,24.84Z\" fill=\"#484f60\"/><path d=\"M14.28,28.84a4.39,4.39,0,0,0-1.42,2.73H12l-2-1.26V28.84Z\" fill=\"#484f60\"/><path d=\"M31.25,32.1a3.16,3.16,0,1,0,3.16-3.16A3.16,3.16,0,0,0,31.25,32.1Z\" fill=\"#484f60\"/><path d=\"M14.09,32.1a3.16,3.16,0,1,0,3.16-3.16A3.15,3.15,0,0,0,14.09,32.1Z\" fill=\"#484f60\"/></svg>",
|
|
4067
|
-
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>"
|
|
4775
|
+
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
|
|
4776
|
+
"warehouse": "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"><svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M6 19H8V21H6V19M12 3L2 8V21H4V13H20V21H22V8L12 3M8 11H4V9H8V11M14 11H10V9H14V11M20 11H16V9H20V11M6 15H8V17H6V15M10 15H12V17H10V15M10 19H12V21H10V19M14 19H16V21H14V19Z\" /></svg>"
|
|
4068
4777
|
};
|
|
4069
4778
|
|
|
4070
4779
|
var IconCacheService = /** @class */ (function () {
|
|
@@ -4630,6 +5339,9 @@
|
|
|
4630
5339
|
if (!value) {
|
|
4631
5340
|
return "";
|
|
4632
5341
|
}
|
|
5342
|
+
if (typeof value === 'number') {
|
|
5343
|
+
value = new Date(value);
|
|
5344
|
+
}
|
|
4633
5345
|
var deltaDays = Math.round(dateUtils.DateUtils.GetDaysFromNow(value));
|
|
4634
5346
|
if (deltaDays <= 0) {
|
|
4635
5347
|
return this._dictionary.get("DELIVERY_DIRECT");
|
|
@@ -4815,6 +5527,43 @@
|
|
|
4815
5527
|
},] }
|
|
4816
5528
|
];
|
|
4817
5529
|
|
|
5530
|
+
var DefaultOkCancelButtonsComponent = /** @class */ (function () {
|
|
5531
|
+
function DefaultOkCancelButtonsComponent() {
|
|
5532
|
+
this.hideCancel = false;
|
|
5533
|
+
this.hideOk = false;
|
|
5534
|
+
this.okLabel = "OK";
|
|
5535
|
+
// only emits when ok button was not disabled when it was clicked
|
|
5536
|
+
this.okClick = new i0.EventEmitter();
|
|
5537
|
+
this.cancelClick = new i0.EventEmitter();
|
|
5538
|
+
}
|
|
5539
|
+
DefaultOkCancelButtonsComponent.prototype.showClass = function () {
|
|
5540
|
+
return true;
|
|
5541
|
+
};
|
|
5542
|
+
DefaultOkCancelButtonsComponent.prototype.onOkClick = function (event) {
|
|
5543
|
+
if (this.okButtonComp && !this.okButtonComp.disabled) {
|
|
5544
|
+
this.okClick.emit(event);
|
|
5545
|
+
}
|
|
5546
|
+
};
|
|
5547
|
+
return DefaultOkCancelButtonsComponent;
|
|
5548
|
+
}());
|
|
5549
|
+
DefaultOkCancelButtonsComponent.decorators = [
|
|
5550
|
+
{ type: i0.Component, args: [{
|
|
5551
|
+
selector: "co-default-ok-cancel-buttons",
|
|
5552
|
+
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 ",
|
|
5553
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
5554
|
+
},] }
|
|
5555
|
+
];
|
|
5556
|
+
DefaultOkCancelButtonsComponent.propDecorators = {
|
|
5557
|
+
okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }],
|
|
5558
|
+
okDisabled: [{ type: i0.Input }],
|
|
5559
|
+
hideCancel: [{ type: i0.Input }],
|
|
5560
|
+
hideOk: [{ type: i0.Input }],
|
|
5561
|
+
okLabel: [{ type: i0.Input }],
|
|
5562
|
+
okClick: [{ type: i0.Output }],
|
|
5563
|
+
cancelClick: [{ type: i0.Output }],
|
|
5564
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-default-ok-cancel-buttons',] }]
|
|
5565
|
+
};
|
|
5566
|
+
|
|
4818
5567
|
var CoreModule = /** @class */ (function () {
|
|
4819
5568
|
function CoreModule() {
|
|
4820
5569
|
}
|
|
@@ -4834,13 +5583,15 @@
|
|
|
4834
5583
|
ImageDisplayComponent,
|
|
4835
5584
|
IconComponent,
|
|
4836
5585
|
CustomerGroupsComponent,
|
|
4837
|
-
StockStatusIndicatorComponent
|
|
5586
|
+
StockStatusIndicatorComponent,
|
|
5587
|
+
DefaultOkCancelButtonsComponent
|
|
4838
5588
|
],
|
|
4839
5589
|
exports: [
|
|
4840
5590
|
ImageDisplayComponent,
|
|
4841
5591
|
IconComponent,
|
|
4842
5592
|
CustomerGroupsComponent,
|
|
4843
|
-
StockStatusIndicatorComponent
|
|
5593
|
+
StockStatusIndicatorComponent,
|
|
5594
|
+
DefaultOkCancelButtonsComponent
|
|
4844
5595
|
]
|
|
4845
5596
|
},] }
|
|
4846
5597
|
];
|
|
@@ -5599,6 +6350,7 @@
|
|
|
5599
6350
|
this.icons = Icon;
|
|
5600
6351
|
this.preview = false;
|
|
5601
6352
|
this.waitingForUserAction = new i0.EventEmitter();
|
|
6353
|
+
this.showSidePanelClicked = new i0.EventEmitter();
|
|
5602
6354
|
this.stock = stockStatus_enum.StockStatus.Low;
|
|
5603
6355
|
this.showTransactionArticleText = false;
|
|
5604
6356
|
this.showTransactionArticleTextOverview = false;
|
|
@@ -5678,23 +6430,14 @@
|
|
|
5678
6430
|
};
|
|
5679
6431
|
TransactionLineComponent.prototype._loadLineImage = function () {
|
|
5680
6432
|
return __awaiter(this, void 0, void 0, function () {
|
|
5681
|
-
var
|
|
5682
|
-
return __generator(this, function (
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
return [4 /*yield*/, this.service.retrieveLineImage(this.line)];
|
|
5688
|
-
case 1:
|
|
5689
|
-
_b = _c.sent();
|
|
5690
|
-
return [3 /*break*/, 3];
|
|
5691
|
-
case 2:
|
|
5692
|
-
_b = undefined;
|
|
5693
|
-
_c.label = 3;
|
|
5694
|
-
case 3:
|
|
5695
|
-
_a.image = _b;
|
|
5696
|
-
return [2 /*return*/];
|
|
6433
|
+
var _this = this;
|
|
6434
|
+
return __generator(this, function (_a) {
|
|
6435
|
+
if (this.line && this.line.isArticle) {
|
|
6436
|
+
this.service.retrieveLineImage(this.line).then(function (image) {
|
|
6437
|
+
_this.image = image;
|
|
6438
|
+
});
|
|
5697
6439
|
}
|
|
6440
|
+
return [2 /*return*/];
|
|
5698
6441
|
});
|
|
5699
6442
|
});
|
|
5700
6443
|
};
|
|
@@ -5760,10 +6503,12 @@
|
|
|
5760
6503
|
};
|
|
5761
6504
|
TransactionLineComponent.prototype.handleShowSidePanel = function (event) {
|
|
5762
6505
|
this.showSidePanel = true;
|
|
6506
|
+
this.showSidePanelClicked.next(true);
|
|
5763
6507
|
this.waitingForUserAction.next(true);
|
|
5764
6508
|
};
|
|
5765
6509
|
TransactionLineComponent.prototype.handleCloseSidePanel = function (event) {
|
|
5766
6510
|
this.showSidePanel = false;
|
|
6511
|
+
this.showSidePanelClicked.next(false);
|
|
5767
6512
|
this.waitingForUserAction.next(false);
|
|
5768
6513
|
};
|
|
5769
6514
|
return TransactionLineComponent;
|
|
@@ -5771,7 +6516,7 @@
|
|
|
5771
6516
|
TransactionLineComponent.decorators = [
|
|
5772
6517
|
{ type: i0.Component, args: [{
|
|
5773
6518
|
selector: "co-transaction-line",
|
|
5774
|
-
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <span [textContent]=\"line.goodDescription\" class=\"transaction-line-description-description\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-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
|
|
6519
|
+
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <span [textContent]=\"line.goodDescription\" class=\"transaction-line-description-description\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-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 *ngIf=!preview class=\"transaction-line-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-buttons\">\n <co-button class=\"transaction-line-overview-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleTextOverview($event)\"></co-button>\n <co-button class=\"transaction-line-add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-button class=\"transaction-line-show-sidebar-button circle\" [iconData]=\"iconCacheService.getIcon(icons.MasterDetail)\" (click)=\"handleShowSidePanel($event)\"></co-button>\n </div>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <co-transaction-article-text-overview *ngIf=\"showTransactionArticleTextOverview\"\n [header]=\"articleTextHeader | localize\"\n [transactionLine]=\"line\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleTextOverview($event)\"\n (cancelClick)=\"closeTransactionArticleTextOverview($event)\"\n ></co-transaction-article-text-overview>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"articleTextHeader | localize\"\n [articleLineNr]=\"line.lineNr\"\n [articleRef]=\"line.articleNumber\"\n [transactionLine]=\"line\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
5775
6520
|
animations: [
|
|
5776
6521
|
animations.trigger("showHideSidePanel", [
|
|
5777
6522
|
animations.state("void", animations.style({ transform: 'translateX(100%)' })),
|
|
@@ -5792,6 +6537,7 @@
|
|
|
5792
6537
|
preview: [{ type: i0.HostBinding, args: ["class.preview",] }, { type: i0.Input }],
|
|
5793
6538
|
line: [{ type: i0.Input }],
|
|
5794
6539
|
waitingForUserAction: [{ type: i0.Output }],
|
|
6540
|
+
showSidePanelClicked: [{ type: i0.Output }],
|
|
5795
6541
|
isText: [{ type: i0.HostBinding, args: ["class.is-text",] }],
|
|
5796
6542
|
isArticle: [{ type: i0.HostBinding, args: ["class.is-article",] }],
|
|
5797
6543
|
isSelected: [{ type: i0.HostBinding, args: ["class.is-selected",] }],
|
|
@@ -5922,88 +6668,12 @@
|
|
|
5922
6668
|
},] }
|
|
5923
6669
|
];
|
|
5924
6670
|
|
|
5925
|
-
var
|
|
5926
|
-
function
|
|
5927
|
-
this.iconService = iconService;
|
|
5928
|
-
this._transactionService = _transactionService;
|
|
5929
|
-
this.icons = Icon;
|
|
5930
|
-
this.cancelClick = new i0.EventEmitter();
|
|
5931
|
-
this.data = [];
|
|
5932
|
-
}
|
|
5933
|
-
Object.defineProperty(TransactionLineSidePanelComponent.prototype, "child", {
|
|
5934
|
-
set: function (content) {
|
|
5935
|
-
this.inputPrice = content;
|
|
5936
|
-
this.inputPrice.commit = this.commitPrice;
|
|
5937
|
-
},
|
|
5938
|
-
enumerable: false,
|
|
5939
|
-
configurable: true
|
|
5940
|
-
});
|
|
5941
|
-
TransactionLineSidePanelComponent.prototype.showClass = function () {
|
|
5942
|
-
return true;
|
|
5943
|
-
};
|
|
5944
|
-
TransactionLineSidePanelComponent.prototype.handleCancelClick = function (event) {
|
|
5945
|
-
this.cancelClick.next(event);
|
|
5946
|
-
};
|
|
5947
|
-
TransactionLineSidePanelComponent.prototype.commitPrice = function (price) {
|
|
5948
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
5949
|
-
return __generator(this, function (_a) {
|
|
5950
|
-
return [2 /*return*/, true];
|
|
5951
|
-
});
|
|
5952
|
-
});
|
|
5953
|
-
};
|
|
5954
|
-
return TransactionLineSidePanelComponent;
|
|
5955
|
-
}());
|
|
5956
|
-
TransactionLineSidePanelComponent.decorators = [
|
|
5957
|
-
{ type: i0.Component, args: [{
|
|
5958
|
-
selector: "co-transaction-line-side-panel",
|
|
5959
|
-
template: "\n <div class=\"transaction-side-panel-header\">\n <co-button (click)=\"handleCancelClick($event)\" [iconData]=\"iconService.getIcon(icons.Cancel)\" class=\"white circle small\"></co-button>\n <span class=\"side-panel-header-description\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span class=\"side-panel-header-divider\" [textContent]=\"'|'\"></span>\n <span class=\"side-panel-header-sku\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'PRICING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'NET_LINE_TOTAL' | localize\" [model]=\"transactionLine.netLineTotal\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\" [label]=\"'AMOUNT' | localize\" [(model)]=\"transactionLine.amount\"></co-input-number-picker>\n <co-input-text #inputPrice class=\"side-panel-input\"\n [placeholder]=\"'PRICE' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [(model)]=\"transactionLine.price\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.vatId\" [placeholder]=\"'VAT' | localize\"></co-input-combo-box>\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.priceListCode\" [placeholder]=\"'PRICE_LIST' | localize\"></co-input-combo-box>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'DISCOUNTS' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TOTAL_LINE_DISCOUNT' | localize\" [model]=\"transactionLine.lineTotalDiscountAmount\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'DISCOUNT_PERCENTAGE' | localize\" [type]=\"'number'\" [model]=\"transactionLine.discountAmount\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'DISCOUNT_AMOUNT' | localize\" [type]=\"'number'\" [(model)]=\"transactionLine.lineDiscount\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'QUANTUM_DISCOUNT' | localize\" [type]=\"'number'\" [model]=\"transactionLine.quantumDiscount\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'SPECIAL_DISCOUNT' | localize\" [type]=\"'number'\" [(model)]=\"transactionLine.specialDiscount\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'SURCHARGE_AMOUNT' | localize\" [model]=\"transactionLine.surchargeAmount\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'BUSINESS_RULE_DISCOUNT' | localize\" [model]=\"'NIET_GEIMPLEMENTEERD'\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'LOGISTICS_AND_PLANNING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.commissionCode\" [placeholder]=\"'COMMISSION_CODE' | localize\"></co-input-combo-box>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'WAREHOUSE' | localize\" [model]=\"transactionLine.warehouseNumber\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [placeholder]=\"'DELIVERY_METHOD' | localize\"></co-input-combo-box>\n <co-input-date class=\"side-panel-input\" [placeholder]=\"'DELIVERY_DATE' | localize\" [model]=\"transactionLine.deliveryDate\"></co-input-date>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_COSTS' | localize\" [type]=\"'number'\" [model]=\"transactionLine.assemblyCost\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'MODIFICATION_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [placeholder]=\"'SUPPLIER' | localize\"></co-input-combo-box>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [model]=\"transactionLine.articleNumber\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'IN_OUT_COLLECTION' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'OTHER' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'REFERENCE' | localize\" [model]=\"transactionLine.refLineNr\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ORDER_RULESET' | localize\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_DATE' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_USER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <co-input-text [placeholder]=\"'FABRICATION_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'FABRICATION_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'CUSTOMER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </co-collapsible>\n </div>\n ",
|
|
5960
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
5961
|
-
},] }
|
|
5962
|
-
];
|
|
5963
|
-
TransactionLineSidePanelComponent.ctorParameters = function () { return [
|
|
5964
|
-
{ type: IconCacheService },
|
|
5965
|
-
{ type: TransactionService }
|
|
5966
|
-
]; };
|
|
5967
|
-
TransactionLineSidePanelComponent.propDecorators = {
|
|
5968
|
-
child: [{ type: i0.ViewChild, args: ['inputPrice', { read: corecomponents_v12.InputTextComponent },] }],
|
|
5969
|
-
transactionLine: [{ type: i0.Input }],
|
|
5970
|
-
cancelClick: [{ type: i0.Output }],
|
|
5971
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
5972
|
-
};
|
|
5973
|
-
|
|
5974
|
-
var TransactionLineSidePanelModule = /** @class */ (function () {
|
|
5975
|
-
function TransactionLineSidePanelModule() {
|
|
6671
|
+
var TransactionLineModule = /** @class */ (function () {
|
|
6672
|
+
function TransactionLineModule() {
|
|
5976
6673
|
}
|
|
5977
|
-
return
|
|
6674
|
+
return TransactionLineModule;
|
|
5978
6675
|
}());
|
|
5979
|
-
|
|
5980
|
-
{ type: i0.NgModule, args: [{
|
|
5981
|
-
imports: [
|
|
5982
|
-
common.CommonModule,
|
|
5983
|
-
CoreModule,
|
|
5984
|
-
PipeModule,
|
|
5985
|
-
corecomponents_v12.ButtonModule,
|
|
5986
|
-
corecomponents_v12.CollapsibleModule,
|
|
5987
|
-
corecomponents_v12.InputTextModule,
|
|
5988
|
-
corecomponents_v12.InputComboBoxModule,
|
|
5989
|
-
corecomponents_v12.InputDatePickerModule,
|
|
5990
|
-
corecomponents_v12.InputNumberPickerModule
|
|
5991
|
-
],
|
|
5992
|
-
declarations: [
|
|
5993
|
-
TransactionLineSidePanelComponent
|
|
5994
|
-
],
|
|
5995
|
-
exports: [
|
|
5996
|
-
TransactionLineSidePanelComponent
|
|
5997
|
-
]
|
|
5998
|
-
},] }
|
|
5999
|
-
];
|
|
6000
|
-
|
|
6001
|
-
var TransactionLineModule = /** @class */ (function () {
|
|
6002
|
-
function TransactionLineModule() {
|
|
6003
|
-
}
|
|
6004
|
-
return TransactionLineModule;
|
|
6005
|
-
}());
|
|
6006
|
-
TransactionLineModule.decorators = [
|
|
6676
|
+
TransactionLineModule.decorators = [
|
|
6007
6677
|
{ type: i0.NgModule, args: [{
|
|
6008
6678
|
imports: [
|
|
6009
6679
|
common.CommonModule,
|
|
@@ -6012,8 +6682,7 @@
|
|
|
6012
6682
|
corecomponents_v12.InputNumberPickerModule,
|
|
6013
6683
|
TransactionArticleTextModule,
|
|
6014
6684
|
TransactionArticleTextOverviewModule,
|
|
6015
|
-
PipeModule
|
|
6016
|
-
TransactionLineSidePanelModule
|
|
6685
|
+
PipeModule
|
|
6017
6686
|
],
|
|
6018
6687
|
declarations: [
|
|
6019
6688
|
TransactionLineComponent
|
|
@@ -6032,6 +6701,7 @@
|
|
|
6032
6701
|
this.transactionLines = [];
|
|
6033
6702
|
this.preview = false;
|
|
6034
6703
|
this.saveTransactionLine = new i0.EventEmitter();
|
|
6704
|
+
this.showSidePanelClicked = new i0.EventEmitter();
|
|
6035
6705
|
this.showTransactionArticleText = false;
|
|
6036
6706
|
this.userActionRequired = false;
|
|
6037
6707
|
}
|
|
@@ -6087,6 +6757,9 @@
|
|
|
6087
6757
|
this.saveTransactionLine.next(transactionLine);
|
|
6088
6758
|
this._hideArticleTextDialog();
|
|
6089
6759
|
};
|
|
6760
|
+
TransactionLinesComponent.prototype.handleShowSidePanelClicked = function (event, line) {
|
|
6761
|
+
this.showSidePanelClicked.next({ show: event, line: line });
|
|
6762
|
+
};
|
|
6090
6763
|
TransactionLinesComponent.prototype._showArticleTextDialog = function () {
|
|
6091
6764
|
this.showTransactionArticleText = true;
|
|
6092
6765
|
};
|
|
@@ -6098,7 +6771,7 @@
|
|
|
6098
6771
|
TransactionLinesComponent.decorators = [
|
|
6099
6772
|
{ type: i0.Component, args: [{
|
|
6100
6773
|
selector: "co-transaction-lines",
|
|
6101
|
-
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-transaction-line\n [preview]=\"preview\"\n [line]=\"line\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (waitingForUserAction)=\"userActionRequired = $event\"></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
6774
|
+
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-transaction-line\n [preview]=\"preview\"\n [line]=\"line\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (showSidePanelClicked)=\"handleShowSidePanelClicked($event, line)\"\n (waitingForUserAction)=\"userActionRequired = $event\"></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
6102
6775
|
encapsulation: i0.ViewEncapsulation.None
|
|
6103
6776
|
},] }
|
|
6104
6777
|
];
|
|
@@ -6111,6 +6784,7 @@
|
|
|
6111
6784
|
transactionLines: [{ type: i0.Input }],
|
|
6112
6785
|
preview: [{ type: i0.Input }],
|
|
6113
6786
|
saveTransactionLine: [{ type: i0.Output }],
|
|
6787
|
+
showSidePanelClicked: [{ type: i0.Output }],
|
|
6114
6788
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-lines",] }]
|
|
6115
6789
|
};
|
|
6116
6790
|
|
|
@@ -6558,18 +7232,31 @@
|
|
|
6558
7232
|
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
6559
7233
|
})(ContentViewMode || (ContentViewMode = {}));
|
|
6560
7234
|
|
|
7235
|
+
var TabCategory;
|
|
7236
|
+
(function (TabCategory) {
|
|
7237
|
+
TabCategory[TabCategory["Overview"] = 0] = "Overview";
|
|
7238
|
+
TabCategory[TabCategory["OrderConfirmation"] = 1] = "OrderConfirmation";
|
|
7239
|
+
TabCategory[TabCategory["Transport"] = 2] = "Transport";
|
|
7240
|
+
TabCategory[TabCategory["ReceivedGoods"] = 3] = "ReceivedGoods";
|
|
7241
|
+
TabCategory[TabCategory["InvoiceCheck"] = 4] = "InvoiceCheck";
|
|
7242
|
+
TabCategory[TabCategory["Menu"] = 5] = "Menu";
|
|
7243
|
+
})(TabCategory || (TabCategory = {}));
|
|
7244
|
+
|
|
6561
7245
|
var TransactionComponent = /** @class */ (function () {
|
|
6562
7246
|
function TransactionComponent(iconCacheService, _service) {
|
|
6563
7247
|
var _this = this;
|
|
6564
7248
|
this.iconCacheService = iconCacheService;
|
|
6565
7249
|
this._service = _service;
|
|
6566
7250
|
this.viewModes = ContentViewMode;
|
|
7251
|
+
this.tabCategory = TabCategory;
|
|
6567
7252
|
this.icons = Icon;
|
|
6568
|
-
this.transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
6569
7253
|
this.showHeader = true;
|
|
6570
7254
|
this.activeViewMode = ContentViewMode.List;
|
|
7255
|
+
this.activeTabCategory = TabCategory.Overview;
|
|
6571
7256
|
this.showDiscountsSidebar = false;
|
|
7257
|
+
this.showSidePanel = false;
|
|
6572
7258
|
this._subs = [];
|
|
7259
|
+
this._transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
6573
7260
|
this._subs.push(this._service.transactionUpdated.subscribe(function (transaction) { return __awaiter(_this, void 0, void 0, function () {
|
|
6574
7261
|
return __generator(this, function (_a) {
|
|
6575
7262
|
this.transaction = transaction;
|
|
@@ -6577,10 +7264,22 @@
|
|
|
6577
7264
|
});
|
|
6578
7265
|
}); }));
|
|
6579
7266
|
}
|
|
7267
|
+
Object.defineProperty(TransactionComponent.prototype, "transaction", {
|
|
7268
|
+
get: function () {
|
|
7269
|
+
return this._transaction;
|
|
7270
|
+
},
|
|
7271
|
+
set: function (value) {
|
|
7272
|
+
if (value) {
|
|
7273
|
+
this._transaction = value;
|
|
7274
|
+
}
|
|
7275
|
+
},
|
|
7276
|
+
enumerable: false,
|
|
7277
|
+
configurable: true
|
|
7278
|
+
});
|
|
6580
7279
|
Object.defineProperty(TransactionComponent.prototype, "transactionId", {
|
|
6581
7280
|
set: function (value) {
|
|
6582
7281
|
if (value) {
|
|
6583
|
-
this._service.getTransactionById(value);
|
|
7282
|
+
this._service.getTransactionById(value).catch(function () { });
|
|
6584
7283
|
}
|
|
6585
7284
|
},
|
|
6586
7285
|
enumerable: false,
|
|
@@ -6606,12 +7305,32 @@
|
|
|
6606
7305
|
this._service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, transactionAddTextLineRequest.articleBound, 0, 0, 0);
|
|
6607
7306
|
}
|
|
6608
7307
|
};
|
|
7308
|
+
TransactionComponent.prototype.handleNavigationTabClicked = function (tab) {
|
|
7309
|
+
this.activeTabCategory = tab;
|
|
7310
|
+
};
|
|
7311
|
+
TransactionComponent.prototype.handleShowSidePanel = function (event) {
|
|
7312
|
+
this.showSidePanel = event.show;
|
|
7313
|
+
this.sidePanelTransactionLine = event.line;
|
|
7314
|
+
};
|
|
7315
|
+
TransactionComponent.prototype.handleCloseSidePanel = function (event) {
|
|
7316
|
+
this.showSidePanel = false;
|
|
7317
|
+
};
|
|
7318
|
+
TransactionComponent.prototype.openSidePanel = function () {
|
|
7319
|
+
this.showSidePanel = true;
|
|
7320
|
+
};
|
|
6609
7321
|
return TransactionComponent;
|
|
6610
7322
|
}());
|
|
6611
7323
|
TransactionComponent.decorators = [
|
|
6612
7324
|
{ type: i0.Component, args: [{
|
|
6613
7325
|
selector: "co-transaction",
|
|
6614
|
-
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n <div class=\"transaction-view-mode-buttons\">\n
|
|
7326
|
+
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n\n <div class=\"transaction-lines-header\">\n <co-transaction-commit-bar\n [activeCategory]=\"activeTabCategory\"\n ></co-transaction-commit-bar>\n\n <co-transaction-nav-bar\n (tabClicked)=\"handleNavigationTabClicked($event)\"\n ></co-transaction-nav-bar>\n\n <div class=\"transaction-view-mode-buttons\">\n <co-button class=\"view-button white\"\n [class.selected]=\"this.activeViewMode === viewModes.List\"\n [iconData]=\"iconCacheService.getIcon(icons.ThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"></co-button>\n <co-button class=\"view-button white\"\n [class.selected]=\"this.activeViewMode === viewModes.Grid\"\n [iconData]=\"iconCacheService.getIcon(icons.ThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"></co-button>\n </div>\n </div>\n\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionLines]=\"transaction.transactionLines\"\n (showSidePanelClicked)=\"handleShowSidePanel($event)\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-lines-grid\n *ngIf=\"activeTabCategory === 0\"\n [transactionLines]=\"transaction.transactionLines\"\n ></co-transaction-lines-grid>\n <co-order-confirmation-grid\n *ngIf=\"activeTabCategory === 1\"\n [orderLines]=\"transaction.transactionLines\"\n (sidePanelClicked)=\"openSidePanel()\"\n ></co-order-confirmation-grid>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\" @showHideSidePanel\n [activeTabCategory]=\"activeTabCategory\"\n [transactionLine]=\"sidePanelTransactionLine\"\n (cancelClick)=\"handleCloseSidePanel($event)\"\n ></co-transaction-line-side-panel>\n ",
|
|
7327
|
+
animations: [
|
|
7328
|
+
animations.trigger("showHideSidePanel", [
|
|
7329
|
+
animations.state("void", animations.style({ transform: 'translateX(100%)' })),
|
|
7330
|
+
animations.state("*", animations.style({ transform: 'translateX(0)' })),
|
|
7331
|
+
animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
|
|
7332
|
+
])
|
|
7333
|
+
],
|
|
6615
7334
|
encapsulation: i0.ViewEncapsulation.None
|
|
6616
7335
|
},] }
|
|
6617
7336
|
];
|
|
@@ -6630,11 +7349,24 @@
|
|
|
6630
7349
|
function TransactionHeaderComponent() {
|
|
6631
7350
|
this.icons = Icon;
|
|
6632
7351
|
this.expanded = true;
|
|
7352
|
+
this._transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
6633
7353
|
}
|
|
7354
|
+
Object.defineProperty(TransactionHeaderComponent.prototype, "transaction", {
|
|
7355
|
+
get: function () {
|
|
7356
|
+
return this._transaction;
|
|
7357
|
+
},
|
|
7358
|
+
set: function (value) {
|
|
7359
|
+
if (value) {
|
|
7360
|
+
this._transaction = value;
|
|
7361
|
+
this.relationId = this.transaction.transactionInfo && this.transaction.transactionInfo.relation ? this.transaction.transactionInfo.relation.relationId : undefined;
|
|
7362
|
+
}
|
|
7363
|
+
},
|
|
7364
|
+
enumerable: false,
|
|
7365
|
+
configurable: true
|
|
7366
|
+
});
|
|
6634
7367
|
TransactionHeaderComponent.prototype.showClass = function () {
|
|
6635
7368
|
return true;
|
|
6636
7369
|
};
|
|
6637
|
-
// public relation: CustomerFullObject = new CustomerFullObject();
|
|
6638
7370
|
TransactionHeaderComponent.prototype.handleExpandClick = function (event) {
|
|
6639
7371
|
this.expanded = !this.expanded;
|
|
6640
7372
|
};
|
|
@@ -6643,7 +7375,7 @@
|
|
|
6643
7375
|
TransactionHeaderComponent.decorators = [
|
|
6644
7376
|
{ type: i0.Component, args: [{
|
|
6645
7377
|
selector: "co-transaction-header",
|
|
6646
|
-
template: "\n <div class=\"transaction-header-wrapper\">\n <div class=\"collapse-handle\" [class.expanded]=\"expanded\" (click)=\"handleExpandClick($event)\">\n <icon class=\"collapse-icon\" [icon]=\"icons.ArrowPointDown\"></icon>\n </div>\n <co-transaction-header-relation [relationId]=\"
|
|
7378
|
+
template: "\n <div class=\"transaction-header-wrapper\">\n <div class=\"collapse-handle\" [class.expanded]=\"expanded\" (click)=\"handleExpandClick($event)\">\n <icon class=\"collapse-icon\" [icon]=\"icons.ArrowPointDown\"></icon>\n </div>\n <co-transaction-header-relation [relationId]=\"relationId\" [expanded]=\"expanded\"></co-transaction-header-relation>\n <co-transaction-header-contact [relationId]=\"relationId\" [expanded]=\"expanded\"></co-transaction-header-contact>\n <co-transaction-header-delivery [transaction]=\"transaction\" [expanded]=\"expanded\"></co-transaction-header-delivery>\n </div>\n ",
|
|
6647
7379
|
encapsulation: i0.ViewEncapsulation.None
|
|
6648
7380
|
},] }
|
|
6649
7381
|
];
|
|
@@ -6693,11 +7425,10 @@
|
|
|
6693
7425
|
return this._relationId;
|
|
6694
7426
|
},
|
|
6695
7427
|
set: function (value) {
|
|
6696
|
-
if (value
|
|
6697
|
-
|
|
7428
|
+
if (value !== undefined) {
|
|
7429
|
+
this._relationId = value;
|
|
7430
|
+
this._retrieveRelation();
|
|
6698
7431
|
}
|
|
6699
|
-
this._relationId = value;
|
|
6700
|
-
this._retrieveRelation();
|
|
6701
7432
|
},
|
|
6702
7433
|
enumerable: false,
|
|
6703
7434
|
configurable: true
|
|
@@ -6707,11 +7438,10 @@
|
|
|
6707
7438
|
return this._customerId;
|
|
6708
7439
|
},
|
|
6709
7440
|
set: function (value) {
|
|
6710
|
-
if (value
|
|
6711
|
-
|
|
7441
|
+
if (value !== undefined) {
|
|
7442
|
+
this._customerId = value;
|
|
7443
|
+
this._retrieveCustomer();
|
|
6712
7444
|
}
|
|
6713
|
-
this._customerId = value;
|
|
6714
|
-
this._retrieveCustomer();
|
|
6715
7445
|
},
|
|
6716
7446
|
enumerable: false,
|
|
6717
7447
|
configurable: true
|
|
@@ -6877,7 +7607,10 @@
|
|
|
6877
7607
|
var _this = this;
|
|
6878
7608
|
this.service.getDeliveryMethods().then(function (methods) {
|
|
6879
7609
|
_this.deliveryMethods = methods;
|
|
6880
|
-
|
|
7610
|
+
var dm = _this.deliveryMethods.find(function (m) { return m.code === _this.transactionInfo.deliveryMethod; });
|
|
7611
|
+
if (dm) {
|
|
7612
|
+
_this.deliveryMethod = dm;
|
|
7613
|
+
}
|
|
6881
7614
|
});
|
|
6882
7615
|
};
|
|
6883
7616
|
return TransactionHeaderDeliveryComponent;
|
|
@@ -6953,7 +7686,15 @@
|
|
|
6953
7686
|
this._service = _service;
|
|
6954
7687
|
this.align = corecomponents_v12.ColumnAlign;
|
|
6955
7688
|
this.transactionLines = [];
|
|
7689
|
+
this.extraColumns = [];
|
|
6956
7690
|
}
|
|
7691
|
+
Object.defineProperty(TransactionLinesGridComponent.prototype, "content", {
|
|
7692
|
+
set: function (columnComponents) {
|
|
7693
|
+
this.extraColumns = columnComponents.toArray();
|
|
7694
|
+
},
|
|
7695
|
+
enumerable: false,
|
|
7696
|
+
configurable: true
|
|
7697
|
+
});
|
|
6957
7698
|
TransactionLinesGridComponent.prototype.showClass = function () {
|
|
6958
7699
|
return true;
|
|
6959
7700
|
};
|
|
@@ -6974,7 +7715,7 @@
|
|
|
6974
7715
|
TransactionLinesGridComponent.decorators = [
|
|
6975
7716
|
{ type: i0.Component, args: [{
|
|
6976
7717
|
selector: "co-transaction-lines-grid",
|
|
6977
|
-
template: "\n <co-simple-grid [data]=\"transactionLines\" [dragDropEnabled]=\"true\" [emitDragDrop]=\"true\" (onDrop)=\"handleDrop($event)\">\n <co-simple-grid-column [headerText]=\"'ARTICLE_NR' | localize\" [field]=\"'articleNumber'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'GOOD_DESCRIPTION' | localize\" [field]=\"'goodDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'price'\" [textAlign]=\"align.Right\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [textAlign]=\"align.Right\" [width]=\"100\" [resizable]=\"false\">\n <ng-template let-row = \"row\">\n <co-input-number-picker class=\"transaction-lines-grid-amount\"\n [model]=\"row.amount\" [min]=\"0\" [readonly]=\"true\" (modelChange)=\"changeLineAmount(row, $event)\"></co-input-number-picker>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE_LIST' | localize\" [field]=\"'priceListCode'\" [textAlign]=\"align.Right\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ASSEMBLY_COSTS' | localize\" [field]=\"'assemblyCost'\" [textAlign]=\"align.Right\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\" [textAlign]=\"align.Right\"></co-simple-grid-column>\n </co-simple-grid>\n ",
|
|
7718
|
+
template: "\n <co-simple-grid [data]=\"transactionLines\" [extraColumns]=\"extraColumns\" [dragDropEnabled]=\"true\" [emitDragDrop]=\"true\" (onDrop)=\"handleDrop($event)\">\n <co-simple-grid-column [headerText]=\"'ARTICLE_NR' | localize\" [field]=\"'articleNumber'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'GOOD_DESCRIPTION' | localize\" [field]=\"'goodDescription'\" [order]=\"20\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'price'\" [textAlign]=\"align.Right\" [order]=\"30\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [textAlign]=\"align.Right\" [width]=\"100\" [resizable]=\"false\" [order]=\"40\">\n <ng-template let-row = \"row\">\n <co-input-number-picker class=\"transaction-lines-grid-amount\"\n [model]=\"row.amount\" [min]=\"0\" [readonly]=\"true\" (modelChange)=\"changeLineAmount(row, $event)\"></co-input-number-picker>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PRICE_LIST' | localize\" [field]=\"'priceListCode'\" [textAlign]=\"align.Right\" [order]=\"80\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ASSEMBLY_COSTS' | localize\" [field]=\"'assemblyCost'\" [textAlign]=\"align.Right\" [order]=\"90\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\" [textAlign]=\"align.Right\" [order]=\"100\"></co-simple-grid-column>\n </co-simple-grid>\n ",
|
|
6978
7719
|
encapsulation: i0.ViewEncapsulation.None
|
|
6979
7720
|
},] }
|
|
6980
7721
|
];
|
|
@@ -6983,6 +7724,7 @@
|
|
|
6983
7724
|
{ type: TransactionService }
|
|
6984
7725
|
]; };
|
|
6985
7726
|
TransactionLinesGridComponent.propDecorators = {
|
|
7727
|
+
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
6986
7728
|
transactionLines: [{ type: i0.Input }],
|
|
6987
7729
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-lines-grid",] }]
|
|
6988
7730
|
};
|
|
@@ -6999,7 +7741,8 @@
|
|
|
6999
7741
|
CoreModule,
|
|
7000
7742
|
corecomponents_v12.SimpleGridModule,
|
|
7001
7743
|
corecomponents_v12.InputNumberPickerModule,
|
|
7002
|
-
PipeModule
|
|
7744
|
+
PipeModule,
|
|
7745
|
+
corecomponents_v12.ButtonModule
|
|
7003
7746
|
],
|
|
7004
7747
|
declarations: [
|
|
7005
7748
|
TransactionLinesGridComponent
|
|
@@ -7108,27 +7851,1666 @@
|
|
|
7108
7851
|
},] }
|
|
7109
7852
|
];
|
|
7110
7853
|
|
|
7111
|
-
var
|
|
7112
|
-
function
|
|
7854
|
+
var TransactionCommitBarComponent = /** @class */ (function () {
|
|
7855
|
+
function TransactionCommitBarComponent() {
|
|
7856
|
+
this.tabCategory = TabCategory;
|
|
7857
|
+
this.commitDate = new Date();
|
|
7858
|
+
this.checkboxValueChanged = new i0.EventEmitter();
|
|
7113
7859
|
}
|
|
7114
|
-
|
|
7860
|
+
TransactionCommitBarComponent.prototype.showClass = function () {
|
|
7861
|
+
return true;
|
|
7862
|
+
};
|
|
7863
|
+
return TransactionCommitBarComponent;
|
|
7115
7864
|
}());
|
|
7116
|
-
|
|
7865
|
+
TransactionCommitBarComponent.decorators = [
|
|
7866
|
+
{ type: i0.Component, args: [{
|
|
7867
|
+
selector: "co-transaction-commit-bar",
|
|
7868
|
+
template: "\n <div class=\"commit-bar-wrapper\">\n <co-input-date class=\"commit-bar-item\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"this.commitDate\"\n ></co-input-date>\n <co-input-text *ngIf=\"activeCategory === tabCategory.OrderConfirmation\" class=\"commit-bar-item\"\n [placeholder]=\"'REFERENCE' | localize\"\n [(model)]=\"this.commitReferenceId\"\n ></co-input-text>\n <co-input-text *ngIf=\"activeCategory === tabCategory.ReceivedGoods\" class=\"commit-bar-item\"\n [placeholder]=\"'PACKING_SLIP' | localize\"\n [(model)]=\"this.commitReferenceId\"\n ></co-input-text>\n <co-input-checkbox\n (modelChange)=\"checkboxValueChanged.next($event)\"\n ></co-input-checkbox>\n </div>\n ",
|
|
7869
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
7870
|
+
},] }
|
|
7871
|
+
];
|
|
7872
|
+
TransactionCommitBarComponent.propDecorators = {
|
|
7873
|
+
activeCategory: [{ type: i0.Input }],
|
|
7874
|
+
commitDate: [{ type: i0.Input }],
|
|
7875
|
+
commitReferenceId: [{ type: i0.Input }],
|
|
7876
|
+
packingSlipId: [{ type: i0.Input }],
|
|
7877
|
+
checkboxValueChanged: [{ type: i0.Output }],
|
|
7878
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-commit-bar",] }]
|
|
7879
|
+
};
|
|
7880
|
+
|
|
7881
|
+
var TransactionCommitBarModule = /** @class */ (function () {
|
|
7882
|
+
function TransactionCommitBarModule() {
|
|
7883
|
+
}
|
|
7884
|
+
return TransactionCommitBarModule;
|
|
7885
|
+
}());
|
|
7886
|
+
TransactionCommitBarModule.decorators = [
|
|
7117
7887
|
{ type: i0.NgModule, args: [{
|
|
7118
7888
|
imports: [
|
|
7119
7889
|
common.CommonModule,
|
|
7120
7890
|
CoreModule,
|
|
7121
|
-
TransactionHeaderModule,
|
|
7122
|
-
TransactionLinesModule,
|
|
7123
|
-
TransactionTotalsModule,
|
|
7124
|
-
corecomponents_v12.ButtonModule,
|
|
7125
|
-
TransactionLinesGridModule,
|
|
7126
|
-
corecomponents_v12.CoDialogModule,
|
|
7127
|
-
corecomponents_v12.FormModule,
|
|
7128
7891
|
corecomponents_v12.InputTextModule,
|
|
7129
|
-
corecomponents_v12.
|
|
7130
|
-
|
|
7131
|
-
|
|
7892
|
+
corecomponents_v12.InputDatePickerModule,
|
|
7893
|
+
PipeModule,
|
|
7894
|
+
corecomponents_v12.InputCheckboxModule,
|
|
7895
|
+
],
|
|
7896
|
+
declarations: [
|
|
7897
|
+
TransactionCommitBarComponent
|
|
7898
|
+
],
|
|
7899
|
+
exports: [
|
|
7900
|
+
TransactionCommitBarComponent
|
|
7901
|
+
]
|
|
7902
|
+
},] }
|
|
7903
|
+
];
|
|
7904
|
+
|
|
7905
|
+
var TransactionNavBarComponent = /** @class */ (function () {
|
|
7906
|
+
function TransactionNavBarComponent(_dictionaryService) {
|
|
7907
|
+
this._dictionaryService = _dictionaryService;
|
|
7908
|
+
this.icons = Icon;
|
|
7909
|
+
this.selectedTab = TabCategory.Overview;
|
|
7910
|
+
this.tabClicked = new i0.EventEmitter();
|
|
7911
|
+
this.tabs = [
|
|
7912
|
+
{ category: TabCategory.Overview,
|
|
7913
|
+
title: this._dictionaryService.get('OVERVIEW'),
|
|
7914
|
+
iconName: this.icons.Tag },
|
|
7915
|
+
{ category: TabCategory.OrderConfirmation,
|
|
7916
|
+
title: this._dictionaryService.get('CONFIRMATION'),
|
|
7917
|
+
iconName: this.icons.DeliveryTruck },
|
|
7918
|
+
{ category: TabCategory.Transport,
|
|
7919
|
+
title: this._dictionaryService.get('TRANSPORT'),
|
|
7920
|
+
iconName: this.icons.Txt },
|
|
7921
|
+
{ category: TabCategory.ReceivedGoods,
|
|
7922
|
+
title: this._dictionaryService.get('RECEIVED'),
|
|
7923
|
+
iconName: this.icons.ThinLines },
|
|
7924
|
+
{ category: TabCategory.InvoiceCheck,
|
|
7925
|
+
title: this._dictionaryService.get('INVOICE_CHECK'),
|
|
7926
|
+
iconName: this.icons.ThickLines },
|
|
7927
|
+
{ category: TabCategory.Menu,
|
|
7928
|
+
title: this._dictionaryService.get('MENU'),
|
|
7929
|
+
iconName: this.icons.CalendarDay }
|
|
7930
|
+
];
|
|
7931
|
+
}
|
|
7932
|
+
TransactionNavBarComponent.prototype.showClass = function () {
|
|
7933
|
+
return true;
|
|
7934
|
+
};
|
|
7935
|
+
TransactionNavBarComponent.prototype.handleTabClick = function (category) {
|
|
7936
|
+
this.selectedTab = category;
|
|
7937
|
+
this.tabClicked.next(category);
|
|
7938
|
+
};
|
|
7939
|
+
return TransactionNavBarComponent;
|
|
7940
|
+
}());
|
|
7941
|
+
TransactionNavBarComponent.decorators = [
|
|
7942
|
+
{ type: i0.Component, args: [{
|
|
7943
|
+
selector: "co-transaction-nav-bar",
|
|
7944
|
+
template: "\n <div class=\"nav-bar-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let tab of tabs\">\n <co-transaction-nav-bar-button\n [tabData]=\"tab\"\n [selectedCategory]=\"selectedTab\"\n (click)=\"handleTabClick(tab.category)\"\n ></co-transaction-nav-bar-button>\n </div>\n </div>\n ",
|
|
7945
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
7946
|
+
},] }
|
|
7947
|
+
];
|
|
7948
|
+
TransactionNavBarComponent.ctorParameters = function () { return [
|
|
7949
|
+
{ type: DictionaryService }
|
|
7950
|
+
]; };
|
|
7951
|
+
TransactionNavBarComponent.propDecorators = {
|
|
7952
|
+
selectedTab: [{ type: i0.Input }],
|
|
7953
|
+
tabClicked: [{ type: i0.Output }],
|
|
7954
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-nav-bar",] }]
|
|
7955
|
+
};
|
|
7956
|
+
|
|
7957
|
+
var TransactionNavBarButtonComponent = /** @class */ (function () {
|
|
7958
|
+
function TransactionNavBarButtonComponent(iconCacheService) {
|
|
7959
|
+
this.iconCacheService = iconCacheService;
|
|
7960
|
+
this.icons = Icon;
|
|
7961
|
+
}
|
|
7962
|
+
return TransactionNavBarButtonComponent;
|
|
7963
|
+
}());
|
|
7964
|
+
TransactionNavBarButtonComponent.decorators = [
|
|
7965
|
+
{ type: i0.Component, args: [{
|
|
7966
|
+
selector: "co-transaction-nav-bar-button",
|
|
7967
|
+
template: "\n <div class=\"button-wrapper\" [class.selected]=\"tabData.category === selectedCategory\">\n <co-icon [iconData]=\"iconCacheService.getIcon(tabData.iconName)\"></co-icon>\n <span class=\"button-title\" [textContent]=\"tabData.title\"></span>\n </div>\n ",
|
|
7968
|
+
styles: [":host .button-wrapper{height:65px;min-width:65px;background:white;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}:host .button-wrapper .button-title{font-size:.8em;padding:0 7px 4px}:host .selected{box-shadow:0 0 0 1px #558be3 inset}\n"]
|
|
7969
|
+
},] }
|
|
7970
|
+
];
|
|
7971
|
+
TransactionNavBarButtonComponent.ctorParameters = function () { return [
|
|
7972
|
+
{ type: IconCacheService }
|
|
7973
|
+
]; };
|
|
7974
|
+
TransactionNavBarButtonComponent.propDecorators = {
|
|
7975
|
+
tabData: [{ type: i0.Input }],
|
|
7976
|
+
selectedCategory: [{ type: i0.Input }]
|
|
7977
|
+
};
|
|
7978
|
+
|
|
7979
|
+
var TransactionNavBarModule = /** @class */ (function () {
|
|
7980
|
+
function TransactionNavBarModule() {
|
|
7981
|
+
}
|
|
7982
|
+
return TransactionNavBarModule;
|
|
7983
|
+
}());
|
|
7984
|
+
TransactionNavBarModule.decorators = [
|
|
7985
|
+
{ type: i0.NgModule, args: [{
|
|
7986
|
+
imports: [
|
|
7987
|
+
common.CommonModule,
|
|
7988
|
+
CoreModule,
|
|
7989
|
+
corecomponents_v12.IconModule,
|
|
7990
|
+
],
|
|
7991
|
+
declarations: [
|
|
7992
|
+
TransactionNavBarComponent,
|
|
7993
|
+
TransactionNavBarButtonComponent
|
|
7994
|
+
],
|
|
7995
|
+
exports: [
|
|
7996
|
+
TransactionNavBarComponent,
|
|
7997
|
+
TransactionNavBarButtonComponent
|
|
7998
|
+
]
|
|
7999
|
+
},] }
|
|
8000
|
+
];
|
|
8001
|
+
|
|
8002
|
+
var TransactionLineSidePanelComponent = /** @class */ (function () {
|
|
8003
|
+
function TransactionLineSidePanelComponent(iconService) {
|
|
8004
|
+
this.iconService = iconService;
|
|
8005
|
+
this.icons = Icon;
|
|
8006
|
+
this.tabCategory = TabCategory;
|
|
8007
|
+
this.cancelClick = new i0.EventEmitter();
|
|
8008
|
+
}
|
|
8009
|
+
TransactionLineSidePanelComponent.prototype.showClass = function () {
|
|
8010
|
+
return true;
|
|
8011
|
+
};
|
|
8012
|
+
TransactionLineSidePanelComponent.prototype.handleCancelClick = function (event) {
|
|
8013
|
+
this.cancelClick.next(event);
|
|
8014
|
+
};
|
|
8015
|
+
TransactionLineSidePanelComponent.prototype.handleSaveDetailsEdit = function () {
|
|
8016
|
+
};
|
|
8017
|
+
TransactionLineSidePanelComponent.prototype.handleCancelDetailsEdit = function () {
|
|
8018
|
+
};
|
|
8019
|
+
return TransactionLineSidePanelComponent;
|
|
8020
|
+
}());
|
|
8021
|
+
TransactionLineSidePanelComponent.decorators = [
|
|
8022
|
+
{ type: i0.Component, args: [{
|
|
8023
|
+
selector: "co-transaction-line-side-panel",
|
|
8024
|
+
template: "\n <div class=\"transaction-line-side-panel-header\">\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'ARTICLE_NR'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'DESCRIPTION'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.goodDescription\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'AMOUNT'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.amount\"></span>\n </div>\n <div class=\"side-panel-header-divider\"></div>\n <div class=\"transaction-line-side-panel-header-item\">\n <span class=\"side-panel-header-label\" [textContent]=\"'PRICE'| localize\"></span>\n <span class=\"side-panel-header-field\" [textContent]=\"transactionLine.price | priceDisplay\"></span>\n </div>\n <icon (click)=\"handleCancelClick($event)\" [icon]=\"icons.Cancel\" class=\"close-button\"></icon>\n </div>\n <div class=\"transaction-line-side-panel-nav-bar\">\n <co-transaction-nav-bar\n [selectedTab]=\"activeTabCategory\"\n (tabClicked)=\"activeTabCategory = $event\"\n ></co-transaction-nav-bar>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <ng-container [ngSwitch]=\"activeTabCategory\">\n <ng-container *ngSwitchCase=\"tabCategory.OrderConfirmation\">\n <co-transaction-confirmation-history></co-transaction-confirmation-history>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"tabCategory.ReceivedGoods\">\n <co-transaction-receiving-goods-details></co-transaction-receiving-goods-details>\n <div class=\"save-cancel-wrapper\">\n <co-button class=\"button-wrapper\" [label]=\"'SAVE' | localize\" (click)=\"handleSaveDetailsEdit()\"></co-button>\n <co-button class=\"button-wrapper\" [label]=\"'CANCEL' | localize\" (click)=\"handleCancelDetailsEdit()\"></co-button>\n </div>\n <co-transaction-receiving-goods-history></co-transaction-receiving-goods-history>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <co-transaction-line-side-panel-default\n [transactionLine]=\"transactionLine\"\n (cancelClick)=\"handleCancelClick($event)\"\n ></co-transaction-line-side-panel-default>\n </ng-container>\n </ng-container>\n </div>\n ",
|
|
8025
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8026
|
+
},] }
|
|
8027
|
+
];
|
|
8028
|
+
TransactionLineSidePanelComponent.ctorParameters = function () { return [
|
|
8029
|
+
{ type: IconCacheService }
|
|
8030
|
+
]; };
|
|
8031
|
+
TransactionLineSidePanelComponent.propDecorators = {
|
|
8032
|
+
transactionLine: [{ type: i0.Input }],
|
|
8033
|
+
activeTabCategory: [{ type: i0.Input }],
|
|
8034
|
+
cancelClick: [{ type: i0.Output }],
|
|
8035
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
8036
|
+
};
|
|
8037
|
+
|
|
8038
|
+
var TransactionLineSidePanelDefaultComponent = /** @class */ (function () {
|
|
8039
|
+
function TransactionLineSidePanelDefaultComponent(iconService, _transactionService) {
|
|
8040
|
+
this.iconService = iconService;
|
|
8041
|
+
this._transactionService = _transactionService;
|
|
8042
|
+
this.icons = Icon;
|
|
8043
|
+
this.cancelClick = new i0.EventEmitter();
|
|
8044
|
+
this.data = [];
|
|
8045
|
+
}
|
|
8046
|
+
TransactionLineSidePanelDefaultComponent.prototype.showClass = function () {
|
|
8047
|
+
return true;
|
|
8048
|
+
};
|
|
8049
|
+
TransactionLineSidePanelDefaultComponent.prototype.handleCancelClick = function (event) {
|
|
8050
|
+
this.cancelClick.next(event);
|
|
8051
|
+
};
|
|
8052
|
+
return TransactionLineSidePanelDefaultComponent;
|
|
8053
|
+
}());
|
|
8054
|
+
TransactionLineSidePanelDefaultComponent.decorators = [
|
|
8055
|
+
{ type: i0.Component, args: [{
|
|
8056
|
+
selector: "co-transaction-line-side-panel-default",
|
|
8057
|
+
template: "\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'PRICING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'NET_LINE_TOTAL' | localize\" [model]=\"transactionLine.netLineTotal\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-quantity class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-quantity>\n <co-transaction-line-price class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-price>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-vat class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-vat>\n <co-transaction-line-price-list class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-price-list>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'DISCOUNTS' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-line-discount class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-line-discount>\n <co-transaction-line-discount-amount class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-discount-amount>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-quantum-discount class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-quantum-discount>\n <co-transaction-line-special-discount class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-special-discount>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'SURCHARGE_AMOUNT' | localize\" [model]=\"transactionLine.surchargeAmount\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'BUSINESS_RULE_DISCOUNT' | localize\" [model]=\"'NIET_GEIMPLEMENTEERD'\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'LOGISTICS_AND_PLANNING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-commission-code class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-commission-code>\n <co-transaction-line-warehouse class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-warehouse>\n </div>\n <div class=\"side-panel-input-row\">\n <co-transaction-line-delivery-method class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-delivery-method>\n <co-transaction-line-delivery-date class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-delivery-date>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_COSTS' | localize\" [type]=\"'number'\" [model]=\"transactionLine.assemblyCost\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'MODIFICATION_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [placeholder]=\"'SUPPLIER' | localize\"></co-input-combo-box>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [model]=\"transactionLine.articleNumber\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'IN_OUT_COLLECTION' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'OTHER' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-transaction-line-reference class=\"side-panel-input\" [transactionLine]=\"transactionLine\"></co-transaction-line-reference>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ORDER_RULESET' | localize\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_DATE' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_USER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <co-input-text [placeholder]=\"'FABRICATION_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'FABRICATION_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'CUSTOMER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </co-collapsible>\n ",
|
|
8058
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8059
|
+
},] }
|
|
8060
|
+
];
|
|
8061
|
+
TransactionLineSidePanelDefaultComponent.ctorParameters = function () { return [
|
|
8062
|
+
{ type: IconCacheService },
|
|
8063
|
+
{ type: TransactionService }
|
|
8064
|
+
]; };
|
|
8065
|
+
TransactionLineSidePanelDefaultComponent.propDecorators = {
|
|
8066
|
+
transactionLine: [{ type: i0.Input }],
|
|
8067
|
+
cancelClick: [{ type: i0.Output }],
|
|
8068
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel-default",] }]
|
|
8069
|
+
};
|
|
8070
|
+
|
|
8071
|
+
var TransactionLineFieldsBaseComponent = /** @class */ (function () {
|
|
8072
|
+
function TransactionLineFieldsBaseComponent() {
|
|
8073
|
+
this._transactionLine = new transactionLineInfo_bo.TransactionLineInfo();
|
|
8074
|
+
}
|
|
8075
|
+
Object.defineProperty(TransactionLineFieldsBaseComponent.prototype, "transactionLine", {
|
|
8076
|
+
get: function () {
|
|
8077
|
+
return this._transactionLine;
|
|
8078
|
+
},
|
|
8079
|
+
set: function (value) {
|
|
8080
|
+
if (value) {
|
|
8081
|
+
this._transactionLine = value;
|
|
8082
|
+
}
|
|
8083
|
+
},
|
|
8084
|
+
enumerable: false,
|
|
8085
|
+
configurable: true
|
|
8086
|
+
});
|
|
8087
|
+
return TransactionLineFieldsBaseComponent;
|
|
8088
|
+
}());
|
|
8089
|
+
TransactionLineFieldsBaseComponent.decorators = [
|
|
8090
|
+
{ type: i0.Directive }
|
|
8091
|
+
];
|
|
8092
|
+
TransactionLineFieldsBaseComponent.propDecorators = {
|
|
8093
|
+
transactionLine: [{ type: i0.Input }]
|
|
8094
|
+
};
|
|
8095
|
+
|
|
8096
|
+
var TransactionLineQuantityComponent = /** @class */ (function (_super) {
|
|
8097
|
+
__extends(TransactionLineQuantityComponent, _super);
|
|
8098
|
+
function TransactionLineQuantityComponent(_transactionService) {
|
|
8099
|
+
var _this = _super.call(this) || this;
|
|
8100
|
+
_this._transactionService = _transactionService;
|
|
8101
|
+
return _this;
|
|
8102
|
+
}
|
|
8103
|
+
TransactionLineQuantityComponent.prototype.commitQuantity = function (quantity) {
|
|
8104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8105
|
+
var oldAmount, success;
|
|
8106
|
+
return __generator(this, function (_a) {
|
|
8107
|
+
switch (_a.label) {
|
|
8108
|
+
case 0:
|
|
8109
|
+
if (!(this.transactionLine.amount !== quantity)) return [3 /*break*/, 2];
|
|
8110
|
+
oldAmount = this.transactionLine.amount;
|
|
8111
|
+
return [4 /*yield*/, this._transactionService.updateQuantityTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, quantity)];
|
|
8112
|
+
case 1:
|
|
8113
|
+
success = _a.sent();
|
|
8114
|
+
if (!success) {
|
|
8115
|
+
this.transactionLine.amount = oldAmount;
|
|
8116
|
+
}
|
|
8117
|
+
return [2 /*return*/, success];
|
|
8118
|
+
case 2: return [2 /*return*/, true];
|
|
8119
|
+
}
|
|
8120
|
+
});
|
|
8121
|
+
});
|
|
8122
|
+
};
|
|
8123
|
+
return TransactionLineQuantityComponent;
|
|
8124
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8125
|
+
TransactionLineQuantityComponent.decorators = [
|
|
8126
|
+
{ type: i0.Component, args: [{
|
|
8127
|
+
selector: "co-transaction-line-quantity",
|
|
8128
|
+
template: "\n <co-input-number-picker [label]=\"'AMOUNT' | localize\" [(model)]=\"transactionLine.amount\"></co-input-number-picker>\n ",
|
|
8129
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8130
|
+
},] }
|
|
8131
|
+
];
|
|
8132
|
+
TransactionLineQuantityComponent.ctorParameters = function () { return [
|
|
8133
|
+
{ type: TransactionService }
|
|
8134
|
+
]; };
|
|
8135
|
+
|
|
8136
|
+
var TransactionLineQuantityModule = /** @class */ (function () {
|
|
8137
|
+
function TransactionLineQuantityModule() {
|
|
8138
|
+
}
|
|
8139
|
+
return TransactionLineQuantityModule;
|
|
8140
|
+
}());
|
|
8141
|
+
TransactionLineQuantityModule.decorators = [
|
|
8142
|
+
{ type: i0.NgModule, args: [{
|
|
8143
|
+
imports: [
|
|
8144
|
+
common.CommonModule,
|
|
8145
|
+
PipeModule,
|
|
8146
|
+
corecomponents_v12.InputNumberPickerModule
|
|
8147
|
+
],
|
|
8148
|
+
declarations: [
|
|
8149
|
+
TransactionLineQuantityComponent
|
|
8150
|
+
],
|
|
8151
|
+
exports: [
|
|
8152
|
+
TransactionLineQuantityComponent
|
|
8153
|
+
]
|
|
8154
|
+
},] }
|
|
8155
|
+
];
|
|
8156
|
+
|
|
8157
|
+
var TransactionLineLineDiscountComponent = /** @class */ (function (_super) {
|
|
8158
|
+
__extends(TransactionLineLineDiscountComponent, _super);
|
|
8159
|
+
function TransactionLineLineDiscountComponent(_transactionService) {
|
|
8160
|
+
var _this = _super.call(this) || this;
|
|
8161
|
+
_this._transactionService = _transactionService;
|
|
8162
|
+
return _this;
|
|
8163
|
+
}
|
|
8164
|
+
Object.defineProperty(TransactionLineLineDiscountComponent.prototype, "child", {
|
|
8165
|
+
set: function (content) {
|
|
8166
|
+
var _this = this;
|
|
8167
|
+
this.input = content;
|
|
8168
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
8169
|
+
},
|
|
8170
|
+
enumerable: false,
|
|
8171
|
+
configurable: true
|
|
8172
|
+
});
|
|
8173
|
+
TransactionLineLineDiscountComponent.prototype.commitDiscount = function (discount) {
|
|
8174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8175
|
+
var oldDiscount, success;
|
|
8176
|
+
return __generator(this, function (_a) {
|
|
8177
|
+
switch (_a.label) {
|
|
8178
|
+
case 0:
|
|
8179
|
+
if (!(this.transactionLine.lineDiscount !== discount)) return [3 /*break*/, 2];
|
|
8180
|
+
oldDiscount = this.transactionLine.lineDiscount;
|
|
8181
|
+
return [4 /*yield*/, this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, discountType_enum.DiscountType.TransactionLineDiscountPercentage, discount)];
|
|
8182
|
+
case 1:
|
|
8183
|
+
success = _a.sent();
|
|
8184
|
+
if (!success) {
|
|
8185
|
+
this.input.model = oldDiscount;
|
|
8186
|
+
}
|
|
8187
|
+
return [2 /*return*/, success];
|
|
8188
|
+
case 2: return [2 /*return*/, true];
|
|
8189
|
+
}
|
|
8190
|
+
});
|
|
8191
|
+
});
|
|
8192
|
+
};
|
|
8193
|
+
return TransactionLineLineDiscountComponent;
|
|
8194
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8195
|
+
TransactionLineLineDiscountComponent.decorators = [
|
|
8196
|
+
{ type: i0.Component, args: [{
|
|
8197
|
+
selector: "co-transaction-line-line-discount",
|
|
8198
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'DISCOUNT_PERCENTAGE' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [model]=\"transactionLine.lineDiscount\"\n ></co-input-text>\n ",
|
|
8199
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8200
|
+
},] }
|
|
8201
|
+
];
|
|
8202
|
+
TransactionLineLineDiscountComponent.ctorParameters = function () { return [
|
|
8203
|
+
{ type: TransactionService }
|
|
8204
|
+
]; };
|
|
8205
|
+
TransactionLineLineDiscountComponent.propDecorators = {
|
|
8206
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8207
|
+
};
|
|
8208
|
+
|
|
8209
|
+
var TransactionLineLineDiscountModule = /** @class */ (function () {
|
|
8210
|
+
function TransactionLineLineDiscountModule() {
|
|
8211
|
+
}
|
|
8212
|
+
return TransactionLineLineDiscountModule;
|
|
8213
|
+
}());
|
|
8214
|
+
TransactionLineLineDiscountModule.decorators = [
|
|
8215
|
+
{ type: i0.NgModule, args: [{
|
|
8216
|
+
imports: [
|
|
8217
|
+
common.CommonModule,
|
|
8218
|
+
corecomponents_v12.InputTextModule,
|
|
8219
|
+
PipeModule
|
|
8220
|
+
],
|
|
8221
|
+
declarations: [
|
|
8222
|
+
TransactionLineLineDiscountComponent
|
|
8223
|
+
],
|
|
8224
|
+
exports: [
|
|
8225
|
+
TransactionLineLineDiscountComponent
|
|
8226
|
+
]
|
|
8227
|
+
},] }
|
|
8228
|
+
];
|
|
8229
|
+
|
|
8230
|
+
var TransactionLinePriceComponent = /** @class */ (function (_super) {
|
|
8231
|
+
__extends(TransactionLinePriceComponent, _super);
|
|
8232
|
+
function TransactionLinePriceComponent(_transactionService) {
|
|
8233
|
+
var _this = _super.call(this) || this;
|
|
8234
|
+
_this._transactionService = _transactionService;
|
|
8235
|
+
return _this;
|
|
8236
|
+
}
|
|
8237
|
+
Object.defineProperty(TransactionLinePriceComponent.prototype, "child", {
|
|
8238
|
+
set: function (content) {
|
|
8239
|
+
var _this = this;
|
|
8240
|
+
this.input = content;
|
|
8241
|
+
this.input.commit = function (price) { return _this.commitPrice(price); };
|
|
8242
|
+
},
|
|
8243
|
+
enumerable: false,
|
|
8244
|
+
configurable: true
|
|
8245
|
+
});
|
|
8246
|
+
TransactionLinePriceComponent.prototype.commitPrice = function (price) {
|
|
8247
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8248
|
+
var oldPrice, success;
|
|
8249
|
+
return __generator(this, function (_a) {
|
|
8250
|
+
switch (_a.label) {
|
|
8251
|
+
case 0:
|
|
8252
|
+
if (!(this.transactionLine.price !== price)) return [3 /*break*/, 2];
|
|
8253
|
+
oldPrice = this.transactionLine.price;
|
|
8254
|
+
return [4 /*yield*/, this._transactionService.updatePriceTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, price)];
|
|
8255
|
+
case 1:
|
|
8256
|
+
success = _a.sent();
|
|
8257
|
+
if (!success) {
|
|
8258
|
+
this.input.model = oldPrice;
|
|
8259
|
+
}
|
|
8260
|
+
return [2 /*return*/, success];
|
|
8261
|
+
case 2: return [2 /*return*/, true];
|
|
8262
|
+
}
|
|
8263
|
+
});
|
|
8264
|
+
});
|
|
8265
|
+
};
|
|
8266
|
+
return TransactionLinePriceComponent;
|
|
8267
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8268
|
+
TransactionLinePriceComponent.decorators = [
|
|
8269
|
+
{ type: i0.Component, args: [{
|
|
8270
|
+
selector: "co-transaction-line-price",
|
|
8271
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'PRICE' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [model]=\"transactionLine.price\"\n ></co-input-text>\n ",
|
|
8272
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8273
|
+
},] }
|
|
8274
|
+
];
|
|
8275
|
+
TransactionLinePriceComponent.ctorParameters = function () { return [
|
|
8276
|
+
{ type: TransactionService }
|
|
8277
|
+
]; };
|
|
8278
|
+
TransactionLinePriceComponent.propDecorators = {
|
|
8279
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8280
|
+
};
|
|
8281
|
+
|
|
8282
|
+
var TransactionLinePriceModule = /** @class */ (function () {
|
|
8283
|
+
function TransactionLinePriceModule() {
|
|
8284
|
+
}
|
|
8285
|
+
return TransactionLinePriceModule;
|
|
8286
|
+
}());
|
|
8287
|
+
TransactionLinePriceModule.decorators = [
|
|
8288
|
+
{ type: i0.NgModule, args: [{
|
|
8289
|
+
imports: [
|
|
8290
|
+
common.CommonModule,
|
|
8291
|
+
corecomponents_v12.InputTextModule,
|
|
8292
|
+
PipeModule
|
|
8293
|
+
],
|
|
8294
|
+
declarations: [
|
|
8295
|
+
TransactionLinePriceComponent
|
|
8296
|
+
],
|
|
8297
|
+
exports: [
|
|
8298
|
+
TransactionLinePriceComponent
|
|
8299
|
+
]
|
|
8300
|
+
},] }
|
|
8301
|
+
];
|
|
8302
|
+
|
|
8303
|
+
var TransactionLineVatComponent = /** @class */ (function (_super) {
|
|
8304
|
+
__extends(TransactionLineVatComponent, _super);
|
|
8305
|
+
function TransactionLineVatComponent(_transactionService) {
|
|
8306
|
+
var _this = _super.call(this) || this;
|
|
8307
|
+
_this._transactionService = _transactionService;
|
|
8308
|
+
_this.data = [];
|
|
8309
|
+
_this.fields = { text: "description", value: "vatId" };
|
|
8310
|
+
return _this;
|
|
8311
|
+
}
|
|
8312
|
+
TransactionLineVatComponent.prototype.ngOnInit = function () {
|
|
8313
|
+
var _this = this;
|
|
8314
|
+
this._transactionService.getVatLists().then(function (vatList) {
|
|
8315
|
+
_this.data = vatList.slice();
|
|
8316
|
+
});
|
|
8317
|
+
};
|
|
8318
|
+
TransactionLineVatComponent.prototype.commitVat = function (id) {
|
|
8319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8320
|
+
var oldId, success;
|
|
8321
|
+
return __generator(this, function (_a) {
|
|
8322
|
+
switch (_a.label) {
|
|
8323
|
+
case 0:
|
|
8324
|
+
if (!(this.transactionLine.vatId !== id)) return [3 /*break*/, 2];
|
|
8325
|
+
oldId = this.transactionLine.vatId;
|
|
8326
|
+
return [4 /*yield*/, this._transactionService.updateVatTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, id)];
|
|
8327
|
+
case 1:
|
|
8328
|
+
success = _a.sent();
|
|
8329
|
+
if (!success) {
|
|
8330
|
+
this.transactionLine.vatId = oldId;
|
|
8331
|
+
}
|
|
8332
|
+
return [2 /*return*/, success];
|
|
8333
|
+
case 2: return [2 /*return*/, true];
|
|
8334
|
+
}
|
|
8335
|
+
});
|
|
8336
|
+
});
|
|
8337
|
+
};
|
|
8338
|
+
return TransactionLineVatComponent;
|
|
8339
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8340
|
+
TransactionLineVatComponent.decorators = [
|
|
8341
|
+
{ type: i0.Component, args: [{
|
|
8342
|
+
selector: "co-transaction-line-vat",
|
|
8343
|
+
template: "\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'VAT' | localize\"\n [fields]=\"fields\"\n [model]=\"transactionLine.vatId\"\n (modelChange)=\"commitVat($event)\"\n ></co-input-combo-box>\n ",
|
|
8344
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8345
|
+
},] }
|
|
8346
|
+
];
|
|
8347
|
+
TransactionLineVatComponent.ctorParameters = function () { return [
|
|
8348
|
+
{ type: TransactionService }
|
|
8349
|
+
]; };
|
|
8350
|
+
|
|
8351
|
+
var TransactionLineVatModule = /** @class */ (function () {
|
|
8352
|
+
function TransactionLineVatModule() {
|
|
8353
|
+
}
|
|
8354
|
+
return TransactionLineVatModule;
|
|
8355
|
+
}());
|
|
8356
|
+
TransactionLineVatModule.decorators = [
|
|
8357
|
+
{ type: i0.NgModule, args: [{
|
|
8358
|
+
imports: [
|
|
8359
|
+
common.CommonModule,
|
|
8360
|
+
PipeModule,
|
|
8361
|
+
corecomponents_v12.InputComboBoxModule
|
|
8362
|
+
],
|
|
8363
|
+
declarations: [
|
|
8364
|
+
TransactionLineVatComponent
|
|
8365
|
+
],
|
|
8366
|
+
exports: [
|
|
8367
|
+
TransactionLineVatComponent
|
|
8368
|
+
]
|
|
8369
|
+
},] }
|
|
8370
|
+
];
|
|
8371
|
+
|
|
8372
|
+
var TransactionLinePriceListComponent = /** @class */ (function (_super) {
|
|
8373
|
+
__extends(TransactionLinePriceListComponent, _super);
|
|
8374
|
+
function TransactionLinePriceListComponent(_transactionService) {
|
|
8375
|
+
var _this = _super.call(this) || this;
|
|
8376
|
+
_this._transactionService = _transactionService;
|
|
8377
|
+
_this.data = [];
|
|
8378
|
+
_this.fields = { text: "description", value: "code" };
|
|
8379
|
+
return _this;
|
|
8380
|
+
}
|
|
8381
|
+
TransactionLinePriceListComponent.prototype.ngOnInit = function () {
|
|
8382
|
+
var _this = this;
|
|
8383
|
+
this._transactionService.getPriceLists().then(function (list) {
|
|
8384
|
+
_this.data = list.slice();
|
|
8385
|
+
});
|
|
8386
|
+
};
|
|
8387
|
+
TransactionLinePriceListComponent.prototype.commitPriceList = function (priceList) {
|
|
8388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8389
|
+
var oldPriceList, success;
|
|
8390
|
+
return __generator(this, function (_a) {
|
|
8391
|
+
switch (_a.label) {
|
|
8392
|
+
case 0:
|
|
8393
|
+
if (!(this.transactionLine.priceListCode !== priceList)) return [3 /*break*/, 2];
|
|
8394
|
+
oldPriceList = this.transactionLine.priceListCode;
|
|
8395
|
+
return [4 /*yield*/, this._transactionService.updatePriceListTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, priceList)];
|
|
8396
|
+
case 1:
|
|
8397
|
+
success = _a.sent();
|
|
8398
|
+
if (!success) {
|
|
8399
|
+
this.transactionLine.priceListCode = oldPriceList;
|
|
8400
|
+
}
|
|
8401
|
+
return [2 /*return*/, success];
|
|
8402
|
+
case 2: return [2 /*return*/, true];
|
|
8403
|
+
}
|
|
8404
|
+
});
|
|
8405
|
+
});
|
|
8406
|
+
};
|
|
8407
|
+
return TransactionLinePriceListComponent;
|
|
8408
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8409
|
+
TransactionLinePriceListComponent.decorators = [
|
|
8410
|
+
{ type: i0.Component, args: [{
|
|
8411
|
+
selector: "co-transaction-line-price-list",
|
|
8412
|
+
template: "\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'PRICE_LIST' | localize\"\n [fields]=\"fields\"\n [model]=\"transactionLine.priceListCode\"\n (modelChange)=\"commitPriceList($event)\"\n ></co-input-combo-box>\n ",
|
|
8413
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8414
|
+
},] }
|
|
8415
|
+
];
|
|
8416
|
+
TransactionLinePriceListComponent.ctorParameters = function () { return [
|
|
8417
|
+
{ type: TransactionService }
|
|
8418
|
+
]; };
|
|
8419
|
+
|
|
8420
|
+
var TransactionLinePriceListModule = /** @class */ (function () {
|
|
8421
|
+
function TransactionLinePriceListModule() {
|
|
8422
|
+
}
|
|
8423
|
+
return TransactionLinePriceListModule;
|
|
8424
|
+
}());
|
|
8425
|
+
TransactionLinePriceListModule.decorators = [
|
|
8426
|
+
{ type: i0.NgModule, args: [{
|
|
8427
|
+
imports: [
|
|
8428
|
+
common.CommonModule,
|
|
8429
|
+
PipeModule,
|
|
8430
|
+
corecomponents_v12.InputComboBoxModule
|
|
8431
|
+
],
|
|
8432
|
+
declarations: [
|
|
8433
|
+
TransactionLinePriceListComponent
|
|
8434
|
+
],
|
|
8435
|
+
exports: [
|
|
8436
|
+
TransactionLinePriceListComponent
|
|
8437
|
+
]
|
|
8438
|
+
},] }
|
|
8439
|
+
];
|
|
8440
|
+
|
|
8441
|
+
var TransactionLineDeliveryMethodComponent = /** @class */ (function (_super) {
|
|
8442
|
+
__extends(TransactionLineDeliveryMethodComponent, _super);
|
|
8443
|
+
function TransactionLineDeliveryMethodComponent(_transactionService) {
|
|
8444
|
+
var _this = _super.call(this) || this;
|
|
8445
|
+
_this._transactionService = _transactionService;
|
|
8446
|
+
_this.data = [];
|
|
8447
|
+
_this.fields = { text: "description", value: "code" };
|
|
8448
|
+
return _this;
|
|
8449
|
+
}
|
|
8450
|
+
TransactionLineDeliveryMethodComponent.prototype.ngOnInit = function () {
|
|
8451
|
+
var _this = this;
|
|
8452
|
+
this._transactionService.getDeliveryMethods().then(function (methods) {
|
|
8453
|
+
_this.data = methods.slice();
|
|
8454
|
+
});
|
|
8455
|
+
};
|
|
8456
|
+
TransactionLineDeliveryMethodComponent.prototype.commitDeliveryMethod = function (method) {
|
|
8457
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8458
|
+
var oldMethod, success;
|
|
8459
|
+
return __generator(this, function (_a) {
|
|
8460
|
+
switch (_a.label) {
|
|
8461
|
+
case 0:
|
|
8462
|
+
if (!(this.transactionLine.deliveryMethodCode !== method)) return [3 /*break*/, 2];
|
|
8463
|
+
oldMethod = this.transactionLine.deliveryMethodCode;
|
|
8464
|
+
return [4 /*yield*/, this._transactionService.updateDeliveryMethodTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, method)];
|
|
8465
|
+
case 1:
|
|
8466
|
+
success = _a.sent();
|
|
8467
|
+
if (!success) {
|
|
8468
|
+
this.transactionLine.deliveryMethodCode = oldMethod;
|
|
8469
|
+
}
|
|
8470
|
+
return [2 /*return*/, success];
|
|
8471
|
+
case 2: return [2 /*return*/, true];
|
|
8472
|
+
}
|
|
8473
|
+
});
|
|
8474
|
+
});
|
|
8475
|
+
};
|
|
8476
|
+
return TransactionLineDeliveryMethodComponent;
|
|
8477
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8478
|
+
TransactionLineDeliveryMethodComponent.decorators = [
|
|
8479
|
+
{ type: i0.Component, args: [{
|
|
8480
|
+
selector: "co-transaction-line-delivery-method",
|
|
8481
|
+
template: "\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'DELIVERY_METHOD' | localize\"\n [fields]=\"fields\"\n (modelChange)=\"commitDeliveryMethod($event)\"\n ></co-input-combo-box>\n ",
|
|
8482
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8483
|
+
},] }
|
|
8484
|
+
];
|
|
8485
|
+
TransactionLineDeliveryMethodComponent.ctorParameters = function () { return [
|
|
8486
|
+
{ type: TransactionService }
|
|
8487
|
+
]; };
|
|
8488
|
+
|
|
8489
|
+
var TransactionLineDeliveryMethodModule = /** @class */ (function () {
|
|
8490
|
+
function TransactionLineDeliveryMethodModule() {
|
|
8491
|
+
}
|
|
8492
|
+
return TransactionLineDeliveryMethodModule;
|
|
8493
|
+
}());
|
|
8494
|
+
TransactionLineDeliveryMethodModule.decorators = [
|
|
8495
|
+
{ type: i0.NgModule, args: [{
|
|
8496
|
+
imports: [
|
|
8497
|
+
common.CommonModule,
|
|
8498
|
+
PipeModule,
|
|
8499
|
+
corecomponents_v12.InputComboBoxModule
|
|
8500
|
+
],
|
|
8501
|
+
declarations: [
|
|
8502
|
+
TransactionLineDeliveryMethodComponent
|
|
8503
|
+
],
|
|
8504
|
+
exports: [
|
|
8505
|
+
TransactionLineDeliveryMethodComponent
|
|
8506
|
+
]
|
|
8507
|
+
},] }
|
|
8508
|
+
];
|
|
8509
|
+
|
|
8510
|
+
var TransactionLineDeliveryDateComponent = /** @class */ (function (_super) {
|
|
8511
|
+
__extends(TransactionLineDeliveryDateComponent, _super);
|
|
8512
|
+
function TransactionLineDeliveryDateComponent(_transactionService) {
|
|
8513
|
+
var _this = _super.call(this) || this;
|
|
8514
|
+
_this._transactionService = _transactionService;
|
|
8515
|
+
return _this;
|
|
8516
|
+
}
|
|
8517
|
+
TransactionLineDeliveryDateComponent.prototype.commitDeliveryDate = function (date) {
|
|
8518
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8519
|
+
var oldDate, success;
|
|
8520
|
+
return __generator(this, function (_a) {
|
|
8521
|
+
switch (_a.label) {
|
|
8522
|
+
case 0:
|
|
8523
|
+
if (!(this.transactionLine.deliveryDate !== date)) return [3 /*break*/, 2];
|
|
8524
|
+
oldDate = this.transactionLine.deliveryDate;
|
|
8525
|
+
return [4 /*yield*/, this._transactionService.updateDeliveryDateTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, date)];
|
|
8526
|
+
case 1:
|
|
8527
|
+
success = _a.sent();
|
|
8528
|
+
if (!success) {
|
|
8529
|
+
this.transactionLine.deliveryDate = oldDate;
|
|
8530
|
+
}
|
|
8531
|
+
return [2 /*return*/, success];
|
|
8532
|
+
case 2: return [2 /*return*/, true];
|
|
8533
|
+
}
|
|
8534
|
+
});
|
|
8535
|
+
});
|
|
8536
|
+
};
|
|
8537
|
+
return TransactionLineDeliveryDateComponent;
|
|
8538
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8539
|
+
TransactionLineDeliveryDateComponent.decorators = [
|
|
8540
|
+
{ type: i0.Component, args: [{
|
|
8541
|
+
selector: "co-transaction-line-delivery-date",
|
|
8542
|
+
template: "\n <co-input-date\n [placeholder]=\"'DELIVERY_DATE' | localize\"\n [model]=\"transactionLine.deliveryDate\"\n (modelChange)=\"commitDeliveryDate($event)\"\n ></co-input-date>\n ",
|
|
8543
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8544
|
+
},] }
|
|
8545
|
+
];
|
|
8546
|
+
TransactionLineDeliveryDateComponent.ctorParameters = function () { return [
|
|
8547
|
+
{ type: TransactionService }
|
|
8548
|
+
]; };
|
|
8549
|
+
|
|
8550
|
+
var TransactionLineDeliveryDateModule = /** @class */ (function () {
|
|
8551
|
+
function TransactionLineDeliveryDateModule() {
|
|
8552
|
+
}
|
|
8553
|
+
return TransactionLineDeliveryDateModule;
|
|
8554
|
+
}());
|
|
8555
|
+
TransactionLineDeliveryDateModule.decorators = [
|
|
8556
|
+
{ type: i0.NgModule, args: [{
|
|
8557
|
+
imports: [
|
|
8558
|
+
common.CommonModule,
|
|
8559
|
+
PipeModule,
|
|
8560
|
+
corecomponents_v12.InputDatePickerModule
|
|
8561
|
+
],
|
|
8562
|
+
declarations: [
|
|
8563
|
+
TransactionLineDeliveryDateComponent
|
|
8564
|
+
],
|
|
8565
|
+
exports: [
|
|
8566
|
+
TransactionLineDeliveryDateComponent
|
|
8567
|
+
]
|
|
8568
|
+
},] }
|
|
8569
|
+
];
|
|
8570
|
+
|
|
8571
|
+
var TransactionLineReferenceComponent = /** @class */ (function (_super) {
|
|
8572
|
+
__extends(TransactionLineReferenceComponent, _super);
|
|
8573
|
+
function TransactionLineReferenceComponent(_transactionService) {
|
|
8574
|
+
var _this = _super.call(this) || this;
|
|
8575
|
+
_this._transactionService = _transactionService;
|
|
8576
|
+
return _this;
|
|
8577
|
+
}
|
|
8578
|
+
Object.defineProperty(TransactionLineReferenceComponent.prototype, "child", {
|
|
8579
|
+
set: function (content) {
|
|
8580
|
+
var _this = this;
|
|
8581
|
+
this.input = content;
|
|
8582
|
+
this.input.commit = function (reference) { return _this.commitReference(reference); };
|
|
8583
|
+
},
|
|
8584
|
+
enumerable: false,
|
|
8585
|
+
configurable: true
|
|
8586
|
+
});
|
|
8587
|
+
TransactionLineReferenceComponent.prototype.commitReference = function (reference) {
|
|
8588
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8589
|
+
var oldRef, success;
|
|
8590
|
+
return __generator(this, function (_a) {
|
|
8591
|
+
switch (_a.label) {
|
|
8592
|
+
case 0:
|
|
8593
|
+
if (!(this.transactionLine.reference !== reference)) return [3 /*break*/, 2];
|
|
8594
|
+
oldRef = this.transactionLine.reference;
|
|
8595
|
+
return [4 /*yield*/, this._transactionService.updateReferenceTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, reference)];
|
|
8596
|
+
case 1:
|
|
8597
|
+
success = _a.sent();
|
|
8598
|
+
if (!success) {
|
|
8599
|
+
this.input.model = oldRef;
|
|
8600
|
+
}
|
|
8601
|
+
return [2 /*return*/, success];
|
|
8602
|
+
case 2: return [2 /*return*/, true];
|
|
8603
|
+
}
|
|
8604
|
+
});
|
|
8605
|
+
});
|
|
8606
|
+
};
|
|
8607
|
+
return TransactionLineReferenceComponent;
|
|
8608
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8609
|
+
TransactionLineReferenceComponent.decorators = [
|
|
8610
|
+
{ type: i0.Component, args: [{
|
|
8611
|
+
selector: "co-transaction-line-reference",
|
|
8612
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'REFERENCE' | localize\"\n [type]=\"'text'\"\n [showSaveCancel]=\"true\"\n ></co-input-text>\n ",
|
|
8613
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8614
|
+
},] }
|
|
8615
|
+
];
|
|
8616
|
+
TransactionLineReferenceComponent.ctorParameters = function () { return [
|
|
8617
|
+
{ type: TransactionService }
|
|
8618
|
+
]; };
|
|
8619
|
+
TransactionLineReferenceComponent.propDecorators = {
|
|
8620
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8621
|
+
};
|
|
8622
|
+
|
|
8623
|
+
var TransactionLineReferenceModule = /** @class */ (function () {
|
|
8624
|
+
function TransactionLineReferenceModule() {
|
|
8625
|
+
}
|
|
8626
|
+
return TransactionLineReferenceModule;
|
|
8627
|
+
}());
|
|
8628
|
+
TransactionLineReferenceModule.decorators = [
|
|
8629
|
+
{ type: i0.NgModule, args: [{
|
|
8630
|
+
imports: [
|
|
8631
|
+
common.CommonModule,
|
|
8632
|
+
corecomponents_v12.InputTextModule,
|
|
8633
|
+
PipeModule
|
|
8634
|
+
],
|
|
8635
|
+
declarations: [
|
|
8636
|
+
TransactionLineReferenceComponent
|
|
8637
|
+
],
|
|
8638
|
+
exports: [
|
|
8639
|
+
TransactionLineReferenceComponent
|
|
8640
|
+
]
|
|
8641
|
+
},] }
|
|
8642
|
+
];
|
|
8643
|
+
|
|
8644
|
+
var TransactionLineCommissionCodeComponent = /** @class */ (function (_super) {
|
|
8645
|
+
__extends(TransactionLineCommissionCodeComponent, _super);
|
|
8646
|
+
function TransactionLineCommissionCodeComponent(_transactionService) {
|
|
8647
|
+
var _this = _super.call(this) || this;
|
|
8648
|
+
_this._transactionService = _transactionService;
|
|
8649
|
+
_this.data = [];
|
|
8650
|
+
_this.fields = { text: "description", value: "code" };
|
|
8651
|
+
return _this;
|
|
8652
|
+
}
|
|
8653
|
+
TransactionLineCommissionCodeComponent.prototype.ngOnInit = function () {
|
|
8654
|
+
var _this = this;
|
|
8655
|
+
this._transactionService.getCommissionCodes("NL").then(function (codes) {
|
|
8656
|
+
_this.data = codes.slice();
|
|
8657
|
+
});
|
|
8658
|
+
};
|
|
8659
|
+
TransactionLineCommissionCodeComponent.prototype.commitCommissionCode = function (code) {
|
|
8660
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8661
|
+
var oldCode, success;
|
|
8662
|
+
return __generator(this, function (_a) {
|
|
8663
|
+
switch (_a.label) {
|
|
8664
|
+
case 0:
|
|
8665
|
+
if (!(this.transactionLine.commissionCode !== code)) return [3 /*break*/, 2];
|
|
8666
|
+
oldCode = this.transactionLine.commissionCode;
|
|
8667
|
+
return [4 /*yield*/, this._transactionService.updateCommissionCodeTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, code)];
|
|
8668
|
+
case 1:
|
|
8669
|
+
success = _a.sent();
|
|
8670
|
+
if (!success) {
|
|
8671
|
+
// this.transactionLine.commissionCode = code;
|
|
8672
|
+
}
|
|
8673
|
+
return [2 /*return*/, success];
|
|
8674
|
+
case 2: return [2 /*return*/, true];
|
|
8675
|
+
}
|
|
8676
|
+
});
|
|
8677
|
+
});
|
|
8678
|
+
};
|
|
8679
|
+
return TransactionLineCommissionCodeComponent;
|
|
8680
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8681
|
+
TransactionLineCommissionCodeComponent.decorators = [
|
|
8682
|
+
{ type: i0.Component, args: [{
|
|
8683
|
+
selector: "co-transaction-line-commission-code",
|
|
8684
|
+
template: "\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [fields]=\"fields\"\n [model]=\"transactionLine.commissionCode\"\n (modelChange)=\"commitCommissionCode($event)\"\n ></co-input-combo-box>\n ",
|
|
8685
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8686
|
+
},] }
|
|
8687
|
+
];
|
|
8688
|
+
TransactionLineCommissionCodeComponent.ctorParameters = function () { return [
|
|
8689
|
+
{ type: TransactionService }
|
|
8690
|
+
]; };
|
|
8691
|
+
|
|
8692
|
+
var TransactionLineCommissionCodeModule = /** @class */ (function () {
|
|
8693
|
+
function TransactionLineCommissionCodeModule() {
|
|
8694
|
+
}
|
|
8695
|
+
return TransactionLineCommissionCodeModule;
|
|
8696
|
+
}());
|
|
8697
|
+
TransactionLineCommissionCodeModule.decorators = [
|
|
8698
|
+
{ type: i0.NgModule, args: [{
|
|
8699
|
+
imports: [
|
|
8700
|
+
common.CommonModule,
|
|
8701
|
+
PipeModule,
|
|
8702
|
+
corecomponents_v12.InputComboBoxModule
|
|
8703
|
+
],
|
|
8704
|
+
declarations: [
|
|
8705
|
+
TransactionLineCommissionCodeComponent
|
|
8706
|
+
],
|
|
8707
|
+
exports: [
|
|
8708
|
+
TransactionLineCommissionCodeComponent
|
|
8709
|
+
]
|
|
8710
|
+
},] }
|
|
8711
|
+
];
|
|
8712
|
+
|
|
8713
|
+
var TransactionLineWarehouseComponent = /** @class */ (function (_super) {
|
|
8714
|
+
__extends(TransactionLineWarehouseComponent, _super);
|
|
8715
|
+
function TransactionLineWarehouseComponent(_transactionService) {
|
|
8716
|
+
var _this = _super.call(this) || this;
|
|
8717
|
+
_this._transactionService = _transactionService;
|
|
8718
|
+
_this.data = [];
|
|
8719
|
+
_this.fields = { text: "description", value: "code" };
|
|
8720
|
+
return _this;
|
|
8721
|
+
}
|
|
8722
|
+
TransactionLineWarehouseComponent.prototype.ngOnInit = function () {
|
|
8723
|
+
// this._transactionService.getWCommissionCodes("NL").then((codes: CoDomainValue[]) => {
|
|
8724
|
+
// this.data = codes.slice();
|
|
8725
|
+
// })
|
|
8726
|
+
};
|
|
8727
|
+
TransactionLineWarehouseComponent.prototype.commitWarehouse = function (warehouse) {
|
|
8728
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8729
|
+
var oldWarehouse, success;
|
|
8730
|
+
return __generator(this, function (_a) {
|
|
8731
|
+
switch (_a.label) {
|
|
8732
|
+
case 0:
|
|
8733
|
+
if (!(this.transactionLine.warehouseNumber !== warehouse)) return [3 /*break*/, 2];
|
|
8734
|
+
oldWarehouse = this.transactionLine.warehouseNumber;
|
|
8735
|
+
return [4 /*yield*/, this._transactionService.updateWarehouseTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, warehouse)];
|
|
8736
|
+
case 1:
|
|
8737
|
+
success = _a.sent();
|
|
8738
|
+
if (!success) {
|
|
8739
|
+
this.transactionLine.warehouseNumber = warehouse;
|
|
8740
|
+
}
|
|
8741
|
+
return [2 /*return*/, success];
|
|
8742
|
+
case 2: return [2 /*return*/, true];
|
|
8743
|
+
}
|
|
8744
|
+
});
|
|
8745
|
+
});
|
|
8746
|
+
};
|
|
8747
|
+
return TransactionLineWarehouseComponent;
|
|
8748
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8749
|
+
TransactionLineWarehouseComponent.decorators = [
|
|
8750
|
+
{ type: i0.Component, args: [{
|
|
8751
|
+
selector: "co-transaction-line-warehouse",
|
|
8752
|
+
template: "\n <co-input-combo-box\n [collection]=\"data\"\n [placeholder]=\"'WAREHOUSE' | localize\"\n [fields]=\"fields\"\n [model]=\"transactionLine.warehouseNumber\"\n (modelChange)=\"commitWarehouse($event)\"\n ></co-input-combo-box>\n ",
|
|
8753
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8754
|
+
},] }
|
|
8755
|
+
];
|
|
8756
|
+
TransactionLineWarehouseComponent.ctorParameters = function () { return [
|
|
8757
|
+
{ type: TransactionService }
|
|
8758
|
+
]; };
|
|
8759
|
+
|
|
8760
|
+
var TransactionLineWarehouseModule = /** @class */ (function () {
|
|
8761
|
+
function TransactionLineWarehouseModule() {
|
|
8762
|
+
}
|
|
8763
|
+
return TransactionLineWarehouseModule;
|
|
8764
|
+
}());
|
|
8765
|
+
TransactionLineWarehouseModule.decorators = [
|
|
8766
|
+
{ type: i0.NgModule, args: [{
|
|
8767
|
+
imports: [
|
|
8768
|
+
common.CommonModule,
|
|
8769
|
+
corecomponents_v12.InputTextModule,
|
|
8770
|
+
PipeModule,
|
|
8771
|
+
corecomponents_v12.InputComboBoxModule
|
|
8772
|
+
],
|
|
8773
|
+
declarations: [
|
|
8774
|
+
TransactionLineWarehouseComponent
|
|
8775
|
+
],
|
|
8776
|
+
exports: [
|
|
8777
|
+
TransactionLineWarehouseComponent
|
|
8778
|
+
]
|
|
8779
|
+
},] }
|
|
8780
|
+
];
|
|
8781
|
+
|
|
8782
|
+
var TransactionLineDiscountAmountComponent = /** @class */ (function (_super) {
|
|
8783
|
+
__extends(TransactionLineDiscountAmountComponent, _super);
|
|
8784
|
+
function TransactionLineDiscountAmountComponent(_transactionService) {
|
|
8785
|
+
var _this = _super.call(this) || this;
|
|
8786
|
+
_this._transactionService = _transactionService;
|
|
8787
|
+
return _this;
|
|
8788
|
+
}
|
|
8789
|
+
Object.defineProperty(TransactionLineDiscountAmountComponent.prototype, "child", {
|
|
8790
|
+
set: function (content) {
|
|
8791
|
+
var _this = this;
|
|
8792
|
+
this.input = content;
|
|
8793
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
8794
|
+
},
|
|
8795
|
+
enumerable: false,
|
|
8796
|
+
configurable: true
|
|
8797
|
+
});
|
|
8798
|
+
TransactionLineDiscountAmountComponent.prototype.commitDiscount = function (discount) {
|
|
8799
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8800
|
+
var oldDiscount, success;
|
|
8801
|
+
return __generator(this, function (_a) {
|
|
8802
|
+
switch (_a.label) {
|
|
8803
|
+
case 0:
|
|
8804
|
+
if (!(this.transactionLine.discountAmount !== discount)) return [3 /*break*/, 2];
|
|
8805
|
+
oldDiscount = this.transactionLine.discountAmount;
|
|
8806
|
+
return [4 /*yield*/, this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, discountType_enum.DiscountType.TransactionLineDiscountAmount, discount)];
|
|
8807
|
+
case 1:
|
|
8808
|
+
success = _a.sent();
|
|
8809
|
+
if (!success) {
|
|
8810
|
+
this.input.model = oldDiscount;
|
|
8811
|
+
}
|
|
8812
|
+
return [2 /*return*/, success];
|
|
8813
|
+
case 2: return [2 /*return*/, true];
|
|
8814
|
+
}
|
|
8815
|
+
});
|
|
8816
|
+
});
|
|
8817
|
+
};
|
|
8818
|
+
return TransactionLineDiscountAmountComponent;
|
|
8819
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8820
|
+
TransactionLineDiscountAmountComponent.decorators = [
|
|
8821
|
+
{ type: i0.Component, args: [{
|
|
8822
|
+
selector: "co-transaction-line-discount-amount",
|
|
8823
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'DISCOUNT_AMOUNT' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [model]=\"transactionLine.discountAmount\"\n ></co-input-text>\n ",
|
|
8824
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8825
|
+
},] }
|
|
8826
|
+
];
|
|
8827
|
+
TransactionLineDiscountAmountComponent.ctorParameters = function () { return [
|
|
8828
|
+
{ type: TransactionService }
|
|
8829
|
+
]; };
|
|
8830
|
+
TransactionLineDiscountAmountComponent.propDecorators = {
|
|
8831
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8832
|
+
};
|
|
8833
|
+
|
|
8834
|
+
var TransactionLineDiscountAmountModule = /** @class */ (function () {
|
|
8835
|
+
function TransactionLineDiscountAmountModule() {
|
|
8836
|
+
}
|
|
8837
|
+
return TransactionLineDiscountAmountModule;
|
|
8838
|
+
}());
|
|
8839
|
+
TransactionLineDiscountAmountModule.decorators = [
|
|
8840
|
+
{ type: i0.NgModule, args: [{
|
|
8841
|
+
imports: [
|
|
8842
|
+
common.CommonModule,
|
|
8843
|
+
PipeModule,
|
|
8844
|
+
corecomponents_v12.InputTextModule
|
|
8845
|
+
],
|
|
8846
|
+
declarations: [
|
|
8847
|
+
TransactionLineDiscountAmountComponent
|
|
8848
|
+
],
|
|
8849
|
+
exports: [
|
|
8850
|
+
TransactionLineDiscountAmountComponent
|
|
8851
|
+
]
|
|
8852
|
+
},] }
|
|
8853
|
+
];
|
|
8854
|
+
|
|
8855
|
+
var TransactionLineQuantumDiscountComponent = /** @class */ (function (_super) {
|
|
8856
|
+
__extends(TransactionLineQuantumDiscountComponent, _super);
|
|
8857
|
+
function TransactionLineQuantumDiscountComponent(_transactionService) {
|
|
8858
|
+
var _this = _super.call(this) || this;
|
|
8859
|
+
_this._transactionService = _transactionService;
|
|
8860
|
+
return _this;
|
|
8861
|
+
}
|
|
8862
|
+
Object.defineProperty(TransactionLineQuantumDiscountComponent.prototype, "child", {
|
|
8863
|
+
set: function (content) {
|
|
8864
|
+
var _this = this;
|
|
8865
|
+
this.input = content;
|
|
8866
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
8867
|
+
},
|
|
8868
|
+
enumerable: false,
|
|
8869
|
+
configurable: true
|
|
8870
|
+
});
|
|
8871
|
+
TransactionLineQuantumDiscountComponent.prototype.commitDiscount = function (discount) {
|
|
8872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8873
|
+
var oldDiscount, success;
|
|
8874
|
+
return __generator(this, function (_a) {
|
|
8875
|
+
switch (_a.label) {
|
|
8876
|
+
case 0:
|
|
8877
|
+
if (!(this.transactionLine.quantumDiscount !== discount)) return [3 /*break*/, 2];
|
|
8878
|
+
oldDiscount = this.transactionLine.quantumDiscount;
|
|
8879
|
+
return [4 /*yield*/, this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, discountType_enum.DiscountType.TransactionLineQuantumDiscountPercentage, discount)];
|
|
8880
|
+
case 1:
|
|
8881
|
+
success = _a.sent();
|
|
8882
|
+
if (!success) {
|
|
8883
|
+
this.input.model = oldDiscount;
|
|
8884
|
+
}
|
|
8885
|
+
return [2 /*return*/, success];
|
|
8886
|
+
case 2: return [2 /*return*/, true];
|
|
8887
|
+
}
|
|
8888
|
+
});
|
|
8889
|
+
});
|
|
8890
|
+
};
|
|
8891
|
+
return TransactionLineQuantumDiscountComponent;
|
|
8892
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8893
|
+
TransactionLineQuantumDiscountComponent.decorators = [
|
|
8894
|
+
{ type: i0.Component, args: [{
|
|
8895
|
+
selector: "co-transaction-line-quantum-discount",
|
|
8896
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'QUANTUM_DISCOUNT' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [model]=\"transactionLine.quantumDiscount\"\n ></co-input-text>\n ",
|
|
8897
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8898
|
+
},] }
|
|
8899
|
+
];
|
|
8900
|
+
TransactionLineQuantumDiscountComponent.ctorParameters = function () { return [
|
|
8901
|
+
{ type: TransactionService }
|
|
8902
|
+
]; };
|
|
8903
|
+
TransactionLineQuantumDiscountComponent.propDecorators = {
|
|
8904
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8905
|
+
};
|
|
8906
|
+
|
|
8907
|
+
var TransactionLineQuantumDiscountModule = /** @class */ (function () {
|
|
8908
|
+
function TransactionLineQuantumDiscountModule() {
|
|
8909
|
+
}
|
|
8910
|
+
return TransactionLineQuantumDiscountModule;
|
|
8911
|
+
}());
|
|
8912
|
+
TransactionLineQuantumDiscountModule.decorators = [
|
|
8913
|
+
{ type: i0.NgModule, args: [{
|
|
8914
|
+
imports: [
|
|
8915
|
+
common.CommonModule,
|
|
8916
|
+
corecomponents_v12.InputTextModule,
|
|
8917
|
+
PipeModule
|
|
8918
|
+
],
|
|
8919
|
+
declarations: [
|
|
8920
|
+
TransactionLineQuantumDiscountComponent
|
|
8921
|
+
],
|
|
8922
|
+
exports: [
|
|
8923
|
+
TransactionLineQuantumDiscountComponent
|
|
8924
|
+
]
|
|
8925
|
+
},] }
|
|
8926
|
+
];
|
|
8927
|
+
|
|
8928
|
+
var TransactionLineSpecialDiscountComponent = /** @class */ (function (_super) {
|
|
8929
|
+
__extends(TransactionLineSpecialDiscountComponent, _super);
|
|
8930
|
+
function TransactionLineSpecialDiscountComponent(_transactionService) {
|
|
8931
|
+
var _this = _super.call(this) || this;
|
|
8932
|
+
_this._transactionService = _transactionService;
|
|
8933
|
+
return _this;
|
|
8934
|
+
}
|
|
8935
|
+
Object.defineProperty(TransactionLineSpecialDiscountComponent.prototype, "child", {
|
|
8936
|
+
set: function (content) {
|
|
8937
|
+
var _this = this;
|
|
8938
|
+
this.input = content;
|
|
8939
|
+
this.input.commit = function (discount) { return _this.commitDiscount(discount); };
|
|
8940
|
+
},
|
|
8941
|
+
enumerable: false,
|
|
8942
|
+
configurable: true
|
|
8943
|
+
});
|
|
8944
|
+
TransactionLineSpecialDiscountComponent.prototype.commitDiscount = function (discount) {
|
|
8945
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8946
|
+
var oldDiscount, success;
|
|
8947
|
+
return __generator(this, function (_a) {
|
|
8948
|
+
switch (_a.label) {
|
|
8949
|
+
case 0:
|
|
8950
|
+
if (!(this.transactionLine.specialDiscount !== discount)) return [3 /*break*/, 2];
|
|
8951
|
+
oldDiscount = this.transactionLine.specialDiscount;
|
|
8952
|
+
return [4 /*yield*/, this._transactionService.updateDiscountTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, discountType_enum.DiscountType.TransactionLineSpecialDiscountPercentage, discount)];
|
|
8953
|
+
case 1:
|
|
8954
|
+
success = _a.sent();
|
|
8955
|
+
if (!success) {
|
|
8956
|
+
this.input.model = oldDiscount;
|
|
8957
|
+
}
|
|
8958
|
+
return [2 /*return*/, success];
|
|
8959
|
+
case 2: return [2 /*return*/, true];
|
|
8960
|
+
}
|
|
8961
|
+
});
|
|
8962
|
+
});
|
|
8963
|
+
};
|
|
8964
|
+
return TransactionLineSpecialDiscountComponent;
|
|
8965
|
+
}(TransactionLineFieldsBaseComponent));
|
|
8966
|
+
TransactionLineSpecialDiscountComponent.decorators = [
|
|
8967
|
+
{ type: i0.Component, args: [{
|
|
8968
|
+
selector: "co-transaction-line-special-discount",
|
|
8969
|
+
template: "\n <co-input-text #input\n [placeholder]=\"'SPECIAL_DISCOUNT' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [model]=\"transactionLine.specialDiscount\"\n ></co-input-text>\n ",
|
|
8970
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
8971
|
+
},] }
|
|
8972
|
+
];
|
|
8973
|
+
TransactionLineSpecialDiscountComponent.ctorParameters = function () { return [
|
|
8974
|
+
{ type: TransactionService }
|
|
8975
|
+
]; };
|
|
8976
|
+
TransactionLineSpecialDiscountComponent.propDecorators = {
|
|
8977
|
+
child: [{ type: i0.ViewChild, args: ['input', { read: corecomponents_v12.InputTextComponent },] }]
|
|
8978
|
+
};
|
|
8979
|
+
|
|
8980
|
+
var TransactionLineSpecialDiscountModule = /** @class */ (function () {
|
|
8981
|
+
function TransactionLineSpecialDiscountModule() {
|
|
8982
|
+
}
|
|
8983
|
+
return TransactionLineSpecialDiscountModule;
|
|
8984
|
+
}());
|
|
8985
|
+
TransactionLineSpecialDiscountModule.decorators = [
|
|
8986
|
+
{ type: i0.NgModule, args: [{
|
|
8987
|
+
imports: [
|
|
8988
|
+
common.CommonModule,
|
|
8989
|
+
corecomponents_v12.InputTextModule,
|
|
8990
|
+
PipeModule
|
|
8991
|
+
],
|
|
8992
|
+
declarations: [
|
|
8993
|
+
TransactionLineSpecialDiscountComponent
|
|
8994
|
+
],
|
|
8995
|
+
exports: [
|
|
8996
|
+
TransactionLineSpecialDiscountComponent
|
|
8997
|
+
]
|
|
8998
|
+
},] }
|
|
8999
|
+
];
|
|
9000
|
+
|
|
9001
|
+
var TransactionLineSidePanelDefaultModule = /** @class */ (function () {
|
|
9002
|
+
function TransactionLineSidePanelDefaultModule() {
|
|
9003
|
+
}
|
|
9004
|
+
return TransactionLineSidePanelDefaultModule;
|
|
9005
|
+
}());
|
|
9006
|
+
TransactionLineSidePanelDefaultModule.decorators = [
|
|
9007
|
+
{ type: i0.NgModule, args: [{
|
|
9008
|
+
imports: [
|
|
9009
|
+
common.CommonModule,
|
|
9010
|
+
CoreModule,
|
|
9011
|
+
PipeModule,
|
|
9012
|
+
corecomponents_v12.ButtonModule,
|
|
9013
|
+
corecomponents_v12.CollapsibleModule,
|
|
9014
|
+
corecomponents_v12.InputTextModule,
|
|
9015
|
+
corecomponents_v12.InputComboBoxModule,
|
|
9016
|
+
corecomponents_v12.InputDatePickerModule,
|
|
9017
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
9018
|
+
TransactionLinePriceModule,
|
|
9019
|
+
TransactionLinePriceListModule,
|
|
9020
|
+
TransactionLineVatModule,
|
|
9021
|
+
TransactionLineQuantityModule,
|
|
9022
|
+
TransactionLineLineDiscountModule,
|
|
9023
|
+
TransactionLineDeliveryMethodModule,
|
|
9024
|
+
TransactionLineDeliveryDateModule,
|
|
9025
|
+
TransactionLineReferenceModule,
|
|
9026
|
+
TransactionLineCommissionCodeModule,
|
|
9027
|
+
TransactionLineWarehouseModule,
|
|
9028
|
+
TransactionLineDiscountAmountModule,
|
|
9029
|
+
TransactionLineQuantumDiscountModule,
|
|
9030
|
+
TransactionLineSpecialDiscountModule
|
|
9031
|
+
],
|
|
9032
|
+
declarations: [
|
|
9033
|
+
TransactionLineSidePanelDefaultComponent
|
|
9034
|
+
],
|
|
9035
|
+
exports: [
|
|
9036
|
+
TransactionLineSidePanelDefaultComponent
|
|
9037
|
+
]
|
|
9038
|
+
},] }
|
|
9039
|
+
];
|
|
9040
|
+
|
|
9041
|
+
var TransactionReceivingGoodsHistoryComponent = /** @class */ (function () {
|
|
9042
|
+
function TransactionReceivingGoodsHistoryComponent() {
|
|
9043
|
+
this.transactionLines = [];
|
|
9044
|
+
}
|
|
9045
|
+
TransactionReceivingGoodsHistoryComponent.prototype.showClass = function () {
|
|
9046
|
+
return true;
|
|
9047
|
+
};
|
|
9048
|
+
return TransactionReceivingGoodsHistoryComponent;
|
|
9049
|
+
}());
|
|
9050
|
+
TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
9051
|
+
{ type: i0.Component, args: [{
|
|
9052
|
+
selector: "co-transaction-receiving-goods-history",
|
|
9053
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <co-transaction-history-grid [transactionLines]=\"transactionLines\">\n <co-simple-grid-column [headerText]=\"'WAREHOUSE' | localize\" [field]=\"'warehouseNumber'\" [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [field]=\"'warehouseLocation'\" [order]=\"60\"></co-simple-grid-column>\n </co-transaction-history-grid>\n </div>\n ",
|
|
9054
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9055
|
+
},] }
|
|
9056
|
+
];
|
|
9057
|
+
TransactionReceivingGoodsHistoryComponent.propDecorators = {
|
|
9058
|
+
transactionLines: [{ type: i0.Input }],
|
|
9059
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-history",] }]
|
|
9060
|
+
};
|
|
9061
|
+
|
|
9062
|
+
var StatusType;
|
|
9063
|
+
(function (StatusType) {
|
|
9064
|
+
StatusType["Unknown"] = "UNKNOWN";
|
|
9065
|
+
})(StatusType || (StatusType = {}));
|
|
9066
|
+
|
|
9067
|
+
var TransactionHistoryGridComponent = /** @class */ (function () {
|
|
9068
|
+
function TransactionHistoryGridComponent() {
|
|
9069
|
+
this.tabCategory = TabCategory;
|
|
9070
|
+
this.statusType = StatusType;
|
|
9071
|
+
this.extraColumns = [];
|
|
9072
|
+
}
|
|
9073
|
+
Object.defineProperty(TransactionHistoryGridComponent.prototype, "content", {
|
|
9074
|
+
set: function (columnComponents) {
|
|
9075
|
+
this.extraColumns = columnComponents.toArray();
|
|
9076
|
+
},
|
|
9077
|
+
enumerable: false,
|
|
9078
|
+
configurable: true
|
|
9079
|
+
});
|
|
9080
|
+
TransactionHistoryGridComponent.prototype.showClass = function () {
|
|
9081
|
+
return true;
|
|
9082
|
+
};
|
|
9083
|
+
TransactionHistoryGridComponent.prototype.handleSelectRow = function (row) {
|
|
9084
|
+
//
|
|
9085
|
+
};
|
|
9086
|
+
return TransactionHistoryGridComponent;
|
|
9087
|
+
}());
|
|
9088
|
+
TransactionHistoryGridComponent.decorators = [
|
|
9089
|
+
{ type: i0.Component, args: [{
|
|
9090
|
+
selector: "co-transaction-history-grid",
|
|
9091
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <co-simple-grid [data]=\"transactionLines\" [extraColumns]=\"extraColumns\" (selectRow)=\"handleSelectRow($event)\">\n <co-simple-grid-column [headerText]=\"'STATE' | localize\" [field]=\"'status'\" [order]=\"10\">\n <ng-template #template let-row=\"row\">\n <co-transaction-history-grid-status [statusType]=\"statusType.Unknown\"></co-transaction-history-grid-status>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\" [field]=\"'deliveryDate'\" [order]=\"20\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT' | localize\" [field]=\"'amount'\" [order]=\"30\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'REFERENCE' | localize\" [field]=\"'referenceNumber'\" [order]=\"50\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER' | localize\" [field]=\"'user'\" [order]=\"70\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
9092
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9093
|
+
},] }
|
|
9094
|
+
];
|
|
9095
|
+
TransactionHistoryGridComponent.propDecorators = {
|
|
9096
|
+
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
9097
|
+
transactionLines: [{ type: i0.Input }],
|
|
9098
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-history-grid",] }]
|
|
9099
|
+
};
|
|
9100
|
+
|
|
9101
|
+
var TransactionHistoryGridStatusComponent = /** @class */ (function () {
|
|
9102
|
+
function TransactionHistoryGridStatusComponent() {
|
|
9103
|
+
}
|
|
9104
|
+
TransactionHistoryGridStatusComponent.prototype.showClass = function () {
|
|
9105
|
+
return true;
|
|
9106
|
+
};
|
|
9107
|
+
TransactionHistoryGridStatusComponent.prototype._getStatusIndicatorColor = function () {
|
|
9108
|
+
switch (this.statusType) {
|
|
9109
|
+
case StatusType.Unknown:
|
|
9110
|
+
return '#dce4ea';
|
|
9111
|
+
}
|
|
9112
|
+
};
|
|
9113
|
+
TransactionHistoryGridStatusComponent.prototype.ngAfterViewInit = function () {
|
|
9114
|
+
if (this.statusIndicator) {
|
|
9115
|
+
this.statusIndicator.nativeElement.style.background = this._getStatusIndicatorColor();
|
|
9116
|
+
}
|
|
9117
|
+
};
|
|
9118
|
+
return TransactionHistoryGridStatusComponent;
|
|
9119
|
+
}());
|
|
9120
|
+
TransactionHistoryGridStatusComponent.decorators = [
|
|
9121
|
+
{ type: i0.Component, args: [{
|
|
9122
|
+
selector: "co-transaction-history-grid-status",
|
|
9123
|
+
template: "\n <div class=\"transaction-status-indication\">\n <div #statusIndicator class=\"status-color-circle\"></div>\n <span class=\"status-text\" [textContent]=\"statusType | localize\"></span>\n </div>\n ",
|
|
9124
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9125
|
+
},] }
|
|
9126
|
+
];
|
|
9127
|
+
TransactionHistoryGridStatusComponent.propDecorators = {
|
|
9128
|
+
statusType: [{ type: i0.Input }],
|
|
9129
|
+
statusIndicator: [{ type: i0.ViewChild, args: ["statusIndicator", { read: i0.ElementRef },] }],
|
|
9130
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-history-grid-status",] }]
|
|
9131
|
+
};
|
|
9132
|
+
|
|
9133
|
+
var TransactionHistoryGridStatusModule = /** @class */ (function () {
|
|
9134
|
+
function TransactionHistoryGridStatusModule() {
|
|
9135
|
+
}
|
|
9136
|
+
return TransactionHistoryGridStatusModule;
|
|
9137
|
+
}());
|
|
9138
|
+
TransactionHistoryGridStatusModule.decorators = [
|
|
9139
|
+
{ type: i0.NgModule, args: [{
|
|
9140
|
+
imports: [
|
|
9141
|
+
common.CommonModule,
|
|
9142
|
+
CoreModule,
|
|
9143
|
+
PipeModule
|
|
9144
|
+
],
|
|
9145
|
+
declarations: [
|
|
9146
|
+
TransactionHistoryGridStatusComponent
|
|
9147
|
+
],
|
|
9148
|
+
exports: [
|
|
9149
|
+
TransactionHistoryGridStatusComponent
|
|
9150
|
+
]
|
|
9151
|
+
},] }
|
|
9152
|
+
];
|
|
9153
|
+
|
|
9154
|
+
var TransactionHistoryGridModule = /** @class */ (function () {
|
|
9155
|
+
function TransactionHistoryGridModule() {
|
|
9156
|
+
}
|
|
9157
|
+
return TransactionHistoryGridModule;
|
|
9158
|
+
}());
|
|
9159
|
+
TransactionHistoryGridModule.decorators = [
|
|
9160
|
+
{ type: i0.NgModule, args: [{
|
|
9161
|
+
imports: [
|
|
9162
|
+
common.CommonModule,
|
|
9163
|
+
CoreModule,
|
|
9164
|
+
corecomponents_v12.SimpleGridModule,
|
|
9165
|
+
PipeModule,
|
|
9166
|
+
TransactionHistoryGridStatusModule
|
|
9167
|
+
],
|
|
9168
|
+
declarations: [
|
|
9169
|
+
TransactionHistoryGridComponent
|
|
9170
|
+
],
|
|
9171
|
+
exports: [
|
|
9172
|
+
TransactionHistoryGridComponent
|
|
9173
|
+
]
|
|
9174
|
+
},] }
|
|
9175
|
+
];
|
|
9176
|
+
|
|
9177
|
+
var TransactionReceivingGoodsHistoryModule = /** @class */ (function () {
|
|
9178
|
+
function TransactionReceivingGoodsHistoryModule() {
|
|
9179
|
+
}
|
|
9180
|
+
return TransactionReceivingGoodsHistoryModule;
|
|
9181
|
+
}());
|
|
9182
|
+
TransactionReceivingGoodsHistoryModule.decorators = [
|
|
9183
|
+
{ type: i0.NgModule, args: [{
|
|
9184
|
+
imports: [
|
|
9185
|
+
common.CommonModule,
|
|
9186
|
+
CoreModule,
|
|
9187
|
+
PipeModule,
|
|
9188
|
+
corecomponents_v12.SimpleGridModule,
|
|
9189
|
+
TransactionHistoryGridModule
|
|
9190
|
+
],
|
|
9191
|
+
declarations: [
|
|
9192
|
+
TransactionReceivingGoodsHistoryComponent
|
|
9193
|
+
],
|
|
9194
|
+
exports: [
|
|
9195
|
+
TransactionReceivingGoodsHistoryComponent
|
|
9196
|
+
]
|
|
9197
|
+
},] }
|
|
9198
|
+
];
|
|
9199
|
+
|
|
9200
|
+
var TransactionReceivingGoodsDetailsComponent = /** @class */ (function () {
|
|
9201
|
+
function TransactionReceivingGoodsDetailsComponent() {
|
|
9202
|
+
this.transactionLineInfo = new transactionLineInfo_bo.TransactionLineInfo();
|
|
9203
|
+
}
|
|
9204
|
+
TransactionReceivingGoodsDetailsComponent.prototype.showClass = function () {
|
|
9205
|
+
return true;
|
|
9206
|
+
};
|
|
9207
|
+
return TransactionReceivingGoodsDetailsComponent;
|
|
9208
|
+
}());
|
|
9209
|
+
TransactionReceivingGoodsDetailsComponent.decorators = [
|
|
9210
|
+
{ type: i0.Component, args: [{
|
|
9211
|
+
selector: 'co-transaction-receiving-goods-details',
|
|
9212
|
+
template: "\n <div class=\"receipt-details-wrapper\">\n <span class=\"details-header\" [textContent]=\"'RECEIPT_DETAILS' | localize | uppercase\"></span>\n <div class=\"columns-wrapper\">\n <div class=\"details-column\">\n <co-input-text class=\"details-input\" [(model)]=\"transactionLineInfo.amount\" [placeholder]=\"'AMOUNT' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"transactionLineInfo.warehouseNumber\" [placeholder]=\"'WAREHOUSE' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"valuePlaceholder\" [placeholder]=\"'LOCATION' | localize\"></co-input-text>\n </div>\n <div class=\"divider-wrapper\"><div class=\"divider\"></div></div>\n <div class=\"details-column\">\n <co-input-text class=\"details-input\" [(model)]=\"valuePlaceholder\" [placeholder]=\"'BATCH_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"valuePlaceholder\" [placeholder]=\"'SERIAL_NUMBER' | localize\"></co-input-text>\n <co-input-text class=\"details-input\" [(model)]=\"transactionLineInfo.refLineNr\" [placeholder]=\"'REFERENCE_ID' | localize\"></co-input-text>\n </div>\n </div>\n </div>\n ",
|
|
9213
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9214
|
+
},] }
|
|
9215
|
+
];
|
|
9216
|
+
TransactionReceivingGoodsDetailsComponent.propDecorators = {
|
|
9217
|
+
transactionLineInfo: [{ type: i0.Input }],
|
|
9218
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-receiving-goods-details",] }]
|
|
9219
|
+
};
|
|
9220
|
+
|
|
9221
|
+
var TransactionReceivingGoodsDetailsModule = /** @class */ (function () {
|
|
9222
|
+
function TransactionReceivingGoodsDetailsModule() {
|
|
9223
|
+
}
|
|
9224
|
+
return TransactionReceivingGoodsDetailsModule;
|
|
9225
|
+
}());
|
|
9226
|
+
TransactionReceivingGoodsDetailsModule.decorators = [
|
|
9227
|
+
{ type: i0.NgModule, args: [{
|
|
9228
|
+
imports: [
|
|
9229
|
+
common.CommonModule,
|
|
9230
|
+
CoreModule,
|
|
9231
|
+
PipeModule,
|
|
9232
|
+
corecomponents_v12.InputTextModule,
|
|
9233
|
+
],
|
|
9234
|
+
declarations: [
|
|
9235
|
+
TransactionReceivingGoodsDetailsComponent
|
|
9236
|
+
],
|
|
9237
|
+
exports: [
|
|
9238
|
+
TransactionReceivingGoodsDetailsComponent
|
|
9239
|
+
]
|
|
9240
|
+
},] }
|
|
9241
|
+
];
|
|
9242
|
+
|
|
9243
|
+
var TransactionConfirmationHistoryComponent = /** @class */ (function () {
|
|
9244
|
+
function TransactionConfirmationHistoryComponent() {
|
|
9245
|
+
this.transactionLines = [];
|
|
9246
|
+
}
|
|
9247
|
+
TransactionConfirmationHistoryComponent.prototype.showClass = function () {
|
|
9248
|
+
return true;
|
|
9249
|
+
};
|
|
9250
|
+
return TransactionConfirmationHistoryComponent;
|
|
9251
|
+
}());
|
|
9252
|
+
TransactionConfirmationHistoryComponent.decorators = [
|
|
9253
|
+
{ type: i0.Component, args: [{
|
|
9254
|
+
selector: "co-transaction-confirmation-history",
|
|
9255
|
+
template: "\n <div class=\"history-grid-wrapper\">\n <co-transaction-history-grid [transactionLines]=\"transactionLines\">\n <co-simple-grid-column [headerText]=\"'PRICE' | localize\" [field]=\"'price'\" [order]=\"40\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE' | localize\" [field]=\"'date'\" [order]=\"60\"></co-simple-grid-column>\n </co-transaction-history-grid>\n </div>\n ",
|
|
9256
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9257
|
+
},] }
|
|
9258
|
+
];
|
|
9259
|
+
TransactionConfirmationHistoryComponent.propDecorators = {
|
|
9260
|
+
transactionLines: [{ type: i0.Input }],
|
|
9261
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-confirmation-history",] }]
|
|
9262
|
+
};
|
|
9263
|
+
|
|
9264
|
+
var TransactionConfirmationHistoryModule = /** @class */ (function () {
|
|
9265
|
+
function TransactionConfirmationHistoryModule() {
|
|
9266
|
+
}
|
|
9267
|
+
return TransactionConfirmationHistoryModule;
|
|
9268
|
+
}());
|
|
9269
|
+
TransactionConfirmationHistoryModule.decorators = [
|
|
9270
|
+
{ type: i0.NgModule, args: [{
|
|
9271
|
+
imports: [
|
|
9272
|
+
common.CommonModule,
|
|
9273
|
+
CoreModule,
|
|
9274
|
+
PipeModule,
|
|
9275
|
+
corecomponents_v12.SimpleGridModule,
|
|
9276
|
+
TransactionHistoryGridModule
|
|
9277
|
+
],
|
|
9278
|
+
declarations: [
|
|
9279
|
+
TransactionConfirmationHistoryComponent
|
|
9280
|
+
],
|
|
9281
|
+
exports: [
|
|
9282
|
+
TransactionConfirmationHistoryComponent
|
|
9283
|
+
]
|
|
9284
|
+
},] }
|
|
9285
|
+
];
|
|
9286
|
+
|
|
9287
|
+
var TransactionLineSidePanelModule = /** @class */ (function () {
|
|
9288
|
+
function TransactionLineSidePanelModule() {
|
|
9289
|
+
}
|
|
9290
|
+
return TransactionLineSidePanelModule;
|
|
9291
|
+
}());
|
|
9292
|
+
TransactionLineSidePanelModule.decorators = [
|
|
9293
|
+
{ type: i0.NgModule, args: [{
|
|
9294
|
+
imports: [
|
|
9295
|
+
common.CommonModule,
|
|
9296
|
+
CoreModule,
|
|
9297
|
+
TransactionLineSidePanelDefaultModule,
|
|
9298
|
+
TransactionReceivingGoodsHistoryModule,
|
|
9299
|
+
TransactionReceivingGoodsDetailsModule,
|
|
9300
|
+
PipeModule,
|
|
9301
|
+
corecomponents_v12.ButtonModule,
|
|
9302
|
+
TransactionNavBarModule,
|
|
9303
|
+
corecomponents_v12.PriceDisplayPipeModule,
|
|
9304
|
+
TransactionConfirmationHistoryModule
|
|
9305
|
+
],
|
|
9306
|
+
declarations: [
|
|
9307
|
+
TransactionLineSidePanelComponent
|
|
9308
|
+
],
|
|
9309
|
+
exports: [
|
|
9310
|
+
TransactionLineSidePanelComponent
|
|
9311
|
+
]
|
|
9312
|
+
},] }
|
|
9313
|
+
];
|
|
9314
|
+
|
|
9315
|
+
var OrderConfirmationGridComponent = /** @class */ (function () {
|
|
9316
|
+
function OrderConfirmationGridComponent(_transactionService) {
|
|
9317
|
+
this._transactionService = _transactionService;
|
|
9318
|
+
this.icons = Icon;
|
|
9319
|
+
this.orderLines = [];
|
|
9320
|
+
this.sidePanelClicked = new i0.EventEmitter();
|
|
9321
|
+
this.orderGridData = [];
|
|
9322
|
+
}
|
|
9323
|
+
OrderConfirmationGridComponent.prototype.showClass = function () {
|
|
9324
|
+
return true;
|
|
9325
|
+
};
|
|
9326
|
+
OrderConfirmationGridComponent.prototype.ngOnInit = function () {
|
|
9327
|
+
var _this = this;
|
|
9328
|
+
var data = [
|
|
9329
|
+
["Een omschrijving voor een prachtig product. Deze omschrijving is redelijk lang om te checken wat er gebeurd " +
|
|
9330
|
+
"wanneer een omschrijving redelijk lang is.", "123456789", "142", "420", "10", ""],
|
|
9331
|
+
["Een omschrijving voor een prachtig product.", "123456789", "142", "420", "10", ""],
|
|
9332
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9333
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9334
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9335
|
+
];
|
|
9336
|
+
data.forEach(function (d) {
|
|
9337
|
+
var row = {
|
|
9338
|
+
description: d[0],
|
|
9339
|
+
articleImage: d[1],
|
|
9340
|
+
articleNumber: d[2],
|
|
9341
|
+
location: d[3],
|
|
9342
|
+
inOrder: d[4],
|
|
9343
|
+
sideMenuButton: d[5]
|
|
9344
|
+
};
|
|
9345
|
+
_this.orderGridData.push(row);
|
|
9346
|
+
});
|
|
9347
|
+
};
|
|
9348
|
+
OrderConfirmationGridComponent.prototype.openSidePanel = function () {
|
|
9349
|
+
this.sidePanelClicked.emit();
|
|
9350
|
+
};
|
|
9351
|
+
return OrderConfirmationGridComponent;
|
|
9352
|
+
}());
|
|
9353
|
+
OrderConfirmationGridComponent.decorators = [
|
|
9354
|
+
{ type: i0.Component, args: [{
|
|
9355
|
+
selector: "co-order-confirmation-grid",
|
|
9356
|
+
template: "\n <div>\n <co-order-grid [orderLines]=\"orderGridData\" (sidePanelClicked)=\"openSidePanel()\">\n <co-simple-grid-column [headerText]=\"'GROSS_PRICE' | localize\" [field]=\"'grossPrice'\" [order]=\"51\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DISCOUNT' | localize\" [field]=\"'discount'\" [order]=\"52\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'NETTO_PRICE' | localize\" [field]=\"'nettoPrice'\" [order]=\"53\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CONFIRMED' | localize\" [field]=\"'confirmed'\" [order]=\"54\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'Commit button'\" [field]=\"'commitButton'\" [order]=\"55\">\n <ng-template #template let-row = \"row\">\n <co-input-checkbox></co-input-checkbox>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE' | localize\" [field]=\"'deliveryDate'\" [order]=\"56\"></co-simple-grid-column>\n </co-order-grid>\n </div>\n ",
|
|
9357
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9358
|
+
},] }
|
|
9359
|
+
];
|
|
9360
|
+
OrderConfirmationGridComponent.ctorParameters = function () { return [
|
|
9361
|
+
{ type: TransactionService }
|
|
9362
|
+
]; };
|
|
9363
|
+
OrderConfirmationGridComponent.propDecorators = {
|
|
9364
|
+
orderLines: [{ type: i0.Input }],
|
|
9365
|
+
sidePanelClicked: [{ type: i0.Output }],
|
|
9366
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-payment",] }]
|
|
9367
|
+
};
|
|
9368
|
+
|
|
9369
|
+
var OrderGridComponent = /** @class */ (function () {
|
|
9370
|
+
function OrderGridComponent(_transactionService) {
|
|
9371
|
+
this._transactionService = _transactionService;
|
|
9372
|
+
this.icons = Icon;
|
|
9373
|
+
this.align = corecomponents_v12.ColumnAlign;
|
|
9374
|
+
this.sidePanelClicked = new i0.EventEmitter();
|
|
9375
|
+
this.orderLines = [];
|
|
9376
|
+
this.gridData = [];
|
|
9377
|
+
this.extraColumns = [];
|
|
9378
|
+
}
|
|
9379
|
+
Object.defineProperty(OrderGridComponent.prototype, "content", {
|
|
9380
|
+
set: function (columnComponents) {
|
|
9381
|
+
this.extraColumns = columnComponents.toArray();
|
|
9382
|
+
},
|
|
9383
|
+
enumerable: false,
|
|
9384
|
+
configurable: true
|
|
9385
|
+
});
|
|
9386
|
+
OrderGridComponent.prototype.showClass = function () {
|
|
9387
|
+
return true;
|
|
9388
|
+
};
|
|
9389
|
+
OrderGridComponent.prototype.ngOnInit = function () {
|
|
9390
|
+
var _this = this;
|
|
9391
|
+
var data = [
|
|
9392
|
+
["Een omschrijving voor een prachtig product. Deze omschrijving is redelijk lang om te checken wat er gebeurd " +
|
|
9393
|
+
"wanneer een omschrijving redelijk lang is.", "123456789", "142", "420", "10", ""],
|
|
9394
|
+
["Een omschrijving voor een prachtig product.", "123456789", "142", "420", "10", ""],
|
|
9395
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9396
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9397
|
+
["Een omschrijving voor een prachtig product.", "123456789", "", "142", "420", "10", "360", "111", "", "12-12-2012", ""],
|
|
9398
|
+
];
|
|
9399
|
+
data.forEach(function (d) {
|
|
9400
|
+
var row = {
|
|
9401
|
+
description: d[0],
|
|
9402
|
+
articleImage: d[1],
|
|
9403
|
+
articleNumber: d[2],
|
|
9404
|
+
location: d[3],
|
|
9405
|
+
inOrder: d[4],
|
|
9406
|
+
grossPrice: d[5],
|
|
9407
|
+
discount: d[6],
|
|
9408
|
+
nettoPrice: d[7],
|
|
9409
|
+
confirmed: d[8],
|
|
9410
|
+
deliveryDate: d[9],
|
|
9411
|
+
sideMenuButton: d[10]
|
|
9412
|
+
};
|
|
9413
|
+
_this.gridData.push(row);
|
|
9414
|
+
});
|
|
9415
|
+
};
|
|
9416
|
+
OrderGridComponent.prototype.handleDrop = function (data) {
|
|
9417
|
+
};
|
|
9418
|
+
OrderGridComponent.prototype.openSidePanel = function () {
|
|
9419
|
+
this.sidePanelClicked.emit(true);
|
|
9420
|
+
};
|
|
9421
|
+
return OrderGridComponent;
|
|
9422
|
+
}());
|
|
9423
|
+
OrderGridComponent.decorators = [
|
|
9424
|
+
{ type: i0.Component, args: [{
|
|
9425
|
+
selector: "co-order-grid",
|
|
9426
|
+
template: "\n <div>\n <co-simple-grid [data]=\"gridData\" [extraColumns]=\"extraColumns\" [dragDropEnabled]=\"true\" [emitDragDrop]=\"true\" (onDrop)=\"handleDrop($event)\">\n <co-simple-grid-column [headerText]=\"'GOOD_DESCRIPTION' | localize\" [width]=\"300\" [field]=\"'description'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ARTICLE_IMAGE' | localize\" [field]=\"'articleImage'\" [order]=\"20\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ARTICLE_NR' | localize\" [field]=\"'articleNumber'\" [order]=\"30\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION' | localize\" [width]=\"100\" [field]=\"'location'\" [textAlign]=\"align.Center\" [order]=\"40\">\n <ng-template #template let-row = \"row\">\n <div class=\"co-order-grid-location-icon-wrapper\">\n <icon class=\"co-order-grid-menu-icon\" [icon]=\"icons.Warehouse\"></icon>\n <span [textContent]=\"'98'\"></span>\n </div>\n <div class=\"co-order-grid-location-icon-wrapper\">\n <icon class=\"co-order-grid-menu-icon\" [icon]=\"icons.MapMarker\"></icon>\n <span [textContent]=\"'A01'\"></span>\n </div>\n <div class=\"co-order-grid-location-icon-wrapper\">\n <icon class=\"co-order-grid-menu-icon\" [icon]=\"icons.Truck\"></icon>\n <span [textContent]=\"'Black'\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'IN_ORDER' | localize\" [field]=\"'inOrder'\" [order]=\"50\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"''\" [width]=\"40\" [field]=\"'sideMenuButton'\" [order]=\"60\">\n <ng-template #template let-row = \"row\">\n <icon class=\"sidepanel-icon\" [icon]=\"icons.Menu\" (click)=\"openSidePanel()\"></icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
9427
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
9428
|
+
},] }
|
|
9429
|
+
];
|
|
9430
|
+
OrderGridComponent.ctorParameters = function () { return [
|
|
9431
|
+
{ type: TransactionService }
|
|
9432
|
+
]; };
|
|
9433
|
+
OrderGridComponent.propDecorators = {
|
|
9434
|
+
content: [{ type: i0.ContentChildren, args: [corecomponents_v12.SimpleGridColumnDirective,] }],
|
|
9435
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-order-grid",] }],
|
|
9436
|
+
sidePanelClicked: [{ type: i0.Output }],
|
|
9437
|
+
orderLines: [{ type: i0.Input }]
|
|
9438
|
+
};
|
|
9439
|
+
|
|
9440
|
+
var OrderGridModule = /** @class */ (function () {
|
|
9441
|
+
function OrderGridModule() {
|
|
9442
|
+
}
|
|
9443
|
+
return OrderGridModule;
|
|
9444
|
+
}());
|
|
9445
|
+
OrderGridModule.decorators = [
|
|
9446
|
+
{ type: i0.NgModule, args: [{
|
|
9447
|
+
imports: [
|
|
9448
|
+
common.CommonModule,
|
|
9449
|
+
CoreModule,
|
|
9450
|
+
PipeModule,
|
|
9451
|
+
corecomponents_v12.SimpleGridModule,
|
|
9452
|
+
corecomponents_v12.ButtonModule,
|
|
9453
|
+
TransactionLineSidePanelModule,
|
|
9454
|
+
],
|
|
9455
|
+
declarations: [
|
|
9456
|
+
OrderGridComponent
|
|
9457
|
+
],
|
|
9458
|
+
exports: [
|
|
9459
|
+
OrderGridComponent
|
|
9460
|
+
]
|
|
9461
|
+
},] }
|
|
9462
|
+
];
|
|
9463
|
+
|
|
9464
|
+
var OrderConfirmationGridModule = /** @class */ (function () {
|
|
9465
|
+
function OrderConfirmationGridModule() {
|
|
9466
|
+
}
|
|
9467
|
+
return OrderConfirmationGridModule;
|
|
9468
|
+
}());
|
|
9469
|
+
OrderConfirmationGridModule.decorators = [
|
|
9470
|
+
{ type: i0.NgModule, args: [{
|
|
9471
|
+
imports: [
|
|
9472
|
+
common.CommonModule,
|
|
9473
|
+
CoreModule,
|
|
9474
|
+
PipeModule,
|
|
9475
|
+
corecomponents_v12.SimpleGridModule,
|
|
9476
|
+
corecomponents_v12.ButtonModule,
|
|
9477
|
+
OrderGridModule,
|
|
9478
|
+
corecomponents_v12.InputCheckboxModule
|
|
9479
|
+
],
|
|
9480
|
+
declarations: [
|
|
9481
|
+
OrderConfirmationGridComponent
|
|
9482
|
+
],
|
|
9483
|
+
exports: [
|
|
9484
|
+
OrderConfirmationGridComponent
|
|
9485
|
+
]
|
|
9486
|
+
},] }
|
|
9487
|
+
];
|
|
9488
|
+
|
|
9489
|
+
var TransactionModule = /** @class */ (function () {
|
|
9490
|
+
function TransactionModule() {
|
|
9491
|
+
}
|
|
9492
|
+
return TransactionModule;
|
|
9493
|
+
}());
|
|
9494
|
+
TransactionModule.decorators = [
|
|
9495
|
+
{ type: i0.NgModule, args: [{
|
|
9496
|
+
imports: [
|
|
9497
|
+
common.CommonModule,
|
|
9498
|
+
CoreModule,
|
|
9499
|
+
TransactionHeaderModule,
|
|
9500
|
+
TransactionLinesModule,
|
|
9501
|
+
TransactionTotalsModule,
|
|
9502
|
+
corecomponents_v12.ButtonModule,
|
|
9503
|
+
TransactionLinesGridModule,
|
|
9504
|
+
corecomponents_v12.CoDialogModule,
|
|
9505
|
+
corecomponents_v12.FormModule,
|
|
9506
|
+
corecomponents_v12.InputTextModule,
|
|
9507
|
+
corecomponents_v12.CoSidebarModule,
|
|
9508
|
+
DiscountModule,
|
|
9509
|
+
TransactionCommitBarModule,
|
|
9510
|
+
TransactionNavBarModule,
|
|
9511
|
+
PipeModule,
|
|
9512
|
+
TransactionLineSidePanelModule,
|
|
9513
|
+
OrderConfirmationGridModule
|
|
7132
9514
|
],
|
|
7133
9515
|
declarations: [
|
|
7134
9516
|
TransactionComponent
|
|
@@ -7236,40 +9618,89 @@
|
|
|
7236
9618
|
exports.TransactionTotalsModule = TransactionTotalsModule;
|
|
7237
9619
|
exports["ɵa"] = PendingReasonService;
|
|
7238
9620
|
exports["ɵb"] = DialogService;
|
|
7239
|
-
exports["ɵba"] =
|
|
7240
|
-
exports["ɵbb"] =
|
|
7241
|
-
exports["ɵbc"] =
|
|
7242
|
-
exports["ɵbd"] =
|
|
7243
|
-
exports["ɵbe"] =
|
|
7244
|
-
exports["ɵbf"] =
|
|
7245
|
-
exports["ɵbg"] =
|
|
7246
|
-
exports["ɵbh"] =
|
|
7247
|
-
exports["ɵbi"] =
|
|
7248
|
-
exports["ɵbj"] =
|
|
7249
|
-
exports["ɵbk"] =
|
|
7250
|
-
exports["ɵbl"] =
|
|
7251
|
-
exports["ɵbm"] =
|
|
7252
|
-
exports["ɵbn"] =
|
|
7253
|
-
exports["ɵbo"] =
|
|
7254
|
-
exports["ɵbp"] =
|
|
7255
|
-
exports["ɵbq"] =
|
|
7256
|
-
exports["ɵbr"] =
|
|
7257
|
-
exports["ɵbs"] =
|
|
7258
|
-
exports["ɵbt"] =
|
|
7259
|
-
exports["ɵbu"] =
|
|
7260
|
-
exports["ɵbv"] =
|
|
7261
|
-
exports["ɵbw"] =
|
|
7262
|
-
exports["ɵbx"] =
|
|
7263
|
-
exports["ɵby"] =
|
|
7264
|
-
exports["ɵbz"] =
|
|
9621
|
+
exports["ɵba"] = RelationAddressTileModule;
|
|
9622
|
+
exports["ɵbb"] = TileModule;
|
|
9623
|
+
exports["ɵbc"] = TileComponent;
|
|
9624
|
+
exports["ɵbd"] = RelationAddressTileComponent;
|
|
9625
|
+
exports["ɵbe"] = RelationAddressSelectComponent;
|
|
9626
|
+
exports["ɵbf"] = BusinessObjectFactory;
|
|
9627
|
+
exports["ɵbg"] = StepperModule;
|
|
9628
|
+
exports["ɵbh"] = StepperComponent;
|
|
9629
|
+
exports["ɵbi"] = StepperStepComponent;
|
|
9630
|
+
exports["ɵbj"] = TransactionArticleTextModule;
|
|
9631
|
+
exports["ɵbk"] = TransactionArticleTextComponent;
|
|
9632
|
+
exports["ɵbl"] = TransactionArticleTextOverviewModule;
|
|
9633
|
+
exports["ɵbm"] = TransactionArticleTextOverviewComponent;
|
|
9634
|
+
exports["ɵbn"] = SellerInformationModule;
|
|
9635
|
+
exports["ɵbo"] = SellerInformationComponent;
|
|
9636
|
+
exports["ɵbp"] = DeliveryTypeTileModule;
|
|
9637
|
+
exports["ɵbq"] = DeliveryTypeTileComponent;
|
|
9638
|
+
exports["ɵbr"] = PaymentModule;
|
|
9639
|
+
exports["ɵbs"] = PaymentTileModule;
|
|
9640
|
+
exports["ɵbt"] = PaymentTileComponent;
|
|
9641
|
+
exports["ɵbu"] = PaymentComponent;
|
|
9642
|
+
exports["ɵbv"] = CheckoutOverviewRelationEditComponent;
|
|
9643
|
+
exports["ɵbw"] = CheckoutOverviewDeliveryEditComponent;
|
|
9644
|
+
exports["ɵbx"] = CheckoutOverviewDeliveryAddressComponent;
|
|
9645
|
+
exports["ɵby"] = CheckOutRelationSuggestionsListComponent;
|
|
9646
|
+
exports["ɵbz"] = CheckOutRelationSuggestionsListItemComponent;
|
|
7265
9647
|
exports["ɵc"] = OptionsService;
|
|
7266
|
-
exports["ɵca"] =
|
|
7267
|
-
exports["ɵcb"] =
|
|
7268
|
-
exports["ɵcc"] =
|
|
7269
|
-
exports["ɵcd"] =
|
|
7270
|
-
exports["ɵce"] =
|
|
9648
|
+
exports["ɵca"] = CheckoutLoginComponent;
|
|
9649
|
+
exports["ɵcb"] = TransactionBaseComponent;
|
|
9650
|
+
exports["ɵcc"] = DiscountModule;
|
|
9651
|
+
exports["ɵcd"] = DiscountComponent;
|
|
9652
|
+
exports["ɵce"] = TransactionCommitBarModule;
|
|
9653
|
+
exports["ɵcf"] = TransactionCommitBarComponent;
|
|
9654
|
+
exports["ɵcg"] = TransactionNavBarModule;
|
|
9655
|
+
exports["ɵch"] = TransactionNavBarComponent;
|
|
9656
|
+
exports["ɵci"] = TransactionNavBarButtonComponent;
|
|
9657
|
+
exports["ɵcj"] = TransactionLineSidePanelModule;
|
|
9658
|
+
exports["ɵck"] = TransactionLineSidePanelDefaultModule;
|
|
9659
|
+
exports["ɵcl"] = TransactionLinePriceModule;
|
|
9660
|
+
exports["ɵcm"] = TransactionLinePriceComponent;
|
|
9661
|
+
exports["ɵcn"] = TransactionLineFieldsBaseComponent;
|
|
9662
|
+
exports["ɵco"] = TransactionLinePriceListModule;
|
|
9663
|
+
exports["ɵcp"] = TransactionLinePriceListComponent;
|
|
9664
|
+
exports["ɵcq"] = TransactionLineVatModule;
|
|
9665
|
+
exports["ɵcr"] = TransactionLineVatComponent;
|
|
9666
|
+
exports["ɵcs"] = TransactionLineQuantityModule;
|
|
9667
|
+
exports["ɵct"] = TransactionLineQuantityComponent;
|
|
9668
|
+
exports["ɵcu"] = TransactionLineLineDiscountModule;
|
|
9669
|
+
exports["ɵcv"] = TransactionLineLineDiscountComponent;
|
|
9670
|
+
exports["ɵcw"] = TransactionLineDeliveryMethodModule;
|
|
9671
|
+
exports["ɵcx"] = TransactionLineDeliveryMethodComponent;
|
|
9672
|
+
exports["ɵcy"] = TransactionLineDeliveryDateModule;
|
|
9673
|
+
exports["ɵcz"] = TransactionLineDeliveryDateComponent;
|
|
7271
9674
|
exports["ɵd"] = DictionaryService;
|
|
9675
|
+
exports["ɵda"] = TransactionLineReferenceModule;
|
|
9676
|
+
exports["ɵdb"] = TransactionLineReferenceComponent;
|
|
9677
|
+
exports["ɵdc"] = TransactionLineCommissionCodeModule;
|
|
9678
|
+
exports["ɵdd"] = TransactionLineCommissionCodeComponent;
|
|
9679
|
+
exports["ɵde"] = TransactionLineWarehouseModule;
|
|
9680
|
+
exports["ɵdf"] = TransactionLineWarehouseComponent;
|
|
9681
|
+
exports["ɵdg"] = TransactionLineDiscountAmountModule;
|
|
9682
|
+
exports["ɵdh"] = TransactionLineDiscountAmountComponent;
|
|
9683
|
+
exports["ɵdi"] = TransactionLineQuantumDiscountModule;
|
|
9684
|
+
exports["ɵdj"] = TransactionLineQuantumDiscountComponent;
|
|
9685
|
+
exports["ɵdk"] = TransactionLineSpecialDiscountModule;
|
|
9686
|
+
exports["ɵdl"] = TransactionLineSpecialDiscountComponent;
|
|
9687
|
+
exports["ɵdm"] = TransactionLineSidePanelDefaultComponent;
|
|
9688
|
+
exports["ɵdn"] = TransactionReceivingGoodsHistoryModule;
|
|
9689
|
+
exports["ɵdo"] = TransactionHistoryGridModule;
|
|
9690
|
+
exports["ɵdp"] = TransactionHistoryGridStatusModule;
|
|
9691
|
+
exports["ɵdq"] = TransactionHistoryGridStatusComponent;
|
|
9692
|
+
exports["ɵdr"] = TransactionHistoryGridComponent;
|
|
9693
|
+
exports["ɵds"] = TransactionReceivingGoodsHistoryComponent;
|
|
9694
|
+
exports["ɵdt"] = TransactionReceivingGoodsDetailsModule;
|
|
9695
|
+
exports["ɵdu"] = TransactionReceivingGoodsDetailsComponent;
|
|
9696
|
+
exports["ɵdv"] = TransactionConfirmationHistoryModule;
|
|
9697
|
+
exports["ɵdw"] = TransactionConfirmationHistoryComponent;
|
|
9698
|
+
exports["ɵdx"] = TransactionLineSidePanelComponent;
|
|
9699
|
+
exports["ɵdy"] = OrderConfirmationGridModule;
|
|
9700
|
+
exports["ɵdz"] = OrderGridModule;
|
|
7272
9701
|
exports["ɵe"] = IOneConnectorAdapterService;
|
|
9702
|
+
exports["ɵea"] = OrderGridComponent;
|
|
9703
|
+
exports["ɵeb"] = OrderConfirmationGridComponent;
|
|
7273
9704
|
exports["ɵf"] = CoreModule;
|
|
7274
9705
|
exports["ɵg"] = ConfirmationDialogModule;
|
|
7275
9706
|
exports["ɵh"] = PipeModule;
|
|
@@ -7287,10 +9718,10 @@
|
|
|
7287
9718
|
exports["ɵt"] = IconCacheService;
|
|
7288
9719
|
exports["ɵu"] = CustomerGroupsComponent;
|
|
7289
9720
|
exports["ɵv"] = StockStatusIndicatorComponent;
|
|
7290
|
-
exports["ɵw"] =
|
|
7291
|
-
exports["ɵx"] =
|
|
7292
|
-
exports["ɵy"] =
|
|
7293
|
-
exports["ɵz"] =
|
|
9721
|
+
exports["ɵw"] = DefaultOkCancelButtonsComponent;
|
|
9722
|
+
exports["ɵx"] = RelationAddressModule;
|
|
9723
|
+
exports["ɵy"] = RelationAddressComponent;
|
|
9724
|
+
exports["ɵz"] = RelationAddressSelectModule;
|
|
7294
9725
|
|
|
7295
9726
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7296
9727
|
|