@colijnit/transaction 12.1.48 → 12.1.50
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 +1342 -857
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +247 -241
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +248 -242
- package/esm2015/lib/assets/dictionary/text.properties.js +5 -1
- package/esm2015/lib/component/avatar/avatar.component.js +20 -4
- package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +3 -3
- package/esm2015/lib/component/core/base/transaction-filter-popup-base.component.js +2 -2
- package/esm2015/lib/component/core/base/transaction-header-base.component.js +17 -2
- package/esm2015/lib/component/core/base/transaction-lines-line-base.component.js +3 -1
- package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.js +78 -0
- package/esm2015/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.module.js +29 -0
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-discount/dialog-transaction-line-discount.component.js +5 -5
- package/esm2015/lib/component/editable-label/editable-label.component.js +3 -1
- package/esm2015/lib/component/relation/relation-general/relation-general.component.js +4 -10
- package/esm2015/lib/component/relation/relation-suggestions-list-item/relation-suggestions-list-item.component.js +3 -1
- package/esm2015/lib/component/relation/relation-type/relation-type.component.js +3 -8
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +5 -2
- package/esm2015/lib/component/tile/tile.component.js +2 -2
- package/esm2015/lib/component/transaction/transaction.component.js +8 -12
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +6 -5
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +4 -2
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +25 -5
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.js +6 -2
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +5 -3
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +4 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +6 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.component.js +84 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-amount.module.js +23 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.js +84 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.js +23 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.js +85 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.js +23 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-amount.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-downpayment-percentage.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.js +7 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-reference.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-relation-reference.component.js +3 -1
- package/esm2015/lib/component/transaction-header-fields/transaction-header-remarks.component.js +3 -1
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +16 -8
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.js +6 -5
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.module.js +4 -4
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +26 -61
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.module.js +8 -2
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.js +6 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.component.js +28 -13
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-button.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.component.js +28 -13
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-button.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +3 -3
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +3 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +3 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-price.component.js +3 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.js +28 -17
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.module.js +4 -2
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +5 -5
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +9 -9
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter/transaction-filter.component.js +2 -1
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +2 -4
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +3 -2
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +34 -30
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.js +3 -3
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +4 -8
- package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +2 -14
- package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +4 -2
- package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +18 -11
- package/esm2015/lib/component/transaction-totals/transaction-totals.module.js +4 -2
- package/esm2015/lib/enum/searchbar-view-mode.enum.js +7 -0
- package/esm2015/lib/service/pending-reason.service.js +2 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +18 -1
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +12 -1
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +1257 -780
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/avatar.component.d.ts +8 -2
- package/lib/component/avatar/style/_layout.scss +1 -1
- package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +2 -2
- package/lib/component/core/base/transaction-header-base.component.d.ts +5 -0
- package/lib/component/core/base/transaction-lines-line-base.component.d.ts +1 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.component.d.ts +8 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/dialog-transaction-header-discount.module.d.ts +2 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_layout.scss +44 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_material-definition.scss +11 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/_theme.scss +11 -0
- package/lib/component/dialog/transaction-header/dialog-transaction-header-discount/style/material.scss +4 -0
- package/lib/component/dialog/transaction-line/dialog-transaction-line-discount/style/_theme.scss +0 -3
- package/lib/component/transaction/transaction.component.d.ts +0 -2
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -0
- package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +1 -1
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +13 -0
- package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +1 -0
- package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +2 -0
- package/lib/component/transaction-header/transaction-header-payment/style/material.scss +1 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +1 -1
- package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +1 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-amount.component.d.ts +17 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-amount.module.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-percentage.component.d.ts +17 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-percentage.module.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.component.d.ts +18 -0
- package/lib/component/transaction-header-fields/transaction-header-discount-transaction-total.module.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-partial-delivery.component.d.ts +1 -0
- package/lib/component/transaction-line/transaction-line/transaction-line.component.d.ts +4 -2
- package/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.component.d.ts +2 -0
- package/lib/component/transaction-line/transaction-overview-line/style/_theme.scss +1 -4
- package/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.d.ts +6 -9
- package/lib/component/transaction-line-checkbox-list/style/_layout.scss +1 -0
- package/lib/component/transaction-line-checkbox-list/transaction-line-checkbox-list.component.d.ts +5 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-button.component.d.ts +7 -7
- package/lib/component/transaction-line-fields/transaction-line-delivery-button.component.d.ts +7 -7
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +1 -1
- package/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.d.ts +7 -8
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -1
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +2 -2
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +6 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-statusbar/transaction-statusbar.component.d.ts +1 -1
- package/lib/component/transaction-search/transaction-search.component.d.ts +0 -4
- package/lib/component/transaction-tile/transaction-tile.component.d.ts +0 -1
- package/lib/component/transaction-totals/transaction-totals.component.d.ts +4 -1
- package/lib/enum/searchbar-view-mode.enum.d.ts +4 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/lib/style/transaction-globals.scss +4 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/esm2015/lib/component/status-bar/status-bar.component.js +0 -37
- package/esm2015/lib/component/status-bar/status-bar.module.js +0 -21
- package/lib/component/status-bar/status-bar.component.d.ts +0 -8
- package/lib/component/status-bar/status-bar.module.d.ts +0 -2
- package/lib/component/status-bar/style/_layout.scss +0 -14
- package/lib/component/status-bar/style/_material-definition.scss +0 -5
- package/lib/component/status-bar/style/_theme.scss +0 -15
- package/lib/component/status-bar/style/material.scss +0 -3
|
@@ -65,17 +65,19 @@ import { ResolveHeaderPendingReasonRequest } from '@colijnit/transactionapi/buil
|
|
|
65
65
|
import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
|
|
66
66
|
import { NULL_CUSTOMER_FULL_OBJECT, NULL_RELATION_OBJECT } from '@colijnit/transactionapi/build/model/nul-relation-object';
|
|
67
67
|
import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
|
|
68
|
-
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputListboxModule, DropDownModule,
|
|
68
|
+
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, InputComboBoxModule, FormModule, InputRadioButtonModule, IconModule, InputTextComponent, InputListboxModule, DropDownModule, ColumnAlign, SimpleGridColumnDirective, ObserveVisibilityModule, ColorSequenceService, PriceDisplayPipeModule, InputDatePickerModule, Carousel3dModule, InputDatePickerComponent, InputTextareaComponent, InputTextareaModule, InputSearchModule, InputNumberPickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, CarouselModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, ClickoutsideModule, CoOrientation, CoDirection, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
69
69
|
import { FlexModule } from '@angular/flex-layout';
|
|
70
70
|
import { AddressType } from '@colijnit/transactionapi/build/enum/address-type.enum';
|
|
71
71
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
72
72
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
73
73
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
74
74
|
import { Address } from '@colijnit/transactionapi/build/model/address.bo';
|
|
75
|
+
import { TransactionTotal } from '@colijnit/transactionapi/build/model/transaction-total.bo';
|
|
76
|
+
import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
|
|
75
77
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
76
78
|
import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
|
|
77
|
-
import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
|
|
78
79
|
import { PagingParameters } from '@colijnit/transactionapi/build/model/paging-parameters';
|
|
80
|
+
import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
|
|
79
81
|
import { RelationKind as RelationKind$1 } from '@colijnit/articleapi/build/enum/relation-kind.enum';
|
|
80
82
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
81
83
|
import { ReceiveGoodsForPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo';
|
|
@@ -92,7 +94,6 @@ import { ContactOption } from '@colijnit/transactionapi/build/model/contact-opti
|
|
|
92
94
|
import { BusinessObjectUtils } from '@colijnit/transactionapi/build/utils/business-object-utils';
|
|
93
95
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
94
96
|
import { RelationSmallObject } from '@colijnit/transactionapi/build/model/relation-small-object.bo';
|
|
95
|
-
import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
|
|
96
97
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
|
|
97
98
|
import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
|
|
98
99
|
import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
|
|
@@ -177,6 +178,7 @@ class Dictionary {
|
|
|
177
178
|
constructor() {
|
|
178
179
|
this.strings = {
|
|
179
180
|
"nl": {
|
|
181
|
+
"0_RESULTS_FOUND": "0 resultaten gevonden",
|
|
180
182
|
"ACCOUNT_DETAILS": "Accountgegevens",
|
|
181
183
|
"ACCOUNT_EXPLANATION": "Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. " +
|
|
182
184
|
"Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",
|
|
@@ -440,6 +442,7 @@ class Dictionary {
|
|
|
440
442
|
"RECEIVED": "Ontvangst",
|
|
441
443
|
"RECEIVED_DELIVERED": "Binnengemeld / geleverd",
|
|
442
444
|
"RECEIVED_DATE": "Ontvangst datum",
|
|
445
|
+
"REDISTRIBUTE_DISCOUNT": "Herverdeel korting",
|
|
443
446
|
"REFERENCE": "Referentie",
|
|
444
447
|
"REFERENCE_RELATION": "Ref. relatie",
|
|
445
448
|
"RELATION_NUMBER": "Relatienummer",
|
|
@@ -526,6 +529,7 @@ class Dictionary {
|
|
|
526
529
|
"de": {},
|
|
527
530
|
"fr": {},
|
|
528
531
|
"en": {
|
|
532
|
+
"0_RESULTS_FOUND": "0 results found",
|
|
529
533
|
"ACCOUNT_DETAILS": "Account details",
|
|
530
534
|
"ACCOUNT_EXPLANATION": "E-mailaddress and password are needed to gain access to the data. We also notify you on this e-mailaddress about the order status",
|
|
531
535
|
"ACTIVE": "Active",
|
|
@@ -771,6 +775,7 @@ class Dictionary {
|
|
|
771
775
|
"RECEIPT_DETAILS": "Receipt details",
|
|
772
776
|
"RECEIVED": "Received",
|
|
773
777
|
"RECEIVED_DATE": "Received date",
|
|
778
|
+
"REDISTRIBUTE_DISCOUNT": "Redistribute discount",
|
|
774
779
|
"RECEIVED_DELIVERED": "Received / delivered",
|
|
775
780
|
"REFERENCE": "Reference",
|
|
776
781
|
"REFERENCE_RELATION": "Ref. relation",
|
|
@@ -2411,7 +2416,7 @@ class TransactionFilterPopupBaseComponent {
|
|
|
2411
2416
|
});
|
|
2412
2417
|
this.viewModelsFiltered = this.viewModels.slice();
|
|
2413
2418
|
if (!this.useModel && this.viewModels.length > 0) {
|
|
2414
|
-
this.valueChange.next(this.viewModels[0].value);
|
|
2419
|
+
this.valueChange.next(this.value ? this.value : this.viewModels[0].value);
|
|
2415
2420
|
}
|
|
2416
2421
|
}
|
|
2417
2422
|
_doSearch() {
|
|
@@ -4112,6 +4117,23 @@ class TransactionConnectorAdapterService {
|
|
|
4112
4117
|
}
|
|
4113
4118
|
});
|
|
4114
4119
|
}
|
|
4120
|
+
changeHeaderTransactionDiscount(uuid, type, amount) {
|
|
4121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4122
|
+
const request = {
|
|
4123
|
+
transactionUuid: uuid,
|
|
4124
|
+
orderDiscountType: type,
|
|
4125
|
+
discountValue: amount
|
|
4126
|
+
};
|
|
4127
|
+
const response = yield this.connector.setTransactionDiscounts(request);
|
|
4128
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
4129
|
+
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
|
|
4130
|
+
}
|
|
4131
|
+
else {
|
|
4132
|
+
this._handleExceptionFromResponse(response);
|
|
4133
|
+
return null;
|
|
4134
|
+
}
|
|
4135
|
+
});
|
|
4136
|
+
}
|
|
4115
4137
|
changeHeaderTransactionToDownPay(uuid, downPayment) {
|
|
4116
4138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4117
4139
|
const request = {
|
|
@@ -4766,6 +4788,11 @@ class TransactionConnectorService {
|
|
|
4766
4788
|
return this._adapterService.changeHeaderTransactionMarketing(uuid, code);
|
|
4767
4789
|
});
|
|
4768
4790
|
}
|
|
4791
|
+
changeHeaderTransactionDiscount(uuid, type, amount) {
|
|
4792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4793
|
+
return this._adapterService.changeHeaderTransactionDiscount(uuid, type, amount);
|
|
4794
|
+
});
|
|
4795
|
+
}
|
|
4769
4796
|
changeHeaderTransactionToDownPay(uuid, downPayment) {
|
|
4770
4797
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4771
4798
|
return this._adapterService.changeHeaderTransactionToDownPay(uuid, downPayment);
|
|
@@ -5139,6 +5166,7 @@ class PendingReasonService {
|
|
|
5139
5166
|
}
|
|
5140
5167
|
_showWarehouseCcDialog(uuid, quantity, commissionCode, warehouseNr, reason, type) {
|
|
5141
5168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5169
|
+
commissionCode = "2";
|
|
5142
5170
|
const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
5143
5171
|
const response = yield this.dialogService.showWarehouseCC(quantity, commissionCode, warehouseNr);
|
|
5144
5172
|
if (response.button === AppPopupButtonType.Ok) {
|
|
@@ -5421,6 +5449,17 @@ class TransactionService extends PendingReasonService {
|
|
|
5421
5449
|
return false;
|
|
5422
5450
|
});
|
|
5423
5451
|
}
|
|
5452
|
+
updateHeaderTransactionDiscount(uuid, type, amount) {
|
|
5453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5454
|
+
const response = yield this.connector.changeHeaderTransactionDiscount(uuid, type, amount);
|
|
5455
|
+
if (response) {
|
|
5456
|
+
const success = yield this.handleHeaderOperationStatuses(response);
|
|
5457
|
+
this.rememberCurrentTransaction(response);
|
|
5458
|
+
return success;
|
|
5459
|
+
}
|
|
5460
|
+
return false;
|
|
5461
|
+
});
|
|
5462
|
+
}
|
|
5424
5463
|
updateQuantityTransactionLine(uuid, lineUuid, quantity) {
|
|
5425
5464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5426
5465
|
const response = yield this.connector.changeTransactionLineQuantity(uuid, lineUuid, quantity);
|
|
@@ -7747,7 +7786,7 @@ TileComponent.decorators = [
|
|
|
7747
7786
|
template: `
|
|
7748
7787
|
<div class="co-tile-wrapper" (click)="selectedChange.emit(selected)">
|
|
7749
7788
|
<div class="co-tile-select-wrapper">
|
|
7750
|
-
<co-input-radio-button [
|
|
7789
|
+
<co-input-radio-button [model]="selected" (modelChange)="selectedChange.emit($event)"></co-input-radio-button>
|
|
7751
7790
|
</div>
|
|
7752
7791
|
<div class="co-tile-content-wrapper">
|
|
7753
7792
|
<ng-content></ng-content>
|
|
@@ -8014,6 +8053,7 @@ class TransactionTotalsComponent {
|
|
|
8014
8053
|
constructor() {
|
|
8015
8054
|
this.showDiscount = false;
|
|
8016
8055
|
this.discountClick = new EventEmitter();
|
|
8056
|
+
this.showDiscountDialog = false;
|
|
8017
8057
|
}
|
|
8018
8058
|
showClass() {
|
|
8019
8059
|
return true;
|
|
@@ -8025,337 +8065,672 @@ TransactionTotalsComponent.decorators = [
|
|
|
8025
8065
|
template: `
|
|
8026
8066
|
<div class="transaction-totals-wrapper">
|
|
8027
8067
|
<span class="totals-gross label" [textContent]="'ORDER_GROSS' | localize"></span>
|
|
8028
|
-
<span class="totals-gross value" [textContent]="
|
|
8029
|
-
<ng-container *ngIf="
|
|
8068
|
+
<span class="totals-gross value" [textContent]="transactionTotal?.grossAmount | coCurrency: true"></span>
|
|
8069
|
+
<ng-container *ngIf="transactionTotal?.discountAmount">
|
|
8030
8070
|
<span class="totals-discount-amount label" [textContent]="'DISCOUNT_AMOUNT' | localize"></span>
|
|
8031
|
-
<span class="totals-discount-amount value" [textContent]="
|
|
8071
|
+
<span class="totals-discount-amount value" [class.transaction-negative-value]="transactionTotal?.discountAmount < 0" [textContent]="transactionTotal?.discountAmount | coCurrency: true"></span>
|
|
8032
8072
|
</ng-container>
|
|
8033
|
-
<ng-container *ngIf="
|
|
8073
|
+
<ng-container *ngIf="transactionTotal?.transactionDiscountAmount">
|
|
8034
8074
|
<span class="totals-discount label" [textContent]="'TRANSACTION_DISCOUNT' | localize"></span>
|
|
8035
|
-
<span class="totals-discount value" [textContent]="
|
|
8075
|
+
<span class="totals-discount value" [class.transaction-negative-value]="transactionTotal?.transactionDiscountAmount < 0" [textContent]="transactionTotal?.transactionDiscountAmount | coCurrency: true"></span>
|
|
8036
8076
|
</ng-container>
|
|
8037
|
-
<ng-container *ngIf="
|
|
8077
|
+
<ng-container *ngIf="transactionTotal?.transactionDiscountPercentage">
|
|
8038
8078
|
<span class="totals-discount-percentage label" [textContent]="'TRANSACTION_DISCOUNT_PERC' | localize"></span>
|
|
8039
|
-
<span class="totals-discount-percentage value" [textContent]="
|
|
8079
|
+
<span class="totals-discount-percentage value" [class.transaction-negative-value]="transactionTotal?.transactionDiscountPercentage < 0" [textContent]="transactionTotal?.transactionDiscountPercentage.toString() | append:' %'"></span>
|
|
8040
8080
|
</ng-container>
|
|
8041
8081
|
<span class="totals-net label" [textContent]="'ORDER_NET'| localize"></span>
|
|
8042
|
-
<span class="totals-net value" [textContent]="
|
|
8043
|
-
<a *ngIf="showDiscount" class="add-discount label" (click)="
|
|
8082
|
+
<span class="totals-net value" [textContent]="transactionTotal?.netAmount | coCurrency: true"></span>
|
|
8083
|
+
<a *ngIf="showDiscount" class="add-discount label" (click)="showDiscountDialog = true" [textContent]="'ADD_DISCOUNTS' | localize"></a>
|
|
8044
8084
|
</div>
|
|
8085
|
+
<co-dialog-transaction-header-discount class="discount-dialog" *ngIf="showDiscountDialog"
|
|
8086
|
+
[transactionInfo]="transactionInfo"
|
|
8087
|
+
[transactionTotal]="transactionTotal"
|
|
8088
|
+
(close)="showDiscountDialog = false">
|
|
8089
|
+
</co-dialog-transaction-header-discount>
|
|
8045
8090
|
`,
|
|
8046
8091
|
encapsulation: ViewEncapsulation.None
|
|
8047
8092
|
},] }
|
|
8048
8093
|
];
|
|
8049
8094
|
TransactionTotalsComponent.propDecorators = {
|
|
8050
|
-
|
|
8095
|
+
transactionInfo: [{ type: Input }],
|
|
8096
|
+
transactionTotal: [{ type: Input }],
|
|
8051
8097
|
showDiscount: [{ type: Input }],
|
|
8052
8098
|
discountClick: [{ type: Output }],
|
|
8053
8099
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-totals",] }]
|
|
8054
8100
|
};
|
|
8055
8101
|
|
|
8056
|
-
class
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
CoreModule,
|
|
8063
|
-
PipeModule
|
|
8064
|
-
],
|
|
8065
|
-
declarations: [
|
|
8066
|
-
TransactionTotalsComponent
|
|
8067
|
-
],
|
|
8068
|
-
exports: [
|
|
8069
|
-
TransactionTotalsComponent
|
|
8070
|
-
]
|
|
8071
|
-
},] }
|
|
8072
|
-
];
|
|
8073
|
-
|
|
8074
|
-
class TransactionArticleTextComponent {
|
|
8075
|
-
constructor(service) {
|
|
8076
|
-
this.service = service;
|
|
8077
|
-
this.closeClick = new EventEmitter();
|
|
8078
|
-
this.cancelClick = new EventEmitter();
|
|
8079
|
-
this.saveClick = new EventEmitter();
|
|
8080
|
-
this.showOverviewDialog = false;
|
|
8081
|
-
this.standardTexts = [];
|
|
8082
|
-
this.documents = [];
|
|
8083
|
-
this.fields = { text: "description", value: "textId" };
|
|
8084
|
-
this.fieldsDocuments = { text: "description", value: "code" };
|
|
8085
|
-
this.transactionAddTextLineRequest = new TransactionAddTextLineRequest();
|
|
8102
|
+
class TransactionHeaderBaseComponent extends TransactionFilterPopupBaseComponent {
|
|
8103
|
+
constructor() {
|
|
8104
|
+
super(...arguments);
|
|
8105
|
+
this.readonly = false;
|
|
8106
|
+
this._transactionInfo = new TransactionInfo();
|
|
8107
|
+
this._transactionTotal = new TransactionTotal();
|
|
8086
8108
|
}
|
|
8087
|
-
set
|
|
8109
|
+
set transactionInfo(value) {
|
|
8088
8110
|
if (value) {
|
|
8089
|
-
this.
|
|
8090
|
-
this.
|
|
8111
|
+
this._transactionInfo = value;
|
|
8112
|
+
this.transactionInfoSet();
|
|
8091
8113
|
}
|
|
8092
8114
|
}
|
|
8093
|
-
|
|
8115
|
+
get transactionInfo() {
|
|
8116
|
+
return this._transactionInfo;
|
|
8117
|
+
}
|
|
8118
|
+
set transactionTotal(value) {
|
|
8094
8119
|
if (value) {
|
|
8095
|
-
this.
|
|
8120
|
+
this._transactionTotal = value;
|
|
8121
|
+
this.transactionTotalSet();
|
|
8096
8122
|
}
|
|
8097
8123
|
}
|
|
8098
|
-
get
|
|
8099
|
-
return this.
|
|
8124
|
+
get transactionTotal() {
|
|
8125
|
+
return this._transactionTotal;
|
|
8100
8126
|
}
|
|
8101
|
-
|
|
8102
|
-
this.
|
|
8127
|
+
get model() {
|
|
8128
|
+
return this._transactionInfo;
|
|
8103
8129
|
}
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
this.transactionAddTextLineRequest.refArticleLineNr = value;
|
|
8107
|
-
}
|
|
8130
|
+
// overridden by descendents
|
|
8131
|
+
transactionInfoSet() {
|
|
8108
8132
|
}
|
|
8109
|
-
|
|
8110
|
-
|
|
8133
|
+
// overridden by descendents
|
|
8134
|
+
transactionTotalSet() {
|
|
8111
8135
|
}
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8136
|
+
}
|
|
8137
|
+
TransactionHeaderBaseComponent.decorators = [
|
|
8138
|
+
{ type: Directive }
|
|
8139
|
+
];
|
|
8140
|
+
TransactionHeaderBaseComponent.propDecorators = {
|
|
8141
|
+
transactionInfo: [{ type: Input }],
|
|
8142
|
+
transactionTotal: [{ type: Input }]
|
|
8143
|
+
};
|
|
8144
|
+
|
|
8145
|
+
class DialogTransactionHeaderBaseComponent extends TransactionHeaderBaseComponent {
|
|
8146
|
+
constructor() {
|
|
8147
|
+
super(...arguments);
|
|
8148
|
+
this.buttonType = AppPopupButtonType;
|
|
8149
|
+
this.close = new EventEmitter();
|
|
8117
8150
|
}
|
|
8118
|
-
|
|
8119
|
-
|
|
8151
|
+
onClose(eventType, output) {
|
|
8152
|
+
return;
|
|
8120
8153
|
}
|
|
8121
|
-
|
|
8122
|
-
this.
|
|
8154
|
+
handleValueChange(value) {
|
|
8155
|
+
this.value = value;
|
|
8123
8156
|
}
|
|
8124
|
-
|
|
8125
|
-
this.
|
|
8157
|
+
handleOkClick() {
|
|
8158
|
+
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
8126
8159
|
}
|
|
8127
|
-
|
|
8160
|
+
handleSearch(text) {
|
|
8161
|
+
this.searchText = text;
|
|
8162
|
+
}
|
|
8163
|
+
handleClose(type) {
|
|
8164
|
+
this.close.emit();
|
|
8165
|
+
this.onClose(type);
|
|
8128
8166
|
}
|
|
8129
8167
|
}
|
|
8130
|
-
|
|
8168
|
+
DialogTransactionHeaderBaseComponent.decorators = [
|
|
8169
|
+
{ type: Directive }
|
|
8170
|
+
];
|
|
8171
|
+
DialogTransactionHeaderBaseComponent.propDecorators = {
|
|
8172
|
+
close: [{ type: Output }]
|
|
8173
|
+
};
|
|
8174
|
+
|
|
8175
|
+
class DialogTransactionHeaderDiscountComponent extends DialogTransactionHeaderBaseComponent {
|
|
8176
|
+
constructor(_transactionService) {
|
|
8177
|
+
super();
|
|
8178
|
+
this._transactionService = _transactionService;
|
|
8179
|
+
}
|
|
8180
|
+
showClass() {
|
|
8181
|
+
return true;
|
|
8182
|
+
}
|
|
8183
|
+
redistributeDiscount() {
|
|
8184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8185
|
+
yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountAmount, this.transactionTotal.transactionDiscountAmount);
|
|
8186
|
+
});
|
|
8187
|
+
}
|
|
8188
|
+
}
|
|
8189
|
+
DialogTransactionHeaderDiscountComponent.decorators = [
|
|
8131
8190
|
{ type: Component, args: [{
|
|
8132
|
-
selector: "co-transaction-
|
|
8191
|
+
selector: "co-dialog-transaction-header-discount",
|
|
8133
8192
|
template: `
|
|
8134
|
-
<co-dialog
|
|
8135
|
-
<div class="
|
|
8136
|
-
<div class="
|
|
8137
|
-
<
|
|
8138
|
-
|
|
8139
|
-
></textarea>
|
|
8193
|
+
<co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
|
|
8194
|
+
<div class="transaction-discount-wrapper co-transaction-small-toolbar">
|
|
8195
|
+
<div class="two-column-grid">
|
|
8196
|
+
<co-transaction-header-discount-percentage [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-percentage>
|
|
8197
|
+
<co-transaction-header-discount-amount [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-amount>
|
|
8140
8198
|
</div>
|
|
8141
|
-
<div class="
|
|
8142
|
-
<co-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
[
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8199
|
+
<div class="two-column-grid">
|
|
8200
|
+
<co-transaction-header-discount-transaction-total [transactionInfo]="transactionInfo" [transactionTotal]="transactionTotal"></co-transaction-header-discount-transaction-total>
|
|
8201
|
+
<div class="transaction-line-button custom-width" (click)="redistributeDiscount()">
|
|
8202
|
+
<span class="co-transaction-overflow-ellipsis transaction-discount"
|
|
8203
|
+
[textContent]="'REDISTRIBUTE_DISCOUNT' | localize"></span>
|
|
8204
|
+
</div>
|
|
8205
|
+
</div>
|
|
8206
|
+
<div class="transaction-discount-overview">
|
|
8207
|
+
<div class="transaction-discount-overview-item">
|
|
8208
|
+
<div class="title" [textContent]="'ORDER_GROSS' | localize"></div>
|
|
8209
|
+
<div class="value" [textContent]="transactionTotal.grossAmount | coCurrency"></div>
|
|
8210
|
+
</div>
|
|
8211
|
+
<div class="transaction-discount-overview-item">
|
|
8212
|
+
<div class="title" [textContent]="'DISCOUNT' | localize"></div>
|
|
8213
|
+
<div class="value" [class.transaction-negative-value]="transactionTotal.discountAmount < 0" [textContent]="transactionTotal.discountAmount | coCurrency"></div>
|
|
8214
|
+
</div>
|
|
8215
|
+
<div class="transaction-discount-overview-item">
|
|
8216
|
+
<div class="title" [textContent]="'ASSEMBLY_COSTS' | localize"></div>
|
|
8217
|
+
<div class="value" [class.transaction-negative-value]="transactionTotal.assemblyCosts < 0" [textContent]="transactionTotal.assemblyCosts | coCurrency"></div>
|
|
8218
|
+
</div>
|
|
8219
|
+
<div class="transaction-discount-overview-item">
|
|
8220
|
+
<div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
|
|
8221
|
+
<div class="value" [class.transaction-negative-value]="transactionTotal.surchargeAmount < 0" [textContent]="transactionTotal.surchargeAmount | coCurrency"></div>
|
|
8222
|
+
</div>
|
|
8223
|
+
<div class="transaction-discount-overview-item">
|
|
8224
|
+
<div class="title" [textContent]="'DELIVERY_COSTS' | localize"></div>
|
|
8225
|
+
<div class="value" [textContent]="'NOT_IMPLEMENTED_YET'"></div>
|
|
8226
|
+
</div>
|
|
8227
|
+
<div class="transaction-discount-overview-item total">
|
|
8228
|
+
<div class="title" [textContent]="'ORDER_NET' | localize"></div>
|
|
8229
|
+
<div class="value" [class.transaction-negative-value]="transactionTotal.netAmount < 0" [textContent]="transactionTotal.netAmount | coCurrency"></div>
|
|
8230
|
+
</div>
|
|
8156
8231
|
</div>
|
|
8157
8232
|
</div>
|
|
8158
8233
|
</co-dialog>
|
|
8159
|
-
<ng-template #
|
|
8160
|
-
|
|
8161
|
-
<div class="button-wrapper">
|
|
8162
|
-
<co-button [label]="'OK' | localize" (click)="onOkClick($event)"></co-button>
|
|
8163
|
-
<co-button [label]="'CANCEL' | localize " (click)="onCancelClick($event)"></co-button>
|
|
8164
|
-
</div>
|
|
8234
|
+
<ng-template #dialogHeader>
|
|
8235
|
+
<div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
|
|
8165
8236
|
</ng-template>
|
|
8166
|
-
|
|
8167
8237
|
`,
|
|
8168
8238
|
encapsulation: ViewEncapsulation.None
|
|
8169
8239
|
},] }
|
|
8170
8240
|
];
|
|
8171
|
-
|
|
8241
|
+
DialogTransactionHeaderDiscountComponent.ctorParameters = () => [
|
|
8172
8242
|
{ type: TransactionService }
|
|
8173
8243
|
];
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
transactionLine: [{ type: Input }],
|
|
8177
|
-
articleRef: [{ type: Input }],
|
|
8178
|
-
editText: [{ type: Input }],
|
|
8179
|
-
articleLineNr: [{ type: Input }],
|
|
8180
|
-
closeClick: [{ type: Output }],
|
|
8181
|
-
cancelClick: [{ type: Output }],
|
|
8182
|
-
saveClick: [{ type: Output }],
|
|
8183
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-article-text",] }]
|
|
8244
|
+
DialogTransactionHeaderDiscountComponent.propDecorators = {
|
|
8245
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-header-discount",] }]
|
|
8184
8246
|
};
|
|
8185
8247
|
|
|
8186
|
-
class
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
FormsModule,
|
|
8194
|
-
CoDialogModule,
|
|
8195
|
-
InputCheckboxModule,
|
|
8196
|
-
InputListboxModule,
|
|
8197
|
-
DropDownModule,
|
|
8198
|
-
ButtonModule,
|
|
8199
|
-
PipeModule
|
|
8200
|
-
],
|
|
8201
|
-
declarations: [
|
|
8202
|
-
TransactionArticleTextComponent
|
|
8203
|
-
],
|
|
8204
|
-
exports: [
|
|
8205
|
-
TransactionArticleTextComponent
|
|
8206
|
-
]
|
|
8207
|
-
},] }
|
|
8208
|
-
];
|
|
8209
|
-
|
|
8210
|
-
// The different view modes for search
|
|
8211
|
-
var SearchViewMode;
|
|
8212
|
-
(function (SearchViewMode) {
|
|
8213
|
-
SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
|
|
8214
|
-
SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
|
|
8215
|
-
})(SearchViewMode || (SearchViewMode = {}));
|
|
8216
|
-
|
|
8217
|
-
var SearchBarViewMode;
|
|
8218
|
-
(function (SearchBarViewMode) {
|
|
8219
|
-
SearchBarViewMode[SearchBarViewMode["Expanded"] = 0] = "Expanded";
|
|
8220
|
-
SearchBarViewMode[SearchBarViewMode["Collapsed"] = 1] = "Collapsed";
|
|
8221
|
-
})(SearchBarViewMode || (SearchBarViewMode = {}));
|
|
8222
|
-
class TransactionSearchComponent {
|
|
8223
|
-
constructor(transactionSearchService) {
|
|
8224
|
-
this.transactionSearchService = transactionSearchService;
|
|
8225
|
-
this.searchViewModes = SearchViewMode;
|
|
8226
|
-
this.orientations = CoOrientation;
|
|
8227
|
-
this.directionRight = CoDirection.Right;
|
|
8228
|
-
this.transactionClick = new EventEmitter();
|
|
8229
|
-
this.searchViewModeChange = new EventEmitter();
|
|
8248
|
+
class TransactionHeaderDiscountPercentageComponent extends TransactionHeaderBaseComponent {
|
|
8249
|
+
constructor(_transactionService) {
|
|
8250
|
+
super();
|
|
8251
|
+
this._transactionService = _transactionService;
|
|
8252
|
+
this.showLabel = true;
|
|
8253
|
+
this.defaultEditMode = true;
|
|
8254
|
+
this._editMode = false;
|
|
8230
8255
|
}
|
|
8231
|
-
set
|
|
8232
|
-
|
|
8233
|
-
|
|
8256
|
+
set child(content) {
|
|
8257
|
+
if (content) {
|
|
8258
|
+
this.input = content;
|
|
8259
|
+
this.input.commit = (amount) => this.commit(amount);
|
|
8260
|
+
if (this._editMode) {
|
|
8261
|
+
this.input.requestFocus();
|
|
8262
|
+
}
|
|
8263
|
+
}
|
|
8234
8264
|
}
|
|
8235
|
-
|
|
8236
|
-
|
|
8265
|
+
set editMode(value) {
|
|
8266
|
+
this._editMode = value;
|
|
8267
|
+
if (this._editMode && this.input) {
|
|
8268
|
+
this.input.doFocus();
|
|
8269
|
+
}
|
|
8237
8270
|
}
|
|
8238
|
-
|
|
8239
|
-
return
|
|
8271
|
+
get editMode() {
|
|
8272
|
+
return this._editMode;
|
|
8240
8273
|
}
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8274
|
+
handleClick(event) {
|
|
8275
|
+
event.preventDefault();
|
|
8276
|
+
event.stopPropagation();
|
|
8277
|
+
if (!this.readonly) {
|
|
8278
|
+
this.editMode = true;
|
|
8244
8279
|
}
|
|
8245
|
-
this._scrollToTop();
|
|
8246
|
-
this.transactionClick.emit(transaction);
|
|
8247
8280
|
}
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
this.
|
|
8281
|
+
commit(amount) {
|
|
8282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8283
|
+
if (this.transactionTotal && this.transactionTotal.transactionDiscountPercentage !== amount) {
|
|
8284
|
+
const oldPercentage = this.transactionTotal.transactionDiscountPercentage;
|
|
8285
|
+
const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountPercentage, amount);
|
|
8286
|
+
if (!success) {
|
|
8287
|
+
this.input.model = amount;
|
|
8288
|
+
}
|
|
8289
|
+
return success;
|
|
8290
|
+
}
|
|
8291
|
+
return true;
|
|
8292
|
+
});
|
|
8293
|
+
}
|
|
8294
|
+
transactionSet() {
|
|
8295
|
+
this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
TransactionHeaderDiscountPercentageComponent.decorators = [
|
|
8299
|
+
{ type: Component, args: [{
|
|
8300
|
+
selector: "co-transaction-header-discount-percentage",
|
|
8301
|
+
template: `
|
|
8302
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionTotal.transactionDiscountPercentage"></span>
|
|
8303
|
+
<co-input-text #input *ngIf="editMode || defaultEditMode"
|
|
8304
|
+
[type]="'number'"
|
|
8305
|
+
[placeholder]="showLabel ? ('DISCOUNT_PERCENTAGE' | localize) : ''"
|
|
8306
|
+
[showSaveCancel]="!readonly"
|
|
8307
|
+
[readonly]="readonly"
|
|
8308
|
+
[model]="transactionTotal.transactionDiscountPercentage"
|
|
8309
|
+
(blur)="editMode = false"
|
|
8310
|
+
></co-input-text>
|
|
8311
|
+
`,
|
|
8312
|
+
encapsulation: ViewEncapsulation.None
|
|
8313
|
+
},] }
|
|
8314
|
+
];
|
|
8315
|
+
TransactionHeaderDiscountPercentageComponent.ctorParameters = () => [
|
|
8316
|
+
{ type: TransactionService }
|
|
8317
|
+
];
|
|
8318
|
+
TransactionHeaderDiscountPercentageComponent.propDecorators = {
|
|
8319
|
+
child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
|
|
8320
|
+
showLabel: [{ type: Input }],
|
|
8321
|
+
defaultEditMode: [{ type: Input }],
|
|
8322
|
+
editMode: [{ type: Input }],
|
|
8323
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
8324
|
+
};
|
|
8325
|
+
|
|
8326
|
+
class TransactionHeaderDiscountPercentageModule {
|
|
8327
|
+
}
|
|
8328
|
+
TransactionHeaderDiscountPercentageModule.decorators = [
|
|
8329
|
+
{ type: NgModule, args: [{
|
|
8330
|
+
imports: [
|
|
8331
|
+
CommonModule,
|
|
8332
|
+
InputTextModule,
|
|
8333
|
+
PipeModule
|
|
8334
|
+
],
|
|
8335
|
+
declarations: [
|
|
8336
|
+
TransactionHeaderDiscountPercentageComponent
|
|
8337
|
+
],
|
|
8338
|
+
exports: [
|
|
8339
|
+
TransactionHeaderDiscountPercentageComponent
|
|
8340
|
+
]
|
|
8341
|
+
},] }
|
|
8342
|
+
];
|
|
8343
|
+
|
|
8344
|
+
class TransactionHeaderDiscountAmountComponent extends TransactionHeaderBaseComponent {
|
|
8345
|
+
constructor(_transactionService) {
|
|
8346
|
+
super();
|
|
8347
|
+
this._transactionService = _transactionService;
|
|
8348
|
+
this.showLabel = true;
|
|
8349
|
+
this.defaultEditMode = true;
|
|
8350
|
+
this._editMode = false;
|
|
8351
|
+
}
|
|
8352
|
+
set child(content) {
|
|
8353
|
+
if (content) {
|
|
8354
|
+
this.input = content;
|
|
8355
|
+
this.input.commit = (amount) => this.commit(amount);
|
|
8356
|
+
if (this._editMode) {
|
|
8357
|
+
this.input.requestFocus();
|
|
8358
|
+
}
|
|
8251
8359
|
}
|
|
8252
|
-
|
|
8253
|
-
|
|
8360
|
+
}
|
|
8361
|
+
set editMode(value) {
|
|
8362
|
+
this._editMode = value;
|
|
8363
|
+
if (this._editMode && this.input) {
|
|
8364
|
+
this.input.doFocus();
|
|
8254
8365
|
}
|
|
8255
|
-
this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
|
|
8256
8366
|
}
|
|
8257
|
-
|
|
8258
|
-
this.
|
|
8367
|
+
get editMode() {
|
|
8368
|
+
return this._editMode;
|
|
8259
8369
|
}
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8370
|
+
handleClick(event) {
|
|
8371
|
+
event.preventDefault();
|
|
8372
|
+
event.stopPropagation();
|
|
8373
|
+
if (!this.readonly) {
|
|
8374
|
+
this.editMode = true;
|
|
8263
8375
|
}
|
|
8264
|
-
|
|
8265
|
-
|
|
8376
|
+
}
|
|
8377
|
+
commit(amount) {
|
|
8378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8379
|
+
if (this.transactionTotal && this.transactionTotal.transactionDiscountAmount !== amount) {
|
|
8380
|
+
const oldAmount = this.transactionTotal.transactionDiscountAmount;
|
|
8381
|
+
const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.TransactionDiscountAmount, amount);
|
|
8382
|
+
if (!success) {
|
|
8383
|
+
this.input.model = amount;
|
|
8384
|
+
}
|
|
8385
|
+
return success;
|
|
8386
|
+
}
|
|
8387
|
+
return true;
|
|
8388
|
+
});
|
|
8389
|
+
}
|
|
8390
|
+
transactionSet() {
|
|
8391
|
+
this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
|
|
8392
|
+
}
|
|
8393
|
+
}
|
|
8394
|
+
TransactionHeaderDiscountAmountComponent.decorators = [
|
|
8395
|
+
{ type: Component, args: [{
|
|
8396
|
+
selector: "co-transaction-header-discount-amount",
|
|
8397
|
+
template: `
|
|
8398
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionTotal.transactionDiscountAmount"></span>
|
|
8399
|
+
<co-input-text #input *ngIf="editMode || defaultEditMode"
|
|
8400
|
+
[type]="'number'"
|
|
8401
|
+
[placeholder]="showLabel ? ('DISCOUNT_AMOUNT' | localize) : ''"
|
|
8402
|
+
[showSaveCancel]="!readonly"
|
|
8403
|
+
[readonly]="readonly"
|
|
8404
|
+
[model]="transactionTotal.transactionDiscountAmount"
|
|
8405
|
+
(blur)="editMode = false"
|
|
8406
|
+
></co-input-text>
|
|
8407
|
+
`,
|
|
8408
|
+
encapsulation: ViewEncapsulation.None
|
|
8409
|
+
},] }
|
|
8410
|
+
];
|
|
8411
|
+
TransactionHeaderDiscountAmountComponent.ctorParameters = () => [
|
|
8412
|
+
{ type: TransactionService }
|
|
8413
|
+
];
|
|
8414
|
+
TransactionHeaderDiscountAmountComponent.propDecorators = {
|
|
8415
|
+
child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
|
|
8416
|
+
showLabel: [{ type: Input }],
|
|
8417
|
+
defaultEditMode: [{ type: Input }],
|
|
8418
|
+
editMode: [{ type: Input }],
|
|
8419
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
8420
|
+
};
|
|
8421
|
+
|
|
8422
|
+
class TransactionHeaderDiscountAmountModule {
|
|
8423
|
+
}
|
|
8424
|
+
TransactionHeaderDiscountAmountModule.decorators = [
|
|
8425
|
+
{ type: NgModule, args: [{
|
|
8426
|
+
imports: [
|
|
8427
|
+
CommonModule,
|
|
8428
|
+
InputTextModule,
|
|
8429
|
+
PipeModule
|
|
8430
|
+
],
|
|
8431
|
+
declarations: [
|
|
8432
|
+
TransactionHeaderDiscountAmountComponent
|
|
8433
|
+
],
|
|
8434
|
+
exports: [
|
|
8435
|
+
TransactionHeaderDiscountAmountComponent
|
|
8436
|
+
]
|
|
8437
|
+
},] }
|
|
8438
|
+
];
|
|
8439
|
+
|
|
8440
|
+
class TransactionHeaderDiscountTransactionTotalComponent extends TransactionHeaderBaseComponent {
|
|
8441
|
+
constructor(_transactionService) {
|
|
8442
|
+
super();
|
|
8443
|
+
this._transactionService = _transactionService;
|
|
8444
|
+
this.showLabel = true;
|
|
8445
|
+
this.defaultEditMode = true;
|
|
8446
|
+
this._editMode = false;
|
|
8447
|
+
}
|
|
8448
|
+
set child(content) {
|
|
8449
|
+
if (content) {
|
|
8450
|
+
this.input = content;
|
|
8451
|
+
this.input.commit = (amount) => this.commit(amount);
|
|
8452
|
+
if (this._editMode) {
|
|
8453
|
+
this.input.requestFocus();
|
|
8454
|
+
}
|
|
8266
8455
|
}
|
|
8267
8456
|
}
|
|
8268
|
-
|
|
8269
|
-
this.
|
|
8270
|
-
this.
|
|
8271
|
-
|
|
8457
|
+
set editMode(value) {
|
|
8458
|
+
this._editMode = value;
|
|
8459
|
+
if (this._editMode && this.input) {
|
|
8460
|
+
this.input.doFocus();
|
|
8461
|
+
}
|
|
8272
8462
|
}
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
this.transactionSearchService.activeSearchBarViewMode = SearchBarViewMode.Expanded;
|
|
8276
|
-
this.searchViewModeChange.emit(this.searchViewModes.SideBar);
|
|
8463
|
+
get editMode() {
|
|
8464
|
+
return this._editMode;
|
|
8277
8465
|
}
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
};
|
|
8466
|
+
handleClick(event) {
|
|
8467
|
+
event.preventDefault();
|
|
8468
|
+
event.stopPropagation();
|
|
8469
|
+
if (!this.readonly) {
|
|
8470
|
+
this.editMode = true;
|
|
8471
|
+
}
|
|
8285
8472
|
}
|
|
8286
|
-
|
|
8287
|
-
|
|
8473
|
+
commit(amount) {
|
|
8474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8475
|
+
if (this.transactionTotalAmount !== amount) {
|
|
8476
|
+
const success = yield this._transactionService.updateHeaderTransactionDiscount(this.transactionInfo.uuid, DiscountType.OrderTotal, amount);
|
|
8477
|
+
if (!success) {
|
|
8478
|
+
this.input.model = amount;
|
|
8479
|
+
}
|
|
8480
|
+
else {
|
|
8481
|
+
this.transactionTotalAmount = undefined;
|
|
8482
|
+
}
|
|
8483
|
+
return success;
|
|
8484
|
+
}
|
|
8485
|
+
return true;
|
|
8486
|
+
});
|
|
8487
|
+
}
|
|
8488
|
+
transactionSet() {
|
|
8489
|
+
this.readonly = this.readonly || !this.transactionInfo.deliveryDateDefinitive;
|
|
8288
8490
|
}
|
|
8289
8491
|
}
|
|
8290
|
-
|
|
8492
|
+
TransactionHeaderDiscountTransactionTotalComponent.decorators = [
|
|
8291
8493
|
{ type: Component, args: [{
|
|
8292
|
-
selector:
|
|
8494
|
+
selector: "co-transaction-header-discount-transaction-total",
|
|
8293
8495
|
template: `
|
|
8294
|
-
<
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8496
|
+
<co-input-text #input *ngIf="editMode || defaultEditMode"
|
|
8497
|
+
[type]="'number'"
|
|
8498
|
+
[placeholder]="showLabel ? ('TRANSACTION_TOTAL' | localize) : ''"
|
|
8499
|
+
[showSaveCancel]="!readonly"
|
|
8500
|
+
[readonly]="readonly"
|
|
8501
|
+
[(model)]="transactionTotalAmount"
|
|
8502
|
+
(blur)="editMode = false"
|
|
8503
|
+
></co-input-text>
|
|
8504
|
+
`,
|
|
8505
|
+
encapsulation: ViewEncapsulation.None
|
|
8506
|
+
},] }
|
|
8507
|
+
];
|
|
8508
|
+
TransactionHeaderDiscountTransactionTotalComponent.ctorParameters = () => [
|
|
8509
|
+
{ type: TransactionService }
|
|
8510
|
+
];
|
|
8511
|
+
TransactionHeaderDiscountTransactionTotalComponent.propDecorators = {
|
|
8512
|
+
child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
|
|
8513
|
+
showLabel: [{ type: Input }],
|
|
8514
|
+
defaultEditMode: [{ type: Input }],
|
|
8515
|
+
editMode: [{ type: Input }],
|
|
8516
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
8517
|
+
};
|
|
8518
|
+
|
|
8519
|
+
class TransactionHeaderDiscountTransactionTotalModule {
|
|
8520
|
+
}
|
|
8521
|
+
TransactionHeaderDiscountTransactionTotalModule.decorators = [
|
|
8522
|
+
{ type: NgModule, args: [{
|
|
8523
|
+
imports: [
|
|
8524
|
+
CommonModule,
|
|
8525
|
+
InputTextModule,
|
|
8526
|
+
PipeModule
|
|
8527
|
+
],
|
|
8528
|
+
declarations: [
|
|
8529
|
+
TransactionHeaderDiscountTransactionTotalComponent
|
|
8530
|
+
],
|
|
8531
|
+
exports: [
|
|
8532
|
+
TransactionHeaderDiscountTransactionTotalComponent
|
|
8533
|
+
]
|
|
8534
|
+
},] }
|
|
8535
|
+
];
|
|
8536
|
+
|
|
8537
|
+
class DialogTransactionHeaderDiscountModule {
|
|
8538
|
+
}
|
|
8539
|
+
DialogTransactionHeaderDiscountModule.decorators = [
|
|
8540
|
+
{ type: NgModule, args: [{
|
|
8541
|
+
imports: [
|
|
8542
|
+
CommonModule,
|
|
8543
|
+
CoDialogModule,
|
|
8544
|
+
TransactionHeaderDiscountPercentageModule,
|
|
8545
|
+
TransactionHeaderDiscountAmountModule,
|
|
8546
|
+
TransactionHeaderDiscountTransactionTotalModule,
|
|
8547
|
+
PipeModule
|
|
8548
|
+
],
|
|
8549
|
+
declarations: [
|
|
8550
|
+
DialogTransactionHeaderDiscountComponent
|
|
8551
|
+
],
|
|
8552
|
+
exports: [
|
|
8553
|
+
DialogTransactionHeaderDiscountComponent
|
|
8554
|
+
]
|
|
8555
|
+
},] }
|
|
8556
|
+
];
|
|
8557
|
+
|
|
8558
|
+
class TransactionTotalsModule {
|
|
8559
|
+
}
|
|
8560
|
+
TransactionTotalsModule.decorators = [
|
|
8561
|
+
{ type: NgModule, args: [{
|
|
8562
|
+
imports: [
|
|
8563
|
+
CommonModule,
|
|
8564
|
+
CoreModule,
|
|
8565
|
+
PipeModule,
|
|
8566
|
+
DialogTransactionHeaderDiscountModule
|
|
8567
|
+
],
|
|
8568
|
+
declarations: [
|
|
8569
|
+
TransactionTotalsComponent
|
|
8570
|
+
],
|
|
8571
|
+
exports: [
|
|
8572
|
+
TransactionTotalsComponent
|
|
8573
|
+
]
|
|
8574
|
+
},] }
|
|
8575
|
+
];
|
|
8576
|
+
|
|
8577
|
+
class TransactionArticleTextComponent {
|
|
8578
|
+
constructor(service) {
|
|
8579
|
+
this.service = service;
|
|
8580
|
+
this.closeClick = new EventEmitter();
|
|
8581
|
+
this.cancelClick = new EventEmitter();
|
|
8582
|
+
this.saveClick = new EventEmitter();
|
|
8583
|
+
this.showOverviewDialog = false;
|
|
8584
|
+
this.standardTexts = [];
|
|
8585
|
+
this.documents = [];
|
|
8586
|
+
this.fields = { text: "description", value: "textId" };
|
|
8587
|
+
this.fieldsDocuments = { text: "description", value: "code" };
|
|
8588
|
+
this.transactionAddTextLineRequest = new TransactionAddTextLineRequest();
|
|
8589
|
+
}
|
|
8590
|
+
set transactionLine(value) {
|
|
8591
|
+
if (value) {
|
|
8592
|
+
this.transactionAddTextLineRequest.transactionUuid = value.uuid;
|
|
8593
|
+
this.transactionAddTextLineRequest.text = value.text;
|
|
8594
|
+
}
|
|
8595
|
+
}
|
|
8596
|
+
set articleRef(value) {
|
|
8597
|
+
if (value) {
|
|
8598
|
+
this._articleRef = value;
|
|
8599
|
+
}
|
|
8600
|
+
}
|
|
8601
|
+
get articleRef() {
|
|
8602
|
+
return this._articleRef;
|
|
8603
|
+
}
|
|
8604
|
+
set editText(value) {
|
|
8605
|
+
this.transactionAddTextLineRequest.text = value;
|
|
8606
|
+
}
|
|
8607
|
+
set articleLineNr(value) {
|
|
8608
|
+
if (value) {
|
|
8609
|
+
this.transactionAddTextLineRequest.refArticleLineNr = value;
|
|
8610
|
+
}
|
|
8611
|
+
}
|
|
8612
|
+
showClass() {
|
|
8613
|
+
return true;
|
|
8614
|
+
}
|
|
8615
|
+
ngOnInit() {
|
|
8616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8617
|
+
this.standardTexts = yield this.service.getStandardTexts("NL");
|
|
8618
|
+
this.documents = yield this.service.getTextTypes("NL");
|
|
8619
|
+
});
|
|
8620
|
+
}
|
|
8621
|
+
onOkClick(event) {
|
|
8622
|
+
this.saveClick.next(this.transactionAddTextLineRequest);
|
|
8623
|
+
}
|
|
8624
|
+
onCancelClick(event) {
|
|
8625
|
+
this.cancelClick.next(event);
|
|
8626
|
+
}
|
|
8627
|
+
onSelectStandardText(value) {
|
|
8628
|
+
this.transactionAddTextLineRequest.text = (this.standardTexts.find(x => x.textId === value)).text;
|
|
8629
|
+
}
|
|
8630
|
+
handleDocumentsChange(docs) {
|
|
8631
|
+
}
|
|
8632
|
+
}
|
|
8633
|
+
TransactionArticleTextComponent.decorators = [
|
|
8634
|
+
{ type: Component, args: [{
|
|
8635
|
+
selector: "co-transaction-article-text",
|
|
8636
|
+
template: `
|
|
8637
|
+
<co-dialog (closeClick)="closeClick.emit($event)" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate">
|
|
8638
|
+
<div class="article-text-content-wrapper">
|
|
8639
|
+
<div class="editor-wrapper">
|
|
8640
|
+
<textarea class="article-text"
|
|
8641
|
+
[(ngModel)]="transactionAddTextLineRequest.text"
|
|
8642
|
+
></textarea>
|
|
8305
8643
|
</div>
|
|
8306
|
-
<div class="
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8644
|
+
<div class="option-wrapper">
|
|
8645
|
+
<co-input-listbox
|
|
8646
|
+
[collection]="documents"
|
|
8647
|
+
[fields]="fieldsDocuments"
|
|
8648
|
+
[placeholder]="'FOR_DOCUMENTS' | localize"
|
|
8649
|
+
[value]="transactionAddTextLineRequest.showOnDocuments"
|
|
8650
|
+
[showCheckbox]="true"
|
|
8651
|
+
(modelChange)="handleDocumentsChange($event)"
|
|
8652
|
+
></co-input-listbox>
|
|
8653
|
+
<co-drop-down-list
|
|
8654
|
+
[collection]="standardTexts"
|
|
8655
|
+
[fields]="fields"
|
|
8656
|
+
[placeholder]="'STANDARD_TEXTS' | localize"
|
|
8657
|
+
(modelChange)="onSelectStandardText($event)"
|
|
8658
|
+
></co-drop-down-list>
|
|
8320
8659
|
</div>
|
|
8321
8660
|
</div>
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
<ng-content></ng-content>
|
|
8661
|
+
</co-dialog>
|
|
8662
|
+
<ng-template #headerTemplate><span [textContent]="header"></span></ng-template>
|
|
8663
|
+
<ng-template #footerTemplate>
|
|
8664
|
+
<div class="button-wrapper">
|
|
8665
|
+
<co-button [label]="'OK' | localize" (click)="onOkClick($event)"></co-button>
|
|
8666
|
+
<co-button [label]="'CANCEL' | localize " (click)="onCancelClick($event)"></co-button>
|
|
8329
8667
|
</div>
|
|
8330
|
-
</
|
|
8668
|
+
</ng-template>
|
|
8669
|
+
|
|
8331
8670
|
`,
|
|
8332
|
-
animations: [
|
|
8333
|
-
trigger("showHideFilterSidebar", [
|
|
8334
|
-
state("void", style({ transform: 'translateX(-100%)' })),
|
|
8335
|
-
state("*", style({ transform: 'translateX(0)' })),
|
|
8336
|
-
transition("void <=> *", animate("200ms ease-in-out"))
|
|
8337
|
-
])
|
|
8338
|
-
],
|
|
8339
8671
|
encapsulation: ViewEncapsulation.None
|
|
8340
8672
|
},] }
|
|
8341
8673
|
];
|
|
8342
|
-
|
|
8343
|
-
{ type:
|
|
8674
|
+
TransactionArticleTextComponent.ctorParameters = () => [
|
|
8675
|
+
{ type: TransactionService }
|
|
8344
8676
|
];
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8677
|
+
TransactionArticleTextComponent.propDecorators = {
|
|
8678
|
+
header: [{ type: Input }],
|
|
8679
|
+
transactionLine: [{ type: Input }],
|
|
8680
|
+
articleRef: [{ type: Input }],
|
|
8681
|
+
editText: [{ type: Input }],
|
|
8682
|
+
articleLineNr: [{ type: Input }],
|
|
8683
|
+
closeClick: [{ type: Output }],
|
|
8684
|
+
cancelClick: [{ type: Output }],
|
|
8685
|
+
saveClick: [{ type: Output }],
|
|
8686
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-article-text",] }]
|
|
8350
8687
|
};
|
|
8351
8688
|
|
|
8689
|
+
class TransactionArticleTextModule {
|
|
8690
|
+
}
|
|
8691
|
+
TransactionArticleTextModule.decorators = [
|
|
8692
|
+
{ type: NgModule, args: [{
|
|
8693
|
+
imports: [
|
|
8694
|
+
CommonModule,
|
|
8695
|
+
CoreModule,
|
|
8696
|
+
FormsModule,
|
|
8697
|
+
CoDialogModule,
|
|
8698
|
+
InputCheckboxModule,
|
|
8699
|
+
InputListboxModule,
|
|
8700
|
+
DropDownModule,
|
|
8701
|
+
ButtonModule,
|
|
8702
|
+
PipeModule
|
|
8703
|
+
],
|
|
8704
|
+
declarations: [
|
|
8705
|
+
TransactionArticleTextComponent
|
|
8706
|
+
],
|
|
8707
|
+
exports: [
|
|
8708
|
+
TransactionArticleTextComponent
|
|
8709
|
+
]
|
|
8710
|
+
},] }
|
|
8711
|
+
];
|
|
8712
|
+
|
|
8713
|
+
// The different view modes for search
|
|
8714
|
+
var SearchViewMode;
|
|
8715
|
+
(function (SearchViewMode) {
|
|
8716
|
+
SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
|
|
8717
|
+
SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
|
|
8718
|
+
})(SearchViewMode || (SearchViewMode = {}));
|
|
8719
|
+
|
|
8720
|
+
// The different view modes for search
|
|
8721
|
+
var SearchbarViewMode;
|
|
8722
|
+
(function (SearchbarViewMode) {
|
|
8723
|
+
SearchbarViewMode[SearchbarViewMode["Expanded"] = 0] = "Expanded";
|
|
8724
|
+
SearchbarViewMode[SearchbarViewMode["Collapsed"] = 1] = "Collapsed";
|
|
8725
|
+
})(SearchbarViewMode || (SearchbarViewMode = {}));
|
|
8726
|
+
|
|
8352
8727
|
class TransactionSearchService {
|
|
8353
8728
|
constructor(_transactionService) {
|
|
8354
8729
|
this._transactionService = _transactionService;
|
|
8355
8730
|
this.searchRequest = new TransactionSearchViewRequest();
|
|
8356
8731
|
this.previousSearchRequest = new TransactionSearchViewRequest();
|
|
8357
8732
|
this.activeSearchViewMode = SearchViewMode.FullScreen;
|
|
8358
|
-
this.activeSearchBarViewMode =
|
|
8733
|
+
this.activeSearchBarViewMode = SearchbarViewMode.Expanded;
|
|
8359
8734
|
this.showFilterSidebar = false;
|
|
8360
8735
|
this.transactions = [];
|
|
8361
8736
|
this.labelBasedOnTransactionType = new Map([
|
|
@@ -8364,7 +8739,6 @@ class TransactionSearchService {
|
|
|
8364
8739
|
[TransactionKind.ServiceOrder, "SERVICEORDERS"]
|
|
8365
8740
|
]);
|
|
8366
8741
|
this.transactionsPerPage = 20;
|
|
8367
|
-
this.resultCount = 0;
|
|
8368
8742
|
this._currentPage = 1;
|
|
8369
8743
|
this._transactionType = TransactionKind.SalesOrder;
|
|
8370
8744
|
}
|
|
@@ -8393,8 +8767,9 @@ class TransactionSearchService {
|
|
|
8393
8767
|
const lowerBound = ((this.currentPage - 1) * this.transactionsPerPage) + 1;
|
|
8394
8768
|
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.transactionsPerPage - 1, this.transactionsPerPage);
|
|
8395
8769
|
this._transactionService.searchTransactions(this.searchRequest).then((result) => {
|
|
8396
|
-
|
|
8397
|
-
this.
|
|
8770
|
+
var _a, _b;
|
|
8771
|
+
this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
|
|
8772
|
+
this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
|
|
8398
8773
|
});
|
|
8399
8774
|
this.setPreviousSearchRequest();
|
|
8400
8775
|
}
|
|
@@ -8420,7 +8795,7 @@ class TransactionSearchService {
|
|
|
8420
8795
|
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
8421
8796
|
}
|
|
8422
8797
|
get collapsed() {
|
|
8423
|
-
return this.activeSearchBarViewMode ===
|
|
8798
|
+
return this.activeSearchBarViewMode === SearchbarViewMode.Collapsed;
|
|
8424
8799
|
}
|
|
8425
8800
|
toggleFilter() {
|
|
8426
8801
|
this.showFilterSidebar = !this.showFilterSidebar;
|
|
@@ -9620,57 +9995,23 @@ TransactionLineActionButtonsComponent.decorators = [
|
|
|
9620
9995
|
encapsulation: ViewEncapsulation.None
|
|
9621
9996
|
},] }
|
|
9622
9997
|
];
|
|
9623
|
-
TransactionLineActionButtonsComponent.ctorParameters = () => [
|
|
9624
|
-
{ type: IconCacheService },
|
|
9625
|
-
{ type: TransactionService },
|
|
9626
|
-
{ type: DictionaryService }
|
|
9627
|
-
];
|
|
9628
|
-
TransactionLineActionButtonsComponent.propDecorators = {
|
|
9629
|
-
transactionLine: [{ type: Input }],
|
|
9630
|
-
alignDirection: [{ type: Input }],
|
|
9631
|
-
waitingForUserAction: [{ type: Output }],
|
|
9632
|
-
sidePanelButtonClicked: [{ type: Output }],
|
|
9633
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
9634
|
-
};
|
|
9635
|
-
|
|
9636
|
-
class DialogTransactionLineDeliveryMethodComponent extends DialogTransactionLineBaseComponent {
|
|
9637
|
-
showClass() {
|
|
9638
|
-
return true;
|
|
9639
|
-
}
|
|
9640
|
-
}
|
|
9641
|
-
DialogTransactionLineDeliveryMethodComponent.decorators = [
|
|
9642
|
-
{ type: Component, args: [{
|
|
9643
|
-
selector: "co-dialog-transaction-line-delivery-method",
|
|
9644
|
-
template: `
|
|
9645
|
-
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
9646
|
-
<co-transaction-line-delivery-method
|
|
9647
|
-
[autoClose]="autoClose"
|
|
9648
|
-
[useModel]="useModel"
|
|
9649
|
-
[transactionInfo]="transactionInfo"
|
|
9650
|
-
[transactionLine]="transactionLine"
|
|
9651
|
-
[searchText]="searchText"
|
|
9652
|
-
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
9653
|
-
(valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
|
|
9654
|
-
</co-dialog>
|
|
9655
|
-
<ng-template #dialogHeader>
|
|
9656
|
-
<co-dialog-header-search [title]="'DELIVERY_METHOD'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
9657
|
-
</ng-template>
|
|
9658
|
-
<ng-template #footerTemplate>
|
|
9659
|
-
<div class="dialog-footer-button-wrapper" *ngIf="!useModel">
|
|
9660
|
-
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
9661
|
-
</div>
|
|
9662
|
-
</ng-template>
|
|
9663
|
-
`,
|
|
9664
|
-
encapsulation: ViewEncapsulation.None
|
|
9665
|
-
},] }
|
|
9666
|
-
];
|
|
9667
|
-
DialogTransactionLineDeliveryMethodComponent.propDecorators = {
|
|
9668
|
-
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
|
|
9998
|
+
TransactionLineActionButtonsComponent.ctorParameters = () => [
|
|
9999
|
+
{ type: IconCacheService },
|
|
10000
|
+
{ type: TransactionService },
|
|
10001
|
+
{ type: DictionaryService }
|
|
10002
|
+
];
|
|
10003
|
+
TransactionLineActionButtonsComponent.propDecorators = {
|
|
10004
|
+
transactionLine: [{ type: Input }],
|
|
10005
|
+
alignDirection: [{ type: Input }],
|
|
10006
|
+
waitingForUserAction: [{ type: Output }],
|
|
10007
|
+
sidePanelButtonClicked: [{ type: Output }],
|
|
10008
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
9669
10009
|
};
|
|
9670
10010
|
|
|
9671
10011
|
class TransactionLinesLineBaseComponent {
|
|
9672
10012
|
constructor() {
|
|
9673
10013
|
this.icons = Icon;
|
|
10014
|
+
this.lineChange = new EventEmitter();
|
|
9674
10015
|
this.waitingForUserAction = new EventEmitter();
|
|
9675
10016
|
this.preview = false;
|
|
9676
10017
|
this.readonly = false;
|
|
@@ -9698,6 +10039,7 @@ TransactionLinesLineBaseComponent.decorators = [
|
|
|
9698
10039
|
TransactionLinesLineBaseComponent.propDecorators = {
|
|
9699
10040
|
line: [{ type: Input }],
|
|
9700
10041
|
transactionId: [{ type: Input }],
|
|
10042
|
+
lineChange: [{ type: Output }],
|
|
9701
10043
|
waitingForUserAction: [{ type: Output }],
|
|
9702
10044
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-base-line",] }],
|
|
9703
10045
|
preview: [{ type: HostBinding, args: ["class.preview",] }, { type: Input }],
|
|
@@ -9706,135 +10048,6 @@ TransactionLinesLineBaseComponent.propDecorators = {
|
|
|
9706
10048
|
isArticle: [{ type: HostBinding, args: ["class.is-article",] }]
|
|
9707
10049
|
};
|
|
9708
10050
|
|
|
9709
|
-
class DialogTransactionLineVatComponent extends DialogTransactionLineBaseComponent {
|
|
9710
|
-
showClass() {
|
|
9711
|
-
return true;
|
|
9712
|
-
}
|
|
9713
|
-
}
|
|
9714
|
-
DialogTransactionLineVatComponent.decorators = [
|
|
9715
|
-
{ type: Component, args: [{
|
|
9716
|
-
selector: "co-dialog-transaction-line-vat",
|
|
9717
|
-
template: `
|
|
9718
|
-
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
9719
|
-
<co-transaction-line-vat
|
|
9720
|
-
[autoClose]="autoClose"
|
|
9721
|
-
[useModel]="useModel"
|
|
9722
|
-
[transactionLine]="transactionLine"
|
|
9723
|
-
[searchText]="searchText"
|
|
9724
|
-
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
9725
|
-
(valueChange)="handleValueChange($event)"
|
|
9726
|
-
></co-transaction-line-vat>
|
|
9727
|
-
</co-dialog>
|
|
9728
|
-
<ng-template #dialogHeader>
|
|
9729
|
-
<co-dialog-header-search [title]="'VAT'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
9730
|
-
</ng-template>
|
|
9731
|
-
<ng-template #footerTemplate>
|
|
9732
|
-
<div class="dialog-footer-button-wrapper" *ngIf="!useModel">
|
|
9733
|
-
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
9734
|
-
</div>
|
|
9735
|
-
</ng-template>
|
|
9736
|
-
`,
|
|
9737
|
-
encapsulation: ViewEncapsulation.None
|
|
9738
|
-
},] }
|
|
9739
|
-
];
|
|
9740
|
-
DialogTransactionLineVatComponent.propDecorators = {
|
|
9741
|
-
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
|
|
9742
|
-
};
|
|
9743
|
-
|
|
9744
|
-
class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseComponent {
|
|
9745
|
-
constructor(_dialogService, _service) {
|
|
9746
|
-
super();
|
|
9747
|
-
this._dialogService = _dialogService;
|
|
9748
|
-
this._service = _service;
|
|
9749
|
-
this.showPriceListDialog = false;
|
|
9750
|
-
}
|
|
9751
|
-
showClass() {
|
|
9752
|
-
return true;
|
|
9753
|
-
}
|
|
9754
|
-
openThePriceListDialog() {
|
|
9755
|
-
this.showPriceListDialog = true;
|
|
9756
|
-
}
|
|
9757
|
-
transactionLineSet() {
|
|
9758
|
-
this._loadLinePricelist();
|
|
9759
|
-
}
|
|
9760
|
-
transactionInfoSet() {
|
|
9761
|
-
this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
|
|
9762
|
-
}
|
|
9763
|
-
_loadLinePricelist() {
|
|
9764
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9765
|
-
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
9766
|
-
this._service.getPriceLists().then((lists) => {
|
|
9767
|
-
const priceList = lists.find(l => l.code === this.transactionLine.priceListCode);
|
|
9768
|
-
this.transactionLine.priceListDescription = priceList ? priceList.description : "";
|
|
9769
|
-
});
|
|
9770
|
-
}
|
|
9771
|
-
});
|
|
9772
|
-
}
|
|
9773
|
-
}
|
|
9774
|
-
DialogTransactionLineDiscountComponent.decorators = [
|
|
9775
|
-
{ type: Component, args: [{
|
|
9776
|
-
selector: "co-dialog-transaction-line-discount",
|
|
9777
|
-
template: `
|
|
9778
|
-
<co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
|
|
9779
|
-
<div class="transaction-line-discount-wrapper co-transaction-small-toolbar">
|
|
9780
|
-
<div class="two-column-grid">
|
|
9781
|
-
<co-transaction-line-line-discount [transactionLine]="transactionLine"></co-transaction-line-line-discount>
|
|
9782
|
-
<co-transaction-line-discount-amount [transactionLine]="transactionLine"></co-transaction-line-discount-amount>
|
|
9783
|
-
</div>
|
|
9784
|
-
<div class="two-column-grid">
|
|
9785
|
-
<co-transaction-line-special-discount [transactionLine]="transactionLine"></co-transaction-line-special-discount>
|
|
9786
|
-
<co-transaction-line-quantum-discount [transactionLine]="transactionLine"></co-transaction-line-quantum-discount>
|
|
9787
|
-
</div>
|
|
9788
|
-
<div class="two-column-grid">
|
|
9789
|
-
<co-input-text [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="readonly"></co-input-text>
|
|
9790
|
-
<co-input-text [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="readonly"></co-input-text>
|
|
9791
|
-
</div>
|
|
9792
|
-
<div class="transaction-line-discount-overview">
|
|
9793
|
-
<div class="transaction-line-discount-overview-item">
|
|
9794
|
-
<div class="title" [textContent]="'TRANSACTION_DISCOUNT' | localize"></div>
|
|
9795
|
-
<div class="value" [class.negative]="transactionLine.discountAmount < 0" [textContent]="transactionLine.discountAmount | coCurrency"></div>
|
|
9796
|
-
</div>
|
|
9797
|
-
<div class="transaction-line-discount-overview-item">
|
|
9798
|
-
<div class="title" [textContent]="'BUSINESS_RULE_DISCOUNT' | localize"></div>
|
|
9799
|
-
<div class="value" [textContent]="'NIET_GEIMPLEMENTEERD'"></div>
|
|
9800
|
-
</div>
|
|
9801
|
-
<div class="transaction-line-discount-overview-item">
|
|
9802
|
-
<div class="title" [textContent]="'QUANTUM_DISCOUNT' | localize"></div>
|
|
9803
|
-
<div class="value" [class.negative]="transactionLine.quantumDiscount < 0" [textContent]="transactionLine.quantumDiscount | coCurrency"></div>
|
|
9804
|
-
</div>
|
|
9805
|
-
<div class="transaction-line-discount-overview-item">
|
|
9806
|
-
<div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
|
|
9807
|
-
<div class="value" [class.negative]="transactionLine.surchargeAmount < 0" [textContent]="transactionLine.surchargeAmount | coCurrency"></div>
|
|
9808
|
-
</div>
|
|
9809
|
-
<div class="transaction-line-discount-overview-item total">
|
|
9810
|
-
<div class="title" [textContent]="'TOTAL_LINE_DISCOUNT' | localize"></div>
|
|
9811
|
-
<div class="value" [class.negative]="transactionLine.lineTotalDiscountAmount < 0" [textContent]="transactionLine.lineTotalDiscountAmount | coCurrency"></div>
|
|
9812
|
-
</div>
|
|
9813
|
-
</div>
|
|
9814
|
-
</div>
|
|
9815
|
-
</co-dialog>
|
|
9816
|
-
<ng-template #dialogHeader>
|
|
9817
|
-
<div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
|
|
9818
|
-
<div class="transaction-line-button big" (click)="openThePriceListDialog()">
|
|
9819
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.priceListDescription"></span>
|
|
9820
|
-
</div>
|
|
9821
|
-
</ng-template>
|
|
9822
|
-
<co-dialog-transaction-line-price-list *ngIf="showPriceListDialog"
|
|
9823
|
-
[transactionLine]="transactionLine"
|
|
9824
|
-
(close)="showPriceListDialog = false"
|
|
9825
|
-
></co-dialog-transaction-line-price-list>
|
|
9826
|
-
`,
|
|
9827
|
-
encapsulation: ViewEncapsulation.None
|
|
9828
|
-
},] }
|
|
9829
|
-
];
|
|
9830
|
-
DialogTransactionLineDiscountComponent.ctorParameters = () => [
|
|
9831
|
-
{ type: DialogService },
|
|
9832
|
-
{ type: TransactionService }
|
|
9833
|
-
];
|
|
9834
|
-
DialogTransactionLineDiscountComponent.propDecorators = {
|
|
9835
|
-
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
|
|
9836
|
-
};
|
|
9837
|
-
|
|
9838
10051
|
class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent {
|
|
9839
10052
|
constructor(service, iconCacheService, _dialogService, _dictionaryService) {
|
|
9840
10053
|
super();
|
|
@@ -9845,6 +10058,8 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
|
|
|
9845
10058
|
this.stock = StockStatus.Low;
|
|
9846
10059
|
this.mouseOver = false;
|
|
9847
10060
|
this.readonly = false;
|
|
10061
|
+
this.showDialogVat = false;
|
|
10062
|
+
this.showDialogDiscount = false;
|
|
9848
10063
|
this.subscriptions = [];
|
|
9849
10064
|
}
|
|
9850
10065
|
showClass() {
|
|
@@ -9856,16 +10071,17 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
|
|
|
9856
10071
|
handleMouseLeave(event) {
|
|
9857
10072
|
this.mouseOver = false;
|
|
9858
10073
|
}
|
|
10074
|
+
ngOnChanges(changes) {
|
|
10075
|
+
console.log(changes);
|
|
10076
|
+
}
|
|
9859
10077
|
ngOnInit() {
|
|
9860
10078
|
this.subscriptions.push(this.lineSet.subscribe((set) => {
|
|
9861
10079
|
if (set) {
|
|
9862
10080
|
this.localAmount = this._line.amount;
|
|
9863
|
-
this._loadLineCommissionCode();
|
|
9864
|
-
this._loadLineWarehouse();
|
|
9865
|
-
this._loadLineDeliveryMethod();
|
|
9866
10081
|
this._loadLineVat();
|
|
9867
10082
|
}
|
|
9868
10083
|
}));
|
|
10084
|
+
this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
|
|
9869
10085
|
}
|
|
9870
10086
|
ngOnDestroy() {
|
|
9871
10087
|
this.subscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
@@ -9883,51 +10099,6 @@ class TransactionOverviewLineComponent extends TransactionLinesLineBaseComponent
|
|
|
9883
10099
|
this.transactionLineActionButtons.textToEdit = text;
|
|
9884
10100
|
this.transactionLineActionButtons.showArticleTextDialog();
|
|
9885
10101
|
}
|
|
9886
|
-
openCommissionCodeDialog() {
|
|
9887
|
-
this._dialogService.showTransactionLineComponent(DialogTransactionLineCommissionCodeComponent, this.line);
|
|
9888
|
-
}
|
|
9889
|
-
openWarehouseDialog() {
|
|
9890
|
-
this._dialogService.showTransactionLineComponent(DialogTransactionLineWarehouseComponent, this.line);
|
|
9891
|
-
}
|
|
9892
|
-
openDeliveryMethodDialog() {
|
|
9893
|
-
this._dialogService.showTransactionLineComponent(DialogTransactionLineDeliveryMethodComponent, this.line);
|
|
9894
|
-
}
|
|
9895
|
-
openVatDialog() {
|
|
9896
|
-
this._dialogService.showTransactionLineComponent(DialogTransactionLineVatComponent, this.line);
|
|
9897
|
-
}
|
|
9898
|
-
openDiscountDialog() {
|
|
9899
|
-
this._dialogService.showTransactionLineComponent(DialogTransactionLineDiscountComponent, this.line);
|
|
9900
|
-
}
|
|
9901
|
-
_loadLineCommissionCode() {
|
|
9902
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9903
|
-
if (this.line && this.line.isArticle) {
|
|
9904
|
-
this.service.getCommissionCodes('NL').then((codes) => {
|
|
9905
|
-
const commissionCode = codes.find(c => c.code === this.line.commissionCode);
|
|
9906
|
-
this.line.commissionDescription = commissionCode ? commissionCode.description : "";
|
|
9907
|
-
});
|
|
9908
|
-
}
|
|
9909
|
-
});
|
|
9910
|
-
}
|
|
9911
|
-
_loadLineWarehouse() {
|
|
9912
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9913
|
-
if (this.line && this.line.isArticle) {
|
|
9914
|
-
this.service.getWarehouses().then((warehouses) => {
|
|
9915
|
-
const warehouse = warehouses.find(w => w.warehouseNo === this.line.warehouseNumber);
|
|
9916
|
-
this.line.warehouseDescription = warehouse ? warehouse.description : "";
|
|
9917
|
-
});
|
|
9918
|
-
}
|
|
9919
|
-
});
|
|
9920
|
-
}
|
|
9921
|
-
_loadLineDeliveryMethod() {
|
|
9922
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9923
|
-
if (this.line && this.line.isArticle) {
|
|
9924
|
-
this.service.getDeliveryMethods().then((methods) => {
|
|
9925
|
-
const method = methods.find(m => m.code === this.line.deliveryMethodCode);
|
|
9926
|
-
this.line.deliveryMethodDescription = method ? method.description : "";
|
|
9927
|
-
});
|
|
9928
|
-
}
|
|
9929
|
-
});
|
|
9930
|
-
}
|
|
9931
10102
|
_loadLineVat() {
|
|
9932
10103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9933
10104
|
if (this.line && this.line.isArticle) {
|
|
@@ -9952,12 +10123,13 @@ TransactionOverviewLineComponent.decorators = [
|
|
|
9952
10123
|
</div>
|
|
9953
10124
|
</div>
|
|
9954
10125
|
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
9955
|
-
<co-transaction-line-commission-button [
|
|
9956
|
-
<co-transaction-line-warehouse-button [
|
|
9957
|
-
<co-transaction-line-delivery-button [
|
|
9958
|
-
<co-transaction-line-delivery-date-button [
|
|
10126
|
+
<co-transaction-line-commission-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-commission-button>
|
|
10127
|
+
<co-transaction-line-warehouse-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
|
|
10128
|
+
<co-transaction-line-delivery-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-delivery-button>
|
|
10129
|
+
<co-transaction-line-delivery-date-button [transactionLine]="line" class="two-column"></co-transaction-line-delivery-date-button>
|
|
10130
|
+
<co-transaction-line-statusbar [transaction]="line" [transactionKind]="transactionKind"></co-transaction-line-statusbar>
|
|
9959
10131
|
</div>
|
|
9960
|
-
<div *ngIf="!preview" class="transaction-line-button" (click)="
|
|
10132
|
+
<div *ngIf="!preview" class="transaction-line-button" (click)="showDialogVat = true">
|
|
9961
10133
|
<span class="co-transaction-overflow-ellipsis" [textContent]="line.vatDescription"></span>
|
|
9962
10134
|
</div>
|
|
9963
10135
|
<div class="transaction-line-totals">
|
|
@@ -9966,8 +10138,8 @@ TransactionOverviewLineComponent.decorators = [
|
|
|
9966
10138
|
[showLabel]="false"
|
|
9967
10139
|
[defaultEditMode]="false"
|
|
9968
10140
|
></co-transaction-line-price>
|
|
9969
|
-
<div class="transaction-line-button custom-width" (click)="
|
|
9970
|
-
<span class="co-transaction-overflow-ellipsis
|
|
10141
|
+
<div class="transaction-line-button custom-width transaction-line-totals-discount" (click)="showDialogDiscount = true">
|
|
10142
|
+
<span class="co-transaction-overflow-ellipsis" [class.transaction-negative-value]="line.lineTotalDiscountAmount < 0"
|
|
9971
10143
|
[textContent]="(line.lineTotalDiscountAmount | coCurrency) || ('DISCOUNT' | localize)"></span>
|
|
9972
10144
|
</div>
|
|
9973
10145
|
<div *ngIf=!preview class="transaction-line-totals-amount">
|
|
@@ -9986,6 +10158,17 @@ TransactionOverviewLineComponent.decorators = [
|
|
|
9986
10158
|
</div>
|
|
9987
10159
|
</ng-container>
|
|
9988
10160
|
</co-transaction-base-line>
|
|
10161
|
+
<co-dialog-transaction-line-vat *ngIf="showDialogVat"
|
|
10162
|
+
[autoClose]="true"
|
|
10163
|
+
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
10164
|
+
[transactionLine]="line"
|
|
10165
|
+
(close)="showDialogVat = false">
|
|
10166
|
+
</co-dialog-transaction-line-vat>
|
|
10167
|
+
<co-dialog-transaction-line-discount *ngIf="showDialogDiscount"
|
|
10168
|
+
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
10169
|
+
[transactionLine]="line"
|
|
10170
|
+
(close)="showDialogDiscount = false"
|
|
10171
|
+
></co-dialog-transaction-line-discount>
|
|
9989
10172
|
`,
|
|
9990
10173
|
encapsulation: ViewEncapsulation.None
|
|
9991
10174
|
},] }
|
|
@@ -10021,6 +10204,7 @@ class TransactionOrderDeliveryLineComponent extends TransactionLinesLineBaseComp
|
|
|
10021
10204
|
this._subscriptions.push(this._transactionEventService.selectAllLines.subscribe((value) => {
|
|
10022
10205
|
this.selected = value;
|
|
10023
10206
|
}));
|
|
10207
|
+
this.transactionKind = this.service.currentTransaction.transactionInfo.transactionKind;
|
|
10024
10208
|
}
|
|
10025
10209
|
ngOnDestroy() {
|
|
10026
10210
|
this._subscriptions.forEach(s => s.unsubscribe());
|
|
@@ -10035,12 +10219,12 @@ TransactionOrderDeliveryLineComponent.decorators = [
|
|
|
10035
10219
|
<co-transaction-base-line [line]="line" [preview]="preview" [checkbox]="true" [checkboxValue]="selected" [actionButtons]="false">
|
|
10036
10220
|
<div class="transaction-line-buttons-grid">
|
|
10037
10221
|
<div class="row-1">
|
|
10038
|
-
<co-transaction-line-warehouse-button [
|
|
10039
|
-
<co-transaction-line-delivery-button [
|
|
10222
|
+
<co-transaction-line-warehouse-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
|
|
10223
|
+
<co-transaction-line-delivery-button [transactionLine]="line" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-delivery-button>
|
|
10040
10224
|
</div>
|
|
10041
10225
|
<div class="row-2">
|
|
10042
|
-
<co-transaction-line-delivery-date-button [
|
|
10043
|
-
<co-
|
|
10226
|
+
<co-transaction-line-delivery-date-button [transactionLine]="line"></co-transaction-line-delivery-date-button>
|
|
10227
|
+
<co-transaction-line-statusbar [transaction]="line" [transactionKind]="transactionKind"></co-transaction-line-statusbar>
|
|
10044
10228
|
</div>
|
|
10045
10229
|
</div>
|
|
10046
10230
|
<div class="transaction-line-totals">
|
|
@@ -10261,7 +10445,7 @@ TransactionReceiveGoodsLineComponent.decorators = [
|
|
|
10261
10445
|
template: `
|
|
10262
10446
|
<co-transaction-base-line [line]="viewModel" [preview]="preview" [actionButtons]="false" (click)="handleLineClicked($event)">
|
|
10263
10447
|
<div class="line-content-wrapper">
|
|
10264
|
-
<co-transaction-line-warehouse-button [
|
|
10448
|
+
<co-transaction-line-warehouse-button [transactionLine]="viewModel" [transactionInfo]="service.currentTransaction.transactionInfo"></co-transaction-line-warehouse-button>
|
|
10265
10449
|
<co-transaction-line-warehouse-location-button [readonly]="viewModel.quantityReceived === viewModel.amount" [line]="viewModel"></co-transaction-line-warehouse-location-button>
|
|
10266
10450
|
<co-editable-label class="transaction-line-totals-total price"
|
|
10267
10451
|
[model]="viewModel.amount.toString() + 'x'"
|
|
@@ -10483,6 +10667,9 @@ class TransactionLineComponent {
|
|
|
10483
10667
|
showClass() {
|
|
10484
10668
|
return true;
|
|
10485
10669
|
}
|
|
10670
|
+
ngOnChanges(changes) {
|
|
10671
|
+
this._prepareProps();
|
|
10672
|
+
}
|
|
10486
10673
|
_prepareContent() {
|
|
10487
10674
|
if (!this._transactionType || !this._activeCategory || !this._transactionLineContainer) {
|
|
10488
10675
|
return;
|
|
@@ -10498,12 +10685,7 @@ class TransactionLineComponent {
|
|
|
10498
10685
|
.resolveComponentFactory(componentClass)
|
|
10499
10686
|
.create(this.injector);
|
|
10500
10687
|
this.appRef.attachView(this._componentRef.hostView);
|
|
10501
|
-
this.
|
|
10502
|
-
this._componentRef.instance.selected = this.selected;
|
|
10503
|
-
this._componentRef.instance.line = this.line;
|
|
10504
|
-
this._componentRef.instance.transactionId = this.transactionId;
|
|
10505
|
-
this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
|
|
10506
|
-
this._componentRef.instance.lineVisible = this.lineVisible;
|
|
10688
|
+
this._prepareProps();
|
|
10507
10689
|
const domElem = this._componentRef.hostView
|
|
10508
10690
|
.rootNodes[0];
|
|
10509
10691
|
this._transactionLineContainer.nativeElement.appendChild(domElem);
|
|
@@ -10511,12 +10693,22 @@ class TransactionLineComponent {
|
|
|
10511
10693
|
this.appRef.detachView(this._componentRef.hostView);
|
|
10512
10694
|
});
|
|
10513
10695
|
}
|
|
10696
|
+
_prepareProps() {
|
|
10697
|
+
if (this._componentRef) {
|
|
10698
|
+
this._componentRef.instance.preview = this.preview;
|
|
10699
|
+
this._componentRef.instance.selected = this.selected;
|
|
10700
|
+
this._componentRef.instance.line = this.line;
|
|
10701
|
+
this._componentRef.instance.transactionId = this.transactionId;
|
|
10702
|
+
this._componentRef.instance.waitingForUserAction = this.waitingForUserAction;
|
|
10703
|
+
this._componentRef.instance.lineVisible = this.lineVisible;
|
|
10704
|
+
}
|
|
10705
|
+
}
|
|
10514
10706
|
}
|
|
10515
10707
|
TransactionLineComponent.decorators = [
|
|
10516
10708
|
{ type: Component, args: [{
|
|
10517
10709
|
selector: "co-transaction-line",
|
|
10518
10710
|
template: `
|
|
10519
|
-
<div #transactionLine observeVisibility (visible)="
|
|
10711
|
+
<div #transactionLine observeVisibility (visible)="lineVisible.next()"></div>
|
|
10520
10712
|
`,
|
|
10521
10713
|
encapsulation: ViewEncapsulation.None
|
|
10522
10714
|
},] }
|
|
@@ -10571,6 +10763,8 @@ class TransactionLinesComponent {
|
|
|
10571
10763
|
this.saveTransactionLine = new EventEmitter();
|
|
10572
10764
|
this.showTransactionArticleText = false;
|
|
10573
10765
|
this.userActionRequired = false;
|
|
10766
|
+
this.hasComponent = true;
|
|
10767
|
+
this._activeCategory = TransactionTypeCategory.SalesOrderOverview;
|
|
10574
10768
|
}
|
|
10575
10769
|
set activeCategory(value) {
|
|
10576
10770
|
this._activeCategory = value;
|
|
@@ -10630,9 +10824,6 @@ class TransactionLinesComponent {
|
|
|
10630
10824
|
this.saveTransactionLine.next(transactionLine);
|
|
10631
10825
|
this._hideArticleTextDialog();
|
|
10632
10826
|
}
|
|
10633
|
-
transactionLineComponent() {
|
|
10634
|
-
return !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
|
|
10635
|
-
}
|
|
10636
10827
|
_showArticleTextDialog() {
|
|
10637
10828
|
this.showTransactionArticleText = true;
|
|
10638
10829
|
}
|
|
@@ -10641,6 +10832,7 @@ class TransactionLinesComponent {
|
|
|
10641
10832
|
}
|
|
10642
10833
|
_handleCategory() {
|
|
10643
10834
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10835
|
+
this.hasComponent = !!this._mappingService.getTransactionLineComponent(this.service.currentTransaction.transactionInfo.transactionKind, this._activeCategory);
|
|
10644
10836
|
if (this._activeCategory === TransactionTypeCategory.PurchaseOrderReceivedGoods) {
|
|
10645
10837
|
if (this.transactionLines.find(l => l.isLocationRequired)) {
|
|
10646
10838
|
const response = yield this._dialogService.showWarehouseLocation(this.transactionLines[0].warehouseNumber, false, false, true);
|
|
@@ -10669,7 +10861,7 @@ TransactionLinesComponent.decorators = [
|
|
|
10669
10861
|
[class.show]="line === selectedTransactionLine && transactionLines.length > 1" cdkDragHandle
|
|
10670
10862
|
[iconData]="iconCacheService.getIcon(icons.GripDotsVerticalSolid)">
|
|
10671
10863
|
</co-icon>
|
|
10672
|
-
<co-transaction-line *ngIf="
|
|
10864
|
+
<co-transaction-line *ngIf="hasComponent"
|
|
10673
10865
|
[transactionType]="service.currentTransaction.transactionInfo.transactionKind"
|
|
10674
10866
|
[activeCategory]="activeCategory"
|
|
10675
10867
|
[transactionId]="transactionId"
|
|
@@ -10767,7 +10959,10 @@ ShoppingCartPreviewComponent.decorators = [
|
|
|
10767
10959
|
></co-transaction-lines>
|
|
10768
10960
|
</div>
|
|
10769
10961
|
<div class="preview-totals-wrapper">
|
|
10770
|
-
<co-transaction-totals
|
|
10962
|
+
<co-transaction-totals
|
|
10963
|
+
[transactionInfo]="service.currentTransaction.transactionInfo"
|
|
10964
|
+
[transactionTotal]="service.currentTransaction.transactionTotal"
|
|
10965
|
+
></co-transaction-totals>
|
|
10771
10966
|
</div>
|
|
10772
10967
|
<div class="cart-buttons">
|
|
10773
10968
|
<a class="button-edit-cart" [textContent]="'EDIT_CART' | localize"
|
|
@@ -10891,9 +11086,10 @@ SharedService.ctorParameters = () => [
|
|
|
10891
11086
|
];
|
|
10892
11087
|
|
|
10893
11088
|
class AvatarComponent {
|
|
10894
|
-
constructor(_transactionService, _sharedService) {
|
|
11089
|
+
constructor(_transactionService, _sharedService, _colorSequenceService) {
|
|
10895
11090
|
this._transactionService = _transactionService;
|
|
10896
11091
|
this._sharedService = _sharedService;
|
|
11092
|
+
this._colorSequenceService = _colorSequenceService;
|
|
10897
11093
|
}
|
|
10898
11094
|
set image(value) {
|
|
10899
11095
|
this._image = value;
|
|
@@ -10911,6 +11107,13 @@ class AvatarComponent {
|
|
|
10911
11107
|
showClass() {
|
|
10912
11108
|
return true;
|
|
10913
11109
|
}
|
|
11110
|
+
set initials(value) {
|
|
11111
|
+
this._initials = value;
|
|
11112
|
+
this._setBackgroundColor();
|
|
11113
|
+
}
|
|
11114
|
+
get initials() {
|
|
11115
|
+
return this._initials;
|
|
11116
|
+
}
|
|
10914
11117
|
ngAfterViewInit() {
|
|
10915
11118
|
this._getRelation();
|
|
10916
11119
|
}
|
|
@@ -10947,6 +11150,11 @@ class AvatarComponent {
|
|
|
10947
11150
|
});
|
|
10948
11151
|
}
|
|
10949
11152
|
}
|
|
11153
|
+
_setBackgroundColor() {
|
|
11154
|
+
if (this.relation) {
|
|
11155
|
+
this.backgroundColor = this._colorSequenceService.getRandomColor(this.relation.relationId);
|
|
11156
|
+
}
|
|
11157
|
+
}
|
|
10950
11158
|
}
|
|
10951
11159
|
AvatarComponent.decorators = [
|
|
10952
11160
|
{ type: Component, args: [{
|
|
@@ -10964,13 +11172,15 @@ AvatarComponent.decorators = [
|
|
|
10964
11172
|
];
|
|
10965
11173
|
AvatarComponent.ctorParameters = () => [
|
|
10966
11174
|
{ type: TransactionService },
|
|
10967
|
-
{ type: SharedService }
|
|
11175
|
+
{ type: SharedService },
|
|
11176
|
+
{ type: ColorSequenceService }
|
|
10968
11177
|
];
|
|
10969
11178
|
AvatarComponent.propDecorators = {
|
|
10970
11179
|
image: [{ type: Input }],
|
|
10971
11180
|
relationId: [{ type: Input }],
|
|
10972
11181
|
relation: [{ type: Input }],
|
|
10973
|
-
showClass: [{ type: HostBinding, args: ["class.co-avatar",] }]
|
|
11182
|
+
showClass: [{ type: HostBinding, args: ["class.co-avatar",] }],
|
|
11183
|
+
backgroundColor: [{ type: HostBinding, args: ["style.background-color",] }]
|
|
10974
11184
|
};
|
|
10975
11185
|
|
|
10976
11186
|
class AvatarModule {
|
|
@@ -11469,18 +11679,13 @@ RelationTypeComponent.decorators = [
|
|
|
11469
11679
|
template: `
|
|
11470
11680
|
<div class="default-data-row">
|
|
11471
11681
|
<co-input-radio-button class="default-width"
|
|
11472
|
-
[name]="'type'"
|
|
11473
11682
|
[label]="'PRIVATE_PERSON' | localize"
|
|
11474
|
-
[
|
|
11475
|
-
[checked]="relation.type === relType.Private"
|
|
11683
|
+
[model]="relation.type === relType.Private"
|
|
11476
11684
|
(modelChange)="handleChangeRelationType(relType.Private)"
|
|
11477
11685
|
></co-input-radio-button>
|
|
11478
11686
|
<co-input-radio-button class="default-width"
|
|
11479
|
-
[name]="'type'"
|
|
11480
11687
|
[label]="'COMPANY' | localize"
|
|
11481
|
-
[
|
|
11482
|
-
[(model)]="relation.type"
|
|
11483
|
-
[checked]="relation.type === relType.Company"
|
|
11688
|
+
[model]="relation.type === relType.Company"
|
|
11484
11689
|
(modelChange)="handleChangeRelationType(relType.Company)"
|
|
11485
11690
|
></co-input-radio-button>
|
|
11486
11691
|
</div>
|
|
@@ -11630,24 +11835,18 @@ RelationGeneralComponent.decorators = [
|
|
|
11630
11835
|
</div>
|
|
11631
11836
|
<div class="default-data-row">
|
|
11632
11837
|
<co-input-radio-button class="default-width"
|
|
11633
|
-
[name]="'gender'"
|
|
11634
11838
|
[label]="'MALE' | localize"
|
|
11635
|
-
[
|
|
11636
|
-
[checked]="relation.gender === genderType.Male"
|
|
11839
|
+
[model]="relation.gender === genderType.Male"
|
|
11637
11840
|
(modelChange)="changeGenderType(genderType.Male)"
|
|
11638
11841
|
></co-input-radio-button>
|
|
11639
11842
|
<co-input-radio-button class="default-width"
|
|
11640
|
-
[name]="'gender'"
|
|
11641
11843
|
[label]="'FEMALE' | localize "
|
|
11642
|
-
[
|
|
11643
|
-
[checked]="relation.gender === genderType.Female"
|
|
11844
|
+
[model]="relation.gender === genderType.Female"
|
|
11644
11845
|
(modelChange)="changeGenderType(genderType.Female)"
|
|
11645
11846
|
></co-input-radio-button>
|
|
11646
11847
|
<co-input-radio-button class="default-width"
|
|
11647
|
-
[name]="'gender'"
|
|
11648
11848
|
[label]="'UNKNOWN' | localize"
|
|
11649
|
-
[
|
|
11650
|
-
[checked]="relation.gender === genderType.Unspecified"
|
|
11849
|
+
[model]="relation.gender === genderType.Unspecified"
|
|
11651
11850
|
(modelChange)="changeGenderType(genderType.Unspecified)"
|
|
11652
11851
|
></co-input-radio-button>
|
|
11653
11852
|
</div>
|
|
@@ -11735,6 +11934,8 @@ class RelationSuggestionsListItemComponent {
|
|
|
11735
11934
|
return true;
|
|
11736
11935
|
}
|
|
11737
11936
|
handleClick(event) {
|
|
11937
|
+
event.preventDefault();
|
|
11938
|
+
event.stopPropagation();
|
|
11738
11939
|
this.selectionSelected.next(this.suggestion);
|
|
11739
11940
|
}
|
|
11740
11941
|
}
|
|
@@ -12212,7 +12413,9 @@ class TransactionHeaderDeliveryComponent extends TransactionBaseComponent {
|
|
|
12212
12413
|
showClass() {
|
|
12213
12414
|
return true;
|
|
12214
12415
|
}
|
|
12215
|
-
showTheDeliveryMethodDialog() {
|
|
12416
|
+
showTheDeliveryMethodDialog(event) {
|
|
12417
|
+
event.preventDefault();
|
|
12418
|
+
event.stopPropagation();
|
|
12216
12419
|
this.showDeliveryMethodDialog = true;
|
|
12217
12420
|
}
|
|
12218
12421
|
transactionSet() {
|
|
@@ -12239,7 +12442,7 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
12239
12442
|
>
|
|
12240
12443
|
</co-transaction-header-block>
|
|
12241
12444
|
<ng-template #headerBlock>
|
|
12242
|
-
<div class="header-delivery-method" (click)="showTheDeliveryMethodDialog()">
|
|
12445
|
+
<div class="header-delivery-method" (click)="showTheDeliveryMethodDialog($event)">
|
|
12243
12446
|
<co-icon class="header-delivery-truck-icon" [iconData]="iconService.getIcon(icons.TruckFastSolid)"></co-icon>
|
|
12244
12447
|
<span [textContent]="deliveryMethod?.description"></span>
|
|
12245
12448
|
</div>
|
|
@@ -12267,8 +12470,7 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
12267
12470
|
></co-transaction-header-preferred-delivery-date>
|
|
12268
12471
|
</ng-template>
|
|
12269
12472
|
<ng-template #thirdBlock>
|
|
12270
|
-
<
|
|
12271
|
-
<co-input-checkbox class="header-delivery-partial-delivery" [model]="transactionInfo.allowPartialDelivery"></co-input-checkbox>
|
|
12473
|
+
<co-transaction-header-partial-delivery class="co-transaction-label" [transactionInfo]="transactionInfo"></co-transaction-header-partial-delivery>
|
|
12272
12474
|
</ng-template>
|
|
12273
12475
|
<co-dialog *ngIf="showDialog" [headerTemplate]="headerTemplate" (closeClick)="showDialog = false">
|
|
12274
12476
|
<ng-template #headerTemplate>
|
|
@@ -12321,9 +12523,10 @@ TransactionHeaderBlockComponent.decorators = [
|
|
|
12321
12523
|
{ type: Component, args: [{
|
|
12322
12524
|
selector: "co-transaction-header-block",
|
|
12323
12525
|
template: `
|
|
12324
|
-
<div #wrapper class="transaction-header-block-wrapper">
|
|
12526
|
+
<div #wrapper class="transaction-header-block-wrapper" (click)="headerClick.emit($event)">
|
|
12325
12527
|
<div class="transaction-header-block-header">
|
|
12326
12528
|
<ng-container [ngTemplateOutlet]="headerBlockTemplate"></ng-container>
|
|
12529
|
+
<div class="transaction-header-extended-dots" *ngIf="hasDetails" [textContent]="!hasDetails ? '' : '...'" (click)="headerClick.emit($event)"></div>
|
|
12327
12530
|
</div>
|
|
12328
12531
|
<div class="transaction-header-block-content">
|
|
12329
12532
|
<div class="transaction-header-block-content-first" *ngIf="firstBlockTemplate">
|
|
@@ -12338,7 +12541,6 @@ TransactionHeaderBlockComponent.decorators = [
|
|
|
12338
12541
|
<ng-container [ngTemplateOutlet]="thirdBlockTemplate"></ng-container>
|
|
12339
12542
|
</div>
|
|
12340
12543
|
</div>
|
|
12341
|
-
<div class="transaction-header-extended-dots" *ngIf="hasDetails" [textContent]="!hasDetails ? '' : '...'" (click)="headerClick.emit($event)"></div>
|
|
12342
12544
|
</div>
|
|
12343
12545
|
`,
|
|
12344
12546
|
encapsulation: ViewEncapsulation.None
|
|
@@ -12370,35 +12572,6 @@ TransactionHeaderBlockModule.decorators = [
|
|
|
12370
12572
|
},] }
|
|
12371
12573
|
];
|
|
12372
12574
|
|
|
12373
|
-
class TransactionHeaderBaseComponent extends TransactionFilterPopupBaseComponent {
|
|
12374
|
-
constructor() {
|
|
12375
|
-
super(...arguments);
|
|
12376
|
-
this.readonly = false;
|
|
12377
|
-
this._transactionInfo = new TransactionInfo();
|
|
12378
|
-
}
|
|
12379
|
-
set transactionInfo(value) {
|
|
12380
|
-
if (value) {
|
|
12381
|
-
this._transactionInfo = value;
|
|
12382
|
-
this.transactionInfoSet();
|
|
12383
|
-
}
|
|
12384
|
-
}
|
|
12385
|
-
get transactionInfo() {
|
|
12386
|
-
return this._transactionInfo;
|
|
12387
|
-
}
|
|
12388
|
-
get model() {
|
|
12389
|
-
return this._transactionInfo;
|
|
12390
|
-
}
|
|
12391
|
-
// overridden by descendents
|
|
12392
|
-
transactionInfoSet() {
|
|
12393
|
-
}
|
|
12394
|
-
}
|
|
12395
|
-
TransactionHeaderBaseComponent.decorators = [
|
|
12396
|
-
{ type: Directive }
|
|
12397
|
-
];
|
|
12398
|
-
TransactionHeaderBaseComponent.propDecorators = {
|
|
12399
|
-
transactionInfo: [{ type: Input }]
|
|
12400
|
-
};
|
|
12401
|
-
|
|
12402
12575
|
class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseComponent {
|
|
12403
12576
|
constructor(_transactionService) {
|
|
12404
12577
|
super();
|
|
@@ -12426,6 +12599,8 @@ class TransactionHeaderDeliveryDateComponent extends TransactionHeaderBaseCompon
|
|
|
12426
12599
|
return this._editMode;
|
|
12427
12600
|
}
|
|
12428
12601
|
handleClick(event) {
|
|
12602
|
+
event.preventDefault();
|
|
12603
|
+
event.stopPropagation();
|
|
12429
12604
|
if (!this.readonly) {
|
|
12430
12605
|
this.editMode = true;
|
|
12431
12606
|
}
|
|
@@ -12523,6 +12698,8 @@ class TransactionHeaderRemarksComponent extends TransactionHeaderBaseComponent {
|
|
|
12523
12698
|
return this._editMode;
|
|
12524
12699
|
}
|
|
12525
12700
|
handleClick(event) {
|
|
12701
|
+
event.preventDefault();
|
|
12702
|
+
event.stopPropagation();
|
|
12526
12703
|
if (!this.readonly) {
|
|
12527
12704
|
this.editMode = true;
|
|
12528
12705
|
}
|
|
@@ -12616,6 +12793,8 @@ class TransactionHeaderReferenceComponent extends TransactionHeaderBaseComponent
|
|
|
12616
12793
|
return this._editMode;
|
|
12617
12794
|
}
|
|
12618
12795
|
handleClick(event) {
|
|
12796
|
+
event.preventDefault();
|
|
12797
|
+
event.stopPropagation();
|
|
12619
12798
|
if (!this.readonly) {
|
|
12620
12799
|
this.editMode = true;
|
|
12621
12800
|
}
|
|
@@ -12709,6 +12888,8 @@ class TransactionHeaderRelationReferenceComponent extends TransactionHeaderBaseC
|
|
|
12709
12888
|
return this._editMode;
|
|
12710
12889
|
}
|
|
12711
12890
|
handleClick(event) {
|
|
12891
|
+
event.preventDefault();
|
|
12892
|
+
event.stopPropagation();
|
|
12712
12893
|
if (!this.readonly) {
|
|
12713
12894
|
this.editMode = true;
|
|
12714
12895
|
}
|
|
@@ -12871,6 +13052,9 @@ class TransactionLineCheckboxListComponent {
|
|
|
12871
13052
|
this.itemHeight = this.scrollingItem.nativeElement.offsetHeight;
|
|
12872
13053
|
}
|
|
12873
13054
|
}
|
|
13055
|
+
handleCheckboxChecked(checked, row) {
|
|
13056
|
+
this.checked.emit(row);
|
|
13057
|
+
}
|
|
12874
13058
|
handleChecked(event, row) {
|
|
12875
13059
|
event.preventDefault();
|
|
12876
13060
|
event.stopPropagation();
|
|
@@ -12882,12 +13066,12 @@ TransactionLineCheckboxListComponent.decorators = [
|
|
|
12882
13066
|
selector: "co-transaction-line-checkbox-list",
|
|
12883
13067
|
template: `
|
|
12884
13068
|
<cdk-virtual-scroll-viewport [itemSize]="itemHeight" class="virtual-scroll-container co-transaction-small-toolbar">
|
|
12885
|
-
<div *cdkVirtualFor="let row of collection" #scrollingItem class="virtual-scroll-item">
|
|
13069
|
+
<div *cdkVirtualFor="let row of collection" #scrollingItem class="virtual-scroll-item" (click)="handleChecked($event, row)">
|
|
12886
13070
|
<div class="checkbox-wrapper">
|
|
12887
13071
|
<co-input-checkbox
|
|
12888
13072
|
[model]="row.checked"
|
|
12889
13073
|
[readonly]="readonly"
|
|
12890
|
-
(
|
|
13074
|
+
(modelChange)="handleCheckboxChecked($event, row)"
|
|
12891
13075
|
></co-input-checkbox>
|
|
12892
13076
|
</div>
|
|
12893
13077
|
<div class="label-wrapper">
|
|
@@ -12974,6 +13158,8 @@ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionHeaderB
|
|
|
12974
13158
|
return this._editMode;
|
|
12975
13159
|
}
|
|
12976
13160
|
handleClick(event) {
|
|
13161
|
+
event.preventDefault();
|
|
13162
|
+
event.stopPropagation();
|
|
12977
13163
|
if (!this.readonly) {
|
|
12978
13164
|
this.editMode = true;
|
|
12979
13165
|
}
|
|
@@ -13042,37 +13228,7 @@ TransactionHeaderPreferredDeliveryDateModule.decorators = [
|
|
|
13042
13228
|
TransactionHeaderPreferredDeliveryDateComponent
|
|
13043
13229
|
]
|
|
13044
13230
|
},] }
|
|
13045
|
-
];
|
|
13046
|
-
|
|
13047
|
-
class DialogTransactionHeaderBaseComponent extends TransactionHeaderBaseComponent {
|
|
13048
|
-
constructor() {
|
|
13049
|
-
super(...arguments);
|
|
13050
|
-
this.buttonType = AppPopupButtonType;
|
|
13051
|
-
this.close = new EventEmitter();
|
|
13052
|
-
}
|
|
13053
|
-
onClose(eventType, output) {
|
|
13054
|
-
return;
|
|
13055
|
-
}
|
|
13056
|
-
handleValueChange(value) {
|
|
13057
|
-
this.value = value;
|
|
13058
|
-
}
|
|
13059
|
-
handleOkClick() {
|
|
13060
|
-
this.onClose(AppPopupButtonType.Ok, this.value);
|
|
13061
|
-
}
|
|
13062
|
-
handleSearch(text) {
|
|
13063
|
-
this.searchText = text;
|
|
13064
|
-
}
|
|
13065
|
-
handleClose(type) {
|
|
13066
|
-
this.close.emit();
|
|
13067
|
-
this.onClose(type);
|
|
13068
|
-
}
|
|
13069
|
-
}
|
|
13070
|
-
DialogTransactionHeaderBaseComponent.decorators = [
|
|
13071
|
-
{ type: Directive }
|
|
13072
|
-
];
|
|
13073
|
-
DialogTransactionHeaderBaseComponent.propDecorators = {
|
|
13074
|
-
close: [{ type: Output }]
|
|
13075
|
-
};
|
|
13231
|
+
];
|
|
13076
13232
|
|
|
13077
13233
|
class DialogTransactionHeaderDeliveryMethodComponent extends DialogTransactionHeaderBaseComponent {
|
|
13078
13234
|
showClass() {
|
|
@@ -13272,41 +13428,11 @@ TransactionHeaderDeliveryOptionsModule.decorators = [
|
|
|
13272
13428
|
},] }
|
|
13273
13429
|
];
|
|
13274
13430
|
|
|
13275
|
-
class TransactionHeaderDeliveryModule {
|
|
13276
|
-
}
|
|
13277
|
-
TransactionHeaderDeliveryModule.decorators = [
|
|
13278
|
-
{ type: NgModule, args: [{
|
|
13279
|
-
imports: [
|
|
13280
|
-
CommonModule,
|
|
13281
|
-
CoreModule,
|
|
13282
|
-
TransactionHeaderBlockModule,
|
|
13283
|
-
InputCheckboxModule,
|
|
13284
|
-
IconModule,
|
|
13285
|
-
PipeModule,
|
|
13286
|
-
InputDatePickerModule,
|
|
13287
|
-
TransactionHeaderDeliveryDateModule,
|
|
13288
|
-
CoDialogModule,
|
|
13289
|
-
TransactionHeaderDeliveryOptionsModule,
|
|
13290
|
-
TransactionHeaderRemarksModule,
|
|
13291
|
-
TransactionHeaderReferenceModule,
|
|
13292
|
-
TransactionHeaderRelationReferenceModule,
|
|
13293
|
-
TransactionHeaderDeliveryMethodModule,
|
|
13294
|
-
TransactionHeaderPreferredDeliveryDateModule,
|
|
13295
|
-
DialogTransactionHeaderDeliveryMethodModule
|
|
13296
|
-
],
|
|
13297
|
-
declarations: [
|
|
13298
|
-
TransactionHeaderDeliveryComponent
|
|
13299
|
-
],
|
|
13300
|
-
exports: [
|
|
13301
|
-
TransactionHeaderDeliveryComponent
|
|
13302
|
-
]
|
|
13303
|
-
},] }
|
|
13304
|
-
];
|
|
13305
|
-
|
|
13306
13431
|
class TransactionHeaderPartialDeliveryComponent extends TransactionHeaderBaseComponent {
|
|
13307
13432
|
constructor(_transactionService) {
|
|
13308
13433
|
super();
|
|
13309
13434
|
this._transactionService = _transactionService;
|
|
13435
|
+
this.showClass = true;
|
|
13310
13436
|
}
|
|
13311
13437
|
commitPartialDelivery(allow) {
|
|
13312
13438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -13331,7 +13457,7 @@ TransactionHeaderPartialDeliveryComponent.decorators = [
|
|
|
13331
13457
|
template: `
|
|
13332
13458
|
<co-input-checkbox
|
|
13333
13459
|
[readonly]="readonly"
|
|
13334
|
-
[label]="'
|
|
13460
|
+
[label]="'PART_DELIVERY' | localize"
|
|
13335
13461
|
[model]="transactionInfo.allowPartialDelivery"
|
|
13336
13462
|
(modelChange)="commitPartialDelivery($event)">
|
|
13337
13463
|
</co-input-checkbox>
|
|
@@ -13341,7 +13467,10 @@ TransactionHeaderPartialDeliveryComponent.decorators = [
|
|
|
13341
13467
|
];
|
|
13342
13468
|
TransactionHeaderPartialDeliveryComponent.ctorParameters = () => [
|
|
13343
13469
|
{ type: TransactionService }
|
|
13344
|
-
];
|
|
13470
|
+
];
|
|
13471
|
+
TransactionHeaderPartialDeliveryComponent.propDecorators = {
|
|
13472
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-header-partial-delivery",] }]
|
|
13473
|
+
};
|
|
13345
13474
|
|
|
13346
13475
|
class TransactionHeaderPartialDeliveryModule {
|
|
13347
13476
|
}
|
|
@@ -13361,6 +13490,38 @@ TransactionHeaderPartialDeliveryModule.decorators = [
|
|
|
13361
13490
|
},] }
|
|
13362
13491
|
];
|
|
13363
13492
|
|
|
13493
|
+
class TransactionHeaderDeliveryModule {
|
|
13494
|
+
}
|
|
13495
|
+
TransactionHeaderDeliveryModule.decorators = [
|
|
13496
|
+
{ type: NgModule, args: [{
|
|
13497
|
+
imports: [
|
|
13498
|
+
CommonModule,
|
|
13499
|
+
CoreModule,
|
|
13500
|
+
TransactionHeaderBlockModule,
|
|
13501
|
+
InputCheckboxModule,
|
|
13502
|
+
IconModule,
|
|
13503
|
+
PipeModule,
|
|
13504
|
+
InputDatePickerModule,
|
|
13505
|
+
TransactionHeaderDeliveryDateModule,
|
|
13506
|
+
CoDialogModule,
|
|
13507
|
+
TransactionHeaderDeliveryOptionsModule,
|
|
13508
|
+
TransactionHeaderRemarksModule,
|
|
13509
|
+
TransactionHeaderReferenceModule,
|
|
13510
|
+
TransactionHeaderRelationReferenceModule,
|
|
13511
|
+
TransactionHeaderDeliveryMethodModule,
|
|
13512
|
+
TransactionHeaderPreferredDeliveryDateModule,
|
|
13513
|
+
DialogTransactionHeaderDeliveryMethodModule,
|
|
13514
|
+
TransactionHeaderPartialDeliveryModule
|
|
13515
|
+
],
|
|
13516
|
+
declarations: [
|
|
13517
|
+
TransactionHeaderDeliveryComponent
|
|
13518
|
+
],
|
|
13519
|
+
exports: [
|
|
13520
|
+
TransactionHeaderDeliveryComponent
|
|
13521
|
+
]
|
|
13522
|
+
},] }
|
|
13523
|
+
];
|
|
13524
|
+
|
|
13364
13525
|
class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderBaseComponent {
|
|
13365
13526
|
constructor(_transactionService) {
|
|
13366
13527
|
super();
|
|
@@ -13388,6 +13549,8 @@ class TransactionHeaderDownpaymentPercentageComponent extends TransactionHeaderB
|
|
|
13388
13549
|
return this._editMode;
|
|
13389
13550
|
}
|
|
13390
13551
|
handleClick(event) {
|
|
13552
|
+
event.preventDefault();
|
|
13553
|
+
event.stopPropagation();
|
|
13391
13554
|
if (!this.readonly) {
|
|
13392
13555
|
this.editMode = true;
|
|
13393
13556
|
}
|
|
@@ -13482,6 +13645,8 @@ class TransactionHeaderDownpaymentAmountComponent extends TransactionHeaderBaseC
|
|
|
13482
13645
|
return this._editMode;
|
|
13483
13646
|
}
|
|
13484
13647
|
handleClick(event) {
|
|
13648
|
+
event.preventDefault();
|
|
13649
|
+
event.stopPropagation();
|
|
13485
13650
|
if (!this.readonly) {
|
|
13486
13651
|
this.editMode = true;
|
|
13487
13652
|
}
|
|
@@ -13553,6 +13718,7 @@ class TransactionHeaderDefinitiveComponent extends TransactionHeaderBaseComponen
|
|
|
13553
13718
|
constructor(_transactionService) {
|
|
13554
13719
|
super();
|
|
13555
13720
|
this._transactionService = _transactionService;
|
|
13721
|
+
this.showClass = true;
|
|
13556
13722
|
}
|
|
13557
13723
|
commitTransactionDefinitive(definitive) {
|
|
13558
13724
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -13587,7 +13753,10 @@ TransactionHeaderDefinitiveComponent.decorators = [
|
|
|
13587
13753
|
];
|
|
13588
13754
|
TransactionHeaderDefinitiveComponent.ctorParameters = () => [
|
|
13589
13755
|
{ type: TransactionService }
|
|
13590
|
-
];
|
|
13756
|
+
];
|
|
13757
|
+
TransactionHeaderDefinitiveComponent.propDecorators = {
|
|
13758
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-header-definitive",] }]
|
|
13759
|
+
};
|
|
13591
13760
|
|
|
13592
13761
|
class TransactionHeaderDefinitiveModule {
|
|
13593
13762
|
}
|
|
@@ -14112,7 +14281,7 @@ class TransactionComponent {
|
|
|
14112
14281
|
this.showQuickAccess = true;
|
|
14113
14282
|
this.showButtonBar = true;
|
|
14114
14283
|
this.activeViewMode = ContentViewMode.List;
|
|
14115
|
-
this.
|
|
14284
|
+
this.activeCategory = TransactionTypeCategory.SalesOrderOverview;
|
|
14116
14285
|
this._subs = [];
|
|
14117
14286
|
this._transaction = new TransactionInfoResponse();
|
|
14118
14287
|
this._subs.push(this._service.transactionUpdated.subscribe((transaction) => {
|
|
@@ -14148,13 +14317,6 @@ class TransactionComponent {
|
|
|
14148
14317
|
ngOnDestroy() {
|
|
14149
14318
|
this._subs.forEach(s => s.unsubscribe());
|
|
14150
14319
|
}
|
|
14151
|
-
addDiscount() {
|
|
14152
|
-
this.showDiscountsSidebar = true;
|
|
14153
|
-
// TODO
|
|
14154
|
-
// this.transactionDiscountPercentage = this.service.currentTransaction.transactionDiscountPercentage;
|
|
14155
|
-
// this.transactionDiscountAmount = this.service.currentTransaction.transactionDiscountAmount;
|
|
14156
|
-
// this.transactionTotal = undefined;
|
|
14157
|
-
}
|
|
14158
14320
|
saveTransactionLine(transactionAddTextLineRequest) {
|
|
14159
14321
|
if (transactionAddTextLineRequest.transactionUuid) { //update
|
|
14160
14322
|
}
|
|
@@ -14229,10 +14391,12 @@ TransactionComponent.decorators = [
|
|
|
14229
14391
|
-->
|
|
14230
14392
|
</div>
|
|
14231
14393
|
<div class="transaction-footer-wrapper">
|
|
14232
|
-
<co-transaction-totals
|
|
14394
|
+
<co-transaction-totals
|
|
14395
|
+
[transactionInfo]="transaction.transactionInfo"
|
|
14396
|
+
[transactionTotal]="transaction.transactionTotal"
|
|
14397
|
+
[showDiscount]="true"
|
|
14398
|
+
></co-transaction-totals>
|
|
14233
14399
|
</div>
|
|
14234
|
-
<co-discount *ngIf="showDiscountsSidebar">
|
|
14235
|
-
</co-discount>
|
|
14236
14400
|
`,
|
|
14237
14401
|
encapsulation: ViewEncapsulation.None
|
|
14238
14402
|
},] }
|
|
@@ -14546,9 +14710,18 @@ TransactionHeaderRelationModule.decorators = [
|
|
|
14546
14710
|
];
|
|
14547
14711
|
|
|
14548
14712
|
class TransactionHeaderOrderComponent extends TransactionBaseComponent {
|
|
14713
|
+
constructor() {
|
|
14714
|
+
super(...arguments);
|
|
14715
|
+
this.showDiscountDialog = false;
|
|
14716
|
+
}
|
|
14549
14717
|
showClass() {
|
|
14550
14718
|
return true;
|
|
14551
14719
|
}
|
|
14720
|
+
handleShowDiscountDialog(event) {
|
|
14721
|
+
event.preventDefault();
|
|
14722
|
+
event.stopPropagation();
|
|
14723
|
+
this.showDiscountDialog = true;
|
|
14724
|
+
}
|
|
14552
14725
|
}
|
|
14553
14726
|
TransactionHeaderOrderComponent.decorators = [
|
|
14554
14727
|
{ type: Component, args: [{
|
|
@@ -14563,19 +14736,30 @@ TransactionHeaderOrderComponent.decorators = [
|
|
|
14563
14736
|
</co-transaction-header-block>
|
|
14564
14737
|
<ng-template #headerBlock>
|
|
14565
14738
|
<div class="header-block-label" [textContent]="transactionInfo.branch?.familyName"></div>
|
|
14739
|
+
<div class="header-order-definitive">
|
|
14740
|
+
<co-transaction-header-definitive [transactionInfo]="transactionInfo"></co-transaction-header-definitive>
|
|
14741
|
+
</div>
|
|
14566
14742
|
</ng-template>
|
|
14567
14743
|
<ng-template #firstBlock>
|
|
14568
14744
|
<span class="header-order-total-label co-transaction-label" [textContent]="'ORDER_TOTAL' | localize"></span>
|
|
14569
14745
|
<div class="header-order-total" [textContent]="transactionTotal.netAmount | priceDisplay"></div>
|
|
14570
14746
|
</ng-template>
|
|
14571
14747
|
<ng-template #secondBlock>
|
|
14572
|
-
<
|
|
14573
|
-
|
|
14748
|
+
<div class="transaction-line-button custom-width" (click)="handleShowDiscountDialog($event)">
|
|
14749
|
+
<span class="co-transaction-label" [textContent]="'DISCOUNT' | localize"></span>
|
|
14750
|
+
<span class="co-transaction-overflow-ellipsis transaction-discount" [class.transaction-negative-value]="transactionTotal.discountAmount < 0"
|
|
14751
|
+
[textContent]="transactionTotal.discountAmount | coCurrency"></span>
|
|
14752
|
+
</div>
|
|
14574
14753
|
</ng-template>
|
|
14575
14754
|
<ng-template #thirdBlock>
|
|
14576
|
-
<
|
|
14577
|
-
<
|
|
14755
|
+
<span class="header-order-line-amount-label co-transaction-label" [textContent]="'ORDER_LINES' | localize"></span>
|
|
14756
|
+
<div class="header-order-line-amount" [textContent]="transactionLines.length"></div>
|
|
14578
14757
|
</ng-template>
|
|
14758
|
+
<co-dialog-transaction-header-discount class="discount-dialog" *ngIf="showDiscountDialog"
|
|
14759
|
+
[transactionInfo]="transactionInfo"
|
|
14760
|
+
[transactionTotal]="transactionTotal"
|
|
14761
|
+
(close)="showDiscountDialog = false">
|
|
14762
|
+
</co-dialog-transaction-header-discount>
|
|
14579
14763
|
`,
|
|
14580
14764
|
encapsulation: ViewEncapsulation.None
|
|
14581
14765
|
},] }
|
|
@@ -14593,7 +14777,9 @@ TransactionHeaderOrderModule.decorators = [
|
|
|
14593
14777
|
TransactionHeaderBlockModule,
|
|
14594
14778
|
InputCheckboxModule,
|
|
14595
14779
|
PipeModule,
|
|
14596
|
-
PriceDisplayPipeModule
|
|
14780
|
+
PriceDisplayPipeModule,
|
|
14781
|
+
DialogTransactionHeaderDiscountModule,
|
|
14782
|
+
TransactionHeaderDefinitiveModule
|
|
14597
14783
|
],
|
|
14598
14784
|
declarations: [
|
|
14599
14785
|
TransactionHeaderOrderComponent
|
|
@@ -14617,7 +14803,9 @@ class TransactionHeaderPaymentComponent extends TransactionBaseComponent {
|
|
|
14617
14803
|
showClass() {
|
|
14618
14804
|
return true;
|
|
14619
14805
|
}
|
|
14620
|
-
openPayment() {
|
|
14806
|
+
openPayment(event) {
|
|
14807
|
+
event.preventDefault();
|
|
14808
|
+
event.stopPropagation();
|
|
14621
14809
|
this.showPaymentDialog = true;
|
|
14622
14810
|
}
|
|
14623
14811
|
}
|
|
@@ -14635,7 +14823,7 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
14635
14823
|
</co-transaction-header-block>
|
|
14636
14824
|
<ng-template #headerBlock>
|
|
14637
14825
|
<div class="header-block-label" [textContent]="'BALANCE' | localize"></div>
|
|
14638
|
-
<div class="header-block-balance" *ngIf="transactionInfo.transactionKind !== transactionKind.PurchaseOrder" (click)="openPayment()">
|
|
14826
|
+
<div class="header-block-balance" *ngIf="transactionInfo.transactionKind !== transactionKind.PurchaseOrder" (click)="openPayment($event)">
|
|
14639
14827
|
<co-icon class="payment-icon" [iconData]="iconService.getIcon(icons.CreditCardSolid)"></co-icon>
|
|
14640
14828
|
<div class="payment-payed-wrapper">
|
|
14641
14829
|
<span class="payment-paid" [textContent]="200 | priceDisplay"></span>
|
|
@@ -14712,7 +14900,8 @@ TransactionHeaderPaymentModule.decorators = [
|
|
|
14712
14900
|
PaymentModule,
|
|
14713
14901
|
IconModule,
|
|
14714
14902
|
TransactionHeaderDownpaymentPercentageModule,
|
|
14715
|
-
TransactionHeaderDownpaymentAmountModule
|
|
14903
|
+
TransactionHeaderDownpaymentAmountModule,
|
|
14904
|
+
DialogTransactionHeaderDiscountModule
|
|
14716
14905
|
],
|
|
14717
14906
|
declarations: [
|
|
14718
14907
|
TransactionHeaderPaymentComponent
|
|
@@ -15142,6 +15331,8 @@ class TransactionLinePriceComponent extends TransactionLineBaseComponent {
|
|
|
15142
15331
|
return this._editMode;
|
|
15143
15332
|
}
|
|
15144
15333
|
handleClick(event) {
|
|
15334
|
+
event.preventDefault();
|
|
15335
|
+
event.stopPropagation();
|
|
15145
15336
|
if (!this.readonly) {
|
|
15146
15337
|
this.editMode = true;
|
|
15147
15338
|
}
|
|
@@ -15438,6 +15629,8 @@ class TransactionLineDeliveryDateComponent extends TransactionLineBaseComponent
|
|
|
15438
15629
|
return this._editMode;
|
|
15439
15630
|
}
|
|
15440
15631
|
handleClick(event) {
|
|
15632
|
+
event.preventDefault();
|
|
15633
|
+
event.stopPropagation();
|
|
15441
15634
|
if (!this.readonly) {
|
|
15442
15635
|
this.editMode = true;
|
|
15443
15636
|
}
|
|
@@ -16004,6 +16197,8 @@ class TransactionLineDescriptionComponent extends TransactionLineBaseComponent {
|
|
|
16004
16197
|
return this._editMode;
|
|
16005
16198
|
}
|
|
16006
16199
|
handleClick(event) {
|
|
16200
|
+
event.preventDefault();
|
|
16201
|
+
event.stopPropagation();
|
|
16007
16202
|
if (!this.readonly) {
|
|
16008
16203
|
this.editMode = true;
|
|
16009
16204
|
}
|
|
@@ -17352,6 +17547,41 @@ DialogTransactionLineWarehouseModule.decorators = [
|
|
|
17352
17547
|
},] }
|
|
17353
17548
|
];
|
|
17354
17549
|
|
|
17550
|
+
class DialogTransactionLineDeliveryMethodComponent extends DialogTransactionLineBaseComponent {
|
|
17551
|
+
showClass() {
|
|
17552
|
+
return true;
|
|
17553
|
+
}
|
|
17554
|
+
}
|
|
17555
|
+
DialogTransactionLineDeliveryMethodComponent.decorators = [
|
|
17556
|
+
{ type: Component, args: [{
|
|
17557
|
+
selector: "co-dialog-transaction-line-delivery-method",
|
|
17558
|
+
template: `
|
|
17559
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
17560
|
+
<co-transaction-line-delivery-method
|
|
17561
|
+
[autoClose]="autoClose"
|
|
17562
|
+
[useModel]="useModel"
|
|
17563
|
+
[transactionInfo]="transactionInfo"
|
|
17564
|
+
[transactionLine]="transactionLine"
|
|
17565
|
+
[searchText]="searchText"
|
|
17566
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
17567
|
+
(valueChange)="handleValueChange($event)"></co-transaction-line-delivery-method>
|
|
17568
|
+
</co-dialog>
|
|
17569
|
+
<ng-template #dialogHeader>
|
|
17570
|
+
<co-dialog-header-search [title]="'DELIVERY_METHOD'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
17571
|
+
</ng-template>
|
|
17572
|
+
<ng-template #footerTemplate>
|
|
17573
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useModel">
|
|
17574
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
17575
|
+
</div>
|
|
17576
|
+
</ng-template>
|
|
17577
|
+
`,
|
|
17578
|
+
encapsulation: ViewEncapsulation.None
|
|
17579
|
+
},] }
|
|
17580
|
+
];
|
|
17581
|
+
DialogTransactionLineDeliveryMethodComponent.propDecorators = {
|
|
17582
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-delivery-method",] }]
|
|
17583
|
+
};
|
|
17584
|
+
|
|
17355
17585
|
class DialogTransactionLineDeliveryMethodModule {
|
|
17356
17586
|
}
|
|
17357
17587
|
DialogTransactionLineDeliveryMethodModule.decorators = [
|
|
@@ -17373,6 +17603,41 @@ DialogTransactionLineDeliveryMethodModule.decorators = [
|
|
|
17373
17603
|
},] }
|
|
17374
17604
|
];
|
|
17375
17605
|
|
|
17606
|
+
class DialogTransactionLineVatComponent extends DialogTransactionLineBaseComponent {
|
|
17607
|
+
showClass() {
|
|
17608
|
+
return true;
|
|
17609
|
+
}
|
|
17610
|
+
}
|
|
17611
|
+
DialogTransactionLineVatComponent.decorators = [
|
|
17612
|
+
{ type: Component, args: [{
|
|
17613
|
+
selector: "co-dialog-transaction-line-vat",
|
|
17614
|
+
template: `
|
|
17615
|
+
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate" [showCloseIcon]="useModel" (closeClick)="handleClose(buttonType.Ok)">
|
|
17616
|
+
<co-transaction-line-vat
|
|
17617
|
+
[autoClose]="autoClose"
|
|
17618
|
+
[useModel]="useModel"
|
|
17619
|
+
[transactionLine]="transactionLine"
|
|
17620
|
+
[searchText]="searchText"
|
|
17621
|
+
(closeAfterCommit)="handleClose(buttonType.Ok)"
|
|
17622
|
+
(valueChange)="handleValueChange($event)"
|
|
17623
|
+
></co-transaction-line-vat>
|
|
17624
|
+
</co-dialog>
|
|
17625
|
+
<ng-template #dialogHeader>
|
|
17626
|
+
<co-dialog-header-search [title]="'VAT'" (search)="handleSearch($event)"></co-dialog-header-search>
|
|
17627
|
+
</ng-template>
|
|
17628
|
+
<ng-template #footerTemplate>
|
|
17629
|
+
<div class="dialog-footer-button-wrapper" *ngIf="!useModel">
|
|
17630
|
+
<co-button [label]="'OK' | localize" (click)="handleOkClick()"></co-button>
|
|
17631
|
+
</div>
|
|
17632
|
+
</ng-template>
|
|
17633
|
+
`,
|
|
17634
|
+
encapsulation: ViewEncapsulation.None
|
|
17635
|
+
},] }
|
|
17636
|
+
];
|
|
17637
|
+
DialogTransactionLineVatComponent.propDecorators = {
|
|
17638
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-vat",] }]
|
|
17639
|
+
};
|
|
17640
|
+
|
|
17376
17641
|
class DialogTransactionLineVatModule {
|
|
17377
17642
|
}
|
|
17378
17643
|
DialogTransactionLineVatModule.decorators = [
|
|
@@ -17394,6 +17659,100 @@ DialogTransactionLineVatModule.decorators = [
|
|
|
17394
17659
|
},] }
|
|
17395
17660
|
];
|
|
17396
17661
|
|
|
17662
|
+
class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseComponent {
|
|
17663
|
+
constructor(_dialogService, _service) {
|
|
17664
|
+
super();
|
|
17665
|
+
this._dialogService = _dialogService;
|
|
17666
|
+
this._service = _service;
|
|
17667
|
+
this.showPriceListDialog = false;
|
|
17668
|
+
}
|
|
17669
|
+
showClass() {
|
|
17670
|
+
return true;
|
|
17671
|
+
}
|
|
17672
|
+
openThePriceListDialog() {
|
|
17673
|
+
this.showPriceListDialog = true;
|
|
17674
|
+
}
|
|
17675
|
+
transactionLineSet() {
|
|
17676
|
+
this._loadLinePricelist();
|
|
17677
|
+
}
|
|
17678
|
+
transactionInfoSet() {
|
|
17679
|
+
this.readonly = this.readonly || this.transactionInfo.transactionDefinitive;
|
|
17680
|
+
}
|
|
17681
|
+
_loadLinePricelist() {
|
|
17682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17683
|
+
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
17684
|
+
this._service.getPriceLists().then((lists) => {
|
|
17685
|
+
const priceList = lists.find(l => l.code === this.transactionLine.priceListCode);
|
|
17686
|
+
this.transactionLine.priceListDescription = priceList ? priceList.description : "";
|
|
17687
|
+
});
|
|
17688
|
+
}
|
|
17689
|
+
});
|
|
17690
|
+
}
|
|
17691
|
+
}
|
|
17692
|
+
DialogTransactionLineDiscountComponent.decorators = [
|
|
17693
|
+
{ type: Component, args: [{
|
|
17694
|
+
selector: "co-dialog-transaction-line-discount",
|
|
17695
|
+
template: `
|
|
17696
|
+
<co-dialog [headerTemplate]="dialogHeader" (closeClick)="handleClose(buttonType.Ok)">
|
|
17697
|
+
<div class="transaction-line-discount-wrapper co-transaction-small-toolbar">
|
|
17698
|
+
<div class="two-column-grid">
|
|
17699
|
+
<co-transaction-line-line-discount [transactionLine]="transactionLine"></co-transaction-line-line-discount>
|
|
17700
|
+
<co-transaction-line-discount-amount [transactionLine]="transactionLine"></co-transaction-line-discount-amount>
|
|
17701
|
+
</div>
|
|
17702
|
+
<div class="two-column-grid">
|
|
17703
|
+
<co-transaction-line-special-discount [transactionLine]="transactionLine"></co-transaction-line-special-discount>
|
|
17704
|
+
<co-transaction-line-quantum-discount [transactionLine]="transactionLine"></co-transaction-line-quantum-discount>
|
|
17705
|
+
</div>
|
|
17706
|
+
<div class="two-column-grid">
|
|
17707
|
+
<co-input-text [placeholder]="'SURCHARGE_AMOUNT' | localize" [model]="transactionLine.surchargeAmount" [readonly]="readonly"></co-input-text>
|
|
17708
|
+
<co-input-text [placeholder]="'BUSINESS_RULE_DISCOUNT' | localize" [model]="'NIET_GEIMPLEMENTEERD'" [readonly]="readonly"></co-input-text>
|
|
17709
|
+
</div>
|
|
17710
|
+
<div class="transaction-line-discount-overview">
|
|
17711
|
+
<div class="transaction-line-discount-overview-item">
|
|
17712
|
+
<div class="title" [textContent]="'TRANSACTION_DISCOUNT' | localize"></div>
|
|
17713
|
+
<div class="value" [class.transaction-negative-value]="transactionLine.discountAmount < 0" [textContent]="transactionLine.discountAmount | coCurrency"></div>
|
|
17714
|
+
</div>
|
|
17715
|
+
<div class="transaction-line-discount-overview-item">
|
|
17716
|
+
<div class="title" [textContent]="'BUSINESS_RULE_DISCOUNT' | localize"></div>
|
|
17717
|
+
<div class="value" [textContent]="'NIET_GEIMPLEMENTEERD'"></div>
|
|
17718
|
+
</div>
|
|
17719
|
+
<div class="transaction-line-discount-overview-item">
|
|
17720
|
+
<div class="title" [textContent]="'QUANTUM_DISCOUNT' | localize"></div>
|
|
17721
|
+
<div class="value" [class.transaction-negative-value]="transactionLine.quantumDiscount < 0" [textContent]="transactionLine.quantumDiscount | coCurrency"></div>
|
|
17722
|
+
</div>
|
|
17723
|
+
<div class="transaction-line-discount-overview-item">
|
|
17724
|
+
<div class="title" [textContent]="'SURCHARGE_AMOUNT' | localize"></div>
|
|
17725
|
+
<div class="value" [class.transaction-negative-value]="transactionLine.surchargeAmount < 0" [textContent]="transactionLine.surchargeAmount | coCurrency"></div>
|
|
17726
|
+
</div>
|
|
17727
|
+
<div class="transaction-line-discount-overview-item total">
|
|
17728
|
+
<div class="title" [textContent]="'TOTAL_LINE_DISCOUNT' | localize"></div>
|
|
17729
|
+
<div class="value" [class.transaction-negative-value]="transactionLine.lineTotalDiscountAmount < 0" [textContent]="transactionLine.lineTotalDiscountAmount | coCurrency"></div>
|
|
17730
|
+
</div>
|
|
17731
|
+
</div>
|
|
17732
|
+
</div>
|
|
17733
|
+
</co-dialog>
|
|
17734
|
+
<ng-template #dialogHeader>
|
|
17735
|
+
<div class="dialog-header-title" [textContent]="'DISCOUNT_PRICE_INFORMATION' | localize"></div>
|
|
17736
|
+
<div class="transaction-line-button big" (click)="openThePriceListDialog()">
|
|
17737
|
+
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.priceListDescription"></span>
|
|
17738
|
+
</div>
|
|
17739
|
+
</ng-template>
|
|
17740
|
+
<co-dialog-transaction-line-price-list *ngIf="showPriceListDialog"
|
|
17741
|
+
[transactionLine]="transactionLine"
|
|
17742
|
+
(close)="showPriceListDialog = false"
|
|
17743
|
+
></co-dialog-transaction-line-price-list>
|
|
17744
|
+
`,
|
|
17745
|
+
encapsulation: ViewEncapsulation.None
|
|
17746
|
+
},] }
|
|
17747
|
+
];
|
|
17748
|
+
DialogTransactionLineDiscountComponent.ctorParameters = () => [
|
|
17749
|
+
{ type: DialogService },
|
|
17750
|
+
{ type: TransactionService }
|
|
17751
|
+
];
|
|
17752
|
+
DialogTransactionLineDiscountComponent.propDecorators = {
|
|
17753
|
+
showClass: [{ type: HostBinding, args: ["class.co-dialog-transaction-line-discount",] }]
|
|
17754
|
+
};
|
|
17755
|
+
|
|
17397
17756
|
class DialogTransactionLinePriceListComponent extends DialogTransactionLineBaseComponent {
|
|
17398
17757
|
showClass() {
|
|
17399
17758
|
return true;
|
|
@@ -18369,16 +18728,6 @@ class TransactionTileComponent {
|
|
|
18369
18728
|
handleSidePanelButtonClicked() {
|
|
18370
18729
|
this.showSidePanelClicked.next(this._transactionLine);
|
|
18371
18730
|
}
|
|
18372
|
-
getStatusColor(n) {
|
|
18373
|
-
switch (n) {
|
|
18374
|
-
case 0:
|
|
18375
|
-
return '#5fdbb2';
|
|
18376
|
-
case 1:
|
|
18377
|
-
return '#f78852';
|
|
18378
|
-
case 2:
|
|
18379
|
-
return '#f23a3a';
|
|
18380
|
-
}
|
|
18381
|
-
}
|
|
18382
18731
|
_loadLineImage() {
|
|
18383
18732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18384
18733
|
if (this._transactionLine && this._transactionLine.isArticle) {
|
|
@@ -18416,9 +18765,7 @@ TransactionTileComponent.decorators = [
|
|
|
18416
18765
|
</div>
|
|
18417
18766
|
|
|
18418
18767
|
<div class="transaction-order-status-row">
|
|
18419
|
-
<
|
|
18420
|
-
<div *ngFor="let n of [0, 1, 2]" [style.background]="getStatusColor(n)" class="transaction-order-status-indicator"></div>
|
|
18421
|
-
</div>
|
|
18768
|
+
<co-transaction-line-statusbar [transaction]="transactionLine" [transactionKind]="transactionType"></co-transaction-line-statusbar>
|
|
18422
18769
|
</div>
|
|
18423
18770
|
|
|
18424
18771
|
<div class="transaction-data-row center">
|
|
@@ -18484,7 +18831,8 @@ TransactionTileModule.decorators = [
|
|
|
18484
18831
|
IconModule,
|
|
18485
18832
|
PipeModule,
|
|
18486
18833
|
FormsModule,
|
|
18487
|
-
PriceDisplayPipeModule
|
|
18834
|
+
PriceDisplayPipeModule,
|
|
18835
|
+
TransactionLineStatusbarModule
|
|
18488
18836
|
],
|
|
18489
18837
|
declarations: [
|
|
18490
18838
|
TransactionTileComponent
|
|
@@ -18521,6 +18869,8 @@ class EditableLabelComponent {
|
|
|
18521
18869
|
return true;
|
|
18522
18870
|
}
|
|
18523
18871
|
handleClick(event) {
|
|
18872
|
+
event.preventDefault();
|
|
18873
|
+
event.stopPropagation();
|
|
18524
18874
|
if (!this.readonly) {
|
|
18525
18875
|
this.editMode = true;
|
|
18526
18876
|
}
|
|
@@ -18779,33 +19129,47 @@ TransactionBaseLineModule.decorators = [
|
|
|
18779
19129
|
},] }
|
|
18780
19130
|
];
|
|
18781
19131
|
|
|
18782
|
-
class TransactionLineCommissionButtonComponent {
|
|
18783
|
-
constructor(
|
|
18784
|
-
|
|
19132
|
+
class TransactionLineCommissionButtonComponent extends TransactionLineBaseComponent {
|
|
19133
|
+
constructor(_service) {
|
|
19134
|
+
super();
|
|
19135
|
+
this._service = _service;
|
|
19136
|
+
this.showDialogCommissionCode = false;
|
|
18785
19137
|
}
|
|
18786
19138
|
showClass() {
|
|
18787
19139
|
return true;
|
|
18788
19140
|
}
|
|
18789
|
-
|
|
18790
|
-
this
|
|
19141
|
+
transactionLineSet() {
|
|
19142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19143
|
+
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
19144
|
+
this._service.getCommissionCodes('NL').then((codes) => {
|
|
19145
|
+
const commissionCode = codes.find(c => c.code === this.transactionLine.commissionCode);
|
|
19146
|
+
this.transactionLine.commissionDescription = commissionCode ? commissionCode.description : "";
|
|
19147
|
+
});
|
|
19148
|
+
}
|
|
19149
|
+
});
|
|
18791
19150
|
}
|
|
18792
19151
|
}
|
|
18793
19152
|
TransactionLineCommissionButtonComponent.decorators = [
|
|
18794
19153
|
{ type: Component, args: [{
|
|
18795
19154
|
selector: "co-transaction-line-commission-button",
|
|
18796
19155
|
template: `
|
|
18797
|
-
<div class="transaction-line-button" (click)="
|
|
18798
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="
|
|
19156
|
+
<div class="transaction-line-button" (click)="showDialogCommissionCode = true">
|
|
19157
|
+
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.commissionCode | append:' | ' | append:transactionLine.commissionDescription"></span>
|
|
18799
19158
|
</div>
|
|
19159
|
+
<co-dialog-transaction-line-commission-code *ngIf="showDialogCommissionCode"
|
|
19160
|
+
[autoClose]="true"
|
|
19161
|
+
[transactionInfo]="transactionInfo"
|
|
19162
|
+
[transactionLine]="transactionLine"
|
|
19163
|
+
(close)="showDialogCommissionCode = false"
|
|
19164
|
+
></co-dialog-transaction-line-commission-code>
|
|
18800
19165
|
`,
|
|
18801
19166
|
encapsulation: ViewEncapsulation.None
|
|
18802
19167
|
},] }
|
|
18803
19168
|
];
|
|
18804
19169
|
TransactionLineCommissionButtonComponent.ctorParameters = () => [
|
|
18805
|
-
{ type:
|
|
19170
|
+
{ type: TransactionService }
|
|
18806
19171
|
];
|
|
18807
19172
|
TransactionLineCommissionButtonComponent.propDecorators = {
|
|
18808
|
-
line: [{ type: Input }],
|
|
18809
19173
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-commission-button",] }]
|
|
18810
19174
|
};
|
|
18811
19175
|
|
|
@@ -18815,7 +19179,8 @@ TransactionLineCommissionButtonModule.decorators = [
|
|
|
18815
19179
|
{ type: NgModule, args: [{
|
|
18816
19180
|
imports: [
|
|
18817
19181
|
CommonModule,
|
|
18818
|
-
PipeModule
|
|
19182
|
+
PipeModule,
|
|
19183
|
+
DialogTransactionLineCommissionCodeModule
|
|
18819
19184
|
],
|
|
18820
19185
|
declarations: [
|
|
18821
19186
|
TransactionLineCommissionButtonComponent
|
|
@@ -18826,41 +19191,51 @@ TransactionLineCommissionButtonModule.decorators = [
|
|
|
18826
19191
|
},] }
|
|
18827
19192
|
];
|
|
18828
19193
|
|
|
18829
|
-
class TransactionLineWarehouseButtonComponent {
|
|
18830
|
-
constructor(iconCacheService,
|
|
19194
|
+
class TransactionLineWarehouseButtonComponent extends TransactionLineBaseComponent {
|
|
19195
|
+
constructor(iconCacheService, service) {
|
|
19196
|
+
super();
|
|
18831
19197
|
this.iconCacheService = iconCacheService;
|
|
18832
|
-
this.
|
|
19198
|
+
this.service = service;
|
|
18833
19199
|
this.icons = Icon;
|
|
18834
|
-
this.
|
|
19200
|
+
this.showDialogWarehouse = false;
|
|
18835
19201
|
}
|
|
18836
19202
|
showClass() {
|
|
18837
19203
|
return true;
|
|
18838
19204
|
}
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
this.
|
|
18842
|
-
|
|
19205
|
+
transactionLineSet() {
|
|
19206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19207
|
+
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
19208
|
+
this.service.getWarehouses().then((warehouses) => {
|
|
19209
|
+
const warehouse = warehouses.find(w => w.warehouseNo === this.transactionLine.warehouseNumber);
|
|
19210
|
+
this.transactionLine.warehouseDescription = warehouse ? warehouse.description : "";
|
|
19211
|
+
});
|
|
19212
|
+
}
|
|
19213
|
+
});
|
|
18843
19214
|
}
|
|
18844
19215
|
}
|
|
18845
19216
|
TransactionLineWarehouseButtonComponent.decorators = [
|
|
18846
19217
|
{ type: Component, args: [{
|
|
18847
19218
|
selector: "co-transaction-line-warehouse-button",
|
|
18848
19219
|
template: `
|
|
18849
|
-
<div class="transaction-line-button" [class.no-pointer]="readonly" (click)="
|
|
19220
|
+
<div class="transaction-line-button" [class.no-pointer]="readonly" (click)="showDialogWarehouse = true">
|
|
18850
19221
|
<co-icon class="header-warehouse-icon" [iconData]="iconCacheService.getIcon(icons.Warehouse)"></co-icon>
|
|
18851
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="
|
|
19222
|
+
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.warehouseNumber"></span>
|
|
18852
19223
|
</div>
|
|
19224
|
+
<co-dialog-transaction-line-warehouse *ngIf="showDialogWarehouse"
|
|
19225
|
+
[autoClose]="true"
|
|
19226
|
+
[transactionInfo]="transactionInfo"
|
|
19227
|
+
[transactionLine]="transactionLine"
|
|
19228
|
+
(close)="showDialogWarehouse = false"
|
|
19229
|
+
></co-dialog-transaction-line-warehouse>
|
|
18853
19230
|
`,
|
|
18854
19231
|
encapsulation: ViewEncapsulation.None
|
|
18855
19232
|
},] }
|
|
18856
19233
|
];
|
|
18857
19234
|
TransactionLineWarehouseButtonComponent.ctorParameters = () => [
|
|
18858
19235
|
{ type: IconCacheService },
|
|
18859
|
-
{ type:
|
|
19236
|
+
{ type: TransactionService }
|
|
18860
19237
|
];
|
|
18861
19238
|
TransactionLineWarehouseButtonComponent.propDecorators = {
|
|
18862
|
-
line: [{ type: Input }],
|
|
18863
|
-
readonly: [{ type: Input }],
|
|
18864
19239
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-warehouse-button",] }]
|
|
18865
19240
|
};
|
|
18866
19241
|
|
|
@@ -18870,7 +19245,8 @@ TransactionLineWarehouseButtonModule.decorators = [
|
|
|
18870
19245
|
{ type: NgModule, args: [{
|
|
18871
19246
|
imports: [
|
|
18872
19247
|
CommonModule,
|
|
18873
|
-
IconModule
|
|
19248
|
+
IconModule,
|
|
19249
|
+
DialogTransactionLineWarehouseModule
|
|
18874
19250
|
],
|
|
18875
19251
|
declarations: [
|
|
18876
19252
|
TransactionLineWarehouseButtonComponent
|
|
@@ -18881,37 +19257,51 @@ TransactionLineWarehouseButtonModule.decorators = [
|
|
|
18881
19257
|
},] }
|
|
18882
19258
|
];
|
|
18883
19259
|
|
|
18884
|
-
class TransactionLineDeliveryButtonComponent {
|
|
18885
|
-
constructor(iconCacheService,
|
|
19260
|
+
class TransactionLineDeliveryButtonComponent extends TransactionLineBaseComponent {
|
|
19261
|
+
constructor(iconCacheService, service) {
|
|
19262
|
+
super();
|
|
18886
19263
|
this.iconCacheService = iconCacheService;
|
|
18887
|
-
this.
|
|
19264
|
+
this.service = service;
|
|
18888
19265
|
this.icons = Icon;
|
|
19266
|
+
this.showDialogDeliveryMethod = false;
|
|
18889
19267
|
}
|
|
18890
19268
|
showClass() {
|
|
18891
19269
|
return true;
|
|
18892
19270
|
}
|
|
18893
|
-
|
|
18894
|
-
this
|
|
19271
|
+
transactionLineSet() {
|
|
19272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19273
|
+
if (this.transactionLine && this.transactionLine.isArticle) {
|
|
19274
|
+
this.service.getDeliveryMethods().then((methods) => {
|
|
19275
|
+
const method = methods.find(m => m.code === this.transactionLine.deliveryMethodCode);
|
|
19276
|
+
this.transactionLine.deliveryMethodDescription = method ? method.description : "";
|
|
19277
|
+
});
|
|
19278
|
+
}
|
|
19279
|
+
});
|
|
18895
19280
|
}
|
|
18896
19281
|
}
|
|
18897
19282
|
TransactionLineDeliveryButtonComponent.decorators = [
|
|
18898
19283
|
{ type: Component, args: [{
|
|
18899
19284
|
selector: "co-transaction-line-delivery-button",
|
|
18900
19285
|
template: `
|
|
18901
|
-
<div class="transaction-line-button big" (click)="
|
|
19286
|
+
<div class="transaction-line-button big" (click)="showDialogDeliveryMethod = true">
|
|
18902
19287
|
<co-icon class="header-delivery-truck-icon" [iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"></co-icon>
|
|
18903
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="
|
|
19288
|
+
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryMethodDescription"></span>
|
|
18904
19289
|
</div>
|
|
19290
|
+
<co-dialog-transaction-line-delivery-method *ngIf="showDialogDeliveryMethod"
|
|
19291
|
+
[autoClose]="true"
|
|
19292
|
+
[transactionInfo]="transactionInfo"
|
|
19293
|
+
[transactionLine]="transactionLine"
|
|
19294
|
+
(close)="showDialogDeliveryMethod = false"
|
|
19295
|
+
></co-dialog-transaction-line-delivery-method>
|
|
18905
19296
|
`,
|
|
18906
19297
|
encapsulation: ViewEncapsulation.None
|
|
18907
19298
|
},] }
|
|
18908
19299
|
];
|
|
18909
19300
|
TransactionLineDeliveryButtonComponent.ctorParameters = () => [
|
|
18910
19301
|
{ type: IconCacheService },
|
|
18911
|
-
{ type:
|
|
19302
|
+
{ type: TransactionService }
|
|
18912
19303
|
];
|
|
18913
19304
|
TransactionLineDeliveryButtonComponent.propDecorators = {
|
|
18914
|
-
line: [{ type: Input }],
|
|
18915
19305
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-delivery-button",] }]
|
|
18916
19306
|
};
|
|
18917
19307
|
|
|
@@ -18921,7 +19311,8 @@ TransactionLineDeliveryButtonModule.decorators = [
|
|
|
18921
19311
|
{ type: NgModule, args: [{
|
|
18922
19312
|
imports: [
|
|
18923
19313
|
CommonModule,
|
|
18924
|
-
IconModule
|
|
19314
|
+
IconModule,
|
|
19315
|
+
DialogTransactionLineDeliveryMethodModule
|
|
18925
19316
|
],
|
|
18926
19317
|
declarations: [
|
|
18927
19318
|
TransactionLineDeliveryButtonComponent
|
|
@@ -18947,7 +19338,7 @@ TransactionLineDeliveryDateButtonComponent.decorators = [
|
|
|
18947
19338
|
template: `
|
|
18948
19339
|
<div class="transaction-line-button custom-width no-border">
|
|
18949
19340
|
<span [textContent]="'DELIVERY_DATE' | localize | append:':'" class="small-font"></span>
|
|
18950
|
-
<span class="co-transaction-overflow-ellipsis" [textContent]="
|
|
19341
|
+
<span class="co-transaction-overflow-ellipsis" [textContent]="transactionLine.deliveryDate | date:'dd MMM YYYY'"></span>
|
|
18951
19342
|
<co-icon class="header-delivery-date-icon" [iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
|
|
18952
19343
|
</div>
|
|
18953
19344
|
`,
|
|
@@ -18958,7 +19349,7 @@ TransactionLineDeliveryDateButtonComponent.ctorParameters = () => [
|
|
|
18958
19349
|
{ type: IconCacheService }
|
|
18959
19350
|
];
|
|
18960
19351
|
TransactionLineDeliveryDateButtonComponent.propDecorators = {
|
|
18961
|
-
|
|
19352
|
+
transactionLine: [{ type: Input }],
|
|
18962
19353
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-delivery-date-button",] }]
|
|
18963
19354
|
};
|
|
18964
19355
|
|
|
@@ -19002,7 +19393,10 @@ TransactionOverviewLineModule.decorators = [
|
|
|
19002
19393
|
TransactionLineCommissionButtonModule,
|
|
19003
19394
|
TransactionLineWarehouseButtonModule,
|
|
19004
19395
|
TransactionLineDeliveryButtonModule,
|
|
19005
|
-
TransactionLineDeliveryDateButtonModule
|
|
19396
|
+
TransactionLineDeliveryDateButtonModule,
|
|
19397
|
+
DialogTransactionLineVatModule,
|
|
19398
|
+
DialogTransactionLineDiscountModule,
|
|
19399
|
+
TransactionLineStatusbarModule
|
|
19006
19400
|
],
|
|
19007
19401
|
declarations: [
|
|
19008
19402
|
TransactionOverviewLineComponent
|
|
@@ -19013,57 +19407,6 @@ TransactionOverviewLineModule.decorators = [
|
|
|
19013
19407
|
},] }
|
|
19014
19408
|
];
|
|
19015
19409
|
|
|
19016
|
-
class StatusBarComponent {
|
|
19017
|
-
constructor(iconCacheService) {
|
|
19018
|
-
this.iconCacheService = iconCacheService;
|
|
19019
|
-
this.icons = Icon;
|
|
19020
|
-
}
|
|
19021
|
-
showClass() {
|
|
19022
|
-
return true;
|
|
19023
|
-
}
|
|
19024
|
-
}
|
|
19025
|
-
StatusBarComponent.decorators = [
|
|
19026
|
-
{ type: Component, args: [{
|
|
19027
|
-
selector: "co-status-bar",
|
|
19028
|
-
template: `
|
|
19029
|
-
<div>
|
|
19030
|
-
<!--Tijdelijk visueel voorbeeld:-->
|
|
19031
|
-
<div class="status-bar-icons-wrapper">
|
|
19032
|
-
<co-icon class="color-green" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
|
|
19033
|
-
<co-icon class="color-orange" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
|
|
19034
|
-
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
19035
|
-
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
19036
|
-
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
19037
|
-
</div>
|
|
19038
|
-
</div>
|
|
19039
|
-
`,
|
|
19040
|
-
encapsulation: ViewEncapsulation.None
|
|
19041
|
-
},] }
|
|
19042
|
-
];
|
|
19043
|
-
StatusBarComponent.ctorParameters = () => [
|
|
19044
|
-
{ type: IconCacheService }
|
|
19045
|
-
];
|
|
19046
|
-
StatusBarComponent.propDecorators = {
|
|
19047
|
-
showClass: [{ type: HostBinding, args: ["class.co-status-bar",] }]
|
|
19048
|
-
};
|
|
19049
|
-
|
|
19050
|
-
class StatusBarModule {
|
|
19051
|
-
}
|
|
19052
|
-
StatusBarModule.decorators = [
|
|
19053
|
-
{ type: NgModule, args: [{
|
|
19054
|
-
imports: [
|
|
19055
|
-
CommonModule,
|
|
19056
|
-
IconModule
|
|
19057
|
-
],
|
|
19058
|
-
declarations: [
|
|
19059
|
-
StatusBarComponent
|
|
19060
|
-
],
|
|
19061
|
-
exports: [
|
|
19062
|
-
StatusBarComponent
|
|
19063
|
-
]
|
|
19064
|
-
},] }
|
|
19065
|
-
];
|
|
19066
|
-
|
|
19067
19410
|
class TransactionOrderDeliveryLineModule {
|
|
19068
19411
|
}
|
|
19069
19412
|
TransactionOrderDeliveryLineModule.decorators = [
|
|
@@ -19074,10 +19417,10 @@ TransactionOrderDeliveryLineModule.decorators = [
|
|
|
19074
19417
|
TransactionLineWarehouseButtonModule,
|
|
19075
19418
|
TransactionLineDeliveryButtonModule,
|
|
19076
19419
|
TransactionLineDeliveryDateButtonModule,
|
|
19077
|
-
StatusBarModule,
|
|
19078
19420
|
EditableLabelModule,
|
|
19079
19421
|
PipeModule,
|
|
19080
|
-
InputNumberPickerModule
|
|
19422
|
+
InputNumberPickerModule,
|
|
19423
|
+
TransactionLineStatusbarModule
|
|
19081
19424
|
],
|
|
19082
19425
|
declarations: [
|
|
19083
19426
|
TransactionOrderDeliveryLineComponent
|
|
@@ -19171,6 +19514,136 @@ ShoppingCartModule.decorators = [
|
|
|
19171
19514
|
},] }
|
|
19172
19515
|
];
|
|
19173
19516
|
|
|
19517
|
+
class TransactionSearchComponent {
|
|
19518
|
+
constructor(transactionSearchService) {
|
|
19519
|
+
this.transactionSearchService = transactionSearchService;
|
|
19520
|
+
this.searchViewModes = SearchViewMode;
|
|
19521
|
+
this.orientations = CoOrientation;
|
|
19522
|
+
this.directionRight = CoDirection.Right;
|
|
19523
|
+
this.transactionClick = new EventEmitter();
|
|
19524
|
+
this.searchViewModeChange = new EventEmitter();
|
|
19525
|
+
}
|
|
19526
|
+
set transactionType(value) {
|
|
19527
|
+
this._transactionType = value;
|
|
19528
|
+
this.transactionSearchService.transactionType = this._transactionType;
|
|
19529
|
+
}
|
|
19530
|
+
get transactionType() {
|
|
19531
|
+
return this._transactionType;
|
|
19532
|
+
}
|
|
19533
|
+
showClass() {
|
|
19534
|
+
return true;
|
|
19535
|
+
}
|
|
19536
|
+
onTransactionClick(transaction) {
|
|
19537
|
+
if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
|
|
19538
|
+
this.collapseSearchBar();
|
|
19539
|
+
}
|
|
19540
|
+
this._scrollToTop();
|
|
19541
|
+
this.transactionClick.emit(transaction);
|
|
19542
|
+
}
|
|
19543
|
+
onSearchViewResizeClick() {
|
|
19544
|
+
if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
|
|
19545
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
19546
|
+
}
|
|
19547
|
+
else {
|
|
19548
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
19549
|
+
}
|
|
19550
|
+
this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
|
|
19551
|
+
}
|
|
19552
|
+
onSideCollapseHandleClick() {
|
|
19553
|
+
this.toggleSearchBar();
|
|
19554
|
+
}
|
|
19555
|
+
toggleSearchBar() {
|
|
19556
|
+
if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
|
|
19557
|
+
this.expandSearchBar();
|
|
19558
|
+
}
|
|
19559
|
+
else {
|
|
19560
|
+
this.collapseSearchBar();
|
|
19561
|
+
}
|
|
19562
|
+
}
|
|
19563
|
+
collapseSearchBar() {
|
|
19564
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
19565
|
+
this.transactionSearchService.activeSearchBarViewMode = SearchbarViewMode.Collapsed;
|
|
19566
|
+
this.searchViewModeChange.emit(this.searchViewModes.SideBar);
|
|
19567
|
+
}
|
|
19568
|
+
expandSearchBar() {
|
|
19569
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
19570
|
+
this.transactionSearchService.activeSearchBarViewMode = SearchbarViewMode.Expanded;
|
|
19571
|
+
this.searchViewModeChange.emit(this.searchViewModes.SideBar);
|
|
19572
|
+
}
|
|
19573
|
+
calculateClasses() {
|
|
19574
|
+
return {
|
|
19575
|
+
'fullscreen': this.transactionSearchService.fullscreen,
|
|
19576
|
+
'sidebar': !this.transactionSearchService.fullscreen,
|
|
19577
|
+
'collapsed': this.transactionSearchService.collapsed,
|
|
19578
|
+
'expanded': !this.transactionSearchService.collapsed,
|
|
19579
|
+
};
|
|
19580
|
+
}
|
|
19581
|
+
_scrollToTop() {
|
|
19582
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
19583
|
+
}
|
|
19584
|
+
}
|
|
19585
|
+
TransactionSearchComponent.decorators = [
|
|
19586
|
+
{ type: Component, args: [{
|
|
19587
|
+
selector: 'co-transaction-search',
|
|
19588
|
+
template: `
|
|
19589
|
+
<div class="transaction-search-main-wrapper">
|
|
19590
|
+
<div class="transaction-search-wrapper"
|
|
19591
|
+
[ngClass]="calculateClasses()">
|
|
19592
|
+
<div class="transaction-filter-wrapper narrow-scrollbar"
|
|
19593
|
+
[ngClass]="calculateClasses()"
|
|
19594
|
+
*ngIf="transactionSearchService.showFilterSidebar" @showHideFilterSidebar>
|
|
19595
|
+
<co-transaction-filter
|
|
19596
|
+
[transactionType]="transactionType"
|
|
19597
|
+
[activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
|
|
19598
|
+
(closeButtonClick)="transactionSearchService.handleHideFilter()"
|
|
19599
|
+
(resetFilterClick)="transactionSearchService.handleResetFilter()"></co-transaction-filter>
|
|
19600
|
+
</div>
|
|
19601
|
+
<div class="transaction-search-result-wrapper"
|
|
19602
|
+
[class.fullscreen]="transactionSearchService.fullscreen"
|
|
19603
|
+
[class.sidebar]="!transactionSearchService.fullscreen"
|
|
19604
|
+
[class.collapsed]="transactionSearchService.collapsed"
|
|
19605
|
+
[class.expanded]="!transactionSearchService.collapsed"
|
|
19606
|
+
>
|
|
19607
|
+
<co-transaction-search-result
|
|
19608
|
+
[transactionType]="transactionType"
|
|
19609
|
+
[activeSearchViewMode]="transactionSearchService.activeSearchViewMode"
|
|
19610
|
+
(filterClick)="transactionSearchService.toggleFilter()"
|
|
19611
|
+
(transactionClick)="onTransactionClick($event)"
|
|
19612
|
+
(resizeClick)="onSearchViewResizeClick()"
|
|
19613
|
+
(closeClick)="collapseSearchBar()"
|
|
19614
|
+
></co-transaction-search-result>
|
|
19615
|
+
</div>
|
|
19616
|
+
</div>
|
|
19617
|
+
<div class="transaction-search-content-wrapper"
|
|
19618
|
+
[class.fullscreen]="transactionSearchService.fullscreen"
|
|
19619
|
+
[class.sidebar]="!transactionSearchService.fullscreen"
|
|
19620
|
+
[class.collapsed]="transactionSearchService.collapsed"
|
|
19621
|
+
[class.expanded]="!transactionSearchService.collapsed"
|
|
19622
|
+
>
|
|
19623
|
+
<ng-content></ng-content>
|
|
19624
|
+
</div>
|
|
19625
|
+
</div>
|
|
19626
|
+
`,
|
|
19627
|
+
animations: [
|
|
19628
|
+
trigger("showHideFilterSidebar", [
|
|
19629
|
+
state("void", style({ transform: 'translateX(-100%)' })),
|
|
19630
|
+
state("*", style({ transform: 'translateX(0)' })),
|
|
19631
|
+
transition("void <=> *", animate("200ms ease-in-out"))
|
|
19632
|
+
])
|
|
19633
|
+
],
|
|
19634
|
+
encapsulation: ViewEncapsulation.None
|
|
19635
|
+
},] }
|
|
19636
|
+
];
|
|
19637
|
+
TransactionSearchComponent.ctorParameters = () => [
|
|
19638
|
+
{ type: TransactionSearchService }
|
|
19639
|
+
];
|
|
19640
|
+
TransactionSearchComponent.propDecorators = {
|
|
19641
|
+
transactionType: [{ type: Input }],
|
|
19642
|
+
transactionClick: [{ type: Output }],
|
|
19643
|
+
searchViewModeChange: [{ type: Output }],
|
|
19644
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
|
|
19645
|
+
};
|
|
19646
|
+
|
|
19174
19647
|
class TransactionFilterComponent {
|
|
19175
19648
|
constructor(_mappingService, _compFactoryResolver, appRef, injector, searchService) {
|
|
19176
19649
|
this._mappingService = _mappingService;
|
|
@@ -19197,6 +19670,7 @@ class TransactionFilterComponent {
|
|
|
19197
19670
|
}
|
|
19198
19671
|
set activeSearchViewMode(value) {
|
|
19199
19672
|
this._activeSearchViewMode = value;
|
|
19673
|
+
//localStorage.setItem('viewMode', value);
|
|
19200
19674
|
}
|
|
19201
19675
|
get activeSearchViewMode() {
|
|
19202
19676
|
return this._activeSearchViewMode;
|
|
@@ -19996,11 +20470,9 @@ TransactionFilterHistoricStateComponent.decorators = [
|
|
|
19996
20470
|
[placeholder]="label"
|
|
19997
20471
|
[customContent]="true">
|
|
19998
20472
|
<co-input-radio-button *ngFor="let state of states"
|
|
19999
|
-
[name]="groupName"
|
|
20000
|
-
[value]="state.value"
|
|
20001
20473
|
[model]="state.checked"
|
|
20002
20474
|
[label]="state.label | localize"
|
|
20003
|
-
(modelChange)="handleStateChange(
|
|
20475
|
+
(modelChange)="handleStateChange(state.value)"
|
|
20004
20476
|
></co-input-radio-button>
|
|
20005
20477
|
</co-transaction-filter-item>
|
|
20006
20478
|
`,
|
|
@@ -20368,8 +20840,8 @@ class TransactionStatusbarComponent {
|
|
|
20368
20840
|
//this.getStatusbarLine(),// Factuurcheck todo: als BE gereed is
|
|
20369
20841
|
];
|
|
20370
20842
|
}
|
|
20371
|
-
getStatusbarLine(label,
|
|
20372
|
-
return { label: this._dictionary.get(label), percentage: this.calculatePercentage(
|
|
20843
|
+
getStatusbarLine(label, quantity) {
|
|
20844
|
+
return { label: this._dictionary.get(label), percentage: this.calculatePercentage(quantity, this._total) };
|
|
20373
20845
|
}
|
|
20374
20846
|
calculatePercentage(amount, totalAmount) {
|
|
20375
20847
|
if (amount === 0 || totalAmount === 0) {
|
|
@@ -20522,11 +20994,12 @@ TransactionSearchHeaderComponent.decorators = [
|
|
|
20522
20994
|
[noIcon]="true"
|
|
20523
20995
|
[(model)]="searchService.searchRequest.general"
|
|
20524
20996
|
[placeholder]="'SEARCH_NUMBER_CUSTOMER_OR_DATE' | localize"
|
|
20997
|
+
[initFocus]="true"
|
|
20525
20998
|
(search)="searchService.searchTransactions()"></co-input-search>
|
|
20526
20999
|
</div>
|
|
20527
21000
|
<div>
|
|
20528
21001
|
<co-button class="transaction-search-filter-button"
|
|
20529
|
-
|
|
21002
|
+
|
|
20530
21003
|
[iconData]="iconCacheService.getIcon(icon.BarsFilter)"
|
|
20531
21004
|
(click)="filterButtonClick.emit()">
|
|
20532
21005
|
</co-button>
|
|
@@ -20883,37 +21356,41 @@ TransactionSearchResultComponent.decorators = [
|
|
|
20883
21356
|
</co-transaction-search-header>
|
|
20884
21357
|
</div>
|
|
20885
21358
|
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
|
|
21359
|
+
<div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
21360
|
+
*ngIf="activeContentViewMode === contentViewModes.Tiles">
|
|
21361
|
+
<div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
|
|
21362
|
+
<co-transaction-search-tile
|
|
21363
|
+
[transaction]="transaction"
|
|
21364
|
+
[transactionType]="transactionType"
|
|
21365
|
+
[class]="transaction === selectedTransaction ? 'selected' : ''"
|
|
21366
|
+
(transactionClick)="onTransactionClick($event)">
|
|
21367
|
+
</co-transaction-search-tile>
|
|
21368
|
+
</div>
|
|
20895
21369
|
</div>
|
|
20896
|
-
</div>
|
|
20897
21370
|
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
|
|
20914
|
-
|
|
20915
|
-
|
|
20916
|
-
|
|
21371
|
+
<div class="transaction-search-result-content-grid-wrapper"
|
|
21372
|
+
*ngIf="activeContentViewMode === contentViewModes.Grid">
|
|
21373
|
+
<co-transaction-search-grid
|
|
21374
|
+
[transactionType]="transactionType"
|
|
21375
|
+
(transactionClick)="onTransactionClick($event)"
|
|
21376
|
+
></co-transaction-search-grid>
|
|
21377
|
+
</div>
|
|
21378
|
+
<co-pagination-bar *ngIf="searchService.transactions?.length > 0"
|
|
21379
|
+
[currentPage]="searchService.currentPage"
|
|
21380
|
+
[itemsPerPage]="searchService.transactionsPerPage"
|
|
21381
|
+
[totalItems]="searchService.resultCount"
|
|
21382
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
21383
|
+
[nextLabel]="'NEXT' | localize"
|
|
21384
|
+
[autoHide]="true"
|
|
21385
|
+
[directionLinks]="fullscreen"
|
|
21386
|
+
[paginationRange]="!fullscreen ? 6 : 8"
|
|
21387
|
+
(previousClick)="onPreviousClick()"
|
|
21388
|
+
(nextClick)="onNextClick()"
|
|
21389
|
+
(pageClick)="onPageClick($event)">
|
|
21390
|
+
</co-pagination-bar>
|
|
21391
|
+
<div class="empty-state-wrapper" *ngIf="this.searchService.transactions && this.searchService.resultCount === 0">
|
|
21392
|
+
<span [textContent]="'0_RESULTS_FOUND' | localize"></span>
|
|
21393
|
+
</div>
|
|
20917
21394
|
`,
|
|
20918
21395
|
encapsulation: ViewEncapsulation.None
|
|
20919
21396
|
},] }
|
|
@@ -21698,5 +22175,5 @@ TransactionLineGridModule.decorators = [
|
|
|
21698
22175
|
* Generated bundle index. Do not edit.
|
|
21699
22176
|
*/
|
|
21700
22177
|
|
|
21701
|
-
export { CheckoutComponent, CheckoutModule, SearchBarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineStatusbarComponent, TransactionLineStatusbarModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionStatusbarComponent, TransactionStatusbarModule, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, IconCacheService as ɵba, CharacteristicAnswerModule as ɵbb, CharacteristicAnswerComponent as ɵbc, WarehouseModule as ɵbd, WarehouseComponent as ɵbe, ImageDisplayComponent as ɵbf, IconComponent as ɵbg, CustomerGroupsComponent as ɵbh, StockStatusIndicatorComponent as ɵbi, LoaderComponent as ɵbj, LazyRenderMasterDirective as ɵbk, LazyRenderDirective as ɵbl, RelationAddressModule as ɵbm, RelationAddressComponent as ɵbn, RelationBaseComponent as ɵbo, RelationAddressSelectModule as ɵbp, RelationAddressTileModule as ɵbq, TileModule as ɵbr, TileComponent as ɵbs, RelationAddressTileComponent as ɵbt, RelationAddressSelectComponent as ɵbu, BusinessObjectFactory as ɵbv, StepperModule as ɵbw, StepperComponent as ɵbx, StepperStepComponent as ɵby, TransactionLineModule as ɵbz, DynamicComponentService as ɵc, TransactionLineComponent as ɵca, TransactionMappingService as ɵcb, TransactionArticleTextModule as ɵcc, TransactionArticleTextComponent as ɵcd, TransactionReceiveGoodsService as ɵce, TransactionEventService as ɵcf, AvatarModule as ɵcg, AvatarComponent as ɵch, SharedService as ɵci, SharedConnectorService as ɵcj, DeliveryTypeTileModule as ɵck, DeliveryTypeTileComponent as ɵcl, PaymentModule as ɵcm, PaymentTileModule as ɵcn, PaymentTileComponent as ɵco, PaymentQrCodeModule as ɵcp, PaymentQrCodeComponent as ɵcq, PaymentComponent as ɵcr, PaymentService as ɵcs, RelationTypeModule as ɵct, RelationTypeComponent as ɵcu, RelationGeneralModule as ɵcv, RelationSuggestionsListModule as ɵcw, RelationSuggestionsListItemModule as ɵcx, RelationSuggestionsListItemComponent as ɵcy, RelationSuggestionsListComponent as ɵcz, OptionsService as ɵd, RelationGeneralComponent as ɵda, RelationAddressesModule as ɵdb, RelationAddressesComponent as ɵdc, RelationContactDetailsModule as ɵdd, RelationContactDetailsComponent as ɵde, RelationPreferencesModule as ɵdf, RelationPreferencesComponent as ɵdg, TransactionHeaderBlockModule as ɵdh, TransactionHeaderBlockComponent as ɵdi, TransactionHeaderDeliveryDateModule as ɵdj, TransactionHeaderDeliveryDateComponent as ɵdk, TransactionHeaderBaseComponent as ɵdl, TransactionFilterPopupBaseComponent as ɵdm, TransactionHeaderDeliveryOptionsModule as ɵdn, TransactionHeaderDeliveryOptionsComponent as ɵdo, TransactionHeaderRemarksModule as ɵdp, TransactionHeaderRemarksComponent as ɵdq, TransactionHeaderReferenceModule as ɵdr, TransactionHeaderReferenceComponent as ɵds, TransactionHeaderRelationReferenceModule as ɵdt, TransactionHeaderRelationReferenceComponent as ɵdu, TransactionHeaderDeliveryMethodModule as ɵdv, TransactionLineCheckboxModule as ɵdw, TransactionLineCheckboxListComponent as ɵdx, TransactionHeaderDeliveryMethodComponent as ɵdy, TransactionHeaderPreferredDeliveryDateModule as ɵdz, DictionaryService as ɵe, TransactionHeaderPreferredDeliveryDateComponent as ɵea, DialogTransactionHeaderDeliveryMethodModule as ɵeb, DialogHeaderSearchModule as ɵec, DialogHeaderSearchComponent as ɵed, DialogTransactionHeaderDeliveryMethodComponent as ɵee, DialogTransactionHeaderBaseComponent as ɵef, TransactionBaseComponent as ɵeg, TransactionHeaderPartialDeliveryModule as ɵeh, TransactionHeaderPartialDeliveryComponent as ɵei, TransactionHeaderDownpaymentPercentageModule as ɵej, TransactionHeaderDownpaymentPercentageComponent as ɵek, TransactionHeaderDownpaymentAmountModule as ɵel, TransactionHeaderDownpaymentAmountComponent as ɵem, TransactionHeaderDefinitiveModule as ɵen, TransactionHeaderDefinitiveComponent as ɵeo, TransactionHeaderBranchModule as ɵep, TransactionHeaderBranchComponent as ɵeq, TransactionHeaderAdministrativeRelationModule as ɵer, TransactionHeaderAdministrativeRelationComponent as ɵes, TransactionHeaderMarketingModule as ɵet, TransactionHeaderMarketingComponent as ɵeu, CheckoutOverviewRelationEditComponent as ɵev, CheckoutOverviewDeliveryEditComponent as ɵew, CheckoutOverviewDeliveryAddressComponent as ɵex, CheckoutOverviewPaymentComponent as ɵey, CheckoutLoginComponent as ɵez, TransactionConnectorService as ɵf, TransactionFilterCategoriesModule as ɵfa, TransactionFilterCategoriesComponent as ɵfb, TransactionHeaderPaymentModule as ɵfc, TransactionHeaderPaymentComponent as ɵfd, TransactionLinesGridModule as ɵfe, TransactionBaseGridModule as ɵff, TransactionLineSidePanelModule as ɵfg, TransactionLineSidePanelDefaultModule as ɵfh, TransactionLinePriceModule as ɵfi, TransactionLinePriceComponent as ɵfj, TransactionLineBaseComponent as ɵfk, TransactionLinePriceListModule as ɵfl, TransactionLinePriceListComponent as ɵfm, TransactionLineVatModule as ɵfn, TransactionLineVatComponent as ɵfo, TransactionLineQuantityModule as ɵfp, TransactionLineQuantityComponent as ɵfq, TransactionLineLineDiscountModule as ɵfr, TransactionLineLineDiscountComponent as ɵfs, TransactionLineDeliveryMethodModule as ɵft, TransactionLineDeliveryMethodComponent as ɵfu, TransactionLineDeliveryDateModule as ɵfv, TransactionLineDeliveryDateComponent as ɵfw, TransactionLineReferenceModule as ɵfx, TransactionLineReferenceComponent as ɵfy, TransactionLineCommissionCodeModule as ɵfz, TransactionConnectorAdapterService as ɵg, TransactionLineCommissionCodeComponent as ɵga, TransactionLineWarehouseModule as ɵgb, TransactionLineWarehouseComponent as ɵgc, TransactionLineDiscountAmountModule as ɵgd, TransactionLineDiscountAmountComponent as ɵge, TransactionLineQuantumDiscountModule as ɵgf, TransactionLineQuantumDiscountComponent as ɵgg, TransactionLineSpecialDiscountModule as ɵgh, TransactionLineSpecialDiscountComponent as ɵgi, TransactionLineSupplierModule as ɵgj, TransactionLineSupplierComponent as ɵgk, TransactionLineDescriptionModule as ɵgl, TransactionLineDescriptionComponent as ɵgm, TransactionLineSidePanelDefaultComponent as ɵgn, TransactionReceivingGoodsHistoryModule as ɵgo, TransactionHistoryGridModule as ɵgp, TransactionHistoryGridStatusModule as ɵgq, TransactionHistoryGridStatusComponent as ɵgr, TransactionHistoryGridComponent as ɵgs, TransactionReceivingGoodsHistoryComponent as ɵgt, TransactionReceivingGoodsDetailsModule as ɵgu, TransactionReceivingGoodsDetailsComponent as ɵgv, ArticleService as ɵgw, TransactionButtonBarModule as ɵgx, TransactionButtonBarComponent as ɵgy, TransactionButtonBarButtonComponent as ɵgz, SelectMultipleCacheService as ɵh, TransactionLineSidePanelPurchaseModule as ɵha, DefaultOkCancelButtonsModule as ɵhb, DefaultOkCancelButtonsComponent as ɵhc, TransactionLineSidePanelPurchaseComponent as ɵhd, TransactionLineSidePanelComponent as ɵhe, DynamicBaseComponent as ɵhf, TransactionLineActionButtonsModule as ɵhg, TransactionArticleTextOverviewModule as ɵhh, TransactionArticleTextOverviewComponent as ɵhi, TransactionLineActionButtonsComponent as ɵhj, TransactionBaseGridComponent as ɵhk, TransactionGridBaseComponent as ɵhl, TransactionImageService as ɵhm, DialogTransactionLineCommissionCodeModule as ɵhn, DialogTransactionLineCommissionCodeComponent as ɵho, DialogTransactionLineBaseComponent as ɵhp, DialogTransactionLineWarehouseModule as ɵhq, DialogTransactionLineWarehouseComponent as ɵhr, DialogTransactionLineWarehouseCcModule as ɵhs, DialogTransactionLineWarehouseCcComponent as ɵht, DialogTransactionLineDeliveryMethodModule as ɵhu, DialogTransactionLineDeliveryMethodComponent as ɵhv, DialogTransactionLineVatModule as ɵhw, DialogTransactionLineVatComponent as ɵhx, DialogTransactionLineDiscountModule as ɵhy, DialogTransactionLinePriceListModule as ɵhz, BusinessObjectCacheManagerService as ɵi, DialogTransactionLinePriceListComponent as ɵia, DialogTransactionLineDiscountComponent as ɵib, TransactionLinesGridComponent as ɵic, DiscountModule as ɵid, DiscountComponent as ɵie, TransactionQuickAccessOverviewModule as ɵif, TransactionQuickAccessOverviewComponent as ɵig, TransactionQuickAccessOrderDeliveryModule as ɵih, TransactionQuickAccessOrderDeliveryComponent as ɵii, TransactionOrderConfirmationGridModule as ɵij, TransactionOrderConfirmationGridComponent as ɵik, TransactionReceivedGoodsGridModule as ɵil, DialogTransactionLineWarehouseLocationModule as ɵim, TransactionLineWarehouseLocationModule as ɵin, TransactionLineWarehouseLocationComponent as ɵio, DialogTransactionLineWarehouseLocationComponent as ɵip, TransactionLineWarehouseLocationButtonModule as ɵiq, TransactionLineWarehouseLocationButtonComponent as ɵir, TransactionReceivedGoodsGridComponent as ɵis, ViewModeButtonsModule as ɵit, ViewModeButtonsComponent as ɵiu, TransactionGridModule as ɵiv, TransactionGridComponent as ɵiw, TransactionTileModule as ɵix, TransactionTileComponent as ɵiy, TransactionOverviewLineModule as ɵiz, CacheField as ɵj, EditableLabelModule as ɵja, EditableLabelComponent as ɵjb, TransactionBaseLineModule as ɵjc, TransactionLineImageAndDescriptionModule as ɵjd, TransactionLineImageAndDescriptionComponent as ɵje, TransactionBaseLineComponent as ɵjf, TransactionLinesLineBaseComponent as ɵjg, TransactionLineCommissionButtonModule as ɵjh, TransactionLineCommissionButtonComponent as ɵji, TransactionLineWarehouseButtonModule as ɵjj, TransactionLineWarehouseButtonComponent as ɵjk, TransactionLineDeliveryButtonModule as ɵjl, TransactionLineDeliveryButtonComponent as ɵjm, TransactionLineDeliveryDateButtonModule as ɵjn, TransactionLineDeliveryDateButtonComponent as ɵjo, TransactionOverviewLineComponent as ɵjp, TransactionOrderDeliveryLineModule as ɵjq, StatusBarModule as ɵjr, StatusBarComponent as ɵjs, TransactionOrderDeliveryLineComponent as ɵjt, TransactionReceiveGoodsLineModule as ɵju, TransactionReceiveGoodsLineComponent as ɵjv, TransactionSearchResultModule as ɵjw, TransactionSearchSalesOrderTileModule as ɵjx, TransactionSearchSalesOrderTileComponent as ɵjy, TransactionSearchTileBaseComponent as ɵjz, SelectMultipleParameterizedCacheService as ɵk, TransactionSearchPurchaseOrderTileModule as ɵka, TransactionSearchPurchaseOrderTileComponent as ɵkb, TransactionSearchSalesOrderGridModule as ɵkc, TransactionSearchSalesOrderGridComponent as ɵkd, TransactionSearchGridBaseComponent as ɵke, TransactionSearchPurchaseOrderGridModule as ɵkf, TransactionSearchPurchaseOrderGridComponent as ɵkg, TransactionSearchHeaderModule as ɵkh, TransactionSearchHeaderComponent as ɵki, TransactionSearchGridModule as ɵkj, TransactionSearchGridComponent as ɵkk, TransactionSearchTileModule as ɵkl, TransactionSearchTileComponent as ɵkm, TransactionSearchResultComponent as ɵkn, TransactionSalesOrderFilterModule as ɵko, TransactionSalesOrderFilterContentOrderModule as ɵkp, TransactionFilterItemModule as ɵkq, TransactionFilterItemComponent as ɵkr, TransactionSalesOrderFilterContentOrderComponent as ɵks, TransactionFilterContentBaseComponent as ɵkt, FilterRequestService as ɵku, TransactionSalesOrderFilterContentLogisticsModule as ɵkv, TransactionFilterHistoricStateModule as ɵkw, TransactionFilterHistoricStateComponent as ɵkx, TransactionSalesOrderFilterContentLogisticsComponent as ɵky, TransactionSalesOrderFilterContentArticleModule as ɵkz, ErrorService as ɵl, TransactionSalesOrderFilterContentArticleComponent as ɵla, TransactionSalesOrderFilterComponent as ɵlb, TransactionFilterBaseComponent as ɵlc, TransactionPurchaseOrderFilterModule as ɵld, TransactionPurchaseOrderFilterContentOrderModule as ɵle, TransactionPurchaseOrderFilterContentOrderComponent as ɵlf, TransactionPurchaseOrderFilterContentLogisticsModule as ɵlg, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵlh, TransactionPurchaseOrderFilterContentArticleModule as ɵli, TransactionPurchaseOrderFilterContentArticleComponent as ɵlj, TransactionPurchaseOrderFilterComponent as ɵlk, TransactionFilterModule as ɵll, TransactionFilterComponent as ɵlm, SelectSingleCacheService as ɵm, ArticleConnectorService as ɵn, CoreModule as ɵo, ConfirmationDialogModule as ɵp, PipeModule as ɵq, AppendPipe as ɵr, DeliveryTimePipe as ɵs, DateDurationPipe as ɵt, LocalizePipe as ɵu, CoCurrencyPipe as ɵv, SafeStylePipe as ɵw, SafeHtmlPipe as ɵx, ConfirmationDialogComponent as ɵy, DialogBaseComponent as ɵz };
|
|
22178
|
+
export { CheckoutComponent, CheckoutModule, SearchViewMode, SearchbarViewMode, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineStatusbarComponent, TransactionLineStatusbarModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionSearchService, TransactionService, TransactionStatusbarComponent, TransactionStatusbarModule, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, IconCacheService as ɵba, CharacteristicAnswerModule as ɵbb, CharacteristicAnswerComponent as ɵbc, WarehouseModule as ɵbd, WarehouseComponent as ɵbe, ImageDisplayComponent as ɵbf, IconComponent as ɵbg, CustomerGroupsComponent as ɵbh, StockStatusIndicatorComponent as ɵbi, LoaderComponent as ɵbj, LazyRenderMasterDirective as ɵbk, LazyRenderDirective as ɵbl, RelationAddressModule as ɵbm, RelationAddressComponent as ɵbn, RelationBaseComponent as ɵbo, RelationAddressSelectModule as ɵbp, RelationAddressTileModule as ɵbq, TileModule as ɵbr, TileComponent as ɵbs, RelationAddressTileComponent as ɵbt, RelationAddressSelectComponent as ɵbu, BusinessObjectFactory as ɵbv, StepperModule as ɵbw, StepperComponent as ɵbx, StepperStepComponent as ɵby, TransactionLineModule as ɵbz, DynamicComponentService as ɵc, TransactionLineComponent as ɵca, TransactionMappingService as ɵcb, TransactionArticleTextModule as ɵcc, TransactionArticleTextComponent as ɵcd, TransactionReceiveGoodsService as ɵce, TransactionEventService as ɵcf, DialogTransactionHeaderDiscountModule as ɵcg, TransactionHeaderDiscountPercentageModule as ɵch, TransactionHeaderDiscountPercentageComponent as ɵci, TransactionHeaderBaseComponent as ɵcj, TransactionFilterPopupBaseComponent as ɵck, TransactionHeaderDiscountAmountModule as ɵcl, TransactionHeaderDiscountAmountComponent as ɵcm, TransactionHeaderDiscountTransactionTotalModule as ɵcn, TransactionHeaderDiscountTransactionTotalComponent as ɵco, DialogTransactionHeaderDiscountComponent as ɵcp, DialogTransactionHeaderBaseComponent as ɵcq, AvatarModule as ɵcr, AvatarComponent as ɵcs, SharedService as ɵct, SharedConnectorService as ɵcu, DeliveryTypeTileModule as ɵcv, DeliveryTypeTileComponent as ɵcw, PaymentModule as ɵcx, PaymentTileModule as ɵcy, PaymentTileComponent as ɵcz, OptionsService as ɵd, PaymentQrCodeModule as ɵda, PaymentQrCodeComponent as ɵdb, PaymentComponent as ɵdc, PaymentService as ɵdd, RelationTypeModule as ɵde, RelationTypeComponent as ɵdf, RelationGeneralModule as ɵdg, RelationSuggestionsListModule as ɵdh, RelationSuggestionsListItemModule as ɵdi, RelationSuggestionsListItemComponent as ɵdj, RelationSuggestionsListComponent as ɵdk, RelationGeneralComponent as ɵdl, RelationAddressesModule as ɵdm, RelationAddressesComponent as ɵdn, RelationContactDetailsModule as ɵdo, RelationContactDetailsComponent as ɵdp, RelationPreferencesModule as ɵdq, RelationPreferencesComponent as ɵdr, TransactionHeaderBlockModule as ɵds, TransactionHeaderBlockComponent as ɵdt, TransactionHeaderDeliveryDateModule as ɵdu, TransactionHeaderDeliveryDateComponent as ɵdv, TransactionHeaderDeliveryOptionsModule as ɵdw, TransactionHeaderDeliveryOptionsComponent as ɵdx, TransactionHeaderRemarksModule as ɵdy, TransactionHeaderRemarksComponent as ɵdz, DictionaryService as ɵe, TransactionHeaderReferenceModule as ɵea, TransactionHeaderReferenceComponent as ɵeb, TransactionHeaderRelationReferenceModule as ɵec, TransactionHeaderRelationReferenceComponent as ɵed, TransactionHeaderDeliveryMethodModule as ɵee, TransactionLineCheckboxModule as ɵef, TransactionLineCheckboxListComponent as ɵeg, TransactionHeaderDeliveryMethodComponent as ɵeh, TransactionHeaderPreferredDeliveryDateModule as ɵei, TransactionHeaderPreferredDeliveryDateComponent as ɵej, DialogTransactionHeaderDeliveryMethodModule as ɵek, DialogHeaderSearchModule as ɵel, DialogHeaderSearchComponent as ɵem, DialogTransactionHeaderDeliveryMethodComponent as ɵen, TransactionHeaderPartialDeliveryModule as ɵeo, TransactionHeaderPartialDeliveryComponent as ɵep, TransactionBaseComponent as ɵeq, TransactionHeaderDownpaymentPercentageModule as ɵer, TransactionHeaderDownpaymentPercentageComponent as ɵes, TransactionHeaderDownpaymentAmountModule as ɵet, TransactionHeaderDownpaymentAmountComponent as ɵeu, TransactionHeaderDefinitiveModule as ɵev, TransactionHeaderDefinitiveComponent as ɵew, TransactionHeaderBranchModule as ɵex, TransactionHeaderBranchComponent as ɵey, TransactionHeaderAdministrativeRelationModule as ɵez, TransactionConnectorService as ɵf, TransactionHeaderAdministrativeRelationComponent as ɵfa, TransactionHeaderMarketingModule as ɵfb, TransactionHeaderMarketingComponent as ɵfc, CheckoutOverviewRelationEditComponent as ɵfd, CheckoutOverviewDeliveryEditComponent as ɵfe, CheckoutOverviewDeliveryAddressComponent as ɵff, CheckoutOverviewPaymentComponent as ɵfg, CheckoutLoginComponent as ɵfh, TransactionFilterCategoriesModule as ɵfi, TransactionFilterCategoriesComponent as ɵfj, TransactionHeaderPaymentModule as ɵfk, TransactionHeaderPaymentComponent as ɵfl, TransactionLinesGridModule as ɵfm, TransactionBaseGridModule as ɵfn, TransactionLineSidePanelModule as ɵfo, TransactionLineSidePanelDefaultModule as ɵfp, TransactionLinePriceModule as ɵfq, TransactionLinePriceComponent as ɵfr, TransactionLineBaseComponent as ɵfs, TransactionLinePriceListModule as ɵft, TransactionLinePriceListComponent as ɵfu, TransactionLineVatModule as ɵfv, TransactionLineVatComponent as ɵfw, TransactionLineQuantityModule as ɵfx, TransactionLineQuantityComponent as ɵfy, TransactionLineLineDiscountModule as ɵfz, TransactionConnectorAdapterService as ɵg, TransactionLineLineDiscountComponent as ɵga, TransactionLineDeliveryMethodModule as ɵgb, TransactionLineDeliveryMethodComponent as ɵgc, TransactionLineDeliveryDateModule as ɵgd, TransactionLineDeliveryDateComponent as ɵge, TransactionLineReferenceModule as ɵgf, TransactionLineReferenceComponent as ɵgg, TransactionLineCommissionCodeModule as ɵgh, TransactionLineCommissionCodeComponent as ɵgi, TransactionLineWarehouseModule as ɵgj, TransactionLineWarehouseComponent as ɵgk, TransactionLineDiscountAmountModule as ɵgl, TransactionLineDiscountAmountComponent as ɵgm, TransactionLineQuantumDiscountModule as ɵgn, TransactionLineQuantumDiscountComponent as ɵgo, TransactionLineSpecialDiscountModule as ɵgp, TransactionLineSpecialDiscountComponent as ɵgq, TransactionLineSupplierModule as ɵgr, TransactionLineSupplierComponent as ɵgs, TransactionLineDescriptionModule as ɵgt, TransactionLineDescriptionComponent as ɵgu, TransactionLineSidePanelDefaultComponent as ɵgv, TransactionReceivingGoodsHistoryModule as ɵgw, TransactionHistoryGridModule as ɵgx, TransactionHistoryGridStatusModule as ɵgy, TransactionHistoryGridStatusComponent as ɵgz, SelectMultipleCacheService as ɵh, TransactionHistoryGridComponent as ɵha, TransactionReceivingGoodsHistoryComponent as ɵhb, TransactionReceivingGoodsDetailsModule as ɵhc, TransactionReceivingGoodsDetailsComponent as ɵhd, ArticleService as ɵhe, TransactionButtonBarModule as ɵhf, TransactionButtonBarComponent as ɵhg, TransactionButtonBarButtonComponent as ɵhh, TransactionLineSidePanelPurchaseModule as ɵhi, DefaultOkCancelButtonsModule as ɵhj, DefaultOkCancelButtonsComponent as ɵhk, TransactionLineSidePanelPurchaseComponent as ɵhl, TransactionLineSidePanelComponent as ɵhm, DynamicBaseComponent as ɵhn, TransactionLineActionButtonsModule as ɵho, TransactionArticleTextOverviewModule as ɵhp, TransactionArticleTextOverviewComponent as ɵhq, TransactionLineActionButtonsComponent as ɵhr, TransactionBaseGridComponent as ɵhs, TransactionGridBaseComponent as ɵht, TransactionImageService as ɵhu, DialogTransactionLineCommissionCodeModule as ɵhv, DialogTransactionLineCommissionCodeComponent as ɵhw, DialogTransactionLineBaseComponent as ɵhx, DialogTransactionLineWarehouseModule as ɵhy, DialogTransactionLineWarehouseComponent as ɵhz, BusinessObjectCacheManagerService as ɵi, DialogTransactionLineWarehouseCcModule as ɵia, DialogTransactionLineWarehouseCcComponent as ɵib, DialogTransactionLineDeliveryMethodModule as ɵic, DialogTransactionLineDeliveryMethodComponent as ɵid, DialogTransactionLineVatModule as ɵie, DialogTransactionLineVatComponent as ɵif, DialogTransactionLineDiscountModule as ɵig, DialogTransactionLinePriceListModule as ɵih, DialogTransactionLinePriceListComponent as ɵii, DialogTransactionLineDiscountComponent as ɵij, TransactionLinesGridComponent as ɵik, DiscountModule as ɵil, DiscountComponent as ɵim, TransactionQuickAccessOverviewModule as ɵin, TransactionQuickAccessOverviewComponent as ɵio, TransactionQuickAccessOrderDeliveryModule as ɵip, TransactionQuickAccessOrderDeliveryComponent as ɵiq, TransactionOrderConfirmationGridModule as ɵir, TransactionOrderConfirmationGridComponent as ɵis, TransactionReceivedGoodsGridModule as ɵit, DialogTransactionLineWarehouseLocationModule as ɵiu, TransactionLineWarehouseLocationModule as ɵiv, TransactionLineWarehouseLocationComponent as ɵiw, DialogTransactionLineWarehouseLocationComponent as ɵix, TransactionLineWarehouseLocationButtonModule as ɵiy, TransactionLineWarehouseLocationButtonComponent as ɵiz, CacheField as ɵj, TransactionReceivedGoodsGridComponent as ɵja, ViewModeButtonsModule as ɵjb, ViewModeButtonsComponent as ɵjc, TransactionGridModule as ɵjd, TransactionGridComponent as ɵje, TransactionTileModule as ɵjf, TransactionTileComponent as ɵjg, TransactionOverviewLineModule as ɵjh, EditableLabelModule as ɵji, EditableLabelComponent as ɵjj, TransactionBaseLineModule as ɵjk, TransactionLineImageAndDescriptionModule as ɵjl, TransactionLineImageAndDescriptionComponent as ɵjm, TransactionBaseLineComponent as ɵjn, TransactionLinesLineBaseComponent as ɵjo, TransactionLineCommissionButtonModule as ɵjp, TransactionLineCommissionButtonComponent as ɵjq, TransactionLineWarehouseButtonModule as ɵjr, TransactionLineWarehouseButtonComponent as ɵjs, TransactionLineDeliveryButtonModule as ɵjt, TransactionLineDeliveryButtonComponent as ɵju, TransactionLineDeliveryDateButtonModule as ɵjv, TransactionLineDeliveryDateButtonComponent as ɵjw, TransactionOverviewLineComponent as ɵjx, TransactionOrderDeliveryLineModule as ɵjy, TransactionOrderDeliveryLineComponent as ɵjz, SelectMultipleParameterizedCacheService as ɵk, TransactionReceiveGoodsLineModule as ɵka, TransactionReceiveGoodsLineComponent as ɵkb, TransactionSearchResultModule as ɵkc, TransactionSearchSalesOrderTileModule as ɵkd, TransactionSearchSalesOrderTileComponent as ɵke, TransactionSearchTileBaseComponent as ɵkf, TransactionSearchPurchaseOrderTileModule as ɵkg, TransactionSearchPurchaseOrderTileComponent as ɵkh, TransactionSearchSalesOrderGridModule as ɵki, TransactionSearchSalesOrderGridComponent as ɵkj, TransactionSearchGridBaseComponent as ɵkk, TransactionSearchPurchaseOrderGridModule as ɵkl, TransactionSearchPurchaseOrderGridComponent as ɵkm, TransactionSearchHeaderModule as ɵkn, TransactionSearchHeaderComponent as ɵko, TransactionSearchGridModule as ɵkp, TransactionSearchGridComponent as ɵkq, TransactionSearchTileModule as ɵkr, TransactionSearchTileComponent as ɵks, TransactionSearchResultComponent as ɵkt, TransactionSalesOrderFilterModule as ɵku, TransactionSalesOrderFilterContentOrderModule as ɵkv, TransactionFilterItemModule as ɵkw, TransactionFilterItemComponent as ɵkx, TransactionSalesOrderFilterContentOrderComponent as ɵky, TransactionFilterContentBaseComponent as ɵkz, ErrorService as ɵl, FilterRequestService as ɵla, TransactionSalesOrderFilterContentLogisticsModule as ɵlb, TransactionFilterHistoricStateModule as ɵlc, TransactionFilterHistoricStateComponent as ɵld, TransactionSalesOrderFilterContentLogisticsComponent as ɵle, TransactionSalesOrderFilterContentArticleModule as ɵlf, TransactionSalesOrderFilterContentArticleComponent as ɵlg, TransactionSalesOrderFilterComponent as ɵlh, TransactionFilterBaseComponent as ɵli, TransactionPurchaseOrderFilterModule as ɵlj, TransactionPurchaseOrderFilterContentOrderModule as ɵlk, TransactionPurchaseOrderFilterContentOrderComponent as ɵll, TransactionPurchaseOrderFilterContentLogisticsModule as ɵlm, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵln, TransactionPurchaseOrderFilterContentArticleModule as ɵlo, TransactionPurchaseOrderFilterContentArticleComponent as ɵlp, TransactionPurchaseOrderFilterComponent as ɵlq, TransactionFilterModule as ɵlr, TransactionFilterComponent as ɵls, SelectSingleCacheService as ɵm, ArticleConnectorService as ɵn, CoreModule as ɵo, ConfirmationDialogModule as ɵp, PipeModule as ɵq, AppendPipe as ɵr, DeliveryTimePipe as ɵs, DateDurationPipe as ɵt, LocalizePipe as ɵu, CoCurrencyPipe as ɵv, SafeStylePipe as ɵw, SafeHtmlPipe as ɵx, ConfirmationDialogComponent as ɵy, DialogBaseComponent as ɵz };
|
|
21702
22179
|
//# sourceMappingURL=colijnit-transaction.js.map
|