@colijnit/transaction 262.1.25 → 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.
@@ -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, IconModule, 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';
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.25";
359
- publishDate = "25-6-2026, 16:03:13";
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();
@@ -7810,6 +7813,19 @@ class TransactionConnectorAdapterService {
7810
7813
  return 0;
7811
7814
  }
7812
7815
  }
7816
+ async createPublicQuote(request) {
7817
+ const response = await this.connector.createPublicQuote(request);
7818
+ if (response && response.validationResult && response.validationResult.success) {
7819
+ return response.resultObject;
7820
+ }
7821
+ else {
7822
+ this._handleExceptionFromResponse(response);
7823
+ return null;
7824
+ }
7825
+ }
7826
+ async getCreatePublicQuoteResponse(request) {
7827
+ return this.connector.createPublicQuote(request);
7828
+ }
7813
7829
  _openPdfContent(content) {
7814
7830
  if (content) {
7815
7831
  try {
@@ -9373,16 +9389,16 @@ class TransactionConnectorService {
9373
9389
  return this._adapterService.functionCall(this._adapterService.getCashRegistersForTransaction, [transactionUUID]);
9374
9390
  }
9375
9391
  async getLspPackageInfoPrintLayouts(showLoader) {
9376
- return await this._adapterService.getLspPackageInfoPrintLayouts(showLoader);
9392
+ return await this._adapterService.functionCall(this._adapterService.getLspPackageInfoPrintLayouts, [showLoader]);
9377
9393
  }
9378
9394
  async printLspPackageInfo(request, showLoader) {
9379
- return await this._adapterService.printLspPackageInfo(request);
9395
+ return await this._adapterService.functionCall(this._adapterService.printLspPackageInfo, [request]);
9380
9396
  }
9381
9397
  async printDeliveryNoteForLspPackage(request, showLoader) {
9382
- return await this._adapterService.printDeliveryNoteForLspPackage(request);
9398
+ return await this._adapterService.functionCall(this._adapterService.printDeliveryNoteForLspPackage, [request]);
9383
9399
  }
9384
9400
  async getRouteDeparture(request, showLoader) {
9385
- return await this._adapterService.getRouteDeparture(request);
9401
+ return await this._adapterService.functionCall(this._adapterService.getRouteDeparture, [request]);
9386
9402
  }
9387
9403
  async changeHeadersTransactionsDefinitive(request, showLoader) {
9388
9404
  return await this._adapterService.changeHeadersTransactionsDefinitive(request);
@@ -9436,49 +9452,55 @@ class TransactionConnectorService {
9436
9452
  return await this._adapterService.updateContainer(container);
9437
9453
  }
9438
9454
  async getCashPaymentValueByTransId(transId, showLoader) {
9439
- return await this._adapterService.getCashPaymentValueByTransId(transId);
9455
+ return await this._adapterService.functionCall(this._adapterService.getCashPaymentValueByTransId, [transId, showLoader]);
9440
9456
  }
9441
9457
  async getContactMoments(table, key, showLoader) {
9442
- return await this._adapterService.getContactMoments(table, key);
9458
+ return await this._adapterService.functionCall(this._adapterService.getContactMoments, [table, key, showLoader]);
9443
9459
  }
9444
9460
  async mergeContactMoments(mergeContactMomentsRequest, showLoader) {
9445
- return await this._adapterService.mergeContactMoments(mergeContactMomentsRequest);
9461
+ return await this._adapterService.functionCall(this._adapterService.mergeContactMoments, [mergeContactMomentsRequest, showLoader]);
9446
9462
  }
9447
9463
  async printWorkOrder(printWorkOrderRequest, showLoader) {
9448
- return await this._adapterService.printWorkOrder(printWorkOrderRequest);
9464
+ return await this._adapterService.functionCall(this._adapterService.printWorkOrder, [printWorkOrderRequest, showLoader]);
9449
9465
  }
9450
9466
  async printHistoricWorkOrder(printHistoricWorkOrderRequest, showLoader) {
9451
- return await this._adapterService.printHistoricWorkOrder(printHistoricWorkOrderRequest);
9467
+ return await this._adapterService.functionCall(this._adapterService.printHistoricWorkOrder, [printHistoricWorkOrderRequest, showLoader]);
9452
9468
  }
9453
9469
  async startWorkOrderBatch(batchTransactionSendingRequest, showLoader) {
9454
- return await this._adapterService.startWorkOrderBatch(batchTransactionSendingRequest);
9470
+ return await this._adapterService.functionCall(this._adapterService.startWorkOrderBatch, [batchTransactionSendingRequest, showLoader]);
9455
9471
  }
9456
9472
  async emailWorkOrder(emailWorkOrderRequest, showLoader) {
9457
- return await this._adapterService.emailWorkOrder(emailWorkOrderRequest);
9473
+ return await this._adapterService.functionCall(this._adapterService.emailWorkOrder, [emailWorkOrderRequest, showLoader]);
9458
9474
  }
9459
9475
  async emailHistoricWorkOrder(emailHistoricWorkOrderRequest, showLoader) {
9460
- return await this._adapterService.emailHistoricWorkOrder(emailHistoricWorkOrderRequest);
9476
+ return await this._adapterService.functionCall(this._adapterService.emailHistoricWorkOrder, [emailHistoricWorkOrderRequest, showLoader]);
9461
9477
  }
9462
9478
  async pdfWorkOrder(pdfWorkOrderRequest, localPrint, showLoader) {
9463
- return await this._adapterService.pdfWorkOrder(pdfWorkOrderRequest, localPrint);
9479
+ return await this._adapterService.functionCall(this._adapterService.pdfWorkOrder, [pdfWorkOrderRequest, localPrint, showLoader]);
9464
9480
  }
9465
9481
  async pdfHistoricWorkOrder(pdfHistoricWorkOrderRequest, showLoader) {
9466
- return await this._adapterService.pdfHistoricWorkOrder(pdfHistoricWorkOrderRequest);
9482
+ return await this._adapterService.functionCall(this._adapterService.pdfHistoricWorkOrder, [pdfHistoricWorkOrderRequest, showLoader]);
9467
9483
  }
9468
9484
  async getWorkOrderEmailLayouts(transactionUUID, showLoader) {
9469
- return await this._adapterService.getWorkOrderEmailLayouts(transactionUUID);
9485
+ return this._selectMultipleParameterizedCacheService.requestCache(ReportLayoutSelectionEmail, (transactionUUID) => {
9486
+ return this._adapterService.functionCall(this._adapterService.getWorkOrderEmailLayouts, [transactionUUID, showLoader]);
9487
+ }).getValue(transactionUUID);
9470
9488
  }
9471
9489
  async getWorkOrderPrintLayouts(transactionUUID, showLoader) {
9472
- return await this._adapterService.getWorkOrderPrintLayouts(transactionUUID);
9490
+ return this._selectMultipleParameterizedCacheService.requestCache(ReportLayoutSelectionPrint, (transactionUUID) => {
9491
+ return this._adapterService.functionCall(this._adapterService.getWorkOrderPrintLayouts, [transactionUUID, showLoader]);
9492
+ }).getValue(transactionUUID);
9473
9493
  }
9474
9494
  async getWorkOrderDefaultSendMethod(relationId, showLoader) {
9475
- return await this._adapterService.getWorkOrderDefaultSendMethod(relationId);
9495
+ return await this._adapterService.functionCall(this._adapterService.getWorkOrderDefaultSendMethod, [relationId, showLoader]);
9476
9496
  }
9477
9497
  async getDefaultEmailAddressListForWorkOrder(transactionUUID, showLoader) {
9478
- return await this._adapterService.getDefaultEmailAddressListForWorkOrder(transactionUUID);
9498
+ return this._selectMultipleParameterizedCacheService.requestCache(ReportLayoutSelectionEmail, (transactionUUID) => {
9499
+ return this._adapterService.functionCall(this._adapterService.getDefaultEmailAddressListForWorkOrder, [transactionUUID, showLoader]);
9500
+ }).getValue(transactionUUID);
9479
9501
  }
9480
9502
  async previewWorkOrder(pdfWorkOrderRequest, showLoader) {
9481
- return await this._adapterService.previewWorkOrder(pdfWorkOrderRequest);
9503
+ return await this._adapterService.functionCall(this._adapterService.previewWorkOrder, [pdfWorkOrderRequest, showLoader]);
9482
9504
  }
9483
9505
  async cancelPspTransaction(pspTransactionUuid) {
9484
9506
  return await this._adapterService.cancelPspTransaction(pspTransactionUuid);
@@ -9487,15 +9509,21 @@ class TransactionConnectorService {
9487
9509
  return await this._adapterService.createQRCode(width, height, data);
9488
9510
  }
9489
9511
  async roundUp(amount, paymentMethodCode, showLoader) {
9490
- return await this._adapterService.roundUp(amount, paymentMethodCode, showLoader);
9512
+ return await this._adapterService.functionCall(this._adapterService.roundUp, [amount, paymentMethodCode, showLoader]);
9513
+ }
9514
+ async createPublicQuote(request) {
9515
+ return this._adapterService.functionCall(this._adapterService.createPublicQuote, [request]);
9516
+ }
9517
+ async getCreatePublicQuoteResponse(request) {
9518
+ return this._adapterService.functionCall(this._adapterService.getCreatePublicQuoteResponse, [request]);
9491
9519
  }
9492
9520
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionConnectorService, deps: [{ token: TransactionConnectorAdapterService }, { token: TransactionSelectSingleCacheService }, { token: TransactionSelectMultipleCacheService }, { token: TransactionSelectMultipleParameterizedCacheService }, { token: TransactionSelectSingleParameterizedCacheService }], target: i0.ɵɵFactoryTarget.Injectable });
9493
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionConnectorService, providedIn: "root" });
9521
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionConnectorService, providedIn: 'root' });
9494
9522
  }
