@colijnit/transaction 262.1.4 → 262.1.5
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 +443 -291
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +21 -2
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, EventEmitter, Pipe, HostBinding, Input, ViewEncapsulation, Component, Injector, InjectionToken, Optional, Inject, Output, ContentChildren, Directive, ElementRef, forwardRef, ViewChild, ViewContainerRef, ChangeDetectionStrategy, HostListener, ViewChildren, NgModule, 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, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, InputTextComponent, SimpleGridColumnTemplateType, SimpleGridColumnDirective, FormMasterService, ColumnAlign, OverlayService, ContentViewMode, InputCheckboxComponent, InputDatePickerComponent, InputTextareaComponent, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, IconModule, TooltipDirectiveModule, CheckmarkOverlayModule, PriceDisplayPipeModule, Carousel3dModule, CarouselModule, InputTextareaModule,
|
|
5
|
+
import { BaseModuleService, BaseModuleScreenConfigService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, InputTextComponent, SimpleGridColumnTemplateType, SimpleGridColumnDirective, FormMasterService, ColumnAlign, OverlayService, ContentViewMode, InputCheckboxComponent, FormComponent, InputDatePickerComponent, InputTextareaComponent, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, IconModule, TooltipDirectiveModule, CheckmarkOverlayModule, PriceDisplayPipeModule, Carousel3dModule, CarouselModule, InputTextareaModule, InputDatePickerModule, FilterPipeModule, ObserveVisibilityModule, CoCurrencyPipeModule, ImageModule, FilterViewmodel, CoreComponentsTranslationModule, ColorPickerModule, ClickoutsideModule, OverlayModule, CalendarComponent, InputNumberPickerModule, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, HourSchedulingComponentModule, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateModule, ViewModeButtonsModule, FilterItemMode, FilterItemComponent, FilterItemModule, PaginationModule, PaginationBarModule, IconCollapseHandleModule, PopupModule, CoDialogWizardModule, 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';
|
|
@@ -356,8 +356,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
356
356
|
class Version {
|
|
357
357
|
name = "@colijnit/transaction";
|
|
358
358
|
description = "Colijn IT transaction package";
|
|
359
|
-
symVer = "262.1.
|
|
360
|
-
publishDate = "
|
|
359
|
+
symVer = "262.1.5";
|
|
360
|
+
publishDate = "5-5-2026, 17:41:09";
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -2869,6 +2869,9 @@ class TransactionConnectorAdapterService {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
2871
|
async searchTransactions(request) {
|
|
2872
|
+
if (!this.connector) {
|
|
2873
|
+
return null;
|
|
2874
|
+
}
|
|
2872
2875
|
const response = await this.connector.searchTransactions(request);
|
|
2873
2876
|
if (response.validationResult && response.validationResult.success) {
|
|
2874
2877
|
const result = new TransactionSearchResult();
|
|
@@ -6395,6 +6398,9 @@ class TransactionConnectorAdapterService {
|
|
|
6395
6398
|
}
|
|
6396
6399
|
}
|
|
6397
6400
|
async getObjectConfiguration(screenCfgModule, params, insertMode) {
|
|
6401
|
+
if (!this.mainConnector) {
|
|
6402
|
+
return null;
|
|
6403
|
+
}
|
|
6398
6404
|
const response = await this.mainConnector.getObjectConfigurations(screenCfgModule, params, insertMode);
|
|
6399
6405
|
if (response && response.validationResult && response.validationResult.success) {
|
|
6400
6406
|
return this._boFactory.makeBOArrayFromRawBackendDataArray(ObjectConfiguration, response.resultObjects);
|
|
@@ -10564,7 +10570,8 @@ class TransactionService extends PendingReasonService {
|
|
|
10564
10570
|
[TransactionTypeCategory.SalesOrderDeliveryNote, 7],
|
|
10565
10571
|
[TransactionTypeCategory.SalesOrderInvoice, 8],
|
|
10566
10572
|
[TransactionTypeCategory.PurchaseOrderOrderConfirmation, 1],
|
|
10567
|
-
[TransactionTypeCategory.PurchaseOrderReceivedGoods, 3]
|
|
10573
|
+
[TransactionTypeCategory.PurchaseOrderReceivedGoods, 3],
|
|
10574
|
+
[TransactionTypeCategory.InterbranchOrderReceivedGoods, 5]
|
|
10568
10575
|
]);
|
|
10569
10576
|
_restrictedUserRoles = [UserRoleType.Customer, UserRoleType.SupplierContract, UserRoleType.SupplierContract, UserRoleType.DepartmentManager,
|
|
10570
10577
|
UserRoleType.CustomerContact, UserRoleType.CustomerAdminUser, UserRoleType.AbsenceSupservisor];
|
|
@@ -15583,7 +15590,9 @@ class TransactionLineToolbarComponent {
|
|
|
15583
15590
|
}
|
|
15584
15591
|
async ngOnInit() {
|
|
15585
15592
|
this._transactionKind = this._transactionService.currentTransaction.transactionInfo.transactionKind;
|
|
15586
|
-
this.canCreateService = this._transactionKind === TransactionKind.SalesOrder
|
|
15593
|
+
this.canCreateService = ((this._transactionKind === TransactionKind.SalesOrder)
|
|
15594
|
+
&& (this.transactionLine && this.transactionLine.articleLineStatus
|
|
15595
|
+
&& this.transactionLine.articleLineStatus.quantityDelivered && this.transactionLine.articleLineStatus.quantityDelivered > 0));
|
|
15587
15596
|
this.canReopenExternalOrder = this._isReopenableExternalCatalogLine();
|
|
15588
15597
|
this.conversionUnitsAvailable = await this._getConversionUnitsAvailable();
|
|
15589
15598
|
this.areAllowedToChangeOrder = (this._transactionKind !== TransactionKind.SalesOrder || !(this._transactionService.invoiceCompleted && !this._transactionService.canChangeSalesOrderWhenFullyInvoiced));
|
|
@@ -18846,7 +18855,7 @@ class TransactionHistoryGridComponent {
|
|
|
18846
18855
|
</co-simple-grid>
|
|
18847
18856
|
</ng-container>
|
|
18848
18857
|
</div>
|
|
18849
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.GridToolbarButtonComponent, selector: "co-grid-toolbar-button", inputs: ["iconData", "disabled"], outputs: ["buttonClick"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
18858
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.GridToolbarButtonComponent, selector: "co-grid-toolbar-button", inputs: ["iconData", "disabled"], outputs: ["buttonClick"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
18850
18859
|
}
|
|
18851
18860
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHistoryGridComponent, decorators: [{
|
|
18852
18861
|
type: Component,
|
|
@@ -19067,7 +19076,7 @@ class TransactionAvailableStockGridComponent {
|
|
|
19067
19076
|
</co-simple-grid-column>
|
|
19068
19077
|
</co-simple-grid>
|
|
19069
19078
|
</div>
|
|
19070
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
19079
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
19071
19080
|
}
|
|
19072
19081
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionAvailableStockGridComponent, decorators: [{
|
|
19073
19082
|
type: Component,
|
|
@@ -21085,7 +21094,7 @@ class TransactionConfirmationHistoryComponent {
|
|
|
21085
21094
|
-->
|
|
21086
21095
|
</co-simple-grid>
|
|
21087
21096
|
</div>
|
|
21088
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
21097
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
21089
21098
|
}
|
|
21090
21099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionConfirmationHistoryComponent, decorators: [{
|
|
21091
21100
|
type: Component,
|
|
@@ -22103,7 +22112,7 @@ class TransactionHistoryTransportGridComponent {
|
|
|
22103
22112
|
</co-simple-grid>
|
|
22104
22113
|
</ng-container>
|
|
22105
22114
|
</div>
|
|
22106
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.GridToolbarButtonComponent, selector: "co-grid-toolbar-button", inputs: ["iconData", "disabled"], outputs: ["buttonClick"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
22115
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.GridToolbarButtonComponent, selector: "co-grid-toolbar-button", inputs: ["iconData", "disabled"], outputs: ["buttonClick"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
22107
22116
|
}
|
|
22108
22117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHistoryTransportGridComponent, decorators: [{
|
|
22109
22118
|
type: Component,
|
|
@@ -26777,7 +26786,7 @@ class TransactionPurchaseInfoGridComponent {
|
|
|
26777
26786
|
</co-simple-grid-column>
|
|
26778
26787
|
</co-simple-grid>
|
|
26779
26788
|
</div>
|
|
26780
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
26789
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
26781
26790
|
}
|
|
26782
26791
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionPurchaseInfoGridComponent, decorators: [{
|
|
26783
26792
|
type: Component,
|
|
@@ -28797,6 +28806,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
28797
28806
|
class DiscountCodesPopupComponent {
|
|
28798
28807
|
iconCacheService;
|
|
28799
28808
|
transactionService;
|
|
28809
|
+
discountForm;
|
|
28800
28810
|
transactionLine;
|
|
28801
28811
|
discountType;
|
|
28802
28812
|
showDiscountCodesPopup = new EventEmitter();
|
|
@@ -28816,10 +28826,12 @@ class DiscountCodesPopupComponent {
|
|
|
28816
28826
|
this.showDiscountCodesPopup.emit(false);
|
|
28817
28827
|
}
|
|
28818
28828
|
updateDiscount() {
|
|
28819
|
-
this.
|
|
28820
|
-
|
|
28821
|
-
|
|
28822
|
-
|
|
28829
|
+
if (this.discountForm.submit()) {
|
|
28830
|
+
this.discountSet.emit({
|
|
28831
|
+
newDiscountCode: this.selectedDiscountCode.discountCode,
|
|
28832
|
+
newDiscountReason: this.discountRemark
|
|
28833
|
+
});
|
|
28834
|
+
}
|
|
28823
28835
|
}
|
|
28824
28836
|
_getDiscountCodes() {
|
|
28825
28837
|
this.transactionService.getDiscountCodes().then((codes) => {
|
|
@@ -28847,7 +28859,7 @@ class DiscountCodesPopupComponent {
|
|
|
28847
28859
|
});
|
|
28848
28860
|
}
|
|
28849
28861
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DiscountCodesPopupComponent, deps: [{ token: IconCacheService }, { token: TransactionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
28850
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DiscountCodesPopupComponent, isStandalone: false, selector: "co-discount-codes-popup", inputs: { transactionLine: "transactionLine", discountType: "discountType" }, outputs: { showDiscountCodesPopup: "showDiscountCodesPopup", discountSet: "discountSet" }, ngImport: i0, template: `
|
|
28862
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DiscountCodesPopupComponent, isStandalone: false, selector: "co-discount-codes-popup", inputs: { transactionLine: "transactionLine", discountType: "discountType" }, outputs: { showDiscountCodesPopup: "showDiscountCodesPopup", discountSet: "discountSet" }, viewQueries: [{ propertyName: "discountForm", first: true, predicate: FormComponent, descendants: true }], ngImport: i0, template: `
|
|
28851
28863
|
<co-dialog
|
|
28852
28864
|
class="discount-codes-modal"
|
|
28853
28865
|
[showCloseIcon]="true"
|
|
@@ -28855,16 +28867,20 @@ class DiscountCodesPopupComponent {
|
|
|
28855
28867
|
[headerTemplate]="headerTemplate"
|
|
28856
28868
|
[footerTemplate]="footerTemplate"
|
|
28857
28869
|
(closeClick)="hideModal()">
|
|
28858
|
-
<co-
|
|
28859
|
-
|
|
28860
|
-
|
|
28861
|
-
|
|
28862
|
-
|
|
28863
|
-
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
|
|
28867
|
-
|
|
28870
|
+
<co-form #discountForm>
|
|
28871
|
+
<co-list-of-values
|
|
28872
|
+
[(model)]="selectedDiscountCode"
|
|
28873
|
+
[collection]="discountCodes"
|
|
28874
|
+
[required]="true"
|
|
28875
|
+
[displayField]="'description'"
|
|
28876
|
+
[label]="'DISCOUNT_REASON' | localize">
|
|
28877
|
+
</co-list-of-values>
|
|
28878
|
+
<co-input-textarea
|
|
28879
|
+
[placeholder]="'REMARK' | localize"
|
|
28880
|
+
[required]="true"
|
|
28881
|
+
[(model)]="discountRemark">
|
|
28882
|
+
</co-input-textarea>
|
|
28883
|
+
</co-form>
|
|
28868
28884
|
</co-dialog>
|
|
28869
28885
|
<ng-template #headerTemplate>
|
|
28870
28886
|
<co-icon [iconData]="iconCacheService.getIcon(icons.PercentSolid)"></co-icon>
|
|
@@ -28884,7 +28900,7 @@ class DiscountCodesPopupComponent {
|
|
|
28884
28900
|
</co-button>
|
|
28885
28901
|
</div>
|
|
28886
28902
|
</ng-template>
|
|
28887
|
-
`, 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: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputTextareaComponent, selector: "co-input-textarea", inputs: ["placeholder"] }, { kind: "component", type: i1$1.ListOfValuesComponent, selector: "co-list-of-values", inputs: ["model", "multiselect", "showToggleAll", "largeCollection", "displayField", "optionIcon", "collection", "collectionLoadFn", "collectionLoadFnProp", "leftIconData", "searchPlaceholder", "searchDisabled", "showChips"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
28903
|
+
`, 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.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { 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.InputTextareaComponent, selector: "co-input-textarea", inputs: ["placeholder"] }, { kind: "component", type: i1$1.ListOfValuesComponent, selector: "co-list-of-values", inputs: ["model", "multiselect", "showToggleAll", "largeCollection", "displayField", "optionIcon", "collection", "collectionLoadFn", "collectionLoadFnProp", "leftIconData", "searchPlaceholder", "searchDisabled", "showChips"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
28888
28904
|
}
|
|
28889
28905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DiscountCodesPopupComponent, decorators: [{
|
|
28890
28906
|
type: Component,
|
|
@@ -28898,16 +28914,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
28898
28914
|
[headerTemplate]="headerTemplate"
|
|
28899
28915
|
[footerTemplate]="footerTemplate"
|
|
28900
28916
|
(closeClick)="hideModal()">
|
|
28901
|
-
<co-
|
|
28902
|
-
|
|
28903
|
-
|
|
28904
|
-
|
|
28905
|
-
|
|
28906
|
-
|
|
28907
|
-
|
|
28908
|
-
|
|
28909
|
-
|
|
28910
|
-
|
|
28917
|
+
<co-form #discountForm>
|
|
28918
|
+
<co-list-of-values
|
|
28919
|
+
[(model)]="selectedDiscountCode"
|
|
28920
|
+
[collection]="discountCodes"
|
|
28921
|
+
[required]="true"
|
|
28922
|
+
[displayField]="'description'"
|
|
28923
|
+
[label]="'DISCOUNT_REASON' | localize">
|
|
28924
|
+
</co-list-of-values>
|
|
28925
|
+
<co-input-textarea
|
|
28926
|
+
[placeholder]="'REMARK' | localize"
|
|
28927
|
+
[required]="true"
|
|
28928
|
+
[(model)]="discountRemark">
|
|
28929
|
+
</co-input-textarea>
|
|
28930
|
+
</co-form>
|
|
28911
28931
|
</co-dialog>
|
|
28912
28932
|
<ng-template #headerTemplate>
|
|
28913
28933
|
<co-icon [iconData]="iconCacheService.getIcon(icons.PercentSolid)"></co-icon>
|
|
@@ -28931,7 +28951,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
28931
28951
|
encapsulation: ViewEncapsulation.None,
|
|
28932
28952
|
standalone: false
|
|
28933
28953
|
}]
|
|
28934
|
-
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionService }], propDecorators: {
|
|
28954
|
+
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionService }], propDecorators: { discountForm: [{
|
|
28955
|
+
type: ViewChild,
|
|
28956
|
+
args: [FormComponent]
|
|
28957
|
+
}], transactionLine: [{
|
|
28935
28958
|
type: Input
|
|
28936
28959
|
}], discountType: [{
|
|
28937
28960
|
type: Input
|
|
@@ -40769,6 +40792,7 @@ class TransactionHeaderDeliveryMethodButtonComponent extends TransactionHeaderBa
|
|
|
40769
40792
|
return true;
|
|
40770
40793
|
}
|
|
40771
40794
|
inputLabel = false;
|
|
40795
|
+
deliveryMethodClicked = new EventEmitter();
|
|
40772
40796
|
showDialog = false;
|
|
40773
40797
|
deliveryMethod = new DeliveryMethod();
|
|
40774
40798
|
deliveryMethods = [];
|
|
@@ -40793,7 +40817,7 @@ class TransactionHeaderDeliveryMethodButtonComponent extends TransactionHeaderBa
|
|
|
40793
40817
|
event.stopPropagation();
|
|
40794
40818
|
event.stopImmediatePropagation();
|
|
40795
40819
|
if (await this.lockTransaction()) {
|
|
40796
|
-
this.showDialog = true;
|
|
40820
|
+
this.inputLabel ? this.deliveryMethodClicked.emit(true) : this.showDialog = true;
|
|
40797
40821
|
this.detectChanges();
|
|
40798
40822
|
}
|
|
40799
40823
|
}
|
|
@@ -40812,52 +40836,52 @@ class TransactionHeaderDeliveryMethodButtonComponent extends TransactionHeaderBa
|
|
|
40812
40836
|
this.detectChanges();
|
|
40813
40837
|
}
|
|
40814
40838
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderDeliveryMethodButtonComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: i1$1.OverlayService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
40815
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionHeaderDeliveryMethodButtonComponent, isStandalone: false, selector: "co-transaction-header-delivery-method-button", inputs: { inputLabel: "inputLabel" }, host: { properties: { "class.co-transaction-header-delivery-method-button": "this.showClass" } }, providers: [
|
|
40839
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionHeaderDeliveryMethodButtonComponent, isStandalone: false, selector: "co-transaction-header-delivery-method-button", inputs: { inputLabel: "inputLabel" }, outputs: { deliveryMethodClicked: "deliveryMethodClicked" }, host: { properties: { "class.co-transaction-header-delivery-method-button": "this.showClass" } }, providers: [
|
|
40816
40840
|
OverlayService,
|
|
40817
40841
|
{
|
|
40818
40842
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
40819
40843
|
useExisting: forwardRef(() => TransactionHeaderDeliveryMethodButtonComponent)
|
|
40820
40844
|
}
|
|
40821
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
40822
|
-
<co-transaction-button class="custom-width"
|
|
40823
|
-
[hidden]="hidden"
|
|
40824
|
-
[label]="deliveryMethod?.description"
|
|
40825
|
-
[readonly]="readonly || transactionHeaderService.readonly"
|
|
40826
|
-
[iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"
|
|
40827
|
-
[tooltip]="tooltipMessage"
|
|
40828
|
-
[inputLabel]="inputLabel"
|
|
40829
|
-
[insideLabel]="'DELIVERY_METHOD' | localize"
|
|
40830
|
-
(click)="showTheDeliveryMethodDialog($event)"
|
|
40831
|
-
></co-transaction-button>
|
|
40832
|
-
@if (showDialog) {
|
|
40833
|
-
<co-dialog-transaction-header-delivery-method
|
|
40834
|
-
[autoClose]="true"
|
|
40835
|
-
(close)="showDialog = false">
|
|
40836
|
-
</co-dialog-transaction-header-delivery-method>
|
|
40837
|
-
}
|
|
40845
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
40846
|
+
<co-transaction-button class="custom-width"
|
|
40847
|
+
[hidden]="hidden"
|
|
40848
|
+
[label]="deliveryMethod?.description"
|
|
40849
|
+
[readonly]="readonly || transactionHeaderService.readonly"
|
|
40850
|
+
[iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"
|
|
40851
|
+
[tooltip]="tooltipMessage"
|
|
40852
|
+
[inputLabel]="inputLabel"
|
|
40853
|
+
[insideLabel]="'DELIVERY_METHOD' | localize"
|
|
40854
|
+
(click)="showTheDeliveryMethodDialog($event)"
|
|
40855
|
+
></co-transaction-button>
|
|
40856
|
+
@if (showDialog) {
|
|
40857
|
+
<co-dialog-transaction-header-delivery-method
|
|
40858
|
+
[autoClose]="true"
|
|
40859
|
+
(close)="showDialog = false">
|
|
40860
|
+
</co-dialog-transaction-header-delivery-method>
|
|
40861
|
+
}
|
|
40838
40862
|
`, isInline: true, dependencies: [{ kind: "component", type: DialogTransactionHeaderDeliveryMethodComponent, selector: "co-dialog-transaction-header-delivery-method" }, { kind: "component", type: TransactionButtonComponent, selector: "co-transaction-button", inputs: ["label", "title", "statusColor", "readonly", "hidden", "forceReadonly", "iconData", "rightIconData", "showCheckMarkLoader", "checkMarkOverlayVisible", "inputLabel", "insideLabel"], outputs: ["iconClicked"] }, { kind: "directive", type: i1$1.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
40839
40863
|
}
|
|
40840
40864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderDeliveryMethodButtonComponent, decorators: [{
|
|
40841
40865
|
type: Component,
|
|
40842
40866
|
args: [{
|
|
40843
40867
|
selector: 'co-transaction-header-delivery-method-button',
|
|
40844
|
-
template: `
|
|
40845
|
-
<co-transaction-button class="custom-width"
|
|
40846
|
-
[hidden]="hidden"
|
|
40847
|
-
[label]="deliveryMethod?.description"
|
|
40848
|
-
[readonly]="readonly || transactionHeaderService.readonly"
|
|
40849
|
-
[iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"
|
|
40850
|
-
[tooltip]="tooltipMessage"
|
|
40851
|
-
[inputLabel]="inputLabel"
|
|
40852
|
-
[insideLabel]="'DELIVERY_METHOD' | localize"
|
|
40853
|
-
(click)="showTheDeliveryMethodDialog($event)"
|
|
40854
|
-
></co-transaction-button>
|
|
40855
|
-
@if (showDialog) {
|
|
40856
|
-
<co-dialog-transaction-header-delivery-method
|
|
40857
|
-
[autoClose]="true"
|
|
40858
|
-
(close)="showDialog = false">
|
|
40859
|
-
</co-dialog-transaction-header-delivery-method>
|
|
40860
|
-
}
|
|
40868
|
+
template: `
|
|
40869
|
+
<co-transaction-button class="custom-width"
|
|
40870
|
+
[hidden]="hidden"
|
|
40871
|
+
[label]="deliveryMethod?.description"
|
|
40872
|
+
[readonly]="readonly || transactionHeaderService.readonly"
|
|
40873
|
+
[iconData]="iconCacheService.getIcon(icons.TruckFastSolid)"
|
|
40874
|
+
[tooltip]="tooltipMessage"
|
|
40875
|
+
[inputLabel]="inputLabel"
|
|
40876
|
+
[insideLabel]="'DELIVERY_METHOD' | localize"
|
|
40877
|
+
(click)="showTheDeliveryMethodDialog($event)"
|
|
40878
|
+
></co-transaction-button>
|
|
40879
|
+
@if (showDialog) {
|
|
40880
|
+
<co-dialog-transaction-header-delivery-method
|
|
40881
|
+
[autoClose]="true"
|
|
40882
|
+
(close)="showDialog = false">
|
|
40883
|
+
</co-dialog-transaction-header-delivery-method>
|
|
40884
|
+
}
|
|
40861
40885
|
`,
|
|
40862
40886
|
providers: [
|
|
40863
40887
|
OverlayService,
|
|
@@ -40875,6 +40899,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
40875
40899
|
args: ['class.co-transaction-header-delivery-method-button']
|
|
40876
40900
|
}], inputLabel: [{
|
|
40877
40901
|
type: Input
|
|
40902
|
+
}], deliveryMethodClicked: [{
|
|
40903
|
+
type: Output
|
|
40878
40904
|
}] } });
|
|
40879
40905
|
|
|
40880
40906
|
class TransactionHeaderDeliverydateDefinitiveButtonComponent extends TransactionHeaderBaseComponent {
|
|
@@ -41395,7 +41421,7 @@ class TransactionHeaderPopupDeliveryComponent extends TransactionHeaderPopupBase
|
|
|
41395
41421
|
</div>
|
|
41396
41422
|
</co-form>
|
|
41397
41423
|
</div>
|
|
41398
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: TransactionHeaderDeliveryOptionsComponent, selector: "co-transaction-header-delivery-options", inputs: ["deliveryMethod"] }, { kind: "component", type: TransactionHeaderRemarksComponent, selector: "co-transaction-header-remarks" }, { kind: "component", type: TransactionHeaderReferenceComponent, selector: "co-transaction-header-reference" }, { kind: "component", type: TransactionHeaderRelationReferenceComponent, selector: "co-transaction-header-relation-reference" }, { kind: "component", type: TransactionHeaderDeliveryMethodButtonComponent, selector: "co-transaction-header-delivery-method-button", inputs: ["inputLabel"] }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderPreferredDeliveryDateComponent, selector: "co-transaction-header-preferred-delivery-date" }, { kind: "component", type: TransactionHeaderDeliverydateDefinitiveButtonComponent, selector: "co-transaction-header-deliverydate-definitive-button", inputs: ["big", "onlyIcon"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionHeaderPreferredDeliveryTimeComponent, selector: "co-transaction-header-preferred-delivery-time" }, { kind: "component", type: TransactionHeaderAssemblyDateComponent, selector: "co-transaction-header-assembly-date" }, { kind: "component", type: TransactionHeaderTotalAssemblyTimeComponent, selector: "co-transaction-header-total-assembly-time" }, { kind: "component", type: TransactionHeaderDistrictComponent, selector: "co-transaction-header-district", inputs: ["inputLabel"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
41424
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: TransactionHeaderDeliveryOptionsComponent, selector: "co-transaction-header-delivery-options", inputs: ["deliveryMethod"] }, { kind: "component", type: TransactionHeaderRemarksComponent, selector: "co-transaction-header-remarks" }, { kind: "component", type: TransactionHeaderReferenceComponent, selector: "co-transaction-header-reference" }, { kind: "component", type: TransactionHeaderRelationReferenceComponent, selector: "co-transaction-header-relation-reference" }, { kind: "component", type: TransactionHeaderDeliveryMethodButtonComponent, selector: "co-transaction-header-delivery-method-button", inputs: ["inputLabel"], outputs: ["deliveryMethodClicked"] }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderPreferredDeliveryDateComponent, selector: "co-transaction-header-preferred-delivery-date" }, { kind: "component", type: TransactionHeaderDeliverydateDefinitiveButtonComponent, selector: "co-transaction-header-deliverydate-definitive-button", inputs: ["big", "onlyIcon"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionHeaderPreferredDeliveryTimeComponent, selector: "co-transaction-header-preferred-delivery-time" }, { kind: "component", type: TransactionHeaderAssemblyDateComponent, selector: "co-transaction-header-assembly-date" }, { kind: "component", type: TransactionHeaderTotalAssemblyTimeComponent, selector: "co-transaction-header-total-assembly-time" }, { kind: "component", type: TransactionHeaderDistrictComponent, selector: "co-transaction-header-district", inputs: ["inputLabel"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
41399
41425
|
}
|
|
41400
41426
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderPopupDeliveryComponent, decorators: [{
|
|
41401
41427
|
type: Component,
|
|
@@ -48546,10 +48572,14 @@ class TransactionLineImageAndDescriptionComponent extends TransactionLineBaseCom
|
|
|
48546
48572
|
transactionLineSet() {
|
|
48547
48573
|
super.transactionLineSet();
|
|
48548
48574
|
this._loadLineImage();
|
|
48549
|
-
if (this.transactionLine.configurationText) {
|
|
48575
|
+
if (this.transactionLine && this.transactionLine.configurationText) {
|
|
48550
48576
|
// @ts-ignore
|
|
48551
48577
|
this.transactionLine.configurationText = this.transactionLine.configurationText.replaceAll('\n', '<br>');
|
|
48552
48578
|
}
|
|
48579
|
+
else if (this.transactionLine && this.transactionLine.configurationReadable) {
|
|
48580
|
+
// @ts-ignore
|
|
48581
|
+
this.transactionLine.configurationReadable = this.transactionLine.configurationReadable.replaceAll('\n', '<br>');
|
|
48582
|
+
}
|
|
48553
48583
|
this._shouldCheckExpandable = true;
|
|
48554
48584
|
}
|
|
48555
48585
|
visibilitySet() {
|
|
@@ -48651,25 +48681,30 @@ class TransactionLineImageAndDescriptionComponent extends TransactionLineBaseCom
|
|
|
48651
48681
|
}
|
|
48652
48682
|
</div>
|
|
48653
48683
|
|
|
48654
|
-
@if (!preview && !popUpView && (transactionLine.articleBoundConcatenatedText || transactionLine.configurationText)) {
|
|
48655
|
-
<div
|
|
48656
|
-
|
|
48657
|
-
|
|
48658
|
-
|
|
48659
|
-
|
|
48660
|
-
|
|
48661
|
-
[ngClass]="{'article-text-expand': true, 'large-article': !expanded && !customerPortal}"
|
|
48662
|
-
class="co-small-scrollbar">
|
|
48684
|
+
@if (!preview && !popUpView && (transactionLine.articleBoundConcatenatedText || transactionLine.configurationText || transactionLine.configurationReadable)) {
|
|
48685
|
+
<div class="article-text-wrapper"
|
|
48686
|
+
[screenConfigurationObject]="imageAndDescriptionConfigNames?.articleText"
|
|
48687
|
+
[screenConfigNativeElement]="true">
|
|
48688
|
+
<div #articleTextExpand
|
|
48689
|
+
[ngClass]="{'article-text-expand': true, 'large-article': !expanded && !customerPortal}"
|
|
48690
|
+
class="co-small-scrollbar">
|
|
48663
48691
|
@for (text of transactionLine.articleTextAsArray; track text) {
|
|
48692
|
+
@if (text && text.length > 0) {
|
|
48664
48693
|
<div class="article-text">
|
|
48665
48694
|
<div [innerHTML]="text | safeHtml" (click)="handleOpenArticleText()"></div>
|
|
48666
48695
|
</div>
|
|
48696
|
+
}
|
|
48667
48697
|
}
|
|
48668
48698
|
@if (!popUpView && transactionLine.configurationText) {
|
|
48669
48699
|
<div class="configuration-text">
|
|
48670
48700
|
<div [innerHTML]="transactionLine.configurationText"></div>
|
|
48671
48701
|
</div>
|
|
48672
48702
|
}
|
|
48703
|
+
@if (!popUpView && !transactionLine.configurationText && transactionLine.configurationReadable) {
|
|
48704
|
+
<div class="configuration-text">
|
|
48705
|
+
<div [innerHTML]="transactionLine.configurationReadable"></div>
|
|
48706
|
+
</div>
|
|
48707
|
+
}
|
|
48673
48708
|
</div>
|
|
48674
48709
|
@if (!customerPortal && showExpandButton) {
|
|
48675
48710
|
<div class="expand-wrapper" (click)="expandClicked()">
|
|
@@ -48757,25 +48792,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
48757
48792
|
}
|
|
48758
48793
|
</div>
|
|
48759
48794
|
|
|
48760
|
-
@if (!preview && !popUpView && (transactionLine.articleBoundConcatenatedText || transactionLine.configurationText)) {
|
|
48761
|
-
<div
|
|
48762
|
-
|
|
48763
|
-
|
|
48764
|
-
|
|
48765
|
-
|
|
48766
|
-
|
|
48767
|
-
[ngClass]="{'article-text-expand': true, 'large-article': !expanded && !customerPortal}"
|
|
48768
|
-
class="co-small-scrollbar">
|
|
48795
|
+
@if (!preview && !popUpView && (transactionLine.articleBoundConcatenatedText || transactionLine.configurationText || transactionLine.configurationReadable)) {
|
|
48796
|
+
<div class="article-text-wrapper"
|
|
48797
|
+
[screenConfigurationObject]="imageAndDescriptionConfigNames?.articleText"
|
|
48798
|
+
[screenConfigNativeElement]="true">
|
|
48799
|
+
<div #articleTextExpand
|
|
48800
|
+
[ngClass]="{'article-text-expand': true, 'large-article': !expanded && !customerPortal}"
|
|
48801
|
+
class="co-small-scrollbar">
|
|
48769
48802
|
@for (text of transactionLine.articleTextAsArray; track text) {
|
|
48803
|
+
@if (text && text.length > 0) {
|
|
48770
48804
|
<div class="article-text">
|
|
48771
48805
|
<div [innerHTML]="text | safeHtml" (click)="handleOpenArticleText()"></div>
|
|
48772
48806
|
</div>
|
|
48807
|
+
}
|
|
48773
48808
|
}
|
|
48774
48809
|
@if (!popUpView && transactionLine.configurationText) {
|
|
48775
48810
|
<div class="configuration-text">
|
|
48776
48811
|
<div [innerHTML]="transactionLine.configurationText"></div>
|
|
48777
48812
|
</div>
|
|
48778
48813
|
}
|
|
48814
|
+
@if (!popUpView && !transactionLine.configurationText && transactionLine.configurationReadable) {
|
|
48815
|
+
<div class="configuration-text">
|
|
48816
|
+
<div [innerHTML]="transactionLine.configurationReadable"></div>
|
|
48817
|
+
</div>
|
|
48818
|
+
}
|
|
48779
48819
|
</div>
|
|
48780
48820
|
@if (!customerPortal && showExpandButton) {
|
|
48781
48821
|
<div class="expand-wrapper" (click)="expandClicked()">
|
|
@@ -50000,13 +50040,16 @@ class TransactionLineActionButtonsComponent {
|
|
|
50000
50040
|
const canReopenExternalOrder = this._isReopenableExternalCatalogLine();
|
|
50001
50041
|
const areAllowedToChangeOrder = (this.transactionKind !== TransactionKind.SalesOrder || !(this._transactionService.invoiceCompleted && !this._transactionService.canChangeSalesOrderWhenFullyInvoiced));
|
|
50002
50042
|
const conversionUnitsAvailable = await this._getConversionUnitsAvailable();
|
|
50043
|
+
const canCreateService = ((this.transactionKind === TransactionKind.SalesOrder)
|
|
50044
|
+
&& (this.transactionLine && this.transactionLine.articleLineStatus
|
|
50045
|
+
&& this.transactionLine.articleLineStatus.quantityDelivered && this.transactionLine.articleLineStatus.quantityDelivered > 0));
|
|
50003
50046
|
this._actionButtonsPopupComponentRef = this._overlayService.createComponent(TransactionLineActionButtonsPopupComponent, {
|
|
50004
50047
|
parentForOverlay: this.elementRef,
|
|
50005
50048
|
configNames: this.configNames,
|
|
50006
50049
|
canReopenExternalOrder: canReopenExternalOrder,
|
|
50007
50050
|
areAllowedToChangeOrder: areAllowedToChangeOrder,
|
|
50008
50051
|
conversionUnitsAvailable: conversionUnitsAvailable,
|
|
50009
|
-
canCreateService:
|
|
50052
|
+
canCreateService: canCreateService
|
|
50010
50053
|
}, {
|
|
50011
50054
|
reopenExternalOrderClick: () => this.reopenExternalOrderClick(),
|
|
50012
50055
|
addDocumentButtonClick: () => this.handleAddDocumentButtonClick(),
|
|
@@ -68933,7 +68976,7 @@ class TransactionSearchPurchaseOrderGridComponent extends TransactionSearchGridB
|
|
|
68933
68976
|
</co-simple-grid-column>
|
|
68934
68977
|
</co-simple-grid>
|
|
68935
68978
|
</div>
|
|
68936
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
68979
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
68937
68980
|
}
|
|
68938
68981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPurchaseOrderGridComponent, decorators: [{
|
|
68939
68982
|
type: Component,
|
|
@@ -69113,7 +69156,7 @@ class TransactionSearchSalesOrderGridComponent extends TransactionSearchGridBase
|
|
|
69113
69156
|
</co-simple-grid-column>
|
|
69114
69157
|
</co-simple-grid>
|
|
69115
69158
|
</div>
|
|
69116
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
69159
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
69117
69160
|
}
|
|
69118
69161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesOrderGridComponent, decorators: [{
|
|
69119
69162
|
type: Component,
|
|
@@ -71822,7 +71865,7 @@ class TransactionSearchSalesQuotationGridComponent extends TransactionSearchGrid
|
|
|
71822
71865
|
</co-simple-grid-column>
|
|
71823
71866
|
</co-simple-grid>
|
|
71824
71867
|
</div>
|
|
71825
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
71868
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
71826
71869
|
}
|
|
71827
71870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesQuotationGridComponent, decorators: [{
|
|
71828
71871
|
type: Component,
|
|
@@ -72373,7 +72416,7 @@ class TransactionSearchPosGridComponent extends TransactionSearchGridBaseCompone
|
|
|
72373
72416
|
</co-simple-grid-column>
|
|
72374
72417
|
</co-simple-grid>
|
|
72375
72418
|
</div>
|
|
72376
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
72419
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
72377
72420
|
}
|
|
72378
72421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPosGridComponent, decorators: [{
|
|
72379
72422
|
type: Component,
|
|
@@ -80609,8 +80652,8 @@ class TransactionLineInterbranchWarehouseLocationButtonComponent extends Transac
|
|
|
80609
80652
|
this._checkLocationValidity();
|
|
80610
80653
|
}
|
|
80611
80654
|
_checkLocationValidity() {
|
|
80612
|
-
if (this.
|
|
80613
|
-
this._articleService.getWarehouseLocations(this.
|
|
80655
|
+
if (this.transactionInfo.targetWarehouseNumber != undefined && this.transactionLine.isLocationRequired) {
|
|
80656
|
+
this._articleService.getWarehouseLocations(this.transactionInfo.targetWarehouseNumber).then((locations) => {
|
|
80614
80657
|
if ((this.transactionLine.locationNr && !this._locationExistInWarehouse(locations, this.transactionLine.locationNr))
|
|
80615
80658
|
|| !(this.transactionLine.locationNr)) {
|
|
80616
80659
|
this._setDefaultLocationIfExistInWarehouse(locations);
|
|
@@ -80699,6 +80742,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
80699
80742
|
args: ["class.co-transaction-line-warehouse-location-button"]
|
|
80700
80743
|
}] } });
|
|
80701
80744
|
|
|
80745
|
+
class TransactionLineTargetWarehouseButtonComponent extends TransactionLineBaseComponent {
|
|
80746
|
+
icons = Icon;
|
|
80747
|
+
inputLabel = false;
|
|
80748
|
+
showClass() {
|
|
80749
|
+
return true;
|
|
80750
|
+
}
|
|
80751
|
+
transactionLineSet() {
|
|
80752
|
+
super.transactionLineSet();
|
|
80753
|
+
this._getWarehouseDescription();
|
|
80754
|
+
}
|
|
80755
|
+
visibilitySet() {
|
|
80756
|
+
super.visibilitySet();
|
|
80757
|
+
this._getWarehouseDescription();
|
|
80758
|
+
}
|
|
80759
|
+
_getWarehouseDescription() {
|
|
80760
|
+
if (this.transactionInfo && this.transactionInfo.targetWarehouseNumber && this.transactionLine && this.transactionLine.isArticle && this.transactionLine.targetWarehouseDescription === undefined && this.visible) {
|
|
80761
|
+
this.transactionService.getWarehouses().then((warehouses) => {
|
|
80762
|
+
const warehouse = warehouses.find(w => w.warehouseNo === this.transactionInfo.targetWarehouseNumber);
|
|
80763
|
+
this.transactionLine.targetWarehouseDescription = warehouse ? warehouse.description : "";
|
|
80764
|
+
if (warehouse && warehouse.useWMSForIncomingGoods && this.transactionService.internalParameterPakBinnen && this.transactionLine.isStockArticle) {
|
|
80765
|
+
this.transactionLine.preReceive = true;
|
|
80766
|
+
}
|
|
80767
|
+
this.detectChanges();
|
|
80768
|
+
});
|
|
80769
|
+
}
|
|
80770
|
+
}
|
|
80771
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
80772
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionLineTargetWarehouseButtonComponent, isStandalone: false, selector: "co-transaction-line-target-warehouse-button", inputs: { inputLabel: "inputLabel" }, host: { properties: { "class.co-transaction-line-warehouse-button": "this.showClass" } }, providers: [{
|
|
80773
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
80774
|
+
useExisting: forwardRef(() => TransactionLineTargetWarehouseButtonComponent)
|
|
80775
|
+
}
|
|
80776
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
80777
|
+
<div class="inside-field">
|
|
80778
|
+
@if (inputLabel) {
|
|
80779
|
+
<co-transaction-line-label [insideLabel]="'WAREHOUSE'"></co-transaction-line-label>
|
|
80780
|
+
}
|
|
80781
|
+
<co-transaction-button
|
|
80782
|
+
[hidden]="hidden"
|
|
80783
|
+
[readonly]="readonly || forceReadonly"
|
|
80784
|
+
[label]="transactionInfo.targetWarehouseNumber?.toString() | append:' | ' | append:transactionLine.targetWarehouseDescription"
|
|
80785
|
+
[iconData]="iconCacheService.getIcon(icons.Warehouse)"
|
|
80786
|
+
></co-transaction-button>
|
|
80787
|
+
</div>
|
|
80788
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TransactionButtonComponent, selector: "co-transaction-button", inputs: ["label", "title", "statusColor", "readonly", "hidden", "forceReadonly", "iconData", "rightIconData", "showCheckMarkLoader", "checkMarkOverlayVisible", "inputLabel", "insideLabel"], outputs: ["iconClicked"] }, { kind: "component", type: TransactionLineLabelComponent, selector: "co-transaction-line-label", inputs: ["insideLabel"] }, { kind: "pipe", type: AppendPipe, name: "append" }], encapsulation: i0.ViewEncapsulation.None });
|
|
80789
|
+
}
|
|
80790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonComponent, decorators: [{
|
|
80791
|
+
type: Component,
|
|
80792
|
+
args: [{
|
|
80793
|
+
selector: "co-transaction-line-target-warehouse-button",
|
|
80794
|
+
template: `
|
|
80795
|
+
<div class="inside-field">
|
|
80796
|
+
@if (inputLabel) {
|
|
80797
|
+
<co-transaction-line-label [insideLabel]="'WAREHOUSE'"></co-transaction-line-label>
|
|
80798
|
+
}
|
|
80799
|
+
<co-transaction-button
|
|
80800
|
+
[hidden]="hidden"
|
|
80801
|
+
[readonly]="readonly || forceReadonly"
|
|
80802
|
+
[label]="transactionInfo.targetWarehouseNumber?.toString() | append:' | ' | append:transactionLine.targetWarehouseDescription"
|
|
80803
|
+
[iconData]="iconCacheService.getIcon(icons.Warehouse)"
|
|
80804
|
+
></co-transaction-button>
|
|
80805
|
+
</div>
|
|
80806
|
+
`,
|
|
80807
|
+
providers: [{
|
|
80808
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
80809
|
+
useExisting: forwardRef(() => TransactionLineTargetWarehouseButtonComponent)
|
|
80810
|
+
}
|
|
80811
|
+
],
|
|
80812
|
+
encapsulation: ViewEncapsulation.None,
|
|
80813
|
+
standalone: false
|
|
80814
|
+
}]
|
|
80815
|
+
}], propDecorators: { inputLabel: [{
|
|
80816
|
+
type: Input
|
|
80817
|
+
}], showClass: [{
|
|
80818
|
+
type: HostBinding,
|
|
80819
|
+
args: ["class.co-transaction-line-warehouse-button"]
|
|
80820
|
+
}] } });
|
|
80821
|
+
|
|
80702
80822
|
class TransactionInterbranchReceiveGoodsLineComponent extends TransactionInterbranchReceiveGoodsLineBaseComponent {
|
|
80703
80823
|
cfgNames = TransactionCfgName;
|
|
80704
80824
|
showClass() {
|
|
@@ -80755,13 +80875,14 @@ class TransactionInterbranchReceiveGoodsLineComponent extends TransactionInterbr
|
|
|
80755
80875
|
<co-transaction-line-statusbar
|
|
80756
80876
|
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
80757
80877
|
[configNames]="statusBarConfigNames"
|
|
80758
|
-
[activeCategory]="transactionTypeCategory.
|
|
80878
|
+
[activeCategory]="transactionTypeCategory.InterbranchOrderReceivedGoods">
|
|
80759
80879
|
</co-transaction-line-statusbar>
|
|
80760
|
-
<co-transaction-line-warehouse-button
|
|
80880
|
+
<co-transaction-line-target-warehouse-button
|
|
80761
80881
|
class="transaction-field-wrapper medium"
|
|
80762
80882
|
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
80763
80883
|
[inputLabel]="true"
|
|
80764
|
-
|
|
80884
|
+
[readonly]="true"
|
|
80885
|
+
></co-transaction-line-target-warehouse-button>
|
|
80765
80886
|
@if (!transactionLine.preReceive && showLocation) {
|
|
80766
80887
|
<co-transaction-line-interbranch-warehouse-location-button
|
|
80767
80888
|
class="transaction-field-wrapper medium"
|
|
@@ -80869,7 +80990,7 @@ class TransactionInterbranchReceiveGoodsLineComponent extends TransactionInterbr
|
|
|
80869
80990
|
</div>
|
|
80870
80991
|
</div>
|
|
80871
80992
|
</co-transaction-base-line>
|
|
80872
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TransactionBaseLineComponent, selector: "co-transaction-base-line", inputs: ["lineIndex", "transaction", "transactionInfo", "transactionLine", "selected", "preview", "isFirst", "checkboxValue", "showColorIndicator", "colorIndicatorColor", "checkboxReadonly", "checkbox", "actionButtons", "showPurchaseDescAndPrice", "showArticleNr", "customerPortal", "showPriceAmount"], outputs: ["checkboxValueChanged", "waitingForUserAction"] }, { kind: "component", type:
|
|
80993
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TransactionBaseLineComponent, selector: "co-transaction-base-line", inputs: ["lineIndex", "transaction", "transactionInfo", "transactionLine", "selected", "preview", "isFirst", "checkboxValue", "showColorIndicator", "colorIndicatorColor", "checkboxReadonly", "checkbox", "actionButtons", "showPurchaseDescAndPrice", "showArticleNr", "customerPortal", "showPriceAmount"], outputs: ["checkboxValueChanged", "waitingForUserAction"] }, { kind: "component", type: EditableLabelComponent, selector: "co-editable-label", inputs: ["model", "editModel", "commit", "editMode", "readonly", "crossedOut", "inputLabel", "insideLabel"], outputs: ["editModelChange"] }, { kind: "component", type: i1$1.InputNumberPickerComponent, selector: "co-input-number-picker", inputs: ["model", "modelChangeOnEnter", "showPermanentLabel", "leftIconData", "min", "step", "max", "ngModelOptions", "minusIcon", "plusIcon", "buttonShowMode", "noValidation", "decimals"], outputs: ["modelChange", "iconClick"] }, { kind: "component", type: TransactionLineStatusbarComponent, selector: "co-transaction-line-statusbar", inputs: ["configNames", "activeCategory"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "component", type: TransactionPrintPackageStickerComponent, selector: "co-transaction-print-package-sticker", inputs: ["inputLabel", "stickerAmount"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionLineLabelComponent, selector: "co-transaction-line-label", inputs: ["insideLabel"] }, { kind: "component", type: TransactionLineInterbranchWarehouseLocationButtonComponent, selector: "co-transaction-line-interbranch-warehouse-location-button", inputs: ["inputLabel"] }, { kind: "component", type: TransactionLineTargetWarehouseButtonComponent, selector: "co-transaction-line-target-warehouse-button", inputs: ["inputLabel"] }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
80873
80994
|
}
|
|
80874
80995
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInterbranchReceiveGoodsLineComponent, decorators: [{
|
|
80875
80996
|
type: Component,
|
|
@@ -80891,13 +81012,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
80891
81012
|
<co-transaction-line-statusbar
|
|
80892
81013
|
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
80893
81014
|
[configNames]="statusBarConfigNames"
|
|
80894
|
-
[activeCategory]="transactionTypeCategory.
|
|
81015
|
+
[activeCategory]="transactionTypeCategory.InterbranchOrderReceivedGoods">
|
|
80895
81016
|
</co-transaction-line-statusbar>
|
|
80896
|
-
<co-transaction-line-warehouse-button
|
|
81017
|
+
<co-transaction-line-target-warehouse-button
|
|
80897
81018
|
class="transaction-field-wrapper medium"
|
|
80898
81019
|
[screenConfigurationObject]="cfgNames.LineWarehouse"
|
|
80899
81020
|
[inputLabel]="true"
|
|
80900
|
-
|
|
81021
|
+
[readonly]="true"
|
|
81022
|
+
></co-transaction-line-target-warehouse-button>
|
|
80901
81023
|
@if (!transactionLine.preReceive && showLocation) {
|
|
80902
81024
|
<co-transaction-line-interbranch-warehouse-location-button
|
|
80903
81025
|
class="transaction-field-wrapper medium"
|
|
@@ -81053,11 +81175,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
81053
81175
|
}]
|
|
81054
81176
|
}] });
|
|
81055
81177
|
|
|
81178
|
+
class TransactionLineTargetWarehouseButtonModule {
|
|
81179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
81180
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonModule, declarations: [TransactionLineTargetWarehouseButtonComponent], imports: [CommonModule,
|
|
81181
|
+
IconModule,
|
|
81182
|
+
DialogTransactionLineWarehouseModule,
|
|
81183
|
+
TransactionButtonModule,
|
|
81184
|
+
PipeModule,
|
|
81185
|
+
TransactionLineLabelModule], exports: [TransactionLineTargetWarehouseButtonComponent] });
|
|
81186
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonModule, imports: [CommonModule,
|
|
81187
|
+
IconModule,
|
|
81188
|
+
DialogTransactionLineWarehouseModule,
|
|
81189
|
+
TransactionButtonModule,
|
|
81190
|
+
PipeModule,
|
|
81191
|
+
TransactionLineLabelModule] });
|
|
81192
|
+
}
|
|
81193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineTargetWarehouseButtonModule, decorators: [{
|
|
81194
|
+
type: NgModule,
|
|
81195
|
+
args: [{
|
|
81196
|
+
imports: [
|
|
81197
|
+
CommonModule,
|
|
81198
|
+
IconModule,
|
|
81199
|
+
DialogTransactionLineWarehouseModule,
|
|
81200
|
+
TransactionButtonModule,
|
|
81201
|
+
PipeModule,
|
|
81202
|
+
TransactionLineLabelModule
|
|
81203
|
+
],
|
|
81204
|
+
declarations: [
|
|
81205
|
+
TransactionLineTargetWarehouseButtonComponent
|
|
81206
|
+
],
|
|
81207
|
+
exports: [
|
|
81208
|
+
TransactionLineTargetWarehouseButtonComponent
|
|
81209
|
+
]
|
|
81210
|
+
}]
|
|
81211
|
+
}] });
|
|
81212
|
+
|
|
81056
81213
|
class TransactionInterbranchReceiveGoodsLineModule {
|
|
81057
81214
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInterbranchReceiveGoodsLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
81058
81215
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TransactionInterbranchReceiveGoodsLineModule, declarations: [TransactionInterbranchReceiveGoodsLineComponent], imports: [CommonModule,
|
|
81059
81216
|
TransactionBaseLineModule,
|
|
81060
|
-
TransactionLineWarehouseButtonModule,
|
|
81061
81217
|
TransactionLineWarehouseLocationModule,
|
|
81062
81218
|
EditableLabelModule,
|
|
81063
81219
|
InputNumberPickerModule,
|
|
@@ -81070,10 +81226,10 @@ class TransactionInterbranchReceiveGoodsLineModule {
|
|
|
81070
81226
|
ScreenConfigurationModule,
|
|
81071
81227
|
PipeModule,
|
|
81072
81228
|
TransactionLineLabelModule,
|
|
81073
|
-
TransactionLineInterbranchWarehouseLocationButtonModule
|
|
81229
|
+
TransactionLineInterbranchWarehouseLocationButtonModule,
|
|
81230
|
+
TransactionLineTargetWarehouseButtonModule], exports: [TransactionInterbranchReceiveGoodsLineComponent] });
|
|
81074
81231
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInterbranchReceiveGoodsLineModule, imports: [CommonModule,
|
|
81075
81232
|
TransactionBaseLineModule,
|
|
81076
|
-
TransactionLineWarehouseButtonModule,
|
|
81077
81233
|
TransactionLineWarehouseLocationModule,
|
|
81078
81234
|
EditableLabelModule,
|
|
81079
81235
|
InputNumberPickerModule,
|
|
@@ -81086,7 +81242,8 @@ class TransactionInterbranchReceiveGoodsLineModule {
|
|
|
81086
81242
|
ScreenConfigurationModule,
|
|
81087
81243
|
PipeModule,
|
|
81088
81244
|
TransactionLineLabelModule,
|
|
81089
|
-
TransactionLineInterbranchWarehouseLocationButtonModule
|
|
81245
|
+
TransactionLineInterbranchWarehouseLocationButtonModule,
|
|
81246
|
+
TransactionLineTargetWarehouseButtonModule] });
|
|
81090
81247
|
}
|
|
81091
81248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInterbranchReceiveGoodsLineModule, decorators: [{
|
|
81092
81249
|
type: NgModule,
|
|
@@ -81094,7 +81251,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
81094
81251
|
imports: [
|
|
81095
81252
|
CommonModule,
|
|
81096
81253
|
TransactionBaseLineModule,
|
|
81097
|
-
TransactionLineWarehouseButtonModule,
|
|
81098
81254
|
TransactionLineWarehouseLocationModule,
|
|
81099
81255
|
EditableLabelModule,
|
|
81100
81256
|
InputNumberPickerModule,
|
|
@@ -81107,7 +81263,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
81107
81263
|
ScreenConfigurationModule,
|
|
81108
81264
|
PipeModule,
|
|
81109
81265
|
TransactionLineLabelModule,
|
|
81110
|
-
TransactionLineInterbranchWarehouseLocationButtonModule
|
|
81266
|
+
TransactionLineInterbranchWarehouseLocationButtonModule,
|
|
81267
|
+
TransactionLineTargetWarehouseButtonModule
|
|
81111
81268
|
],
|
|
81112
81269
|
declarations: [
|
|
81113
81270
|
TransactionInterbranchReceiveGoodsLineComponent
|
|
@@ -82053,187 +82210,189 @@ class TransactionHeaderDeliveryComponent extends TransactionHeaderBaseComponent
|
|
|
82053
82210
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
82054
82211
|
useExisting: forwardRef(() => TransactionHeaderDeliveryComponent)
|
|
82055
82212
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
82056
|
-
|
|
82213
|
+
<co-transaction-header-block
|
|
82057
82214
|
|
|
82058
|
-
|
|
82059
|
-
|
|
82060
|
-
|
|
82061
|
-
|
|
82062
|
-
|
|
82063
|
-
|
|
82064
|
-
|
|
82215
|
+
[secondBlockTemplate]="secondBlock"
|
|
82216
|
+
[thirdBlockTemplate]="thirdBlock"
|
|
82217
|
+
(headerClick)="checkValidityAndShowDialog()"
|
|
82218
|
+
[dontShowEditIcon]="false"
|
|
82219
|
+
>
|
|
82220
|
+
</co-transaction-header-block>
|
|
82221
|
+
<ng-template #headerBlock>
|
|
82065
82222
|
|
|
82066
|
-
|
|
82067
|
-
|
|
82068
|
-
|
|
82069
|
-
|
|
82070
|
-
|
|
82071
|
-
|
|
82072
|
-
|
|
82073
|
-
|
|
82074
|
-
|
|
82223
|
+
</ng-template>
|
|
82224
|
+
@if (!isCashOrPurchaseQuotationOrder && !isPurchaseOrder) {
|
|
82225
|
+
<div class="transaction-header-quick-buttons-wrapper">
|
|
82226
|
+
<div class="transaction-header-block-row">
|
|
82227
|
+
<div class="transaction-header-block-row header-quick-buttons">
|
|
82228
|
+
<div class="header-order-definitive" [screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader" [screenConfigNativeElement]="true">
|
|
82229
|
+
<co-transaction-header-definitive [onlyIcon]="true" class="transaction-header-order-definitive"
|
|
82230
|
+
[screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader"
|
|
82231
|
+
></co-transaction-header-definitive>
|
|
82232
|
+
</div>
|
|
82233
|
+
@if (!isSalesQuotationOrder) {
|
|
82234
|
+
<co-transaction-header-partial-delivery [onlyIcon]="true" class="transaction-header-partial-delivery"
|
|
82235
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryPartialHeader"
|
|
82236
|
+
></co-transaction-header-partial-delivery>
|
|
82237
|
+
}
|
|
82238
|
+
@if (!isSalesQuotationOrder) {
|
|
82239
|
+
<div class="header-deliverdate-definitive-wrapper"
|
|
82240
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader" [screenConfigNativeElement]="true">
|
|
82241
|
+
<co-transaction-header-deliverydate-definitive-button
|
|
82242
|
+
[onlyIcon]="true"
|
|
82243
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader"
|
|
82244
|
+
class="only-icon"
|
|
82245
|
+
>
|
|
82246
|
+
</co-transaction-header-deliverydate-definitive-button>
|
|
82247
|
+
</div>
|
|
82248
|
+
}
|
|
82249
|
+
</div>
|
|
82250
|
+
</div>
|
|
82075
82251
|
</div>
|
|
82076
|
-
|
|
82077
|
-
|
|
82078
|
-
|
|
82079
|
-
|
|
82080
|
-
|
|
82081
|
-
|
|
82082
|
-
|
|
82083
|
-
|
|
82084
|
-
|
|
82085
|
-
|
|
82086
|
-
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader"
|
|
82087
|
-
class="only-icon"
|
|
82088
|
-
>
|
|
82089
|
-
</co-transaction-header-deliverydate-definitive-button>
|
|
82090
|
-
</div>
|
|
82252
|
+
}
|
|
82253
|
+
<ng-template #secondBlock>
|
|
82254
|
+
@if (showPreferredPlanning) {
|
|
82255
|
+
<div class="planning-request-button-wrapper"
|
|
82256
|
+
(click)="checkCanPlanDelivery()"
|
|
82257
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryPreferedHeader"
|
|
82258
|
+
[screenConfigNativeElement]="true">
|
|
82259
|
+
<co-icon class="planning-request-button" [class.co-transaction-check]="transactionInfo.deliveryDateDefinitive"
|
|
82260
|
+
[iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
|
|
82261
|
+
</div>
|
|
82091
82262
|
}
|
|
82092
|
-
|
|
82093
|
-
|
|
82094
|
-
|
|
82095
|
-
|
|
82096
|
-
|
|
82097
|
-
|
|
82098
|
-
|
|
82099
|
-
|
|
82100
|
-
|
|
82101
|
-
|
|
82102
|
-
|
|
82103
|
-
|
|
82104
|
-
</
|
|
82105
|
-
|
|
82106
|
-
|
|
82107
|
-
|
|
82108
|
-
|
|
82109
|
-
|
|
82110
|
-
|
|
82111
|
-
|
|
82112
|
-
|
|
82113
|
-
|
|
82114
|
-
|
|
82115
|
-
|
|
82116
|
-
|
|
82117
|
-
|
|
82118
|
-
|
|
82119
|
-
|
|
82120
|
-
|
|
82121
|
-
|
|
82122
|
-
|
|
82123
|
-
|
|
82124
|
-
></co-transaction-header-delivery-method-button>
|
|
82125
|
-
</ng-template>
|
|
82126
|
-
<!--ng-template #hiddenBlock>
|
|
82127
|
-
<co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
|
|
82128
|
-
[defaultEditMode]="false"
|
|
82129
|
-
[showLabel]="false"
|
|
82130
|
-
></co-transaction-header-preferred-delivery-date>
|
|
82131
|
-
</ng-template-->
|
|
82132
|
-
@if (showDialog) {
|
|
82133
|
-
<co-transaction-header-popup
|
|
82134
|
-
[activeCategoryDescription]="'DELIVERY_INFORMATION'"
|
|
82135
|
-
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
82136
|
-
}
|
|
82263
|
+
<div class="header-deliverydate-wrapper" [screenConfigurationObject]="cfgNames.HeaderDeliveryDateHeader"
|
|
82264
|
+
[screenConfigNativeElement]="true">
|
|
82265
|
+
<div class="header-delivery-deliverydate-label co-transaction-label"
|
|
82266
|
+
[textContent]="'DELIVERY_DATE' | localize"></div>
|
|
82267
|
+
<div class="header-delivery-deliverydate-content" [class.closed]="transactionInfo.deliveryDateDefinitive">
|
|
82268
|
+
<co-transaction-header-delivery-date class="header-delivery-deliverydate"
|
|
82269
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDateHeader"
|
|
82270
|
+
[defaultEditMode]="true"
|
|
82271
|
+
[showLabel]="false"
|
|
82272
|
+
></co-transaction-header-delivery-date>
|
|
82273
|
+
</div>
|
|
82274
|
+
</div>
|
|
82275
|
+
</ng-template>
|
|
82276
|
+
<ng-template #thirdBlock>
|
|
82277
|
+
<co-transaction-header-delivery-method-button
|
|
82278
|
+
class="header-delivery-method header-no-icon-label"
|
|
82279
|
+
[inputLabel]="true"
|
|
82280
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryMethod"
|
|
82281
|
+
(deliveryMethodClicked)="showDialog = $event">
|
|
82282
|
+
</co-transaction-header-delivery-method-button>
|
|
82283
|
+
</ng-template>
|
|
82284
|
+
<!--ng-template #hiddenBlock>
|
|
82285
|
+
<co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
|
|
82286
|
+
[defaultEditMode]="false"
|
|
82287
|
+
[showLabel]="false"
|
|
82288
|
+
></co-transaction-header-preferred-delivery-date>
|
|
82289
|
+
</ng-template-->
|
|
82290
|
+
@if (showDialog) {
|
|
82291
|
+
<co-transaction-header-popup
|
|
82292
|
+
[activeCategoryDescription]="'DELIVERY_INFORMATION'"
|
|
82293
|
+
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
82294
|
+
}
|
|
82137
82295
|
|
|
82138
|
-
|
|
82139
|
-
|
|
82140
|
-
|
|
82141
|
-
|
|
82142
|
-
|
|
82143
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TransactionHeaderBlockComponent, selector: "co-transaction-header-block", inputs: ["headerBlockTemplate", "firstBlockTemplate", "secondBlockTemplate", "thirdBlockTemplate", "hiddenBlockTemplate", "dontShowEditIcon"], outputs: ["headerClick"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderPopupComponent, selector: "co-transaction-header-popup", inputs: ["activeCategoryDescription"], outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderDeliveryMethodButtonComponent, selector: "co-transaction-header-delivery-method-button", inputs: ["inputLabel"] }, { kind: "component", type: TransactionHeaderDeliverydateDefinitiveButtonComponent, selector: "co-transaction-header-deliverydate-definitive-button", inputs: ["big", "onlyIcon"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: DialogTransactionPlanningRequest, selector: "co-dialog-transaction-planning-request", outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderDefinitiveComponent, selector: "co-transaction-header-definitive", inputs: ["onlyIcon"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
82296
|
+
@if (showPlanningDialog) {
|
|
82297
|
+
<co-dialog-transaction-planning-request
|
|
82298
|
+
(closeClick)="showPlanningDialog = false">
|
|
82299
|
+
</co-dialog-transaction-planning-request>
|
|
82300
|
+
}
|
|
82301
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TransactionHeaderBlockComponent, selector: "co-transaction-header-block", inputs: ["headerBlockTemplate", "firstBlockTemplate", "secondBlockTemplate", "thirdBlockTemplate", "hiddenBlockTemplate", "dontShowEditIcon"], outputs: ["headerClick"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderPopupComponent, selector: "co-transaction-header-popup", inputs: ["activeCategoryDescription"], outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderDeliveryMethodButtonComponent, selector: "co-transaction-header-delivery-method-button", inputs: ["inputLabel"], outputs: ["deliveryMethodClicked"] }, { kind: "component", type: TransactionHeaderDeliverydateDefinitiveButtonComponent, selector: "co-transaction-header-deliverydate-definitive-button", inputs: ["big", "onlyIcon"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: DialogTransactionPlanningRequest, selector: "co-dialog-transaction-planning-request", outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderDefinitiveComponent, selector: "co-transaction-header-definitive", inputs: ["onlyIcon"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
82144
82302
|
}
|
|
82145
82303
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderDeliveryComponent, decorators: [{
|
|
82146
82304
|
type: Component,
|
|
82147
82305
|
args: [{
|
|
82148
82306
|
selector: "co-transaction-header-delivery",
|
|
82149
82307
|
template: `
|
|
82150
|
-
|
|
82308
|
+
<co-transaction-header-block
|
|
82151
82309
|
|
|
82152
|
-
|
|
82153
|
-
|
|
82154
|
-
|
|
82155
|
-
|
|
82156
|
-
|
|
82157
|
-
|
|
82158
|
-
|
|
82310
|
+
[secondBlockTemplate]="secondBlock"
|
|
82311
|
+
[thirdBlockTemplate]="thirdBlock"
|
|
82312
|
+
(headerClick)="checkValidityAndShowDialog()"
|
|
82313
|
+
[dontShowEditIcon]="false"
|
|
82314
|
+
>
|
|
82315
|
+
</co-transaction-header-block>
|
|
82316
|
+
<ng-template #headerBlock>
|
|
82159
82317
|
|
|
82160
|
-
|
|
82161
|
-
|
|
82162
|
-
|
|
82163
|
-
|
|
82164
|
-
|
|
82165
|
-
|
|
82166
|
-
|
|
82167
|
-
|
|
82168
|
-
|
|
82318
|
+
</ng-template>
|
|
82319
|
+
@if (!isCashOrPurchaseQuotationOrder && !isPurchaseOrder) {
|
|
82320
|
+
<div class="transaction-header-quick-buttons-wrapper">
|
|
82321
|
+
<div class="transaction-header-block-row">
|
|
82322
|
+
<div class="transaction-header-block-row header-quick-buttons">
|
|
82323
|
+
<div class="header-order-definitive" [screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader" [screenConfigNativeElement]="true">
|
|
82324
|
+
<co-transaction-header-definitive [onlyIcon]="true" class="transaction-header-order-definitive"
|
|
82325
|
+
[screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader"
|
|
82326
|
+
></co-transaction-header-definitive>
|
|
82327
|
+
</div>
|
|
82328
|
+
@if (!isSalesQuotationOrder) {
|
|
82329
|
+
<co-transaction-header-partial-delivery [onlyIcon]="true" class="transaction-header-partial-delivery"
|
|
82330
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryPartialHeader"
|
|
82331
|
+
></co-transaction-header-partial-delivery>
|
|
82332
|
+
}
|
|
82333
|
+
@if (!isSalesQuotationOrder) {
|
|
82334
|
+
<div class="header-deliverdate-definitive-wrapper"
|
|
82335
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader" [screenConfigNativeElement]="true">
|
|
82336
|
+
<co-transaction-header-deliverydate-definitive-button
|
|
82337
|
+
[onlyIcon]="true"
|
|
82338
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader"
|
|
82339
|
+
class="only-icon"
|
|
82340
|
+
>
|
|
82341
|
+
</co-transaction-header-deliverydate-definitive-button>
|
|
82342
|
+
</div>
|
|
82343
|
+
}
|
|
82344
|
+
</div>
|
|
82345
|
+
</div>
|
|
82169
82346
|
</div>
|
|
82170
|
-
|
|
82171
|
-
|
|
82172
|
-
|
|
82173
|
-
|
|
82174
|
-
|
|
82175
|
-
|
|
82176
|
-
|
|
82177
|
-
|
|
82178
|
-
|
|
82179
|
-
|
|
82180
|
-
[screenConfigurationObject]="cfgNames.HeaderDeliveryDefinitiveHeader"
|
|
82181
|
-
class="only-icon"
|
|
82182
|
-
>
|
|
82183
|
-
</co-transaction-header-deliverydate-definitive-button>
|
|
82184
|
-
</div>
|
|
82347
|
+
}
|
|
82348
|
+
<ng-template #secondBlock>
|
|
82349
|
+
@if (showPreferredPlanning) {
|
|
82350
|
+
<div class="planning-request-button-wrapper"
|
|
82351
|
+
(click)="checkCanPlanDelivery()"
|
|
82352
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryPreferedHeader"
|
|
82353
|
+
[screenConfigNativeElement]="true">
|
|
82354
|
+
<co-icon class="planning-request-button" [class.co-transaction-check]="transactionInfo.deliveryDateDefinitive"
|
|
82355
|
+
[iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
|
|
82356
|
+
</div>
|
|
82185
82357
|
}
|
|
82186
|
-
|
|
82187
|
-
|
|
82188
|
-
|
|
82189
|
-
|
|
82190
|
-
|
|
82191
|
-
|
|
82192
|
-
|
|
82193
|
-
|
|
82194
|
-
|
|
82195
|
-
|
|
82196
|
-
|
|
82197
|
-
|
|
82198
|
-
</
|
|
82199
|
-
|
|
82200
|
-
|
|
82201
|
-
|
|
82202
|
-
|
|
82203
|
-
|
|
82204
|
-
|
|
82205
|
-
|
|
82206
|
-
|
|
82207
|
-
|
|
82208
|
-
|
|
82209
|
-
|
|
82210
|
-
|
|
82211
|
-
|
|
82212
|
-
|
|
82213
|
-
|
|
82214
|
-
|
|
82215
|
-
|
|
82216
|
-
|
|
82217
|
-
|
|
82218
|
-
></co-transaction-header-delivery-method-button>
|
|
82219
|
-
</ng-template>
|
|
82220
|
-
<!--ng-template #hiddenBlock>
|
|
82221
|
-
<co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
|
|
82222
|
-
[defaultEditMode]="false"
|
|
82223
|
-
[showLabel]="false"
|
|
82224
|
-
></co-transaction-header-preferred-delivery-date>
|
|
82225
|
-
</ng-template-->
|
|
82226
|
-
@if (showDialog) {
|
|
82227
|
-
<co-transaction-header-popup
|
|
82228
|
-
[activeCategoryDescription]="'DELIVERY_INFORMATION'"
|
|
82229
|
-
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
82230
|
-
}
|
|
82358
|
+
<div class="header-deliverydate-wrapper" [screenConfigurationObject]="cfgNames.HeaderDeliveryDateHeader"
|
|
82359
|
+
[screenConfigNativeElement]="true">
|
|
82360
|
+
<div class="header-delivery-deliverydate-label co-transaction-label"
|
|
82361
|
+
[textContent]="'DELIVERY_DATE' | localize"></div>
|
|
82362
|
+
<div class="header-delivery-deliverydate-content" [class.closed]="transactionInfo.deliveryDateDefinitive">
|
|
82363
|
+
<co-transaction-header-delivery-date class="header-delivery-deliverydate"
|
|
82364
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryDateHeader"
|
|
82365
|
+
[defaultEditMode]="true"
|
|
82366
|
+
[showLabel]="false"
|
|
82367
|
+
></co-transaction-header-delivery-date>
|
|
82368
|
+
</div>
|
|
82369
|
+
</div>
|
|
82370
|
+
</ng-template>
|
|
82371
|
+
<ng-template #thirdBlock>
|
|
82372
|
+
<co-transaction-header-delivery-method-button
|
|
82373
|
+
class="header-delivery-method header-no-icon-label"
|
|
82374
|
+
[inputLabel]="true"
|
|
82375
|
+
[screenConfigurationObject]="cfgNames.HeaderDeliveryMethod"
|
|
82376
|
+
(deliveryMethodClicked)="showDialog = $event">
|
|
82377
|
+
</co-transaction-header-delivery-method-button>
|
|
82378
|
+
</ng-template>
|
|
82379
|
+
<!--ng-template #hiddenBlock>
|
|
82380
|
+
<co-transaction-header-preferred-delivery-date class="header-delivery-deliverydate"
|
|
82381
|
+
[defaultEditMode]="false"
|
|
82382
|
+
[showLabel]="false"
|
|
82383
|
+
></co-transaction-header-preferred-delivery-date>
|
|
82384
|
+
</ng-template-->
|
|
82385
|
+
@if (showDialog) {
|
|
82386
|
+
<co-transaction-header-popup
|
|
82387
|
+
[activeCategoryDescription]="'DELIVERY_INFORMATION'"
|
|
82388
|
+
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
82389
|
+
}
|
|
82231
82390
|
|
|
82232
|
-
|
|
82233
|
-
|
|
82234
|
-
|
|
82235
|
-
|
|
82236
|
-
|
|
82391
|
+
@if (showPlanningDialog) {
|
|
82392
|
+
<co-dialog-transaction-planning-request
|
|
82393
|
+
(closeClick)="showPlanningDialog = false">
|
|
82394
|
+
</co-dialog-transaction-planning-request>
|
|
82395
|
+
}
|
|
82237
82396
|
`,
|
|
82238
82397
|
providers: [{
|
|
82239
82398
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -86444,6 +86603,7 @@ class TransactionLineActivitiesContactMomentsAddMomentDialogComponent {
|
|
|
86444
86603
|
[headerTemplate]="headerTemplate"
|
|
86445
86604
|
[footerTemplate]="footerTemplate"
|
|
86446
86605
|
[showCloseIcon]="true"
|
|
86606
|
+
(closeClick)="handleCloseDialog($event)"
|
|
86447
86607
|
>
|
|
86448
86608
|
<ng-template #headerTemplate>
|
|
86449
86609
|
<div class="co-dialog-header-title" [textContent]="">
|
|
@@ -86499,6 +86659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86499
86659
|
[headerTemplate]="headerTemplate"
|
|
86500
86660
|
[footerTemplate]="footerTemplate"
|
|
86501
86661
|
[showCloseIcon]="true"
|
|
86662
|
+
(closeClick)="handleCloseDialog($event)"
|
|
86502
86663
|
>
|
|
86503
86664
|
<ng-template #headerTemplate>
|
|
86504
86665
|
<div class="co-dialog-header-title" [textContent]="">
|
|
@@ -87405,19 +87566,10 @@ class TransactionInternalComponent {
|
|
|
87405
87566
|
this.service.copyTransactionLine(copyRequest);
|
|
87406
87567
|
}
|
|
87407
87568
|
handleCreateServiceRequest(lineNr) {
|
|
87408
|
-
if (lineNr && this.transaction) {
|
|
87409
|
-
let request:CreateServiceOrderWithSourceTransactionLineRequest = new CreateServiceOrderWithSourceTransactionLineRequest();
|
|
87410
|
-
request.sourceLineNr = line.lineNr;
|
|
87411
|
-
request.sourceTransId = this.transaction.transactionInfo.id;
|
|
87412
|
-
request.customerRelationId = this.transaction.transactionInfo.relation.relationId;
|
|
87413
|
-
request.branchNr = this.transaction.transactionInfo.branch.relationNr;*/
|
|
87414
|
-
/*this._transactionConnectorService.createServiceOrderWithSourceTransactionLine(request).then((result: TransactionInfoResponse) => {
|
|
87415
|
-
if(result) {*/
|
|
87569
|
+
if (lineNr && this.transaction) {
|
|
87416
87570
|
this._transactionEventService.requestCreateServiceOrderFromTransactionLine.next({ transaction: this.transaction, lineNr: lineNr });
|
|
87417
87571
|
//added for bundle purposes so we can pass the value along without the event service. Use the event service in all other cases.
|
|
87418
87572
|
this.serviceRequested.emit({ transactionNr: this.transaction.transactionInfo.transactionNr, transactionId: this.transaction.transactionInfo.id, lineNr: lineNr });
|
|
87419
|
-
/* }
|
|
87420
|
-
});*/
|
|
87421
87573
|
}
|
|
87422
87574
|
}
|
|
87423
87575
|
handleViewStock(goodId) {
|
|
@@ -94357,7 +94509,7 @@ class TransactionQuickAccessOrderActivitiesComponent extends TransactionQuickAcc
|
|
|
94357
94509
|
<div class="quick-access-content-wrapper">
|
|
94358
94510
|
<div class="row" (click)="handleAddContactMomentClick()">
|
|
94359
94511
|
<co-icon [iconData]="iconCacheService.getIcon(icons.PlusSimple)"></co-icon>
|
|
94360
|
-
<span [textContent]="'
|
|
94512
|
+
<span [textContent]="'ADD_MOMENT_OF_CONTACT' | localize"></span>
|
|
94361
94513
|
</div>
|
|
94362
94514
|
<co-quick-send-button
|
|
94363
94515
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
@@ -94406,7 +94558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
94406
94558
|
<div class="quick-access-content-wrapper">
|
|
94407
94559
|
<div class="row" (click)="handleAddContactMomentClick()">
|
|
94408
94560
|
<co-icon [iconData]="iconCacheService.getIcon(icons.PlusSimple)"></co-icon>
|
|
94409
|
-
<span [textContent]="'
|
|
94561
|
+
<span [textContent]="'ADD_MOMENT_OF_CONTACT' | localize"></span>
|
|
94410
94562
|
</div>
|
|
94411
94563
|
<co-quick-send-button
|
|
94412
94564
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
@@ -109010,7 +109162,7 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
109010
109162
|
</co-simple-grid>
|
|
109011
109163
|
</div>
|
|
109012
109164
|
</div>
|
|
109013
|
-
`, 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: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], encapsulation: i0.ViewEncapsulation.None });
|
|
109165
|
+
`, 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: i1$1.SimpleGridComponent, selector: "co-simple-grid", inputs: ["showAdd", "showDelete", "deselectAllowed", "editOnCellClick", "rightToolbar", "showGridSettings", "rowsPerPage", "rowDisabledFn", "rowConditionalClassFn", "showColumnSort", "showRowButtons", "resetPageOnDataChange", "scrollOnRowAction", "scrollDirection", "canRowBeEdittedFn"] }, { kind: "directive", type: i1$1.SimpleGridColumnDirective, selector: "co-simple-grid-column", inputs: ["headerText", "field", "codeField", "displayField", "textAlign", "format", "resizable", "required", "autoFit", "isSelected", "width", "readonly", "collection", "order", "singleColumn"] }, { kind: "directive", type: i1$1.SimpleGridColumnTemplateDirective, selector: "[templateType]", inputs: ["templateType"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }, { kind: "pipe", type: CoCurrencyPipe, name: "coCurrency" }], encapsulation: i0.ViewEncapsulation.None });
|
|
109014
109166
|
}
|
|
109015
109167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInvoiceCheckOrderTileComponent, decorators: [{
|
|
109016
109168
|
type: Component,
|