@colijnit/transaction 262.1.26 → 262.1.27
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 +99 -42
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +23 -5
- package/lib/component/core/base/components/voucher-code-pending-reason-dialog/style/_layout.scss +15 -0
- package/lib/component/core/base/components/voucher-code-pending-reason-dialog/style/_material-definition.scss +3 -0
- package/lib/component/core/base/components/voucher-code-pending-reason-dialog/style/material.scss +1 -1
- package/package.json +1 -1
|
@@ -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, inject, 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, FormComponent, InputDatePickerComponent, InputTextareaComponent, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule,
|
|
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, IconModule, ListOfValuesModule, InputSearchModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, TooltipDirectiveModule, CheckmarkOverlayModule, PriceDisplayPipeModule, 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';
|
|
@@ -355,8 +355,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
355
355
|
class Version {
|
|
356
356
|
name = "@colijnit/transaction";
|
|
357
357
|
description = "Colijn IT transaction package";
|
|
358
|
-
symVer = "262.1.
|
|
359
|
-
publishDate = "
|
|
358
|
+
symVer = "262.1.27";
|
|
359
|
+
publishDate = "2-7-2026, 17:51:36";
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -669,6 +669,7 @@ var Icon;
|
|
|
669
669
|
Icon["UpFromLineRegular"] = "up_from_line_regular";
|
|
670
670
|
Icon["UpFromLineRegularFull"] = "up_from_line_regular_full";
|
|
671
671
|
Icon["UserRegular"] = "user_regular";
|
|
672
|
+
Icon["VoucherRegular"] = "voucher_regular";
|
|
672
673
|
Icon["Warehouse"] = "warehouse";
|
|
673
674
|
Icon["WorkInProgressCircleLarge"] = "work_in_progress_circle_large";
|
|
674
675
|
Icon["XSolid"] = "x_solid";
|
|
@@ -1377,6 +1378,7 @@ const IconSvg = {
|
|
|
1377
1378
|
"up_from_line_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M82.2 192L192 82 301.8 192H248c-13.3 0-24 10.7-24 24V336H160V216c0-13.3-10.7-24-24-24H82.2zM192 32c-11.5 0-22.5 4.6-30.6 12.7L45.6 160.8C36.9 169.5 32 181.3 32 193.6C32 219.2 52.8 240 78.4 240H112v96c0 26.5 21.5 48 48 48h64c26.5 0 48-21.5 48-48V240h33.6c25.6 0 46.4-20.8 46.4-46.4c0-12.3-4.9-24.1-13.6-32.8L222.6 44.7C214.5 36.6 203.5 32 192 32zM24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24H360c13.3 0 24-10.7 24-24s-10.7-24-24-24H24z\"/></svg>",
|
|
1378
1379
|
"up_from_line_regular_full": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><path d=\"M337 71C327.6 61.6 312.4 61.6 303.1 71L159 215C152.1 221.9 150.1 232.2 153.8 241.2C157.5 250.2 166.3 256 176 256L240 256L240 320L240 320L240 400C240 426.5 261.5 448 288 448L352 448C378.5 448 400 426.5 400 400L400 256L464 256C473.7 256 482.5 250.2 486.2 241.2C489.9 232.2 487.9 221.9 481 215L337 71zM352 320L352 400L288 400L288 320L288 320L288 232C288 218.7 277.3 208 264 208L233.9 208L320 121.9L406.1 208L376 208C362.7 208 352 218.7 352 232L352 320zM128 552C128 565.3 138.7 576 152 576L488 576C501.3 576 512 565.3 512 552C512 538.7 501.3 528 488 528L152 528C138.7 528 128 538.7 128 552z\"/></svg>",
|
|
1379
1380
|
"user_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z\"/></svg>",
|
|
1381
|
+
"voucher_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\"><path d=\"M80 192L80 236.9C108.7 253.5 128 284.5 128 320C128 355.5 108.7 386.6 80 403.1L80 448C80 456.8 87.2 464 96 464L544 464C552.8 464 560 456.8 560 448L560 403.1C531.3 386.5 512 355.5 512 320C512 284.5 531.3 253.4 560 236.9L560 192C560 183.2 552.8 176 544 176L96 176C87.2 176 80 183.2 80 192zM32 192C32 156.7 60.7 128 96 128L544 128C579.3 128 608 156.7 608 192L608 256C608 264.8 600.6 271.7 592.3 274.6C573.5 281.1 560 299 560 320C560 341 573.5 358.9 592.3 365.4C600.6 368.3 608 375.2 608 384L608 448C608 483.3 579.3 512 544 512L96 512C60.7 512 32 483.3 32 448L32 384C32 375.2 39.4 368.3 47.7 365.4C66.5 358.9 80 341 80 320C80 299 66.5 281.1 47.7 274.6C39.4 271.7 32 264.8 32 256L32 192zM432 368L432 272L208 272L208 368L432 368zM160 256C160 238.3 174.3 224 192 224L448 224C465.7 224 480 238.3 480 256L480 384C480 401.7 465.7 416 448 416L192 416C174.3 416 160 401.7 160 384L160 256z\"/></svg>",
|
|
1380
1382
|
"warehouse": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M323 51.1c-1.9-.8-4.1-.8-6 0L63 154.1c-9.1 3.7-15 12.5-15 22.2L48 488c0 13.3-10.7 24-24 24s-24-10.7-24-24L0 176.3c0-29.3 17.8-55.7 44.9-66.7L299 6.6c13.5-5.5 28.6-5.5 42.1 0l254 103c27.2 11 45 37.4 45 66.7L640 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-311.7c0-9.8-5.9-18.6-15-22.2L323 51.1zM144 328l0 48 352 0 0-48-352 0zm0 136l352 0 0-40-352 0 0 40zm-23.7 48l-.3 0c-13.3 0-24-10.7-24-24l0-256c0-22.1 17.9-40 40-40l368 0c22.1 0 40 17.9 40 40l0 256c0 13.3-10.7 24-24 24l-.3 0-399.4 0zM144 280l352 0 0-40-352 0 0 40z\"/></svg>",
|
|
1381
1383
|
"work_in_progress_circle_large": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\"><g ><g><path d=\"M20,40.17C8.97,40.17,0,31.19,0,20.17S8.97,.17,20,.17s20,8.97,20,20-8.97,20-20,20ZM20,1.46C9.68,1.46,1.29,9.85,1.29,20.17s8.39,18.71,18.71,18.71,18.71-8.39,18.71-18.71S30.32,1.46,20,1.46Z\" fill=\"#484f60\"/><g><path d=\"M31.74,27.25l-.08-1.41-.91-.48-1.55-.58-2.13-.1-1.45,.78-.78,.78-.19,1.55v1.36l-.1,.97-1.36,.29-1.16,.68-.97,.97-1.26,1.45h6.03c1.24-1.04,5-4.91,5.92-6.25Z\" fill=\"#484f60\"/><path d=\"M18.25,19.05l.29-4.65-.1-2.23-1.55-1.07-1.65-.48-2.33,.97-2.52,.97-1.94,.39-.19,.68,.58,2.33,.87,2.23-.68,1.36-.1,10.74,2.23,3.23,.1-1.65,.58-4.56,.39-4.07,1.84,3.49,.1,6.79h2.23v-6.21l-.1-1.94-1.55-3.3,6.73,5.76,.68-.1,.1-1.36-3.82-3.33-.19-3.98Zm-7.18-2.72l-.58-1.16,.1-1.16,2.81-.29-2.33,2.62Zm3.68,3.49l2.04-3.01-.19,2.91,.48,2.23-2.33-2.13Z\" fill=\"#484f60\"/><path d=\"M19.6,6.83c-1.29,0-2.33,1.04-2.33,2.33s1.04,2.33,2.33,2.33,2.33-1.04,2.33-2.33-1.04-2.33-2.33-2.33Z\" fill=\"#484f60\"/></g></g></g></svg>",
|
|
1382
1384
|
"x_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z\"/></svg>"
|
|
@@ -1978,6 +1980,7 @@ class TransactionEventService {
|
|
|
1978
1980
|
interbranchExistingOrderNavigation = new Subject();
|
|
1979
1981
|
serviceExistingOrderNavigation = new Subject();
|
|
1980
1982
|
salesQuotationOrderNavigation = new Subject();
|
|
1983
|
+
relationNavigationRequested = new Subject();
|
|
1981
1984
|
relationNavigation = new Subject();
|
|
1982
1985
|
articleNavigation = new Subject();
|
|
1983
1986
|
transactionNavigation = new Subject();
|
|
@@ -19061,18 +19064,16 @@ class TransactionReceivingGoodsHistoryComponent {
|
|
|
19061
19064
|
SimpleGridColumnTemplateType = SimpleGridColumnTemplateType;
|
|
19062
19065
|
showDeleteButton = true;
|
|
19063
19066
|
set goodsReceiptHistory(value) {
|
|
19064
|
-
|
|
19065
|
-
this._goodsReceiptHistory = value.reverse();
|
|
19066
|
-
}
|
|
19067
|
+
this._goodsReceiptHistory = value ? [...value].reverse() : [];
|
|
19067
19068
|
}
|
|
19068
19069
|
get goodsReceiptHistory() {
|
|
19069
19070
|
return this._goodsReceiptHistory;
|
|
19070
19071
|
}
|
|
19072
|
+
_goodsReceiptHistory = [];
|
|
19071
19073
|
deleteRow = new EventEmitter();
|
|
19072
19074
|
showClass() {
|
|
19073
19075
|
return true;
|
|
19074
19076
|
}
|
|
19075
|
-
_goodsReceiptHistory;
|
|
19076
19077
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionReceivingGoodsHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19077
19078
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionReceivingGoodsHistoryComponent, isStandalone: false, selector: "co-transaction-receiving-goods-history", inputs: { showDeleteButton: "showDeleteButton", goodsReceiptHistory: "goodsReceiptHistory" }, outputs: { deleteRow: "deleteRow" }, host: { properties: { "class.co-transaction-receiving-goods-history": "this.showClass" } }, ngImport: i0, template: `
|
|
19078
19079
|
<co-transaction-history-grid [showDeleteButton]="showDeleteButton"
|
|
@@ -20678,10 +20679,11 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
|
|
|
20678
20679
|
}
|
|
20679
20680
|
async getGoodsReceiptHistory() {
|
|
20680
20681
|
if (this.transactionInfo.id && this.transactionLine.lineNr) {
|
|
20681
|
-
this.transactionService.getGoodsReceiptHistory(this.transactionInfo.id, this.transactionLine.lineNr)
|
|
20682
|
-
|
|
20683
|
-
|
|
20684
|
-
|
|
20682
|
+
const result = await this.transactionService.getGoodsReceiptHistory(this.transactionInfo.id, this.transactionLine.lineNr);
|
|
20683
|
+
this.goodsReceiptHistory = result.goodsReceiptHistory
|
|
20684
|
+
? [...result.goodsReceiptHistory]
|
|
20685
|
+
: [];
|
|
20686
|
+
this.detectChanges();
|
|
20685
20687
|
}
|
|
20686
20688
|
}
|
|
20687
20689
|
handleSaveDetailsEdit() {
|
|
@@ -37380,11 +37382,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
37380
37382
|
}] } });
|
|
37381
37383
|
|
|
37382
37384
|
class VoucherCodePendingReasonDialogComponent extends DialogBaseComponent {
|
|
37385
|
+
iconCacheService;
|
|
37383
37386
|
showClass() {
|
|
37384
37387
|
return true;
|
|
37385
37388
|
}
|
|
37389
|
+
icons = Icon;
|
|
37386
37390
|
voucherCode = "";
|
|
37387
37391
|
pendingReason;
|
|
37392
|
+
constructor(iconCacheService) {
|
|
37393
|
+
super();
|
|
37394
|
+
this.iconCacheService = iconCacheService;
|
|
37395
|
+
}
|
|
37388
37396
|
handleOkClick() {
|
|
37389
37397
|
if (this.voucherCode && this.voucherCode.length > 0) {
|
|
37390
37398
|
this.onClose(AppPopupButtonType.Ok, this.voucherCode);
|
|
@@ -37398,44 +37406,70 @@ class VoucherCodePendingReasonDialogComponent extends DialogBaseComponent {
|
|
|
37398
37406
|
this.handleOkClick();
|
|
37399
37407
|
}
|
|
37400
37408
|
}
|
|
37401
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, deps:
|
|
37409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, deps: [{ token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
37402
37410
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: VoucherCodePendingReasonDialogComponent, isStandalone: false, selector: "co-voucher-code-pending-reason-dialog", host: { properties: { "class.co-voucher-code-pending-reason-dialog": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
37403
|
-
<co-dialog
|
|
37404
|
-
|
|
37411
|
+
<co-dialog
|
|
37412
|
+
[headerTemplate]="headerTemplate"
|
|
37413
|
+
[footerTemplate]="footerTemplate"
|
|
37414
|
+
(closeClick)="handleCloseClick()"
|
|
37415
|
+
[customCssClass]="'co-small-scrollbar'">
|
|
37416
|
+
|
|
37405
37417
|
<ng-template #headerTemplate >
|
|
37406
|
-
|
|
37418
|
+
<div class="co-dialog-header-title-icon">
|
|
37419
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.VoucherRegular)"></co-icon>
|
|
37420
|
+
<div class="co-dialog-header-title" [textContent]="'INPUT_VOUCHER_CODE' | localize"></div>
|
|
37421
|
+
</div>
|
|
37407
37422
|
</ng-template>
|
|
37408
|
-
|
|
37409
37423
|
<span class="bold" [textContent]="pendingReason"></span>
|
|
37410
|
-
|
|
37411
37424
|
<co-input-text [(model)]="voucherCode" (keydown)="onKeyDown($event)"></co-input-text>
|
|
37412
|
-
|
|
37413
|
-
|
|
37425
|
+
<ng-template #footerTemplate>
|
|
37426
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
37427
|
+
<co-button class="save-button"
|
|
37428
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
37429
|
+
(click)="handleOkClick()"></co-button>
|
|
37430
|
+
<co-button class="close-button"
|
|
37431
|
+
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
37432
|
+
(click)="handleCloseClick()"></co-button>
|
|
37433
|
+
</div>
|
|
37434
|
+
</ng-template>
|
|
37414
37435
|
</co-dialog>
|
|
37415
|
-
`, 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.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: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
37436
|
+
`, 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.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: 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: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
37416
37437
|
}
|
|
37417
37438
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, decorators: [{
|
|
37418
37439
|
type: Component,
|
|
37419
37440
|
args: [{
|
|
37420
37441
|
selector: 'co-voucher-code-pending-reason-dialog',
|
|
37421
37442
|
template: `
|
|
37422
|
-
<co-dialog
|
|
37423
|
-
|
|
37443
|
+
<co-dialog
|
|
37444
|
+
[headerTemplate]="headerTemplate"
|
|
37445
|
+
[footerTemplate]="footerTemplate"
|
|
37446
|
+
(closeClick)="handleCloseClick()"
|
|
37447
|
+
[customCssClass]="'co-small-scrollbar'">
|
|
37448
|
+
|
|
37424
37449
|
<ng-template #headerTemplate >
|
|
37425
|
-
|
|
37450
|
+
<div class="co-dialog-header-title-icon">
|
|
37451
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.VoucherRegular)"></co-icon>
|
|
37452
|
+
<div class="co-dialog-header-title" [textContent]="'INPUT_VOUCHER_CODE' | localize"></div>
|
|
37453
|
+
</div>
|
|
37426
37454
|
</ng-template>
|
|
37427
|
-
|
|
37428
37455
|
<span class="bold" [textContent]="pendingReason"></span>
|
|
37429
|
-
|
|
37430
37456
|
<co-input-text [(model)]="voucherCode" (keydown)="onKeyDown($event)"></co-input-text>
|
|
37431
|
-
|
|
37432
|
-
|
|
37457
|
+
<ng-template #footerTemplate>
|
|
37458
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
37459
|
+
<co-button class="save-button"
|
|
37460
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
37461
|
+
(click)="handleOkClick()"></co-button>
|
|
37462
|
+
<co-button class="close-button"
|
|
37463
|
+
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
37464
|
+
(click)="handleCloseClick()"></co-button>
|
|
37465
|
+
</div>
|
|
37466
|
+
</ng-template>
|
|
37433
37467
|
</co-dialog>
|
|
37434
37468
|
`,
|
|
37435
37469
|
encapsulation: ViewEncapsulation.None,
|
|
37436
37470
|
standalone: false
|
|
37437
37471
|
}]
|
|
37438
|
-
}], propDecorators: { showClass: [{
|
|
37472
|
+
}], ctorParameters: () => [{ type: IconCacheService }], propDecorators: { showClass: [{
|
|
37439
37473
|
type: HostBinding,
|
|
37440
37474
|
args: ['class.co-voucher-code-pending-reason-dialog']
|
|
37441
37475
|
}] } });
|
|
@@ -37446,12 +37480,14 @@ class VoucherCodePendingReasonDialogModule {
|
|
|
37446
37480
|
CoDialogModule,
|
|
37447
37481
|
InputTextModule,
|
|
37448
37482
|
PipeModule,
|
|
37449
|
-
ButtonModule
|
|
37483
|
+
ButtonModule,
|
|
37484
|
+
IconModule], exports: [VoucherCodePendingReasonDialogComponent] });
|
|
37450
37485
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogModule, imports: [CommonModule,
|
|
37451
37486
|
CoDialogModule,
|
|
37452
37487
|
InputTextModule,
|
|
37453
37488
|
PipeModule,
|
|
37454
|
-
ButtonModule
|
|
37489
|
+
ButtonModule,
|
|
37490
|
+
IconModule] });
|
|
37455
37491
|
}
|
|
37456
37492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogModule, decorators: [{
|
|
37457
37493
|
type: NgModule,
|
|
@@ -37461,7 +37497,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
37461
37497
|
CoDialogModule,
|
|
37462
37498
|
InputTextModule,
|
|
37463
37499
|
PipeModule,
|
|
37464
|
-
ButtonModule
|
|
37500
|
+
ButtonModule,
|
|
37501
|
+
IconModule
|
|
37465
37502
|
],
|
|
37466
37503
|
declarations: [
|
|
37467
37504
|
VoucherCodePendingReasonDialogComponent
|
|
@@ -38669,7 +38706,14 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
|
|
|
38669
38706
|
await this._askForSave();
|
|
38670
38707
|
}
|
|
38671
38708
|
else {
|
|
38672
|
-
this.transactionEventService.headerPopupClose.next(false);
|
|
38709
|
+
this.transactionEventService.headerPopupClose.next({ commit: false, relationData: null });
|
|
38710
|
+
}
|
|
38711
|
+
}), this.transactionEventService.relationNavigationRequested.subscribe(async (relationData) => {
|
|
38712
|
+
if (this.dirty) {
|
|
38713
|
+
await this._askForSave(relationData);
|
|
38714
|
+
}
|
|
38715
|
+
else {
|
|
38716
|
+
this.transactionEventService.headerPopupClose.next({ commit: false, relationData: relationData });
|
|
38673
38717
|
}
|
|
38674
38718
|
}));
|
|
38675
38719
|
if (this.transactionHeaderService.readonly) {
|
|
@@ -38683,7 +38727,7 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
|
|
|
38683
38727
|
this._subs.forEach(s => s.unsubscribe());
|
|
38684
38728
|
super.ngOnDestroy();
|
|
38685
38729
|
}
|
|
38686
|
-
async saveObjects() {
|
|
38730
|
+
async saveObjects(relationInfo = null) {
|
|
38687
38731
|
const updatedAddressForNewRelation = this.selectedDeliveryLocalHash && !this.relation.relationId;
|
|
38688
38732
|
if (this.formMasterService.submitSlaves()) {
|
|
38689
38733
|
this.transactionEventService.headerPopupSaving.next(true);
|
|
@@ -38718,7 +38762,10 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
|
|
|
38718
38762
|
finally {
|
|
38719
38763
|
this.transactionEventService.headerPopupSaving.next(false);
|
|
38720
38764
|
}
|
|
38721
|
-
|
|
38765
|
+
if (relationInfo) {
|
|
38766
|
+
this.transactionEventService.headerPopupClose.next({ commit: true, relationData: relationInfo });
|
|
38767
|
+
}
|
|
38768
|
+
this.transactionEventService.headerPopupClose.next({ commit: true, relationData: null });
|
|
38722
38769
|
}
|
|
38723
38770
|
}
|
|
38724
38771
|
async saveRelation() {
|
|
@@ -38758,13 +38805,13 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
|
|
|
38758
38805
|
this.dirty = true;
|
|
38759
38806
|
this.transactionEventService.headerPopupSaveButtonEnableChange.next(this.dirty);
|
|
38760
38807
|
}
|
|
38761
|
-
async _askForSave() {
|
|
38808
|
+
async _askForSave(relationInfo = null) {
|
|
38762
38809
|
const response = await this.dialogService.showYesNo('SAVE', 'MESSAGE_SAVE_CHANGES');
|
|
38763
38810
|
if (response.button === AppPopupButtonType.Yes) {
|
|
38764
|
-
await this.saveObjects();
|
|
38811
|
+
await this.saveObjects(relationInfo);
|
|
38765
38812
|
}
|
|
38766
38813
|
else {
|
|
38767
|
-
this.transactionEventService.headerPopupClose.next(false);
|
|
38814
|
+
this.transactionEventService.headerPopupClose.next({ commit: false, relationData: relationInfo });
|
|
38768
38815
|
}
|
|
38769
38816
|
}
|
|
38770
38817
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderPopupBaseComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: TransactionService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: DictionaryService }, { token: TransactionImageService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: i1$1.FormMasterService }, { token: TransactionRelationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -39450,7 +39497,7 @@ class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBase
|
|
|
39450
39497
|
if (!clonedRelation || !clonedRelation.relationType) {
|
|
39451
39498
|
return;
|
|
39452
39499
|
}
|
|
39453
|
-
this.transactionEventService.
|
|
39500
|
+
this.transactionEventService.relationNavigationRequested.next({ relationNr: Number(clonedRelation.relationNumber), relationKind: clonedRelation.relationType });
|
|
39454
39501
|
}
|
|
39455
39502
|
// protected transactionSet() {
|
|
39456
39503
|
// super.transactionSet();
|
|
@@ -43274,9 +43321,12 @@ class TransactionHeaderPopupComponent {
|
|
|
43274
43321
|
this.okButtonEnabled = enabled;
|
|
43275
43322
|
}), this._transactionEventService.headerPopupSaving.subscribe((isSaving) => {
|
|
43276
43323
|
this.saving = isSaving;
|
|
43277
|
-
}), this._transactionEventService.headerPopupClose.subscribe(async (
|
|
43278
|
-
const result = commit ? true : await this._transactionService.rollback(true);
|
|
43324
|
+
}), this._transactionEventService.headerPopupClose.subscribe(async (eventInfo) => {
|
|
43325
|
+
const result = eventInfo.commit ? true : await this._transactionService.rollback(true);
|
|
43279
43326
|
if (result) {
|
|
43327
|
+
if (eventInfo.relationData) {
|
|
43328
|
+
this._transactionEventService.relationNavigation.next(eventInfo.relationData);
|
|
43329
|
+
}
|
|
43280
43330
|
this.closeClick.emit();
|
|
43281
43331
|
}
|
|
43282
43332
|
}));
|
|
@@ -103968,6 +104018,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
|
|
|
103968
104018
|
commissionCodeDisplayList = [];
|
|
103969
104019
|
warehouseDescription;
|
|
103970
104020
|
commissionCodeDescription;
|
|
104021
|
+
commissionCodeReadonly = false;
|
|
103971
104022
|
constructor(element, iconCacheService, _transactionService, _changeDetector) {
|
|
103972
104023
|
super(element);
|
|
103973
104024
|
this.element = element;
|
|
@@ -104018,7 +104069,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
|
|
|
104018
104069
|
this._changeDetector.detectChanges();
|
|
104019
104070
|
}
|
|
104020
104071
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineWarehouseCcGeneralComponent, deps: [{ token: i0.ElementRef }, { token: IconCacheService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
104021
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionLineWarehouseCcGeneralComponent, isStandalone: false, selector: "co-transaction-line-warehouse-cc-general", host: { properties: { "class.co-transaction-line-warehouse-cc-general": "this.showClass" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
104072
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionLineWarehouseCcGeneralComponent, isStandalone: false, selector: "co-transaction-line-warehouse-cc-general", inputs: { commissionCodeReadonly: "commissionCodeReadonly" }, host: { properties: { "class.co-transaction-line-warehouse-cc-general": "this.showClass" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
104022
104073
|
<div class="warehouse-cc-tab-content-wrapper co-small-scrollbar" [class.purchase]="transKind.PurchaseOrder">
|
|
104023
104074
|
@if (transactionKind !== transKind.PurchaseOrder && transactionKind !== transKind.CashDesk) {
|
|
104024
104075
|
<div class="transaction-line-warehouse-cc-section">
|
|
@@ -104030,6 +104081,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
|
|
|
104030
104081
|
</div>
|
|
104031
104082
|
</div>
|
|
104032
104083
|
<co-transaction-line-commission-code
|
|
104084
|
+
[readonly]="commissionCodeReadonly"
|
|
104033
104085
|
[value]="commissionCode"
|
|
104034
104086
|
[useModel]="false"
|
|
104035
104087
|
[forceWritable]="true"
|
|
@@ -104069,6 +104121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
104069
104121
|
</div>
|
|
104070
104122
|
</div>
|
|
104071
104123
|
<co-transaction-line-commission-code
|
|
104124
|
+
[readonly]="commissionCodeReadonly"
|
|
104072
104125
|
[value]="commissionCode"
|
|
104073
104126
|
[useModel]="false"
|
|
104074
104127
|
[forceWritable]="true"
|
|
@@ -104097,6 +104150,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
104097
104150
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: IconCacheService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }], propDecorators: { showClass: [{
|
|
104098
104151
|
type: HostBinding,
|
|
104099
104152
|
args: ['class.co-transaction-line-warehouse-cc-general']
|
|
104153
|
+
}], commissionCodeReadonly: [{
|
|
104154
|
+
type: Input
|
|
104100
104155
|
}] } });
|
|
104101
104156
|
|
|
104102
104157
|
class TransactionLineWarehouseCcDirectsellComponent extends TransactionLineWarehouseCcBaseComponent {
|
|
@@ -104601,6 +104656,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
104601
104656
|
<div class="warehouse-cc-tabs-content">
|
|
104602
104657
|
<co-transaction-line-warehouse-cc-general #general class="tab-content"
|
|
104603
104658
|
[showing]="activeTab === tab.General"
|
|
104659
|
+
[commissionCodeReadonly]="transactionLine.articleFreeCommissionCode === false"
|
|
104604
104660
|
[transactionKind]="transactionKind"
|
|
104605
104661
|
[(commissionCode)]="commissionCode"
|
|
104606
104662
|
[(warehouse)]="warehouse"
|
|
@@ -104664,7 +104720,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
104664
104720
|
(click)="handleCloseDialog($event, buttonType.Cancel)"></co-button>
|
|
104665
104721
|
</div>
|
|
104666
104722
|
</ng-template>
|
|
104667
|
-
`, 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.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: 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.ListOfValuesComponent, selector: "co-list-of-values", inputs: ["model", "multiselect", "showToggleAll", "largeCollection", "displayField", "optionIcon", "collection", "collectionLoadFn", "collectionLoadFnProp", "leftIconData", "searchPlaceholder", "searchDisabled", "showChips"] }, { 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: TransactionLineWarehouseCcGeneralComponent, selector: "co-transaction-line-warehouse-cc-general" }, { kind: "component", type: TransactionLineWarehouseCcDirectsellComponent, selector: "co-transaction-line-warehouse-cc-directsell", inputs: ["selectedSupplier", "directSellPurchaseOrderNumber", "stockForecastDeliveryDate"], outputs: ["selectedSupplierChange", "directSellPurchaseOrderNumberChange", "stockForecastDeliveryDateChange"] }, { kind: "component", type: TransactionLineWarehouseCcInterbranchComponent, selector: "co-transaction-line-warehouse-cc-interbranch" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
104723
|
+
`, 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.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: 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.ListOfValuesComponent, selector: "co-list-of-values", inputs: ["model", "multiselect", "showToggleAll", "largeCollection", "displayField", "optionIcon", "collection", "collectionLoadFn", "collectionLoadFnProp", "leftIconData", "searchPlaceholder", "searchDisabled", "showChips"] }, { 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: TransactionLineWarehouseCcGeneralComponent, selector: "co-transaction-line-warehouse-cc-general", inputs: ["commissionCodeReadonly"] }, { kind: "component", type: TransactionLineWarehouseCcDirectsellComponent, selector: "co-transaction-line-warehouse-cc-directsell", inputs: ["selectedSupplier", "directSellPurchaseOrderNumber", "stockForecastDeliveryDate"], outputs: ["selectedSupplierChange", "directSellPurchaseOrderNumberChange", "stockForecastDeliveryDateChange"] }, { kind: "component", type: TransactionLineWarehouseCcInterbranchComponent, selector: "co-transaction-line-warehouse-cc-interbranch" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
104668
104724
|
}
|
|
104669
104725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionLineWarehouseCcComponent, decorators: [{
|
|
104670
104726
|
type: Component,
|
|
@@ -104713,6 +104769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
104713
104769
|
<div class="warehouse-cc-tabs-content">
|
|
104714
104770
|
<co-transaction-line-warehouse-cc-general #general class="tab-content"
|
|
104715
104771
|
[showing]="activeTab === tab.General"
|
|
104772
|
+
[commissionCodeReadonly]="transactionLine.articleFreeCommissionCode === false"
|
|
104716
104773
|
[transactionKind]="transactionKind"
|
|
104717
104774
|
[(commissionCode)]="commissionCode"
|
|
104718
104775
|
[(warehouse)]="warehouse"
|