9495
9523
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionConnectorService, decorators: [{
9496
9524
  type: Injectable,
9497
9525
  args: [{
9498
- providedIn: "root"
9526
+ providedIn: 'root'
9499
9527
  }]
9500
9528
  }], ctorParameters: () => [{ type: TransactionConnectorAdapterService }, { type: TransactionSelectSingleCacheService }, { type: TransactionSelectMultipleCacheService }, { type: TransactionSelectMultipleParameterizedCacheService }, { type: TransactionSelectSingleParameterizedCacheService }] });
9501
9529
 
@@ -19036,18 +19064,16 @@ class TransactionReceivingGoodsHistoryComponent {
19036
19064
  SimpleGridColumnTemplateType = SimpleGridColumnTemplateType;
19037
19065
  showDeleteButton = true;
19038
19066
  set goodsReceiptHistory(value) {
19039
- if (value) {
19040
- this._goodsReceiptHistory = value.reverse();
19041
- }
19067
+ this._goodsReceiptHistory = value ? [...value].reverse() : [];
19042
19068
  }
19043
19069
  get goodsReceiptHistory() {
19044
19070
  return this._goodsReceiptHistory;
19045
19071
  }
19072
+ _goodsReceiptHistory = [];
19046
19073
  deleteRow = new EventEmitter();
19047
19074
  showClass() {
19048
19075
  return true;
19049
19076
  }
19050
- _goodsReceiptHistory;
19051
19077
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionReceivingGoodsHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19052
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: `
19053
19079
  <co-transaction-history-grid [showDeleteButton]="showDeleteButton"
@@ -20653,10 +20679,11 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
20653
20679
  }
20654
20680
  async getGoodsReceiptHistory() {
20655
20681
  if (this.transactionInfo.id && this.transactionLine.lineNr) {
20656
- this.transactionService.getGoodsReceiptHistory(this.transactionInfo.id, this.transactionLine.lineNr)
20657
- .then((result) => {
20658
- this.goodsReceiptHistory = result.goodsReceiptHistory ? result.goodsReceiptHistory : undefined;
20659
- });
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();
20660
20687
  }
20661
20688
  }
20662
20689
  handleSaveDetailsEdit() {
@@ -31460,6 +31487,7 @@ class RelationAddressesComponent extends RelationBaseComponent {
31460
31487
  transactionService;
31461
31488
  transactionEventService;
31462
31489
  transactionHeaderService;
31490
+ changeDetector;
31463
31491
  icons = Icon;
31464
31492
  readonly = false;
31465
31493
  addresses = [];
@@ -31476,7 +31504,7 @@ class RelationAddressesComponent extends RelationBaseComponent {
31476
31504
  showEditAddressDialog = false;
31477
31505
  addressToEdit;
31478
31506
  _boFactory = new BusinessObjectFactory();
31479
- constructor(_formMasterService, relationService, iconCacheService, transactionService, transactionEventService, transactionHeaderService) {
31507
+ constructor(_formMasterService, relationService, iconCacheService, transactionService, transactionEventService, transactionHeaderService, changeDetector) {
31480
31508
  super(transactionService, relationService);
31481
31509
  this._formMasterService = _formMasterService;
31482
31510
  this.relationService = relationService;
@@ -31484,6 +31512,7 @@ class RelationAddressesComponent extends RelationBaseComponent {
31484
31512
  this.transactionService = transactionService;
31485
31513
  this.transactionEventService = transactionEventService;
31486
31514
  this.transactionHeaderService = transactionHeaderService;
31515
+ this.changeDetector = changeDetector;
31487
31516
  }
31488
31517
  ngAfterViewInit() {
31489
31518
  if (!this.selectedNawNr && this.addresses && this.addresses.length > 0) {
@@ -31516,18 +31545,23 @@ class RelationAddressesComponent extends RelationBaseComponent {
31516
31545
  else {
31517
31546
  address.localHash = this.transactionHeaderService.generateAddressLocalHash(address);
31518
31547
  }
31519
- const idx = this.relation.addresses.findIndex(a => a.houseNo === address.houseNo && a.postalCode === address.postalCode && a.streetName === address.streetName);
31548
+ const idx = this.relation.addresses.findIndex(a => a.nawNr === address.nawNr);
31520
31549
  if (idx > -1) {
31521
31550
  this.relation.addresses[idx] = address;
31551
+ this.relationChange.emit(this.relation);
31522
31552
  }
31523
31553
  }
31524
- this.showEditAddressDialog = false;
31525
31554
  this.transactionEventService.headerPopupSaveButtonEnableChange.next(true);
31555
+ this.closeNewAddressDialog();
31526
31556
  }
31527
31557
  showNewAddressDialog() {
31528
31558
  this.addressToEdit = new Address();
31529
31559
  this.showEditAddressDialog = true;
31530
31560
  }
31561
+ closeNewAddressDialog() {
31562
+ this.showEditAddressDialog = false;
31563
+ this.changeDetector.detectChanges();
31564
+ }
31531
31565
  changeAddress(address) {
31532
31566
  if (address && !this.readonly) {
31533
31567
  if (address.nawNr && address.nawNr !== 0) {
@@ -31551,7 +31585,7 @@ class RelationAddressesComponent extends RelationBaseComponent {
31551
31585
  this.showEditAddressDialog = true;
31552
31586
  }
31553
31587
  }
31554
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RelationAddressesComponent, deps: [{ token: i1$1.FormMasterService }, { token: TransactionRelationService }, { token: IconCacheService }, { token: TransactionService }, { token: TransactionEventService }, { token: TransactionHeaderService }], target: i0.ɵɵFactoryTarget.Component });
31588
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RelationAddressesComponent, deps: [{ token: i1$1.FormMasterService }, { token: TransactionRelationService }, { token: IconCacheService }, { token: TransactionService }, { token: TransactionEventService }, { token: TransactionHeaderService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
31555
31589
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: RelationAddressesComponent, isStandalone: false, selector: "co-relation-addresses", inputs: { readonly: "readonly", addresses: "addresses", showOnlyActive: "showOnlyActive", type: "type", selectedNawNr: "selectedNawNr", selectedLocalHash: "selectedLocalHash", noSaveOnAddAddress: "noSaveOnAddAddress" }, outputs: { selectedNawNrChange: "selectedNawNrChange", selectedLocalHashChange: "selectedLocalHashChange" }, host: { properties: { "class.co-relation-addresses": "this.showClass" } }, providers: [
31556
31590
  FormMasterService
31557
31591
  ], usesInheritance: true, ngImport: i0, template: `
@@ -31563,7 +31597,7 @@ class RelationAddressesComponent extends RelationBaseComponent {
31563
31597
  [address]="address"
31564
31598
  [readonly]="readonly"
31565
31599
  [selected]="(selectedNawNr === address.nawNr && address.nawNr !== undefined) || (selectedLocalHash === address.localHash && address.localHash !== undefined)"
31566
- (editAddressClicked)="changeAddress($event)"
31600
+ (editAddressClicked)="editAddress($event)"
31567
31601
  (selectedChange)="handleChangeAddressClick($event)"
31568
31602
  ></co-relation-address-tile>
31569
31603
  }
@@ -31621,7 +31655,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
31621
31655
  [address]="address"
31622
31656
  [readonly]="readonly"
31623
31657
  [selected]="(selectedNawNr === address.nawNr && address.nawNr !== undefined) || (selectedLocalHash === address.localHash && address.localHash !== undefined)"
31624
- (editAddressClicked)="changeAddress($event)"
31658
+ (editAddressClicked)="editAddress($event)"
31625
31659
  (selectedChange)="handleChangeAddressClick($event)"
31626
31660
  ></co-relation-address-tile>
31627
31661
  }
