@colijnit/transaction 12.1.22 → 12.1.25
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 +831 -185
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-12.1.25.tgz +0 -0
- package/colijnit-transaction.d.ts +144 -134
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +145 -135
- package/esm2015/lib/component/checkout/checkout.component.js +7 -9
- package/esm2015/lib/component/checkout/checkout.module.js +2 -2
- package/esm2015/lib/component/status-bar/status-bar.component.js +37 -0
- package/esm2015/lib/component/status-bar/status-bar.module.js +21 -0
- package/esm2015/lib/component/transaction/transaction.component.js +14 -7
- package/esm2015/lib/component/transaction/transaction.module.js +4 -2
- package/esm2015/lib/component/transaction-confirmation-details/transaction-confirmation-details.component.js +1 -1
- package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +33 -7
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +6 -2
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +7 -4
- package/esm2015/lib/component/transaction-header-fields/transaction-header-delivery-date.component.js +80 -0
- package/esm2015/lib/component/transaction-header-fields/transaction-header-fields-base.component.js +27 -0
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +6 -2
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +4 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date.component.js +4 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.component.js +81 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-description.module.js +23 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-fields-base.component.js +17 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.component.js +57 -0
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier.module.js +23 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +9 -8
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.js +8 -3
- package/esm2015/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.module.js +6 -2
- package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +16 -16
- package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +18 -5
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +20 -9
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-purchase-order-grid/transaction-search-purchase-order-grid.component.js +59 -53
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-purchase-order-grid/transaction-search-purchase-order-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.js +61 -52
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +2 -2
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +22 -7
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +4 -3
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.component.js +42 -33
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-purchase-order-tile/transaction-search-purchase-order-tile.module.js +4 -2
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +43 -35
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.js +3 -1
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +21 -20
- package/esm2015/lib/component/transaction-tile/transaction-tile.component.js +132 -0
- package/esm2015/lib/component/transaction-tile/transaction-tile.module.js +28 -0
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/pending-reason.service.js +44 -1
- package/esm2015/lib/service/transaction-connector.service.js +30 -1
- package/esm2015/lib/service/transaction.service.js +16 -1
- package/fesm2015/colijnit-transaction.js +982 -281
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/avatar/style/_layout.scss +11 -0
- package/lib/component/core/image-display/style/_layout.scss +1 -0
- package/lib/component/payment-qr-code/style/_layout.scss +2 -3
- package/lib/component/status-bar/status-bar.component.d.ts +8 -0
- package/lib/component/status-bar/status-bar.module.d.ts +2 -0
- package/lib/component/status-bar/style/_layout.scss +14 -0
- package/lib/component/status-bar/style/_material-definition.scss +5 -0
- package/lib/component/status-bar/style/_theme.scss +15 -0
- package/lib/component/status-bar/style/material.scss +3 -0
- package/lib/component/transaction/style/_layout.scss +18 -0
- package/lib/component/transaction-grid/transaction-history-grid/style/_layout.scss +14 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +6 -0
- package/lib/component/transaction-header-fields/transaction-header-delivery-date.component.d.ts +17 -0
- package/lib/component/transaction-header-fields/transaction-header-fields-base.component.d.ts +8 -0
- package/lib/component/transaction-line/style/_layout.scss +6 -0
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +1 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date.component.d.ts +1 -0
- package/lib/component/transaction-line-fields/transaction-line-description.component.d.ts +17 -0
- package/lib/component/transaction-line-fields/transaction-line-description.module.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-fields-base.component.d.ts +5 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier.component.d.ts +14 -0
- package/lib/component/transaction-line-fields/transaction-line-supplier.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +2 -3
- package/lib/component/transaction-line-side-panel-default/transaction-line-side-panel-default.component.d.ts +2 -0
- package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +4 -4
- package/lib/component/transaction-receiving-goods-history/style/_layout.scss +13 -0
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +6 -3
- package/lib/component/transaction-search/style/_layout.scss +1 -0
- package/lib/component/transaction-search/style/_material-definition.scss +12 -5
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +1 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +1 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +3 -1
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_layout.scss +103 -71
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-tile/style/_theme.scss +21 -19
- package/lib/component/transaction-tile/style/_layout.scss +162 -0
- package/lib/component/transaction-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-tile/style/_theme.scss +7 -0
- package/lib/component/transaction-tile/style/material.scss +3 -0
- package/lib/component/transaction-tile/transaction-tile.component.d.ts +23 -0
- package/lib/component/transaction-tile/transaction-tile.module.d.ts +2 -0
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/service/pending-reason.service.d.ts +5 -0
- package/lib/service/transaction-connector.service.d.ts +3 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -56,7 +56,8 @@ import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.b
|
|
|
56
56
|
import { ArticleLight } from '@colijnit/articleapi/build/model/article-light.bo';
|
|
57
57
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
58
58
|
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
59
|
-
import {
|
|
59
|
+
import { ResolveHeaderPendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-header-pending-reason-request.bo';
|
|
60
|
+
import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputTextComponent, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, InputDatePickerComponent, ColumnAlign, SimpleGridColumnDirective, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, InputSearchModule, FilterItemModule, PaginationModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
|
|
60
61
|
import { FlexModule } from '@angular/flex-layout';
|
|
61
62
|
import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
|
|
62
63
|
import { ContactOption } from '@colijnit/transactionapi/build/model/contact-option.bo';
|
|
@@ -73,11 +74,13 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
73
74
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
74
75
|
import { TransactionAddTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo';
|
|
75
76
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
77
|
+
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
76
78
|
import { RelationRequest } from '@colijnit/transactionapi/build/model/relation-request';
|
|
77
79
|
import { Sharedapi } from '@colijnit/sharedapi/build/sharedapi';
|
|
78
80
|
import { CoDocument } from '@colijnit/sharedapi/build/model/co-document.bo';
|
|
79
81
|
import { KeyPadModule } from '@colijnit/sharedcomponents';
|
|
80
82
|
import { DiscountType } from '@colijnit/transactionapi/build/enum/discount-type.enum';
|
|
83
|
+
import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
|
|
81
84
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
|
|
82
85
|
import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
|
|
83
86
|
import { PurchaseOrderLineReceiptDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo';
|
|
@@ -89,7 +92,6 @@ import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-
|
|
|
89
92
|
import { PurchasePortalFilters } from '@colijnit/transactionapi/build/model/purchase-portal-filters.bo';
|
|
90
93
|
import { DocDeliveryBatch } from '@colijnit/transactionapi/build/model/doc-delivery-batch.bo';
|
|
91
94
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
92
|
-
import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
|
|
93
95
|
import { QuantityInHistoricState } from '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum';
|
|
94
96
|
|
|
95
97
|
var LanguageCode;
|
|
@@ -2188,6 +2190,20 @@ class TransactionConnectorService {
|
|
|
2188
2190
|
});
|
|
2189
2191
|
});
|
|
2190
2192
|
}
|
|
2193
|
+
resolvePendingHeaderReason(pendingHeaderValues) {
|
|
2194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2195
|
+
return new Promise((resolve, reject) => {
|
|
2196
|
+
return this.connector.resolvePendingHeaderReason(pendingHeaderValues).then((result) => {
|
|
2197
|
+
if (result.validationResult && result.validationResult.success) {
|
|
2198
|
+
resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
|
|
2199
|
+
}
|
|
2200
|
+
else {
|
|
2201
|
+
reject(result.validationMessagesAsString);
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
});
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2191
2207
|
getCommissionCodes(languageCode) {
|
|
2192
2208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2193
2209
|
return new Promise((resolve, reject) => {
|
|
@@ -2604,6 +2620,21 @@ class TransactionConnectorService {
|
|
|
2604
2620
|
}
|
|
2605
2621
|
});
|
|
2606
2622
|
}
|
|
2623
|
+
changeHeaderTransactionDeliveryDate(uuid, date) {
|
|
2624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2625
|
+
const request = {
|
|
2626
|
+
transactionUuid: uuid,
|
|
2627
|
+
newDeliveryDate: date
|
|
2628
|
+
};
|
|
2629
|
+
const response = yield this.connector.changeHeaderTransactionDeliveryDate(request);
|
|
2630
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2631
|
+
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
|
|
2632
|
+
}
|
|
2633
|
+
else {
|
|
2634
|
+
return Promise.reject(response.validationMessagesAsString);
|
|
2635
|
+
}
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2607
2638
|
changeTransactionLineCollectionCode(uuid, lineUuid, code) {
|
|
2608
2639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2609
2640
|
const request = {
|
|
@@ -3052,6 +3083,19 @@ class PendingReasonService {
|
|
|
3052
3083
|
return success;
|
|
3053
3084
|
});
|
|
3054
3085
|
}
|
|
3086
|
+
handleHeaderOperationStatuses(response) {
|
|
3087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3088
|
+
if (!response.headerOperationStatuses || response.headerOperationStatuses.length === 0) {
|
|
3089
|
+
return true;
|
|
3090
|
+
}
|
|
3091
|
+
let success = true;
|
|
3092
|
+
for (let i = 0; i < response.headerOperationStatuses.length; i++) {
|
|
3093
|
+
const status = response.headerOperationStatuses[i];
|
|
3094
|
+
success = success && (yield this._handleHeaderOperationStatus(status, response.transactionInfo));
|
|
3095
|
+
}
|
|
3096
|
+
return success;
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3055
3099
|
_rememberCurrentTransaction(value) {
|
|
3056
3100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3057
3101
|
this.currentTransaction = value;
|
|
@@ -3090,6 +3134,20 @@ class PendingReasonService {
|
|
|
3090
3134
|
}
|
|
3091
3135
|
});
|
|
3092
3136
|
}
|
|
3137
|
+
_handleHeaderOperationStatus(operationStatus, transactionInfo) {
|
|
3138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3139
|
+
switch (operationStatus.pendingReasonType) {
|
|
3140
|
+
case PendingReasonType.ABORTED:
|
|
3141
|
+
case PendingReasonType.CANCELLED:
|
|
3142
|
+
return false;
|
|
3143
|
+
case PendingReasonType.CONFIRMATION_NEEDED:
|
|
3144
|
+
return yield this._confirmHeaderAction(transactionInfo.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
3145
|
+
case PendingReasonType.NONE:
|
|
3146
|
+
default:
|
|
3147
|
+
return true;
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3093
3151
|
resolvePendingLineReason(pendingLineValues) {
|
|
3094
3152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3095
3153
|
const response = yield this.connector.resolvePendingLineReason(pendingLineValues);
|
|
@@ -3097,6 +3155,13 @@ class PendingReasonService {
|
|
|
3097
3155
|
this.handleLineOperationStatuses(response);
|
|
3098
3156
|
});
|
|
3099
3157
|
}
|
|
3158
|
+
resolvePendingHeaderReason(pendingHeaderValues) {
|
|
3159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3160
|
+
const response = yield this.connector.resolvePendingHeaderReason(pendingHeaderValues);
|
|
3161
|
+
this._rememberCurrentTransaction(response);
|
|
3162
|
+
return this.handleHeaderOperationStatuses(response);
|
|
3163
|
+
});
|
|
3164
|
+
}
|
|
3100
3165
|
_confirmAction(uuid, reason, type) {
|
|
3101
3166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3102
3167
|
const reasonRequest = new ResolveLinePendingReasonRequest(uuid, reason, type);
|
|
@@ -3106,6 +3171,14 @@ class PendingReasonService {
|
|
|
3106
3171
|
// this._handleLineOperationStatus()
|
|
3107
3172
|
});
|
|
3108
3173
|
}
|
|
3174
|
+
_confirmHeaderAction(uuid, reason, type) {
|
|
3175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3176
|
+
const reasonRequest = new ResolveHeaderPendingReasonRequest(uuid, reason, type);
|
|
3177
|
+
// const pendingReasonText: string = await this._getPendingReasonText(this.currentOperationStatus.pendingReason);
|
|
3178
|
+
reasonRequest.confirmation = yield this.dialogService.showYesNo('Action', reason);
|
|
3179
|
+
return yield this.resolvePendingHeaderReason(reasonRequest);
|
|
3180
|
+
});
|
|
3181
|
+
}
|
|
3109
3182
|
_showReasonDialog(reason) {
|
|
3110
3183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3111
3184
|
this.dialogService.showInformation(reason);
|
|
@@ -3199,6 +3272,21 @@ class TransactionService extends PendingReasonService {
|
|
|
3199
3272
|
return false;
|
|
3200
3273
|
});
|
|
3201
3274
|
}
|
|
3275
|
+
updateHeaderTransactionDeliveryDate(uuid, date) {
|
|
3276
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3277
|
+
const response = yield this.connector.changeHeaderTransactionDeliveryDate(uuid, date)
|
|
3278
|
+
.catch((error) => {
|
|
3279
|
+
// todo: do something with the error
|
|
3280
|
+
return false;
|
|
3281
|
+
});
|
|
3282
|
+
if (response) {
|
|
3283
|
+
const success = yield this.handleHeaderOperationStatuses(response);
|
|
3284
|
+
this._rememberCurrentTransaction(response);
|
|
3285
|
+
return success;
|
|
3286
|
+
}
|
|
3287
|
+
return false;
|
|
3288
|
+
});
|
|
3289
|
+
}
|
|
3202
3290
|
updateQuantityTransactionLine(uuid, lineUuid, quantity) {
|
|
3203
3291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3204
3292
|
const response = yield this.connector.changeTransactionLineQuantity(uuid, lineUuid, quantity)
|
|
@@ -3773,10 +3861,9 @@ class CheckoutComponent {
|
|
|
3773
3861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3774
3862
|
if (this.checkoutRelation && this.stepRelation) {
|
|
3775
3863
|
const valid = this.checkoutRelation.submit();
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
// }
|
|
3864
|
+
if (valid) {
|
|
3865
|
+
this.stepRelation.completed = yield this.saveRelation();
|
|
3866
|
+
}
|
|
3780
3867
|
}
|
|
3781
3868
|
});
|
|
3782
3869
|
}
|
|
@@ -3784,10 +3871,9 @@ class CheckoutComponent {
|
|
|
3784
3871
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3785
3872
|
if (this.checkoutDelivery && this.stepDelivery) {
|
|
3786
3873
|
const valid = this.checkoutDelivery.submit();
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
// }
|
|
3874
|
+
if (valid) {
|
|
3875
|
+
this.stepDelivery.completed = yield this.handleSaveDelivery();
|
|
3876
|
+
}
|
|
3791
3877
|
}
|
|
3792
3878
|
});
|
|
3793
3879
|
}
|
|
@@ -3899,6 +3985,7 @@ var Icon;
|
|
|
3899
3985
|
Icon["CartShoppingSolid"] = "cart_shopping_solid";
|
|
3900
3986
|
Icon["CashRegister"] = "cash_register";
|
|
3901
3987
|
Icon["CreditCardSolid"] = "credit_card_solid";
|
|
3988
|
+
Icon["DeliveryStatusUncheck"] = "delivery_status_uncheck";
|
|
3902
3989
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
3903
3990
|
Icon["EditPencil"] = "edit_pencil";
|
|
3904
3991
|
Icon["IdealLogo"] = "ideal_logo";
|
|
@@ -3918,6 +4005,8 @@ var Icon;
|
|
|
3918
4005
|
Icon["ShelvesSolid"] = "shelves_solid";
|
|
3919
4006
|
Icon["SidePanel"] = "side_panel";
|
|
3920
4007
|
Icon["SlideIn"] = "slide_in";
|
|
4008
|
+
Icon["SquareFull"] = "square_full";
|
|
4009
|
+
Icon["SquareFullSolid"] = "square_full_solid";
|
|
3921
4010
|
Icon["SyncAlt"] = "sync_alt";
|
|
3922
4011
|
Icon["Tag"] = "tag";
|
|
3923
4012
|
Icon["ThickLines"] = "thick_lines";
|
|
@@ -4469,6 +4558,7 @@ const IconSvg = {
|
|
|
4469
4558
|
"cart_shopping_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M96 0C107.5 0 117.4 8.19 119.6 19.51L121.1 32H541.8C562.1 32 578.3 52.25 572.6 72.66L518.6 264.7C514.7 278.5 502.1 288 487.8 288H170.7L179.9 336H488C501.3 336 512 346.7 512 360C512 373.3 501.3 384 488 384H159.1C148.5 384 138.6 375.8 136.4 364.5L76.14 48H24C10.75 48 0 37.25 0 24C0 10.75 10.75 0 24 0H96zM128 464C128 437.5 149.5 416 176 416C202.5 416 224 437.5 224 464C224 490.5 202.5 512 176 512C149.5 512 128 490.5 128 464zM512 464C512 490.5 490.5 512 464 512C437.5 512 416 490.5 416 464C416 437.5 437.5 416 464 416C490.5 416 512 437.5 512 464z\"/></svg>",
|
|
4470
4559
|
"cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
|
|
4471
4560
|
"credit_card_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M512 32C547.3 32 576 60.65 576 96V128H0V96C0 60.65 28.65 32 64 32H512zM576 416C576 451.3 547.3 480 512 480H64C28.65 480 0 451.3 0 416V224H576V416zM112 352C103.2 352 96 359.2 96 368C96 376.8 103.2 384 112 384H176C184.8 384 192 376.8 192 368C192 359.2 184.8 352 176 352H112zM240 384H368C376.8 384 384 376.8 384 368C384 359.2 376.8 352 368 352H240C231.2 352 224 359.2 224 368C224 376.8 231.2 384 240 384z\"/></svg>",
|
|
4561
|
+
"delivery_status_uncheck": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50;\" ><style type=\"text/css\">.rect{fill:#514F4F;}</style><path class=\"rect\" d=\"M50,50H0.1V0H50V50z M41.5,8.2H8.6v33.2h32.9V8.2z\"/></svg>",
|
|
4472
4562
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
4473
4563
|
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
4474
4564
|
"ideal_logo": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 306.1 269.8\" style=\"enable-background:new 0 0 306.1 269.8;\" ><style type=\"text/css\">.st0{fill:#FFFFFF;}.st1{fill:#CC0066;}</style><g><g><path class=\"st0\" d=\"M0,20v229.8c0,11,9,20,20,20h137.3c103.8,0,148.8-58.1,148.8-135.2C306.1,57.9,261.1,0,157.3,0H20C9,0,0,9,0,20z\"/><path class=\"st1\" d=\"M91.9,56.4v169.8h73.9c67.1,0,96.2-37.9,96.2-91.5c0-51.3-29.1-91.1-96.2-91.1h-61.1C97.6,43.6,91.9,49.4,91.9,56.4z\"/><g><g><path d=\"M157.3,251.5H37.9c-10.6,0-19.2-8.6-19.2-19.2V37.6c0-10.6,8.6-19.2,19.2-19.2h119.4c113.3,0,130.2,72.9,130.2,116.3C287.5,210,241.2,251.5,157.3,251.5z M37.9,24.8c-7.1,0-12.8,5.7-12.8,12.8v194.7c0,7.1,5.7,12.8,12.8,12.8h119.4c79.8,0,123.8-39.2,123.8-110.4c0-95.6-77.6-109.9-123.8-109.9H37.9z\"/></g></g></g><g><path class=\"st0\" d=\"M117.9,111.8c2.6,0,5,0.4,7.3,1.2c2.3,0.8,4.2,2.1,5.9,3.7c1.6,1.7,2.9,3.8,3.9,6.2c0.9,2.5,1.4,5.4,1.4,8.8c0,3-0.4,5.7-1.1,8.2c-0.8,2.5-1.9,4.7-3.4,6.5c-1.5,1.8-3.4,3.2-5.7,4.3c-2.3,1-5,1.6-8.1,1.6h-17.5v-40.6H117.9z M117.3,144.9c1.3,0,2.5-0.2,3.8-0.6c1.2-0.4,2.3-1.1,3.2-2.1c0.9-1,1.7-2.2,2.3-3.8c0.6-1.6,0.9-3.4,0.9-5.7c0-2-0.2-3.9-0.6-5.5c-0.4-1.6-1.1-3.1-2-4.2s-2.1-2.1-3.6-2.7c-1.5-0.6-3.3-0.9-5.5-0.9h-6.4v25.6H117.3z\"/><path class=\"st0\" d=\"M172.5,111.8v7.5h-21.4v8.7h19.7v6.9h-19.7v9.9H173v7.5h-30.8v-40.6H172.5z\"/><path class=\"st0\" d=\"M203.1,111.8l15.2,40.6H209l-3.1-9h-15.2l-3.2,9h-9l15.3-40.6H203.1z M203.6,136.7l-5.1-14.9h-0.1l-5.3,14.9H203.6z\"/><path class=\"st0\" d=\"M232.8,111.8v33.1h19.8v7.5h-28.7v-40.6H232.8z\"/></g><g><circle cx=\"58.5\" cy=\"132.1\" r=\"18.7\"/></g><path d=\"M72.6,226.2L72.6,226.2c-15.7,0-28.3-12.7-28.3-28.3v-22.1c0-7.8,6.3-14.2,14.2-14.2h0c7.8,0,14.2,6.3,14.2,14.2V226.2z\"/></g></svg>",
|
|
@@ -4488,6 +4578,8 @@ const IconSvg = {
|
|
|
4488
4578
|
"shelves_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M608 0c-17.6 0-32 14.4-32 31.1V160H64V31.1C64 14.4 49.6 0 32 0S0 14.4 0 31.1v480h64v-32h512v32h64v-480C640 14.4 625.6 0 608 0zM576 416H64V224h512V416zM368 128h96C472.8 128 480 120.8 480 112v-96C480 7.25 472.8 0 464 0h-96C359.2 0 352 7.25 352 16v96C352 120.8 359.2 128 368 128zM112 384h96C216.8 384 224 376.8 224 368v-96C224 263.2 216.8 256 208 256h-96C103.2 256 96 263.2 96 272v96C96 376.8 103.2 384 112 384zM272 384h96c8.75 0 16-7.25 16-16v-96C384 263.2 376.8 256 368 256h-96C263.2 256 256 263.2 256 272v96C256 376.8 263.2 384 272 384z\"/></svg>",
|
|
4489
4579
|
"side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
|
|
4490
4580
|
"slide_in": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M12,12.17H38v26H12ZM36.76,13.4H13.24V36.93H36.76Z\" fill=\"#484f60\"/><polygon points=\"33.71 23.42 28.41 23.42 28.41 20.43 24.13 24.72 28.41 29.01 28.41 26.02 33.71 26.02 33.71 23.42\" fill=\"#484f60\"/><rect x=\"12\" y=\"12.17\" width=\"9\" height=\"26\" fill=\"#484f60\"/></svg>",
|
|
4581
|
+
"square_full": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M464 48v416h-416v-416H464zM512 0H0v512h512V0z\"/></svg>",
|
|
4582
|
+
"square_full_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 0h512v512H0V0z\"/></svg>",
|
|
4491
4583
|
"sync_alt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z\"/></svg>",
|
|
4492
4584
|
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
4493
4585
|
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
@@ -6593,7 +6685,11 @@ TransactionLineComponent.decorators = [
|
|
|
6593
6685
|
</div>
|
|
6594
6686
|
<div class="transaction-line-description">
|
|
6595
6687
|
<div class="description-wrapper">
|
|
6596
|
-
<
|
|
6688
|
+
<co-transaction-line-description class="transaction-line-description-description"
|
|
6689
|
+
[transactionLine]="line"
|
|
6690
|
+
[defaultEditMode]="false"
|
|
6691
|
+
[showLabel]="false"
|
|
6692
|
+
></co-transaction-line-description>
|
|
6597
6693
|
<span *ngIf="line.goodDescription && line.articleNumber" class="transaction-line-description-divider">|</span>
|
|
6598
6694
|
<span [textContent]="line.articleNumber" class="transaction-line-description-sku"></span>
|
|
6599
6695
|
<co-icon class="delete-icon" [iconData]="iconCacheService.getIcon(icons.TrashCanLight)" (click)="deleteTransactionLineClick()"></co-icon>
|
|
@@ -6938,6 +7034,7 @@ class TransactionLineFieldsBaseComponent {
|
|
|
6938
7034
|
constructor() {
|
|
6939
7035
|
this.readonly = false;
|
|
6940
7036
|
this._transactionLine = new TransactionLineInfo();
|
|
7037
|
+
this._transactionInfo = new TransactionInfo();
|
|
6941
7038
|
}
|
|
6942
7039
|
set transactionLine(value) {
|
|
6943
7040
|
if (value) {
|
|
@@ -6949,15 +7046,28 @@ class TransactionLineFieldsBaseComponent {
|
|
|
6949
7046
|
get transactionLine() {
|
|
6950
7047
|
return this._transactionLine;
|
|
6951
7048
|
}
|
|
7049
|
+
set transactionInfo(value) {
|
|
7050
|
+
if (value) {
|
|
7051
|
+
this._transactionInfo = value;
|
|
7052
|
+
this.transactionInfoSet();
|
|
7053
|
+
}
|
|
7054
|
+
}
|
|
7055
|
+
get transactionInfo() {
|
|
7056
|
+
return this._transactionInfo;
|
|
7057
|
+
}
|
|
6952
7058
|
// overridden by descendents
|
|
6953
7059
|
transactionLineSet() {
|
|
6954
7060
|
}
|
|
7061
|
+
// overridden by descendents
|
|
7062
|
+
transactionInfoSet() {
|
|
7063
|
+
}
|
|
6955
7064
|
}
|
|
6956
7065
|
TransactionLineFieldsBaseComponent.decorators = [
|
|
6957
7066
|
{ type: Directive }
|
|
6958
7067
|
];
|
|
6959
7068
|
TransactionLineFieldsBaseComponent.propDecorators = {
|
|
6960
|
-
transactionLine: [{ type: Input }]
|
|
7069
|
+
transactionLine: [{ type: Input }],
|
|
7070
|
+
transactionInfo: [{ type: Input }]
|
|
6961
7071
|
};
|
|
6962
7072
|
|
|
6963
7073
|
class TransactionLinePriceComponent extends TransactionLineFieldsBaseComponent {
|
|
@@ -7054,6 +7164,100 @@ TransactionLinePriceModule.decorators = [
|
|
|
7054
7164
|
},] }
|
|
7055
7165
|
];
|
|
7056
7166
|
|
|
7167
|
+
class TransactionLineDescriptionComponent extends TransactionLineFieldsBaseComponent {
|
|
7168
|
+
constructor(_transactionService) {
|
|
7169
|
+
super();
|
|
7170
|
+
this._transactionService = _transactionService;
|
|
7171
|
+
this.showLabel = true;
|
|
7172
|
+
this.defaultEditMode = true;
|
|
7173
|
+
this._editMode = false;
|
|
7174
|
+
}
|
|
7175
|
+
set child(content) {
|
|
7176
|
+
if (content) {
|
|
7177
|
+
this.input = content;
|
|
7178
|
+
this.input.commit = (description) => this.commitDescription(description);
|
|
7179
|
+
if (this._editMode) {
|
|
7180
|
+
this.input.requestFocus();
|
|
7181
|
+
}
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7184
|
+
set editMode(value) {
|
|
7185
|
+
this._editMode = value;
|
|
7186
|
+
if (this._editMode && this.input) {
|
|
7187
|
+
this.input.doFocus();
|
|
7188
|
+
}
|
|
7189
|
+
}
|
|
7190
|
+
get editMode() {
|
|
7191
|
+
return this._editMode;
|
|
7192
|
+
}
|
|
7193
|
+
handleClick(event) {
|
|
7194
|
+
if (!this.readonly) {
|
|
7195
|
+
this.editMode = true;
|
|
7196
|
+
}
|
|
7197
|
+
}
|
|
7198
|
+
commitDescription(description) {
|
|
7199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7200
|
+
// todo uncomment and finish when updateGoodDescriptionTransactionLine is present in the middletier
|
|
7201
|
+
// if (this.transactionLine.goodDescription !== description) {
|
|
7202
|
+
// const oldDescription = this.transactionLine.goodDescription;
|
|
7203
|
+
// const success = await this._transactionService.updateGoodDescriptionTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, description);
|
|
7204
|
+
// if (!success) {
|
|
7205
|
+
// this.input.model = oldDescription;
|
|
7206
|
+
// }
|
|
7207
|
+
// return success;
|
|
7208
|
+
// }
|
|
7209
|
+
return true;
|
|
7210
|
+
});
|
|
7211
|
+
}
|
|
7212
|
+
transactionLineSet() {
|
|
7213
|
+
this.readonly = this.readonly || !this.transactionLine.articleFreeDescription;
|
|
7214
|
+
}
|
|
7215
|
+
}
|
|
7216
|
+
TransactionLineDescriptionComponent.decorators = [
|
|
7217
|
+
{ type: Component, args: [{
|
|
7218
|
+
selector: "co-transaction-line-description",
|
|
7219
|
+
template: `
|
|
7220
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionLine.goodDescription"></span>
|
|
7221
|
+
<co-input-text #input *ngIf="editMode || defaultEditMode"
|
|
7222
|
+
[placeholder]="showLabel ? ('GOOD_DESCRIPTION' | localize) : ''"
|
|
7223
|
+
[showSaveCancel]="!readonly"
|
|
7224
|
+
[readonly]="readonly"
|
|
7225
|
+
[model]="transactionLine.goodDescription"
|
|
7226
|
+
(blur)="editMode = false"
|
|
7227
|
+
></co-input-text>
|
|
7228
|
+
`,
|
|
7229
|
+
encapsulation: ViewEncapsulation.None
|
|
7230
|
+
},] }
|
|
7231
|
+
];
|
|
7232
|
+
TransactionLineDescriptionComponent.ctorParameters = () => [
|
|
7233
|
+
{ type: TransactionService }
|
|
7234
|
+
];
|
|
7235
|
+
TransactionLineDescriptionComponent.propDecorators = {
|
|
7236
|
+
child: [{ type: ViewChild, args: ['input', { read: InputTextComponent },] }],
|
|
7237
|
+
showLabel: [{ type: Input }],
|
|
7238
|
+
defaultEditMode: [{ type: Input }],
|
|
7239
|
+
editMode: [{ type: Input }],
|
|
7240
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
7241
|
+
};
|
|
7242
|
+
|
|
7243
|
+
class TransactionLineDescriptionModule {
|
|
7244
|
+
}
|
|
7245
|
+
TransactionLineDescriptionModule.decorators = [
|
|
7246
|
+
{ type: NgModule, args: [{
|
|
7247
|
+
imports: [
|
|
7248
|
+
CommonModule,
|
|
7249
|
+
InputTextModule,
|
|
7250
|
+
PipeModule
|
|
7251
|
+
],
|
|
7252
|
+
declarations: [
|
|
7253
|
+
TransactionLineDescriptionComponent
|
|
7254
|
+
],
|
|
7255
|
+
exports: [
|
|
7256
|
+
TransactionLineDescriptionComponent
|
|
7257
|
+
]
|
|
7258
|
+
},] }
|
|
7259
|
+
];
|
|
7260
|
+
|
|
7057
7261
|
class TransactionLineModule {
|
|
7058
7262
|
}
|
|
7059
7263
|
TransactionLineModule.decorators = [
|
|
@@ -7069,7 +7273,8 @@ TransactionLineModule.decorators = [
|
|
|
7069
7273
|
TransactionLineActionButtonsModule,
|
|
7070
7274
|
IconModule,
|
|
7071
7275
|
EditableLabelModule,
|
|
7072
|
-
TransactionLinePriceModule
|
|
7276
|
+
TransactionLinePriceModule,
|
|
7277
|
+
TransactionLineDescriptionModule
|
|
7073
7278
|
],
|
|
7074
7279
|
declarations: [
|
|
7075
7280
|
TransactionLineComponent
|
|
@@ -7949,7 +8154,7 @@ CheckoutModule.decorators = [
|
|
|
7949
8154
|
entryComponents: [
|
|
7950
8155
|
CheckoutComponent
|
|
7951
8156
|
],
|
|
7952
|
-
exports: [CheckoutComponent],
|
|
8157
|
+
exports: [CheckoutComponent, CheckoutOverviewRelationEditComponent],
|
|
7953
8158
|
bootstrap: [CheckoutComponent]
|
|
7954
8159
|
},] }
|
|
7955
8160
|
];
|
|
@@ -8038,7 +8243,9 @@ class TransactionComponent {
|
|
|
8038
8243
|
this._subs = [];
|
|
8039
8244
|
this._transaction = new TransactionInfoResponse();
|
|
8040
8245
|
this._subs.push(this._service.transactionUpdated.subscribe((transaction) => __awaiter(this, void 0, void 0, function* () {
|
|
8041
|
-
|
|
8246
|
+
if (transaction) {
|
|
8247
|
+
this.transaction = transaction;
|
|
8248
|
+
}
|
|
8042
8249
|
})));
|
|
8043
8250
|
}
|
|
8044
8251
|
set transaction(value) {
|
|
@@ -8108,9 +8315,16 @@ TransactionComponent.decorators = [
|
|
|
8108
8315
|
></co-transaction-button-bar>
|
|
8109
8316
|
|
|
8110
8317
|
<co-view-mode-buttons class="transaction-lines-header-item"
|
|
8111
|
-
[showViewModes]="[viewModes.List, viewModes.Grid]" (viewModeChange)="activeViewMode = $event"></co-view-mode-buttons>
|
|
8318
|
+
[showViewModes]="[viewModes.List, viewModes.Grid, viewModes.Tiles]" (viewModeChange)="activeViewMode = $event"></co-view-mode-buttons>
|
|
8112
8319
|
</div>
|
|
8113
8320
|
|
|
8321
|
+
<div class="transaction-tiles-wrapper" *ngIf="activeViewMode === viewModes.Tiles">
|
|
8322
|
+
<co-transaction-tile
|
|
8323
|
+
*ngFor="let transaction of transaction.transactionLines"
|
|
8324
|
+
[transactionLine]="transaction"
|
|
8325
|
+
(showSidePanelClicked)="handleShowSidePanel($event)"
|
|
8326
|
+
></co-transaction-tile>
|
|
8327
|
+
</div>
|
|
8114
8328
|
<div class="transaction-lines-wrapper" *ngIf="activeViewMode === viewModes.List">
|
|
8115
8329
|
<co-transaction-lines
|
|
8116
8330
|
[transactionLines]="transaction.transactionLines"
|
|
@@ -8141,11 +8355,9 @@ TransactionComponent.decorators = [
|
|
|
8141
8355
|
</co-discount>
|
|
8142
8356
|
|
|
8143
8357
|
<co-transaction-line-side-panel *ngIf="showSidePanel" @showHideSidePanel
|
|
8144
|
-
[
|
|
8145
|
-
[activeCategory]="activeCategory"
|
|
8358
|
+
[transactionInfo]="transaction.transactionInfo"
|
|
8146
8359
|
[transactionLine]="sidePanelTransactionLine"
|
|
8147
|
-
[
|
|
8148
|
-
[transactionInfoNr]="transaction.transactionInfo.transactionNr"
|
|
8360
|
+
[activeCategory]="activeCategory"
|
|
8149
8361
|
(cancelClick)="handleCloseSidePanel($event)"
|
|
8150
8362
|
></co-transaction-line-side-panel>
|
|
8151
8363
|
`,
|
|
@@ -8445,7 +8657,11 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
8445
8657
|
<ng-template #firstBlock>
|
|
8446
8658
|
<div class="header-delivery-deliverydate-label co-transaction-label" [textContent]="'DELIVERY_DATE' | localize"></div>
|
|
8447
8659
|
<div class="header-delivery-deliverydate-wrapper" [class.closed]="transactionInfo.deliveryDateDefinitive">
|
|
8448
|
-
<
|
|
8660
|
+
<co-transaction-header-delivery-date class="header-delivery-deliverydate"
|
|
8661
|
+
[transactionInfo]="transactionInfo"
|
|
8662
|
+
[defaultEditMode]="false"
|
|
8663
|
+
[showLabel]="false"
|
|
8664
|
+
></co-transaction-header-delivery-date>
|
|
8449
8665
|
<co-icon *ngIf="transactionInfo.deliveryDateDefinitive" [iconData]="iconService.getIcon(icons.LockKeyholeSolid)"></co-icon>
|
|
8450
8666
|
<co-icon *ngIf="!transactionInfo.deliveryDateDefinitive" [iconData]="iconService.getIcon(icons.LockKeyholeOpenSolid)"></co-icon>
|
|
8451
8667
|
</div>
|
|
@@ -8470,6 +8686,106 @@ TransactionHeaderDeliveryComponent.propDecorators = {
|
|
|
8470
8686
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-header-delivery",] }]
|
|
8471
8687
|
};
|
|
8472
8688
|
|
|
8689
|
+
class TransactionHeaderFieldsBaseComponent {
|
|
8690
|
+
constructor() {
|
|
8691
|
+
this.readonly = false;
|
|
8692
|
+
this._transactionInfo = new TransactionInfo();
|
|
8693
|
+
}
|
|
8694
|
+
set transactionInfo(value) {
|
|
8695
|
+
if (value) {
|
|
8696
|
+
this._transactionInfo = value;
|
|
8697
|
+
this.transactionInfoSet();
|
|
8698
|
+
}
|
|
8699
|
+
}
|
|
8700
|
+
get transactionInfo() {
|
|
8701
|
+
return this._transactionInfo;
|
|
8702
|
+
}
|
|
8703
|
+
// overridden by descendents
|
|
8704
|
+
transactionInfoSet() {
|
|
8705
|
+
}
|
|
8706
|
+
}
|
|
8707
|
+
TransactionHeaderFieldsBaseComponent.decorators = [
|
|
8708
|
+
{ type: Directive }
|
|
8709
|
+
];
|
|
8710
|
+
TransactionHeaderFieldsBaseComponent.propDecorators = {
|
|
8711
|
+
transactionInfo: [{ type: Input }]
|
|
8712
|
+
};
|
|
8713
|
+
|
|
8714
|
+
class TransactionHeaderDeliveryDateComponent extends TransactionHeaderFieldsBaseComponent {
|
|
8715
|
+
constructor(_transactionService) {
|
|
8716
|
+
super();
|
|
8717
|
+
this._transactionService = _transactionService;
|
|
8718
|
+
this.showLabel = true;
|
|
8719
|
+
this.defaultEditMode = true;
|
|
8720
|
+
this._editMode = false;
|
|
8721
|
+
}
|
|
8722
|
+
set child(content) {
|
|
8723
|
+
if (content) {
|
|
8724
|
+
this.input = content;
|
|
8725
|
+
this.input.commit = (date) => this.commitDeliveryDate(date);
|
|
8726
|
+
if (this._editMode) {
|
|
8727
|
+
this.input.doFocus();
|
|
8728
|
+
}
|
|
8729
|
+
}
|
|
8730
|
+
}
|
|
8731
|
+
set editMode(value) {
|
|
8732
|
+
this._editMode = value;
|
|
8733
|
+
if (this._editMode && this.input) {
|
|
8734
|
+
this.input.doFocus();
|
|
8735
|
+
}
|
|
8736
|
+
}
|
|
8737
|
+
get editMode() {
|
|
8738
|
+
return this._editMode;
|
|
8739
|
+
}
|
|
8740
|
+
handleClick(event) {
|
|
8741
|
+
if (!this.readonly) {
|
|
8742
|
+
this.editMode = true;
|
|
8743
|
+
}
|
|
8744
|
+
}
|
|
8745
|
+
commitDeliveryDate(date) {
|
|
8746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8747
|
+
if (this.transactionInfo.deliveryDate !== date) {
|
|
8748
|
+
const oldDate = this.transactionInfo.deliveryDate;
|
|
8749
|
+
const success = yield this._transactionService.updateHeaderTransactionDeliveryDate(this._transactionService.currentTransaction.transactionInfo.uuid, date);
|
|
8750
|
+
if (!success) {
|
|
8751
|
+
this.input.model = oldDate;
|
|
8752
|
+
}
|
|
8753
|
+
return success;
|
|
8754
|
+
}
|
|
8755
|
+
return true;
|
|
8756
|
+
});
|
|
8757
|
+
}
|
|
8758
|
+
transactionInfoSet() {
|
|
8759
|
+
this.readonly = this.readonly || this.transactionInfo.deliveryDateDefinitive;
|
|
8760
|
+
}
|
|
8761
|
+
}
|
|
8762
|
+
TransactionHeaderDeliveryDateComponent.decorators = [
|
|
8763
|
+
{ type: Component, args: [{
|
|
8764
|
+
selector: "co-transaction-header-delivery-date",
|
|
8765
|
+
template: `
|
|
8766
|
+
<span *ngIf="(!editMode || readonly) && !defaultEditMode" [textContent]="transactionInfo.deliveryDate | date:'dd MMM yyyy'"></span>
|
|
8767
|
+
<co-input-date #input *ngIf="editMode || defaultEditMode"
|
|
8768
|
+
[placeholder]="showLabel ? ('DELIVERY_DATE' | localize) : ''"
|
|
8769
|
+
[showSaveCancel]="!readonly"
|
|
8770
|
+
[readonly]="readonly"
|
|
8771
|
+
[model]="transactionInfo.deliveryDate"
|
|
8772
|
+
(blur)="editMode = false"
|
|
8773
|
+
></co-input-date>
|
|
8774
|
+
`,
|
|
8775
|
+
encapsulation: ViewEncapsulation.None
|
|
8776
|
+
},] }
|
|
8777
|
+
];
|
|
8778
|
+
TransactionHeaderDeliveryDateComponent.ctorParameters = () => [
|
|
8779
|
+
{ type: TransactionService }
|
|
8780
|
+
];
|
|
8781
|
+
TransactionHeaderDeliveryDateComponent.propDecorators = {
|
|
8782
|
+
child: [{ type: ViewChild, args: ['input', { read: InputDatePickerComponent },] }],
|
|
8783
|
+
showLabel: [{ type: Input }],
|
|
8784
|
+
defaultEditMode: [{ type: Input }],
|
|
8785
|
+
editMode: [{ type: Input }],
|
|
8786
|
+
handleClick: [{ type: HostListener, args: ["click", ["$event"],] }]
|
|
8787
|
+
};
|
|
8788
|
+
|
|
8473
8789
|
class TransactionHeaderDeliveryModule {
|
|
8474
8790
|
}
|
|
8475
8791
|
TransactionHeaderDeliveryModule.decorators = [
|
|
@@ -8480,10 +8796,12 @@ TransactionHeaderDeliveryModule.decorators = [
|
|
|
8480
8796
|
TransactionHeaderBlockModule,
|
|
8481
8797
|
InputCheckboxModule,
|
|
8482
8798
|
IconModule,
|
|
8483
|
-
PipeModule
|
|
8799
|
+
PipeModule,
|
|
8800
|
+
InputDatePickerModule
|
|
8484
8801
|
],
|
|
8485
8802
|
declarations: [
|
|
8486
|
-
TransactionHeaderDeliveryComponent
|
|
8803
|
+
TransactionHeaderDeliveryComponent,
|
|
8804
|
+
TransactionHeaderDeliveryDateComponent
|
|
8487
8805
|
],
|
|
8488
8806
|
exports: [
|
|
8489
8807
|
TransactionHeaderDeliveryComponent
|
|
@@ -8880,6 +9198,7 @@ class TransactionLineSidePanelComponent {
|
|
|
8880
9198
|
this.categories = TransactionTypeCategory;
|
|
8881
9199
|
this.transactionTypes = TransactionKind;
|
|
8882
9200
|
this.transactionLine = new TransactionLineInfo();
|
|
9201
|
+
this.transactionInfo = new TransactionInfo();
|
|
8883
9202
|
this.cancelClick = new EventEmitter();
|
|
8884
9203
|
}
|
|
8885
9204
|
showClass() {
|
|
@@ -8919,23 +9238,24 @@ TransactionLineSidePanelComponent.decorators = [
|
|
|
8919
9238
|
</div>
|
|
8920
9239
|
<div class="transaction-line-side-panel-nav-bar">
|
|
8921
9240
|
<co-transaction-button-bar
|
|
8922
|
-
[transactionType]="
|
|
9241
|
+
[transactionType]="transactionInfo.transactionKind"
|
|
8923
9242
|
(buttonClicked)="activeCategory = $event.category"
|
|
8924
9243
|
></co-transaction-button-bar>
|
|
8925
9244
|
</div>
|
|
8926
9245
|
<div class="transaction-line-side-panel-content">
|
|
8927
|
-
<ng-container [ngSwitch]="
|
|
9246
|
+
<ng-container [ngSwitch]="transactionInfo.transactionKind">
|
|
8928
9247
|
<ng-container *ngSwitchCase="transactionTypes.PurchaseOrder">
|
|
8929
9248
|
<co-transaction-line-side-panel-purchase
|
|
9249
|
+
[transactionInfo]="transactionInfo"
|
|
8930
9250
|
[transactionLine]="transactionLine"
|
|
8931
|
-
[transactionId]="transactionId"
|
|
8932
|
-
[transactionInfoNr]="transactionInfoNr"
|
|
8933
9251
|
[category]="activeCategory"
|
|
8934
9252
|
(quantityToReceiveChange)="quantityToReceive = $event"
|
|
8935
9253
|
></co-transaction-line-side-panel-purchase>
|
|
8936
9254
|
</ng-container>
|
|
8937
9255
|
<ng-container *ngSwitchDefault>
|
|
8938
9256
|
<co-transaction-line-side-panel-purchase
|
|
9257
|
+
[transactionInfo]="transactionInfo"
|
|
9258
|
+
[transactionLine]="transactionLine"
|
|
8939
9259
|
[category]="activeCategory"
|
|
8940
9260
|
></co-transaction-line-side-panel-purchase>
|
|
8941
9261
|
</ng-container>
|
|
@@ -8951,12 +9271,10 @@ TransactionLineSidePanelComponent.ctorParameters = () => [
|
|
|
8951
9271
|
{ type: TransactionEventService }
|
|
8952
9272
|
];
|
|
8953
9273
|
TransactionLineSidePanelComponent.propDecorators = {
|
|
8954
|
-
transactionType: [{ type: Input }],
|
|
8955
9274
|
transactionLine: [{ type: Input }],
|
|
8956
|
-
|
|
9275
|
+
transactionInfo: [{ type: Input }],
|
|
8957
9276
|
activeCategory: [{ type: Input }],
|
|
8958
9277
|
cancelClick: [{ type: Output }],
|
|
8959
|
-
transactionInfoNr: [{ type: Input }],
|
|
8960
9278
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
8961
9279
|
};
|
|
8962
9280
|
|
|
@@ -9041,7 +9359,7 @@ TransactionLineSidePanelDefaultComponent.decorators = [
|
|
|
9041
9359
|
</div>
|
|
9042
9360
|
<div class="side-panel-input-row">
|
|
9043
9361
|
<co-transaction-line-delivery-method class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-delivery-method>
|
|
9044
|
-
<co-transaction-line-delivery-date class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-delivery-date>
|
|
9362
|
+
<co-transaction-line-delivery-date class="side-panel-input" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-delivery-date>
|
|
9045
9363
|
</div>
|
|
9046
9364
|
<div class="side-panel-input-row">
|
|
9047
9365
|
<co-input-text class="side-panel-input" [placeholder]="'ASSEMBLY_TIME' | localize" [readonly]="readonly"></co-input-text>
|
|
@@ -9051,7 +9369,7 @@ TransactionLineSidePanelDefaultComponent.decorators = [
|
|
|
9051
9369
|
<co-input-text class="side-panel-input" [placeholder]="'MODIFICATION_TIME' | localize" [readonly]="readonly"></co-input-text>
|
|
9052
9370
|
</div>
|
|
9053
9371
|
<div class="side-panel-input-row">
|
|
9054
|
-
<co-
|
|
9372
|
+
<co-transaction-line-supplier class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-supplier>
|
|
9055
9373
|
<co-input-text class="side-panel-input" [placeholder]="'ARTICLE_NR_SUPPLIER' | localize" [model]="transactionLine.articleNumber" [readonly]="readonly"></co-input-text>
|
|
9056
9374
|
</div>
|
|
9057
9375
|
<div class="side-panel-input-row">
|
|
@@ -9067,6 +9385,10 @@ TransactionLineSidePanelDefaultComponent.decorators = [
|
|
|
9067
9385
|
[expanded]="true"
|
|
9068
9386
|
>
|
|
9069
9387
|
<div class="collapsible-content-wrapper">
|
|
9388
|
+
<div class="side-panel-input-row">
|
|
9389
|
+
<co-transaction-line-description class="side-panel-input"
|
|
9390
|
+
[transactionLine]="transactionLine"></co-transaction-line-description>
|
|
9391
|
+
</div>
|
|
9070
9392
|
<div class="side-panel-input-row">
|
|
9071
9393
|
<co-transaction-line-reference class="side-panel-input" [transactionLine]="transactionLine"></co-transaction-line-reference>
|
|
9072
9394
|
</div>
|
|
@@ -9094,6 +9416,7 @@ TransactionLineSidePanelDefaultComponent.ctorParameters = () => [
|
|
|
9094
9416
|
];
|
|
9095
9417
|
TransactionLineSidePanelDefaultComponent.propDecorators = {
|
|
9096
9418
|
transactionLine: [{ type: Input }],
|
|
9419
|
+
transactionInfo: [{ type: Input }],
|
|
9097
9420
|
cancelClick: [{ type: Output }],
|
|
9098
9421
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel-default",] }]
|
|
9099
9422
|
};
|
|
@@ -9422,6 +9745,9 @@ class TransactionLineDeliveryDateComponent extends TransactionLineFieldsBaseComp
|
|
|
9422
9745
|
return true;
|
|
9423
9746
|
});
|
|
9424
9747
|
}
|
|
9748
|
+
transactionInfoSet() {
|
|
9749
|
+
this.readonly = this.readonly || (this.transactionInfo.deliveryDateDefinitive || !this.transactionInfo.allowPartialDelivery);
|
|
9750
|
+
}
|
|
9425
9751
|
}
|
|
9426
9752
|
TransactionLineDeliveryDateComponent.decorators = [
|
|
9427
9753
|
{ type: Component, args: [{
|
|
@@ -9548,6 +9874,9 @@ class TransactionLineCommissionCodeComponent extends TransactionLineFieldsBaseCo
|
|
|
9548
9874
|
return true;
|
|
9549
9875
|
});
|
|
9550
9876
|
}
|
|
9877
|
+
transactionLineSet() {
|
|
9878
|
+
this.readonly = this.readonly || !this.transactionLine.articleFreeCommissionCode;
|
|
9879
|
+
}
|
|
9551
9880
|
}
|
|
9552
9881
|
TransactionLineCommissionCodeComponent.decorators = [
|
|
9553
9882
|
{ type: Component, args: [{
|
|
@@ -9847,21 +10176,90 @@ TransactionLineSpecialDiscountModule.decorators = [
|
|
|
9847
10176
|
},] }
|
|
9848
10177
|
];
|
|
9849
10178
|
|
|
9850
|
-
class
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
10179
|
+
class TransactionLineSupplierComponent extends TransactionLineFieldsBaseComponent {
|
|
10180
|
+
constructor(_transactionService) {
|
|
10181
|
+
super();
|
|
10182
|
+
this._transactionService = _transactionService;
|
|
10183
|
+
this.data = [];
|
|
10184
|
+
this.fields = { text: "displayName", value: "relationId" };
|
|
10185
|
+
}
|
|
10186
|
+
ngOnInit() {
|
|
10187
|
+
const request = new RelationRequest();
|
|
10188
|
+
request.relationType = RelationKind.Supplier;
|
|
10189
|
+
this._transactionService.getRelationListObjects(request).then((relationListObjects) => {
|
|
10190
|
+
this.data = relationListObjects;
|
|
10191
|
+
});
|
|
10192
|
+
}
|
|
10193
|
+
commitSupplier(code) {
|
|
10194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10195
|
+
// if (this.transactionLine.supplier !== code) {
|
|
10196
|
+
// const oldCode = this.transactionLine.supplier;
|
|
10197
|
+
// const success = await this._transactionService.updateSupplierTransactionLine(this._transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, code);
|
|
10198
|
+
// if (!success) {
|
|
10199
|
+
// // this.transactionLine.supplier = code;
|
|
10200
|
+
// }
|
|
10201
|
+
// return success;
|
|
10202
|
+
// }
|
|
10203
|
+
return true;
|
|
10204
|
+
});
|
|
10205
|
+
}
|
|
10206
|
+
transactionLineSet() {
|
|
10207
|
+
this.readonly = this.readonly || !this.transactionLine.articleFreeSupplier;
|
|
10208
|
+
}
|
|
10209
|
+
}
|
|
10210
|
+
TransactionLineSupplierComponent.decorators = [
|
|
10211
|
+
{ type: Component, args: [{
|
|
10212
|
+
selector: "co-transaction-line-supplier",
|
|
10213
|
+
template: `
|
|
10214
|
+
<co-input-combo-box
|
|
10215
|
+
[collection]="data"
|
|
10216
|
+
[placeholder]="'SUPPLIER' | localize"
|
|
10217
|
+
[fields]="fields"
|
|
10218
|
+
[readonly]="readonly"
|
|
10219
|
+
[model]="tempSupplier"
|
|
10220
|
+
(modelChange)="commitSupplier($event)"
|
|
10221
|
+
></co-input-combo-box>
|
|
10222
|
+
`,
|
|
10223
|
+
encapsulation: ViewEncapsulation.None
|
|
10224
|
+
},] }
|
|
10225
|
+
];
|
|
10226
|
+
TransactionLineSupplierComponent.ctorParameters = () => [
|
|
10227
|
+
{ type: TransactionService }
|
|
10228
|
+
];
|
|
10229
|
+
|
|
10230
|
+
class TransactionLineSupplierModule {
|
|
10231
|
+
}
|
|
10232
|
+
TransactionLineSupplierModule.decorators = [
|
|
10233
|
+
{ type: NgModule, args: [{
|
|
10234
|
+
imports: [
|
|
10235
|
+
CommonModule,
|
|
10236
|
+
PipeModule,
|
|
10237
|
+
InputComboBoxModule
|
|
10238
|
+
],
|
|
10239
|
+
declarations: [
|
|
10240
|
+
TransactionLineSupplierComponent
|
|
10241
|
+
],
|
|
10242
|
+
exports: [
|
|
10243
|
+
TransactionLineSupplierComponent
|
|
10244
|
+
]
|
|
10245
|
+
},] }
|
|
10246
|
+
];
|
|
10247
|
+
|
|
10248
|
+
class TransactionLineSidePanelDefaultModule {
|
|
10249
|
+
}
|
|
10250
|
+
TransactionLineSidePanelDefaultModule.decorators = [
|
|
10251
|
+
{ type: NgModule, args: [{
|
|
10252
|
+
imports: [
|
|
10253
|
+
CommonModule,
|
|
10254
|
+
CoreModule,
|
|
10255
|
+
PipeModule,
|
|
10256
|
+
ButtonModule,
|
|
10257
|
+
CollapsibleModule,
|
|
10258
|
+
InputTextModule,
|
|
10259
|
+
InputComboBoxModule,
|
|
10260
|
+
InputDatePickerModule,
|
|
10261
|
+
InputNumberPickerModule,
|
|
10262
|
+
TransactionLinePriceModule,
|
|
9865
10263
|
TransactionLinePriceListModule,
|
|
9866
10264
|
TransactionLineVatModule,
|
|
9867
10265
|
TransactionLineQuantityModule,
|
|
@@ -9873,7 +10271,9 @@ TransactionLineSidePanelDefaultModule.decorators = [
|
|
|
9873
10271
|
TransactionLineWarehouseModule,
|
|
9874
10272
|
TransactionLineDiscountAmountModule,
|
|
9875
10273
|
TransactionLineQuantumDiscountModule,
|
|
9876
|
-
TransactionLineSpecialDiscountModule
|
|
10274
|
+
TransactionLineSpecialDiscountModule,
|
|
10275
|
+
TransactionLineSupplierModule,
|
|
10276
|
+
TransactionLineDescriptionModule
|
|
9877
10277
|
],
|
|
9878
10278
|
declarations: [
|
|
9879
10279
|
TransactionLineSidePanelDefaultComponent
|
|
@@ -9925,15 +10325,41 @@ TransactionHistoryGridComponent.decorators = [
|
|
|
9925
10325
|
></co-grid-toolbar-button>
|
|
9926
10326
|
</div>
|
|
9927
10327
|
<co-simple-grid [data]="collection" [extraColumns]="extraColumns" (selectRow)="handleSelectRow($event)">
|
|
9928
|
-
<co-simple-grid-column [headerText]="'
|
|
10328
|
+
<co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [order]="20" [width]="100">
|
|
10329
|
+
<ng-template #template let-row="row">
|
|
10330
|
+
<div class="row-container">
|
|
10331
|
+
<span class="row" [textContent]="row.receiptDate | date"></span>
|
|
10332
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.receiptDate | date"></span>
|
|
10333
|
+
</div>
|
|
10334
|
+
</ng-template>
|
|
10335
|
+
</co-simple-grid-column>
|
|
10336
|
+
|
|
10337
|
+
<co-simple-grid-column [headerText]="'AMOUNT' | localize" [order]="30" [width]="70">
|
|
10338
|
+
<ng-template #template let-row="row">
|
|
10339
|
+
<div class="row-container">
|
|
10340
|
+
<span class="row" [textContent]="row.quantity"></span>
|
|
10341
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.quantity"></span>
|
|
10342
|
+
</div>
|
|
10343
|
+
</ng-template>
|
|
10344
|
+
</co-simple-grid-column>
|
|
10345
|
+
|
|
10346
|
+
<co-simple-grid-column [headerText]="'REFERENCE' | localize" [order]="50">
|
|
10347
|
+
<ng-template #template let-row="row">
|
|
10348
|
+
<div class="row-container">
|
|
10349
|
+
<span class="row" [textContent]="row.reference"></span>
|
|
10350
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.reference"></span>
|
|
10351
|
+
</div>
|
|
10352
|
+
</ng-template>
|
|
10353
|
+
</co-simple-grid-column>
|
|
10354
|
+
|
|
10355
|
+
<co-simple-grid-column [headerText]="'USER' | localize" [order]="70">
|
|
9929
10356
|
<ng-template #template let-row="row">
|
|
9930
|
-
<
|
|
10357
|
+
<div class="row-container">
|
|
10358
|
+
<span class="row" [textContent]="row.username"></span>
|
|
10359
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.username"></span>
|
|
10360
|
+
</div>
|
|
9931
10361
|
</ng-template>
|
|
9932
10362
|
</co-simple-grid-column>
|
|
9933
|
-
<co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize" [field]="'receiptDate'" [order]="20" [width]="100"></co-simple-grid-column>
|
|
9934
|
-
<co-simple-grid-column [headerText]="'AMOUNT' | localize" [field]="'quantity'" [order]="30" [width]="70"></co-simple-grid-column>
|
|
9935
|
-
<co-simple-grid-column [headerText]="'REFERENCE' | localize" [field]="'reference'" [order]="50"></co-simple-grid-column>
|
|
9936
|
-
<co-simple-grid-column [headerText]="'USER' | localize" [field]="'username'" [order]="70"></co-simple-grid-column>
|
|
9937
10363
|
</co-simple-grid>
|
|
9938
10364
|
</div>
|
|
9939
10365
|
`,
|
|
@@ -10083,10 +10509,23 @@ TransactionReceivingGoodsHistoryComponent.decorators = [
|
|
|
10083
10509
|
[collection]="goodsReceiptHistory"
|
|
10084
10510
|
(deleteSelectedRow)="handleDeleteSelectedRow($event)"
|
|
10085
10511
|
>
|
|
10086
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
|
|
10512
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE' | localize" [order]="40">
|
|
10513
|
+
<ng-template #template let-row="row">
|
|
10514
|
+
<div class="row-container">
|
|
10515
|
+
<span class="row" [textContent]="row.warehouseNumber"></span>
|
|
10516
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.warehouseNumber"></span>
|
|
10517
|
+
</div>
|
|
10518
|
+
</ng-template>
|
|
10519
|
+
</co-simple-grid-column>
|
|
10520
|
+
|
|
10521
|
+
<co-simple-grid-column [headerText]="'LOCATION' | localize" [order]="60">
|
|
10522
|
+
<ng-template #template let-row="row">
|
|
10523
|
+
<div class="row-container">
|
|
10524
|
+
<span class="row" [textContent]="row.locationNumber"></span>
|
|
10525
|
+
<span class="correction" *ngFor="let correction of row.corrections" [textContent]="correction.locationNumber"></span>
|
|
10526
|
+
</div>
|
|
10527
|
+
</ng-template>
|
|
10528
|
+
</co-simple-grid-column>
|
|
10090
10529
|
</co-transaction-history-grid>
|
|
10091
10530
|
`,
|
|
10092
10531
|
encapsulation: ViewEncapsulation.None
|
|
@@ -10342,6 +10781,7 @@ class TransactionSearchService {
|
|
|
10342
10781
|
constructor(_transactionService) {
|
|
10343
10782
|
this._transactionService = _transactionService;
|
|
10344
10783
|
this.searchRequest = new TransactionSearchViewRequest();
|
|
10784
|
+
this.previousSearchRequest = new TransactionSearchViewRequest();
|
|
10345
10785
|
this.transactions = [];
|
|
10346
10786
|
this.labelBasedOnTransactionType = new Map([
|
|
10347
10787
|
[TransactionKind.SalesOrder, "SALESORDERS"],
|
|
@@ -10350,7 +10790,7 @@ class TransactionSearchService {
|
|
|
10350
10790
|
]);
|
|
10351
10791
|
this.transactionsPerPage = 20;
|
|
10352
10792
|
this.resultCount = 0;
|
|
10353
|
-
this.
|
|
10793
|
+
this._currentPage = 1;
|
|
10354
10794
|
this._transactionType = TransactionKind.SalesOrder;
|
|
10355
10795
|
}
|
|
10356
10796
|
set transactionType(value) {
|
|
@@ -10361,34 +10801,44 @@ class TransactionSearchService {
|
|
|
10361
10801
|
get transactionType() {
|
|
10362
10802
|
return this._transactionType;
|
|
10363
10803
|
}
|
|
10364
|
-
get
|
|
10365
|
-
return this.
|
|
10804
|
+
get currentPage() {
|
|
10805
|
+
return this._currentPage;
|
|
10366
10806
|
}
|
|
10367
|
-
set
|
|
10368
|
-
this.
|
|
10807
|
+
set currentPage(value) {
|
|
10808
|
+
this._currentPage = value;
|
|
10369
10809
|
this.searchTransactions();
|
|
10370
10810
|
}
|
|
10371
10811
|
searchTransactions() {
|
|
10372
10812
|
this.searchRequest.transactionKind = this.transactionType;
|
|
10373
|
-
|
|
10813
|
+
if (this.isNewGeneralSearch()) {
|
|
10814
|
+
this._currentPage = 1;
|
|
10815
|
+
}
|
|
10816
|
+
const lowerBound = ((this.currentPage - 1) * this.transactionsPerPage) + 1;
|
|
10374
10817
|
this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.transactionsPerPage - 1, this.transactionsPerPage);
|
|
10375
10818
|
this._transactionService.searchTransactions(this.searchRequest).then((result) => {
|
|
10376
10819
|
this.transactions = result.transactions;
|
|
10377
10820
|
this.resultCount = result.count;
|
|
10378
10821
|
});
|
|
10822
|
+
this.setPreviousSearchRequest();
|
|
10379
10823
|
}
|
|
10380
10824
|
getLabelBasedOnTransactionType() {
|
|
10381
10825
|
return this.labelBasedOnTransactionType.get(this._transactionType);
|
|
10382
10826
|
}
|
|
10383
10827
|
resetFilters() {
|
|
10384
|
-
|
|
10828
|
+
this.setPreviousSearchRequest();
|
|
10385
10829
|
this._resetRequest();
|
|
10386
|
-
this.searchRequest.general =
|
|
10830
|
+
this.searchRequest.general = this.previousSearchRequest.general;
|
|
10387
10831
|
this.searchTransactions();
|
|
10388
10832
|
}
|
|
10389
10833
|
_resetRequest() {
|
|
10390
10834
|
this.searchRequest = new TransactionSearchViewRequest();
|
|
10391
10835
|
}
|
|
10836
|
+
setPreviousSearchRequest() {
|
|
10837
|
+
this.previousSearchRequest = Object.assign({}, this.searchRequest);
|
|
10838
|
+
}
|
|
10839
|
+
isNewGeneralSearch() {
|
|
10840
|
+
return this.previousSearchRequest && this.previousSearchRequest.general !== this.searchRequest.general;
|
|
10841
|
+
}
|
|
10392
10842
|
}
|
|
10393
10843
|
TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
|
|
10394
10844
|
TransactionSearchService.decorators = [
|
|
@@ -10595,58 +11045,64 @@ TransactionSearchPurchaseOrderGridComponent.decorators = [
|
|
|
10595
11045
|
{ type: Component, args: [{
|
|
10596
11046
|
selector: "co-transaction-search-purchase-order-grid",
|
|
10597
11047
|
template: `
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
11048
|
+
<div>
|
|
11049
|
+
<co-simple-grid
|
|
11050
|
+
[data]="searchService.transactions"
|
|
11051
|
+
[extraColumns]="extraColumns"
|
|
11052
|
+
[dragDropEnabled]="true"
|
|
11053
|
+
[emitDragDrop]="false"
|
|
11054
|
+
(selectRow)="onTransactionClick($event)">
|
|
11055
|
+
<co-simple-grid-column [headerText]="'ACTIVE' | localize"
|
|
11056
|
+
[order]="10" [textAlign]="align.Center">
|
|
11057
|
+
<ng-template #template let-row="row">
|
|
11058
|
+
<co-input-checkbox [model]="row.active" readonly></co-input-checkbox>
|
|
11059
|
+
</ng-template>
|
|
11060
|
+
</co-simple-grid-column>
|
|
11061
|
+
<co-simple-grid-column [headerText]="'NR' | localize" [field]="'transNr'"
|
|
11062
|
+
[order]="20"></co-simple-grid-column>
|
|
11063
|
+
<co-simple-grid-column [headerText]="'NAME' | localize" [field]="'relationName'"
|
|
11064
|
+
[order]="30"></co-simple-grid-column>
|
|
11065
|
+
<co-simple-grid-column [headerText]="'RELATION_NUMBER' | localize" [field]="'relationNr'"
|
|
11066
|
+
[order]="40"></co-simple-grid-column>
|
|
11067
|
+
<co-simple-grid-column [headerText]="'BRANCH' | localize" [field]="'brancheName'"
|
|
11068
|
+
[order]="50"></co-simple-grid-column>
|
|
11069
|
+
<co-simple-grid-column [headerText]="'ADDRESS' | localize" [field]="'adres'"
|
|
11070
|
+
[order]="70"></co-simple-grid-column>
|
|
11071
|
+
<co-simple-grid-column [headerText]="'REFERENCE_RELATION' | localize" [field]="'relationReference'"
|
|
11072
|
+
[order]="80"></co-simple-grid-column>
|
|
11073
|
+
<co-simple-grid-column [headerText]="'PREFERRED_DATE' | localize"
|
|
11074
|
+
[order]="90" [textAlign]="align.Right" [resizable]="false">
|
|
11075
|
+
<ng-template #template let-row="row">
|
|
11076
|
+
<div [textContent]="row.preferredDeliveryDate | date: 'dd MMM yyyy'"></div>
|
|
11077
|
+
</ng-template>
|
|
11078
|
+
</co-simple-grid-column>
|
|
11079
|
+
<co-simple-grid-column [headerText]="'TRANSACTION_DATE' | localize"
|
|
11080
|
+
[order]="100" [textAlign]="align.Right" [resizable]="false">
|
|
11081
|
+
<ng-template #template let-row="row">
|
|
11082
|
+
<div [textContent]="row.transDate | date:'dd MMM yyyy'"></div>
|
|
11083
|
+
</ng-template>
|
|
11084
|
+
</co-simple-grid-column>
|
|
11085
|
+
<co-simple-grid-column [headerText]="'ORDER_DEFINITIVE' | localize"
|
|
11086
|
+
[order]="105" [textAlign]="align.Center">
|
|
11087
|
+
<ng-template #template let-row="row">
|
|
11088
|
+
<co-input-checkbox [model]="row.transactionDefinitive" readonly></co-input-checkbox>
|
|
11089
|
+
</ng-template>
|
|
11090
|
+
</co-simple-grid-column>
|
|
11091
|
+
<co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize"
|
|
11092
|
+
[order]="110" [textAlign]="align.Right" [resizable]="false">
|
|
11093
|
+
<ng-template #template let-row="row">
|
|
11094
|
+
<div [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
11095
|
+
</ng-template>
|
|
11096
|
+
</co-simple-grid-column>
|
|
11097
|
+
<co-simple-grid-column [headerText]="'DELIVERY_DATE_DEFINITIVE' | localize"
|
|
11098
|
+
[order]="115" [textAlign]="align.Center">
|
|
11099
|
+
<ng-template #template let-row="row">
|
|
11100
|
+
<co-input-checkbox [model]="row.deliveryDateDefinitive" readonly></co-input-checkbox>
|
|
11101
|
+
</ng-template>
|
|
11102
|
+
</co-simple-grid-column>
|
|
11103
|
+
</co-simple-grid>
|
|
11104
|
+
</div>
|
|
11105
|
+
`,
|
|
10650
11106
|
encapsulation: ViewEncapsulation.None
|
|
10651
11107
|
},] }
|
|
10652
11108
|
];
|
|
@@ -10665,62 +11121,71 @@ class TransactionSearchSalesOrderGridComponent extends TransactionSearchGridBase
|
|
|
10665
11121
|
showClass() {
|
|
10666
11122
|
return true;
|
|
10667
11123
|
}
|
|
11124
|
+
onTransactionClick(event) {
|
|
11125
|
+
console.log(this.searchService.transactions.length);
|
|
11126
|
+
}
|
|
10668
11127
|
}
|
|
10669
11128
|
TransactionSearchSalesOrderGridComponent.decorators = [
|
|
10670
11129
|
{ type: Component, args: [{
|
|
10671
11130
|
selector: "co-transaction-search-sales-order-grid",
|
|
10672
11131
|
template: `
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
11132
|
+
<div>
|
|
11133
|
+
<co-simple-grid
|
|
11134
|
+
[data]="searchService.transactions"
|
|
11135
|
+
[extraColumns]="extraColumns"
|
|
11136
|
+
[dragDropEnabled]="true"
|
|
11137
|
+
[emitDragDrop]="false"
|
|
11138
|
+
(selectRow)="onTransactionClick($event)">
|
|
11139
|
+
<co-simple-grid-column [headerText]="'ACTIVE' | localize"
|
|
11140
|
+
[order]="10" [textAlign]="align.Center">
|
|
11141
|
+
<ng-template #template let-row="row">
|
|
11142
|
+
<co-input-checkbox [model]="row.active" readonly></co-input-checkbox>
|
|
11143
|
+
</ng-template>
|
|
11144
|
+
</co-simple-grid-column>
|
|
11145
|
+
<co-simple-grid-column [headerText]="'NR' | localize" [field]="'transNr'"
|
|
11146
|
+
[order]="20"></co-simple-grid-column>
|
|
11147
|
+
<co-simple-grid-column [headerText]="'NAME' | localize" [field]="'relationName'"
|
|
11148
|
+
[order]="30"></co-simple-grid-column>
|
|
11149
|
+
<co-simple-grid-column [headerText]="'RELATION_NUMBER' | localize" [field]="'relationNr'"
|
|
11150
|
+
[order]="40"></co-simple-grid-column>
|
|
11151
|
+
<co-simple-grid-column [headerText]="'BRANCH' | localize" [field]="'brancheName'"
|
|
11152
|
+
[order]="50"></co-simple-grid-column>
|
|
11153
|
+
<co-simple-grid-column [headerText]="'ADDRESS' | localize" [field]="'adres'"
|
|
11154
|
+
[order]="70"></co-simple-grid-column>
|
|
11155
|
+
<co-simple-grid-column [headerText]="'REFERENCE_RELATION' | localize" [field]="'relationReference'"
|
|
11156
|
+
[order]="80"></co-simple-grid-column>
|
|
11157
|
+
<co-simple-grid-column [headerText]="'PREFERRED_DATE' | localize"
|
|
11158
|
+
[order]="90" [textAlign]="align.Right" [resizable]="false">
|
|
11159
|
+
<ng-template #template let-row="row">
|
|
11160
|
+
<div [textContent]="row.preferredDeliveryDate | date: 'dd MMM yyyy'"></div>
|
|
11161
|
+
</ng-template>
|
|
11162
|
+
</co-simple-grid-column>
|
|
11163
|
+
<co-simple-grid-column [headerText]="'TRANSACTION_DATE' | localize"
|
|
11164
|
+
[order]="100" [textAlign]="align.Right" [resizable]="false">
|
|
11165
|
+
<ng-template #template let-row="row">
|
|
11166
|
+
<div [textContent]="row.transDate | date:'dd MMM yyyy'"></div>
|
|
11167
|
+
</ng-template>
|
|
11168
|
+
</co-simple-grid-column>
|
|
11169
|
+
<co-simple-grid-column [headerText]="'ORDER_DEFINITIVE' | localize"
|
|
11170
|
+
[order]="105" [textAlign]="align.Center">
|
|
11171
|
+
<ng-template #template let-row="row">
|
|
11172
|
+
<co-input-checkbox [model]="row.transactionDefinitive" readonly></co-input-checkbox>
|
|
11173
|
+
</ng-template>
|
|
11174
|
+
</co-simple-grid-column>
|
|
11175
|
+
<co-simple-grid-column [headerText]="'DELIVERY_DATE' | localize"
|
|
11176
|
+
[order]="110" [textAlign]="align.Right" [resizable]="false">
|
|
11177
|
+
<ng-template #template let-row="row">
|
|
11178
|
+
<div [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
11179
|
+
</ng-template>
|
|
11180
|
+
</co-simple-grid-column>
|
|
11181
|
+
<co-simple-grid-column [headerText]="'DELIVERY_DATE_DEFINITIVE' | localize"
|
|
11182
|
+
[order]="115" [textAlign]="align.Center">
|
|
11183
|
+
<ng-template #template let-row="row">
|
|
11184
|
+
<co-input-checkbox [model]="row.deliveryDateDefinitive" readonly></co-input-checkbox>
|
|
11185
|
+
</ng-template>
|
|
11186
|
+
</co-simple-grid-column>
|
|
11187
|
+
</co-simple-grid>
|
|
11188
|
+
</div>
|
|
10724
11189
|
`,
|
|
10725
11190
|
encapsulation: ViewEncapsulation.None
|
|
10726
11191
|
},] }
|
|
@@ -10764,47 +11229,56 @@ TransactionSearchPurchaseOrderTileComponent.decorators = [
|
|
|
10764
11229
|
selector: "co-transaction-search-purchase-order-tile",
|
|
10765
11230
|
template: `
|
|
10766
11231
|
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
10767
|
-
<div class="
|
|
10768
|
-
<div class="
|
|
10769
|
-
<
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
11232
|
+
<div class="tile">
|
|
11233
|
+
<div class="tile-header">
|
|
11234
|
+
<div class="tile-upper-left">
|
|
11235
|
+
<div class="transaction-tile-avatar">
|
|
11236
|
+
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
11237
|
+
</div>
|
|
11238
|
+
</div>
|
|
11239
|
+
<div class="tile-upper-middle">
|
|
10773
11240
|
<div class="header"><span [textContent]="transaction.transNr"></span></div>
|
|
10774
11241
|
<div class="text"><span [textContent]="transaction.brancheName"></span></div>
|
|
10775
11242
|
</div>
|
|
10776
|
-
<div>
|
|
11243
|
+
<div class="tile-upper-right">
|
|
11244
|
+
<div class="status-bar-wrapper">
|
|
11245
|
+
<co-status-bar></co-status-bar>
|
|
11246
|
+
</div>
|
|
11247
|
+
<div class="header"><span [textContent]="transaction.totalPriceVat | currency:'EUR'"></span></div>
|
|
11248
|
+
</div>
|
|
11249
|
+
</div>
|
|
11250
|
+
<div class="tile-body">
|
|
11251
|
+
<div class="tile-middle-left"></div>
|
|
11252
|
+
<div class="tile-middle-middle">
|
|
10777
11253
|
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
10778
11254
|
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
10779
11255
|
</div>
|
|
11256
|
+
<div class="tile-middle-right"></div>
|
|
10780
11257
|
</div>
|
|
10781
|
-
<div class="
|
|
10782
|
-
<div class="
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
<div class="
|
|
10788
|
-
|
|
10789
|
-
<
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
<ng-template #indefinite>
|
|
10799
|
-
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.Unlock)" class="unlock-icon"></co-icon>
|
|
10800
|
-
</ng-template>
|
|
11258
|
+
<div class="tile-footer">
|
|
11259
|
+
<div class="tile-bottom-left order-info-section">
|
|
11260
|
+
<div class="label"><span [textContent]="'ORDER_DATE' | localize"></span></div>
|
|
11261
|
+
<div class="value">
|
|
11262
|
+
<span [textContent]="transaction.getTransDate() | date:'dd MMM yyyy'"></span></div>
|
|
11263
|
+
</div>
|
|
11264
|
+
<div class="tile-bottom-middle order-info-section">
|
|
11265
|
+
<div class="label"><span [textContent]="'DELIVERY_DATE' | localize"></span></div>
|
|
11266
|
+
<div class="value">
|
|
11267
|
+
<span [textContent]="transaction.getDeliveryDate() | date:'dd MMM yyyy'"></span>
|
|
11268
|
+
<div *ngIf="transaction.getDeliveryDate()">
|
|
11269
|
+
<co-icon *ngIf="transaction.deliveryDateDefinitive; else indefinite"
|
|
11270
|
+
[iconData]="this.iconCacheService.getIcon(this.icons.Lock)" class="lock-icon"></co-icon>
|
|
11271
|
+
<ng-template #indefinite>
|
|
11272
|
+
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.Unlock)" class="unlock-icon"></co-icon>
|
|
11273
|
+
</ng-template>
|
|
11274
|
+
</div>
|
|
10801
11275
|
</div>
|
|
10802
11276
|
</div>
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
11277
|
+
<div class="tile-bottom-right order-info-section">
|
|
11278
|
+
<div class="label"><span [textContent]="'ORDER_RULE' | localize"></span></div>
|
|
11279
|
+
<div class="value">
|
|
11280
|
+
<span [textContent]="'68/00'"></span></div>
|
|
11281
|
+
</div>
|
|
10808
11282
|
</div>
|
|
10809
11283
|
</div>
|
|
10810
11284
|
</div>
|
|
@@ -10824,50 +11298,58 @@ TransactionSearchSalesOrderTileComponent.decorators = [
|
|
|
10824
11298
|
selector: "co-transaction-search-sales-order-tile",
|
|
10825
11299
|
template: `
|
|
10826
11300
|
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
10827
|
-
<div class="
|
|
10828
|
-
<div class="
|
|
10829
|
-
<
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
11301
|
+
<div class="tile">
|
|
11302
|
+
<div class="tile-header">
|
|
11303
|
+
<div class="tile-upper-left">
|
|
11304
|
+
<div class="transaction-tile-avatar">
|
|
11305
|
+
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
11306
|
+
</div>
|
|
11307
|
+
</div>
|
|
11308
|
+
<div class="tile-upper-middle">
|
|
10833
11309
|
<div class="header"><span [textContent]="transaction.transNr"></span></div>
|
|
10834
11310
|
<div class="text"><span [textContent]="transaction.brancheName"></span></div>
|
|
10835
11311
|
</div>
|
|
10836
|
-
<div>
|
|
11312
|
+
<div class="tile-upper-right">
|
|
11313
|
+
<div class="status-bar-wrapper">
|
|
11314
|
+
<co-status-bar></co-status-bar>
|
|
11315
|
+
</div>
|
|
11316
|
+
<div class="header"><span [textContent]="transaction.totalPriceVat | currency:'EUR'"></span></div>
|
|
11317
|
+
</div>
|
|
11318
|
+
</div>
|
|
11319
|
+
<div class="tile-body">
|
|
11320
|
+
<div class="tile-middle-left"></div>
|
|
11321
|
+
<div class="tile-middle-middle">
|
|
10837
11322
|
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
10838
11323
|
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
10839
11324
|
</div>
|
|
11325
|
+
<div class="tile-middle-right"></div>
|
|
10840
11326
|
</div>
|
|
10841
|
-
<div class="
|
|
10842
|
-
<div class="
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
<div class="
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
11327
|
+
<div class="tile-footer">
|
|
11328
|
+
<div class="tile-bottom-left order-info-section">
|
|
11329
|
+
<div class="label"><span [textContent]="'ORDER_DATE' | localize"></span></div>
|
|
11330
|
+
<div class="value">
|
|
11331
|
+
<span [textContent]="transaction.getTransDate() | date:'dd MMM yyyy'"></span></div>
|
|
11332
|
+
</div>
|
|
11333
|
+
<div class="tile-bottom-middle order-info-section">
|
|
11334
|
+
<div class="label"><span [textContent]="'DELIVERY_DATE' | localize"></span></div>
|
|
11335
|
+
<div class="value">
|
|
11336
|
+
<span [textContent]="transaction.getDeliveryDate() | date:'dd MMM yyyy'"></span>
|
|
11337
|
+
<div *ngIf="transaction.getDeliveryDate()">
|
|
11338
|
+
<co-icon *ngIf="transaction.deliveryDateDefinitive; else indefinite"
|
|
11339
|
+
[iconData]="this.iconCacheService.getIcon(this.icons.Lock)" class="lock-icon"></co-icon>
|
|
11340
|
+
<ng-template #indefinite>
|
|
11341
|
+
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.Unlock)" class="unlock-icon"></co-icon>
|
|
11342
|
+
</ng-template>
|
|
11343
|
+
</div>
|
|
11344
|
+
</div>
|
|
11345
|
+
</div>
|
|
11346
|
+
<div class="tile-bottom-right order-info-section">
|
|
11347
|
+
<div class="label"><span [textContent]="'ORDER_RULE' | localize"></span></div>
|
|
11348
|
+
<div class="value">
|
|
11349
|
+
<span [textContent]="'68/00'"></span></div>
|
|
10862
11350
|
</div>
|
|
10863
|
-
</div>
|
|
10864
|
-
<div class="order-info-section">
|
|
10865
|
-
<div class="label"><span [textContent]="'ORDER_RULE' | localize"></span></div>
|
|
10866
|
-
<div class="value">
|
|
10867
|
-
<span [textContent]="'68/00'"></span></div>
|
|
10868
11351
|
</div>
|
|
10869
11352
|
</div>
|
|
10870
|
-
|
|
10871
11353
|
</div>`,
|
|
10872
11354
|
encapsulation: ViewEncapsulation.None
|
|
10873
11355
|
},] }
|
|
@@ -11677,22 +12159,21 @@ class TransactionLineSidePanelPurchaseComponent {
|
|
|
11677
12159
|
this.transactionLine = new TransactionLineInfo();
|
|
11678
12160
|
this.quantityToReceiveChange = new EventEmitter();
|
|
11679
12161
|
this.goodsReceiptStatus = new GoodsReceiptStatusWithHistory();
|
|
12162
|
+
this._transactionInfo = new TransactionInfo();
|
|
11680
12163
|
}
|
|
11681
|
-
set
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
this.getGoodsReceiptStatusWithHistory();
|
|
11685
|
-
}
|
|
12164
|
+
set transactionInfo(value) {
|
|
12165
|
+
this._transactionInfo = value;
|
|
12166
|
+
this.getGoodsReceiptStatusWithHistory();
|
|
11686
12167
|
}
|
|
11687
|
-
get
|
|
11688
|
-
return this.
|
|
12168
|
+
get transactionInfo() {
|
|
12169
|
+
return this._transactionInfo;
|
|
11689
12170
|
}
|
|
11690
12171
|
showClass() {
|
|
11691
12172
|
return true;
|
|
11692
12173
|
}
|
|
11693
12174
|
getGoodsReceiptStatusWithHistory() {
|
|
11694
12175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11695
|
-
yield this._service.getGoodsReceiptStatusWithHistory(this.
|
|
12176
|
+
yield this._service.getGoodsReceiptStatusWithHistory(this._transactionInfo.id, this.transactionLine.lineNr)
|
|
11696
12177
|
.then((result) => {
|
|
11697
12178
|
this.goodsReceiptStatus = result;
|
|
11698
12179
|
this._transactionEventService.transactionLineChanged.next({ transactionLine: this.transactionLine, goodsReceiptStatus: result });
|
|
@@ -11708,25 +12189,25 @@ TransactionLineSidePanelPurchaseComponent.decorators = [
|
|
|
11708
12189
|
<ng-container [ngSwitch]="category">
|
|
11709
12190
|
<ng-container *ngSwitchCase="categories.PurchaseOrderOrderConfirmation">
|
|
11710
12191
|
<co-transaction-confirmation-details
|
|
11711
|
-
[transactionInfoNr]="
|
|
12192
|
+
[transactionInfoNr]="transactionInfo.transactionNr"
|
|
11712
12193
|
[transactionLines]="transactionLine"
|
|
11713
12194
|
></co-transaction-confirmation-details>
|
|
11714
12195
|
<co-transaction-confirmation-history
|
|
11715
12196
|
[transactionLines]="transactionLine"
|
|
11716
|
-
[transactionInfoNr]="
|
|
11717
|
-
[transactionId]="
|
|
12197
|
+
[transactionInfoNr]="transactionInfo.transactionNr"
|
|
12198
|
+
[transactionId]="transactionInfo.id"
|
|
11718
12199
|
></co-transaction-confirmation-history>
|
|
11719
12200
|
</ng-container>
|
|
11720
12201
|
|
|
11721
12202
|
<ng-container *ngSwitchCase="categories.PurchaseOrderReceivedGoods">
|
|
11722
12203
|
<co-transaction-receiving-goods-details
|
|
11723
|
-
[transactionId]="
|
|
12204
|
+
[transactionId]="transactionInfo.id"
|
|
11724
12205
|
[transactionLine]="transactionLine"
|
|
11725
12206
|
[amountLeftToReceive]="goodsReceiptStatus.quantityToReceive"
|
|
11726
12207
|
(reloadReceivingGoodsHistory)="getGoodsReceiptStatusWithHistory()"
|
|
11727
12208
|
></co-transaction-receiving-goods-details>
|
|
11728
12209
|
<co-transaction-receiving-goods-history
|
|
11729
|
-
[transactionId]="
|
|
12210
|
+
[transactionId]="transactionInfo.id"
|
|
11730
12211
|
[transactionLine]="transactionLine"
|
|
11731
12212
|
[goodsReceiptHistory]="goodsReceiptStatus.goodsReceiptHistory"
|
|
11732
12213
|
(reloadReceivingGoodsHistory)="getGoodsReceiptStatusWithHistory()"
|
|
@@ -11735,6 +12216,7 @@ TransactionLineSidePanelPurchaseComponent.decorators = [
|
|
|
11735
12216
|
|
|
11736
12217
|
<ng-container *ngSwitchDefault>
|
|
11737
12218
|
<co-transaction-line-side-panel-default
|
|
12219
|
+
[transactionInfo]="transactionInfo"
|
|
11738
12220
|
[transactionLine]="transactionLine"
|
|
11739
12221
|
></co-transaction-line-side-panel-default>
|
|
11740
12222
|
</ng-container>
|
|
@@ -11748,10 +12230,9 @@ TransactionLineSidePanelPurchaseComponent.ctorParameters = () => [
|
|
|
11748
12230
|
{ type: TransactionEventService }
|
|
11749
12231
|
];
|
|
11750
12232
|
TransactionLineSidePanelPurchaseComponent.propDecorators = {
|
|
12233
|
+
transactionInfo: [{ type: Input }],
|
|
11751
12234
|
transactionLine: [{ type: Input }],
|
|
11752
|
-
transactionId: [{ type: Input }],
|
|
11753
12235
|
category: [{ type: Input }],
|
|
11754
|
-
transactionInfoNr: [{ type: Input }],
|
|
11755
12236
|
quantityToReceiveChange: [{ type: Output }],
|
|
11756
12237
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-side-panel-purchase",] }]
|
|
11757
12238
|
};
|
|
@@ -12357,6 +12838,153 @@ TransactionReceivedGoodsGridModule.decorators = [
|
|
|
12357
12838
|
},] }
|
|
12358
12839
|
];
|
|
12359
12840
|
|
|
12841
|
+
class TransactionTileComponent {
|
|
12842
|
+
constructor(iconCacheService, _imageService) {
|
|
12843
|
+
this.iconCacheService = iconCacheService;
|
|
12844
|
+
this._imageService = _imageService;
|
|
12845
|
+
this.icon = Icon;
|
|
12846
|
+
this.transactionTypes = TransactionKind;
|
|
12847
|
+
this.showSidePanelClicked = new EventEmitter();
|
|
12848
|
+
}
|
|
12849
|
+
set transactionLine(value) {
|
|
12850
|
+
this._transactionLine = value;
|
|
12851
|
+
this._loadLineImage();
|
|
12852
|
+
}
|
|
12853
|
+
get transactionLine() {
|
|
12854
|
+
return this._transactionLine;
|
|
12855
|
+
}
|
|
12856
|
+
showClass() {
|
|
12857
|
+
return true;
|
|
12858
|
+
}
|
|
12859
|
+
handleSidePanelButtonClicked() {
|
|
12860
|
+
this.showSidePanelClicked.next(this._transactionLine);
|
|
12861
|
+
}
|
|
12862
|
+
getStatusColor(n) {
|
|
12863
|
+
switch (n) {
|
|
12864
|
+
case 0:
|
|
12865
|
+
return '#5fdbb2';
|
|
12866
|
+
case 1:
|
|
12867
|
+
return '#f78852';
|
|
12868
|
+
case 2:
|
|
12869
|
+
return '#f23a3a';
|
|
12870
|
+
}
|
|
12871
|
+
}
|
|
12872
|
+
_loadLineImage() {
|
|
12873
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12874
|
+
if (this._transactionLine && this._transactionLine.isArticle) {
|
|
12875
|
+
this._imageService.retrieveLineImage(this._transactionLine).then((image) => {
|
|
12876
|
+
this.image = image;
|
|
12877
|
+
});
|
|
12878
|
+
}
|
|
12879
|
+
});
|
|
12880
|
+
}
|
|
12881
|
+
}
|
|
12882
|
+
TransactionTileComponent.decorators = [
|
|
12883
|
+
{ type: Component, args: [{
|
|
12884
|
+
selector: "co-transaction-tile",
|
|
12885
|
+
template: `
|
|
12886
|
+
<div class="transaction-tile-wrapper" *ngIf="transactionLine">
|
|
12887
|
+
<div class="header-row center">
|
|
12888
|
+
<div class="header-transport-container center">
|
|
12889
|
+
<co-icon class="transport-method-icon" [iconData]="iconCacheService.getIcon(icon.DeliveryTruck)"></co-icon>
|
|
12890
|
+
<span class="transport-method-text" [textContent]="'Dropshipment door leverancier'"></span>
|
|
12891
|
+
</div>
|
|
12892
|
+
<span class="header-date bold" [textContent]="transactionLine.deliveryDate | date : 'd-MM-yyyy'"></span>
|
|
12893
|
+
<co-icon class="header-side-panel-button"
|
|
12894
|
+
[iconData]="iconCacheService.getIcon(icon.ThickLines)"
|
|
12895
|
+
(click)="handleSidePanelButtonClicked()"
|
|
12896
|
+
></co-icon>
|
|
12897
|
+
</div>
|
|
12898
|
+
|
|
12899
|
+
<div class="transaction-details-row">
|
|
12900
|
+
<div class="transaction-details-container">
|
|
12901
|
+
<span class="transaction-tile-title bold" [textContent]="transactionLine.goodDescription"></span>
|
|
12902
|
+
<span *ngFor="let text of transactionLine.articleTestAsArray" class="transaction-tile-description"
|
|
12903
|
+
[innerHTML]="text | safeHtml"></span>
|
|
12904
|
+
</div>
|
|
12905
|
+
<co-image-display class="tile-image" [model]="image"></co-image-display>
|
|
12906
|
+
</div>
|
|
12907
|
+
|
|
12908
|
+
<div class="transaction-order-status-row">
|
|
12909
|
+
<div class="indicators-wrapper">
|
|
12910
|
+
<div *ngFor="let n of [0, 1, 2]" [style.background]="getStatusColor(n)" class="transaction-order-status-indicator"></div>
|
|
12911
|
+
</div>
|
|
12912
|
+
</div>
|
|
12913
|
+
|
|
12914
|
+
<div class="transaction-data-row center">
|
|
12915
|
+
<div class="transaction-data-header">
|
|
12916
|
+
<div class="transaction-data-header-item">
|
|
12917
|
+
<span class="transaction-data-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
|
|
12918
|
+
<span class="transaction-data-header-field"
|
|
12919
|
+
[textContent]="transactionLine.articleNumber ? transactionLine.articleNumber : '-'"></span>
|
|
12920
|
+
</div>
|
|
12921
|
+
<div class="transaction-data-header-divider"></div>
|
|
12922
|
+
<div class="transaction-data-header-item center">
|
|
12923
|
+
<span class="transaction-data-header-label" [textContent]="'PRICE'| localize"></span>
|
|
12924
|
+
<span class="transaction-data-header-field"
|
|
12925
|
+
[textContent]="transactionLine.price ? (transactionLine.price | priceDisplay) : '-'"></span>
|
|
12926
|
+
</div>
|
|
12927
|
+
<div class="transaction-data-header-divider"></div>
|
|
12928
|
+
<div class="transaction-data-header-item center">
|
|
12929
|
+
<span class="transaction-data-header-label" [textContent]="'DISCOUNT'| localize"></span>
|
|
12930
|
+
<span class="transaction-data-header-field"
|
|
12931
|
+
[textContent]="transactionLine.discountAmount ? transactionLine.discountAmount : '-'"></span>
|
|
12932
|
+
</div>
|
|
12933
|
+
<div class="transaction-data-header-divider"></div>
|
|
12934
|
+
<div class="transaction-data-header-item center">
|
|
12935
|
+
<span class="transaction-data-header-label" [textContent]="'Mag'| localize"></span>
|
|
12936
|
+
<span class="transaction-data-header-field"
|
|
12937
|
+
[textContent]="transactionLine.warehouseNumber ? transactionLine.warehouseNumber : '-'"></span>
|
|
12938
|
+
</div>
|
|
12939
|
+
<div class="transaction-data-header-divider"></div>
|
|
12940
|
+
<div class="transaction-data-header-item center">
|
|
12941
|
+
<span class="transaction-data-header-label" [textContent]="'CC'| localize"></span>
|
|
12942
|
+
<span class="transaction-data-header-field"
|
|
12943
|
+
[textContent]="transactionLine.commissionCode ? transactionLine.commissionCode : '-'"></span>
|
|
12944
|
+
</div>
|
|
12945
|
+
</div>
|
|
12946
|
+
<div class="transaction-data-header-item mutable center">
|
|
12947
|
+
<span class="transaction-data-header-label" [textContent]="'AMOUNT'| localize"></span>
|
|
12948
|
+
<input type="number" class="transaction-data-header-field bold amount-input" [(ngModel)]="transactionLine.amount">
|
|
12949
|
+
</div>
|
|
12950
|
+
</div>
|
|
12951
|
+
</div>
|
|
12952
|
+
`,
|
|
12953
|
+
encapsulation: ViewEncapsulation.None
|
|
12954
|
+
},] }
|
|
12955
|
+
];
|
|
12956
|
+
TransactionTileComponent.ctorParameters = () => [
|
|
12957
|
+
{ type: IconCacheService },
|
|
12958
|
+
{ type: TransactionImageService }
|
|
12959
|
+
];
|
|
12960
|
+
TransactionTileComponent.propDecorators = {
|
|
12961
|
+
transactionType: [{ type: Input }],
|
|
12962
|
+
transactionLine: [{ type: Input }],
|
|
12963
|
+
showSidePanelClicked: [{ type: Output }],
|
|
12964
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-tile",] }]
|
|
12965
|
+
};
|
|
12966
|
+
|
|
12967
|
+
class TransactionTileModule {
|
|
12968
|
+
}
|
|
12969
|
+
TransactionTileModule.decorators = [
|
|
12970
|
+
{ type: NgModule, args: [{
|
|
12971
|
+
imports: [
|
|
12972
|
+
CommonModule,
|
|
12973
|
+
CoreModule,
|
|
12974
|
+
IconModule,
|
|
12975
|
+
PipeModule,
|
|
12976
|
+
FormsModule,
|
|
12977
|
+
PriceDisplayPipeModule
|
|
12978
|
+
],
|
|
12979
|
+
declarations: [
|
|
12980
|
+
TransactionTileComponent
|
|
12981
|
+
],
|
|
12982
|
+
exports: [
|
|
12983
|
+
TransactionTileComponent
|
|
12984
|
+
]
|
|
12985
|
+
},] }
|
|
12986
|
+
];
|
|
12987
|
+
|
|
12360
12988
|
class TransactionModule {
|
|
12361
12989
|
}
|
|
12362
12990
|
TransactionModule.decorators = [
|
|
@@ -12381,7 +13009,8 @@ TransactionModule.decorators = [
|
|
|
12381
13009
|
TransactionOrderConfirmationGridModule,
|
|
12382
13010
|
TransactionReceivedGoodsGridModule,
|
|
12383
13011
|
ViewModeButtonsModule,
|
|
12384
|
-
TransactionGridModule
|
|
13012
|
+
TransactionGridModule,
|
|
13013
|
+
TransactionTileModule
|
|
12385
13014
|
],
|
|
12386
13015
|
declarations: [
|
|
12387
13016
|
TransactionComponent
|
|
@@ -12463,26 +13092,27 @@ TransactionSearchComponent.decorators = [
|
|
|
12463
13092
|
{ type: Component, args: [{
|
|
12464
13093
|
selector: 'co-transaction-search',
|
|
12465
13094
|
template: `
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
13095
|
+
<div class="transaction-search-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
13096
|
+
<div class="transaction-filter-wrapper narrow-scrollbar" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
13097
|
+
*ngIf="showFilterSidebar" @showHideFilterSidebar>
|
|
13098
|
+
<co-transaction-filter
|
|
13099
|
+
[transactionType]="transactionType"
|
|
13100
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
13101
|
+
(closeButtonClick)="handleHideFilter()"
|
|
13102
|
+
(resetFilterClick)="handleResetFilter()"></co-transaction-filter>
|
|
13103
|
+
</div>
|
|
13104
|
+
<div class="transaction-search-result-wrapper">
|
|
13105
|
+
<co-transaction-search-result
|
|
13106
|
+
[transactionType]="transactionType"
|
|
13107
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
13108
|
+
(filterClick)="toggleFilter()"
|
|
13109
|
+
(transactionClick)="onTransactionClick($event)"
|
|
13110
|
+
(resizeClick)="onResizeClick()"
|
|
13111
|
+
(closeClick)="closeClick.emit()"
|
|
13112
|
+
></co-transaction-search-result>
|
|
13113
|
+
</div>
|
|
12484
13114
|
</div>
|
|
12485
|
-
|
|
13115
|
+
<ng-content></ng-content>
|
|
12486
13116
|
`,
|
|
12487
13117
|
animations: [
|
|
12488
13118
|
trigger("showHideFilterSidebar", [
|
|
@@ -13642,7 +14272,8 @@ TransactionSearchPurchaseOrderGridModule.decorators = [
|
|
|
13642
14272
|
CommonModule,
|
|
13643
14273
|
SimpleGridModule,
|
|
13644
14274
|
PipeModule,
|
|
13645
|
-
InputCheckboxModule
|
|
14275
|
+
InputCheckboxModule,
|
|
14276
|
+
PaginationModule
|
|
13646
14277
|
],
|
|
13647
14278
|
declarations: [
|
|
13648
14279
|
TransactionSearchPurchaseOrderGridComponent
|
|
@@ -13662,7 +14293,8 @@ TransactionSearchSalesOrderGridModule.decorators = [
|
|
|
13662
14293
|
CoreModule,
|
|
13663
14294
|
PipeModule,
|
|
13664
14295
|
SimpleGridModule,
|
|
13665
|
-
InputCheckboxModule
|
|
14296
|
+
InputCheckboxModule,
|
|
14297
|
+
PaginationModule
|
|
13666
14298
|
],
|
|
13667
14299
|
declarations: [
|
|
13668
14300
|
TransactionSearchSalesOrderGridComponent
|
|
@@ -13893,6 +14525,57 @@ TransactionSearchGridModule.decorators = [
|
|
|
13893
14525
|
},] }
|
|
13894
14526
|
];
|
|
13895
14527
|
|
|
14528
|
+
class StatusBarComponent {
|
|
14529
|
+
constructor(iconCacheService) {
|
|
14530
|
+
this.iconCacheService = iconCacheService;
|
|
14531
|
+
this.icons = Icon;
|
|
14532
|
+
}
|
|
14533
|
+
showClass() {
|
|
14534
|
+
return true;
|
|
14535
|
+
}
|
|
14536
|
+
}
|
|
14537
|
+
StatusBarComponent.decorators = [
|
|
14538
|
+
{ type: Component, args: [{
|
|
14539
|
+
selector: "co-status-bar",
|
|
14540
|
+
template: `
|
|
14541
|
+
<div>
|
|
14542
|
+
<!--Tijdelijk visueel voorbeeld:-->
|
|
14543
|
+
<div class="status-bar-icons-wrapper">
|
|
14544
|
+
<co-icon class="color-green" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
|
|
14545
|
+
<co-icon class="color-orange" [iconData]="this.iconCacheService.getIcon(this.icons.SquareFullSolid)"></co-icon>
|
|
14546
|
+
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
14547
|
+
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
14548
|
+
<co-icon [iconData]="this.iconCacheService.getIcon(this.icons.SquareFull)"></co-icon>
|
|
14549
|
+
</div>
|
|
14550
|
+
</div>
|
|
14551
|
+
`,
|
|
14552
|
+
encapsulation: ViewEncapsulation.None
|
|
14553
|
+
},] }
|
|
14554
|
+
];
|
|
14555
|
+
StatusBarComponent.ctorParameters = () => [
|
|
14556
|
+
{ type: IconCacheService }
|
|
14557
|
+
];
|
|
14558
|
+
StatusBarComponent.propDecorators = {
|
|
14559
|
+
showClass: [{ type: HostBinding, args: ["class.co-status-bar",] }]
|
|
14560
|
+
};
|
|
14561
|
+
|
|
14562
|
+
class StatusBarModule {
|
|
14563
|
+
}
|
|
14564
|
+
StatusBarModule.decorators = [
|
|
14565
|
+
{ type: NgModule, args: [{
|
|
14566
|
+
imports: [
|
|
14567
|
+
CommonModule,
|
|
14568
|
+
IconModule
|
|
14569
|
+
],
|
|
14570
|
+
declarations: [
|
|
14571
|
+
StatusBarComponent
|
|
14572
|
+
],
|
|
14573
|
+
exports: [
|
|
14574
|
+
StatusBarComponent
|
|
14575
|
+
]
|
|
14576
|
+
},] }
|
|
14577
|
+
];
|
|
14578
|
+
|
|
13896
14579
|
class TransactionSearchPurchaseOrderTileModule {
|
|
13897
14580
|
}
|
|
13898
14581
|
TransactionSearchPurchaseOrderTileModule.decorators = [
|
|
@@ -13901,7 +14584,8 @@ TransactionSearchPurchaseOrderTileModule.decorators = [
|
|
|
13901
14584
|
CommonModule,
|
|
13902
14585
|
PipeModule,
|
|
13903
14586
|
AvatarModule,
|
|
13904
|
-
IconModule
|
|
14587
|
+
IconModule,
|
|
14588
|
+
StatusBarModule
|
|
13905
14589
|
],
|
|
13906
14590
|
declarations: [
|
|
13907
14591
|
TransactionSearchPurchaseOrderTileComponent
|
|
@@ -13923,6 +14607,7 @@ TransactionSearchSalesOrderTileModule.decorators = [
|
|
|
13923
14607
|
ButtonModule,
|
|
13924
14608
|
PipeModule,
|
|
13925
14609
|
IconModule,
|
|
14610
|
+
StatusBarModule,
|
|
13926
14611
|
],
|
|
13927
14612
|
declarations: [
|
|
13928
14613
|
TransactionSearchSalesOrderTileComponent
|
|
@@ -14070,8 +14755,14 @@ class TransactionSearchResultComponent {
|
|
|
14070
14755
|
onFilterClick() {
|
|
14071
14756
|
this.filterClick.emit();
|
|
14072
14757
|
}
|
|
14073
|
-
|
|
14074
|
-
this.searchService.
|
|
14758
|
+
onPreviousClick() {
|
|
14759
|
+
this.searchService.currentPage -= 1;
|
|
14760
|
+
}
|
|
14761
|
+
onNextClick() {
|
|
14762
|
+
this.searchService.currentPage += 1;
|
|
14763
|
+
}
|
|
14764
|
+
onPageClick(pageNr) {
|
|
14765
|
+
this.searchService.currentPage = pageNr;
|
|
14075
14766
|
}
|
|
14076
14767
|
}
|
|
14077
14768
|
TransactionSearchResultComponent.decorators = [
|
|
@@ -14092,8 +14783,7 @@ TransactionSearchResultComponent.decorators = [
|
|
|
14092
14783
|
|
|
14093
14784
|
<div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
14094
14785
|
*ngIf="activeContentViewMode === contentViewModes.Tiles">
|
|
14095
|
-
<div class="transaction-tile" *ngFor="let transaction of searchService.transactions
|
|
14096
|
-
{itemsPerPage: searchService.transactionsPerPage, currentPage: searchService.showcasePage, totalItems: searchService.resultCount}">
|
|
14786
|
+
<div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
|
|
14097
14787
|
<co-transaction-search-tile
|
|
14098
14788
|
[transaction]="transaction"
|
|
14099
14789
|
[transactionType]="transactionType"
|
|
@@ -14101,15 +14791,25 @@ TransactionSearchResultComponent.decorators = [
|
|
|
14101
14791
|
(transactionClick)="onTransactionClick($event)">
|
|
14102
14792
|
</co-transaction-search-tile>
|
|
14103
14793
|
</div>
|
|
14104
|
-
<co-pagination [previousLabel]="'PREVIOUS' | localize" [nextLabel]="'NEXT' | localize"
|
|
14105
|
-
(pageChange)="onPaginationPageChange($event)"></co-pagination>
|
|
14106
14794
|
</div>
|
|
14795
|
+
|
|
14107
14796
|
<div class="transaction-search-result-content-grid-wrapper" *ngIf="activeContentViewMode === contentViewModes.Grid">
|
|
14108
14797
|
<co-transaction-search-grid
|
|
14109
14798
|
[transactionType]="transactionType"
|
|
14110
14799
|
(transactionClick)="onTransactionClick($event)"
|
|
14111
14800
|
></co-transaction-search-grid>
|
|
14112
14801
|
</div>
|
|
14802
|
+
<co-pagination-bar *ngIf="searchService.transactions?.length > 0"
|
|
14803
|
+
[currentPage]="searchService.currentPage"
|
|
14804
|
+
[itemsPerPage]="searchService.transactionsPerPage"
|
|
14805
|
+
[totalItems]="searchService.resultCount"
|
|
14806
|
+
[previousLabel]="'PREVIOUS' | localize"
|
|
14807
|
+
[nextLabel]="'NEXT' | localize"
|
|
14808
|
+
[autoHide]="true"
|
|
14809
|
+
(previousClick)="onPreviousClick()"
|
|
14810
|
+
(nextClick)="onNextClick()"
|
|
14811
|
+
(pageClick)="onPageClick($event)">
|
|
14812
|
+
</co-pagination-bar>
|
|
14113
14813
|
`,
|
|
14114
14814
|
encapsulation: ViewEncapsulation.None
|
|
14115
14815
|
},] }
|
|
@@ -14145,7 +14845,8 @@ TransactionSearchResultModule.decorators = [
|
|
|
14145
14845
|
TransactionSearchHeaderModule,
|
|
14146
14846
|
TransactionSearchGridModule,
|
|
14147
14847
|
TransactionSearchTileModule,
|
|
14148
|
-
PaginationModule
|
|
14848
|
+
PaginationModule,
|
|
14849
|
+
PaginationBarModule
|
|
14149
14850
|
],
|
|
14150
14851
|
declarations: [
|
|
14151
14852
|
TransactionSearchResultComponent
|
|
@@ -14969,5 +15670,5 @@ TransactionLineGridModule.decorators = [
|
|
|
14969
15670
|
* Generated bundle index. Do not edit.
|
|
14970
15671
|
*/
|
|
14971
15672
|
|
|
14972
|
-
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressComponent as ɵba, RelationAddressSelectModule as ɵbb, RelationAddressTileModule as ɵbc, TileModule as ɵbd, TileComponent as ɵbe, RelationAddressTileComponent as ɵbf, RelationAddressSelectComponent as ɵbg, BusinessObjectFactory as ɵbh, StepperModule as ɵbi, StepperComponent as ɵbj, StepperStepComponent as ɵbk, TransactionArticleTextModule as ɵbl, TransactionArticleTextComponent as ɵbm, TransactionArticleTextOverviewModule as ɵbn, TransactionArticleTextOverviewComponent as ɵbo, TransactionLineActionButtonsModule as ɵbp, TransactionLineActionButtonsComponent as ɵbq, EditableLabelModule as ɵbr, EditableLabelComponent as ɵbs, TransactionLinePriceModule as ɵbt, TransactionLinePriceComponent as ɵbu, TransactionLineFieldsBaseComponent as ɵbv,
|
|
15673
|
+
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, TransactionConfirmationDetailsComponent, TransactionConfirmationDetailsModule, TransactionConfirmationHistoryComponent, TransactionConfirmationHistoryModule, TransactionHeaderComponent, TransactionHeaderDeliveryComponent, TransactionHeaderDeliveryModule, TransactionHeaderModule, TransactionHeaderOrderComponent, TransactionHeaderOrderModule, TransactionHeaderRelationComponent, TransactionHeaderRelationModule, TransactionLineComponent, TransactionLineGridComponent, TransactionLineGridModule, TransactionLineModule, TransactionLinesComponent, TransactionLinesModule, TransactionModule, TransactionQuickAccessComponent, TransactionQuickAccessModule, TransactionQuickAccessOrderConfirmationComponent, TransactionQuickAccessOrderConfirmationModule, TransactionQuickAccessReceivedGoodsComponent, TransactionQuickAccessReceivedGoodsModule, TransactionSearchComponent, TransactionSearchModule, TransactionService, TransactionTotalsComponent, TransactionTotalsModule, PendingReasonService as ɵa, DialogService as ɵb, RelationAddressComponent as ɵba, RelationAddressSelectModule as ɵbb, RelationAddressTileModule as ɵbc, TileModule as ɵbd, TileComponent as ɵbe, RelationAddressTileComponent as ɵbf, RelationAddressSelectComponent as ɵbg, BusinessObjectFactory as ɵbh, StepperModule as ɵbi, StepperComponent as ɵbj, StepperStepComponent as ɵbk, TransactionArticleTextModule as ɵbl, TransactionArticleTextComponent as ɵbm, TransactionArticleTextOverviewModule as ɵbn, TransactionArticleTextOverviewComponent as ɵbo, TransactionLineActionButtonsModule as ɵbp, TransactionLineActionButtonsComponent as ɵbq, EditableLabelModule as ɵbr, EditableLabelComponent as ɵbs, TransactionLinePriceModule as ɵbt, TransactionLinePriceComponent as ɵbu, TransactionLineFieldsBaseComponent as ɵbv, TransactionLineDescriptionModule as ɵbw, TransactionLineDescriptionComponent as ɵbx, TransactionImageService as ɵby, AvatarModule as ɵbz, OptionsService as ɵc, AvatarComponent as ɵca, SharedService as ɵcb, SharedConnectorService as ɵcc, DeliveryTypeTileModule as ɵcd, DeliveryTypeTileComponent as ɵce, PaymentModule as ɵcf, PaymentTileModule as ɵcg, PaymentTileComponent as ɵch, PaymentQrCodeModule as ɵci, PaymentQrCodeComponent as ɵcj, PaymentService as ɵck, PaymentComponent as ɵcl, CheckoutOverviewRelationEditComponent as ɵcm, CheckoutOverviewDeliveryEditComponent as ɵcn, CheckoutOverviewDeliveryAddressComponent as ɵco, CheckOutRelationSuggestionsListComponent as ɵcp, CheckOutRelationSuggestionsListItemComponent as ɵcq, CheckoutLoginComponent as ɵcr, TransactionHeaderModule$1 as ɵcs, TransactionHeaderBlockModule as ɵct, TransactionHeaderBlockComponent as ɵcu, TransactionBaseComponent as ɵcv, TransactionHeaderDeliveryDateComponent as ɵcw, TransactionHeaderFieldsBaseComponent as ɵcx, TransactionHeaderPaymentModule as ɵcy, TransactionHeaderPaymentComponent as ɵcz, DictionaryService as ɵd, TransactionHeaderComponent$1 as ɵda, TransactionLinesGridModule as ɵdb, TransactionBaseGridModule as ɵdc, TransactionLineSidePanelModule as ɵdd, TransactionLineSidePanelDefaultModule as ɵde, TransactionLinePriceListModule as ɵdf, TransactionLinePriceListComponent as ɵdg, TransactionLineVatModule as ɵdh, TransactionLineVatComponent as ɵdi, TransactionLineQuantityModule as ɵdj, TransactionLineQuantityComponent as ɵdk, TransactionLineLineDiscountModule as ɵdl, TransactionLineLineDiscountComponent as ɵdm, TransactionLineDeliveryMethodModule as ɵdn, TransactionLineDeliveryMethodComponent as ɵdo, TransactionLineDeliveryDateModule as ɵdp, TransactionLineDeliveryDateComponent as ɵdq, TransactionLineReferenceModule as ɵdr, TransactionLineReferenceComponent as ɵds, TransactionLineCommissionCodeModule as ɵdt, TransactionLineCommissionCodeComponent as ɵdu, TransactionLineWarehouseModule as ɵdv, TransactionLineWarehouseComponent as ɵdw, TransactionLineDiscountAmountModule as ɵdx, TransactionLineDiscountAmountComponent as ɵdy, TransactionLineQuantumDiscountModule as ɵdz, TransactionConnectorService as ɵe, TransactionLineQuantumDiscountComponent as ɵea, TransactionLineSpecialDiscountModule as ɵeb, TransactionLineSpecialDiscountComponent as ɵec, TransactionLineSupplierModule as ɵed, TransactionLineSupplierComponent as ɵee, TransactionLineSidePanelDefaultComponent as ɵef, TransactionReceivingGoodsHistoryModule as ɵeg, TransactionHistoryGridModule as ɵeh, TransactionHistoryGridStatusModule as ɵei, TransactionHistoryGridStatusComponent as ɵej, TransactionHistoryGridComponent as ɵek, TransactionReceivingGoodsHistoryComponent as ɵel, TransactionReceivingGoodsDetailsModule as ɵem, TransactionReceivingGoodsDetailsComponent as ɵen, ArticleService as ɵeo, TransactionButtonBarModule as ɵep, TransactionButtonBarComponent as ɵeq, TransactionMappingService as ɵer, TransactionButtonBarButtonComponent as ɵes, TransactionLineSidePanelPurchaseModule as ɵet, DefaultOkCancelButtonsModule as ɵeu, DefaultOkCancelButtonsComponent as ɵev, TransactionLineSidePanelPurchaseComponent as ɵew, TransactionEventService as ɵex, TransactionLineSidePanelComponent as ɵey, TransactionBaseGridComponent as ɵez, CollectionCacheService as ɵf, TransactionGridBaseComponent as ɵfa, TransactionLinesGridComponent as ɵfb, DiscountModule as ɵfc, DiscountComponent as ɵfd, TransactionQuickAccessOverviewModule as ɵfe, TransactionQuickAccessOverviewComponent as ɵff, TransactionOrderConfirmationGridModule as ɵfg, TransactionOrderConfirmationGridComponent as ɵfh, TransactionReceivedGoodsGridModule as ɵfi, TransactionReceivedGoodsGridComponent as ɵfj, ViewModeButtonsModule as ɵfk, ViewModeButtonsComponent as ɵfl, TransactionGridModule as ɵfm, TransactionGridComponent as ɵfn, TransactionTileModule as ɵfo, TransactionTileComponent as ɵfp, TransactionSearchService as ɵfq, TransactionSearchResultModule as ɵfr, TransactionSearchSalesOrderTileModule as ɵfs, StatusBarModule as ɵft, StatusBarComponent as ɵfu, TransactionSearchSalesOrderTileComponent as ɵfv, TransactionSearchTileBaseComponent as ɵfw, TransactionSearchPurchaseOrderTileModule as ɵfx, TransactionSearchPurchaseOrderTileComponent as ɵfy, TransactionSearchSalesOrderGridModule as ɵfz, ArticleConnectorService as ɵg, TransactionSearchSalesOrderGridComponent as ɵga, TransactionSearchGridBaseComponent as ɵgb, TransactionSearchPurchaseOrderGridModule as ɵgc, TransactionSearchPurchaseOrderGridComponent as ɵgd, TransactionSearchHeaderModule as ɵge, TransactionSearchHeaderComponent as ɵgf, TransactionSearchGridModule as ɵgg, TransactionSearchGridComponent as ɵgh, TransactionSearchTileModule as ɵgi, TransactionSearchTileComponent as ɵgj, TransactionSearchResultComponent as ɵgk, TransactionSalesOrderFilterModule as ɵgl, TransactionFilterCategoriesModule as ɵgm, TransactionFilterCategoriesComponent as ɵgn, TransactionSalesOrderFilterContentOrderModule as ɵgo, TransactionSalesOrderFilterContentOrderComponent as ɵgp, TransactionFilterContentBaseComponent as ɵgq, FilterRequestService as ɵgr, TransactionSalesOrderFilterContentLogisticsModule as ɵgs, TransactionFilterHistoricStateModule as ɵgt, TransactionFilterHistoricStateComponent as ɵgu, TransactionSalesOrderFilterContentLogisticsComponent as ɵgv, TransactionSalesOrderFilterContentArticleModule as ɵgw, TransactionSalesOrderFilterContentArticleComponent as ɵgx, TransactionSalesOrderFilterComponent as ɵgy, TransactionFilterBaseComponent as ɵgz, CoreModule as ɵh, TransactionPurchaseOrderFilterModule as ɵha, TransactionPurchaseOrderFilterContentOrderModule as ɵhb, TransactionPurchaseOrderFilterContentOrderComponent as ɵhc, TransactionPurchaseOrderFilterContentLogisticsModule as ɵhd, TransactionPurchaseOrderFilterContentLogisticsComponent as ɵhe, TransactionPurchaseOrderFilterContentArticleModule as ɵhf, TransactionPurchaseOrderFilterContentArticleComponent as ɵhg, TransactionPurchaseOrderFilterComponent as ɵhh, TransactionFilterModule as ɵhi, TransactionFilterComponent as ɵhj, ConfirmationDialogModule as ɵi, PipeModule as ɵj, AppendPipe as ɵk, DeliveryTimePipe as ɵl, DateDurationPipe as ɵm, LocalizePipe as ɵn, CoCurrencyPipe as ɵo, SafeStylePipe as ɵp, SafeHtmlPipe as ɵq, ConfirmationDialogComponent as ɵr, DialogBaseComponent as ɵs, ImageDisplayComponent as ɵt, IconComponent as ɵu, IconCacheService as ɵv, CustomerGroupsComponent as ɵw, StockStatusIndicatorComponent as ɵx, LoaderComponent as ɵy, RelationAddressModule as ɵz };
|
|
14973
15674
|
//# sourceMappingURL=colijnit-transaction.js.map
|