@colijnit/transaction 300.1.38 → 301.1.1
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/fesm2022/colijnit-transaction.mjs +132 -104
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +18 -11
- package/package.json +11 -11
|
@@ -364,8 +364,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
364
364
|
class Version {
|
|
365
365
|
name = "@colijnit/transaction";
|
|
366
366
|
description = "Colijn IT transaction package";
|
|
367
|
-
symVer = "
|
|
368
|
-
publishDate = "
|
|
367
|
+
symVer = "301.1.1";
|
|
368
|
+
publishDate = "14-10-2026, 17:00:22";
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -2796,8 +2796,8 @@ class TransactionConnectorAdapterService {
|
|
|
2796
2796
|
return null;
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
async getTransactionById(transactionId) {
|
|
2800
|
-
const result = await this.connector.getTransactionById(transactionId);
|
|
2799
|
+
async getTransactionById(transactionId, showLoader) {
|
|
2800
|
+
const result = await this.connector.getTransactionById(transactionId, showLoader);
|
|
2801
2801
|
if (result.validationResult && result.validationResult.success) {
|
|
2802
2802
|
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject);
|
|
2803
2803
|
}
|
|
@@ -2901,6 +2901,26 @@ class TransactionConnectorAdapterService {
|
|
|
2901
2901
|
return [];
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
|
+
async getPriceListArchetypeForUser(transactionKind) {
|
|
2905
|
+
const result = await this.connector.getPriceListArchetypeForUser(transactionKind);
|
|
2906
|
+
if (result.validationResult && result.validationResult.success) {
|
|
2907
|
+
return result.resultObject;
|
|
2908
|
+
}
|
|
2909
|
+
else {
|
|
2910
|
+
this._handleExceptionFromResponse(result);
|
|
2911
|
+
return null;
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
async getPriceListsByArchetype(type) {
|
|
2915
|
+
const result = await this.connector.getPriceListsByArchetype(type);
|
|
2916
|
+
if (result.validationResult && result.validationResult.success && result.resultObject && result.resultObject.priceLists) {
|
|
2917
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceList, result.resultObject.priceLists);
|
|
2918
|
+
}
|
|
2919
|
+
else {
|
|
2920
|
+
this._handleExceptionFromResponse(result);
|
|
2921
|
+
return [];
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2904
2924
|
async getVatList(onlyValid = false) {
|
|
2905
2925
|
const result = await this.connector.getVatList(onlyValid);
|
|
2906
2926
|
if (result.validationResult && result.validationResult.success) {
|
|
@@ -7081,8 +7101,8 @@ class TransactionConnectorAdapterService {
|
|
|
7081
7101
|
return null;
|
|
7082
7102
|
}
|
|
7083
7103
|
}
|
|
7084
|
-
async getPlanOrder(transId) {
|
|
7085
|
-
const response = await this.connector.getPlanOrder(transId);
|
|
7104
|
+
async getPlanOrder(transId, showLoader) {
|
|
7105
|
+
const response = await this.connector.getPlanOrder(transId, showLoader);
|
|
7086
7106
|
if (response && response.validationResult && response.validationResult.success) {
|
|
7087
7107
|
return this._boFactory.makeWithRawBackendData(PlanOrder, response.resultObject);
|
|
7088
7108
|
}
|
|
@@ -8468,8 +8488,8 @@ class TransactionConnectorService {
|
|
|
8468
8488
|
getTransactionHeaderByNrAndKind(kind, transactionNo) {
|
|
8469
8489
|
return this._adapterService.functionCall(this._adapterService.getTransactionHeaderByNrAndKind, [kind, transactionNo]);
|
|
8470
8490
|
}
|
|
8471
|
-
getTransactionById(transactionId) {
|
|
8472
|
-
return this._adapterService.functionCall(this._adapterService.getTransactionById, [transactionId]);
|
|
8491
|
+
getTransactionById(transactionId, showLoader) {
|
|
8492
|
+
return this._adapterService.functionCall(this._adapterService.getTransactionById, [transactionId, showLoader]);
|
|
8473
8493
|
}
|
|
8474
8494
|
async getWebSessionSalesOrder(transactionUuid) {
|
|
8475
8495
|
return this._adapterService.functionCall(this._adapterService.getWebSessionSalesOrder, [transactionUuid]);
|
|
@@ -8514,6 +8534,14 @@ class TransactionConnectorService {
|
|
|
8514
8534
|
return this._adapterService.functionCall(this._adapterService.getPriceLists, [code]);
|
|
8515
8535
|
}).getValue(code);
|
|
8516
8536
|
}
|
|
8537
|
+
async getPriceListArchetypeForUser(transactionKind) {
|
|
8538
|
+
return this._adapterService.functionCall(this._adapterService.getPriceListArchetypeForUser, [transactionKind]);
|
|
8539
|
+
}
|
|
8540
|
+
async getPriceListsByArchetype(type) {
|
|
8541
|
+
return this._selectMultipleParameterizedCacheService.requestCache(PriceList, (type) => {
|
|
8542
|
+
return this._adapterService.functionCall(this._adapterService.getPriceListsByArchetype, [type]);
|
|
8543
|
+
}).getValue(type);
|
|
8544
|
+
}
|
|
8517
8545
|
async getVatList(onlyValid = false) {
|
|
8518
8546
|
return this._selectMultipleParameterizedCacheService.requestCache(Vat, (onlyValid = false) => {
|
|
8519
8547
|
return this._adapterService.functionCall(this._adapterService.getVatList, [onlyValid]);
|
|
@@ -9533,8 +9561,8 @@ class TransactionConnectorService {
|
|
|
9533
9561
|
async getDefaultEmailAddressListForPurchaseOrder(uuid) {
|
|
9534
9562
|
return this._adapterService.functionCall(this._adapterService.getDefaultEmailAddressListForPurchaseOrder, [uuid]);
|
|
9535
9563
|
}
|
|
9536
|
-
async getPlanOrder(transId) {
|
|
9537
|
-
return this._adapterService.functionCall(this._adapterService.getPlanOrder, [transId]);
|
|
9564
|
+
async getPlanOrder(transId, showLoader) {
|
|
9565
|
+
return this._adapterService.functionCall(this._adapterService.getPlanOrder, [transId, showLoader]);
|
|
9538
9566
|
}
|
|
9539
9567
|
async convertCashRegisterOrderToSalesOrder(uuid) {
|
|
9540
9568
|
return this._adapterService.functionCall(this._adapterService.convertCashRegisterOrderToSalesOrder, [uuid]);
|
|
@@ -10469,9 +10497,9 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10469
10497
|
searchTransactions(request) {
|
|
10470
10498
|
return this.connector.searchTransactions(request);
|
|
10471
10499
|
}
|
|
10472
|
-
async getTransactionById(transactionId) {
|
|
10500
|
+
async getTransactionById(transactionId, showLoader) {
|
|
10473
10501
|
this.transactionEventService.transactionLineAdded.next(undefined); // reset line added
|
|
10474
|
-
const transactionInfoResponse = await this.connector.getTransactionById(transactionId);
|
|
10502
|
+
const transactionInfoResponse = await this.connector.getTransactionById(transactionId, showLoader);
|
|
10475
10503
|
if (transactionInfoResponse && transactionInfoResponse.isSuccess) {
|
|
10476
10504
|
this.transactionEventService.transactionLoaded.next(transactionInfoResponse);
|
|
10477
10505
|
await this.rememberCurrentTransaction(transactionInfoResponse);
|
|
@@ -12493,6 +12521,12 @@ class TransactionService extends PendingReasonService {
|
|
|
12493
12521
|
getPriceLists() {
|
|
12494
12522
|
return this.connector.getPriceLists();
|
|
12495
12523
|
}
|
|
12524
|
+
getPriceListArchetypeForUser(transactionKind) {
|
|
12525
|
+
return this.connector.getPriceListArchetypeForUser(transactionKind);
|
|
12526
|
+
}
|
|
12527
|
+
getPriceListsByArchetype(type) {
|
|
12528
|
+
return this.connector.getPriceListsByArchetype(type);
|
|
12529
|
+
}
|
|
12496
12530
|
getVatLists() {
|
|
12497
12531
|
return this.connector.getVatList();
|
|
12498
12532
|
}
|
|
@@ -13329,8 +13363,8 @@ class TransactionService extends PendingReasonService {
|
|
|
13329
13363
|
async getOrderLinesPlanned(request) {
|
|
13330
13364
|
return this.connector.getOrderLinesPlanned(request);
|
|
13331
13365
|
}
|
|
13332
|
-
async getPlanOrder(transId) {
|
|
13333
|
-
return await this.connector.getPlanOrder(transId);
|
|
13366
|
+
async getPlanOrder(transId, showLoader) {
|
|
13367
|
+
return await this.connector.getPlanOrder(transId, showLoader);
|
|
13334
13368
|
}
|
|
13335
13369
|
async getDistricts() {
|
|
13336
13370
|
return await this.connector.getDistricts();
|
|
@@ -14168,29 +14202,6 @@ class TransactionHeaderService {
|
|
|
14168
14202
|
if (!this.transaction) {
|
|
14169
14203
|
return false;
|
|
14170
14204
|
}
|
|
14171
|
-
//If the TRA_REL_EDIT_ALLOWED param is false we may not change the relation.
|
|
14172
|
-
// Unless we are a POS order and no other rules apply as POS orders are initially generated without a customer.
|
|
14173
|
-
/* if (!this._transactionService.canChangeRelationParam && this.transaction.transactionInfo.transactionKind !== TransactionKind.CashDesk) {
|
|
14174
|
-
return false;
|
|
14175
|
-
}*/
|
|
14176
|
-
//If our transaction is an internal delivery we may not change the relation.
|
|
14177
|
-
/*if (this.transaction.transactionInfo.transactionKind === TransactionKind.InternalDelivery) {
|
|
14178
|
-
return false;
|
|
14179
|
-
}*/
|
|
14180
|
-
//If our transaction is an SLA service order we may not change the relation.
|
|
14181
|
-
/*if (this.transaction.transactionInfo.transactionKind === TransactionKind.ServiceOrder
|
|
14182
|
-
&& this.transaction.transactionServiceInfo && this.transaction.transactionServiceInfo.slaId) {
|
|
14183
|
-
|
|
14184
|
-
return false;
|
|
14185
|
-
}*/
|
|
14186
|
-
//If our transaction has a deposit amount we may not change the relation
|
|
14187
|
-
/*if (this.transaction.transactionInfo.depositAmount !== 0 && this.transactionInfo.depositAmount !== undefined) {
|
|
14188
|
-
return false;
|
|
14189
|
-
}*/
|
|
14190
|
-
//If our transaction has a payment made on it. We may not change the relation.
|
|
14191
|
-
/* if (this._transactionPaymentConnectorService.amountPaid !== 0 && this._transactionPaymentConnectorService.amountPaid !== undefined) {
|
|
14192
|
-
return false;
|
|
14193
|
-
}*/
|
|
14194
14205
|
//If our transaction has any invoicing done on it. We may not change the relation.
|
|
14195
14206
|
if (this.partiallyOrFullyInvoiced) {
|
|
14196
14207
|
return false;
|
|
@@ -14199,15 +14210,6 @@ class TransactionHeaderService {
|
|
|
14199
14210
|
if (this.partiallyOrFullyDelivered) {
|
|
14200
14211
|
return false;
|
|
14201
14212
|
}
|
|
14202
|
-
//If any part of the order has a purchase order associated. We may not change the relation.
|
|
14203
|
-
if (this.partiallyOrFullyOrdered) {
|
|
14204
|
-
return false;
|
|
14205
|
-
}
|
|
14206
|
-
//If this is a purchase order and ant invoice checking or receiving has been done. We may not change the relation.
|
|
14207
|
-
/* if (this.transaction.transactionInfo.transactionKind === TransactionKind.PurchaseOrder
|
|
14208
|
-
&& (this.partiallyOrFullyInvoiceControl || this.partiallyOrFullyReceivedNotProcessed || this.partiallyOrFullyReceived)) {
|
|
14209
|
-
return false;
|
|
14210
|
-
}*/
|
|
14211
14213
|
return true;
|
|
14212
14214
|
}
|
|
14213
14215
|
async getTransactionMargeInfoList() {
|
|
@@ -20630,7 +20632,7 @@ class TransactionSendDocumentsComponent extends TransactionHeaderBaseComponent {
|
|
|
20630
20632
|
</div>
|
|
20631
20633
|
}
|
|
20632
20634
|
@if (report.reportUser.length > 0) {
|
|
20633
|
-
<span [textContent]="('
|
|
20635
|
+
<span [textContent]="('SENT_BY' | localize) + ' ' + report.reportUser"></span>
|
|
20634
20636
|
}
|
|
20635
20637
|
</div>
|
|
20636
20638
|
</div>
|
|
@@ -20677,7 +20679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
20677
20679
|
</div>
|
|
20678
20680
|
}
|
|
20679
20681
|
@if (report.reportUser.length > 0) {
|
|
20680
|
-
<span [textContent]="('
|
|
20682
|
+
<span [textContent]="('SENT_BY' | localize) + ' ' + report.reportUser"></span>
|
|
20681
20683
|
}
|
|
20682
20684
|
</div>
|
|
20683
20685
|
</div>
|
|
@@ -27705,7 +27707,7 @@ class DeliveryPlanningMainComponent {
|
|
|
27705
27707
|
await this._transactionConn.restoreDeliverySettings([this._deliveryPlanningService.deletingOrder]);
|
|
27706
27708
|
}
|
|
27707
27709
|
if (this._transaction.currentTransaction && this._transaction.currentTransaction.transactionInfo && this._deliveryPlanningService.currentPlanningMode === DeliveryPlanningModes.Transaction) {
|
|
27708
|
-
await this._transaction.getTransactionById(this._transaction.currentTransaction.transactionInfo.id);
|
|
27710
|
+
await this._transaction.getTransactionById(this._transaction.currentTransaction.transactionInfo.id, false);
|
|
27709
27711
|
this._transaction.currentPlanOrder = await this._transaction.getPlanOrder(this._transaction.currentTransaction.transactionInfo.id);
|
|
27710
27712
|
}
|
|
27711
27713
|
await this.updateNewValues();
|
|
@@ -29916,14 +29918,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
29916
29918
|
}] } });
|
|
29917
29919
|
|
|
29918
29920
|
class TransactionHeaderPriceListComponent extends TransactionFilterPopupHeaderBaseComponent {
|
|
29919
|
-
codeField = '
|
|
29921
|
+
codeField = 'listCode';
|
|
29920
29922
|
checkField = 'priceListCode';
|
|
29921
|
-
propsForLabel = [{ label: '
|
|
29922
|
-
ngOnInit() {
|
|
29923
|
-
|
|
29924
|
-
|
|
29925
|
-
this.
|
|
29926
|
-
}
|
|
29923
|
+
propsForLabel = [{ label: 'listCode' }, { label: 'description' }];
|
|
29924
|
+
async ngOnInit() {
|
|
29925
|
+
let priceListType;
|
|
29926
|
+
if (this.transactionService.transactionKind) {
|
|
29927
|
+
priceListType = await this.transactionService.getPriceListArchetypeForUser(this.transactionService.transactionKind);
|
|
29928
|
+
}
|
|
29929
|
+
if (priceListType) {
|
|
29930
|
+
this.transactionService.getPriceListsByArchetype(priceListType).then((priceListCodes) => {
|
|
29931
|
+
this.collection = priceListCodes;
|
|
29932
|
+
this.detectChanges();
|
|
29933
|
+
});
|
|
29934
|
+
}
|
|
29927
29935
|
}
|
|
29928
29936
|
async commit(code) {
|
|
29929
29937
|
if (this.transactionInfo.priceListCode !== code) {
|
|
@@ -34935,6 +34943,7 @@ class TransactionHeaderDepositAmountComponent extends TransactionInputHeaderFiel
|
|
|
34935
34943
|
[placeholder]="showLabel ? ('DOWNPAYMENT_AMOUNT' | localize) : ''"
|
|
34936
34944
|
[showSaveCancel]="!transactionHeaderService.readonly"
|
|
34937
34945
|
[hidden]="hidden"
|
|
34946
|
+
[type]="'number'"
|
|
34938
34947
|
[readonly]="readonly || transactionHeaderService.readonly || forceReadonly"
|
|
34939
34948
|
[model]="transactionInfo.depositAmount" [formatPipe]="currencyPipe"
|
|
34940
34949
|
(blur)="editMode = false">
|
|
@@ -34960,6 +34969,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
34960
34969
|
[placeholder]="showLabel ? ('DOWNPAYMENT_AMOUNT' | localize) : ''"
|
|
34961
34970
|
[showSaveCancel]="!transactionHeaderService.readonly"
|
|
34962
34971
|
[hidden]="hidden"
|
|
34972
|
+
[type]="'number'"
|
|
34963
34973
|
[readonly]="readonly || transactionHeaderService.readonly || forceReadonly"
|
|
34964
34974
|
[model]="transactionInfo.depositAmount" [formatPipe]="currencyPipe"
|
|
34965
34975
|
(blur)="editMode = false">
|
|
@@ -39772,16 +39782,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
39772
39782
|
}] });
|
|
39773
39783
|
|
|
39774
39784
|
class TransactionLinePriceListComponent extends TransactionFilterPopupLineBaseComponent {
|
|
39775
|
-
codeField = '
|
|
39785
|
+
codeField = 'listCode';
|
|
39776
39786
|
checkField = 'priceListCode';
|
|
39777
|
-
propsForLabel = [{ label: '
|
|
39778
|
-
ngOnInit() {
|
|
39787
|
+
propsForLabel = [{ label: 'listCode' }, { label: 'description' }];
|
|
39788
|
+
async ngOnInit() {
|
|
39779
39789
|
super.ngOnInit();
|
|
39780
39790
|
this.viewModels.length = 0;
|
|
39781
|
-
|
|
39782
|
-
|
|
39783
|
-
this.
|
|
39784
|
-
}
|
|
39791
|
+
let priceListType;
|
|
39792
|
+
if (this.transactionService.transactionKind) {
|
|
39793
|
+
priceListType = await this.transactionService.getPriceListArchetypeForUser(this.transactionService.transactionKind);
|
|
39794
|
+
}
|
|
39795
|
+
if (priceListType) {
|
|
39796
|
+
this.transactionService.getPriceListsByArchetype(priceListType).then((list) => {
|
|
39797
|
+
this.collection = list.slice();
|
|
39798
|
+
this.detectChanges();
|
|
39799
|
+
});
|
|
39800
|
+
}
|
|
39785
39801
|
}
|
|
39786
39802
|
async commit(priceList) {
|
|
39787
39803
|
if (this.transactionLine.priceListCode !== priceList) {
|
|
@@ -47082,7 +47098,7 @@ class DialogCatalogComponent {
|
|
|
47082
47098
|
</co-stock>
|
|
47083
47099
|
</co-dialog>
|
|
47084
47100
|
}
|
|
47085
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i3$1.CatalogSearchComponent, selector: "co-catalog-search", inputs: ["settings", "title", "subTitle", "searchPlaceholder", "createFrozenArticle", "showNavigation", "showLandingPage", "tempFilter", "popupFilter", "showViewModes", "embedded", "externalSource", "isReturn", "currentTransactionBranchId", "searchPresetTemplate", "generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"], outputs: ["settingsChange", "onLookAtArticleButtonClick", "onArButtonClick", "onAddArticleButtonClick", "onArticleClick", "onStockDetailsClick", "onExternalSourceClick"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["userWarehouseNr", "article", "branchNr", "articleWarehouse", "allWarehouses"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handlePurchaseOrderClick", "handleSalesOrderClick"] }, { kind: "component", type: i3$1.CatalogExternalSourceComponent, selector: "co-catalog-external-source", inputs: ["catalogDefinition", "user", "externalCatalogStartupInfo", "title", "subTitle", "searchPlaceholder", "tempFilter", "showNavigation", "options", "embedded", "languageCode", "name"], outputs: ["articleClick", "addArticleClick", "lookAtArticleClick", "iFrameFeedbackReceived"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i6.IoneProductComponent, selector: "app-ione-product", inputs: ["sku", "isReturn", "enableRenderCarousel", "settings", "handleAddArticleInternally", "handleAddToCartInternally", "externalButtonTemplate", "customExtraTabLabel"], outputs: ["onAddToCart", "forceRenderImage", "getRenderForRenderCarousel", "onAlternativeClick", "onArticleInfoReceived", "onArticleReceived", "onSelectionsReceived", "onAddToQuote", "openStockEvent", "onAnswersAvailable"] }, { kind: "component", type: i6.ProductExternalSourceComponent, selector: "co-product-external-source", inputs: ["sku", "catalogDefinition", "ownSettings", "externalSource", "externalCatalogStartupInfo", "options"], outputs: ["addToCart", "addToQuote", "alternativeClick", "configuratorFinished"] }, { kind: "component", type: i2.SearchPresetOverviewComponent, selector: "co-search-preset-overview-component", inputs: ["presetModule", "presetElement"], outputs: ["searchRequestChange", "searchRequested", "resetFilterClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: AppendPipe, name: "append" }], animations: [
|
|
47101
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i3$1.CatalogSearchComponent, selector: "co-catalog-search", inputs: ["settings", "title", "subTitle", "searchPlaceholder", "createFrozenArticle", "showNavigation", "showLandingPage", "extendOutputWithPlacement", "tempFilter", "popupFilter", "showViewModes", "embedded", "externalSource", "isReturn", "currentTransactionBranchId", "searchPresetTemplate", "generalFilterOrders", "purchaseFilterOrders", "logisticsFilterOrders"], outputs: ["settingsChange", "onLookAtArticleButtonClick", "onArButtonClick", "onAddArticleButtonClick", "onArticleClick", "onArticleClickJSON", "onStockDetailsClick", "onExternalSourceClick"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["userWarehouseNr", "article", "branchNr", "articleWarehouse", "allWarehouses", "articleExternalStockInformation"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handlePurchaseOrderClick", "handleSalesOrderClick"] }, { kind: "component", type: i3$1.CatalogExternalSourceComponent, selector: "co-catalog-external-source", inputs: ["catalogDefinition", "user", "externalCatalogStartupInfo", "title", "subTitle", "searchPlaceholder", "tempFilter", "showNavigation", "options", "embedded", "languageCode", "name"], outputs: ["articleClick", "addArticleClick", "lookAtArticleClick", "iFrameFeedbackReceived"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i6.IoneProductComponent, selector: "app-ione-product", inputs: ["sku", "isReturn", "enableRenderCarousel", "settings", "handleAddArticleInternally", "handleAddToCartInternally", "externalButtonTemplate", "customExtraTabLabel"], outputs: ["onAddToCart", "forceRenderImage", "getRenderForRenderCarousel", "onAlternativeClick", "onArticleInfoReceived", "onArticleReceived", "onSelectionsReceived", "onAddToQuote", "openStockEvent", "onAnswersAvailable"] }, { kind: "component", type: i6.ProductExternalSourceComponent, selector: "co-product-external-source", inputs: ["sku", "catalogDefinition", "ownSettings", "externalSource", "externalCatalogStartupInfo", "options"], outputs: ["addToCart", "addToQuote", "alternativeClick", "configuratorFinished"] }, { kind: "component", type: i2.SearchPresetOverviewComponent, selector: "co-search-preset-overview-component", inputs: ["presetModule", "presetElement"], outputs: ["searchRequestChange", "searchRequested", "resetFilterClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: AppendPipe, name: "append" }], animations: [
|
|
47086
47102
|
trigger('showHideProduct', [
|
|
47087
47103
|
state('true', style({ transform: 'translateX(-50%)' })),
|
|
47088
47104
|
state('false', style({ transform: 'translateX(0)' })),
|
|
@@ -54099,8 +54115,12 @@ class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseCo
|
|
|
54099
54115
|
this._loadLinePricelist();
|
|
54100
54116
|
}
|
|
54101
54117
|
async _loadLinePricelist() {
|
|
54102
|
-
|
|
54103
|
-
|
|
54118
|
+
let priceListType;
|
|
54119
|
+
if (this.transactionService.transactionKind) {
|
|
54120
|
+
priceListType = await this.transactionService.getPriceListArchetypeForUser(this.transactionService.transactionKind);
|
|
54121
|
+
}
|
|
54122
|
+
if (this.transactionLine && this.transactionLine.isArticle && priceListType) {
|
|
54123
|
+
this.transactionService.getPriceListsByArchetype(priceListType).then((lists) => {
|
|
54104
54124
|
const priceList = lists.find(l => l.code === this.transactionLine.priceListCode);
|
|
54105
54125
|
this.transactionLine.priceListDescription = priceList ? priceList.description : '';
|
|
54106
54126
|
});
|
|
@@ -54706,23 +54726,25 @@ class TransactionLineDirectSellComponent extends TransactionLineBaseComponent {
|
|
|
54706
54726
|
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="'DELIVERY_DATE_CONFIRMED2' | localize"></div>
|
|
54707
54727
|
</div>
|
|
54708
54728
|
@for (row of availableStockCollection.supplierStockForecasts; track row; let i = $index) {
|
|
54709
|
-
|
|
54710
|
-
|
|
54711
|
-
|
|
54712
|
-
|
|
54713
|
-
<div class="checkbox-
|
|
54714
|
-
<
|
|
54715
|
-
|
|
54716
|
-
|
|
54717
|
-
|
|
54718
|
-
|
|
54729
|
+
@if(row.amountAvailable && row.amountAvailable > 0) {
|
|
54730
|
+
<div class="forecast-row stock-list-item"
|
|
54731
|
+
[class.checked]="checkbox.model"
|
|
54732
|
+
(click)="handleChecked(i, row, $event)">
|
|
54733
|
+
<div class="forecast-cell checkbox-cell">
|
|
54734
|
+
<div class="checkbox-wrapper">
|
|
54735
|
+
<co-input-checkbox
|
|
54736
|
+
#checkbox
|
|
54737
|
+
[model]="checkbox.model"
|
|
54738
|
+
(modelChange)="handleChecked(i, row)">
|
|
54739
|
+
</co-input-checkbox>
|
|
54740
|
+
</div>
|
|
54719
54741
|
</div>
|
|
54742
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.purchaseOrderNumber"></div>
|
|
54743
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.amountAvailable"></div>
|
|
54744
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
54745
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.confirmedDeliveryDate | date:'dd MMM yyyy'"></div>
|
|
54720
54746
|
</div>
|
|
54721
|
-
|
|
54722
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.amount"></div>
|
|
54723
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
54724
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.confirmedDeliveryDate | date:'dd MMM yyyy'"></div>
|
|
54725
|
-
</div>
|
|
54747
|
+
}
|
|
54726
54748
|
}
|
|
54727
54749
|
</div>
|
|
54728
54750
|
}
|
|
@@ -54770,23 +54792,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
54770
54792
|
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="'DELIVERY_DATE_CONFIRMED2' | localize"></div>
|
|
54771
54793
|
</div>
|
|
54772
54794
|
@for (row of availableStockCollection.supplierStockForecasts; track row; let i = $index) {
|
|
54773
|
-
|
|
54774
|
-
|
|
54775
|
-
|
|
54776
|
-
|
|
54777
|
-
<div class="checkbox-
|
|
54778
|
-
<
|
|
54779
|
-
|
|
54780
|
-
|
|
54781
|
-
|
|
54782
|
-
|
|
54795
|
+
@if(row.amountAvailable && row.amountAvailable > 0) {
|
|
54796
|
+
<div class="forecast-row stock-list-item"
|
|
54797
|
+
[class.checked]="checkbox.model"
|
|
54798
|
+
(click)="handleChecked(i, row, $event)">
|
|
54799
|
+
<div class="forecast-cell checkbox-cell">
|
|
54800
|
+
<div class="checkbox-wrapper">
|
|
54801
|
+
<co-input-checkbox
|
|
54802
|
+
#checkbox
|
|
54803
|
+
[model]="checkbox.model"
|
|
54804
|
+
(modelChange)="handleChecked(i, row)">
|
|
54805
|
+
</co-input-checkbox>
|
|
54806
|
+
</div>
|
|
54783
54807
|
</div>
|
|
54808
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.purchaseOrderNumber"></div>
|
|
54809
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.amountAvailable"></div>
|
|
54810
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
54811
|
+
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.confirmedDeliveryDate | date:'dd MMM yyyy'"></div>
|
|
54784
54812
|
</div>
|
|
54785
|
-
|
|
54786
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.amount"></div>
|
|
54787
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.deliveryDate | date:'dd MMM yyyy'"></div>
|
|
54788
|
-
<div class="forecast-cell co-transaction-overflow-ellipsis right-align" [textContent]="row.confirmedDeliveryDate | date:'dd MMM yyyy'"></div>
|
|
54789
|
-
</div>
|
|
54813
|
+
}
|
|
54790
54814
|
}
|
|
54791
54815
|
</div>
|
|
54792
54816
|
}
|
|
@@ -74417,13 +74441,17 @@ class TransactionSearchResultComponent {
|
|
|
74417
74441
|
}
|
|
74418
74442
|
}
|
|
74419
74443
|
async dragStarted(ev, transaction) {
|
|
74420
|
-
|
|
74421
|
-
|
|
74422
|
-
|
|
74423
|
-
|
|
74424
|
-
|
|
74425
|
-
|
|
74426
|
-
|
|
74444
|
+
if (transaction && transaction.transId) {
|
|
74445
|
+
this._deliveryPlanningService.dragging = true;
|
|
74446
|
+
this._deliveryPlanningService.currentTransId = transaction.transId;
|
|
74447
|
+
ev.dataTransfer.setData('text', transaction.transId);
|
|
74448
|
+
if (!this.checkedAvailability) {
|
|
74449
|
+
const planOrder = await this.transactionService.getPlanOrder(transaction.transId, false);
|
|
74450
|
+
if (planOrder) {
|
|
74451
|
+
this._deliveryPlanningService.availabilityCheckEvent.emit(planOrder);
|
|
74452
|
+
this.checkedAvailability = true;
|
|
74453
|
+
}
|
|
74454
|
+
}
|
|
74427
74455
|
}
|
|
74428
74456
|
}
|
|
74429
74457
|
dragEnd(ev) {
|
|
@@ -90311,7 +90339,7 @@ class TransactionArticleStockComponent extends DialogBaseComponent {
|
|
|
90311
90339
|
(click)="handleCloseDialog($event)"></co-button>
|
|
90312
90340
|
</div>
|
|
90313
90341
|
</ng-template>
|
|
90314
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["userWarehouseNr", "article", "branchNr", "articleWarehouse", "allWarehouses"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handlePurchaseOrderClick", "handleSalesOrderClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
90342
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i2.StockComponent, selector: "co-stock", inputs: ["userWarehouseNr", "article", "branchNr", "articleWarehouse", "allWarehouses", "articleExternalStockInformation"], outputs: ["handleStickerClicked", "okButtonClicked", "cancelButtonClicked", "handleClick", "handlePurchaseOrderClick", "handleSalesOrderClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
90315
90343
|
}
|
|
90316
90344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionArticleStockComponent, decorators: [{
|
|
90317
90345
|
type: Component,
|