@colijnit/transaction 261.20.63 → 261.20.64

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.
@@ -354,8 +354,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
354
354
  class Version {
355
355
  name = "@colijnit/transaction";
356
356
  description = "Colijn IT transaction package";
357
- symVer = "261.20.63";
358
- publishDate = "17-7-2026, 16:36:05";
357
+ symVer = "261.20.64";
358
+ publishDate = "12-8-2026, 18:02:23";
359
359
  }
360
360
 
361
361
  class CheckoutModuleService extends BaseModuleService {
@@ -15450,6 +15450,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
15450
15450
 
15451
15451
  class OrderLineSetService {
15452
15452
  currentOrderLineSetCode;
15453
+ currentCompositionId;
15453
15454
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OrderLineSetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
15454
15455
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: OrderLineSetService, providedIn: "root" });
15455
15456
  }
@@ -15510,6 +15511,10 @@ class TransactionTextLineComponent extends TransactionLineBaseComponent {
15510
15511
  this.changeDetector = changeDetector;
15511
15512
  }
15512
15513
  orderLineSetButtonClicked() {
15514
+ this.orderLineSetService.currentCompositionId =
15515
+ this.orderLineSetService.currentCompositionId === this.transactionLine.compositionId ?
15516
+ null :
15517
+ this.transactionLine.compositionId;
15513
15518
  this.orderLineSetService.currentOrderLineSetCode =
15514
15519
  this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode ?
15515
15520
  null :
@@ -15684,7 +15689,7 @@ class TransactionLineToolbarComponent {
15684
15689
  this._transactionKind = this._transactionService.currentTransaction.transactionInfo.transactionKind;
15685
15690
  this.canCreateService = ((this._transactionKind === TransactionKind.SalesOrder)
15686
15691
  && (this.transactionLine && this.transactionLine.articleLineStatus
15687
- && this.transactionLine.articleLineStatus.quantityDelivered && this.transactionLine.articleLineStatus.quantityDelivered > 0));
15692
+ && this.transactionLine.articleLineStatus.quantityAllocated && this.transactionLine.articleLineStatus.quantityAllocated > 0));
15688
15693
  this.canReopenExternalOrder = this._isReopenableExternalCatalogLine();
15689
15694
  this.conversionUnitsAvailable = await this._getConversionUnitsAvailable();
15690
15695
  this.areAllowedToChangeOrder = (this._transactionKind !== TransactionKind.SalesOrder || !(this._transactionService.invoiceCompleted && !this._transactionService.canChangeSalesOrderWhenFullyInvoiced));