@@ -31671,7 +31705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
31671
31705
  encapsulation: ViewEncapsulation.None,
31672
31706
  standalone: false
31673
31707
  }]
31674
- }], ctorParameters: () => [{ type: i1$1.FormMasterService }, { type: TransactionRelationService }, { type: IconCacheService }, { type: TransactionService }, { type: TransactionEventService }, { type: TransactionHeaderService }], propDecorators: { readonly: [{
31708
+ }], ctorParameters: () => [{ type: i1$1.FormMasterService }, { type: TransactionRelationService }, { type: IconCacheService }, { type: TransactionService }, { type: TransactionEventService }, { type: TransactionHeaderService }, { type: i0.ChangeDetectorRef }], propDecorators: { readonly: [{
31675
31709
  type: Input
31676
31710
  }], addresses: [{
31677
31711
  type: Input
@@ -37348,11 +37382,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
37348
37382
  }] } });
37349
37383
 
37350
37384
  class VoucherCodePendingReasonDialogComponent extends DialogBaseComponent {
37385
+ iconCacheService;
37351
37386
  showClass() {
37352
37387
  return true;
37353
37388
  }
37389
+ icons = Icon;
37354
37390
  voucherCode = "";
37355
37391
  pendingReason;
37392
+ constructor(iconCacheService) {
37393
+ super();
37394
+ this.iconCacheService = iconCacheService;
37395
+ }
37356
37396
  handleOkClick() {
37357
37397
  if (this.voucherCode && this.voucherCode.length > 0) {
37358
37398
  this.onClose(AppPopupButtonType.Ok, this.voucherCode);
@@ -37366,44 +37406,70 @@ class VoucherCodePendingReasonDialogComponent extends DialogBaseComponent {
37366
37406
  this.handleOkClick();
37367
37407
  }
37368
37408
  }
37369
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
37409
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, deps: [{ token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
37370
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: `
37371
- <co-dialog [headerTemplate]="headerTemplate" (closeClick)="handleCloseClick()">
37372
-
37411
+ <co-dialog
37412
+ [headerTemplate]="headerTemplate"
37413
+ [footerTemplate]="footerTemplate"
37414
+ (closeClick)="handleCloseClick()"
37415
+ [customCssClass]="'co-small-scrollbar'">
37416
+
37373
37417
  <ng-template #headerTemplate >
37374
- <span [textContent]="'INPUT_VOUCHER_CODE' | localize"></span>
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>
37375
37422
  </ng-template>
37376
-
37377
37423
  <span class="bold" [textContent]="pendingReason"></span>
37378
-
37379
37424
  <co-input-text [(model)]="voucherCode" (keydown)="onKeyDown($event)"></co-input-text>
37380
- <co-button [label]="'SUBMIT' | localize" (onClick)="handleOkClick()"></co-button>
37381
-
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>
37382
37435
  </co-dialog>
37383
- `, 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 });
37384
37437
  }
37385
37438
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogComponent, decorators: [{
37386
37439
  type: Component,
37387
37440
  args: [{
37388
37441
  selector: 'co-voucher-code-pending-reason-dialog',
37389
37442
  template: `
37390
- <co-dialog [headerTemplate]="headerTemplate" (closeClick)="handleCloseClick()">
37391
-
37443
+ <co-dialog
37444
+ [headerTemplate]="headerTemplate"
37445
+ [footerTemplate]="footerTemplate"
37446
+ (closeClick)="handleCloseClick()"
37447
+ [customCssClass]="'co-small-scrollbar'">
37448
+
37392
37449
  <ng-template #headerTemplate >
37393
- <span [textContent]="'INPUT_VOUCHER_CODE' | localize"></span>
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>
37394
37454
  </ng-template>
37395
-
37396
37455
  <span class="bold" [textContent]="pendingReason"></span>
37397
-
37398
37456
  <co-input-text [(model)]="voucherCode" (keydown)="onKeyDown($event)"></co-input-text>
37399
- <co-button [label]="'SUBMIT' | localize" (onClick)="handleOkClick()"></co-button>
37400
-
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>
37401
37467
  </co-dialog>
37402
37468
  `,
37403
37469
  encapsulation: ViewEncapsulation.None,
37404
37470
  standalone: false
37405
37471
  }]
37406
- }], propDecorators: { showClass: [{
37472
+ }], ctorParameters: () => [{ type: IconCacheService }], propDecorators: { showClass: [{
37407
37473
  type: HostBinding,
37408
37474
  args: ['class.co-voucher-code-pending-reason-dialog']
37409
37475
  }] } });
