@colijnit/transaction 12.1.17 → 12.1.20
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 +877 -418
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +149 -143
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +150 -144
- package/esm2015/lib/assets/dictionary/text.properties.js +24 -1
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +5 -2
- package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.js +3 -1
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +16 -112
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.js +162 -0
- package/esm2015/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.js +30 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +2 -2
- package/esm2015/lib/component/transaction-search/service/filter-request.service.js +5 -20
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +24 -2
- package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +6 -2
- package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +43 -20
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +41 -55
- package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +6 -3
- package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +30 -15
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.js +60 -0
- package/esm2015/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.js +24 -0
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.js +86 -0
- package/esm2015/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.js +120 -0
- package/esm2015/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.js +26 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +49 -25
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +9 -5
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +77 -0
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.js +28 -0
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +52 -12
- package/esm2015/lib/enum/direction.enum.js +9 -0
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/enum/search-view-mode.enum.js +7 -0
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/article-connector.service.js +54 -1
- package/esm2015/lib/service/pending-reason.service.js +8 -4
- package/esm2015/lib/service/transaction-connector.service.js +2 -1
- package/esm2015/lib/service/transaction-mapping.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +13 -2
- package/fesm2015/colijnit-transaction.js +873 -369
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_layout.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_material-definition.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/_theme.scss +0 -0
- package/lib/component/core/base/{style → components/default-ok-cancel-buttons/style}/material.scss +0 -0
- package/lib/component/tile/style/_material-definition.scss +2 -1
- package/lib/component/transaction-grid/transaction-base-grid/style/_layout.scss +4 -0
- package/lib/component/transaction-line/style/_layout.scss +0 -47
- package/lib/component/transaction-line/style/_theme.scss +0 -17
- package/lib/component/transaction-line/transaction-line.component.d.ts +3 -17
- package/lib/component/transaction-line-action-buttons/style/_layout.scss +106 -0
- package/lib/component/transaction-line-action-buttons/style/_material-definition.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/_theme.scss +7 -0
- package/lib/component/transaction-line-action-buttons/style/material.scss +3 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.component.d.ts +43 -0
- package/lib/component/transaction-line-action-buttons/transaction-line-action-buttons.module.d.ts +2 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +6 -4
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line-side-panel-default/style/_layout.scss +3 -0
- package/lib/component/transaction-search/service/filter-request.service.d.ts +2 -4
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +6 -0
- package/lib/component/transaction-search/style/_layout.scss +36 -18
- package/lib/component/transaction-search/style/_material-definition.scss +32 -15
- package/lib/component/transaction-search/style/_theme.scss +4 -0
- package/lib/component/transaction-search/style/material.scss +2 -1
- package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts +3 -0
- package/lib/component/transaction-search/transaction-filter-categories/style/_layout.scss +8 -8
- package/lib/component/transaction-search/transaction-filter-categories/style/_theme.scss +3 -3
- package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +14 -1
- package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +1 -0
- package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +2 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_layout.scss +9 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-filter-historic-state}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/style/material.scss +4 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.component.d.ts +22 -0
- package/lib/component/transaction-search/transaction-filter-historic-state/transaction-filter-historic-state.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_layout.scss +6 -0
- package/lib/component/{transaction-search-grid → transaction-search/transaction-search-grid/transaction-search-sales-order-grid}/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/style/material.scss +7 -0
- package/lib/component/{transaction-search-grid/transaction-search-grid.component.d.ts → transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.component.d.ts} +1 -1
- package/lib/component/transaction-search/transaction-search-grid/transaction-search-sales-order-grid/transaction-search-sales-order-grid.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-header/style/_layout.scss +8 -0
- package/lib/component/transaction-search/transaction-search-header/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-header/style/_theme.scss +4 -0
- package/lib/component/transaction-search/transaction-search-header/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.component.d.ts +32 -0
- package/lib/component/transaction-search/transaction-search-header/transaction-search-header.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +84 -13
- package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +1 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +14 -6
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/_layout.scss +2 -4
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_material-definition.scss +0 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/style/_theme.scss +48 -0
- package/lib/component/transaction-search/{transaction-tile → transaction-search-tile/transaction-search-sales-order-tile}/style/material.scss +0 -0
- package/lib/component/transaction-search/{transaction-tile/transaction-tile.component.d.ts → transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.d.ts} +3 -3
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +14 -2
- package/lib/enum/direction.enum.d.ts +6 -0
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/enum/search-view-mode.enum.d.ts +4 -0
- package/lib/service/article-connector.service.d.ts +7 -0
- package/lib/service/pending-reason.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +7 -0
- package/lib/style/_variables.scss +2 -0
- package/package.json +3 -3
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +0 -77
- package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.module.js +0 -28
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +0 -86
- package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +0 -26
- package/lib/component/transaction-search/transaction-tile/style/_theme.scss +0 -46
- package/lib/component/transaction-search/transaction-tile/transaction-tile.module.d.ts +0 -2
- package/lib/component/transaction-search-grid/style/_layout.scss +0 -6
- package/lib/component/transaction-search-grid/style/_theme.scss +0 -6
- package/lib/component/transaction-search-grid/style/material.scss +0 -7
- package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +0 -2
|
@@ -46,7 +46,12 @@ import { GoodsReceiptStatusWithHistory } from '@colijnit/transactionapi/build/mo
|
|
|
46
46
|
import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
|
|
47
47
|
import { RelationStatus } from '@colijnit/transactionapi/build/enum/relation-status.enum';
|
|
48
48
|
import { ResolveLinePendingReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
|
|
49
|
-
import {
|
|
49
|
+
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
50
|
+
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
51
|
+
import { ArticleLight } from '@colijnit/articleapi/build/model/article-light.bo';
|
|
52
|
+
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
53
|
+
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
54
|
+
import { FormMasterService, FormComponent, CoDialogModule, ButtonModule, InputComboBoxModule, InputTextModule, FormModule, InputRadioButtonModule, IconModule, InputCheckboxModule, InputListboxModule, DropDownModule, ClickoutsideModule, InputNumberPickerModule, PriceDisplayPipeModule, InputDatePickerModule, CoDialogPromptModule, MultiSelectListModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule, Carousel3dModule, InputTextareaModule, CollapsibleModule, ColumnAlign, SimpleGridColumnDirective, InputTextComponent, SimpleGridModule, GridToolbarButtonModule, InputSearchModule, FilterItemModule, InputDateRangePickerModule } from '@colijnit/corecomponents_v12';
|
|
50
55
|
import { FlexModule } from '@angular/flex-layout';
|
|
51
56
|
import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
|
|
52
57
|
import { ContactOption } from '@colijnit/transactionapi/build/model/contact-option.bo';
|
|
@@ -72,11 +77,11 @@ import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transac
|
|
|
72
77
|
import { PurchaseOrderLineReceiptCorrectionDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-correction-details.bo';
|
|
73
78
|
import { PurchaseOrderLineReceiptDetails } from '@colijnit/transactionapi/build/model/purchase-order-line-receipt-details.bo';
|
|
74
79
|
import { ReceiveGoodsForPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo';
|
|
75
|
-
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
76
|
-
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
77
80
|
import { GoodsReceiptStatus } from '@colijnit/transactionapi/build/model/goods-receipt-status.bo';
|
|
78
81
|
import { TransactionSearchViewRequest } from '@colijnit/transactionapi/build/model/transaction-search-view-request';
|
|
79
82
|
import { RelationKind } from '@colijnit/transactionapi/build/enum/relation-kind.enum';
|
|
83
|
+
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
84
|
+
import { QuantityInHistoricState } from '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum';
|
|
80
85
|
|
|
81
86
|
var LanguageCode;
|
|
82
87
|
(function (LanguageCode) {
|
|
@@ -267,13 +272,20 @@ class Dictionary {
|
|
|
267
272
|
"FEMALE": "Vrouw",
|
|
268
273
|
"FIRST_NAME": "Voornaam",
|
|
269
274
|
"FREE": "Gratis",
|
|
275
|
+
"FULLY_ALLOCATED": "Volledig toegewezen",
|
|
276
|
+
"FULLY_DELIVERED": "Volledig geleverd",
|
|
277
|
+
"FULLY_INVOICED": "Volledig gefactureerd",
|
|
278
|
+
"FULLY_TO_BE_PICKED": "Volledig te picken",
|
|
279
|
+
"FULLY_PICKED": "Volledig gepickt",
|
|
270
280
|
"GROSS_PRICE": "Bruto prijs",
|
|
271
281
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
272
282
|
"HANDLED_BY": "Verkoper",
|
|
273
283
|
"HOUSE_NO": "Huisnummer",
|
|
274
284
|
"HOUSE_NO_ADDITION": "Huisnummer toevoeging",
|
|
285
|
+
"IN": "In",
|
|
275
286
|
"INACTIVE_TRANSACTIONS": "Inactieve transacties",
|
|
276
287
|
"INCLUDING_RETURNS": "Inclusief retouren",
|
|
288
|
+
"IN_SEARCHORDERS": "In verkooporders",
|
|
277
289
|
"IN_ORDER": "In bestelling",
|
|
278
290
|
"IN_OUT_COLLECTION": "In-uit-collectie",
|
|
279
291
|
"INVITE_TO_ACCOUNT": "Uitnodigen voor account",
|
|
@@ -306,6 +318,11 @@ class Dictionary {
|
|
|
306
318
|
"NO_IMAGE": "Geen afbeelding",
|
|
307
319
|
"NOT_AFTER": "Niet later dan",
|
|
308
320
|
"NOT_BEFORE": "Niet eerder dan",
|
|
321
|
+
"NOTHING_ALLOCATED": "Niets toegewezen",
|
|
322
|
+
"NOTHING_DELIVERED": "Niets geleverd",
|
|
323
|
+
"NOTHING_INVOICED": "Niets gefactureerd",
|
|
324
|
+
"NOTHING_TO_BE_PICKED": "Niets te picken",
|
|
325
|
+
"NOTHING_PICKED": "Niets gepickt",
|
|
309
326
|
"NR": "Nummer",
|
|
310
327
|
"NUMBER": "Aantal",
|
|
311
328
|
"ON_DATE": "Op datum",
|
|
@@ -330,6 +347,11 @@ class Dictionary {
|
|
|
330
347
|
"PAID_DOWN2": "Aanbetaald",
|
|
331
348
|
"PART_DELIVERY": "Deellevering",
|
|
332
349
|
"PART_DELIVERIES": "Deelleveringen",
|
|
350
|
+
"PARTLY_ALLOCATED": "Gedeeltelijk toegewezen",
|
|
351
|
+
"PARTLY_DELIVERED": "Gedeeltelijk geleverd",
|
|
352
|
+
"PARTLY_INVOICED": "Gedeeltelijk gefactureerd",
|
|
353
|
+
"PARTLY_TO_BE_PICKED": "Gedeeltelijk te picken",
|
|
354
|
+
"PARTLY_PICKED": "Gedeeltelijk gepickt",
|
|
333
355
|
"PASSWORD": "Wachtwoord",
|
|
334
356
|
"PAY": "Betalen",
|
|
335
357
|
"PAYMENT": "Betaling",
|
|
@@ -368,8 +390,10 @@ class Dictionary {
|
|
|
368
390
|
"RELATION_NUMBER": "Relatienummer",
|
|
369
391
|
"REMARKS": "Opmerkingen",
|
|
370
392
|
"SALUTATION": "Aanhef",
|
|
393
|
+
"SALESORDERS": "Verkooporders",
|
|
371
394
|
"SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
|
|
372
395
|
"SAVE": "Opslaan",
|
|
396
|
+
"SEARCH": "Zoeken",
|
|
373
397
|
"SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
|
|
374
398
|
"SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
|
|
375
399
|
"SELECT": "Selecteren",
|
|
@@ -548,8 +572,10 @@ class Dictionary {
|
|
|
548
572
|
"HANDLED_BY": "Handled by",
|
|
549
573
|
"HOUSE_NO": "Housenumber",
|
|
550
574
|
"HOUSE_NO_ADDITION": "Housenumber addition",
|
|
575
|
+
"IN": "In",
|
|
551
576
|
"INACTIVE_TRANSACTIONS": "Inactieve transacties",
|
|
552
577
|
"INCLUDING_RETURNS": "Including returns",
|
|
578
|
+
"IN_SEARCHORDERS": "In sales orders",
|
|
553
579
|
"IN_ORDER": "In order",
|
|
554
580
|
"IN_OUT_COLLECTION": "In-out-collection",
|
|
555
581
|
"INVITE_TO_ACCOUNT": "Invite account",
|
|
@@ -634,9 +660,11 @@ class Dictionary {
|
|
|
634
660
|
"REFERENCE_RELATION": "Ref. relation",
|
|
635
661
|
"RELATION_NUMBER": "Relation number",
|
|
636
662
|
"REMARKS": "Remarks",
|
|
663
|
+
"SALESORDERS": "Sales orders",
|
|
637
664
|
"SALUTATION": "Salutation",
|
|
638
665
|
"SAME_AS_DELIVERY": "Same as delivery address",
|
|
639
666
|
"SAVE": "Save",
|
|
667
|
+
"SEARCH": "Search",
|
|
640
668
|
"SEARCH_ADD_ARTICLE": "Search and add article",
|
|
641
669
|
"SEARCH_IN_COLLECTION": "Search in collection...",
|
|
642
670
|
"SELECT": "Select",
|
|
@@ -1542,6 +1570,7 @@ class TransactionConnectorService {
|
|
|
1542
1570
|
connect() {
|
|
1543
1571
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1544
1572
|
this.connector = new Transaction(this._optionsService.options);
|
|
1573
|
+
this._optionsService.options.session = this.connector.session;
|
|
1545
1574
|
});
|
|
1546
1575
|
}
|
|
1547
1576
|
getArticleFullObject(goodId) {
|
|
@@ -2693,11 +2722,112 @@ DialogService.ctorParameters = () => [
|
|
|
2693
2722
|
{ type: Injector }
|
|
2694
2723
|
];
|
|
2695
2724
|
|
|
2725
|
+
class ArticleConnectorService {
|
|
2726
|
+
constructor(_optionsService, _collectionService) {
|
|
2727
|
+
this._optionsService = _optionsService;
|
|
2728
|
+
this._collectionService = _collectionService;
|
|
2729
|
+
this._boFactory = new BusinessObjectFactory();
|
|
2730
|
+
this._optionsService.optionsInitialized.subscribe((initialized) => {
|
|
2731
|
+
if (initialized) {
|
|
2732
|
+
this.connect();
|
|
2733
|
+
}
|
|
2734
|
+
});
|
|
2735
|
+
}
|
|
2736
|
+
connect() {
|
|
2737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2738
|
+
this.connector = new Articles(this._optionsService.options);
|
|
2739
|
+
});
|
|
2740
|
+
}
|
|
2741
|
+
getWarehouseLocations(warehouseNr) {
|
|
2742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2743
|
+
return new Promise((resolve, reject) => {
|
|
2744
|
+
const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
|
|
2745
|
+
if (collection) {
|
|
2746
|
+
resolve(collection);
|
|
2747
|
+
}
|
|
2748
|
+
else {
|
|
2749
|
+
return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
|
|
2750
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2751
|
+
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
|
|
2752
|
+
this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
|
|
2753
|
+
resolve(collection);
|
|
2754
|
+
}
|
|
2755
|
+
else {
|
|
2756
|
+
reject(response.validationMessagesAsString);
|
|
2757
|
+
}
|
|
2758
|
+
});
|
|
2759
|
+
}
|
|
2760
|
+
});
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2763
|
+
searchArticles(request) {
|
|
2764
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2765
|
+
return new Promise((resolve, reject) => {
|
|
2766
|
+
return this.connector.searchArticlesLight(request).then((response) => {
|
|
2767
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2768
|
+
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleLight, response.resultObjects);
|
|
2769
|
+
resolve(collection);
|
|
2770
|
+
}
|
|
2771
|
+
else {
|
|
2772
|
+
reject(response.validationMessagesAsString);
|
|
2773
|
+
}
|
|
2774
|
+
});
|
|
2775
|
+
});
|
|
2776
|
+
});
|
|
2777
|
+
}
|
|
2778
|
+
getMainArticles() {
|
|
2779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2780
|
+
return new Promise((resolve, reject) => {
|
|
2781
|
+
return this.connector.getMainArticles().then((response) => {
|
|
2782
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
2783
|
+
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(MainArticle, response.resultObjects);
|
|
2784
|
+
resolve(collection);
|
|
2785
|
+
}
|
|
2786
|
+
else {
|
|
2787
|
+
reject(response.validationMessagesAsString);
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
});
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
getTurnoverGroups(category) {
|
|
2794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2795
|
+
return new Promise((resolve, reject) => {
|
|
2796
|
+
const collection = this._collectionService.getCollection(TurnoverGroupImage.name);
|
|
2797
|
+
if (collection) {
|
|
2798
|
+
return resolve(collection);
|
|
2799
|
+
}
|
|
2800
|
+
return this.connector.getTurnoverGroups(category).then((result) => {
|
|
2801
|
+
if (result.validationResult && result.validationResult.success) {
|
|
2802
|
+
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(TurnoverGroupImage, result.resultObjects);
|
|
2803
|
+
this._collectionService.cacheCollection(TurnoverGroupImage.name, collection);
|
|
2804
|
+
resolve(collection);
|
|
2805
|
+
}
|
|
2806
|
+
else {
|
|
2807
|
+
reject(result.validationMessagesAsString);
|
|
2808
|
+
}
|
|
2809
|
+
});
|
|
2810
|
+
});
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
|
|
2815
|
+
ArticleConnectorService.decorators = [
|
|
2816
|
+
{ type: Injectable, args: [{
|
|
2817
|
+
providedIn: "root"
|
|
2818
|
+
},] }
|
|
2819
|
+
];
|
|
2820
|
+
ArticleConnectorService.ctorParameters = () => [
|
|
2821
|
+
{ type: OptionsService },
|
|
2822
|
+
{ type: CollectionCacheService }
|
|
2823
|
+
];
|
|
2824
|
+
|
|
2696
2825
|
class PendingReasonService {
|
|
2697
|
-
constructor(dialogService, options, connector) {
|
|
2826
|
+
constructor(dialogService, options, connector, articleConnector) {
|
|
2698
2827
|
this.dialogService = dialogService;
|
|
2699
2828
|
this.options = options;
|
|
2700
2829
|
this.connector = connector;
|
|
2830
|
+
this.articleConnector = articleConnector;
|
|
2701
2831
|
this.transactionUpdated = new BehaviorSubject(undefined);
|
|
2702
2832
|
this.applicationUser = false;
|
|
2703
2833
|
this.currentTransaction = new TransactionInfoResponse();
|
|
@@ -2828,7 +2958,7 @@ class PendingReasonService {
|
|
|
2828
2958
|
});
|
|
2829
2959
|
}
|
|
2830
2960
|
}
|
|
2831
|
-
PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService)); }, token: PendingReasonService, providedIn: "root" });
|
|
2961
|
+
PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(ArticleConnectorService)); }, token: PendingReasonService, providedIn: "root" });
|
|
2832
2962
|
PendingReasonService.decorators = [
|
|
2833
2963
|
{ type: Injectable, args: [{
|
|
2834
2964
|
providedIn: "root"
|
|
@@ -2837,7 +2967,8 @@ PendingReasonService.decorators = [
|
|
|
2837
2967
|
PendingReasonService.ctorParameters = () => [
|
|
2838
2968
|
{ type: DialogService },
|
|
2839
2969
|
{ type: OptionsService },
|
|
2840
|
-
{ type: TransactionConnectorService }
|
|
2970
|
+
{ type: TransactionConnectorService },
|
|
2971
|
+
{ type: ArticleConnectorService }
|
|
2841
2972
|
];
|
|
2842
2973
|
|
|
2843
2974
|
class TransactionService extends PendingReasonService {
|
|
@@ -3140,12 +3271,21 @@ class TransactionService extends PendingReasonService {
|
|
|
3140
3271
|
getInOutCollection(languageCode) {
|
|
3141
3272
|
return this.connector.getInOutCollection(languageCode);
|
|
3142
3273
|
}
|
|
3274
|
+
getTurnoverGroups() {
|
|
3275
|
+
return this.articleConnector.getTurnoverGroups();
|
|
3276
|
+
}
|
|
3143
3277
|
getTransactionArticleWarehouses(goodId) {
|
|
3144
3278
|
return this.connector.getTransactionArticleWarehouses(goodId);
|
|
3145
3279
|
}
|
|
3146
3280
|
getMarketingCodes() {
|
|
3147
3281
|
return this.connector.getMarketingCodes();
|
|
3148
3282
|
}
|
|
3283
|
+
getArticles(request) {
|
|
3284
|
+
return this.articleConnector.searchArticles(request);
|
|
3285
|
+
}
|
|
3286
|
+
getMainArticles() {
|
|
3287
|
+
return this.articleConnector.getMainArticles();
|
|
3288
|
+
}
|
|
3149
3289
|
insertCustomer(relation) {
|
|
3150
3290
|
return this.connector.insertCustomer(relation);
|
|
3151
3291
|
}
|
|
@@ -3168,6 +3308,7 @@ class TransactionService extends PendingReasonService {
|
|
|
3168
3308
|
getDeliveryOptions() {
|
|
3169
3309
|
return this.connector.getDeliveryOptions();
|
|
3170
3310
|
}
|
|
3311
|
+
// todo: move to relation api?
|
|
3171
3312
|
getRelationListObjects(relationRequest) {
|
|
3172
3313
|
return this.connector.getRelationListObjects(relationRequest);
|
|
3173
3314
|
}
|
|
@@ -3415,7 +3556,7 @@ class TransactionService extends PendingReasonService {
|
|
|
3415
3556
|
});
|
|
3416
3557
|
}
|
|
3417
3558
|
}
|
|
3418
|
-
TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService)); }, token: TransactionService, providedIn: "root" });
|
|
3559
|
+
TransactionService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionService_Factory() { return new TransactionService(i0.ɵɵinject(DialogService), i0.ɵɵinject(OptionsService), i0.ɵɵinject(TransactionConnectorService), i0.ɵɵinject(ArticleConnectorService)); }, token: TransactionService, providedIn: "root" });
|
|
3419
3560
|
TransactionService.decorators = [
|
|
3420
3561
|
{ type: Injectable, args: [{
|
|
3421
3562
|
providedIn: "root"
|
|
@@ -3562,6 +3703,7 @@ var Icon;
|
|
|
3562
3703
|
Icon["BarsFilter"] = "bars_filter";
|
|
3563
3704
|
Icon["CalendarDay"] = "calendar_day";
|
|
3564
3705
|
Icon["Cancel"] = "cancel";
|
|
3706
|
+
Icon["CartCheck"] = "cart_check";
|
|
3565
3707
|
Icon["CartFlatbedBoxesSolid"] = "cart_flatbed_boxes_solid";
|
|
3566
3708
|
Icon["CartShoppingSolid"] = "cart_shopping_solid";
|
|
3567
3709
|
Icon["CashRegister"] = "cash_register";
|
|
@@ -3578,8 +3720,10 @@ var Icon;
|
|
|
3578
3720
|
Icon["PalletBoxesSolid"] = "pallet_boxes_solid";
|
|
3579
3721
|
Icon["PlusRound"] = "plus_round";
|
|
3580
3722
|
Icon["Purchase"] = "purchase";
|
|
3723
|
+
Icon["Resize"] = "resize";
|
|
3581
3724
|
Icon["ShelvesSolid"] = "shelves_solid";
|
|
3582
3725
|
Icon["SidePanel"] = "side_panel";
|
|
3726
|
+
Icon["SlideIn"] = "slide_in";
|
|
3583
3727
|
Icon["SyncAlt"] = "sync_alt";
|
|
3584
3728
|
Icon["Tag"] = "tag";
|
|
3585
3729
|
Icon["ThickLines"] = "thick_lines";
|
|
@@ -4125,6 +4269,7 @@ const IconSvg = {
|
|
|
4125
4269
|
"bars_filter": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M264 392H183.1C170.8 392 160 402.8 160 415.1C160 429.2 170.8 440 183.1 440h80C277.2 440 288 429.2 288 416C288 402.8 277.2 392 264 392zM424 72H23.1C10.8 72 0 82.8 0 95.1S10.8 120 23.1 120H424c13.2 0 24-10.8 24-23.1S437.2 72 424 72zM360 232H87.1C74.8 232 64 242.8 64 255.1C64 269.2 74.8 280 87.1 280h272C373.2 280 384 269.2 384 256C384 242.8 373.2 232 360 232z\"/></svg>",
|
|
4126
4270
|
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
4127
4271
|
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
4272
|
+
"cart_check": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g ><g ><g><g opacity=\".75\"><path d=\"M16.58,29.12c-.99,0-1.8,.81-1.8,1.8s.81,1.8,1.8,1.8,1.8-.81,1.8-1.8-.81-1.8-1.8-1.8Z\" fill=\"#484f60\"/><path d=\"M16.51,24.98c-.67,0-1.38-.52-1.57-1.16l-2.31-5.61c-.19-.64,.19-1.22,.86-1.28l19.71-2.51c.67-.06,1.12,.42,1,1.08l-.89,3.99c.66,.15,1.3,.36,1.91,.63l1.38-6.84c.12-.66-.34-1.15-1-1.08l-24.68,2.93c-.67,.06-1.06,.64-.87,1.28l3.34,9.44c.19,.64,.89,1.17,1.56,1.17h5.92c.19-.71,.45-1.38,.77-2.02h-5.13Z\" fill=\"#484f60\"/><path d=\"M39.01,11.31c-.66,.14-1.27,.79-1.37,1.46l-.42,2.9c-.1,.66,.31,.98,.9,.7,.59-.28,1.19-1.04,1.33-1.7l.51-2.42c.14-.66-.28-1.08-.94-.94h-.02Z\" fill=\"#484f60\"/></g><g><path d=\"M31,21.72c4.41,0,8,3.59,8,8s-3.59,8-8,8-8-3.59-8-8,3.59-8,8-8m0-1c-4.97,0-9,4.03-9,9s4.03,9,9,9,9-4.03,9-9-4.03-9-9-9h0Z\" fill=\"#484f60\"/><polygon points=\"30.63 34.72 26.79 29.33 28.31 28.25 30.34 31.11 33.54 24.72 35.21 25.55 30.63 34.72\" fill=\"#484f60\"/></g></g></g></g><g /></svg>",
|
|
4128
4273
|
"cart_flatbed_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M448 160h64c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32h-64c-17.6 0-32 14.4-32 32v64C416 145.6 430.4 160 448 160zM448 320h128c17.6 0 32-14.4 32-32V224c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v64C416 305.6 430.4 320 448 320zM224 320h128c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32H224C206.4 32 192 46.4 192 64v224C192 305.6 206.4 320 224 320zM640 415.1c0 17.6-14.4 32-32 31.1l-66.88-.0011c1.787 5.027 2.907 10.36 2.907 16c0 26.51-21.5 48-48.01 48c-26.51 0-47.99-21.49-47.99-48c0-5.641 1.141-10.97 2.928-16H253.1C254.9 453 256 458.4 256 464C256 490.5 234.5 512 208 512S160 490.5 160 464c0-5.641 1.13-10.97 2.917-16l-66.92 .0011C78.4 448 64 433.6 64 415.1V80C64 71.16 56.84 64 48 64H31.1C14.4 64 0 49.6 0 32S14.4 0 31.1 0H64c35.2 0 64 28.8 64 64v320h480C625.6 384 640 398.4 640 415.1z\"/></svg>",
|
|
4129
4274
|
"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>",
|
|
4130
4275
|
"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>",
|
|
@@ -4141,8 +4286,10 @@ const IconSvg = {
|
|
|
4141
4286
|
"pallet_boxes_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M96 255.1L288 256c17.6 0 32-14.4 32-32V31.1c0-17.6-14.4-31.1-32-31.1L96 0c-17.6 0-32 14.4-32 32V224C64 241.6 78.4 255.1 96 255.1zM416 255.1h128c17.6 0 32-14.4 32-31.1v-128c0-17.6-14.4-32-32-32h-128c-17.6 0-32 14.4-32 32v128C384 241.6 398.4 255.1 416 255.1zM624 384c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16h-608C7.25 320 0 327.3 0 336v32C0 376.8 7.25 384 16 384H64v64H16C7.25 448 0 455.3 0 464v32C0 504.8 7.25 512 16 512h608c8.75 0 16-7.25 16-16v-32c0-8.75-7.25-16-16-16H576v-64H624zM288 448H128v-64h160V448zM512 448h-160v-64h160V448z\"/></svg>",
|
|
4142
4287
|
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
4143
4288
|
"purchase": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g opacity=\"0.75\"><polygon points=\"33.34 25.04 27.34 28.52 33.35 31.97 39.34 28.49 33.34 25.04\" fill=\"#484f60\"/><polygon points=\"33.99 33.08 39.99 29.6 40 36.53 34.01 40.01 33.99 33.08\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"26.72 36.55 26.71 29.63 32.71 33.08 32.72 40.01 26.72 36.55\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"12.78 28.54 18.79 32 24.78 28.52 18.77 25.07 12.78 28.54\" fill=\"#484f60\"/><polygon points=\"19.43 33.1 25.42 29.63 25.44 36.56 19.44 40.03 19.43 33.1\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"12.15 36.58 12.14 29.65 18.15 33.11 18.16 40.04 12.15 36.58\" fill=\"#484f60\" opacity=\"0.25\"/><polygon points=\"32.04 15.89 26.03 12.44 22.09 14.73 27.52 14.73 24.03 18.21 26.05 19.37 32.04 15.89\" fill=\"#484f60\"/><polygon points=\"32.68 17 26.69 20.48 26.7 27.41 32.7 23.93 32.68 17\" fill=\"#484f60\" opacity=\"0.5\"/><polygon points=\"23.1 19.15 19.41 22.83 19.41 23.95 25.42 27.41 25.41 20.48 23.1 19.15\" fill=\"#484f60\" opacity=\"0.25\"/></g><polygon points=\"19.03 16.34 19.03 10.3 14.61 10.3 14.61 16.34 14.61 16.34 10 16.34 16.82 23.16 23.64 16.34 19.03 16.34\" fill=\"#484f60\"/></svg>",
|
|
4289
|
+
"resize": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><polygon points=\"1.1 49.9 1.1 30.6 7.8 37.3 37.3 8 30.6 1.3 49.9 1.3 49.9 20.6 43.2 13.9 13.7 43.2 20.5 49.9 1.1 49.9\" fill=\"#4d5050\"/></svg>",
|
|
4144
4290
|
"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>",
|
|
4145
4291
|
"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>",
|
|
4292
|
+
"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>",
|
|
4146
4293
|
"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>",
|
|
4147
4294
|
"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>",
|
|
4148
4295
|
"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>",
|
|
@@ -5946,6 +6093,170 @@ TransactionImageService.ctorParameters = () => [
|
|
|
5946
6093
|
{ type: TransactionConnectorService }
|
|
5947
6094
|
];
|
|
5948
6095
|
|
|
6096
|
+
// Direction type for regular straight directions.
|
|
6097
|
+
var Direction;
|
|
6098
|
+
(function (Direction) {
|
|
6099
|
+
Direction["Right"] = "right";
|
|
6100
|
+
Direction["Left"] = "left";
|
|
6101
|
+
Direction["Up"] = "top";
|
|
6102
|
+
Direction["Down"] = "bottom";
|
|
6103
|
+
})(Direction || (Direction = {}));
|
|
6104
|
+
|
|
6105
|
+
class TransactionLineActionButtonsComponent {
|
|
6106
|
+
constructor(iconCacheService, _transactionService, _dictionaryService) {
|
|
6107
|
+
this.iconCacheService = iconCacheService;
|
|
6108
|
+
this._transactionService = _transactionService;
|
|
6109
|
+
this._dictionaryService = _dictionaryService;
|
|
6110
|
+
this.icons = Icon;
|
|
6111
|
+
this.alignDirection = Direction.Down;
|
|
6112
|
+
this.waitingForUserAction = new EventEmitter();
|
|
6113
|
+
this.sidePanelButtonClicked = new EventEmitter();
|
|
6114
|
+
this.showActionButtons = false;
|
|
6115
|
+
this.showActionButtonsDelayed = false;
|
|
6116
|
+
this.showTransactionArticleText = false;
|
|
6117
|
+
this.showTransactionArticleTextOverview = false;
|
|
6118
|
+
}
|
|
6119
|
+
showClass() {
|
|
6120
|
+
return true;
|
|
6121
|
+
}
|
|
6122
|
+
ngOnInit() {
|
|
6123
|
+
this.transactionKind = this._transactionService.currentTransaction.transactionInfo.transactionKind;
|
|
6124
|
+
}
|
|
6125
|
+
handleShowHideClick() {
|
|
6126
|
+
this.showActionButtons = !this.showActionButtons;
|
|
6127
|
+
setTimeout(() => {
|
|
6128
|
+
this.showActionButtonsDelayed = !this.showActionButtonsDelayed;
|
|
6129
|
+
}, 1);
|
|
6130
|
+
}
|
|
6131
|
+
handleTransactionArticleTextOverview() {
|
|
6132
|
+
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
|
|
6133
|
+
this.textToEdit = undefined;
|
|
6134
|
+
this._showArticleTextOverviewDialog();
|
|
6135
|
+
this.showActionButtons = false;
|
|
6136
|
+
this.showActionButtonsDelayed = false;
|
|
6137
|
+
}
|
|
6138
|
+
handleTransactionArticleText() {
|
|
6139
|
+
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.transactionLine.articleNumber);
|
|
6140
|
+
this.textToEdit = undefined;
|
|
6141
|
+
this.showArticleTextDialog();
|
|
6142
|
+
this.showActionButtons = false;
|
|
6143
|
+
this.showActionButtonsDelayed = false;
|
|
6144
|
+
}
|
|
6145
|
+
handleShowSidePanel() {
|
|
6146
|
+
this.sidePanelButtonClicked.next(this.transactionLine);
|
|
6147
|
+
this.waitingForUserAction.next(true);
|
|
6148
|
+
this.showActionButtons = false;
|
|
6149
|
+
this.showActionButtonsDelayed = false;
|
|
6150
|
+
}
|
|
6151
|
+
showOverviewButton() {
|
|
6152
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6153
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6154
|
+
}
|
|
6155
|
+
showAddTextButton() {
|
|
6156
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6157
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6158
|
+
}
|
|
6159
|
+
showSidebarButton() {
|
|
6160
|
+
return this.transactionKind === TransactionKind.PurchaseOrder ||
|
|
6161
|
+
this.transactionKind === TransactionKind.SalesOrder;
|
|
6162
|
+
}
|
|
6163
|
+
saveTransactionArticleLineText(transactionAddTextLineRequest) {
|
|
6164
|
+
this._transactionService.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, true, transactionAddTextLineRequest.refArticleLineNr).then(() => {
|
|
6165
|
+
this._hideArticleTextDialog();
|
|
6166
|
+
});
|
|
6167
|
+
}
|
|
6168
|
+
closeTransactionArticleText(event) {
|
|
6169
|
+
this._hideArticleTextDialog();
|
|
6170
|
+
}
|
|
6171
|
+
closeTransactionArticleTextOverview(event) {
|
|
6172
|
+
this._hideArticleTextOverviewDialog();
|
|
6173
|
+
}
|
|
6174
|
+
showArticleTextDialog() {
|
|
6175
|
+
this.showTransactionArticleText = true;
|
|
6176
|
+
this.waitingForUserAction.next(true);
|
|
6177
|
+
}
|
|
6178
|
+
_hideArticleTextDialog() {
|
|
6179
|
+
this.showTransactionArticleText = false;
|
|
6180
|
+
this.waitingForUserAction.next(false);
|
|
6181
|
+
}
|
|
6182
|
+
_showArticleTextOverviewDialog() {
|
|
6183
|
+
this.showTransactionArticleTextOverview = true;
|
|
6184
|
+
this.waitingForUserAction.next(true);
|
|
6185
|
+
}
|
|
6186
|
+
_hideArticleTextOverviewDialog() {
|
|
6187
|
+
this.showTransactionArticleTextOverview = false;
|
|
6188
|
+
this.waitingForUserAction.next(false);
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
6191
|
+
TransactionLineActionButtonsComponent.decorators = [
|
|
6192
|
+
{ type: Component, args: [{
|
|
6193
|
+
selector: "co-transaction-line-action-buttons",
|
|
6194
|
+
template: `
|
|
6195
|
+
<div class="transaction-line-action-buttons-wrapper">
|
|
6196
|
+
<div class="show-hide-button">
|
|
6197
|
+
<icon [icon]="icons.ThickLines" (click)="handleShowHideClick()"></icon>
|
|
6198
|
+
</div>
|
|
6199
|
+
|
|
6200
|
+
<div class="action-buttons-container" clickOutside
|
|
6201
|
+
*ngIf="showActionButtons"
|
|
6202
|
+
[ngClass]="alignDirection"
|
|
6203
|
+
(clickOutside)="handleShowHideClick()">
|
|
6204
|
+
|
|
6205
|
+
<co-button *ngIf="showOverviewButton()"
|
|
6206
|
+
class="transaction-line-overview-button circle"
|
|
6207
|
+
[class.show]="showActionButtonsDelayed"
|
|
6208
|
+
[iconData]="iconCacheService.getIcon(icons.Txt)"
|
|
6209
|
+
(click)="handleTransactionArticleTextOverview()"></co-button>
|
|
6210
|
+
|
|
6211
|
+
<co-button *ngIf="showAddTextButton()"
|
|
6212
|
+
class="transaction-line-add-text-button circle"
|
|
6213
|
+
[class.show]="showActionButtonsDelayed"
|
|
6214
|
+
[iconData]="iconCacheService.getIcon(icons.Txt)"
|
|
6215
|
+
(click)="handleTransactionArticleText()"></co-button>
|
|
6216
|
+
|
|
6217
|
+
<co-button *ngIf="showSidebarButton()"
|
|
6218
|
+
class="transaction-line-show-sidebar-button circle"
|
|
6219
|
+
[class.show]="showActionButtonsDelayed"
|
|
6220
|
+
[iconData]="iconCacheService.getIcon(icons.MasterDetail)"
|
|
6221
|
+
(click)="handleShowSidePanel()"></co-button>
|
|
6222
|
+
</div>
|
|
6223
|
+
</div>
|
|
6224
|
+
|
|
6225
|
+
<co-transaction-article-text-overview *ngIf="showTransactionArticleTextOverview"
|
|
6226
|
+
[header]="articleTextHeader | localize"
|
|
6227
|
+
[transactionLine]="transactionLine"
|
|
6228
|
+
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6229
|
+
(closeClick)="closeTransactionArticleTextOverview($event)"
|
|
6230
|
+
(cancelClick)="closeTransactionArticleTextOverview($event)"
|
|
6231
|
+
></co-transaction-article-text-overview>
|
|
6232
|
+
|
|
6233
|
+
<co-transaction-article-text *ngIf="showTransactionArticleText"
|
|
6234
|
+
[header]="articleTextHeader | localize"
|
|
6235
|
+
[articleLineNr]="transactionLine.lineNr"
|
|
6236
|
+
[articleRef]="transactionLine.articleNumber"
|
|
6237
|
+
[transactionLine]="transactionLine"
|
|
6238
|
+
[editText]="textToEdit"
|
|
6239
|
+
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6240
|
+
(closeClick)="closeTransactionArticleText($event)"
|
|
6241
|
+
(cancelClick)="closeTransactionArticleText($event)"
|
|
6242
|
+
></co-transaction-article-text>
|
|
6243
|
+
`,
|
|
6244
|
+
encapsulation: ViewEncapsulation.None
|
|
6245
|
+
},] }
|
|
6246
|
+
];
|
|
6247
|
+
TransactionLineActionButtonsComponent.ctorParameters = () => [
|
|
6248
|
+
{ type: IconCacheService },
|
|
6249
|
+
{ type: TransactionService },
|
|
6250
|
+
{ type: DictionaryService }
|
|
6251
|
+
];
|
|
6252
|
+
TransactionLineActionButtonsComponent.propDecorators = {
|
|
6253
|
+
transactionLine: [{ type: Input }],
|
|
6254
|
+
alignDirection: [{ type: Input }],
|
|
6255
|
+
waitingForUserAction: [{ type: Output }],
|
|
6256
|
+
sidePanelButtonClicked: [{ type: Output }],
|
|
6257
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-line-action-buttons",] }]
|
|
6258
|
+
};
|
|
6259
|
+
|
|
5949
6260
|
class TransactionLineComponent {
|
|
5950
6261
|
constructor(service, iconCacheService, _dialogService, _dictionaryService, _imageService) {
|
|
5951
6262
|
this.service = service;
|
|
@@ -5958,8 +6269,6 @@ class TransactionLineComponent {
|
|
|
5958
6269
|
this.waitingForUserAction = new EventEmitter();
|
|
5959
6270
|
this.sidePanelButtonClicked = new EventEmitter();
|
|
5960
6271
|
this.stock = StockStatus.Low;
|
|
5961
|
-
this.showTransactionArticleText = false;
|
|
5962
|
-
this.showTransactionArticleTextOverview = false;
|
|
5963
6272
|
this.mouseOver = false;
|
|
5964
6273
|
}
|
|
5965
6274
|
set line(value) {
|
|
@@ -6001,30 +6310,13 @@ class TransactionLineComponent {
|
|
|
6001
6310
|
}
|
|
6002
6311
|
});
|
|
6003
6312
|
}
|
|
6004
|
-
handleTransactionArticleText(event) {
|
|
6005
|
-
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.line.articleNumber);
|
|
6006
|
-
this.textToEdit = undefined;
|
|
6007
|
-
this._showArticleTextDialog();
|
|
6008
|
-
}
|
|
6009
|
-
handleTransactionArticleTextOverview(event) {
|
|
6010
|
-
this.articleTextHeader = this._dictionaryService.get("TEXT_ARTICLE_BOUND", true, this.line.articleNumber);
|
|
6011
|
-
this.textToEdit = undefined;
|
|
6012
|
-
this._showArticleTextOverviewDialog();
|
|
6013
|
-
}
|
|
6014
|
-
saveTransactionArticleLineText(transactionAddTextLineRequest) {
|
|
6015
|
-
this.service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, true, transactionAddTextLineRequest.refArticleLineNr).then(() => {
|
|
6016
|
-
this._hideArticleTextDialog();
|
|
6017
|
-
});
|
|
6018
|
-
}
|
|
6019
|
-
closeTransactionArticleText(event) {
|
|
6020
|
-
this._hideArticleTextDialog();
|
|
6021
|
-
}
|
|
6022
|
-
closeTransactionArticleTextOverview(event) {
|
|
6023
|
-
this._hideArticleTextOverviewDialog();
|
|
6024
|
-
}
|
|
6025
6313
|
handleOpenArticleText(text) {
|
|
6026
|
-
this.textToEdit = text;
|
|
6027
|
-
this.
|
|
6314
|
+
this.transactionLineActionButtons.textToEdit = text;
|
|
6315
|
+
this.transactionLineActionButtons.showArticleTextDialog();
|
|
6316
|
+
}
|
|
6317
|
+
handleShowSidePanel() {
|
|
6318
|
+
this.sidePanelButtonClicked.next();
|
|
6319
|
+
this.waitingForUserAction.next(true);
|
|
6028
6320
|
}
|
|
6029
6321
|
_loadLineImage() {
|
|
6030
6322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6035,70 +6327,6 @@ class TransactionLineComponent {
|
|
|
6035
6327
|
}
|
|
6036
6328
|
});
|
|
6037
6329
|
}
|
|
6038
|
-
// private async _confirmAction(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6039
|
-
// this.currentReason.confirmation = await this._promptService.showYesNo(lineOperationResponse.pendingReason, " ");
|
|
6040
|
-
// this.service.resolvePendingLineReason(this.currentReason)
|
|
6041
|
-
// .then((value: LineOperationResponse) => {
|
|
6042
|
-
// this._handleLine(value);
|
|
6043
|
-
// });
|
|
6044
|
-
// }
|
|
6045
|
-
// private async _showInformation(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6046
|
-
// await this._promptService.showOkModal(lineOperationResponse.pendingReason, " ");
|
|
6047
|
-
// this.service.resolvePendingLineReason(this.currentReason)
|
|
6048
|
-
// .then((value: LineOperationResponse) => {
|
|
6049
|
-
// this._handleLine(value);
|
|
6050
|
-
// });
|
|
6051
|
-
// }
|
|
6052
|
-
// private async _handleLine(lineOperationResponse: LineOperationResponse): Promise<void> {
|
|
6053
|
-
// if (lineOperationResponse === undefined) {
|
|
6054
|
-
// return;
|
|
6055
|
-
// }
|
|
6056
|
-
// this.currentReason = new ResolvePendingLineReasonRequest(lineOperationResponse.lineUuid,
|
|
6057
|
-
// lineOperationResponse.pendingReason, lineOperationResponse.pendingReasonType);
|
|
6058
|
-
//
|
|
6059
|
-
// switch (lineOperationResponse.pendingReasonType) {
|
|
6060
|
-
// case PendingReasonType.ABORTED:
|
|
6061
|
-
// case PendingReasonType.CANCELLED:
|
|
6062
|
-
// this.localAmount = this._line.amount;
|
|
6063
|
-
// if (lineOperationResponse.pendingReason !== "USER_DECISION") {
|
|
6064
|
-
// await this._promptService.showNotification(this._dictionaryService.get(lineOperationResponse.pendingReason), " ");
|
|
6065
|
-
// }
|
|
6066
|
-
// break;
|
|
6067
|
-
// case PendingReasonType.CONFIRMATION_NEEDED:
|
|
6068
|
-
// await this._confirmAction(lineOperationResponse);
|
|
6069
|
-
// break;
|
|
6070
|
-
// case PendingReasonType.NON_CRITICAL_DISCONTINUATION:
|
|
6071
|
-
// await this._showInformation(lineOperationResponse);
|
|
6072
|
-
// break;
|
|
6073
|
-
// case PendingReasonType.INVALID_LOGISTICS:
|
|
6074
|
-
// this.localAmount = this._line.amount;
|
|
6075
|
-
// await this._promptService.showError(this._dictionaryService.get(lineOperationResponse.pendingReason), " ");
|
|
6076
|
-
// break;
|
|
6077
|
-
// case PendingReasonType.NONE:
|
|
6078
|
-
// default:
|
|
6079
|
-
// break;
|
|
6080
|
-
// }
|
|
6081
|
-
// }
|
|
6082
|
-
_showArticleTextDialog() {
|
|
6083
|
-
this.showTransactionArticleText = true;
|
|
6084
|
-
this.waitingForUserAction.next(true);
|
|
6085
|
-
}
|
|
6086
|
-
_hideArticleTextDialog() {
|
|
6087
|
-
this.showTransactionArticleText = false;
|
|
6088
|
-
this.waitingForUserAction.next(false);
|
|
6089
|
-
}
|
|
6090
|
-
_showArticleTextOverviewDialog() {
|
|
6091
|
-
this.showTransactionArticleTextOverview = true;
|
|
6092
|
-
this.waitingForUserAction.next(true);
|
|
6093
|
-
}
|
|
6094
|
-
_hideArticleTextOverviewDialog() {
|
|
6095
|
-
this.showTransactionArticleTextOverview = false;
|
|
6096
|
-
this.waitingForUserAction.next(false);
|
|
6097
|
-
}
|
|
6098
|
-
handleShowSidePanel(event) {
|
|
6099
|
-
this.sidePanelButtonClicked.next();
|
|
6100
|
-
this.waitingForUserAction.next(true);
|
|
6101
|
-
}
|
|
6102
6330
|
}
|
|
6103
6331
|
TransactionLineComponent.decorators = [
|
|
6104
6332
|
{ type: Component, args: [{
|
|
@@ -6129,7 +6357,7 @@ TransactionLineComponent.decorators = [
|
|
|
6129
6357
|
<span [textContent]="'STOCK' | localize" class="small-font"></span>
|
|
6130
6358
|
<stock-status-indicator [model]="stock"></stock-status-indicator>
|
|
6131
6359
|
<span [textContent]="'DELIVERY_TIME_PERIOD' | localize" class="small-font"></span>
|
|
6132
|
-
<!-- <span [textContent]="line.deliveryDate | deliveryTime"></span>-->
|
|
6360
|
+
<!-- <span [textContent]="line.deliveryDate | deliveryTime"></span>-->
|
|
6133
6361
|
</div>
|
|
6134
6362
|
<div *ngIf=!preview class="transaction-line-amount">
|
|
6135
6363
|
<co-input-number-picker class="amount-number-picker"
|
|
@@ -6149,9 +6377,11 @@ TransactionLineComponent.decorators = [
|
|
|
6149
6377
|
<span [textContent]="line.displayNetLineTotal | coCurrency: true"></span>
|
|
6150
6378
|
</div>
|
|
6151
6379
|
<div *ngIf="!preview" class="transaction-line-buttons">
|
|
6152
|
-
<co-
|
|
6153
|
-
|
|
6154
|
-
|
|
6380
|
+
<co-transaction-line-action-buttons
|
|
6381
|
+
[transactionLine]="line"
|
|
6382
|
+
(waitingForUserAction)="waitingForUserAction.next($event)"
|
|
6383
|
+
(sidePanelButtonClicked)="handleShowSidePanel()"
|
|
6384
|
+
></co-transaction-line-action-buttons>
|
|
6155
6385
|
</div>
|
|
6156
6386
|
</div>
|
|
6157
6387
|
<div class="transaction-line-delete" *ngIf="!preview">
|
|
@@ -6175,23 +6405,6 @@ TransactionLineComponent.decorators = [
|
|
|
6175
6405
|
</div>
|
|
6176
6406
|
</ng-container>
|
|
6177
6407
|
</div>
|
|
6178
|
-
<co-transaction-article-text-overview *ngIf="showTransactionArticleTextOverview"
|
|
6179
|
-
[header]="articleTextHeader | localize"
|
|
6180
|
-
[transactionLine]="line"
|
|
6181
|
-
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6182
|
-
(closeClick)="closeTransactionArticleTextOverview($event)"
|
|
6183
|
-
(cancelClick)="closeTransactionArticleTextOverview($event)"
|
|
6184
|
-
></co-transaction-article-text-overview>
|
|
6185
|
-
<co-transaction-article-text *ngIf="showTransactionArticleText"
|
|
6186
|
-
[header]="articleTextHeader | localize"
|
|
6187
|
-
[articleLineNr]="line.lineNr"
|
|
6188
|
-
[articleRef]="line.articleNumber"
|
|
6189
|
-
[transactionLine]="line"
|
|
6190
|
-
[editText]="textToEdit"
|
|
6191
|
-
(saveClick)="saveTransactionArticleLineText($event)"
|
|
6192
|
-
(closeClick)="closeTransactionArticleText($event)"
|
|
6193
|
-
(cancelClick)="closeTransactionArticleText($event)"
|
|
6194
|
-
></co-transaction-article-text>
|
|
6195
6408
|
`,
|
|
6196
6409
|
encapsulation: ViewEncapsulation.None
|
|
6197
6410
|
},] }
|
|
@@ -6208,6 +6421,7 @@ TransactionLineComponent.propDecorators = {
|
|
|
6208
6421
|
line: [{ type: Input }],
|
|
6209
6422
|
waitingForUserAction: [{ type: Output }],
|
|
6210
6423
|
sidePanelButtonClicked: [{ type: Output }],
|
|
6424
|
+
transactionLineActionButtons: [{ type: ViewChild, args: [TransactionLineActionButtonsComponent,] }],
|
|
6211
6425
|
isText: [{ type: HostBinding, args: ["class.is-text",] }],
|
|
6212
6426
|
isArticle: [{ type: HostBinding, args: ["class.is-article",] }],
|
|
6213
6427
|
isSelected: [{ type: HostBinding, args: ["class.is-selected",] }, { type: Input, args: ['selected',] }],
|
|
@@ -6365,34 +6579,57 @@ TransactionArticleTextOverviewModule.decorators = [
|
|
|
6365
6579
|
},] }
|
|
6366
6580
|
];
|
|
6367
6581
|
|
|
6368
|
-
class
|
|
6582
|
+
class TransactionLineActionButtonsModule {
|
|
6369
6583
|
}
|
|
6370
|
-
|
|
6584
|
+
TransactionLineActionButtonsModule.decorators = [
|
|
6371
6585
|
{ type: NgModule, args: [{
|
|
6372
6586
|
imports: [
|
|
6373
6587
|
CommonModule,
|
|
6374
6588
|
CoreModule,
|
|
6375
6589
|
ButtonModule,
|
|
6376
|
-
|
|
6377
|
-
TransactionArticleTextModule,
|
|
6590
|
+
ClickoutsideModule,
|
|
6378
6591
|
TransactionArticleTextOverviewModule,
|
|
6592
|
+
TransactionArticleTextModule,
|
|
6379
6593
|
PipeModule
|
|
6380
6594
|
],
|
|
6381
6595
|
declarations: [
|
|
6382
|
-
|
|
6596
|
+
TransactionLineActionButtonsComponent
|
|
6383
6597
|
],
|
|
6384
6598
|
exports: [
|
|
6385
|
-
|
|
6599
|
+
TransactionLineActionButtonsComponent
|
|
6386
6600
|
]
|
|
6387
6601
|
},] }
|
|
6388
6602
|
];
|
|
6389
6603
|
|
|
6390
|
-
class
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6604
|
+
class TransactionLineModule {
|
|
6605
|
+
}
|
|
6606
|
+
TransactionLineModule.decorators = [
|
|
6607
|
+
{ type: NgModule, args: [{
|
|
6608
|
+
imports: [
|
|
6609
|
+
CommonModule,
|
|
6610
|
+
CoreModule,
|
|
6611
|
+
ButtonModule,
|
|
6612
|
+
InputNumberPickerModule,
|
|
6613
|
+
TransactionArticleTextModule,
|
|
6614
|
+
TransactionArticleTextOverviewModule,
|
|
6615
|
+
PipeModule,
|
|
6616
|
+
TransactionLineActionButtonsModule
|
|
6617
|
+
],
|
|
6618
|
+
declarations: [
|
|
6619
|
+
TransactionLineComponent
|
|
6620
|
+
],
|
|
6621
|
+
exports: [
|
|
6622
|
+
TransactionLineComponent
|
|
6623
|
+
]
|
|
6624
|
+
},] }
|
|
6625
|
+
];
|
|
6626
|
+
|
|
6627
|
+
class TransactionLinesComponent {
|
|
6628
|
+
constructor(iconCacheService, service) {
|
|
6629
|
+
this.iconCacheService = iconCacheService;
|
|
6630
|
+
this.service = service;
|
|
6631
|
+
this.icons = Icon;
|
|
6632
|
+
this.transactionLines = [];
|
|
6396
6633
|
this.preview = false;
|
|
6397
6634
|
this.saveTransactionLine = new EventEmitter();
|
|
6398
6635
|
this.showSidePanelClicked = new EventEmitter();
|
|
@@ -8003,7 +8240,10 @@ TransactionBaseGridComponent.decorators = [
|
|
|
8003
8240
|
</co-simple-grid-column>
|
|
8004
8241
|
<co-simple-grid-column [headerText]="''" [width]="40" [field]="'sideMenuButton'" [order]="400">
|
|
8005
8242
|
<ng-template #template let-row = "row">
|
|
8006
|
-
<
|
|
8243
|
+
<co-transaction-line-action-buttons class="transaction-line-action-buttons"
|
|
8244
|
+
[transactionLine]="row"
|
|
8245
|
+
(sidePanelButtonClicked)="openSidePanel(row)"
|
|
8246
|
+
></co-transaction-line-action-buttons>
|
|
8007
8247
|
</ng-template>
|
|
8008
8248
|
</co-simple-grid-column>
|
|
8009
8249
|
</co-simple-grid>
|
|
@@ -8079,6 +8319,7 @@ TransactionLineSidePanelComponent.decorators = [
|
|
|
8079
8319
|
{ type: Component, args: [{
|
|
8080
8320
|
selector: "co-transaction-line-side-panel",
|
|
8081
8321
|
template: `
|
|
8322
|
+
<icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
|
|
8082
8323
|
<div class="transaction-line-side-panel-header">
|
|
8083
8324
|
<div class="transaction-line-side-panel-header-item">
|
|
8084
8325
|
<span class="side-panel-header-label" [textContent]="'ARTICLE_NR'| localize"></span>
|
|
@@ -8101,7 +8342,6 @@ TransactionLineSidePanelComponent.decorators = [
|
|
|
8101
8342
|
<span class="side-panel-header-field"
|
|
8102
8343
|
[textContent]="activeCategory === categories.PurchaseOrderReceivedGoods ? quantityToReceive : (transactionLine.price | priceDisplay)"></span>
|
|
8103
8344
|
</div>
|
|
8104
|
-
<icon (click)="handleCancelClick($event)" [icon]="icons.Cancel" class="close-button"></icon>
|
|
8105
8345
|
</div>
|
|
8106
8346
|
<div class="transaction-line-side-panel-nav-bar">
|
|
8107
8347
|
<co-transaction-button-bar
|
|
@@ -9364,56 +9604,6 @@ TransactionReceivingGoodsHistoryModule.decorators = [
|
|
|
9364
9604
|
},] }
|
|
9365
9605
|
];
|
|
9366
9606
|
|
|
9367
|
-
class ArticleConnectorService {
|
|
9368
|
-
constructor(_optionsService, _collectionService) {
|
|
9369
|
-
this._optionsService = _optionsService;
|
|
9370
|
-
this._collectionService = _collectionService;
|
|
9371
|
-
this._boFactory = new BusinessObjectFactory();
|
|
9372
|
-
this._optionsService.optionsInitialized.subscribe((initialized) => {
|
|
9373
|
-
if (initialized) {
|
|
9374
|
-
this.connect();
|
|
9375
|
-
}
|
|
9376
|
-
});
|
|
9377
|
-
}
|
|
9378
|
-
connect() {
|
|
9379
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9380
|
-
this.connector = new Articles(this._optionsService.options);
|
|
9381
|
-
});
|
|
9382
|
-
}
|
|
9383
|
-
getWarehouseLocations(warehouseNr) {
|
|
9384
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9385
|
-
return new Promise((resolve, reject) => {
|
|
9386
|
-
const collection = this._collectionService.getCollection(StockLocation.name, [warehouseNr]);
|
|
9387
|
-
if (collection) {
|
|
9388
|
-
resolve(collection);
|
|
9389
|
-
}
|
|
9390
|
-
else {
|
|
9391
|
-
return this.connector.getStockManagementLocations(warehouseNr).then((response) => {
|
|
9392
|
-
if (response && response.validationResult && response.validationResult.success) {
|
|
9393
|
-
const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, response.resultObjects);
|
|
9394
|
-
this._collectionService.cacheCollection(StockLocation.name, collection, [warehouseNr]);
|
|
9395
|
-
resolve(collection);
|
|
9396
|
-
}
|
|
9397
|
-
else {
|
|
9398
|
-
reject(response.validationMessagesAsString);
|
|
9399
|
-
}
|
|
9400
|
-
});
|
|
9401
|
-
}
|
|
9402
|
-
});
|
|
9403
|
-
});
|
|
9404
|
-
}
|
|
9405
|
-
}
|
|
9406
|
-
ArticleConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ArticleConnectorService_Factory() { return new ArticleConnectorService(i0.ɵɵinject(OptionsService), i0.ɵɵinject(CollectionCacheService)); }, token: ArticleConnectorService, providedIn: "root" });
|
|
9407
|
-
ArticleConnectorService.decorators = [
|
|
9408
|
-
{ type: Injectable, args: [{
|
|
9409
|
-
providedIn: "root"
|
|
9410
|
-
},] }
|
|
9411
|
-
];
|
|
9412
|
-
ArticleConnectorService.ctorParameters = () => [
|
|
9413
|
-
{ type: OptionsService },
|
|
9414
|
-
{ type: CollectionCacheService }
|
|
9415
|
-
];
|
|
9416
|
-
|
|
9417
9607
|
class ArticleService {
|
|
9418
9608
|
constructor(_articleConnectorService) {
|
|
9419
9609
|
this._articleConnectorService = _articleConnectorService;
|
|
@@ -9939,7 +10129,7 @@ class TransactionMappingService {
|
|
|
9939
10129
|
{ title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
|
|
9940
10130
|
{ title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
|
|
9941
10131
|
{ title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
|
|
9942
|
-
{ title: 'INVOICE', icon: Icon.
|
|
10132
|
+
{ title: 'INVOICE', icon: Icon.CartCheck, category: TransactionTypeCategory.SalesOrderInvoice }
|
|
9943
10133
|
]],
|
|
9944
10134
|
]);
|
|
9945
10135
|
this._quickAccessComponent = new Map([
|
|
@@ -10281,6 +10471,7 @@ TransactionBaseGridModule.decorators = [
|
|
|
10281
10471
|
SimpleGridModule,
|
|
10282
10472
|
ButtonModule,
|
|
10283
10473
|
TransactionLineSidePanelModule,
|
|
10474
|
+
TransactionLineActionButtonsModule,
|
|
10284
10475
|
],
|
|
10285
10476
|
declarations: [
|
|
10286
10477
|
TransactionBaseGridComponent
|
|
@@ -10874,16 +11065,87 @@ ShoppingCartModule.decorators = [
|
|
|
10874
11065
|
},] }
|
|
10875
11066
|
];
|
|
10876
11067
|
|
|
11068
|
+
// The different view modes for search
|
|
11069
|
+
var SearchViewMode;
|
|
11070
|
+
(function (SearchViewMode) {
|
|
11071
|
+
SearchViewMode[SearchViewMode["FullScreen"] = 0] = "FullScreen";
|
|
11072
|
+
SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
|
|
11073
|
+
})(SearchViewMode || (SearchViewMode = {}));
|
|
11074
|
+
|
|
11075
|
+
class TransactionSearchService {
|
|
11076
|
+
constructor(_transactionService) {
|
|
11077
|
+
this._transactionService = _transactionService;
|
|
11078
|
+
this.searchRequest = new TransactionSearchViewRequest();
|
|
11079
|
+
this.transactions = [];
|
|
11080
|
+
this.labelBasedOnTransactionType = new Map([
|
|
11081
|
+
[TransactionKind.SalesOrder, "SALESORDERS"],
|
|
11082
|
+
[TransactionKind.PurchaseOrder, "PURCHASEORDERS"],
|
|
11083
|
+
[TransactionKind.ServiceOrder, "SERVICEORDERS"]
|
|
11084
|
+
]);
|
|
11085
|
+
this._transactionType = TransactionKind.SalesOrder;
|
|
11086
|
+
}
|
|
11087
|
+
set transactionType(value) {
|
|
11088
|
+
this._resetRequest();
|
|
11089
|
+
this.transactions.length = 0;
|
|
11090
|
+
this._transactionType = value;
|
|
11091
|
+
}
|
|
11092
|
+
get transactionType() {
|
|
11093
|
+
return this._transactionType;
|
|
11094
|
+
}
|
|
11095
|
+
searchTransactions() {
|
|
11096
|
+
this.searchRequest.transactionKind = this.transactionType;
|
|
11097
|
+
this._transactionService.searchTransactions(this.searchRequest).then((transactions) => {
|
|
11098
|
+
this.transactions = transactions;
|
|
11099
|
+
});
|
|
11100
|
+
}
|
|
11101
|
+
getLabelBasedOnTransactionType() {
|
|
11102
|
+
return this.labelBasedOnTransactionType.get(this._transactionType);
|
|
11103
|
+
}
|
|
11104
|
+
resetFilters() {
|
|
11105
|
+
const oldSearchRequest = Object.assign({}, this.searchRequest);
|
|
11106
|
+
this._resetRequest();
|
|
11107
|
+
this.searchRequest.general = oldSearchRequest.general;
|
|
11108
|
+
this.searchTransactions();
|
|
11109
|
+
}
|
|
11110
|
+
_resetRequest() {
|
|
11111
|
+
this.searchRequest = new TransactionSearchViewRequest();
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11114
|
+
TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
|
|
11115
|
+
TransactionSearchService.decorators = [
|
|
11116
|
+
{ type: Injectable, args: [{
|
|
11117
|
+
providedIn: "root"
|
|
11118
|
+
},] }
|
|
11119
|
+
];
|
|
11120
|
+
TransactionSearchService.ctorParameters = () => [
|
|
11121
|
+
{ type: TransactionService }
|
|
11122
|
+
];
|
|
11123
|
+
|
|
10877
11124
|
class TransactionSearchComponent {
|
|
10878
|
-
constructor() {
|
|
11125
|
+
constructor(_transactionSearchService) {
|
|
11126
|
+
this._transactionSearchService = _transactionSearchService;
|
|
11127
|
+
this.searchViewModes = SearchViewMode;
|
|
11128
|
+
this.activeSearchViewMode = SearchViewMode.FullScreen;
|
|
11129
|
+
this.closeClick = new EventEmitter();
|
|
10879
11130
|
this.transactionClick = new EventEmitter();
|
|
11131
|
+
this.searchViewModeChange = new EventEmitter();
|
|
10880
11132
|
this.showFilterSidebar = false;
|
|
10881
11133
|
}
|
|
11134
|
+
set transactionType(value) {
|
|
11135
|
+
this._transactionType = value;
|
|
11136
|
+
this._transactionSearchService.transactionType = this._transactionType;
|
|
11137
|
+
}
|
|
11138
|
+
get transactionType() {
|
|
11139
|
+
return this._transactionType;
|
|
11140
|
+
}
|
|
10882
11141
|
showClass() {
|
|
10883
11142
|
return true;
|
|
10884
11143
|
}
|
|
10885
|
-
|
|
10886
|
-
this.
|
|
11144
|
+
get fullscreen() {
|
|
11145
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11146
|
+
}
|
|
11147
|
+
toggleFilter() {
|
|
11148
|
+
this.showFilterSidebar = !this.showFilterSidebar;
|
|
10887
11149
|
}
|
|
10888
11150
|
handleHideFilter() {
|
|
10889
11151
|
this.showFilterSidebar = false;
|
|
@@ -10895,19 +11157,37 @@ class TransactionSearchComponent {
|
|
|
10895
11157
|
onTransactionClick(transaction) {
|
|
10896
11158
|
this.transactionClick.emit(transaction);
|
|
10897
11159
|
}
|
|
11160
|
+
onResizeClick() {
|
|
11161
|
+
if (this.activeSearchViewMode === this.searchViewModes.SideBar) {
|
|
11162
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11163
|
+
}
|
|
11164
|
+
else {
|
|
11165
|
+
this.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
11166
|
+
}
|
|
11167
|
+
this.searchViewModeChange.emit(this.activeSearchViewMode);
|
|
11168
|
+
}
|
|
10898
11169
|
}
|
|
10899
11170
|
TransactionSearchComponent.decorators = [
|
|
10900
11171
|
{ type: Component, args: [{
|
|
10901
11172
|
selector: 'co-transaction-search',
|
|
10902
11173
|
template: `
|
|
10903
|
-
<div class="transaction-search-wrapper">
|
|
10904
|
-
<div class="transaction-filter-wrapper narrow-scrollbar"
|
|
10905
|
-
|
|
10906
|
-
|
|
11174
|
+
<div class="transaction-search-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11175
|
+
<div class="transaction-filter-wrapper narrow-scrollbar" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11176
|
+
*ngIf="showFilterSidebar" @showHideFilterSidebar>
|
|
11177
|
+
<co-transaction-filter
|
|
11178
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11179
|
+
(closeButtonClick)="handleHideFilter()"
|
|
11180
|
+
(resetFilterClick)="handleResetFilter()"></co-transaction-filter>
|
|
10907
11181
|
</div>
|
|
10908
11182
|
<div class="transaction-search-result-wrapper">
|
|
10909
|
-
<co-transaction-search-result
|
|
10910
|
-
|
|
11183
|
+
<co-transaction-search-result
|
|
11184
|
+
[transactionType]="transactionType"
|
|
11185
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11186
|
+
(filterClick)="toggleFilter()"
|
|
11187
|
+
(transactionClick)="onTransactionClick($event)"
|
|
11188
|
+
(resizeClick)="onResizeClick()"
|
|
11189
|
+
(closeClick)="closeClick.emit()"
|
|
11190
|
+
></co-transaction-search-result>
|
|
10911
11191
|
</div>
|
|
10912
11192
|
</div>
|
|
10913
11193
|
`,
|
|
@@ -10921,13 +11201,18 @@ TransactionSearchComponent.decorators = [
|
|
|
10921
11201
|
encapsulation: ViewEncapsulation.None
|
|
10922
11202
|
},] }
|
|
10923
11203
|
];
|
|
10924
|
-
TransactionSearchComponent.ctorParameters = () => [
|
|
11204
|
+
TransactionSearchComponent.ctorParameters = () => [
|
|
11205
|
+
{ type: TransactionSearchService }
|
|
11206
|
+
];
|
|
10925
11207
|
TransactionSearchComponent.propDecorators = {
|
|
11208
|
+
closeClick: [{ type: Output }],
|
|
11209
|
+
transactionType: [{ type: Input }],
|
|
10926
11210
|
transactionClick: [{ type: Output }],
|
|
11211
|
+
searchViewModeChange: [{ type: Output }],
|
|
10927
11212
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search",] }]
|
|
10928
11213
|
};
|
|
10929
11214
|
|
|
10930
|
-
class
|
|
11215
|
+
class TransactionSearchSalesOrderGridComponent {
|
|
10931
11216
|
constructor() {
|
|
10932
11217
|
this.align = ColumnAlign;
|
|
10933
11218
|
this.transactions = [];
|
|
@@ -10944,9 +11229,9 @@ class TransactionSearchGridComponent {
|
|
|
10944
11229
|
this.transactionClick.emit(transaction);
|
|
10945
11230
|
}
|
|
10946
11231
|
}
|
|
10947
|
-
|
|
11232
|
+
TransactionSearchSalesOrderGridComponent.decorators = [
|
|
10948
11233
|
{ type: Component, args: [{
|
|
10949
|
-
selector: "co-transaction-search-grid",
|
|
11234
|
+
selector: "co-transaction-search-sales-order-grid",
|
|
10950
11235
|
template: `
|
|
10951
11236
|
<div>
|
|
10952
11237
|
<co-simple-grid [data]="transactions" [extraColumns]="extraColumns" [dragDropEnabled]="true" [emitDragDrop]="false"
|
|
@@ -11003,17 +11288,17 @@ TransactionSearchGridComponent.decorators = [
|
|
|
11003
11288
|
encapsulation: ViewEncapsulation.None
|
|
11004
11289
|
},] }
|
|
11005
11290
|
];
|
|
11006
|
-
|
|
11007
|
-
|
|
11291
|
+
TransactionSearchSalesOrderGridComponent.ctorParameters = () => [];
|
|
11292
|
+
TransactionSearchSalesOrderGridComponent.propDecorators = {
|
|
11008
11293
|
content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
|
|
11009
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-grid",] }],
|
|
11294
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-sales-order-grid",] }],
|
|
11010
11295
|
transactions: [{ type: Input }],
|
|
11011
11296
|
transactionClick: [{ type: Output }]
|
|
11012
11297
|
};
|
|
11013
11298
|
|
|
11014
|
-
class
|
|
11299
|
+
class TransactionSearchSalesOrderGridModule {
|
|
11015
11300
|
}
|
|
11016
|
-
|
|
11301
|
+
TransactionSearchSalesOrderGridModule.decorators = [
|
|
11017
11302
|
{ type: NgModule, args: [{
|
|
11018
11303
|
imports: [
|
|
11019
11304
|
CommonModule,
|
|
@@ -11023,15 +11308,148 @@ TransactionSearchGridModule.decorators = [
|
|
|
11023
11308
|
InputCheckboxModule
|
|
11024
11309
|
],
|
|
11025
11310
|
declarations: [
|
|
11026
|
-
|
|
11311
|
+
TransactionSearchSalesOrderGridComponent
|
|
11027
11312
|
],
|
|
11028
11313
|
exports: [
|
|
11029
|
-
|
|
11314
|
+
TransactionSearchSalesOrderGridComponent
|
|
11030
11315
|
]
|
|
11031
11316
|
},] }
|
|
11032
11317
|
];
|
|
11033
11318
|
|
|
11034
|
-
class
|
|
11319
|
+
class TransactionSearchHeaderComponent {
|
|
11320
|
+
constructor(searchService, iconCacheService, _dictionary) {
|
|
11321
|
+
this.searchService = searchService;
|
|
11322
|
+
this.iconCacheService = iconCacheService;
|
|
11323
|
+
this._dictionary = _dictionary;
|
|
11324
|
+
this.icon = Icon;
|
|
11325
|
+
this.contentViewModes = ContentViewMode;
|
|
11326
|
+
this.searchViewModes = SearchViewMode;
|
|
11327
|
+
this.iconSlideIn = this.iconCacheService.getIcon(this.icon.SlideIn);
|
|
11328
|
+
this.iconResize = this.iconCacheService.getIcon(this.icon.Resize);
|
|
11329
|
+
this.iconCancel = this.iconCacheService.getIcon(this.icon.Cancel);
|
|
11330
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11331
|
+
this.activeContentViewMode = this.contentViewModes.Tiles;
|
|
11332
|
+
this.viewModeChange = new EventEmitter();
|
|
11333
|
+
this.filterButtonClick = new EventEmitter();
|
|
11334
|
+
this.resizeClick = new EventEmitter();
|
|
11335
|
+
this.closeClick = new EventEmitter();
|
|
11336
|
+
}
|
|
11337
|
+
set transactionType(value) {
|
|
11338
|
+
this.label = this._dictionary.get(this.searchService.getLabelBasedOnTransactionType());
|
|
11339
|
+
}
|
|
11340
|
+
showClass() {
|
|
11341
|
+
return true;
|
|
11342
|
+
}
|
|
11343
|
+
get fullscreen() {
|
|
11344
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11345
|
+
}
|
|
11346
|
+
onResizeClick() {
|
|
11347
|
+
this.resizeClick.emit();
|
|
11348
|
+
}
|
|
11349
|
+
onCloseClick() {
|
|
11350
|
+
this.closeClick.emit();
|
|
11351
|
+
}
|
|
11352
|
+
onViewModeChange(viewMode) {
|
|
11353
|
+
this.viewModeChange.emit(viewMode);
|
|
11354
|
+
}
|
|
11355
|
+
}
|
|
11356
|
+
TransactionSearchHeaderComponent.decorators = [
|
|
11357
|
+
{ type: Component, args: [{
|
|
11358
|
+
selector: "co-transaction-search-header",
|
|
11359
|
+
template: `
|
|
11360
|
+
<div class="transaction-search-header-wrapper">
|
|
11361
|
+
<div class="upper-header">
|
|
11362
|
+
<div class="header-title-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11363
|
+
<div class="title" *ngIf="fullscreen; else sidebar">
|
|
11364
|
+
<h1 [textContent]="label"></h1>
|
|
11365
|
+
</div>
|
|
11366
|
+
<ng-template #sidebar>
|
|
11367
|
+
<h2 [textContent]="'SEARCH' | localize"></h2>
|
|
11368
|
+
<span class="whitespace" [textContent]="'IN' | localize | append: ' ' + label.toLowerCase()"></span>
|
|
11369
|
+
</ng-template>
|
|
11370
|
+
</div>
|
|
11371
|
+
|
|
11372
|
+
<div class="header-buttons-wrapper">
|
|
11373
|
+
<div class="toggle-sidebar-button-wrapper button-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'">
|
|
11374
|
+
<co-button [iconData]="fullscreen ? iconSlideIn : iconResize"
|
|
11375
|
+
[ngClass]="!fullscreen ? 'small' : ''"
|
|
11376
|
+
class="toggle-sidebar-button circle transparent"
|
|
11377
|
+
(click)="onResizeClick()"></co-button>
|
|
11378
|
+
</div>
|
|
11379
|
+
<div class="close-search-button-wrapper button-wrapper" *ngIf="!fullscreen">
|
|
11380
|
+
<co-button [iconData]="iconCancel"
|
|
11381
|
+
class="toggle-sidebar-button circle small transparent"
|
|
11382
|
+
(click)="onCloseClick()">
|
|
11383
|
+
</co-button>
|
|
11384
|
+
</div>
|
|
11385
|
+
</div>
|
|
11386
|
+
|
|
11387
|
+
</div>
|
|
11388
|
+
<div class="header-searchbar-wrapper">
|
|
11389
|
+
<div>
|
|
11390
|
+
<co-input-search class="transaction-search-general"
|
|
11391
|
+
[ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11392
|
+
[(model)]="searchService.searchRequest.general"
|
|
11393
|
+
[placeholder]="'Waar ben je naar op zoek?'"
|
|
11394
|
+
(search)="searchService.searchTransactions()"></co-input-search>
|
|
11395
|
+
</div>
|
|
11396
|
+
<div>
|
|
11397
|
+
<co-button class="transaction-search-filter-button"
|
|
11398
|
+
*ngIf="fullscreen"
|
|
11399
|
+
[iconData]="iconCacheService.getIcon(icon.BarsFilter)"
|
|
11400
|
+
(click)="filterButtonClick.emit()">
|
|
11401
|
+
</co-button>
|
|
11402
|
+
</div>
|
|
11403
|
+
</div>
|
|
11404
|
+
</div>
|
|
11405
|
+
<div class="view-mode-buttons-wrapper">
|
|
11406
|
+
<co-view-mode-buttons
|
|
11407
|
+
*ngIf="fullscreen"
|
|
11408
|
+
[showViewModes]="[contentViewModes.Tiles, contentViewModes.Grid]"
|
|
11409
|
+
(viewModeChange)="onViewModeChange($event)">
|
|
11410
|
+
</co-view-mode-buttons>
|
|
11411
|
+
</div>
|
|
11412
|
+
`,
|
|
11413
|
+
encapsulation: ViewEncapsulation.None
|
|
11414
|
+
},] }
|
|
11415
|
+
];
|
|
11416
|
+
TransactionSearchHeaderComponent.ctorParameters = () => [
|
|
11417
|
+
{ type: TransactionSearchService },
|
|
11418
|
+
{ type: IconCacheService },
|
|
11419
|
+
{ type: DictionaryService }
|
|
11420
|
+
];
|
|
11421
|
+
TransactionSearchHeaderComponent.propDecorators = {
|
|
11422
|
+
transactionType: [{ type: Input }],
|
|
11423
|
+
activeSearchViewMode: [{ type: Input }],
|
|
11424
|
+
activeContentViewMode: [{ type: Input }],
|
|
11425
|
+
viewModeChange: [{ type: Output }],
|
|
11426
|
+
filterButtonClick: [{ type: Output }],
|
|
11427
|
+
resizeClick: [{ type: Output }],
|
|
11428
|
+
closeClick: [{ type: Output }],
|
|
11429
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-header",] }]
|
|
11430
|
+
};
|
|
11431
|
+
|
|
11432
|
+
class TransactionSearchHeaderModule {
|
|
11433
|
+
}
|
|
11434
|
+
TransactionSearchHeaderModule.decorators = [
|
|
11435
|
+
{ type: NgModule, args: [{
|
|
11436
|
+
imports: [
|
|
11437
|
+
CommonModule,
|
|
11438
|
+
PipeModule,
|
|
11439
|
+
ButtonModule,
|
|
11440
|
+
InputSearchModule,
|
|
11441
|
+
ViewModeButtonsModule
|
|
11442
|
+
],
|
|
11443
|
+
declarations: [
|
|
11444
|
+
TransactionSearchHeaderComponent
|
|
11445
|
+
],
|
|
11446
|
+
exports: [
|
|
11447
|
+
TransactionSearchHeaderComponent
|
|
11448
|
+
]
|
|
11449
|
+
},] }
|
|
11450
|
+
];
|
|
11451
|
+
|
|
11452
|
+
class TransactionSearchSalesOrderTileComponent {
|
|
11035
11453
|
constructor(iconCacheService) {
|
|
11036
11454
|
this.iconCacheService = iconCacheService;
|
|
11037
11455
|
this.icons = Icon;
|
|
@@ -11044,9 +11462,9 @@ class TransactionTileComponent {
|
|
|
11044
11462
|
this.tileClick.emit(event);
|
|
11045
11463
|
}
|
|
11046
11464
|
}
|
|
11047
|
-
|
|
11465
|
+
TransactionSearchSalesOrderTileComponent.decorators = [
|
|
11048
11466
|
{ type: Component, args: [{
|
|
11049
|
-
selector: "co-transaction-tile",
|
|
11467
|
+
selector: "co-transaction-search-sales-order-tile",
|
|
11050
11468
|
template: `
|
|
11051
11469
|
<div class="transaction-tile-wrapper" (click)="onTileClick($event)">
|
|
11052
11470
|
<div class="transaction-tile-body">
|
|
@@ -11063,7 +11481,7 @@ TransactionTileComponent.decorators = [
|
|
|
11063
11481
|
</div>
|
|
11064
11482
|
</div>
|
|
11065
11483
|
<div class="transaction-tile-order-summary">
|
|
11066
|
-
<div class="header"><span [textContent]="
|
|
11484
|
+
<div class="header"><span [textContent]="transaction.totalPriceVat | currency:'EUR'"></span></div> <!--todo: vullen als api aanpassing gedaan is-->
|
|
11067
11485
|
</div>
|
|
11068
11486
|
</div>
|
|
11069
11487
|
<div class="transaction-tile-footer">
|
|
@@ -11096,18 +11514,18 @@ TransactionTileComponent.decorators = [
|
|
|
11096
11514
|
encapsulation: ViewEncapsulation.None
|
|
11097
11515
|
},] }
|
|
11098
11516
|
];
|
|
11099
|
-
|
|
11517
|
+
TransactionSearchSalesOrderTileComponent.ctorParameters = () => [
|
|
11100
11518
|
{ type: IconCacheService }
|
|
11101
11519
|
];
|
|
11102
|
-
|
|
11520
|
+
TransactionSearchSalesOrderTileComponent.propDecorators = {
|
|
11103
11521
|
transaction: [{ type: Input }],
|
|
11104
11522
|
tileClick: [{ type: Output }],
|
|
11105
|
-
showClass: [{ type: HostBinding, args: ["class.co-transaction-tile",] }]
|
|
11523
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-sales-order-tile",] }]
|
|
11106
11524
|
};
|
|
11107
11525
|
|
|
11108
|
-
class
|
|
11526
|
+
class TransactionSearchSalesOrderTileModule {
|
|
11109
11527
|
}
|
|
11110
|
-
|
|
11528
|
+
TransactionSearchSalesOrderTileModule.decorators = [
|
|
11111
11529
|
{ type: NgModule, args: [{
|
|
11112
11530
|
imports: [
|
|
11113
11531
|
CommonModule,
|
|
@@ -11118,96 +11536,92 @@ TransactionTileModule.decorators = [
|
|
|
11118
11536
|
IconModule,
|
|
11119
11537
|
],
|
|
11120
11538
|
declarations: [
|
|
11121
|
-
|
|
11539
|
+
TransactionSearchSalesOrderTileComponent
|
|
11122
11540
|
],
|
|
11123
11541
|
exports: [
|
|
11124
|
-
|
|
11542
|
+
TransactionSearchSalesOrderTileComponent
|
|
11125
11543
|
]
|
|
11126
11544
|
},] }
|
|
11127
11545
|
];
|
|
11128
11546
|
|
|
11129
|
-
class TransactionSearchService {
|
|
11130
|
-
constructor(_transactionService) {
|
|
11131
|
-
this._transactionService = _transactionService;
|
|
11132
|
-
this.searchRequest = new TransactionSearchViewRequest();
|
|
11133
|
-
this.transactions = [];
|
|
11134
|
-
}
|
|
11135
|
-
searchTransactions() {
|
|
11136
|
-
this._transactionService.searchTransactions(this.searchRequest).then((transactions) => {
|
|
11137
|
-
this.transactions = transactions;
|
|
11138
|
-
});
|
|
11139
|
-
}
|
|
11140
|
-
resetFilters() {
|
|
11141
|
-
const oldSearchRequest = Object.assign({}, this.searchRequest);
|
|
11142
|
-
this.searchRequest = new TransactionSearchViewRequest();
|
|
11143
|
-
this.searchRequest.general = oldSearchRequest.general;
|
|
11144
|
-
this.searchTransactions();
|
|
11145
|
-
}
|
|
11146
|
-
}
|
|
11147
|
-
TransactionSearchService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
|
|
11148
|
-
TransactionSearchService.decorators = [
|
|
11149
|
-
{ type: Injectable, args: [{
|
|
11150
|
-
providedIn: "root"
|
|
11151
|
-
},] }
|
|
11152
|
-
];
|
|
11153
|
-
TransactionSearchService.ctorParameters = () => [
|
|
11154
|
-
{ type: TransactionService }
|
|
11155
|
-
];
|
|
11156
|
-
|
|
11157
11547
|
class TransactionSearchResultComponent {
|
|
11158
|
-
constructor(searchService
|
|
11548
|
+
constructor(searchService) {
|
|
11159
11549
|
this.searchService = searchService;
|
|
11160
|
-
this.iconCacheService = iconCacheService;
|
|
11161
11550
|
this.icon = Icon;
|
|
11162
|
-
this.
|
|
11163
|
-
this.
|
|
11551
|
+
this.contentViewModes = ContentViewMode;
|
|
11552
|
+
this.searchViewModes = SearchViewMode;
|
|
11553
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
11554
|
+
this.filterClick = new EventEmitter();
|
|
11164
11555
|
this.transactionClick = new EventEmitter();
|
|
11165
|
-
this.
|
|
11556
|
+
this.resizeClick = new EventEmitter();
|
|
11557
|
+
this.closeClick = new EventEmitter();
|
|
11558
|
+
this.activeContentViewMode = ContentViewMode.Tiles;
|
|
11166
11559
|
}
|
|
11167
11560
|
showClass() {
|
|
11168
11561
|
return true;
|
|
11169
11562
|
}
|
|
11170
11563
|
ngOnInit() {
|
|
11171
11564
|
}
|
|
11565
|
+
get fullscreen() {
|
|
11566
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
11567
|
+
}
|
|
11172
11568
|
onTransactionClick(transaction) {
|
|
11173
11569
|
this.transactionClick.emit(transaction);
|
|
11174
11570
|
}
|
|
11571
|
+
onResizeClick() {
|
|
11572
|
+
this.activeContentViewMode = this.contentViewModes.Tiles;
|
|
11573
|
+
this.resizeClick.emit();
|
|
11574
|
+
}
|
|
11575
|
+
onCloseClick() {
|
|
11576
|
+
this.closeClick.emit();
|
|
11577
|
+
}
|
|
11578
|
+
onFilterClick() {
|
|
11579
|
+
this.filterClick.emit();
|
|
11580
|
+
}
|
|
11175
11581
|
}
|
|
11176
11582
|
TransactionSearchResultComponent.decorators = [
|
|
11177
11583
|
{ type: Component, args: [{
|
|
11178
11584
|
selector: 'co-transaction-search-result',
|
|
11179
11585
|
template: `
|
|
11180
11586
|
<div class="transaction-search-header-wrapper">
|
|
11181
|
-
<co-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11587
|
+
<co-transaction-search-header
|
|
11588
|
+
[transactionType]="transactionType"
|
|
11589
|
+
[activeSearchViewMode]="activeSearchViewMode"
|
|
11590
|
+
[activeContentViewMode]="activeContentViewMode"
|
|
11591
|
+
(viewModeChange)="activeContentViewMode = $event"
|
|
11592
|
+
(resizeClick)="onResizeClick()"
|
|
11593
|
+
(filterButtonClick)="onFilterClick()"
|
|
11594
|
+
(closeClick)="onCloseClick()">
|
|
11595
|
+
</co-transaction-search-header>
|
|
11187
11596
|
</div>
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11597
|
+
|
|
11598
|
+
<div class="transaction-search-result-content-tiles-wrapper" [ngClass]="fullscreen ? 'fullscreen' : 'sidebar'"
|
|
11599
|
+
*ngIf="activeContentViewMode === contentViewModes.Tiles">
|
|
11191
11600
|
<div class="transaction-tile" *ngFor="let transaction of searchService.transactions">
|
|
11192
|
-
<co-transaction-tile
|
|
11193
|
-
|
|
11601
|
+
<co-transaction-search-sales-order-tile
|
|
11602
|
+
[transaction]="transaction"
|
|
11603
|
+
(tileClick)="onTransactionClick(transaction)"></co-transaction-search-sales-order-tile>
|
|
11194
11604
|
</div>
|
|
11195
11605
|
</div>
|
|
11196
|
-
<div class="transaction-search-result-content-grid-wrapper" *ngIf="
|
|
11197
|
-
<co-transaction-search-grid
|
|
11198
|
-
|
|
11606
|
+
<div class="transaction-search-result-content-grid-wrapper" *ngIf="activeContentViewMode === contentViewModes.Grid">
|
|
11607
|
+
<co-transaction-search-sales-order-grid
|
|
11608
|
+
[transactions]="searchService.transactions"
|
|
11609
|
+
(transactionClick)="onTransactionClick($event)"></co-transaction-search-sales-order-grid>
|
|
11199
11610
|
</div>
|
|
11200
11611
|
`,
|
|
11201
11612
|
encapsulation: ViewEncapsulation.None
|
|
11202
11613
|
},] }
|
|
11203
11614
|
];
|
|
11204
11615
|
TransactionSearchResultComponent.ctorParameters = () => [
|
|
11205
|
-
{ type: TransactionSearchService }
|
|
11206
|
-
{ type: IconCacheService }
|
|
11616
|
+
{ type: TransactionSearchService }
|
|
11207
11617
|
];
|
|
11208
11618
|
TransactionSearchResultComponent.propDecorators = {
|
|
11209
|
-
|
|
11619
|
+
transactionType: [{ type: Input }],
|
|
11620
|
+
activeSearchViewMode: [{ type: Input }],
|
|
11621
|
+
filterClick: [{ type: Output }],
|
|
11210
11622
|
transactionClick: [{ type: Output }],
|
|
11623
|
+
resizeClick: [{ type: Output }],
|
|
11624
|
+
closeClick: [{ type: Output }],
|
|
11211
11625
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-search-result",] }]
|
|
11212
11626
|
};
|
|
11213
11627
|
|
|
@@ -11221,8 +11635,10 @@ TransactionSearchResultModule.decorators = [
|
|
|
11221
11635
|
ButtonModule,
|
|
11222
11636
|
ViewModeButtonsModule,
|
|
11223
11637
|
AvatarModule,
|
|
11224
|
-
|
|
11225
|
-
|
|
11638
|
+
TransactionSearchSalesOrderTileModule,
|
|
11639
|
+
TransactionSearchSalesOrderGridModule,
|
|
11640
|
+
PipeModule,
|
|
11641
|
+
TransactionSearchHeaderModule
|
|
11226
11642
|
],
|
|
11227
11643
|
declarations: [
|
|
11228
11644
|
TransactionSearchResultComponent
|
|
@@ -11264,12 +11680,12 @@ class FilterRequestService {
|
|
|
11264
11680
|
this.searchService.searchRequest[modelName] = this._getFilterRequestForCollectionArray(collection);
|
|
11265
11681
|
}
|
|
11266
11682
|
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11267
|
-
handleCollectionChangeForSingleValue(
|
|
11268
|
-
this.searchService.searchRequest[modelName] =
|
|
11683
|
+
handleCollectionChangeForSingleValue(value, modelName) {
|
|
11684
|
+
this.searchService.searchRequest[modelName] = value;
|
|
11269
11685
|
}
|
|
11270
11686
|
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11271
|
-
handleCollectionChangeForSingleNumber(
|
|
11272
|
-
this.searchService.searchRequest[modelName] =
|
|
11687
|
+
handleCollectionChangeForSingleNumber(value, modelName) {
|
|
11688
|
+
this.searchService.searchRequest[modelName] = value;
|
|
11273
11689
|
}
|
|
11274
11690
|
handleCheckboxValueChangeForString(value, modelName) {
|
|
11275
11691
|
this.searchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
|
|
@@ -11325,21 +11741,6 @@ class FilterRequestService {
|
|
|
11325
11741
|
});
|
|
11326
11742
|
return filterRequest;
|
|
11327
11743
|
}
|
|
11328
|
-
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11329
|
-
_getFilterRequestForSingleCollectionValue(collection) {
|
|
11330
|
-
let filterRequest = '';
|
|
11331
|
-
const firstValue = collection.find(item => item.checked).code.toString();
|
|
11332
|
-
if (firstValue) {
|
|
11333
|
-
filterRequest = `?=\'${firstValue}\'`;
|
|
11334
|
-
}
|
|
11335
|
-
return filterRequest;
|
|
11336
|
-
}
|
|
11337
|
-
//todo: tijdelijk totdat filter-item single select ondersteunt
|
|
11338
|
-
_getFilterRequestForSingleCollectionNumber(collection) {
|
|
11339
|
-
var _a;
|
|
11340
|
-
const firstValue = Number((_a = collection.find(item => item.checked)) === null || _a === void 0 ? void 0 : _a.code);
|
|
11341
|
-
return firstValue !== null && firstValue !== void 0 ? firstValue : -1;
|
|
11342
|
-
}
|
|
11343
11744
|
_getFilterRequestForDateRange(startDate, endDate) {
|
|
11344
11745
|
const startDateRequest = startDate ? this._formatDateToString(startDate) : '';
|
|
11345
11746
|
const endDateRequest = endDate ? this._formatDateToString(endDate) : '';
|
|
@@ -11374,27 +11775,48 @@ class TransactionFilterContentArticleComponent {
|
|
|
11374
11775
|
this.showLessLabel = "SHOW_LESS";
|
|
11375
11776
|
this.articleNumberFields = { text: "description", value: "code" };
|
|
11376
11777
|
this.exceedanceCodeFields = { text: "description", value: "code" };
|
|
11778
|
+
this.turnoverGroupFields = { text: "description", value: "turnovergroupNr" };
|
|
11779
|
+
this.mainArticleFields = { text: "description", value: "articlenumber" };
|
|
11377
11780
|
this.supplierFields = { text: "displayName", value: "relationId" };
|
|
11781
|
+
this.getArticles = (text) => {
|
|
11782
|
+
const request = new ArticleExtendedRequest();
|
|
11783
|
+
request.articleNumber = text;
|
|
11784
|
+
return this._transactionService.getArticles(request).then((articles) => {
|
|
11785
|
+
return new FilterViewmodel(articles, { text: 'articleNumber', value: 'articleNumber' }).filterItems;
|
|
11786
|
+
});
|
|
11787
|
+
};
|
|
11378
11788
|
}
|
|
11379
11789
|
showClass() {
|
|
11380
11790
|
return true;
|
|
11381
11791
|
}
|
|
11382
11792
|
ngOnInit() {
|
|
11383
|
-
this._setArticleNumbers();
|
|
11384
11793
|
this._setExceedanceCodes();
|
|
11385
11794
|
this._setSuppliers();
|
|
11795
|
+
this._setTurnoverGroups();
|
|
11796
|
+
this._setMainArticles();
|
|
11386
11797
|
}
|
|
11387
11798
|
onFilterButtonClick() {
|
|
11388
11799
|
this.searchService.searchTransactions();
|
|
11389
11800
|
}
|
|
11390
|
-
|
|
11391
|
-
|
|
11801
|
+
handleCollectionChangeArticleNumber(collection) {
|
|
11802
|
+
const checkedItem = collection.find(c => c.checked);
|
|
11803
|
+
this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'articleNr');
|
|
11392
11804
|
}
|
|
11393
11805
|
_setExceedanceCodes() {
|
|
11394
11806
|
this._transactionService.getInOutCollection("NL").then((exceedanceCodes) => {
|
|
11395
11807
|
this.exceedanceCodes = new FilterViewmodel(exceedanceCodes, this.exceedanceCodeFields).filterItems;
|
|
11396
11808
|
});
|
|
11397
11809
|
}
|
|
11810
|
+
_setTurnoverGroups() {
|
|
11811
|
+
this._transactionService.getTurnoverGroups().then((turnoverGroups) => {
|
|
11812
|
+
this.turnoverGroups = new FilterViewmodel(turnoverGroups, this.turnoverGroupFields).filterItems;
|
|
11813
|
+
});
|
|
11814
|
+
}
|
|
11815
|
+
_setMainArticles() {
|
|
11816
|
+
this._transactionService.getMainArticles().then((articles) => {
|
|
11817
|
+
this.mainArticles = new FilterViewmodel(articles, this.mainArticleFields).filterItems;
|
|
11818
|
+
});
|
|
11819
|
+
}
|
|
11398
11820
|
_setSuppliers() {
|
|
11399
11821
|
const request = new RelationRequest();
|
|
11400
11822
|
request.relationType = RelationKind.Supplier;
|
|
@@ -11409,32 +11831,33 @@ TransactionFilterContentArticleComponent.decorators = [
|
|
|
11409
11831
|
template: `
|
|
11410
11832
|
<div class="transaction-filter-content-article-wrapper">
|
|
11411
11833
|
|
|
11412
|
-
<!--Artikelnummer
|
|
11834
|
+
<!--Artikelnummer-->
|
|
11413
11835
|
<co-filter-item
|
|
11414
11836
|
[placeholder]="'ARTICLE_NR' | localize"
|
|
11415
11837
|
[expanded]="true"
|
|
11416
|
-
[
|
|
11838
|
+
[singleSelect]="true"
|
|
11839
|
+
[minSearchCharsToLoadCollection]="3"
|
|
11840
|
+
[collectionLoadFn]="getArticles"
|
|
11841
|
+
(collectionChange)="handleCollectionChangeArticleNumber($event)"
|
|
11417
11842
|
>
|
|
11418
|
-
<co-input-text [(model)]="searchRequest.mainArticleNrRange"
|
|
11419
|
-
[placeholder]="'ARTICLE_NR' | localize"></co-input-text>
|
|
11420
11843
|
</co-filter-item>
|
|
11421
11844
|
|
|
11422
|
-
<!--Omzetgroep
|
|
11845
|
+
<!--Omzetgroep-->
|
|
11423
11846
|
<co-filter-item
|
|
11424
11847
|
[placeholder]="'TURNOVER_GROUP' | localize"
|
|
11425
|
-
[
|
|
11426
|
-
[
|
|
11427
|
-
|
|
11428
|
-
|
|
11848
|
+
[expanded]="true"
|
|
11849
|
+
[collection]="turnoverGroups"
|
|
11850
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeTurnoverGroup')"
|
|
11851
|
+
>
|
|
11429
11852
|
</co-filter-item>
|
|
11430
11853
|
|
|
11431
|
-
<!--Hoofdartikel
|
|
11854
|
+
<!--Hoofdartikel-->
|
|
11432
11855
|
<co-filter-item
|
|
11433
11856
|
[placeholder]="'MAIN_ARTICLE' | localize"
|
|
11434
|
-
[
|
|
11435
|
-
[
|
|
11436
|
-
|
|
11437
|
-
|
|
11857
|
+
[expanded]="true"
|
|
11858
|
+
[collection]="mainArticles"
|
|
11859
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'mainArticleNrRange')"
|
|
11860
|
+
>
|
|
11438
11861
|
</co-filter-item>
|
|
11439
11862
|
|
|
11440
11863
|
<!--Uitloopcode -->
|
|
@@ -11445,7 +11868,7 @@ TransactionFilterContentArticleComponent.decorators = [
|
|
|
11445
11868
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11446
11869
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11447
11870
|
[showLessLabel]="showLessLabel | localize"
|
|
11448
|
-
(collectionChange)="
|
|
11871
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'exceedanceCodes')"
|
|
11449
11872
|
>
|
|
11450
11873
|
</co-filter-item>
|
|
11451
11874
|
|
|
@@ -11457,7 +11880,7 @@ TransactionFilterContentArticleComponent.decorators = [
|
|
|
11457
11880
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11458
11881
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11459
11882
|
[showLessLabel]="showLessLabel | localize"
|
|
11460
|
-
(collectionChange)="
|
|
11883
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
|
|
11461
11884
|
>
|
|
11462
11885
|
</co-filter-item>
|
|
11463
11886
|
<div class="filter-button-container">
|
|
@@ -11520,6 +11943,9 @@ class TransactionFilterContentLogisticsComponent {
|
|
|
11520
11943
|
onFilterButtonClick() {
|
|
11521
11944
|
this.searchService.searchTransactions();
|
|
11522
11945
|
}
|
|
11946
|
+
handleAllocatedChange(value) {
|
|
11947
|
+
console.log(value);
|
|
11948
|
+
}
|
|
11523
11949
|
_setRangeDates() {
|
|
11524
11950
|
this.confirmedDeliveryStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 0);
|
|
11525
11951
|
this.confirmedDeliveryEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.confirmedDeliveryDateRange, 1);
|
|
@@ -11553,7 +11979,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11553
11979
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11554
11980
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11555
11981
|
[showLessLabel]="showLessLabel | localize"
|
|
11556
|
-
(collectionChange)="
|
|
11982
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeDeliveryMethod')">
|
|
11557
11983
|
</co-filter-item>
|
|
11558
11984
|
|
|
11559
11985
|
|
|
@@ -11564,56 +11990,39 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11564
11990
|
[expanded]="true">
|
|
11565
11991
|
<co-input-checkbox
|
|
11566
11992
|
[model]="searchRequest.deliveryDateDefinitive === 'J'"
|
|
11567
|
-
(modelChange)="
|
|
11993
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'deliveryDateDefinitive')"
|
|
11568
11994
|
[label]="'DELIVERY_DATE_FINAL' | localize"></co-input-checkbox>
|
|
11569
11995
|
</co-filter-item>
|
|
11570
11996
|
|
|
11571
|
-
<!--Toegewezen
|
|
11572
|
-
<co-filter-
|
|
11573
|
-
[
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
<co-input-text [(model)]="searchRequest.quantityAllocated"
|
|
11577
|
-
[placeholder]="'ALLOCATED' | localize"></co-input-text>
|
|
11578
|
-
</co-filter-item>
|
|
11997
|
+
<!--Toegewezen-->
|
|
11998
|
+
<co-transaction-filter-historic-state
|
|
11999
|
+
[label]="'ALLOCATED'"
|
|
12000
|
+
(filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityAllocated')"
|
|
12001
|
+
></co-transaction-filter-historic-state>
|
|
11579
12002
|
|
|
11580
|
-
<!--Geleverd
|
|
11581
|
-
<co-filter-
|
|
11582
|
-
[
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
<co-input-text [(model)]="searchRequest.quantityDelivered"
|
|
11586
|
-
[placeholder]="'DELIVERED' | localize"></co-input-text>
|
|
11587
|
-
</co-filter-item>
|
|
12003
|
+
<!--Geleverd-->
|
|
12004
|
+
<co-transaction-filter-historic-state
|
|
12005
|
+
[label]="'DELIVERED'"
|
|
12006
|
+
(filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityDelivered')"
|
|
12007
|
+
></co-transaction-filter-historic-state>
|
|
11588
12008
|
|
|
11589
|
-
<!--Gefactureerd
|
|
11590
|
-
<co-filter-
|
|
11591
|
-
[
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
<co-input-text
|
|
11595
|
-
[(model)]="searchRequest.quantityInvoiced"
|
|
11596
|
-
[placeholder]="'INVOICED' | localize"></co-input-text>
|
|
11597
|
-
</co-filter-item>
|
|
12009
|
+
<!--Gefactureerd-->
|
|
12010
|
+
<co-transaction-filter-historic-state
|
|
12011
|
+
[label]="'INVOICED'"
|
|
12012
|
+
(filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityInvoiced')"
|
|
12013
|
+
></co-transaction-filter-historic-state>
|
|
11598
12014
|
|
|
11599
|
-
<!--Te picken
|
|
11600
|
-
<co-filter-
|
|
11601
|
-
[
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
<co-input-text [(model)]="searchRequest.quantityToBePicked"
|
|
11605
|
-
[placeholder]="'TO_BE_PICKED' | localize"></co-input-text>
|
|
11606
|
-
</co-filter-item>
|
|
12015
|
+
<!--Te picken-->
|
|
12016
|
+
<co-transaction-filter-historic-state
|
|
12017
|
+
[label]="'TO_BE_PICKED'"
|
|
12018
|
+
(filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityToBePicked')"
|
|
12019
|
+
></co-transaction-filter-historic-state>
|
|
11607
12020
|
|
|
11608
|
-
<!--Gepicked
|
|
11609
|
-
<co-filter-
|
|
11610
|
-
[
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
<co-input-text
|
|
11614
|
-
[(model)]="searchRequest.quantityPicked"
|
|
11615
|
-
[placeholder]="'PICKED' | localize"></co-input-text>
|
|
11616
|
-
</co-filter-item>
|
|
12021
|
+
<!--Gepicked-->
|
|
12022
|
+
<co-transaction-filter-historic-state
|
|
12023
|
+
[label]="'PICKED'"
|
|
12024
|
+
(filterClicked)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'quantityPicked')"
|
|
12025
|
+
></co-transaction-filter-historic-state>
|
|
11617
12026
|
|
|
11618
12027
|
<!--Bevestigde leverdatum-->
|
|
11619
12028
|
<co-filter-item
|
|
@@ -11623,7 +12032,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11623
12032
|
<co-input-date-range
|
|
11624
12033
|
[startDate]="confirmedDeliveryStartDate"
|
|
11625
12034
|
[endDate]="confirmedDeliveryEndDate"
|
|
11626
|
-
(dateRangeChange)="
|
|
12035
|
+
(dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'confirmedDeliveryDateRange')"
|
|
11627
12036
|
[placeholder]="'SELECT_DATE' | localize">
|
|
11628
12037
|
</co-input-date-range>
|
|
11629
12038
|
</co-filter-item>
|
|
@@ -11636,7 +12045,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11636
12045
|
<co-input-date-range
|
|
11637
12046
|
[startDate]="arrivalStartDate"
|
|
11638
12047
|
[endDate]="arrivalEndDate"
|
|
11639
|
-
(dateRangeChange)="
|
|
12048
|
+
(dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'arrivalDateRange')"
|
|
11640
12049
|
[placeholder]="'SELECT_DATE' | localize">
|
|
11641
12050
|
</co-input-date-range>
|
|
11642
12051
|
</co-filter-item>
|
|
@@ -11648,7 +12057,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11648
12057
|
[expanded]="true">
|
|
11649
12058
|
<co-input-checkbox
|
|
11650
12059
|
[model]="searchRequest.partialDelivery === 'J'"
|
|
11651
|
-
(modelChange)="
|
|
12060
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'partialDelivery')"
|
|
11652
12061
|
[label]="'PART_DELIVERY' | localize">
|
|
11653
12062
|
</co-input-checkbox>
|
|
11654
12063
|
</co-filter-item>
|
|
@@ -11661,7 +12070,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11661
12070
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11662
12071
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11663
12072
|
[showLessLabel]="showLessLabel | localize"
|
|
11664
|
-
(collectionChange)="
|
|
12073
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'warehouse')">
|
|
11665
12074
|
</co-filter-item>
|
|
11666
12075
|
|
|
11667
12076
|
|
|
@@ -11673,7 +12082,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11673
12082
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11674
12083
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11675
12084
|
[showLessLabel]="showLessLabel | localize"
|
|
11676
|
-
(collectionChange)="
|
|
12085
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleNumber($event, 'sourceWarehouse')">
|
|
11677
12086
|
</co-filter-item>
|
|
11678
12087
|
|
|
11679
12088
|
|
|
@@ -11702,7 +12111,7 @@ TransactionFilterContentLogisticsComponent.decorators = [
|
|
|
11702
12111
|
<co-input-checkbox
|
|
11703
12112
|
[label]="'INCLUDING_RETURNS' | localize"
|
|
11704
12113
|
[model]="searchRequest.includingReturns === 1"
|
|
11705
|
-
(modelChange)="
|
|
12114
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForNumber($event, 'includingReturns')"
|
|
11706
12115
|
>
|
|
11707
12116
|
</co-input-checkbox>
|
|
11708
12117
|
</co-filter-item>
|
|
@@ -11733,6 +12142,83 @@ TransactionFilterContentLogisticsComponent.propDecorators = {
|
|
|
11733
12142
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-filter-content-logistics",] }]
|
|
11734
12143
|
};
|
|
11735
12144
|
|
|
12145
|
+
class TransactionFilterHistoricStateComponent {
|
|
12146
|
+
constructor() {
|
|
12147
|
+
this.expanded = true;
|
|
12148
|
+
this.filterClicked = new EventEmitter();
|
|
12149
|
+
this.states = [];
|
|
12150
|
+
}
|
|
12151
|
+
set label(value) {
|
|
12152
|
+
this._label = value;
|
|
12153
|
+
this.groupName = this._label.toLowerCase() + "_group";
|
|
12154
|
+
this.labelNothing = "NOTHING_" + this._label.toUpperCase();
|
|
12155
|
+
this.labelPartly = "PARTLY_" + this._label.toUpperCase();
|
|
12156
|
+
this.labelFully = "FULLY_" + this._label.toUpperCase();
|
|
12157
|
+
this._setStates();
|
|
12158
|
+
}
|
|
12159
|
+
get label() {
|
|
12160
|
+
return this._label;
|
|
12161
|
+
}
|
|
12162
|
+
showClass() {
|
|
12163
|
+
return true;
|
|
12164
|
+
}
|
|
12165
|
+
handleStateChange(value) {
|
|
12166
|
+
this.filterClicked.emit(value);
|
|
12167
|
+
}
|
|
12168
|
+
_setStates() {
|
|
12169
|
+
this.states = [
|
|
12170
|
+
{ label: this.labelNothing, value: QuantityInHistoricState.Nothing, checked: false },
|
|
12171
|
+
{ label: this.labelPartly, value: QuantityInHistoricState.Partly, checked: false },
|
|
12172
|
+
{ label: this.labelFully, value: QuantityInHistoricState.Fully, checked: false }
|
|
12173
|
+
];
|
|
12174
|
+
}
|
|
12175
|
+
}
|
|
12176
|
+
TransactionFilterHistoricStateComponent.decorators = [
|
|
12177
|
+
{ type: Component, args: [{
|
|
12178
|
+
selector: "co-transaction-filter-historic-state",
|
|
12179
|
+
template: `
|
|
12180
|
+
<co-filter-item
|
|
12181
|
+
[placeholder]="label | localize"
|
|
12182
|
+
[customContent]="true"
|
|
12183
|
+
[expanded]="expanded">
|
|
12184
|
+
<co-input-radio-button *ngFor="let state of states"
|
|
12185
|
+
[name]="groupName"
|
|
12186
|
+
[value]="state.value"
|
|
12187
|
+
[model]="state.checked"
|
|
12188
|
+
[label]="state.label | localize"
|
|
12189
|
+
(modelChange)="handleStateChange($event)"
|
|
12190
|
+
></co-input-radio-button>
|
|
12191
|
+
</co-filter-item>
|
|
12192
|
+
`,
|
|
12193
|
+
encapsulation: ViewEncapsulation.None
|
|
12194
|
+
},] }
|
|
12195
|
+
];
|
|
12196
|
+
TransactionFilterHistoricStateComponent.propDecorators = {
|
|
12197
|
+
label: [{ type: Input }],
|
|
12198
|
+
expanded: [{ type: Input }],
|
|
12199
|
+
filterClicked: [{ type: Output }],
|
|
12200
|
+
showClass: [{ type: HostBinding, args: ["class.co-transaction-filter-historic-state",] }]
|
|
12201
|
+
};
|
|
12202
|
+
|
|
12203
|
+
class TransactionFilterHistoricStateModule {
|
|
12204
|
+
}
|
|
12205
|
+
TransactionFilterHistoricStateModule.decorators = [
|
|
12206
|
+
{ type: NgModule, args: [{
|
|
12207
|
+
imports: [
|
|
12208
|
+
CommonModule,
|
|
12209
|
+
FilterItemModule,
|
|
12210
|
+
PipeModule,
|
|
12211
|
+
InputRadioButtonModule
|
|
12212
|
+
],
|
|
12213
|
+
declarations: [
|
|
12214
|
+
TransactionFilterHistoricStateComponent
|
|
12215
|
+
],
|
|
12216
|
+
exports: [
|
|
12217
|
+
TransactionFilterHistoricStateComponent
|
|
12218
|
+
]
|
|
12219
|
+
},] }
|
|
12220
|
+
];
|
|
12221
|
+
|
|
11736
12222
|
class TransactionFilterContentLogisticsModule {
|
|
11737
12223
|
}
|
|
11738
12224
|
TransactionFilterContentLogisticsModule.decorators = [
|
|
@@ -11745,7 +12231,9 @@ TransactionFilterContentLogisticsModule.decorators = [
|
|
|
11745
12231
|
PipeModule,
|
|
11746
12232
|
InputDatePickerModule,
|
|
11747
12233
|
ButtonModule,
|
|
11748
|
-
InputCheckboxModule
|
|
12234
|
+
InputCheckboxModule,
|
|
12235
|
+
InputRadioButtonModule,
|
|
12236
|
+
TransactionFilterHistoricStateModule
|
|
11749
12237
|
],
|
|
11750
12238
|
declarations: [
|
|
11751
12239
|
TransactionFilterContentLogisticsComponent
|
|
@@ -11771,6 +12259,13 @@ class TransactionFilterContentOrderComponent {
|
|
|
11771
12259
|
this.onHoldCodeFields = { text: "description", value: "onHoldCode" };
|
|
11772
12260
|
this.commissionCodeFields = { text: "description", value: "code" };
|
|
11773
12261
|
this.customerGroupFields = { text: "naam", value: "groepsnummer" };
|
|
12262
|
+
this.loadCustomers = (nameFilter) => __awaiter(this, void 0, void 0, function* () {
|
|
12263
|
+
const request = new RelationRequest();
|
|
12264
|
+
request.familyName = nameFilter;
|
|
12265
|
+
return this._transactionService.getRelationListObjects(request).then((relations) => {
|
|
12266
|
+
return new FilterViewmodel(relations, { text: 'familyName', value: 'familyName' }).filterItems;
|
|
12267
|
+
});
|
|
12268
|
+
});
|
|
11774
12269
|
}
|
|
11775
12270
|
showClass() {
|
|
11776
12271
|
return true;
|
|
@@ -11787,6 +12282,10 @@ class TransactionFilterContentOrderComponent {
|
|
|
11787
12282
|
onFilterButtonClick() {
|
|
11788
12283
|
this.searchService.searchTransactions();
|
|
11789
12284
|
}
|
|
12285
|
+
handleCollectionChangeCustomerName(collection) {
|
|
12286
|
+
const checkedItem = collection.find(c => c.checked);
|
|
12287
|
+
this.filterRequestService.handleCollectionChangeForSingleValue(checkedItem ? checkedItem.code + "" : "", 'relationName');
|
|
12288
|
+
}
|
|
11790
12289
|
_setRangeDates() {
|
|
11791
12290
|
this.transStartDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 0);
|
|
11792
12291
|
this.transEndDate = this.filterRequestService.getDateFromFilterRequestRange(this.searchRequest.rangeTransDate, 1);
|
|
@@ -11844,7 +12343,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11844
12343
|
<co-input-date-range
|
|
11845
12344
|
[startDate]="transStartDate"
|
|
11846
12345
|
[endDate]="transEndDate"
|
|
11847
|
-
(dateRangeChange)="
|
|
12346
|
+
(dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'rangeTransDate')"
|
|
11848
12347
|
[placeholder]="'SELECT_DATE' | localize">
|
|
11849
12348
|
</co-input-date-range>
|
|
11850
12349
|
</co-filter-item>
|
|
@@ -11857,7 +12356,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11857
12356
|
<co-input-date-range
|
|
11858
12357
|
[startDate]="deliveryStartDate"
|
|
11859
12358
|
[endDate]="deliveryEndDate"
|
|
11860
|
-
(dateRangeChange)="
|
|
12359
|
+
(dateRangeChange)="filterRequestService.handleDateRangeChange($event, 'deliveryDateRange')"
|
|
11861
12360
|
[placeholder]="'SELECT_DATE' | localize">
|
|
11862
12361
|
</co-input-date-range>
|
|
11863
12362
|
</co-filter-item>
|
|
@@ -11870,7 +12369,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11870
12369
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11871
12370
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11872
12371
|
[showLessLabel]="showLessLabel | localize"
|
|
11873
|
-
(collectionChange)="
|
|
12372
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeBranchId')"
|
|
11874
12373
|
>
|
|
11875
12374
|
</co-filter-item>
|
|
11876
12375
|
|
|
@@ -11882,7 +12381,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11882
12381
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11883
12382
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11884
12383
|
[showLessLabel]="showLessLabel | localize"
|
|
11885
|
-
(collectionChange)="
|
|
12384
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSalesPerson')"
|
|
11886
12385
|
>
|
|
11887
12386
|
</co-filter-item>
|
|
11888
12387
|
|
|
@@ -11903,7 +12402,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11903
12402
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11904
12403
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11905
12404
|
[showLessLabel]="showLessLabel | localize"
|
|
11906
|
-
(collectionChange)="
|
|
12405
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'tagRange')"
|
|
11907
12406
|
>
|
|
11908
12407
|
<co-input-text [(model)]="searchRequest.tagRange" [placeholder]="'TAGS' | localize"></co-input-text>
|
|
11909
12408
|
</co-filter-item>
|
|
@@ -11916,7 +12415,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11916
12415
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11917
12416
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11918
12417
|
[showLessLabel]="showLessLabel | localize"
|
|
11919
|
-
(collectionChange)="
|
|
12418
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForRange($event,'rangeOnHoldCodes')"
|
|
11920
12419
|
>
|
|
11921
12420
|
<co-input-text [(model)]="searchRequest.tagRange" [placeholder]="'TAGS' | localize"></co-input-text>
|
|
11922
12421
|
</co-filter-item>
|
|
@@ -11928,7 +12427,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11928
12427
|
[expanded]="true">
|
|
11929
12428
|
<co-input-checkbox
|
|
11930
12429
|
[model]="searchRequest.transactionDefinitive === 'J'"
|
|
11931
|
-
(modelChange)="
|
|
12430
|
+
(modelChange)="filterRequestService.handleCheckboxValueChangeForString($event, 'transactionDefinitive')"
|
|
11932
12431
|
[label]="'ORDER_DEFINITIVE' | localize"></co-input-checkbox>
|
|
11933
12432
|
</co-filter-item>
|
|
11934
12433
|
|
|
@@ -11940,7 +12439,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11940
12439
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11941
12440
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11942
12441
|
[showLessLabel]="showLessLabel | localize"
|
|
11943
|
-
(collectionChange)="
|
|
12442
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForArray($event, 'commissionCodes')"
|
|
11944
12443
|
>
|
|
11945
12444
|
</co-filter-item>
|
|
11946
12445
|
|
|
@@ -11956,13 +12455,15 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11956
12455
|
></co-input-checkbox>
|
|
11957
12456
|
</co-filter-item>
|
|
11958
12457
|
|
|
11959
|
-
<!--Klantnaam
|
|
12458
|
+
<!--Klantnaam-->
|
|
11960
12459
|
<co-filter-item
|
|
11961
12460
|
[placeholder]="'CUSTOMER_NAME' | localize"
|
|
11962
|
-
[
|
|
11963
|
-
[
|
|
11964
|
-
|
|
11965
|
-
|
|
12461
|
+
[expanded]="true"
|
|
12462
|
+
[singleSelect]="true"
|
|
12463
|
+
[minSearchCharsToLoadCollection]="3"
|
|
12464
|
+
[collectionLoadFn]="loadCustomers"
|
|
12465
|
+
(collectionChange)="handleCollectionChangeCustomerName($event)"
|
|
12466
|
+
>
|
|
11966
12467
|
</co-filter-item>
|
|
11967
12468
|
|
|
11968
12469
|
<!--Klantgroep-->
|
|
@@ -11973,7 +12474,7 @@ TransactionFilterContentOrderComponent.decorators = [
|
|
|
11973
12474
|
[searchPlaceholder]="searchPlaceholder | localize"
|
|
11974
12475
|
[showMoreLabel]="showMoreLabel | localize"
|
|
11975
12476
|
[showLessLabel]="showLessLabel | localize"
|
|
11976
|
-
(collectionChange)="
|
|
12477
|
+
(collectionChange)="filterRequestService.handleCollectionChangeForSingleValue($event, 'customerGroupId')">
|
|
11977
12478
|
</co-filter-item>
|
|
11978
12479
|
<div class="filter-button-container">
|
|
11979
12480
|
<co-button class="clickable" [label]="'Filter'" (click)="onFilterButtonClick()"></co-button>
|
|
@@ -12021,6 +12522,8 @@ class TransactionFilterComponent {
|
|
|
12021
12522
|
this.iconCacheService = iconCacheService;
|
|
12022
12523
|
this.searchService = searchService;
|
|
12023
12524
|
this.icon = Icon;
|
|
12525
|
+
this.searchViewModes = SearchViewMode;
|
|
12526
|
+
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
12024
12527
|
this.closeButtonClick = new EventEmitter();
|
|
12025
12528
|
this.resetFilterClick = new EventEmitter();
|
|
12026
12529
|
this.filterCategories = [
|
|
@@ -12094,6 +12597,7 @@ TransactionFilterComponent.propDecorators = {
|
|
|
12094
12597
|
orderFilter: [{ type: ViewChild, args: ['orderFilter', { read: ElementRef },] }],
|
|
12095
12598
|
logisticsFilter: [{ type: ViewChild, args: ['logisticsFilter', { read: ElementRef },] }],
|
|
12096
12599
|
articleFilter: [{ type: ViewChild, args: ['articleFilter', { read: ElementRef },] }],
|
|
12600
|
+
activeSearchViewMode: [{ type: Input }],
|
|
12097
12601
|
closeButtonClick: [{ type: Output }],
|
|
12098
12602
|
resetFilterClick: [{ type: Output }],
|
|
12099
12603
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-filter",] }]
|
|
@@ -12302,5 +12806,5 @@ TransactionLineGridModule.decorators = [
|
|
|
12302
12806
|
* Generated bundle index. Do not edit.
|
|
12303
12807
|
*/
|
|
12304
12808
|
|
|
12305
|
-
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, 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,
|
|
12809
|
+
export { CheckoutComponent, CheckoutModule, ShoppingCartComponent, ShoppingCartModule, ShoppingCartPreviewComponent, ShoppingCartPreviewModule, TransactionComponent, 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, RelationAddressSelectModule as ɵba, RelationAddressTileModule as ɵbb, TileModule as ɵbc, TileComponent as ɵbd, RelationAddressTileComponent as ɵbe, RelationAddressSelectComponent as ɵbf, BusinessObjectFactory as ɵbg, StepperModule as ɵbh, StepperComponent as ɵbi, StepperStepComponent as ɵbj, TransactionArticleTextModule as ɵbk, TransactionArticleTextComponent as ɵbl, TransactionArticleTextOverviewModule as ɵbm, TransactionArticleTextOverviewComponent as ɵbn, TransactionLineActionButtonsModule as ɵbo, TransactionLineActionButtonsComponent as ɵbp, TransactionImageService as ɵbq, AvatarModule as ɵbr, AvatarComponent as ɵbs, SharedService as ɵbt, SharedConnectorService as ɵbu, DeliveryTypeTileModule as ɵbv, DeliveryTypeTileComponent as ɵbw, PaymentModule as ɵbx, PaymentTileModule as ɵby, PaymentTileComponent as ɵbz, OptionsService as ɵc, PaymentComponent as ɵca, PaymentService as ɵcb, CheckoutOverviewRelationEditComponent as ɵcc, CheckoutOverviewDeliveryEditComponent as ɵcd, CheckoutOverviewDeliveryAddressComponent as ɵce, CheckOutRelationSuggestionsListComponent as ɵcf, CheckOutRelationSuggestionsListItemComponent as ɵcg, CheckoutLoginComponent as ɵch, TransactionHeaderModule$1 as ɵci, TransactionHeaderBlockModule as ɵcj, TransactionHeaderBlockComponent as ɵck, TransactionBaseComponent as ɵcl, TransactionHeaderPaymentModule as ɵcm, TransactionHeaderPaymentComponent as ɵcn, TransactionHeaderComponent$1 as ɵco, TransactionLinesGridModule as ɵcp, TransactionBaseGridModule as ɵcq, TransactionLineSidePanelModule as ɵcr, TransactionLineSidePanelDefaultModule as ɵcs, TransactionLinePriceModule as ɵct, TransactionLinePriceComponent as ɵcu, TransactionLineFieldsBaseComponent as ɵcv, TransactionLinePriceListModule as ɵcw, TransactionLinePriceListComponent as ɵcx, TransactionLineVatModule as ɵcy, TransactionLineVatComponent as ɵcz, DictionaryService as ɵd, TransactionLineQuantityModule as ɵda, TransactionLineQuantityComponent as ɵdb, TransactionLineLineDiscountModule as ɵdc, TransactionLineLineDiscountComponent as ɵdd, TransactionLineDeliveryMethodModule as ɵde, TransactionLineDeliveryMethodComponent as ɵdf, TransactionLineDeliveryDateModule as ɵdg, TransactionLineDeliveryDateComponent as ɵdh, TransactionLineReferenceModule as ɵdi, TransactionLineReferenceComponent as ɵdj, TransactionLineCommissionCodeModule as ɵdk, TransactionLineCommissionCodeComponent as ɵdl, TransactionLineWarehouseModule as ɵdm, TransactionLineWarehouseComponent as ɵdn, TransactionLineDiscountAmountModule as ɵdo, TransactionLineDiscountAmountComponent as ɵdp, TransactionLineQuantumDiscountModule as ɵdq, TransactionLineQuantumDiscountComponent as ɵdr, TransactionLineSpecialDiscountModule as ɵds, TransactionLineSpecialDiscountComponent as ɵdt, TransactionLineSidePanelDefaultComponent as ɵdu, TransactionReceivingGoodsHistoryModule as ɵdv, TransactionHistoryGridModule as ɵdw, TransactionHistoryGridStatusModule as ɵdx, TransactionHistoryGridStatusComponent as ɵdy, TransactionHistoryGridComponent as ɵdz, TransactionConnectorService as ɵe, TransactionReceivingGoodsHistoryComponent as ɵea, TransactionReceivingGoodsDetailsModule as ɵeb, TransactionReceivingGoodsDetailsComponent as ɵec, ArticleService as ɵed, TransactionButtonBarModule as ɵee, TransactionButtonBarComponent as ɵef, TransactionMappingService as ɵeg, TransactionButtonBarButtonComponent as ɵeh, TransactionConfirmationHistoryModule as ɵei, TransactionConfirmationHistoryComponent as ɵej, TransactionLineSidePanelPurchaseModule as ɵek, TransactionLineSidePanelPurchaseComponent as ɵel, TransactionEventService as ɵem, TransactionLineSidePanelComponent as ɵen, TransactionBaseGridComponent as ɵeo, TransactionGridBaseComponent as ɵep, TransactionLinesGridComponent as ɵeq, DiscountModule as ɵer, DiscountComponent as ɵes, TransactionQuickAccessOverviewModule as ɵet, TransactionQuickAccessOverviewComponent as ɵeu, TransactionOrderConfirmationGridModule as ɵev, TransactionOrderConfirmationGridComponent as ɵew, TransactionReceivedGoodsGridModule as ɵex, TransactionReceivedGoodsGridComponent as ɵey, ViewModeButtonsModule as ɵez, CollectionCacheService as ɵf, ViewModeButtonsComponent as ɵfa, TransactionGridModule as ɵfb, TransactionGridComponent as ɵfc, TransactionSearchService as ɵfd, TransactionSearchResultModule as ɵfe, TransactionSearchSalesOrderTileModule as ɵff, TransactionSearchSalesOrderTileComponent as ɵfg, TransactionSearchSalesOrderGridModule as ɵfh, TransactionSearchSalesOrderGridComponent as ɵfi, TransactionSearchHeaderModule as ɵfj, TransactionSearchHeaderComponent as ɵfk, TransactionSearchResultComponent as ɵfl, TransactionFilterModule as ɵfm, TransactionFilterCategoriesModule as ɵfn, TransactionFilterCategoriesComponent as ɵfo, TransactionFilterContentOrderModule as ɵfp, TransactionFilterContentOrderComponent as ɵfq, FilterRequestService as ɵfr, TransactionFilterContentLogisticsModule as ɵfs, TransactionFilterHistoricStateModule as ɵft, TransactionFilterHistoricStateComponent as ɵfu, TransactionFilterContentLogisticsComponent as ɵfv, TransactionFilterContentArticleModule as ɵfw, TransactionFilterContentArticleComponent as ɵfx, TransactionFilterComponent as ɵfy, ArticleConnectorService as ɵg, CoreModule as ɵh, 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, RelationAddressModule as ɵy, RelationAddressComponent as ɵz };
|
|
12306
12810
|
//# sourceMappingURL=colijnit-transaction.js.map
|