@@ -38729,6 +38734,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
38729
38734
  class DropShipmentComponent {
38730
38735
  iconCacheService;
38731
38736
  transactionService;
38737
+ transactionEventService;
38738
+ changeDetection;
38732
38739
  _dialogService;
38733
38740
  showClass() {
38734
38741
  return true;
@@ -38742,13 +38749,21 @@ class DropShipmentComponent {
38742
38749
  showDisconnectButton = false;
38743
38750
  editMode = false;
38744
38751
  icons = Icon;
38745
- constructor(iconCacheService, transactionService, _dialogService) {
38752
+ constructor(iconCacheService, transactionService, transactionEventService, changeDetection, _dialogService) {
38746
38753
  this.iconCacheService = iconCacheService;
38747
38754
  this.transactionService = transactionService;
38755
+ this.transactionEventService = transactionEventService;
38756
+ this.changeDetection = changeDetection;
38748
38757
  this._dialogService = _dialogService;
38749
38758
  }
38750
38759
  ngOnInit() {
38751
- void this._getAddresses();
38760
+ this._getAddresses().then(() => {
38761
+ this.setExistingAddressIfExists();
38762
+ });
38763
+ }
38764
+ handleShowDropShipmentDialog() {
38765
+ this.showDropShipmentDialog = true;
38766
+ this.setExistingAddressIfExists();
38752
38767
  }
38753
38768
  saveDropShipment() {
38754
38769
  this.dropShipmentInfo.relationId = this.transactionService.relation.relationId;
@@ -38786,19 +38801,36 @@ class DropShipmentComponent {
38786
38801
  }
38787
38802
  this.existingDropShipmentAddresses = this.allDropShipmentAddresses.filter(address => this._objectContainsTerm(address, this.searchTerm));
38788
38803
  }
38804
+ setExistingAddressIfExists() {
38805
+ if (this.transactionService.currentTransaction.transactionInfo.dropshipmentInfoId) {
38806
+ const existingAddress = this.existingDropShipmentAddresses.find(di => di.id === this.transactionService.currentTransaction.transactionInfo.dropshipmentInfoId);
38807
+ if (existingAddress) {
38808
+ this.dropShipmentInfo = existingAddress;
38809
+ this.showDisconnectButton = true;
38810
+ }
38811
+ }
38812
+ }
38789
38813
  selectAddress(selectedAddress) {
38790
38814
  this.dropShipmentInfo = selectedAddress;
38791
38815
  const request = new ChangeHeaderDropshipmentInfoRequest();
38792
38816
  request.transactionUuid = this.transUuid;
38793
38817
  request.newDropshipmentInfoId = selectedAddress.id;
38794
- this.transactionService.changeHeaderDropshipmentInfo(request).then(() => this.showDisconnectButton = true);
38818
+ this.transactionService.changeHeaderDropshipmentInfo(request).then(() => {
38819
+ this.showDisconnectButton = true;
38820
+ this.changeDetection.detectChanges();
38821
+ this.transactionEventService.headerPopupSaveButtonEnableChange.next(true);
38822
+ });
38795
38823
  }
38796
38824
  removeDropShipment() {
38797
38825
  this.dropShipmentInfo = new DropshipmentInfo();
38798
38826
  const request = new ChangeHeaderDropshipmentInfoRequest();
38799
38827
  request.transactionUuid = this.transUuid;
38800
38828
  request.newDropshipmentInfoId = null;
38801
- this.transactionService.changeHeaderDropshipmentInfo(request).then(() => this.showDisconnectButton = false);
38829
+ this.transactionService.changeHeaderDropshipmentInfo(request).then(() => {
38830
+ this.showDisconnectButton = false;
38831
+ this.changeDetection.detectChanges();
38832
+ this.transactionEventService.headerPopupSaveButtonEnableChange.next(true);
38833
+ });
38802
38834
  }
38803
38835
  addNewAddress() {
38804
38836
  this.dropShipmentInfo = new DropshipmentInfo();
@@ -38808,6 +38840,9 @@ class DropShipmentComponent {
38808
38840
  this.dropShipmentInfo = new DropshipmentInfo();
38809
38841
  this.editMode = false;
38810
38842
  }
38843
+ detectChanges() {
38844
+ this.changeDetection.detectChanges();
38845
+ }
38811
38846
  _objectContainsTerm(address, term) {
38812
38847
  const fieldsToSearch = [
38813
38848
  address.dropshipmentName,
@@ -38829,12 +38864,12 @@ class DropShipmentComponent {
38829
38864
  this.allDropShipmentAddresses = await this.transactionService.getDropshipmentInfosByRelationId(this.transactionService.relation.relationId);
38830
38865
  this.existingDropShipmentAddresses = this.allDropShipmentAddresses;
38831
38866
  }
38832
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DropShipmentComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: TransactionDialogService }], target: i0.ɵɵFactoryTarget.Component });
38867
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DropShipmentComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: TransactionEventService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }], target: i0.ɵɵFactoryTarget.Component });
38833
38868
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DropShipmentComponent, isStandalone: false, selector: "co-drop-shipment", inputs: { transUuid: "transUuid" }, host: { properties: { "class.co-drop-shipment": "this.showClass" } }, ngImport: i0, template: `
38834
38869
  <div class="default-data-row">
38835
38870
  <div class="new-drop-shipment-link">
38836
38871
  <icon class="drop-shipment-icon" [icon]="icons.ArrowPointRight"></icon>
38837
- <div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="showDropShipmentDialog = true"></div>
38872
+ <div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="handleShowDropShipmentDialog()"></div>
38838
38873
  </div>
38839
38874
  </div>
38840
38875
 
@@ -38970,7 +39005,7 @@ class DropShipmentComponent {
38970
39005
  </div>
38971
39006
  }
38972
39007
  </section>
38973
-
39008
+
38974
39009
  <ng-template #templateHeader>
38975
39010
  <div class="co-dialog-header-title-icon">
38976
39011
  <co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
@@ -38979,11 +39014,6 @@ class DropShipmentComponent {
38979
39014
  </ng-template>
38980
39015
  <ng-template #templateFooter>
38981
39016
  <div class="co-dialog-footer-button-wrapper">
38982
- <co-button
38983
- class="save-button"
38984
- [iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
38985
- (click)="closeDropShipment()">
38986
- </co-button>
38987
39017
  <co-button
38988
39018
  class="close-button"
38989
39019
  [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
@@ -39003,7 +39033,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
39003
39033
  <div class="default-data-row">
39004
39034
  <div class="new-drop-shipment-link">
39005
39035
  <icon class="drop-shipment-icon" [icon]="icons.ArrowPointRight"></icon>
39006
- <div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="showDropShipmentDialog = true"></div>
39036
+ <div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="handleShowDropShipmentDialog()"></div>
39007
39037
  </div>
39008
39038
  </div>
39009
39039
 
@@ -39139,7 +39169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
39139
39169
  </div>
39140
39170
  }
39141
39171
  </section>
39142
-
39172
+
39143
39173
  <ng-template #templateHeader>
39144
39174
  <div class="co-dialog-header-title-icon">
39145
39175
  <co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
@@ -39148,11 +39178,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
39148
39178
  </ng-template>
39149
39179
  <ng-template #templateFooter>
39150
39180
  <div class="co-dialog-footer-button-wrapper">
39151
- <co-button
39152
- class="save-button"
39153
- [iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
39154
- (click)="closeDropShipment()">
39155
- </co-button>
39156
39181
  <co-button
39157
39182
  class="close-button"
39158
39183
  [iconData]="iconCacheService.getIcon(icons.Crossskinny)"
@@ -39166,7 +39191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
39166
39191
  encapsulation: ViewEncapsulation.None,
39167
39192
  standalone: false
39168
39193
  }]
39169
- }], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionService }, { type: TransactionDialogService }], propDecorators: { showClass: [{
39194
+ }], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionService }, { type: TransactionEventService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }], propDecorators: { showClass: [{
39170
39195
  type: HostBinding,
39171
39196
  args: ['class.co-drop-shipment']
39172
39197
  }], transUuid: [{
@@ -50383,7 +50408,7 @@ class TransactionLineActionButtonsComponent {
50383
50408
  const conversionUnitsAvailable = await this._getConversionUnitsAvailable();
50384
50409
  const canCreateService = ((this.transactionKind === TransactionKind.SalesOrder)
50385
50410
  && (this.transactionLine && this.transactionLine.articleLineStatus
50386
- && this.transactionLine.articleLineStatus.quantityDelivered && this.transactionLine.articleLineStatus.quantityDelivered > 0));
50411
+ && this.transactionLine.articleLineStatus.quantityAllocated && this.transactionLine.articleLineStatus.quantityAllocated > 0));
50387
50412
  this._actionButtonsPopupComponentRef = this._overlayService.createComponent(TransactionLineActionButtonsPopupComponent, {
50388
50413
  parentForOverlay: this.elementRef,
50389
50414
  configNames: this.configNames,
@@ -53452,6 +53477,32 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
53452
53477
  this._subs.forEach(s => s.unsubscribe());
53453
53478
  super.ngOnDestroy();
53454
53479
  }
53480
+ //divided into several if statements for readability
53481
+ canShowCheckbox() {
53482
+ if (!this.orderLineSetService.currentOrderLineSetCode) {
53483
+ return false;
53484
+ }
53485
+ if (!this.transactionLine.orderLineSetCode) {
53486
+ //We are now allowed to actually add new lines to a composition.
53487
+ //If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
53488
+ return isNaN(this.orderLineSetService.currentCompositionId);
53489
+ }
53490
+ if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
53491
+ return true;
53492
+ }
53493
+ if (this.orderLineSetService.currentCompositionId && this.orderLineSetService.currentCompositionId === this.transactionLine.compositionId) {
53494
+ return true;
53495
+ }
53496
+ return false;
53497
+ }
53498
+ checkboxValue() {
53499
+ if (isNaN(this.orderLineSetService.currentCompositionId)) {
53500
+ return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
53501
+ }
53502
+ else {
53503
+ return (this.orderLineSetService.currentCompositionId === this.transactionLine.compositionId);
53504
+ }
53505
+ }
53455
53506
  handleCheckBoxValueChanged(value) {
53456
53507
  if (value) {
53457
53508
  this.transactionLine.orderLineSetCode = this.orderLineSetService.currentOrderLineSetCode;
@@ -53472,6 +53523,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
53472
53523
  this.transactionEventService.lineUserFormResponseRequest.next({ formId: this.transactionLine.formId, lineUUID: this.transactionLine.uuid, openUserForm: true, formResponseId: this.transactionLine.formResponseId });
53473
53524
  }
53474
53525
  }
53526
+ isNaN = isNaN;
53475
53527
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionOverviewLineComponent, deps: [{ token: OrderLineSetService }, { token: TransactionHeaderService }, { token: TransactionLineService }, { token: TransactionEventService }, { token: TransactionConnectorService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionService }, { token: TransactionImageService }, { token: DictionaryService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
53476
53528
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionOverviewLineComponent, isStandalone: false, selector: "co-transaction-overview-line", inputs: { lineIndex: "lineIndex" }, outputs: { descriptionDblClick: "descriptionDblClick" }, host: { properties: { "class.co-transaction-overview-line": "this.showClass" } }, viewQueries: [{ propertyName: "transactionLineActionButtons", first: true, predicate: TransactionLineActionButtonsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
53477
53529
  <co-transaction-base-line
@@ -53480,8 +53532,9 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
53480
53532
  [transactionLine]="transactionLine"
53481
53533
  [preview]="preview"
53482
53534
  [isFirst]="isFirst"
53483
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
53484
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
53535
+ [checkbox]="canShowCheckbox()"
53536
+ [checkboxValue]="checkboxValue()"
53537
+ [checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
53485
53538
  (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
53486
53539
  <ng-container *ngIf="transactionLine.isArticle">
53487
53540
  <div class="transaction-line-wrapper">
@@ -53590,8 +53643,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
53590
53643
  [transactionLine]="transactionLine"
53591
53644
  [preview]="preview"
53592
53645
  [isFirst]="isFirst"
53593
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
53594
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
53646
+ [checkbox]="canShowCheckbox()"
53647
+ [checkboxValue]="checkboxValue()"
53648
+ [checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
53595
53649
  (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
53596
53650
  <ng-container *ngIf="transactionLine.isArticle">
53597
53651
  <div class="transaction-line-wrapper">
@@ -54739,15 +54793,6 @@ class TransactionMarginInfoLineComponent extends TransactionLineBaseComponent {
54739
54793
  // public get lineMarginInfo(): TransactionLineMarginInfo {
54740
54794
  // return this.transactionService.transactionLocalMarginInfo.lineMarginInfos.find(line => line.lineNr === this.transactionLine.lineNr);
54741
54795
  // }
54742
- handleCheckBoxValueChanged(value) {
54743
- if (value) {
54744
- this.transactionLine.orderLineSetCode = this.orderLineSetService.currentOrderLineSetCode;
54745
- }
54746
- else {
54747
- this.transactionLine.orderLineSetCode = null;
54748
- }
54749
- this.transactionService.changeTransactionLineOrderLineSet(this.transactionInfo.uuid, this.transactionLine.uuid, this.transactionLine.orderLineSetCode);
54750
- }
54751
54796
  onDescriptionDblClick() {
54752
54797
  this.descriptionDblClick.emit();
54753
54798
  }
@@ -54772,10 +54817,7 @@ class TransactionMarginInfoLineComponent extends TransactionLineBaseComponent {
54772
54817
  [transactionInfo]="transactionInfo"
54773
54818
  [transactionLine]="transactionLine"
54774
54819
  [preview]="false"
54775
- [isFirst]="isFirst"
54776
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
54777
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
54778
- (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
54820
+ [isFirst]="isFirst">
54779
54821
  <ng-container *ngIf="transactionLine.isArticle">
54780
54822
  <div class="transaction-line-wrapper">
54781
54823
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
@@ -54862,10 +54904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
54862
54904
  [transactionInfo]="transactionInfo"
54863
54905
  [transactionLine]="transactionLine"
54864
54906
  [preview]="false"
54865
- [isFirst]="isFirst"
54866
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
54867
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
54868
- (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
54907
+ [isFirst]="isFirst">
54869
54908
  <ng-container *ngIf="transactionLine.isArticle">
54870
54909
  <div class="transaction-line-wrapper">
54871
54910
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
@@ -57915,15 +57954,6 @@ class TransactionCustomerPortalLineComponent extends TransactionLineBaseComponen
57915
57954
  this.transactionService = transactionService;
57916
57955
  this.changeDetector = changeDetector;
57917
57956
  }
57918
- handleCheckBoxValueChanged(value) {
57919
- if (value) {
57920
- this.transactionLine.orderLineSetCode = this.orderLineSetService.currentOrderLineSetCode;
57921
- }
57922
- else {
57923
- this.transactionLine.orderLineSetCode = null;
57924
- }
57925
- this.transactionService.changeTransactionLineOrderLineSet(this.transactionInfo.uuid, this.transactionLine.uuid, this.transactionLine.orderLineSetCode);
57926
- }
57927
57957
  onDescriptionDblClick() {
57928
57958
  this.descriptionDblClick.emit();
57929
57959
  }
@@ -62432,6 +62462,32 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
62432
62462
  super.ngOnInit();
62433
62463
  // this.transactionEventService.activeRubricChange.next({category: TransactionTypeCategory.SalesOrderMarginInfo});
62434
62464
  }
62465
+ //divided into several if statements for readability
62466
+ canShowCheckbox() {
62467
+ if (!this.orderLineSetService.currentOrderLineSetCode) {
62468
+ return false;
62469
+ }
62470
+ if (!this.transactionLine.orderLineSetCode) {
62471
+ //We are now allowed to actually add new lines to a composition.
62472
+ //If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
62473
+ return isNaN(this.orderLineSetService.currentCompositionId);
62474
+ }
62475
+ if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
62476
+ return true;
62477
+ }
62478
+ if (this.orderLineSetService.currentCompositionId && this.orderLineSetService.currentCompositionId === this.transactionLine.compositionId) {
62479
+ return true;
62480
+ }
62481
+ return false;
62482
+ }
62483
+ checkboxValue() {
62484
+ if (isNaN(this.orderLineSetService.currentCompositionId)) {
62485
+ return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
62486
+ }
62487
+ else {
62488
+ return (this.orderLineSetService.currentCompositionId === this.transactionLine.compositionId);
62489
+ }
62490
+ }
62435
62491
  handleCheckBoxValueChanged(value) {
62436
62492
  if (value) {
62437
62493
  this.transactionLine.orderLineSetCode = this.orderLineSetService.currentOrderLineSetCode;
@@ -62449,6 +62505,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
62449
62505
  lineDiscountQuantum: this.cfgNames.LineDiscountQuantum
62450
62506
  };
62451
62507
  TransactionTypeCategory = TransactionTypeCategory;
62508
+ isNaN = isNaN;
62452
62509
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSalesOrderQuotationLineComponent, deps: [{ token: OrderLineSetService }, { token: TransactionHeaderService }, { token: TransactionLineService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
62453
62510
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSalesOrderQuotationLineComponent, isStandalone: false, selector: "co-transaction-sales-order-quotation-line", inputs: { lineIndex: "lineIndex" }, host: { properties: { "class.co-transaction-sales-order-quotation-line": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
62454
62511
  <co-transaction-base-line
@@ -62457,8 +62514,9 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
62457
62514
  [transactionInfo]="transactionInfo"
62458
62515
  [transactionLine]="transactionLine"
62459
62516
  [selected]="selected"
62460
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
62461
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
62517
+ [checkbox]="canShowCheckbox()"
62518
+ [checkboxValue]="checkboxValue()"
62519
+ [checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
62462
62520
  (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
62463
62521
  @if (transactionLine.isArticle && !preview) {
62464
62522
  <div class="transaction-line-wrapper">
@@ -62520,8 +62578,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
62520
62578
  [transactionInfo]="transactionInfo"
62521
62579
  [transactionLine]="transactionLine"
62522
62580
  [selected]="selected"
62523
- [checkbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
62524
- [checkboxValue]="orderLineSetService.currentOrderLineSetCode === transactionLine.orderLineSetCode"
62581
+ [checkbox]="canShowCheckbox()"
62582
+ [checkboxValue]="checkboxValue()"
62583
+ [checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
62525
62584
  (checkboxValueChanged)="handleCheckBoxValueChanged($event)">
62526
62585
  @if (transactionLine.isArticle && !preview) {
62527
62586
  <div class="transaction-line-wrapper">
@@ -99715,7 +99774,6 @@ class TransactionCardMarginComponent extends TransactionLineBaseComponent {
99715
99774
  <div class="transaction-card-wrapper">
99716
99775
  <co-transaction-card-header
99717
99776
  [showActionButtons]="true"
99718
- [showCheckbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
99719
99777
  [expanded]="expanded"
99720
99778
  (expandClicked)="expanded = !expanded">
99721
99779
  </co-transaction-card-header>
@@ -99823,7 +99881,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
99823
99881
  <div class="transaction-card-wrapper">
99824
99882
  <co-transaction-card-header
99825
99883
  [showActionButtons]="true"
99826
- [showCheckbox]="orderLineSetService.currentOrderLineSetCode && (!transactionLine.orderLineSetCode || transactionLine.orderLineSetCode === orderLineSetService.currentOrderLineSetCode)"
99827
99884
  [expanded]="expanded"
99828
99885
  (expandClicked)="expanded = !expanded">
99829
99886
  </co-transaction-card-header>
@@ -109407,6 +109464,9 @@ class TransactionCreateWizardComponent {
109407
109464
  valid = await this._validateForArticleTransaction();
109408
109465
  }
109409
109466
  else if (this.transactionSection.oldOrderId && this.transactionSection.oldGoodId) {
109467
+ if (!this._branch) {
109468
+ this.createService.currentBranch = await this.createService.getInternalDefault(InternalDefault.DefaultBranchServiceCustomerPortal);
109469
+ }
109410
109470
  this.stepTransactionSection.completed = await this.createService.createServiceOrderWithSourceOrderNrAndArticleDescription(this.transactionSection.oldOrderId, this.transactionSection.oldGoodId);
109411
109471
  }
109412
109472
  else if (this.transactionSection.slaProductName) {