@@ -37414,12 +37480,14 @@ class VoucherCodePendingReasonDialogModule {
37414
37480
  CoDialogModule,
37415
37481
  InputTextModule,
37416
37482
  PipeModule,
37417
- ButtonModule], exports: [VoucherCodePendingReasonDialogComponent] });
37483
+ ButtonModule,
37484
+ IconModule], exports: [VoucherCodePendingReasonDialogComponent] });
37418
37485
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogModule, imports: [CommonModule,
37419
37486
  CoDialogModule,
37420
37487
  InputTextModule,
37421
37488
  PipeModule,
37422
- ButtonModule] });
37489
+ ButtonModule,
37490
+ IconModule] });
37423
37491
  }
37424
37492
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: VoucherCodePendingReasonDialogModule, decorators: [{
37425
37493
  type: NgModule,
@@ -37429,7 +37497,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
37429
37497
  CoDialogModule,
37430
37498
  InputTextModule,
37431
37499
  PipeModule,
37432
- ButtonModule
37500
+ ButtonModule,
37501
+ IconModule
37433
37502
  ],
37434
37503
  declarations: [
37435
37504
  VoucherCodePendingReasonDialogComponent
@@ -38637,7 +38706,14 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
38637
38706
  await this._askForSave();
38638
38707
  }
38639
38708
  else {
38640
- 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 });
38641
38717
  }
