@colijnit/transaction 301.1.6 → 301.1.7
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 +316 -114
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +44 -13
- package/lib/component/transaction-quick-access/transaction-quick-access-planning/component/transaction-quick-access-planning-popup/style/_layout.scss +9 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, InjectionToken, EventEmitter, Pipe, HostBinding, Input, ViewEncapsulation, Component, Injector, Optional, Inject, Output, ContentChildren, Directive, ElementRef, forwardRef, ViewChild, HostListener, ChangeDetectionStrategy, input, computed, signal, ViewChildren, NgModule, ViewContainerRef, LOCALE_ID, model } from '@angular/core';
|
|
3
3
|
import { TransactionKind } from '@colijnit/transactionapi/build/enum/transaction-kind.enum';
|
|
4
4
|
import * as i1$1 from '@colijnit/corecomponents_v12';
|
|
5
|
-
import { BaseModuleService, BaseModuleScreenConfigService, FilterViewmodel, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, InputTextComponent, FormMasterService, InputDatePickerComponent, InputCheckboxComponent, InputTextareaComponent, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, IconModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, InputNumberPickerModule, TooltipDirectiveModule, PriceDisplayPipeModule, InputDatePickerModule, CarouselModule, FilterPipeModule, InputTextareaModule, PopupModule, SimpleGridColumnTemplateType, SimpleGridColumnDirective, ColumnAlign, OverlayService, ContentViewMode, FormComponent, CheckmarkOverlayModule, ObserveVisibilityModule, CoCurrencyPipeModule, ImageModule, CoDialogWizardModule, ClickoutsideModule, OverlayModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, HourSchedulingComponentModule, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateModule, ViewModeButtonsModule, FilterItemMode, FilterItemComponent, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule, CalendarComponent, CoreComponentsTranslationModule, ColorPickerModule, InputScannerModule, CoreComponentsIcon } from '@colijnit/corecomponents_v12';
|
|
5
|
+
import { BaseModuleService, BaseModuleScreenConfigService, FilterViewmodel, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, InputTextComponent, FormMasterService, InputDatePickerComponent, InputCheckboxComponent, InputTextareaComponent, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, IconModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, InputNumberPickerModule, TooltipDirectiveModule, PriceDisplayPipeModule, InputDatePickerModule, CarouselModule, FilterPipeModule, InputTextareaModule, PopupModule, SimpleGridColumnTemplateType, SimpleGridColumnDirective, ColumnAlign, OverlayService, ContentViewMode, FormComponent, CheckmarkOverlayModule, ObserveVisibilityModule, CoCurrencyPipeModule, ImageModule, CoDialogWizardModule, ClickoutsideModule, OverlayModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, HourSchedulingComponentModule, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateModule, ViewModeButtonsModule, FilterItemMode, FilterItemComponent, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule, BarcodeModule, CalendarComponent, CoreComponentsTranslationModule, ColorPickerModule, InputScannerModule, CoreComponentsIcon } from '@colijnit/corecomponents_v12';
|
|
6
6
|
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
7
7
|
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
8
8
|
import { TransactionServiceInfo } from '@colijnit/transactionapi/build/model/transaction-service-info.bo';
|
|
@@ -94,6 +94,7 @@ import { OrderLineSetCategory } from '@colijnit/mainapi/build/model/order-line-s
|
|
|
94
94
|
import { OrderConfirmationAnalysisResult } from '@colijnit/transactionapi/build/model/order-confirmation-analysis-result.bo';
|
|
95
95
|
import { TransactionRegisteredPaymentInfo } from '@colijnit/transactionapi/build/model/transaction-registered-payment-info.bo';
|
|
96
96
|
import { PackageLSP } from '@colijnit/transactionapi/build/model/package-lsp.bo';
|
|
97
|
+
import { PrePackageInfo } from '@colijnit/transactionapi/build/model/pre-package-info.bo';
|
|
97
98
|
import { AnalyzedOrderConfirmation } from '@colijnit/transactionapi/build/model/analyzed-order-confirmation.bo';
|
|
98
99
|
import { ProjectCode } from '@colijnit/transactionapi/build/model/project-code.bo';
|
|
99
100
|
import { CashType } from '@colijnit/transactionapi/build/model/cash-type.bo';
|
|
@@ -136,6 +137,7 @@ import { AvailableWarehouseStockPerBatch } from '@colijnit/transactionapi/build/
|
|
|
136
137
|
import { LoginStatus } from '@colijnit/ioneconnector/build/enum/login-status.enum';
|
|
137
138
|
import { CoNotition } from '@colijnit/mainapi/build/model/co-notition.bo';
|
|
138
139
|
import { Task } from '@colijnit/mainapi/build/model/task.bo';
|
|
140
|
+
import { PriceListInfo } from '@colijnit/articleapi/build/model/price-list-info';
|
|
139
141
|
import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
|
|
140
142
|
import * as i1 from '@angular/platform-browser';
|
|
141
143
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
@@ -319,7 +321,9 @@ import { PdfHistoricQuotationRequest } from '@colijnit/transactionapi/build/mode
|
|
|
319
321
|
import { ConvertQuotationToSalesOrderRequest } from '@colijnit/transactionapi/build/model/ConvertQuotationToSalesOrderRequest';
|
|
320
322
|
import { TransactionLspInformationRequest } from '@colijnit/transactionapi/build/model/transaction-lsp-information-request';
|
|
321
323
|
import { TransactionLspRequestLine } from '@colijnit/transactionapi/build/model/transaction-lsp-request-line.bo';
|
|
324
|
+
import { PrePackageInfoRequest } from '@colijnit/transactionapi/build/model/pre-package-info-request.bo';
|
|
322
325
|
import { PrintLspPackageInfoRequest } from '@colijnit/transactionapi/build/model/print-lsp-package-info-request.bo';
|
|
326
|
+
import { PdfLspPackageInfoRequest } from '@colijnit/transactionapi/build/model/pdf-lsp-package-info-request.bo';
|
|
323
327
|
import { LspWmsDeliveryNotePrintRequest } from '@colijnit/transactionapi/build/model/lsp-wms-delivery-note-print-request';
|
|
324
328
|
import { PurchaseAdviceFilters } from '@colijnit/transactionapi/build/model/purchase-advice-filters';
|
|
325
329
|
import { GetArticlePriceRequest } from '@colijnit/articleapi/build/model/get-article-price-request';
|
|
@@ -371,8 +375,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
371
375
|
class Version {
|
|
372
376
|
name = "@colijnit/transaction";
|
|
373
377
|
description = "Colijn IT transaction package";
|
|
374
|
-
symVer = "301.1.
|
|
375
|
-
publishDate = "
|
|
378
|
+
symVer = "301.1.7";
|
|
379
|
+
publishDate = "4-11-2026, 09:51:05";
|
|
376
380
|
}
|
|
377
381
|
|
|
378
382
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -714,6 +718,7 @@ class TransactionSettingsOptions {
|
|
|
714
718
|
}
|
|
715
719
|
|
|
716
720
|
class TransactionSettings extends Options {
|
|
721
|
+
currencySymbol = '€';
|
|
717
722
|
tempTransactionParameters = new TransactionSearchViewRequest();
|
|
718
723
|
transactionParameters = new TransactionSearchViewRequest();
|
|
719
724
|
options = new TransactionSettingsOptions();
|
|
@@ -1845,6 +1850,9 @@ class ErrorService {
|
|
|
1845
1850
|
if (response.message) {
|
|
1846
1851
|
messages.push(this._messageAsValidationError(response.message));
|
|
1847
1852
|
}
|
|
1853
|
+
else if (response.exception && response.exception.message) {
|
|
1854
|
+
messages.push(this._messageAsValidationError(response.exception.message));
|
|
1855
|
+
}
|
|
1848
1856
|
else if (response.validationResult && !response.validationResult.success) {
|
|
1849
1857
|
if (response.validationResult.messages && response.validationResult.messages.length > 0) {
|
|
1850
1858
|
response.validationResult.messages.forEach(m => {
|
|
@@ -2946,7 +2954,7 @@ class TransactionConnectorAdapterService {
|
|
|
2946
2954
|
async getPriceListsByArchetype(type) {
|
|
2947
2955
|
const result = await this.connector.getPriceListsByArchetype(type);
|
|
2948
2956
|
if (result.validationResult && result.validationResult.success && result.resultObject && result.resultObject.priceLists) {
|
|
2949
|
-
return this._boFactory.makeBOArrayFromRawBackendDataArray(
|
|
2957
|
+
return this._boFactory.makeBOArrayFromRawBackendDataArray(PriceListInfo, result.resultObject.priceLists);
|
|
2950
2958
|
}
|
|
2951
2959
|
else {
|
|
2952
2960
|
this._handleExceptionFromResponse(result);
|
|
@@ -6905,6 +6913,16 @@ class TransactionConnectorAdapterService {
|
|
|
6905
6913
|
return null;
|
|
6906
6914
|
}
|
|
6907
6915
|
}
|
|
6916
|
+
async getPrePackageInfo(request) {
|
|
6917
|
+
const response = await this.connector.getPrePackageInfo(request);
|
|
6918
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
6919
|
+
return this._boFactory.makeWithRawBackendData(PrePackageInfo, response.resultObject);
|
|
6920
|
+
}
|
|
6921
|
+
else {
|
|
6922
|
+
this._handleExceptionFromResponse(response);
|
|
6923
|
+
return null;
|
|
6924
|
+
}
|
|
6925
|
+
}
|
|
6908
6926
|
async getLogisticsPartners() {
|
|
6909
6927
|
const response = await this.connector.getLogisticsPartners();
|
|
6910
6928
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -7695,6 +7713,18 @@ class TransactionConnectorAdapterService {
|
|
|
7695
7713
|
return null;
|
|
7696
7714
|
}
|
|
7697
7715
|
}
|
|
7716
|
+
async pdfLspPackageInfo(request, showLoader) {
|
|
7717
|
+
const response = await this.connector.pdfLspPackageInfo(request);
|
|
7718
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
7719
|
+
if (response.resultObject && response.resultObject.pdfContent) {
|
|
7720
|
+
this._openPdfContent(response.resultObject.pdfContent);
|
|
7721
|
+
}
|
|
7722
|
+
}
|
|
7723
|
+
else {
|
|
7724
|
+
this._handleExceptionFromResponse(response);
|
|
7725
|
+
return null;
|
|
7726
|
+
}
|
|
7727
|
+
}
|
|
7698
7728
|
async printDeliveryNoteForLspPackage(request, showLoader) {
|
|
7699
7729
|
const response = await this.connector.printDeliveryNoteForLspPackage(request);
|
|
7700
7730
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -8611,7 +8641,7 @@ class TransactionConnectorService {
|
|
|
8611
8641
|
return this._adapterService.functionCall(this._adapterService.getPriceListArchetypeForUser, [transactionKind]);
|
|
8612
8642
|
}
|
|
8613
8643
|
async getPriceListsByArchetype(type) {
|
|
8614
|
-
return this._selectMultipleParameterizedCacheService.requestCache(
|
|
8644
|
+
return this._selectMultipleParameterizedCacheService.requestCache(PriceListInfo, (type) => {
|
|
8615
8645
|
return this._adapterService.functionCall(this._adapterService.getPriceListsByArchetype, [type]);
|
|
8616
8646
|
}).getValue(type);
|
|
8617
8647
|
}
|
|
@@ -9557,6 +9587,9 @@ class TransactionConnectorService {
|
|
|
9557
9587
|
async getPackageInformation(transactionUUID, lineUUID) {
|
|
9558
9588
|
return this._adapterService.functionCall(this._adapterService.getPackageInformation, [transactionUUID, lineUUID]);
|
|
9559
9589
|
}
|
|
9590
|
+
async getPrePackageInfo(request) {
|
|
9591
|
+
return this._adapterService.functionCall(this._adapterService.getPrePackageInfo, [request]);
|
|
9592
|
+
}
|
|
9560
9593
|
async getLogisticsPartners() {
|
|
9561
9594
|
return this._adapterService.functionCall(this._adapterService.getLogisticsPartners);
|
|
9562
9595
|
}
|
|
@@ -9786,6 +9819,9 @@ class TransactionConnectorService {
|
|
|
9786
9819
|
async printLspPackageInfo(request, showLoader) {
|
|
9787
9820
|
return await this._adapterService.functionCall(this._adapterService.printLspPackageInfo, [request]);
|
|
9788
9821
|
}
|
|
9822
|
+
async pdfLspPackageInfo(request, showLoader) {
|
|
9823
|
+
return await this._adapterService.functionCall(this._adapterService.pdfLspPackageInfo, [request]);
|
|
9824
|
+
}
|
|
9789
9825
|
async printDeliveryNoteForLspPackage(request, showLoader) {
|
|
9790
9826
|
return await this._adapterService.functionCall(this._adapterService.printDeliveryNoteForLspPackage, [request]);
|
|
9791
9827
|
}
|
|
@@ -11307,7 +11343,7 @@ class TransactionService extends PendingReasonService {
|
|
|
11307
11343
|
if (shouldDelete) {
|
|
11308
11344
|
const response = await this.connector.deleteTransactionByUuId(this.currentTransaction.transactionInfo.uuid);
|
|
11309
11345
|
let success = true;
|
|
11310
|
-
if (!response.isSuccess) {
|
|
11346
|
+
if (!response || !response.isSuccess) {
|
|
11311
11347
|
success = await this.handleHeaderOperationStatuses(response, false, false, false);
|
|
11312
11348
|
}
|
|
11313
11349
|
if (success) {
|
|
@@ -11916,12 +11952,18 @@ class TransactionService extends PendingReasonService {
|
|
|
11916
11952
|
return false;
|
|
11917
11953
|
}
|
|
11918
11954
|
async updatePriceListTransactionLine(uuid, lineUuid, priceList) {
|
|
11919
|
-
const
|
|
11920
|
-
if (
|
|
11921
|
-
this.
|
|
11922
|
-
|
|
11955
|
+
const lockSuccess = await this.tryToLockTransaction(this.currentTransaction.transactionInfo.id, this.currentTransaction.transactionInfo.version);
|
|
11956
|
+
if (lockSuccess) {
|
|
11957
|
+
const response = await this.connector.changeTransactionLinePriceList(uuid, lineUuid, priceList);
|
|
11958
|
+
if (response) {
|
|
11959
|
+
this.transactionDirty = true;
|
|
11960
|
+
return this.handleLineOperationStatuses(response);
|
|
11961
|
+
}
|
|
11962
|
+
return false;
|
|
11963
|
+
}
|
|
11964
|
+
else {
|
|
11965
|
+
return false;
|
|
11923
11966
|
}
|
|
11924
|
-
return false;
|
|
11925
11967
|
}
|
|
11926
11968
|
async updateVatTransactionLine(uuid, lineUuid, id) {
|
|
11927
11969
|
const response = await this.connector.changeTransactionLineVat(uuid, lineUuid, id);
|
|
@@ -13230,6 +13272,9 @@ class TransactionService extends PendingReasonService {
|
|
|
13230
13272
|
async getPackageInformation(transactionUUID, lineUUID) {
|
|
13231
13273
|
return this.connector.getPackageInformation(transactionUUID, lineUUID);
|
|
13232
13274
|
}
|
|
13275
|
+
async getPrePackageInfo(request) {
|
|
13276
|
+
return this.connector.getPrePackageInfo(request);
|
|
13277
|
+
}
|
|
13233
13278
|
async getCashTypes(type) {
|
|
13234
13279
|
return await this.connector.getCashTypes(type);
|
|
13235
13280
|
}
|
|
@@ -13669,6 +13714,9 @@ class TransactionService extends PendingReasonService {
|
|
|
13669
13714
|
async printLspPackageInfo(request, showLoader) {
|
|
13670
13715
|
return await this.connector.printLspPackageInfo(request);
|
|
13671
13716
|
}
|
|
13717
|
+
async pdfLspPackageInfo(request, showLoader) {
|
|
13718
|
+
return await this.connector.pdfLspPackageInfo(request);
|
|
13719
|
+
}
|
|
13672
13720
|
async printDeliveryNoteForLspPackage(request, showLoader) {
|
|
13673
13721
|
return await this.connector.printDeliveryNoteForLspPackage(request);
|
|
13674
13722
|
}
|
|
@@ -15392,12 +15440,12 @@ class TransactionLineBaseComponent extends TransactionBaseComponent {
|
|
|
15392
15440
|
}
|
|
15393
15441
|
ngOnInit() {
|
|
15394
15442
|
super.ngOnInit();
|
|
15395
|
-
if (this.transactionLine) {
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
}
|
|
15443
|
+
/*if (this.transactionLine) {
|
|
15444
|
+
this.transactionLineSet();
|
|
15445
|
+
if (this.transactionLine.visible) {
|
|
15446
|
+
this.visibilitySet();
|
|
15447
|
+
}
|
|
15448
|
+
}*/
|
|
15401
15449
|
if (this.transactionInfo) {
|
|
15402
15450
|
this.transactionInfoSet();
|
|
15403
15451
|
}
|
|
@@ -15409,6 +15457,9 @@ class TransactionLineBaseComponent extends TransactionBaseComponent {
|
|
|
15409
15457
|
}), this.transactionLineService.transactionLineSet.subscribe((set) => {
|
|
15410
15458
|
if (set) {
|
|
15411
15459
|
this.transactionLineSet();
|
|
15460
|
+
if (this.transactionLine.visible) {
|
|
15461
|
+
this.visibilitySet();
|
|
15462
|
+
}
|
|
15412
15463
|
}
|
|
15413
15464
|
}));
|
|
15414
15465
|
}
|
|
@@ -23067,58 +23118,58 @@ class DepositPaymentComponent {
|
|
|
23067
23118
|
});
|
|
23068
23119
|
}
|
|
23069
23120
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DepositPaymentComponent, deps: [{ token: TransactionPaymentConnectorService }, { token: TransactionEventService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23070
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DepositPaymentComponent, isStandalone: false, selector: "co-deposit-payment", inputs: { branch: "branch", transactionKind: "transactionKind", showTitle: "showTitle", transactionUuid: "transactionUuid" }, outputs: { depositPaymentFetched: "depositPaymentFetched" }, host: { properties: { "class.co-deposit-payment": "this.showClass" } }, ngImport: i0, template: `
|
|
23071
|
-
@if (showTitle) {
|
|
23072
|
-
<div class="down-payment-payments-title" [textContent]="'PAYMENTS_MADE' | localize"></div>
|
|
23073
|
-
}
|
|
23074
|
-
<div class="down-payment-payments-wrapper">
|
|
23075
|
-
@if (showLoader) {
|
|
23076
|
-
<co-loader class="loader"></co-loader>
|
|
23077
|
-
}
|
|
23078
|
-
@for (payment of depositPayments; track payment) {
|
|
23079
|
-
<div class="down-payment-payments">
|
|
23080
|
-
<co-payment-tile
|
|
23081
|
-
[image]="payment.paymentMethod?.image"
|
|
23082
|
-
[description]="payment.
|
|
23083
|
-
></co-payment-tile>
|
|
23084
|
-
<div class="down-payment-date-wrapper">
|
|
23085
|
-
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy'"></div>
|
|
23086
|
-
</div>
|
|
23087
|
-
<div class="down-payment-amount-wrapper">
|
|
23088
|
-
<div class="down-payment-amount" [textContent]="payment.depositPayment?.depositPaymentAmount | coCurrency"></div>
|
|
23089
|
-
</div>
|
|
23090
|
-
</div>
|
|
23091
|
-
}
|
|
23092
|
-
</div>
|
|
23121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DepositPaymentComponent, isStandalone: false, selector: "co-deposit-payment", inputs: { branch: "branch", transactionKind: "transactionKind", showTitle: "showTitle", transactionUuid: "transactionUuid" }, outputs: { depositPaymentFetched: "depositPaymentFetched" }, host: { properties: { "class.co-deposit-payment": "this.showClass" } }, ngImport: i0, template: `
|
|
23122
|
+
@if (showTitle) {
|
|
23123
|
+
<div class="down-payment-payments-title" [textContent]="'PAYMENTS_MADE' | localize"></div>
|
|
23124
|
+
}
|
|
23125
|
+
<div class="down-payment-payments-wrapper">
|
|
23126
|
+
@if (showLoader) {
|
|
23127
|
+
<co-loader class="loader"></co-loader>
|
|
23128
|
+
}
|
|
23129
|
+
@for (payment of depositPayments; track payment) {
|
|
23130
|
+
<div class="down-payment-payments">
|
|
23131
|
+
<co-payment-tile
|
|
23132
|
+
[image]="payment.paymentMethod?.image"
|
|
23133
|
+
[description]="payment.depositPayment.paymentMethodDescription"
|
|
23134
|
+
></co-payment-tile>
|
|
23135
|
+
<div class="down-payment-date-wrapper">
|
|
23136
|
+
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy'"></div>
|
|
23137
|
+
</div>
|
|
23138
|
+
<div class="down-payment-amount-wrapper">
|
|
23139
|
+
<div class="down-payment-amount" [textContent]="payment.depositPayment?.depositPaymentAmount | coCurrency"></div>
|
|
23140
|
+
</div>
|
|
23141
|
+
</div>
|
|
23142
|
+
}
|
|
23143
|
+
</div>
|
|
23093
23144
|
`, isInline: true, dependencies: [{ kind: "component", type: PaymentTileComponent, selector: "co-payment-tile", inputs: ["selected", "icon", "image", "description", "showRadioButton"], outputs: ["selectedChange"] }, { kind: "component", type: LoaderComponent, selector: "co-loader" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], encapsulation: i0.ViewEncapsulation.None });
|
|
23094
23145
|
}
|
|
23095
23146
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DepositPaymentComponent, decorators: [{
|
|
23096
23147
|
type: Component,
|
|
23097
23148
|
args: [{
|
|
23098
23149
|
selector: "co-deposit-payment",
|
|
23099
|
-
template: `
|
|
23100
|
-
@if (showTitle) {
|
|
23101
|
-
<div class="down-payment-payments-title" [textContent]="'PAYMENTS_MADE' | localize"></div>
|
|
23102
|
-
}
|
|
23103
|
-
<div class="down-payment-payments-wrapper">
|
|
23104
|
-
@if (showLoader) {
|
|
23105
|
-
<co-loader class="loader"></co-loader>
|
|
23106
|
-
}
|
|
23107
|
-
@for (payment of depositPayments; track payment) {
|
|
23108
|
-
<div class="down-payment-payments">
|
|
23109
|
-
<co-payment-tile
|
|
23110
|
-
[image]="payment.paymentMethod?.image"
|
|
23111
|
-
[description]="payment.
|
|
23112
|
-
></co-payment-tile>
|
|
23113
|
-
<div class="down-payment-date-wrapper">
|
|
23114
|
-
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy'"></div>
|
|
23115
|
-
</div>
|
|
23116
|
-
<div class="down-payment-amount-wrapper">
|
|
23117
|
-
<div class="down-payment-amount" [textContent]="payment.depositPayment?.depositPaymentAmount | coCurrency"></div>
|
|
23118
|
-
</div>
|
|
23119
|
-
</div>
|
|
23120
|
-
}
|
|
23121
|
-
</div>
|
|
23150
|
+
template: `
|
|
23151
|
+
@if (showTitle) {
|
|
23152
|
+
<div class="down-payment-payments-title" [textContent]="'PAYMENTS_MADE' | localize"></div>
|
|
23153
|
+
}
|
|
23154
|
+
<div class="down-payment-payments-wrapper">
|
|
23155
|
+
@if (showLoader) {
|
|
23156
|
+
<co-loader class="loader"></co-loader>
|
|
23157
|
+
}
|
|
23158
|
+
@for (payment of depositPayments; track payment) {
|
|
23159
|
+
<div class="down-payment-payments">
|
|
23160
|
+
<co-payment-tile
|
|
23161
|
+
[image]="payment.paymentMethod?.image"
|
|
23162
|
+
[description]="payment.depositPayment.paymentMethodDescription"
|
|
23163
|
+
></co-payment-tile>
|
|
23164
|
+
<div class="down-payment-date-wrapper">
|
|
23165
|
+
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy'"></div>
|
|
23166
|
+
</div>
|
|
23167
|
+
<div class="down-payment-amount-wrapper">
|
|
23168
|
+
<div class="down-payment-amount" [textContent]="payment.depositPayment?.depositPaymentAmount | coCurrency"></div>
|
|
23169
|
+
</div>
|
|
23170
|
+
</div>
|
|
23171
|
+
}
|
|
23172
|
+
</div>
|
|
23122
23173
|
`,
|
|
23123
23174
|
encapsulation: ViewEncapsulation.None,
|
|
23124
23175
|
standalone: false
|
|
@@ -39265,6 +39316,9 @@ class TransactionLineSidePanelServiceComponent extends TransactionLineBaseCompon
|
|
|
39265
39316
|
@case (categories.ServiceOrderPicked) {
|
|
39266
39317
|
<co-transaction-line-side-panel-picked></co-transaction-line-side-panel-picked>
|
|
39267
39318
|
}
|
|
39319
|
+
@case (categories.ServiceOrderPlanning) {
|
|
39320
|
+
<co-transaction-line-side-panel-planning></co-transaction-line-side-panel-planning>
|
|
39321
|
+
}
|
|
39268
39322
|
@case (categories.ServiceOrderPurchase) {
|
|
39269
39323
|
<co-transaction-line-side-panel-sales-purchase></co-transaction-line-side-panel-sales-purchase>
|
|
39270
39324
|
}
|
|
@@ -39273,7 +39327,7 @@ class TransactionLineSidePanelServiceComponent extends TransactionLineBaseCompon
|
|
|
39273
39327
|
}
|
|
39274
39328
|
}
|
|
39275
39329
|
|
|
39276
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TransactionLineSidePanelSalesPurchaseComponent, selector: "co-transaction-line-side-panel-sales-purchase" }, { kind: "component", type: TransactionLineSalesAllocationComponent, selector: "co-transaction-line-sales-allocation" }, { kind: "component", type: TransactionLineSalesInvoiceComponent, selector: "co-transaction-line-sales-invoice" }, { kind: "component", type: TransactionLineSalesDeliveryComponent, selector: "co-transaction-line-sales-delivery" }, { kind: "component", type: TransactionLineSidePanelToBePickedComponent, selector: "co-transaction-line-side-panel-to-be-picked" }, { kind: "component", type: TransactionLineSidePanelPickedComponent, selector: "co-transaction-line-side-panel-picked" }, { kind: "component", type: TransactionLineSidePanelDefaultComponent, selector: "co-transaction-line-side-panel-default", inputs: ["categoryType", "showPurchaseDescAndPrice"], outputs: ["cancelClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
39330
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TransactionLineSidePanelSalesPurchaseComponent, selector: "co-transaction-line-side-panel-sales-purchase" }, { kind: "component", type: TransactionLineSalesAllocationComponent, selector: "co-transaction-line-sales-allocation" }, { kind: "component", type: TransactionLineSalesInvoiceComponent, selector: "co-transaction-line-sales-invoice" }, { kind: "component", type: TransactionLineSalesDeliveryComponent, selector: "co-transaction-line-sales-delivery" }, { kind: "component", type: TransactionLineSidePanelToBePickedComponent, selector: "co-transaction-line-side-panel-to-be-picked" }, { kind: "component", type: TransactionLineSidePanelPickedComponent, selector: "co-transaction-line-side-panel-picked" }, { kind: "component", type: TransactionLineSidePanelPlanningComponent, selector: "co-transaction-line-side-panel-planning" }, { kind: "component", type: TransactionLineSidePanelDefaultComponent, selector: "co-transaction-line-side-panel-default", inputs: ["categoryType", "showPurchaseDescAndPrice"], outputs: ["cancelClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
39277
39331
|
}
|
|
39278
39332
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelServiceComponent, decorators: [{
|
|
39279
39333
|
type: Component,
|
|
@@ -39296,6 +39350,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
39296
39350
|
@case (categories.ServiceOrderPicked) {
|
|
39297
39351
|
<co-transaction-line-side-panel-picked></co-transaction-line-side-panel-picked>
|
|
39298
39352
|
}
|
|
39353
|
+
@case (categories.ServiceOrderPlanning) {
|
|
39354
|
+
<co-transaction-line-side-panel-planning></co-transaction-line-side-panel-planning>
|
|
39355
|
+
}
|
|
39299
39356
|
@case (categories.ServiceOrderPurchase) {
|
|
39300
39357
|
<co-transaction-line-side-panel-sales-purchase></co-transaction-line-side-panel-sales-purchase>
|
|
39301
39358
|
}
|
|
@@ -46660,6 +46717,7 @@ class TransactionHeaderPriceListButtonComponent extends TransactionHeaderBaseCom
|
|
|
46660
46717
|
}
|
|
46661
46718
|
inputLabel = false;
|
|
46662
46719
|
showPriceListDialog = false;
|
|
46720
|
+
priceListDescription = '';
|
|
46663
46721
|
constructor(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector) {
|
|
46664
46722
|
super(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
|
|
46665
46723
|
this.transactionHeaderService = transactionHeaderService;
|
|
@@ -46671,6 +46729,10 @@ class TransactionHeaderPriceListButtonComponent extends TransactionHeaderBaseCom
|
|
|
46671
46729
|
this.transactionService = transactionService;
|
|
46672
46730
|
this.changeDetector = changeDetector;
|
|
46673
46731
|
}
|
|
46732
|
+
transactionInfoSet() {
|
|
46733
|
+
super.transactionInfoSet();
|
|
46734
|
+
this._loadLinePriceList();
|
|
46735
|
+
}
|
|
46674
46736
|
async showThePriceListDialog(event) {
|
|
46675
46737
|
if (this.readonly || this.transactionHeaderService.readonly) {
|
|
46676
46738
|
return;
|
|
@@ -46683,6 +46745,19 @@ class TransactionHeaderPriceListButtonComponent extends TransactionHeaderBaseCom
|
|
|
46683
46745
|
this.detectChanges();
|
|
46684
46746
|
}
|
|
46685
46747
|
}
|
|
46748
|
+
async _loadLinePriceList() {
|
|
46749
|
+
let priceListType;
|
|
46750
|
+
if (this.transactionService.transactionKind) {
|
|
46751
|
+
priceListType = await this.transactionService.getPriceListArchetypeForUser(this.transactionService.transactionKind);
|
|
46752
|
+
}
|
|
46753
|
+
if (this.transactionInfo && this.transactionInfo.priceListCode) {
|
|
46754
|
+
this.transactionService.getPriceListsByArchetype(priceListType).then((lists) => {
|
|
46755
|
+
const priceList = lists.find(l => l.listCode === this.transactionInfo.priceListCode);
|
|
46756
|
+
this.priceListDescription = priceList ? priceList.description : this.transactionInfo.priceListCode;
|
|
46757
|
+
this.changeDetector.detectChanges();
|
|
46758
|
+
});
|
|
46759
|
+
}
|
|
46760
|
+
}
|
|
46686
46761
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderPriceListButtonComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
46687
46762
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionHeaderPriceListButtonComponent, isStandalone: false, selector: "co-transaction-header-price-list-button", inputs: { inputLabel: "inputLabel" }, host: { properties: { "class.co-transaction-header-price-list-button": "this.showClass" } }, providers: [
|
|
46688
46763
|
OverlayService,
|
|
@@ -46693,7 +46768,7 @@ class TransactionHeaderPriceListButtonComponent extends TransactionHeaderBaseCom
|
|
|
46693
46768
|
], usesInheritance: true, ngImport: i0, template: `
|
|
46694
46769
|
|
|
46695
46770
|
<co-transaction-button class="custom-width"
|
|
46696
|
-
[label]="
|
|
46771
|
+
[label]="priceListDescription"
|
|
46697
46772
|
(click)="showThePriceListDialog($event)"
|
|
46698
46773
|
[tooltip]="tooltipMessage"
|
|
46699
46774
|
></co-transaction-button>
|
|
@@ -46712,7 +46787,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
46712
46787
|
template: `
|
|
46713
46788
|
|
|
46714
46789
|
<co-transaction-button class="custom-width"
|
|
46715
|
-
[label]="
|
|
46790
|
+
[label]="priceListDescription"
|
|
46716
46791
|
(click)="showThePriceListDialog($event)"
|
|
46717
46792
|
[tooltip]="tooltipMessage"
|
|
46718
46793
|
></co-transaction-button>
|
|
@@ -66114,9 +66189,11 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66114
66189
|
printLayouts = [];
|
|
66115
66190
|
layoutCode = LayoutCode.PackageSticker;
|
|
66116
66191
|
disablePdfPreview = true;
|
|
66192
|
+
visibleMethods = [SendMethodType.Print, SendMethodType.Pdf];
|
|
66117
66193
|
printerList = [];
|
|
66118
66194
|
reportDocumentLspPrintRequest = new PrintLspPackageInfoRequest();
|
|
66119
66195
|
reportDocumentLspWmsPrintRequest = new LspWmsDeliveryNotePrintRequest();
|
|
66196
|
+
reportDocumentLspPdfRequest = new PdfLspPackageInfoRequest();
|
|
66120
66197
|
selectedDeliveryMethod;
|
|
66121
66198
|
defaultSendMethodIcon;
|
|
66122
66199
|
showLoader = false;
|
|
@@ -66128,19 +66205,22 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66128
66205
|
this._lspDialogType = type;
|
|
66129
66206
|
if (this._lspDialogType === LspDialogType.Transaction) {
|
|
66130
66207
|
this.layoutCode = LayoutCode.PackageSticker;
|
|
66208
|
+
this.visibleMethods = [SendMethodType.Print, SendMethodType.Pdf];
|
|
66131
66209
|
}
|
|
66132
66210
|
else {
|
|
66133
66211
|
this.layoutCode = LayoutCode.DeliveryNote;
|
|
66212
|
+
this.visibleMethods = [SendMethodType.Print];
|
|
66134
66213
|
}
|
|
66135
66214
|
}
|
|
66136
66215
|
autoPrint = false;
|
|
66137
66216
|
set packageLSP(packageLSP) {
|
|
66138
|
-
this._packageLSP = packageLSP;
|
|
66217
|
+
this._packageLSP = packageLSP || [];
|
|
66139
66218
|
this._getPrinters();
|
|
66140
66219
|
this.getPrintLayouts();
|
|
66141
66220
|
if (packageLSP?.length) {
|
|
66142
66221
|
if (this._lspDialogType === LspDialogType.Transaction) {
|
|
66143
66222
|
this.reportDocumentLspPrintRequest.packageLspId = packageLSP[0]?.id;
|
|
66223
|
+
this.reportDocumentLspPdfRequest.packageLspId = packageLSP[0]?.id;
|
|
66144
66224
|
}
|
|
66145
66225
|
else {
|
|
66146
66226
|
this.reportDocumentLspWmsPrintRequest.packageId = packageLSP[0]?.id;
|
|
@@ -66148,6 +66228,7 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66148
66228
|
}
|
|
66149
66229
|
}
|
|
66150
66230
|
deliveryMethods;
|
|
66231
|
+
prePackageInfo;
|
|
66151
66232
|
close = new EventEmitter();
|
|
66152
66233
|
autoPrinted = new EventEmitter();
|
|
66153
66234
|
createdTrackAndTrace = new EventEmitter();
|
|
@@ -66177,9 +66258,13 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66177
66258
|
}
|
|
66178
66259
|
ngOnInit() {
|
|
66179
66260
|
if (this.deliveryMethods?.length) {
|
|
66180
|
-
|
|
66261
|
+
const usedMethodCode = this.packageLSP?.[0]?.deliveryMethodCode;
|
|
66262
|
+
this.selectedDeliveryMethod = this.deliveryMethods.find(method => method.code === usedMethodCode) || this.deliveryMethods[0];
|
|
66181
66263
|
}
|
|
66182
|
-
this.
|
|
66264
|
+
if (this._lspDialogType === LspDialogType.Transaction) {
|
|
66265
|
+
this.reportDocumentLspPrintRequest.transId = this.transactionService.currentTransaction.transactionInfo.id;
|
|
66266
|
+
}
|
|
66267
|
+
this.reportDocumentLspPdfRequest.transId = this.transactionService.currentTransaction.transactionInfo.id;
|
|
66183
66268
|
}
|
|
66184
66269
|
ngOnDestroy() {
|
|
66185
66270
|
this._clearData();
|
|
@@ -66187,12 +66272,21 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66187
66272
|
get transactionInfo() {
|
|
66188
66273
|
return this.transactionService.currentTransaction;
|
|
66189
66274
|
}
|
|
66275
|
+
get trackAndTraceCreated() {
|
|
66276
|
+
return this.packageLSP?.length > 0;
|
|
66277
|
+
}
|
|
66190
66278
|
deliveryMethodChange(method) {
|
|
66279
|
+
if (this.trackAndTraceCreated) {
|
|
66280
|
+
return;
|
|
66281
|
+
}
|
|
66191
66282
|
if (this.selectedDeliveryMethod != method) {
|
|
66192
66283
|
this.selectedDeliveryMethod = method;
|
|
66193
66284
|
}
|
|
66194
66285
|
}
|
|
66195
66286
|
async createTrackAndTrace() {
|
|
66287
|
+
if (!this.selectedDeliveryMethod) {
|
|
66288
|
+
return;
|
|
66289
|
+
}
|
|
66196
66290
|
this.createdTrackAndTrace.emit(this.selectedDeliveryMethod.code);
|
|
66197
66291
|
if (this.autoPrint) {
|
|
66198
66292
|
this.autoPrinted.emit(this._packageLSP[0].id);
|
|
@@ -66207,9 +66301,18 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66207
66301
|
this._clearData();
|
|
66208
66302
|
this.close.emit();
|
|
66209
66303
|
}
|
|
66210
|
-
handleSendMethodOkClick(
|
|
66304
|
+
handleSendMethodOkClick(method) {
|
|
66305
|
+
const sendMethod = typeof method === 'string' ? method : method?.sendMethode;
|
|
66211
66306
|
if (this._lspDialogType === LspDialogType.Transaction) {
|
|
66212
|
-
if (
|
|
66307
|
+
if (sendMethod === SendMethodType.Pdf) {
|
|
66308
|
+
if (this.reportDocumentLspPdfRequest.packageLspId) {
|
|
66309
|
+
this.transactionService.pdfLspPackageInfo(this.reportDocumentLspPdfRequest).then(() => {
|
|
66310
|
+
this.showSendMethodDialog = false;
|
|
66311
|
+
this.changeDetector.detectChanges();
|
|
66312
|
+
});
|
|
66313
|
+
}
|
|
66314
|
+
}
|
|
66315
|
+
else if (this.reportDocumentLspPrintRequest.packageLspId) {
|
|
66213
66316
|
this.transactionService.printLspPackageInfo(this.reportDocumentLspPrintRequest).then(printResult => {
|
|
66214
66317
|
this.showSendMethodDialog = false;
|
|
66215
66318
|
this.changeDetector.detectChanges();
|
|
@@ -66244,7 +66347,7 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66244
66347
|
});
|
|
66245
66348
|
}
|
|
66246
66349
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningPopupComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
66247
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPlanningPopupComponent, isStandalone: false, selector: "co-transaction-quick-access-planning-popup", inputs: { lspDialogType: "lspDialogType", autoPrint: "autoPrint", packageLSP: "packageLSP", deliveryMethods: "deliveryMethods" }, outputs: { close: "close", autoPrinted: "autoPrinted", createdTrackAndTrace: "createdTrackAndTrace" }, host: { properties: { "class.co-transaction-quick-access-planning-popup": "this.showClass" } }, ngImport: i0, template: `
|
|
66350
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPlanningPopupComponent, isStandalone: false, selector: "co-transaction-quick-access-planning-popup", inputs: { lspDialogType: "lspDialogType", autoPrint: "autoPrint", packageLSP: "packageLSP", deliveryMethods: "deliveryMethods", prePackageInfo: "prePackageInfo" }, outputs: { close: "close", autoPrinted: "autoPrinted", createdTrackAndTrace: "createdTrackAndTrace" }, host: { properties: { "class.co-transaction-quick-access-planning-popup": "this.showClass" } }, ngImport: i0, template: `
|
|
66248
66351
|
<co-dialog [headerTemplate]="dialogHeader" [footerTemplate]="footerTemplate"
|
|
66249
66352
|
[showCloseIcon]="true" (closeClick)="closeEvent()">
|
|
66250
66353
|
<ng-template #dialogHeader>
|
|
@@ -66259,20 +66362,21 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66259
66362
|
[headerTitle]="'Verzendmethode'"
|
|
66260
66363
|
[printerList]="printerList"
|
|
66261
66364
|
[defaultSendMethod]="defaultSendMethod"
|
|
66262
|
-
[visibleMethods]="
|
|
66365
|
+
[visibleMethods]="visibleMethods"
|
|
66263
66366
|
[printLayouts]="printLayouts"
|
|
66264
66367
|
[isDocSignEnabled]="false"
|
|
66265
66368
|
[layoutCode]="layoutCode"
|
|
66266
66369
|
[disablePdfPreview]="disablePdfPreview"
|
|
66267
66370
|
[(reportingDocumentPrintRequest)]="printRequest"
|
|
66371
|
+
[(reportingDocumentPdfRequest)]="reportDocumentLspPdfRequest"
|
|
66268
66372
|
(closeClick)="showSendMethodDialog = false"
|
|
66269
66373
|
(okClick)="handleSendMethodOkClick($event)"
|
|
66270
66374
|
></co-send-method-dialog>
|
|
66271
66375
|
}
|
|
66272
|
-
@if (packageLSP
|
|
66376
|
+
@if (packageLSP) {
|
|
66273
66377
|
<div class="delivery-method-wrapper">
|
|
66274
66378
|
<span [textContent]="'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize"></span>
|
|
66275
|
-
<div class="methods-wrapper narrow-scrollbar">
|
|
66379
|
+
<div class="methods-wrapper narrow-scrollbar" [class.disabled]="trackAndTraceCreated">
|
|
66276
66380
|
@for (method of deliveryMethods; track method) {
|
|
66277
66381
|
<div class="method" [class.selected]="selectedDeliveryMethod === method"
|
|
66278
66382
|
(click)="deliveryMethodChange(method)"
|
|
@@ -66291,6 +66395,22 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66291
66395
|
</div>
|
|
66292
66396
|
</div>
|
|
66293
66397
|
}
|
|
66398
|
+
@if (packageLSP?.length === 0 && prePackageInfo) {
|
|
66399
|
+
<div class="header-info-wrapper">
|
|
66400
|
+
<div class="block">
|
|
66401
|
+
<span class="header" [textContent]="'LINES_AMOUNT' | localize"></span>
|
|
66402
|
+
<span class="text" [textContent]="prePackageInfo.lineCount"></span>
|
|
66403
|
+
</div>
|
|
66404
|
+
<div class="block">
|
|
66405
|
+
<span class="header" [textContent]="'ARTICLE_AMOUNT' | localize"></span>
|
|
66406
|
+
<span class="text" [textContent]="prePackageInfo.productCount"></span>
|
|
66407
|
+
</div>
|
|
66408
|
+
<div class="block">
|
|
66409
|
+
<span class="header" [textContent]="'TOTAL_WEIGHT' | localize"></span>
|
|
66410
|
+
<span class="text" [textContent]="prePackageInfo.totalWeight + ' kg'"></span>
|
|
66411
|
+
</div>
|
|
66412
|
+
</div>
|
|
66413
|
+
}
|
|
66294
66414
|
@for (lsp of packageLSP; track lsp) {
|
|
66295
66415
|
<div class="header-info-wrapper">
|
|
66296
66416
|
<div class="block">
|
|
@@ -66314,7 +66434,7 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66314
66434
|
|
|
66315
66435
|
@if (packageLSP?.length === 0) {
|
|
66316
66436
|
<div class="send-button-wrapper">
|
|
66317
|
-
<co-button (click)="createTrackAndTrace()" [label]="'SEND' | localize"></co-button>
|
|
66437
|
+
<co-button [disabled]="!selectedDeliveryMethod" (click)="createTrackAndTrace()" [label]="'SEND' | localize"></co-button>
|
|
66318
66438
|
</div>
|
|
66319
66439
|
}
|
|
66320
66440
|
|
|
@@ -66324,8 +66444,10 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66324
66444
|
<div class="track-and-trace-body-wrapper">
|
|
66325
66445
|
<div class="code-wrapper">
|
|
66326
66446
|
<span [textContent]="'TRACK_AND_TRACE' | localize"></span>
|
|
66327
|
-
<span [textContent]="packageLsp ? packageLsp.trackAndTraceCode : '--'"></span>
|
|
66447
|
+
<span class="bold" [textContent]="packageLsp ? packageLsp.trackAndTraceCode : '--'"></span>
|
|
66328
66448
|
</div>
|
|
66449
|
+
<span [textContent]="'BARCODE_FOR_PACKAGE' | localize"></span>
|
|
66450
|
+
<co-barcode [value]="packageLsp.trackAndTraceCode"></co-barcode>
|
|
66329
66451
|
<a class="link" (click)="openTrackAndTraceURL(packageLsp)"
|
|
66330
66452
|
[textContent]="packageLsp ? packageLsp.trackAndTraceUrl : '--'"></a>
|
|
66331
66453
|
<co-quick-send-button
|
|
@@ -66353,7 +66475,7 @@ class TransactionQuickAccessPlanningPopupComponent {
|
|
|
66353
66475
|
</ng-template>
|
|
66354
66476
|
|
|
66355
66477
|
</co-dialog>
|
|
66356
|
-
`, isInline: true, dependencies: [{ kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: i2$2.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "hideSignatureBtn", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode", "emailViaTextField", "isMontrieursDelivery"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { 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: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputRadioButtonComponent, selector: "co-input-radio-button" }, { kind: "component", type: i1$1.ImageComponent, selector: "co-image", inputs: ["source", "placeHolder"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
66478
|
+
`, isInline: true, dependencies: [{ kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: i2$2.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "hideSignatureBtn", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode", "emailViaTextField", "isMontrieursDelivery"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { 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: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputRadioButtonComponent, selector: "co-input-radio-button" }, { kind: "component", type: i1$1.ImageComponent, selector: "co-image", inputs: ["source", "placeHolder"] }, { kind: "component", type: i1$1.BarcodeComponent, selector: "co-barcode", inputs: ["value"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
66357
66479
|
}
|
|
66358
66480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningPopupComponent, decorators: [{
|
|
66359
66481
|
type: Component,
|
|
@@ -66374,20 +66496,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66374
66496
|
[headerTitle]="'Verzendmethode'"
|
|
66375
66497
|
[printerList]="printerList"
|
|
66376
66498
|
[defaultSendMethod]="defaultSendMethod"
|
|
66377
|
-
[visibleMethods]="
|
|
66499
|
+
[visibleMethods]="visibleMethods"
|
|
66378
66500
|
[printLayouts]="printLayouts"
|
|
66379
66501
|
[isDocSignEnabled]="false"
|
|
66380
66502
|
[layoutCode]="layoutCode"
|
|
66381
66503
|
[disablePdfPreview]="disablePdfPreview"
|
|
66382
66504
|
[(reportingDocumentPrintRequest)]="printRequest"
|
|
66505
|
+
[(reportingDocumentPdfRequest)]="reportDocumentLspPdfRequest"
|
|
66383
66506
|
(closeClick)="showSendMethodDialog = false"
|
|
66384
66507
|
(okClick)="handleSendMethodOkClick($event)"
|
|
66385
66508
|
></co-send-method-dialog>
|
|
66386
66509
|
}
|
|
66387
|
-
@if (packageLSP
|
|
66510
|
+
@if (packageLSP) {
|
|
66388
66511
|
<div class="delivery-method-wrapper">
|
|
66389
66512
|
<span [textContent]="'LOGISTICS_SERVICE_PROVIDER_CHOICE' | localize"></span>
|
|
66390
|
-
<div class="methods-wrapper narrow-scrollbar">
|
|
66513
|
+
<div class="methods-wrapper narrow-scrollbar" [class.disabled]="trackAndTraceCreated">
|
|
66391
66514
|
@for (method of deliveryMethods; track method) {
|
|
66392
66515
|
<div class="method" [class.selected]="selectedDeliveryMethod === method"
|
|
66393
66516
|
(click)="deliveryMethodChange(method)"
|
|
@@ -66406,6 +66529,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66406
66529
|
</div>
|
|
66407
66530
|
</div>
|
|
66408
66531
|
}
|
|
66532
|
+
@if (packageLSP?.length === 0 && prePackageInfo) {
|
|
66533
|
+
<div class="header-info-wrapper">
|
|
66534
|
+
<div class="block">
|
|
66535
|
+
<span class="header" [textContent]="'LINES_AMOUNT' | localize"></span>
|
|
66536
|
+
<span class="text" [textContent]="prePackageInfo.lineCount"></span>
|
|
66537
|
+
</div>
|
|
66538
|
+
<div class="block">
|
|
66539
|
+
<span class="header" [textContent]="'ARTICLE_AMOUNT' | localize"></span>
|
|
66540
|
+
<span class="text" [textContent]="prePackageInfo.productCount"></span>
|
|
66541
|
+
</div>
|
|
66542
|
+
<div class="block">
|
|
66543
|
+
<span class="header" [textContent]="'TOTAL_WEIGHT' | localize"></span>
|
|
66544
|
+
<span class="text" [textContent]="prePackageInfo.totalWeight + ' kg'"></span>
|
|
66545
|
+
</div>
|
|
66546
|
+
</div>
|
|
66547
|
+
}
|
|
66409
66548
|
@for (lsp of packageLSP; track lsp) {
|
|
66410
66549
|
<div class="header-info-wrapper">
|
|
66411
66550
|
<div class="block">
|
|
@@ -66429,7 +66568,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66429
66568
|
|
|
66430
66569
|
@if (packageLSP?.length === 0) {
|
|
66431
66570
|
<div class="send-button-wrapper">
|
|
66432
|
-
<co-button (click)="createTrackAndTrace()" [label]="'SEND' | localize"></co-button>
|
|
66571
|
+
<co-button [disabled]="!selectedDeliveryMethod" (click)="createTrackAndTrace()" [label]="'SEND' | localize"></co-button>
|
|
66433
66572
|
</div>
|
|
66434
66573
|
}
|
|
66435
66574
|
|
|
@@ -66439,8 +66578,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66439
66578
|
<div class="track-and-trace-body-wrapper">
|
|
66440
66579
|
<div class="code-wrapper">
|
|
66441
66580
|
<span [textContent]="'TRACK_AND_TRACE' | localize"></span>
|
|
66442
|
-
<span [textContent]="packageLsp ? packageLsp.trackAndTraceCode : '--'"></span>
|
|
66581
|
+
<span class="bold" [textContent]="packageLsp ? packageLsp.trackAndTraceCode : '--'"></span>
|
|
66443
66582
|
</div>
|
|
66583
|
+
<span [textContent]="'BARCODE_FOR_PACKAGE' | localize"></span>
|
|
66584
|
+
<co-barcode [value]="packageLsp.trackAndTraceCode"></co-barcode>
|
|
66444
66585
|
<a class="link" (click)="openTrackAndTraceURL(packageLsp)"
|
|
66445
66586
|
[textContent]="packageLsp ? packageLsp.trackAndTraceUrl : '--'"></a>
|
|
66446
66587
|
<co-quick-send-button
|
|
@@ -66480,6 +66621,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66480
66621
|
type: Input
|
|
66481
66622
|
}], deliveryMethods: [{
|
|
66482
66623
|
type: Input
|
|
66624
|
+
}], prePackageInfo: [{
|
|
66625
|
+
type: Input
|
|
66483
66626
|
}], close: [{
|
|
66484
66627
|
type: Output
|
|
66485
66628
|
}], autoPrinted: [{
|
|
@@ -66508,6 +66651,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
66508
66651
|
showLspPopup = false;
|
|
66509
66652
|
packageLSP = [];
|
|
66510
66653
|
deliveryMethods;
|
|
66654
|
+
prePackageInfo;
|
|
66511
66655
|
get lspMode() {
|
|
66512
66656
|
return this._deliveryPlanningService.lspMode;
|
|
66513
66657
|
}
|
|
@@ -66560,9 +66704,17 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
66560
66704
|
this.changeDetector.detectChanges();
|
|
66561
66705
|
}
|
|
66562
66706
|
this._connector.getPackageInformation(this.transactionInfo.uuid, this.selectedLines[0].uuid).then((result) => {
|
|
66707
|
+
if (!result) {
|
|
66708
|
+
return;
|
|
66709
|
+
}
|
|
66563
66710
|
if (result.length) {
|
|
66564
66711
|
this.packageLSP = result;
|
|
66565
66712
|
}
|
|
66713
|
+
else {
|
|
66714
|
+
this._getPrePackageInfo().then((prePackageInfo) => {
|
|
66715
|
+
this.prePackageInfo = prePackageInfo;
|
|
66716
|
+
});
|
|
66717
|
+
}
|
|
66566
66718
|
this.showLspPopup = true;
|
|
66567
66719
|
this.changeDetector.detectChanges();
|
|
66568
66720
|
});
|
|
@@ -66615,6 +66767,27 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
66615
66767
|
handleClose() {
|
|
66616
66768
|
this.showLspPopup = false;
|
|
66617
66769
|
}
|
|
66770
|
+
async _getPrePackageInfo() {
|
|
66771
|
+
// the backend rejects text lines and lines without a positive amount
|
|
66772
|
+
const lines = this.selectedLines.filter((line) => line.isArticle && line.amount > 0);
|
|
66773
|
+
if (!lines.length) {
|
|
66774
|
+
return undefined;
|
|
66775
|
+
}
|
|
66776
|
+
const request = new PrePackageInfoRequest();
|
|
66777
|
+
request.transactionUUID = this.transactionInfo.uuid;
|
|
66778
|
+
request.lines = lines.map((line) => {
|
|
66779
|
+
const lspLine = new TransactionLspRequestLine();
|
|
66780
|
+
lspLine.lineUUID = line.uuid;
|
|
66781
|
+
lspLine.amount = line.amount;
|
|
66782
|
+
return lspLine;
|
|
66783
|
+
});
|
|
66784
|
+
const prePackageInfo = await this.transactionService.getPrePackageInfo(request);
|
|
66785
|
+
if (prePackageInfo) {
|
|
66786
|
+
// the backend does not round the weight
|
|
66787
|
+
prePackageInfo.totalWeight = Math.round(prePackageInfo.totalWeight * 100) / 100;
|
|
66788
|
+
}
|
|
66789
|
+
return prePackageInfo;
|
|
66790
|
+
}
|
|
66618
66791
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionConnectorService }, { token: DeliveryPlanningService }, { token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
66619
66792
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPlanningComponent, isStandalone: false, selector: "co-transaction-quick-access-planning", host: { properties: { "class.co-transaction-quick-access-planning": "this.showClass" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
66620
66793
|
<div class="planning-buttons">
|
|
@@ -66630,7 +66803,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
66630
66803
|
|
|
66631
66804
|
|
|
66632
66805
|
@if (showLspPopup) {
|
|
66633
|
-
<co-transaction-quick-access-planning-popup [packageLSP]="packageLSP" [deliveryMethods]="deliveryMethods" (createdTrackAndTrace)="handleCreatedTrackAndTrace($event)"
|
|
66806
|
+
<co-transaction-quick-access-planning-popup [packageLSP]="packageLSP" [prePackageInfo]="prePackageInfo" [deliveryMethods]="deliveryMethods" (createdTrackAndTrace)="handleCreatedTrackAndTrace($event)"
|
|
66634
66807
|
(close)="handleClose()" ></co-transaction-quick-access-planning-popup>
|
|
66635
66808
|
}
|
|
66636
66809
|
|
|
@@ -66644,7 +66817,7 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
|
|
|
66644
66817
|
</div>
|
|
66645
66818
|
}
|
|
66646
66819
|
|
|
66647
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: TransactionQuickAccessPlanningPopupComponent, selector: "co-transaction-quick-access-planning-popup", inputs: ["lspDialogType", "autoPrint", "packageLSP", "deliveryMethods"], outputs: ["close", "autoPrinted", "createdTrackAndTrace"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
66820
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: TransactionQuickAccessPlanningPopupComponent, selector: "co-transaction-quick-access-planning-popup", inputs: ["lspDialogType", "autoPrint", "packageLSP", "deliveryMethods", "prePackageInfo"], outputs: ["close", "autoPrinted", "createdTrackAndTrace"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
66648
66821
|
}
|
|
66649
66822
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningComponent, decorators: [{
|
|
66650
66823
|
type: Component,
|
|
@@ -66664,7 +66837,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66664
66837
|
|
|
66665
66838
|
|
|
66666
66839
|
@if (showLspPopup) {
|
|
66667
|
-
<co-transaction-quick-access-planning-popup [packageLSP]="packageLSP" [deliveryMethods]="deliveryMethods" (createdTrackAndTrace)="handleCreatedTrackAndTrace($event)"
|
|
66840
|
+
<co-transaction-quick-access-planning-popup [packageLSP]="packageLSP" [prePackageInfo]="prePackageInfo" [deliveryMethods]="deliveryMethods" (createdTrackAndTrace)="handleCreatedTrackAndTrace($event)"
|
|
66668
66841
|
(close)="handleClose()" ></co-transaction-quick-access-planning-popup>
|
|
66669
66842
|
}
|
|
66670
66843
|
|
|
@@ -68067,6 +68240,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
68067
68240
|
|
|
68068
68241
|
class TransactionLineSidePanelArticleDetailsComponent {
|
|
68069
68242
|
iconCacheService;
|
|
68243
|
+
_transactionSettingsService;
|
|
68070
68244
|
icons = Icon;
|
|
68071
68245
|
set suppliers(value) {
|
|
68072
68246
|
this._suppliers = value;
|
|
@@ -68100,8 +68274,21 @@ class TransactionLineSidePanelArticleDetailsComponent {
|
|
|
68100
68274
|
showClass() {
|
|
68101
68275
|
return true;
|
|
68102
68276
|
}
|
|
68103
|
-
|
|
68277
|
+
currencySymbol = '€';
|
|
68278
|
+
_subs = [];
|
|
68279
|
+
constructor(iconCacheService, _transactionSettingsService) {
|
|
68104
68280
|
this.iconCacheService = iconCacheService;
|
|
68281
|
+
this._transactionSettingsService = _transactionSettingsService;
|
|
68282
|
+
}
|
|
68283
|
+
ngOnInit() {
|
|
68284
|
+
this._subs.push(this._transactionSettingsService.settingsLoaded.subscribe((loaded) => {
|
|
68285
|
+
if (loaded) {
|
|
68286
|
+
this.currencySymbol = this._transactionSettingsService.settings.currencySymbol;
|
|
68287
|
+
}
|
|
68288
|
+
}));
|
|
68289
|
+
}
|
|
68290
|
+
ngOnDestroy() {
|
|
68291
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
68105
68292
|
}
|
|
68106
68293
|
handleCancelClick() {
|
|
68107
68294
|
this.closeSideBarClicked.emit();
|
|
@@ -68149,7 +68336,7 @@ class TransactionLineSidePanelArticleDetailsComponent {
|
|
|
68149
68336
|
this.alternateSuppliers.push(alternateSupplier);
|
|
68150
68337
|
});
|
|
68151
68338
|
}
|
|
68152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelArticleDetailsComponent, deps: [{ token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
68339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelArticleDetailsComponent, deps: [{ token: IconCacheService }, { token: TransactionSettingsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
68153
68340
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionLineSidePanelArticleDetailsComponent, isStandalone: false, selector: "co-transaction-line-side-panel-article-details", inputs: { suppliers: "suppliers", warehouses: "warehouses", purchaseAdviceLine: "purchaseAdviceLine", onlySupplierAvailable: "onlySupplierAvailable" }, outputs: { purchaseAdviceLineChange: "purchaseAdviceLineChange", closeSideBarClicked: "closeSideBarClicked" }, host: { properties: { "class.co-transaction-line-side-panel-article-details": "this.showClass" } }, ngImport: i0, template: `
|
|
68154
68341
|
<div class="transaction-line-side-panel-article-details-wrapper">
|
|
68155
68342
|
<co-icon (click)="handleCancelClick()" [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
@@ -68178,7 +68365,7 @@ class TransactionLineSidePanelArticleDetailsComponent {
|
|
|
68178
68365
|
<div class="transaction-line-side-panel-article-details-header-item last-item-margin">
|
|
68179
68366
|
<span class="side-panel-header-label" [textContent]="'PRICE' | localize"></span>
|
|
68180
68367
|
<span class="side-panel-header-field"
|
|
68181
|
-
[textContent]="purchaseAdviceLine.purchasePrice ? (purchaseAdviceLine.purchasePrice | priceDisplay) : '-'"></span>
|
|
68368
|
+
[textContent]="purchaseAdviceLine.purchasePrice ? (purchaseAdviceLine.purchasePrice | priceDisplay:currencySymbol) : '-'"></span>
|
|
68182
68369
|
</div>
|
|
68183
68370
|
|
|
68184
68371
|
</div>
|
|
@@ -68418,7 +68605,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
68418
68605
|
<div class="transaction-line-side-panel-article-details-header-item last-item-margin">
|
|
68419
68606
|
<span class="side-panel-header-label" [textContent]="'PRICE' | localize"></span>
|
|
68420
68607
|
<span class="side-panel-header-field"
|
|
68421
|
-
[textContent]="purchaseAdviceLine.purchasePrice ? (purchaseAdviceLine.purchasePrice | priceDisplay) : '-'"></span>
|
|
68608
|
+
[textContent]="purchaseAdviceLine.purchasePrice ? (purchaseAdviceLine.purchasePrice | priceDisplay:currencySymbol) : '-'"></span>
|
|
68422
68609
|
</div>
|
|
68423
68610
|
|
|
68424
68611
|
</div>
|
|
@@ -68628,7 +68815,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
68628
68815
|
encapsulation: ViewEncapsulation.None,
|
|
68629
68816
|
standalone: false
|
|
68630
68817
|
}]
|
|
68631
|
-
}], ctorParameters: () => [{ type: IconCacheService }], propDecorators: { suppliers: [{
|
|
68818
|
+
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionSettingsService }], propDecorators: { suppliers: [{
|
|
68632
68819
|
type: Input
|
|
68633
68820
|
}], warehouses: [{
|
|
68634
68821
|
type: Input
|
|
@@ -83948,7 +84135,8 @@ class TransactionQuickAccessPlanningModule {
|
|
|
83948
84135
|
InputRadioButtonModule,
|
|
83949
84136
|
ImageModule,
|
|
83950
84137
|
TransactionButtonModule,
|
|
83951
|
-
InputCheckboxModule
|
|
84138
|
+
InputCheckboxModule,
|
|
84139
|
+
BarcodeModule], exports: [TransactionQuickAccessPlanningComponent,
|
|
83952
84140
|
TransactionQuickAccessPlanningPopupComponent] });
|
|
83953
84141
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningModule, imports: [CommonModule,
|
|
83954
84142
|
InputSearchModule,
|
|
@@ -83966,7 +84154,8 @@ class TransactionQuickAccessPlanningModule {
|
|
|
83966
84154
|
InputRadioButtonModule,
|
|
83967
84155
|
ImageModule,
|
|
83968
84156
|
TransactionButtonModule,
|
|
83969
|
-
InputCheckboxModule
|
|
84157
|
+
InputCheckboxModule,
|
|
84158
|
+
BarcodeModule] });
|
|
83970
84159
|
}
|
|
83971
84160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPlanningModule, decorators: [{
|
|
83972
84161
|
type: NgModule,
|
|
@@ -83988,7 +84177,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
83988
84177
|
InputRadioButtonModule,
|
|
83989
84178
|
ImageModule,
|
|
83990
84179
|
TransactionButtonModule,
|
|
83991
|
-
InputCheckboxModule
|
|
84180
|
+
InputCheckboxModule,
|
|
84181
|
+
BarcodeModule
|
|
83992
84182
|
],
|
|
83993
84183
|
declarations: [
|
|
83994
84184
|
TransactionQuickAccessPlanningComponent,
|
|
@@ -88613,6 +88803,7 @@ class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseCo
|
|
|
88613
88803
|
canEditSpecialDiscount = false;
|
|
88614
88804
|
canEditQuantumDiscount = false;
|
|
88615
88805
|
async ngOnInit() {
|
|
88806
|
+
super.ngOnInit();
|
|
88616
88807
|
this.showDiscountCode = (await this.transactionService.getInternalParameter(InternalParam.DiscountCode)) && this.transactionInfo.transactionKind !== TransactionKind.PurchaseOrder;
|
|
88617
88808
|
this._detectChanges();
|
|
88618
88809
|
}
|
|
@@ -88704,8 +88895,9 @@ class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseCo
|
|
|
88704
88895
|
}
|
|
88705
88896
|
if (this.transactionLine && this.transactionLine.isArticle && priceListType) {
|
|
88706
88897
|
this.transactionService.getPriceListsByArchetype(priceListType).then((lists) => {
|
|
88707
|
-
const priceList = lists.find(l => l.
|
|
88708
|
-
this.transactionLine.priceListDescription = priceList ? priceList.description :
|
|
88898
|
+
const priceList = lists.find(l => l.listCode === this.transactionLine.priceListCode);
|
|
88899
|
+
this.transactionLine.priceListDescription = priceList ? priceList.description : this.transactionLine.priceListCode;
|
|
88900
|
+
this.changeDetector.detectChanges();
|
|
88709
88901
|
});
|
|
88710
88902
|
}
|
|
88711
88903
|
}
|
|
@@ -88840,12 +89032,7 @@ class DialogTransactionLineDiscountComponent extends DialogTransactionLineBaseCo
|
|
|
88840
89032
|
<co-button
|
|
88841
89033
|
class="save-button"
|
|
88842
89034
|
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
88843
|
-
(click)="handleCloseDialog($event, buttonType.
|
|
88844
|
-
</co-button>
|
|
88845
|
-
<co-button
|
|
88846
|
-
class="close-button"
|
|
88847
|
-
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
88848
|
-
(click)="handleCloseDialog($event, buttonType.Cancel)">
|
|
89035
|
+
(click)="handleCloseDialog($event, buttonType.Save)">
|
|
88849
89036
|
</co-button>
|
|
88850
89037
|
</div>
|
|
88851
89038
|
</ng-template>
|
|
@@ -88989,12 +89176,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
88989
89176
|
<co-button
|
|
88990
89177
|
class="save-button"
|
|
88991
89178
|
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
88992
|
-
(click)="handleCloseDialog($event, buttonType.
|
|
88993
|
-
</co-button>
|
|
88994
|
-
<co-button
|
|
88995
|
-
class="close-button"
|
|
88996
|
-
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
88997
|
-
(click)="handleCloseDialog($event, buttonType.Cancel)">
|
|
89179
|
+
(click)="handleCloseDialog($event, buttonType.Save)">
|
|
88998
89180
|
</co-button>
|
|
88999
89181
|
</div>
|
|
89000
89182
|
</ng-template>
|
|
@@ -94512,6 +94694,7 @@ class TransactionPurchaseOrderLineBaseComponent extends TransactionLineBaseCompo
|
|
|
94512
94694
|
colorIndicatorColor;
|
|
94513
94695
|
originalSupplConfirmationDate = null;
|
|
94514
94696
|
originalConfirmedPrice;
|
|
94697
|
+
_loadingPurchaseLine = false;
|
|
94515
94698
|
subs = [];
|
|
94516
94699
|
globalConfirmationDate = null;
|
|
94517
94700
|
_purchasePortalLinesResponse;
|
|
@@ -94617,9 +94800,10 @@ class TransactionPurchaseOrderLineBaseComponent extends TransactionLineBaseCompo
|
|
|
94617
94800
|
this._getPurchasePortalLine();
|
|
94618
94801
|
}
|
|
94619
94802
|
async _getPurchasePortalLine() {
|
|
94620
|
-
if (!this.transactionInfo || !this.transactionLine || !this.visible || this.transactionLine.purchasePortalLine) {
|
|
94803
|
+
if (!this.transactionInfo || !this.transactionLine || !this.visible || (this.transactionLine.purchasePortalLine && this.transactionLine.purchasePortalLine.lineId) || this._loadingPurchaseLine) {
|
|
94621
94804
|
return;
|
|
94622
94805
|
}
|
|
94806
|
+
this._loadingPurchaseLine = true;
|
|
94623
94807
|
const getPurchasePortalLine = new GetPurchasePortalLine();
|
|
94624
94808
|
const purchasePortalFilter = new PurchasePortalFilters();
|
|
94625
94809
|
purchasePortalFilter.purchaseOrderNo = this.transactionInfo.transactionNr.toString();
|
|
@@ -94637,6 +94821,7 @@ class TransactionPurchaseOrderLineBaseComponent extends TransactionLineBaseCompo
|
|
|
94637
94821
|
this.transactionEventService.transactionLineChanged.next(this.transactionLine);
|
|
94638
94822
|
this.detectChanges();
|
|
94639
94823
|
}
|
|
94824
|
+
this._loadingPurchaseLine = false;
|
|
94640
94825
|
}
|
|
94641
94826
|
_handleConfirmationOverwrite() {
|
|
94642
94827
|
if (this.transactionLine.purchasePortalLine) {
|
|
@@ -97057,6 +97242,7 @@ class TransactionLineSidePanelServiceModule {
|
|
|
97057
97242
|
TransactionLineSalesDeliveryModule,
|
|
97058
97243
|
TransactionLineSidePanelToBePickedModule,
|
|
97059
97244
|
TransactionLineSidePanelPickedModule,
|
|
97245
|
+
TransactionLineSidePanelPlanningModule,
|
|
97060
97246
|
TransactionLineSidePanelDefaultModule], exports: [TransactionLineSidePanelServiceComponent] });
|
|
97061
97247
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelServiceModule, imports: [CommonModule,
|
|
97062
97248
|
ButtonModule,
|
|
@@ -97068,6 +97254,7 @@ class TransactionLineSidePanelServiceModule {
|
|
|
97068
97254
|
TransactionLineSalesDeliveryModule,
|
|
97069
97255
|
TransactionLineSidePanelToBePickedModule,
|
|
97070
97256
|
TransactionLineSidePanelPickedModule,
|
|
97257
|
+
TransactionLineSidePanelPlanningModule,
|
|
97071
97258
|
TransactionLineSidePanelDefaultModule] });
|
|
97072
97259
|
}
|
|
97073
97260
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelServiceModule, decorators: [{
|
|
@@ -97084,6 +97271,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
97084
97271
|
TransactionLineSalesDeliveryModule,
|
|
97085
97272
|
TransactionLineSidePanelToBePickedModule,
|
|
97086
97273
|
TransactionLineSidePanelPickedModule,
|
|
97274
|
+
TransactionLineSidePanelPlanningModule,
|
|
97087
97275
|
TransactionLineSidePanelDefaultModule,
|
|
97088
97276
|
],
|
|
97089
97277
|
declarations: [
|
|
@@ -111940,6 +112128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111940
112128
|
|
|
111941
112129
|
class TransactionLineSidePanelReplenishmentArticleDetailsComponent {
|
|
111942
112130
|
iconCacheService;
|
|
112131
|
+
_transactionSettingsService;
|
|
111943
112132
|
icons = Icon;
|
|
111944
112133
|
set stockReplenishment(value) {
|
|
111945
112134
|
this._stockReplenishment = value;
|
|
@@ -111956,8 +112145,21 @@ class TransactionLineSidePanelReplenishmentArticleDetailsComponent {
|
|
|
111956
112145
|
showClass() {
|
|
111957
112146
|
return true;
|
|
111958
112147
|
}
|
|
111959
|
-
|
|
112148
|
+
currencySymbol = '€';
|
|
112149
|
+
_subs = [];
|
|
112150
|
+
constructor(iconCacheService, _transactionSettingsService) {
|
|
111960
112151
|
this.iconCacheService = iconCacheService;
|
|
112152
|
+
this._transactionSettingsService = _transactionSettingsService;
|
|
112153
|
+
}
|
|
112154
|
+
ngOnInit() {
|
|
112155
|
+
this._subs.push(this._transactionSettingsService.settingsLoaded.subscribe((loaded) => {
|
|
112156
|
+
if (loaded) {
|
|
112157
|
+
this.currencySymbol = this._transactionSettingsService.settings.currencySymbol;
|
|
112158
|
+
}
|
|
112159
|
+
}));
|
|
112160
|
+
}
|
|
112161
|
+
ngOnDestroy() {
|
|
112162
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
111961
112163
|
}
|
|
111962
112164
|
handleCancelClick() {
|
|
111963
112165
|
this.closeSideBarClicked.emit();
|
|
@@ -111977,7 +112179,7 @@ class TransactionLineSidePanelReplenishmentArticleDetailsComponent {
|
|
|
111977
112179
|
handleModelChange(model) {
|
|
111978
112180
|
this.stockReplenishmentChange.emit(this.stockReplenishment);
|
|
111979
112181
|
}
|
|
111980
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelReplenishmentArticleDetailsComponent, deps: [{ token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
112182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineSidePanelReplenishmentArticleDetailsComponent, deps: [{ token: IconCacheService }, { token: TransactionSettingsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111981
112183
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionLineSidePanelReplenishmentArticleDetailsComponent, isStandalone: false, selector: "co-transaction-line-side-panel-replenishment-article-details", inputs: { stockReplenishment: "stockReplenishment", onlySupplierAvailable: "onlySupplierAvailable" }, outputs: { stockReplenishmentChange: "stockReplenishmentChange", closeSideBarClicked: "closeSideBarClicked" }, host: { properties: { "class.co-transaction-line-side-panel-article-details": "this.showClass" } }, ngImport: i0, template: `
|
|
111982
112184
|
<div class="transaction-line-side-panel-article-details-wrapper">
|
|
111983
112185
|
<co-icon (click)="handleCancelClick()" [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
@@ -112006,7 +112208,7 @@ class TransactionLineSidePanelReplenishmentArticleDetailsComponent {
|
|
|
112006
112208
|
<div class="transaction-line-side-panel-article-details-header-item last-item-margin">
|
|
112007
112209
|
<span class="side-panel-header-label" [textContent]="'PRICE' | localize"></span>
|
|
112008
112210
|
<span class="side-panel-header-field"
|
|
112009
|
-
[textContent]="stockReplenishment.purchasePrice ? (stockReplenishment.purchasePrice | priceDisplay) : '-'"></span>
|
|
112211
|
+
[textContent]="stockReplenishment.purchasePrice ? (stockReplenishment.purchasePrice | priceDisplay:currencySymbol) : '-'"></span>
|
|
112010
112212
|
</div>
|
|
112011
112213
|
</div>
|
|
112012
112214
|
<div>
|
|
@@ -112186,7 +112388,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
112186
112388
|
<div class="transaction-line-side-panel-article-details-header-item last-item-margin">
|
|
112187
112389
|
<span class="side-panel-header-label" [textContent]="'PRICE' | localize"></span>
|
|
112188
112390
|
<span class="side-panel-header-field"
|
|
112189
|
-
[textContent]="stockReplenishment.purchasePrice ? (stockReplenishment.purchasePrice | priceDisplay) : '-'"></span>
|
|
112391
|
+
[textContent]="stockReplenishment.purchasePrice ? (stockReplenishment.purchasePrice | priceDisplay:currencySymbol) : '-'"></span>
|
|
112190
112392
|
</div>
|
|
112191
112393
|
</div>
|
|
112192
112394
|
<div>
|
|
@@ -112336,7 +112538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
112336
112538
|
encapsulation: ViewEncapsulation.None,
|
|
112337
112539
|
standalone: false
|
|
112338
112540
|
}]
|
|
112339
|
-
}], ctorParameters: () => [{ type: IconCacheService }], propDecorators: { stockReplenishment: [{
|
|
112541
|
+
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionSettingsService }], propDecorators: { stockReplenishment: [{
|
|
112340
112542
|
type: Input
|
|
112341
112543
|
}], onlySupplierAvailable: [{
|
|
112342
112544
|
type: Input
|