38642
38718
  }));
38643
38719
  if (this.transactionHeaderService.readonly) {
@@ -38651,7 +38727,7 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
38651
38727
  this._subs.forEach(s => s.unsubscribe());
38652
38728
  super.ngOnDestroy();
38653
38729
  }
38654
- async saveObjects() {
38730
+ async saveObjects(relationInfo = null) {
38655
38731
  const updatedAddressForNewRelation = this.selectedDeliveryLocalHash && !this.relation.relationId;
38656
38732
  if (this.formMasterService.submitSlaves()) {
38657
38733
  this.transactionEventService.headerPopupSaving.next(true);
@@ -38686,7 +38762,10 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
38686
38762
  finally {
38687
38763
  this.transactionEventService.headerPopupSaving.next(false);
38688
38764
  }
38689
- this.transactionEventService.headerPopupClose.next(true);
38765
+ if (relationInfo) {
38766
+ this.transactionEventService.headerPopupClose.next({ commit: true, relationData: relationInfo });
38767
+ }
38768
+ this.transactionEventService.headerPopupClose.next({ commit: true, relationData: null });
38690
38769
  }
38691
38770
  }
38692
38771
  async saveRelation() {
@@ -38726,13 +38805,13 @@ class TransactionHeaderPopupBaseComponent extends TransactionHeaderBaseComponent
38726
38805
  this.dirty = true;
38727
38806
  this.transactionEventService.headerPopupSaveButtonEnableChange.next(this.dirty);
38728
38807
  }
38729
- async _askForSave() {
38808
+ async _askForSave(relationInfo = null) {
38730
38809
  const response = await this.dialogService.showYesNo('SAVE', 'MESSAGE_SAVE_CHANGES');
38731
38810
  if (response.button === AppPopupButtonType.Yes) {
38732
- await this.saveObjects();
38811
+ await this.saveObjects(relationInfo);
38733
38812
  }
38734
38813
  else {
38735
- this.transactionEventService.headerPopupClose.next(false);
38814
+ this.transactionEventService.headerPopupClose.next({ commit: false, relationData: relationInfo });
38736
38815
  }
38737
38816
  }
38738
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 });
@@ -39418,7 +39497,7 @@ class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBase
39418
39497
  if (!clonedRelation || !clonedRelation.relationType) {
39419
39498
  return;
39420
39499
  }
39421
- this.transactionEventService.relationNavigation.next({ relationNr: Number(clonedRelation.relationNumber), relationKind: clonedRelation.relationType });
39500
+ this.transactionEventService.relationNavigationRequested.next({ relationNr: Number(clonedRelation.relationNumber), relationKind: clonedRelation.relationType });
39422
39501
  }
39423
39502
  // protected transactionSet() {
39424
39503
  // super.transactionSet();
@@ -43242,9 +43321,12 @@ class TransactionHeaderPopupComponent {
43242
43321
  this.okButtonEnabled = enabled;
43243
43322
  }), this._transactionEventService.headerPopupSaving.subscribe((isSaving) => {
43244
43323
  this.saving = isSaving;
43245
- }), this._transactionEventService.headerPopupClose.subscribe(async (commit) => {
43246
- 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);
43247
43326
  if (result) {
43327
+ if (eventInfo.relationData) {
43328
+ this._transactionEventService.relationNavigation.next(eventInfo.relationData);
43329
+ }
43248
43330
  this.closeClick.emit();
43249
43331
  }
43250
43332
  }));
@@ -85034,13 +85116,13 @@ class TransactionCreationService extends TransactionService {
85034
85116
  return reject();
85035
85117
  }
85036
85118
  request.branchNr = this.currentBranch;
85037
- try {
85038
- const response = await this.connector.convertSalesQuotationToSalesOrder(request);
85119
+ const response = await this.connector.convertSalesQuotationToSalesOrder(request);
85120
+ if (response) {
85039
85121
  await this.handleLineOperationStatuses(response);
85040
85122
  resolve(response.transactionInfo.transactionNr);
85041
85123
  }
85042
- catch (e) {
85043
- return reject(NaN);
85124
+ else {
85125
+ resolve(null);
85044
85126
  }
85045
85127
  });
85046
85128
  }
@@ -103936,6 +104018,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
103936
104018
  commissionCodeDisplayList = [];
103937
104019
  warehouseDescription;
103938
104020
  commissionCodeDescription;
104021
+ commissionCodeReadonly = false;
103939
104022
  constructor(element, iconCacheService, _transactionService, _changeDetector) {
103940
104023
  super(element);
103941
104024
  this.element = element;
@@ -103986,7 +104069,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
103986
104069
  this._changeDetector.detectChanges();
103987
104070
  }
103988
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 });
103989
- 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: `
103990
104073
  <div class="warehouse-cc-tab-content-wrapper co-small-scrollbar" [class.purchase]="transKind.PurchaseOrder">
103991
104074
  @if (transactionKind !== transKind.PurchaseOrder && transactionKind !== transKind.CashDesk) {
103992
104075
  <div class="transaction-line-warehouse-cc-section">
@@ -103998,6 +104081,7 @@ class TransactionLineWarehouseCcGeneralComponent extends TransactionLineWarehous
103998
104081
  </div>
103999
104082
  </div>
104000
104083
  <co-transaction-line-commission-code
104084
+ [readonly]="commissionCodeReadonly"
104001
104085
  [value]="commissionCode"
104002
104086
  [useModel]="false"
104003
104087
  [forceWritable]="true"
@@ -104037,6 +104121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
104037
104121
  </div>
104038
104122
  </div>
104039
104123
  <co-transaction-line-commission-code
104124
+ [readonly]="commissionCodeReadonly"
104040
104125
  [value]="commissionCode"
104041
104126
  [useModel]="false"
104042
104127
  [forceWritable]="true"
@@ -104065,6 +104150,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
104065
104150
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: IconCacheService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }], propDecorators: { showClass: [{
104066
104151
  type: HostBinding,
104067
104152
  args: ['class.co-transaction-line-warehouse-cc-general']
104153
+ }], commissionCodeReadonly: [{
104154
+ type: Input
104068
104155
  }] } });
104069
104156
 
104070
104157
  class TransactionLineWarehouseCcDirectsellComponent extends TransactionLineWarehouseCcBaseComponent {
@@ -104569,6 +104656,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
104569
104656
  <div class="warehouse-cc-tabs-content">
104570
104657
  <co-transaction-line-warehouse-cc-general #general class="tab-content"
104571
104658
  [showing]="activeTab === tab.General"
104659
+ [commissionCodeReadonly]="transactionLine.articleFreeCommissionCode === false"
104572
104660
  [transactionKind]="transactionKind"
104573
104661
  [(commissionCode)]="commissionCode"
104574
104662
  [(warehouse)]="warehouse"
@@ -104632,7 +104720,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
104632
104720
  (click)="handleCloseDialog($event, buttonType.Cancel)"></co-button>
104633
104721
  </div>
104634
104722
  </ng-template>
104635
- `, 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 });
104636
104724
  }
104637
104725
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionLineWarehouseCcComponent, decorators: [{
104638
104726
  type: Component,
@@ -104681,6 +104769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
104681
104769
  <div class="warehouse-cc-tabs-content">
104682
104770
  <co-transaction-line-warehouse-cc-general #general class="tab-content"
104683
104771
  [showing]="activeTab === tab.General"
104772
+ [commissionCodeReadonly]="transactionLine.articleFreeCommissionCode === false"
104684
104773
  [transactionKind]="transactionKind"
104685
104774
  [(commissionCode)]="commissionCode"
104686
104775
  [(warehouse)]="warehouse"
@@ -110101,46 +110190,32 @@ class TransactionInvoiceCheckOrderTileComponent {
110101
110190
  SimpleGridColumnTemplateType = SimpleGridColumnTemplateType;
110102
110191
  columnAlign = ColumnAlign;
110103
110192
  icons = Icon;
110104
- showClass() {
110105
- return true;
110106
- }
110107
- selected = false;
110108
- toCheckInputList;
110109
- set toCheckInputs(toCheckInputs) {
110110
- this.toCheckInputList = toCheckInputs;
110111
- }
110112
- ;
110113
- bookingPriceInputList;
110114
- set bookingPriceInputs(bookingPriceInputs) {
110115
- this.bookingPriceInputList = bookingPriceInputs;
110116
- }
110117
- ;
110118
110193
  invoiceCheckOrder;
110119
110194
  lineSelectedEvent = new EventEmitter();
110120
110195
  saveRowEvent = new EventEmitter();
110121
110196
  selectAllLinesEvent = new EventEmitter();
110122
110197
  openTransactionEvent = new EventEmitter();
110198
+ selected = false;
110123
110199
  constructor(iconCacheService, changeDetector) {
110124
110200
  this.iconCacheService = iconCacheService;
110125
110201
  this.changeDetector = changeDetector;
110126
110202
  }
110203
+ showClass() {
110204
+ return true;
110205
+ }
110127
110206
  handleLineSelected(selected, line) {
110128
110207
  line.process = selected;
110129
110208
  this.lineSelectedEvent.emit({ selected: selected, lineNumber: line.lineNumber });
110130
110209
  }
110131
110210
  handleSaveRow(data) {
110132
110211
  const row = data;
110133
- let index = this.invoiceCheckOrder.orderLines.indexOf(row);
110134
- let bookingPrice = parseInt(this.bookingPriceInputList.get(index).model);
110135
- let quantity = parseInt(this.toCheckInputList.get(index).model);
110136
- this.saveRowEvent.emit({ row: row, newValues: { bookingPrice: bookingPrice, quantity: quantity } });
110212
+ this.saveRowEvent.emit({ row: row, newValues: { bookingPrice: row.bookingPrice, quantity: row.toCheck } });
110137
110213
  }
110138
110214
  handleOpenTransaction(transNo) {
110139
110215
  this.openTransactionEvent.emit(transNo);
110140
110216
  }
110141
- close = close;
110142
110217
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInvoiceCheckOrderTileComponent, deps: [{ token: IconCacheService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
110143
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionInvoiceCheckOrderTileComponent, isStandalone: false, selector: "co-transaction-invoice-check-order-tile", inputs: { invoiceCheckOrder: "invoiceCheckOrder" }, outputs: { lineSelectedEvent: "lineSelectedEvent", saveRowEvent: "saveRowEvent", selectAllLinesEvent: "selectAllLinesEvent", openTransactionEvent: "openTransactionEvent" }, host: { properties: { "class.co-transaction-invoice-check-order-tile": "this.showClass" } }, viewQueries: [{ propertyName: "toCheckInputs", predicate: ["editToCheckComponent"], descendants: true }, { propertyName: "bookingPriceInputs", predicate: ["editBookingPriceComponent"], descendants: true }], ngImport: i0, template: `
110218
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionInvoiceCheckOrderTileComponent, isStandalone: false, selector: "co-transaction-invoice-check-order-tile", inputs: { invoiceCheckOrder: "invoiceCheckOrder" }, outputs: { lineSelectedEvent: "lineSelectedEvent", saveRowEvent: "saveRowEvent", selectAllLinesEvent: "selectAllLinesEvent", openTransactionEvent: "openTransactionEvent" }, host: { properties: { "class.co-transaction-invoice-check-order-tile": "this.showClass" } }, ngImport: i0, template: `
110144
110219
  <div class="row">
110145
110220
  <div class="transaction-tile-wrapper">
110146
110221
  <div class="tile">
@@ -110226,7 +110301,7 @@ class TransactionInvoiceCheckOrderTileComponent {
110226
110301
  <span [textContent]="row['bookingPrice'] | coCurrency: true"></span>
110227
110302
  </ng-template>
110228
110303
  <ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
110229
- <co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['bookingPrice']"></co-input-text>
110304
+ <co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [(model)]="row['bookingPrice']"></co-input-text>
110230
110305
  </ng-template>
110231
110306
  </co-simple-grid-column>
110232
110307
 
@@ -110279,7 +110354,7 @@ class TransactionInvoiceCheckOrderTileComponent {
110279
110354
  <span [textContent]="row['toCheck']"></span>
110280
110355
  </ng-template>
110281
110356
  <ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
110282
- <co-input-text #editToCheckComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['toCheck']"></co-input-text>
110357
+ <co-input-text #editToCheckComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [(model)]="row['toCheck']"></co-input-text>
110283
110358
  </ng-template>
110284
110359
  </co-simple-grid-column>
110285
110360
 
@@ -110383,7 +110458,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
110383
110458
  <span [textContent]="row['bookingPrice'] | coCurrency: true"></span>
110384
110459
  </ng-template>
110385
110460
  <ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
110386
- <co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['bookingPrice']"></co-input-text>
110461
+ <co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [(model)]="row['bookingPrice']"></co-input-text>
110387
110462
  </ng-template>
110388
110463
  </co-simple-grid-column>
110389
110464
 
@@ -110436,7 +110511,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
110436
110511
  <span [textContent]="row['toCheck']"></span>
110437
110512
  </ng-template>
110438
110513
  <ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
110439
- <co-input-text #editToCheckComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['toCheck']"></co-input-text>
110514
+ <co-input-text #editToCheckComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [(model)]="row['toCheck']"></co-input-text>
110440
110515
  </ng-template>
110441
110516
  </co-simple-grid-column>
110442
110517
 
@@ -110452,16 +110527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
110452
110527
  encapsulation: ViewEncapsulation.None,
110453
110528
  standalone: false
110454
110529
  }]
110455
- }], ctorParameters: () => [{ type: IconCacheService }, { type: i0.ChangeDetectorRef }], propDecorators: { showClass: [{
110456
- type: HostBinding,
110457
- args: ['class.co-transaction-invoice-check-order-tile']
110458
- }], toCheckInputs: [{
110459
- type: ViewChildren,
110460
- args: ['editToCheckComponent']
110461
- }], bookingPriceInputs: [{
110462
- type: ViewChildren,
110463
- args: ['editBookingPriceComponent']
110464
- }], invoiceCheckOrder: [{
110530
+ }], ctorParameters: () => [{ type: IconCacheService }, { type: i0.ChangeDetectorRef }], propDecorators: { invoiceCheckOrder: [{
110465
110531
  type: Input
110466
110532
  }], lineSelectedEvent: [{
110467
110533
  type: Output
@@ -110471,6 +110537,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
110471
110537
  type: Output
110472
110538
  }], openTransactionEvent: [{
110473
110539
  type: Output
110540
+ }], showClass: [{
110541
+ type: HostBinding,
110542
+ args: ['class.co-transaction-invoice-check-order-tile']
110474
110543
  }] } });
110475
110544
 
110476
110545
  class TransactionInvoiceCheckOrderTileModule {