@colijnit/transaction 300.1.36 → 300.1.38

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.
@@ -364,8 +364,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
364
364
  class Version {
365
365
  name = "@colijnit/transaction";
366
366
  description = "Colijn IT transaction package";
367
- symVer = "300.1.36";
368
- publishDate = "7-10-2026, 17:11:48";
367
+ symVer = "300.1.38";
368
+ publishDate = "9-10-2026, 15:50:16";
369
369
  }
370
370
 
371
371
  class CheckoutModuleService extends BaseModuleService {
@@ -1538,7 +1538,7 @@ class ConfirmationDialogComponent extends DialogBaseComponent {
1538
1538
  <co-input-checkbox [label]="'REMEMBER_CHOICE' | localize" [(model)]="rememberChoice"></co-input-checkbox>
1539
1539
  }
1540
1540
  </ng-template>
1541
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton", "expanded"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
1541
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["expanded", "headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
1542
1542
  }
1543
1543
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
1544
1544
  type: Component,
@@ -7011,7 +7011,7 @@ class TransactionConnectorAdapterService {
7011
7011
  }
7012
7012
  }
7013
7013
  async updatePlanTransportWeek(planTransportWeek) {
7014
- const response = await this.connector.updatePlanTransportWeek(planTransportWeek);
7014
+ const response = await this.connector.updatePlanTransportWeek(planTransportWeek, true);
7015
7015
  if (response && response.validationResult && response.validationResult.success) {
7016
7016
  await this.connector.commit();
7017
7017
  return true;
@@ -7032,7 +7032,7 @@ class TransactionConnectorAdapterService {
7032
7032
  }
7033
7033
  }
7034
7034
  async getTransportOrders(request) {
7035
- const response = await this.connector.getTransportOrders(request);
7035
+ const response = await this.connector.getTransportOrders(request, false);
7036
7036
  if (response && response.validationResult && response.validationResult.success) {
7037
7037
  return this._boFactory.makeBOArrayFromRawBackendDataArray(PlanOrder, response.resultObject);
7038
7038
  }
@@ -24458,9 +24458,7 @@ class DeliveryPlanningService {
24458
24458
  });
24459
24459
  });
24460
24460
  }
24461
- // Function to update only the changed properties
24462
24461
  async _updateChangedProperties(oldDay, newDay) {
24463
- // List of properties to compare
24464
24462
  const propertiesToCompare = [
24465
24463
  'minutes',
24466
24464
  'maxMinutes',
@@ -24470,23 +24468,42 @@ class DeliveryPlanningService {
24470
24468
  'maxOrderAmount',
24471
24469
  'factor'
24472
24470
  ];
24473
- const transportPropertiesToCompare = [
24474
- 'maxLoad'
24475
- ];
24471
+ const transportPropertiesToCompare = ['maxLoad'];
24472
+ let hasChanged = false;
24476
24473
  propertiesToCompare.forEach(property => {
24477
- // Compare and update only if there's a change
24478
24474
  if (JSON.stringify(oldDay[property]) !== JSON.stringify(newDay[property])) {
24479
24475
  oldDay[property] = newDay[property];
24476
+ hasChanged = true;
24480
24477
  }
24481
24478
  });
24482
- transportPropertiesToCompare.forEach(property => {
24483
- if (oldDay.transport && newDay.transport) {
24484
- if (JSON.stringify(oldDay.transport[property] !== JSON.stringify(newDay.transport[property]))) {
24485
- oldDay.transport[property] = newDay?.transport[property];
24479
+ if (oldDay.transport && newDay.transport) {
24480
+ transportPropertiesToCompare.forEach(property => {
24481
+ if (JSON.stringify(oldDay.transport[property]) !== JSON.stringify(newDay.transport[property])) {
24482
+ oldDay.transport[property] = newDay.transport[property];
24483
+ hasChanged = true;
24486
24484
  }
24485
+ });
24486
+ }
24487
+ // Detect orders added/removed (adjust `orders` / `id` to match your model)
24488
+ if (this._ordersChanged(oldDay, newDay)) {
24489
+ hasChanged = true;
24490
+ }
24491
+ if (hasChanged) {
24492
+ await this.getTransportOrders(oldDay);
24493
+ }
24494
+ }
24495
+ _ordersChanged(oldDay, newDay) {
24496
+ const oldIds = new Set((oldDay.plannedOrders ?? []).map(o => o.id));
24497
+ const newIds = new Set((newDay.plannedOrders ?? []).map(o => o.id));
24498
+ if (oldIds.size !== newIds.size) {
24499
+ return true;
24500
+ }
24501
+ for (const id of newIds) {
24502
+ if (!oldIds.has(id)) {
24503
+ return true;
24487
24504
  }
24488
- });
24489
- await this.getTransportOrders(oldDay);
24505
+ }
24506
+ return false;
24490
24507
  }
24491
24508
  convertPlanningTransportWeekToArray(planningTransportWeek) {
24492
24509
  let weekArrays = [];
@@ -25722,6 +25739,12 @@ class DeliveryPlanningOverviewTileComponent {
25722
25739
  this._deliveryPlanningService.tileDropActionEvent.emit({ action: clickAction, transport: this.transportDay });
25723
25740
  }
25724
25741
  }
25742
+ handleCalendarDragStart(object) {
25743
+ const id = Number(object.id);
25744
+ if (!Number.isNaN(id)) {
25745
+ this._deliveryPlanningService.currentTransId = id;
25746
+ }
25747
+ }
25725
25748
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileComponent, deps: [{ token: DeliveryPlanningService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: IconCacheService }, { token: TransactionDialogService }], target: i0.ɵɵFactoryTarget.Component });
25726
25749
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DeliveryPlanningOverviewTileComponent, isStandalone: false, selector: "co-delivery-planning-overview-tile", inputs: { disabled: "disabled", transportDay: "transportDay" }, outputs: { transportSelected: "transportSelected", expandedEvent: "expandedEvent", deleteOrderEvent: "deleteOrderEvent", planOrderOnSameTimeEvent: "planOrderOnSameTimeEvent", deleteOrderLineEvent: "deleteOrderLineEvent", editOrderEvent: "editOrderEvent", getTransportOrdersEvent: "getTransportOrdersEvent", timeChangeEvent: "timeChangeEvent", openSettingsDialogEvent: "openSettingsDialogEvent", availabilityChecked: "availabilityChecked", calendarPlanEvent: "calendarPlanEvent", moveEvent: "moveEvent", reorderOrderEvent: "reorderOrderEvent", moveOrderUpEvent: "moveOrderUpEvent", moveOrderDownEvent: "moveOrderDownEvent" }, host: { properties: { "class.co-delivery-planning-overview-tile": "this.showClass" } }, viewQueries: [{ propertyName: "hourSchedulingComp", first: true, predicate: ["hourSchedulingComponent"], descendants: true }], ngImport: i0, template: `
25727
25750
  @if (showDropdown) {
@@ -25830,6 +25853,7 @@ class DeliveryPlanningOverviewTileComponent {
25830
25853
  (drop)="handleDrop($event)"
25831
25854
  (newObjectPlanEvent)="handleCalendarPlanEvent($event)"
25832
25855
  (moveBetweenCalendarsEvent)="handleMoveBetweenCalendars($event)"
25856
+ (dragStartExistingOrder)="handleCalendarDragStart($event)"
25833
25857
  ></co-hour-scheduling-expandable>
25834
25858
  }
25835
25859
 
@@ -25862,7 +25886,7 @@ class DeliveryPlanningOverviewTileComponent {
25862
25886
  </div>
25863
25887
 
25864
25888
  </div>
25865
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton", "expanded"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: DeliveryPlanningOverviewTileLineComponent, selector: "co-delivery-planning-overview-tile-line", inputs: ["order", "isActive", "linesActive"], outputs: ["deleteOrderEvent", "deleteOrderLineEvent", "editOrderEvent", "moveOrderUpEvent", "moveOrderDownEvent", "transactionClick"] }, { kind: "component", type: DeliveryPlanningTileStatusComponent, selector: "co-delivery-planning-tile-status", inputs: ["maxVolume", "timeTotal", "currentVolume", "currentTimeTotal"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: DeliveryPlanningOverviewShortLineComponent, selector: "co-delivery-planning-overview-short-line", inputs: ["order"], outputs: ["deleteOrderEvent"] }, { kind: "component", type: i1$1.HourSchedulingExpandableComponent, selector: "co-hour-scheduling-expandable", inputs: ["schedule", "startTimeProp", "endTimeProp", "objectsProp", "childProp", "customTemplate", "idProp"], outputs: ["timeChangeEvent", "newObjectPlanEvent", "taskCreationEvent", "moveBetweenCalendarsEvent"] }, { kind: "component", type: i1$1.HourSchedulingExpandableTemplateComponent, selector: "co-hour-scheduling-expandable-template", inputs: ["layouts", "objectTemplate", "objects", "onDragStartCustom", "onResizeStart", "onSelectBlock", "startTimeProp", "endTimeProp"] }, { kind: "component", type: DeliveryPlanningOverviewTileDropdownComponent, selector: "co-delivery-planning-overview-tile-dropdown", outputs: ["actionClicked"] }], encapsulation: i0.ViewEncapsulation.None });
25889
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["expanded", "headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: DeliveryPlanningOverviewTileLineComponent, selector: "co-delivery-planning-overview-tile-line", inputs: ["order", "isActive", "linesActive"], outputs: ["deleteOrderEvent", "deleteOrderLineEvent", "editOrderEvent", "moveOrderUpEvent", "moveOrderDownEvent", "transactionClick"] }, { kind: "component", type: DeliveryPlanningTileStatusComponent, selector: "co-delivery-planning-tile-status", inputs: ["maxVolume", "timeTotal", "currentVolume", "currentTimeTotal"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: DeliveryPlanningOverviewShortLineComponent, selector: "co-delivery-planning-overview-short-line", inputs: ["order"], outputs: ["deleteOrderEvent"] }, { kind: "component", type: i1$1.HourSchedulingExpandableComponent, selector: "co-hour-scheduling-expandable", inputs: ["schedule", "startTimeProp", "endTimeProp", "objectsProp", "childProp", "customTemplate", "idProp"], outputs: ["timeChangeEvent", "dragStartExistingOrder", "newObjectPlanEvent", "taskCreationEvent", "moveBetweenCalendarsEvent"] }, { kind: "component", type: i1$1.HourSchedulingExpandableTemplateComponent, selector: "co-hour-scheduling-expandable-template", inputs: ["layouts", "objectTemplate", "objects", "onDragStartCustom", "onResizeStart", "onSelectBlock", "startTimeProp", "endTimeProp"] }, { kind: "component", type: DeliveryPlanningOverviewTileDropdownComponent, selector: "co-delivery-planning-overview-tile-dropdown", outputs: ["actionClicked"] }], encapsulation: i0.ViewEncapsulation.None });
25866
25890
  }
25867
25891
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DeliveryPlanningOverviewTileComponent, decorators: [{
25868
25892
  type: Component,
@@ -25975,6 +25999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
25975
25999
  (drop)="handleDrop($event)"
25976
26000
  (newObjectPlanEvent)="handleCalendarPlanEvent($event)"
25977
26001
  (moveBetweenCalendarsEvent)="handleMoveBetweenCalendars($event)"
26002
+ (dragStartExistingOrder)="handleCalendarDragStart($event)"
25978
26003
  ></co-hour-scheduling-expandable>
25979
26004
  }
25980
26005
 
@@ -27212,7 +27237,7 @@ class DeliveryPlanningOverviewComponent {
27212
27237
  await this.getOrderLinesPlanned(planOrder);
27213
27238
  await this.planOrderLines(planOrder, transportWeekDay, week);
27214
27239
  if (data.data === 'false' && this._transaction.currentTransaction.transactionInfo.uuid) {
27215
- await this._transaction.getTransactionById(this.deliveryPlanningService.currentTransId);
27240
+ await this._transaction.getTransactionById(planOrder.transId);
27216
27241
  await this._transaction.saveTransaction();
27217
27242
  await this._transaction.checkRefTransaction();
27218
27243
  }
@@ -27428,7 +27453,7 @@ class DeliveryPlanningOverviewComponent {
27428
27453
  await this.getOrderLinesPlanned(planOrder);
27429
27454
  await this.planOrderLines(planOrder, transportWeekDay, week);
27430
27455
  if (this._transaction.currentTransaction.transactionInfo.uuid) {
27431
- await this._transaction.getTransactionById(this.deliveryPlanningService.currentTransId);
27456
+ await this._transaction.getTransactionById(planOrder.transId);
27432
27457
  await this._transaction.saveTransaction();
27433
27458
  await this._transaction.checkRefTransaction();
27434
27459
  }
@@ -27679,8 +27704,8 @@ class DeliveryPlanningMainComponent {
27679
27704
  this._deliveryPlanningService.deletingOrder.dateResetNeeded = true;
27680
27705
  await this._transactionConn.restoreDeliverySettings([this._deliveryPlanningService.deletingOrder]);
27681
27706
  }
27682
- if (this._transaction.currentTransaction.transactionInfo.id && this._deliveryPlanningService.currentPlanningMode === DeliveryPlanningModes.Transaction) {
27683
- await this._transaction.getTransactionById(this._transaction.currentTransaction?.transactionInfo?.id);
27707
+ if (this._transaction.currentTransaction && this._transaction.currentTransaction.transactionInfo && this._deliveryPlanningService.currentPlanningMode === DeliveryPlanningModes.Transaction) {
27708
+ await this._transaction.getTransactionById(this._transaction.currentTransaction.transactionInfo.id);
27684
27709
  this._transaction.currentPlanOrder = await this._transaction.getPlanOrder(this._transaction.currentTransaction.transactionInfo.id);
27685
27710
  }
27686
27711
  await this.updateNewValues();
@@ -35798,7 +35823,7 @@ class CheckoutOverviewDeliveryEditComponent {
35798
35823
  </div>
35799
35824
  </co-form>
35800
35825
  </div>
35801
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton", "expanded"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: TransactionHeaderPreferredDeliveryDateComponent, selector: "co-transaction-header-preferred-delivery-date" }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderDeliveryMethodComponent, selector: "co-transaction-header-delivery-method", inputs: ["showAsCarousel", "filterOnWizard"], outputs: ["deliveryMethodChange"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "component", type: TransactionHeaderDeliveryOptionsComponent, selector: "co-transaction-header-delivery-options", inputs: ["deliveryMethod"] }, { kind: "component", type: TransactionHeaderRemarksComponent, selector: "co-transaction-header-remarks" }, { kind: "component", type: TransactionHeaderReferenceComponent, selector: "co-transaction-header-reference" }, { kind: "component", type: TransactionHeaderRelationReferenceComponent, selector: "co-transaction-header-relation-reference" }, { kind: "component", type: TransactionHeaderDepositPercentageComponent, selector: "co-transaction-header-deposit-percentage", outputs: ["depositUpdated"] }, { kind: "component", type: TransactionHeaderDepositAmountComponent, selector: "co-transaction-header-deposit-amount", inputs: ["clickToEdit"], outputs: ["businessRuleApplied"] }, { kind: "component", type: TransactionHeaderDefinitiveComponent, selector: "co-transaction-header-definitive", inputs: ["onlyIcon"] }, { kind: "component", type: TransactionHeaderBranchComponent, selector: "co-transaction-header-branch", inputs: ["simple", "readonlyOverride"] }, { kind: "component", type: TransactionHeaderAdministrativeRelationComponent, selector: "co-transaction-header-administrative-relation" }, { kind: "component", type: TransactionHeaderMarketingComponent, selector: "co-transaction-header-marketing" }, { kind: "component", type: TransactionHeaderHoldCodesComponent, selector: "co-transaction-header-hold-codes" }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionHeaderSalesPersonComponent, selector: "co-transaction-header-sales-person", inputs: ["label"] }, { kind: "component", type: TransactionHeaderPaymentConditionComponent, selector: "co-transaction-header-payment-condition" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
35826
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: i1$1.CollapsibleComponent, selector: "co-collapsible", inputs: ["expanded", "headerContent", "customHeaderContent", "headerTitle", "buttonText", "iconData", "expandButtonLast", "showButton"], outputs: ["expandedChange", "buttonClicked"] }, { kind: "component", type: TransactionHeaderPreferredDeliveryDateComponent, selector: "co-transaction-header-preferred-delivery-date" }, { kind: "component", type: TransactionHeaderDeliveryDateComponent, selector: "co-transaction-header-delivery-date" }, { kind: "component", type: TransactionHeaderDeliveryMethodComponent, selector: "co-transaction-header-delivery-method", inputs: ["showAsCarousel", "filterOnWizard"], outputs: ["deliveryMethodChange"] }, { kind: "component", type: TransactionHeaderPartialDeliveryComponent, selector: "co-transaction-header-partial-delivery", inputs: ["onlyIcon"] }, { kind: "component", type: TransactionHeaderDeliveryOptionsComponent, selector: "co-transaction-header-delivery-options", inputs: ["deliveryMethod"] }, { kind: "component", type: TransactionHeaderRemarksComponent, selector: "co-transaction-header-remarks" }, { kind: "component", type: TransactionHeaderReferenceComponent, selector: "co-transaction-header-reference" }, { kind: "component", type: TransactionHeaderRelationReferenceComponent, selector: "co-transaction-header-relation-reference" }, { kind: "component", type: TransactionHeaderDepositPercentageComponent, selector: "co-transaction-header-deposit-percentage", outputs: ["depositUpdated"] }, { kind: "component", type: TransactionHeaderDepositAmountComponent, selector: "co-transaction-header-deposit-amount", inputs: ["clickToEdit"], outputs: ["businessRuleApplied"] }, { kind: "component", type: TransactionHeaderDefinitiveComponent, selector: "co-transaction-header-definitive", inputs: ["onlyIcon"] }, { kind: "component", type: TransactionHeaderBranchComponent, selector: "co-transaction-header-branch", inputs: ["simple", "readonlyOverride"] }, { kind: "component", type: TransactionHeaderAdministrativeRelationComponent, selector: "co-transaction-header-administrative-relation" }, { kind: "component", type: TransactionHeaderMarketingComponent, selector: "co-transaction-header-marketing" }, { kind: "component", type: TransactionHeaderHoldCodesComponent, selector: "co-transaction-header-hold-codes" }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionHeaderSalesPersonComponent, selector: "co-transaction-header-sales-person", inputs: ["label"] }, { kind: "component", type: TransactionHeaderPaymentConditionComponent, selector: "co-transaction-header-payment-condition" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
35802
35827
  }
35803
35828
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckoutOverviewDeliveryEditComponent, decorators: [{
35804
35829
  type: Component,
@@ -48194,6 +48219,7 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
48194
48219
  extendedTransactionSearch = false;
48195
48220
  returnWizardLayout = false;
48196
48221
  customerPortal = false;
48222
+ filterOnlyAllocated = false;
48197
48223
  lineClicked = new EventEmitter();
48198
48224
  transactionClick = new EventEmitter();
48199
48225
  lines;
@@ -48206,7 +48232,13 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
48206
48232
  }
48207
48233
  async handleVisibilityChange(visible) {
48208
48234
  if (visible && (this.lines === null || this.lines === undefined)) {
48209
- this.lines = await this.transactionService.getLineIndicesByTransId(this.transaction.transId);
48235
+ let foundLines = await this.transactionService.getLineIndicesByTransId(this.transaction.transId);
48236
+ if (!this.filterOnlyAllocated) {
48237
+ this.lines = foundLines;
48238
+ }
48239
+ else {
48240
+ this.lines = foundLines.filter(l => l.quantityAllocated > 0);
48241
+ }
48210
48242
  }
48211
48243
  }
48212
48244
  tileClicked(line) {
@@ -48245,7 +48277,7 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
48245
48277
  }
48246
48278
  }
48247
48279
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesLineSelectTileComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
48248
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchSalesLineSelectTileComponent, isStandalone: false, selector: "co-transaction-search-sales-line-select-tile", inputs: { extendedTransactionSearch: "extendedTransactionSearch", returnWizardLayout: "returnWizardLayout", customerPortal: "customerPortal" }, outputs: { lineClicked: "lineClicked", transactionClick: "transactionClick" }, host: { properties: { "class.co-transaction-search-sales-line-select-tile": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
48280
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchSalesLineSelectTileComponent, isStandalone: false, selector: "co-transaction-search-sales-line-select-tile", inputs: { extendedTransactionSearch: "extendedTransactionSearch", returnWizardLayout: "returnWizardLayout", customerPortal: "customerPortal", filterOnlyAllocated: "filterOnlyAllocated" }, outputs: { lineClicked: "lineClicked", transactionClick: "transactionClick" }, host: { properties: { "class.co-transaction-search-sales-line-select-tile": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
48249
48281
  @if (customerPortal) {
48250
48282
  <div class="co-transaction-search-sales-line-select-tile-wrapper " observeVisibility #observer=visibilityObserve
48251
48283
  (visibilityChange)="handleVisibilityChange($event)">
@@ -48476,6 +48508,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
48476
48508
  type: Input
48477
48509
  }], customerPortal: [{
48478
48510
  type: Input
48511
+ }], filterOnlyAllocated: [{
48512
+ type: Input
48479
48513
  }], lineClicked: [{
48480
48514
  type: Output
48481
48515
  }], transactionClick: [{
@@ -48483,10 +48517,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
48483
48517
  }] } });
48484
48518
 
48485
48519
  class DialogTransactionSearchComponent {
48486
- transactionSearchService;
48487
48520
  iconCacheService;
48521
+ transactionSearchService;
48488
48522
  icons = Icon;
48489
- placeholder;
48490
48523
  set relation(value) {
48491
48524
  this.transactionSearchService.searchRequest.relationNrTr = Number(value.relationNumber);
48492
48525
  }
@@ -48497,9 +48530,9 @@ class DialogTransactionSearchComponent {
48497
48530
  return true;
48498
48531
  }
48499
48532
  showFilters = false;
48500
- constructor(transactionSearchService, iconCacheService) {
48501
- this.transactionSearchService = transactionSearchService;
48533
+ constructor(iconCacheService, transactionSearchService) {
48502
48534
  this.iconCacheService = iconCacheService;
48535
+ this.transactionSearchService = transactionSearchService;
48503
48536
  }
48504
48537
  async ngOnInit() {
48505
48538
  await this.searchTransactions();
@@ -48513,72 +48546,74 @@ class DialogTransactionSearchComponent {
48513
48546
  this.lineClicked.emit(line);
48514
48547
  }
48515
48548
  async searchTransactions() {
48516
- this.transactionSearchService.searchTransactions();
48549
+ await this.transactionSearchService.searchTransactions();
48517
48550
  }
48518
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, deps: [{ token: TransactionSearchService }, { token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
48519
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DialogTransactionSearchComponent, isStandalone: false, selector: "co-dialog-transaction-search", inputs: { placeholder: "placeholder", relation: "relation" }, outputs: { filterIconClick: "filterIconClick", closeClick: "closeClick", lineClicked: "lineClicked" }, host: { properties: { "class.co-dialog-transaction-search": "this.showClass" } }, ngImport: i0, template: `
48520
- <co-dialog (closeClick)="closeClick.emit()" >
48521
-
48522
- <div class="search-wrapper">
48523
- <co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
48524
- <div class="search-content">
48525
- <ng-container>
48526
- @if (showFilters) {
48527
- <div class="search-filter-panel narrow-scrollbar" >
48528
- <co-transaction-filter></co-transaction-filter>
48529
- </div>
48530
- }
48531
- <div class="search-result-content">
48532
- @for (transaction of transactionSearchService.transactions; track transaction) {
48533
- <div class="transaction-tile">
48534
- <co-transaction-search-sales-line-select-tile
48535
- [transaction]="transaction" (lineClicked)="transLineClicked($event)">
48536
- </co-transaction-search-sales-line-select-tile>
48537
- </div>
48538
- }
48539
- </div>
48540
- </ng-container>
48541
- </div>
48542
- </div>
48543
- </co-dialog>
48544
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: TransactionSearchHeaderComponent, selector: "co-transaction-search-header", inputs: ["placeholder"], outputs: ["filterIconClick"] }, { kind: "component", type: TransactionFilterComponent, selector: "co-transaction-filter", outputs: ["totalActiveFiltersChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal"], outputs: ["lineClicked", "transactionClick"] }], encapsulation: i0.ViewEncapsulation.None });
48551
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, deps: [{ token: IconCacheService }, { token: TransactionSearchService }], target: i0.ɵɵFactoryTarget.Component });
48552
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DialogTransactionSearchComponent, isStandalone: false, selector: "co-dialog-transaction-search", inputs: { relation: "relation" }, outputs: { filterIconClick: "filterIconClick", closeClick: "closeClick", lineClicked: "lineClicked" }, host: { properties: { "class.co-dialog-transaction-search": "this.showClass" } }, ngImport: i0, template: `
48553
+ <co-dialog (closeClick)="closeClick.emit()" >
48554
+
48555
+ <div class="search-wrapper">
48556
+ <co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
48557
+ <div class="search-content">
48558
+ <ng-container>
48559
+ @if (showFilters) {
48560
+ <div class="search-filter-panel narrow-scrollbar" >
48561
+ <co-transaction-filter></co-transaction-filter>
48562
+ </div>
48563
+ }
48564
+ <div class="search-result-content">
48565
+ @for (transaction of transactionSearchService.transactions; track transaction) {
48566
+ <div class="transaction-tile">
48567
+ <co-transaction-search-sales-line-select-tile
48568
+ [transaction]="transaction"
48569
+ [filterOnlyAllocated]="true"
48570
+ (lineClicked)="transLineClicked($event)">
48571
+ </co-transaction-search-sales-line-select-tile>
48572
+ </div>
48573
+ }
48574
+ </div>
48575
+ </ng-container>
48576
+ </div>
48577
+ </div>
48578
+ </co-dialog>
48579
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: TransactionSearchHeaderComponent, selector: "co-transaction-search-header", inputs: ["placeholder"], outputs: ["filterIconClick"] }, { kind: "component", type: TransactionFilterComponent, selector: "co-transaction-filter", outputs: ["totalActiveFiltersChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }], encapsulation: i0.ViewEncapsulation.None });
48545
48580
  }
48546
48581
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, decorators: [{
48547
48582
  type: Component,
48548
48583
  args: [{
48549
48584
  selector: "co-dialog-transaction-search",
48550
- template: `
48551
- <co-dialog (closeClick)="closeClick.emit()" >
48552
-
48553
- <div class="search-wrapper">
48554
- <co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
48555
- <div class="search-content">
48556
- <ng-container>
48557
- @if (showFilters) {
48558
- <div class="search-filter-panel narrow-scrollbar" >
48559
- <co-transaction-filter></co-transaction-filter>
48560
- </div>
48561
- }
48562
- <div class="search-result-content">
48563
- @for (transaction of transactionSearchService.transactions; track transaction) {
48564
- <div class="transaction-tile">
48565
- <co-transaction-search-sales-line-select-tile
48566
- [transaction]="transaction" (lineClicked)="transLineClicked($event)">
48567
- </co-transaction-search-sales-line-select-tile>
48568
- </div>
48569
- }
48570
- </div>
48571
- </ng-container>
48572
- </div>
48573
- </div>
48574
- </co-dialog>
48585
+ template: `
48586
+ <co-dialog (closeClick)="closeClick.emit()" >
48587
+
48588
+ <div class="search-wrapper">
48589
+ <co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
48590
+ <div class="search-content">
48591
+ <ng-container>
48592
+ @if (showFilters) {
48593
+ <div class="search-filter-panel narrow-scrollbar" >
48594
+ <co-transaction-filter></co-transaction-filter>
48595
+ </div>
48596
+ }
48597
+ <div class="search-result-content">
48598
+ @for (transaction of transactionSearchService.transactions; track transaction) {
48599
+ <div class="transaction-tile">
48600
+ <co-transaction-search-sales-line-select-tile
48601
+ [transaction]="transaction"
48602
+ [filterOnlyAllocated]="true"
48603
+ (lineClicked)="transLineClicked($event)">
48604
+ </co-transaction-search-sales-line-select-tile>
48605
+ </div>
48606
+ }
48607
+ </div>
48608
+ </ng-container>
48609
+ </div>
48610
+ </div>
48611
+ </co-dialog>
48575
48612
  `,
48576
48613
  encapsulation: ViewEncapsulation.None,
48577
48614
  standalone: false
48578
48615
  }]
48579
- }], ctorParameters: () => [{ type: TransactionSearchService }, { type: IconCacheService }], propDecorators: { placeholder: [{
48580
- type: Input
48581
- }], relation: [{
48616
+ }], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionSearchService }], propDecorators: { relation: [{
48582
48617
  type: Input
48583
48618
  }], filterIconClick: [{
48584
48619
  type: Output
@@ -74638,7 +74673,7 @@ class TransactionSearchResultComponent {
74638
74673
  (close)="showBatchProcessDialog = false">
74639
74674
  </co-batch-process-dialog>
74640
74675
  }
74641
- `, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TransactionSearchGridComponent, selector: "co-transaction-search-grid", inputs: ["showCheckbox"], outputs: ["transactionClick"] }, { kind: "component", type: TransactionSearchTileComponent, selector: "co-transaction-search-tile", inputs: ["showCheckbox", "selected", "transaction"], outputs: ["transactionClick", "selectedClick"] }, { kind: "component", type: i1$1.PaginationBarComponent, selector: "co-pagination-bar", inputs: ["directionLinks", "previousLabel", "nextLabel", "currentPage", "itemsPerPage", "totalItems", "paginationRange", "autoHide"], outputs: ["previousClick", "nextClick", "pageClick"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: ShippingMethodDialogComponent, selector: "co-shipping-method-dialog", inputs: ["category", "selectedTransactions"], outputs: ["saveClicked", "cancelClicked"] }, { kind: "component", type: BatchProcessDialogComponent, selector: "co-batch-process-dialog", inputs: ["batchJobProgress"], outputs: ["close"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal"], outputs: ["lineClicked", "transactionClick"] }, { kind: "component", type: TransactionContainerComponent, selector: "co-transaction-container", inputs: ["fullscreen"], outputs: ["containerChoiceMade", "containerContentModeChanged", "fillContainerClicked", "removeFromContainerClicked"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
74676
+ `, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TransactionSearchGridComponent, selector: "co-transaction-search-grid", inputs: ["showCheckbox"], outputs: ["transactionClick"] }, { kind: "component", type: TransactionSearchTileComponent, selector: "co-transaction-search-tile", inputs: ["showCheckbox", "selected", "transaction"], outputs: ["transactionClick", "selectedClick"] }, { kind: "component", type: i1$1.PaginationBarComponent, selector: "co-pagination-bar", inputs: ["directionLinks", "previousLabel", "nextLabel", "currentPage", "itemsPerPage", "totalItems", "paginationRange", "autoHide"], outputs: ["previousClick", "nextClick", "pageClick"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: ShippingMethodDialogComponent, selector: "co-shipping-method-dialog", inputs: ["category", "selectedTransactions"], outputs: ["saveClicked", "cancelClicked"] }, { kind: "component", type: BatchProcessDialogComponent, selector: "co-batch-process-dialog", inputs: ["batchJobProgress"], outputs: ["close"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }, { kind: "component", type: TransactionContainerComponent, selector: "co-transaction-container", inputs: ["fullscreen"], outputs: ["containerChoiceMade", "containerContentModeChanged", "fillContainerClicked", "removeFromContainerClicked"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
74642
74677
  trigger('fadeInOut', [
74643
74678
  transition(':enter', [
74644
74679
  style({ opacity: 0 }),
@@ -97667,11 +97702,20 @@ class TransactionQuickAccessPlanningComponent extends TransactionHeaderBaseCompo
97667
97702
  this.lspMode = !this.lspMode;
97668
97703
  }
97669
97704
  get selectedLines() {
97670
- return this.transactionLines.filter(line => line.selected);
97705
+ return this.transactionHeaderService.transaction.transactionLines.filter(line => line.selected);
97671
97706
  }
97672
97707
  togglePopup() {
97673
- if (!this.showLspPopup && this.lspMode && this.selectedLines.length > 0) {
97674
- this._connector.getPackageInformation(this.transactionInfo.uuid, this.selectedLines[0].uuid).then(result => {
97708
+ if (!this.showLspPopup && this.lspMode) {
97709
+ if (this.transaction.transactionInfo.allowPartialDelivery && this.selectedLines.length <= 0) {
97710
+ return;
97711
+ }
97712
+ if (!this.transaction.transactionInfo.allowPartialDelivery) {
97713
+ this.transaction.transactionLines.forEach((line) => {
97714
+ line.selected = true;
97715
+ });
97716
+ this.changeDetector.detectChanges();
97717
+ }
97718
+ this._connector.getPackageInformation(this.transactionInfo.uuid, this.selectedLines[0].uuid).then((result) => {
97675
97719
  if (result.length) {
97676
97720
  this.packageLSP = result;
97677
97721
  }
@@ -114390,6 +114434,7 @@ class ServiceWizardSearchBundleComponent {
114390
114434
  placeholder;
114391
114435
  set relation(value) {
114392
114436
  this.transactionSearchService.searchRequest.relationNrTr = Number(value.relationNumber);
114437
+ this.transactionSearchService.searchRequest.quantityAllocated = [2, 3];
114393
114438
  }
114394
114439
  filterIconClick = new EventEmitter();
114395
114440
  closeClick = new EventEmitter();
@@ -114435,6 +114480,7 @@ class ServiceWizardSearchBundleComponent {
114435
114480
  <div class="transaction-tile" [classList]="transaction.transDate">
114436
114481
  <co-transaction-search-sales-line-select-tile
114437
114482
  [transaction]="transaction"
114483
+ [filterOnlyAllocated]="true"
114438
114484
  [customerPortal]="true"
114439
114485
  (lineClicked)="transLineClicked($event)">
114440
114486
  </co-transaction-search-sales-line-select-tile>
@@ -114447,7 +114493,7 @@ class ServiceWizardSearchBundleComponent {
114447
114493
  }
114448
114494
 
114449
114495
  </div>
114450
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal"], outputs: ["lineClicked", "transactionClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
114496
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
114451
114497
  }
114452
114498
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardSearchBundleComponent, decorators: [{
114453
114499
  type: Component,
@@ -114461,6 +114507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
114461
114507
  <div class="transaction-tile" [classList]="transaction.transDate">
114462
114508
  <co-transaction-search-sales-line-select-tile
114463
114509
  [transaction]="transaction"
114510
+ [filterOnlyAllocated]="true"
114464
114511
  [customerPortal]="true"
114465
114512
  (lineClicked)="transLineClicked($event)">
114466
114513
  </co-transaction-search-sales-line-select-tile>
@@ -114553,6 +114600,7 @@ class ServiceWizardArtOrTransComponent {
114553
114600
  //Private variables for creating a service from a sales transaction
114554
114601
  _chosenTransactionLine;
114555
114602
  _existingTransaction;
114603
+ _subs = [];
114556
114604
  constructor(formMasterService, dictionaryService, transactionService, transactionSearchService, imageService) {
114557
114605
  this.formMasterService = formMasterService;
114558
114606
  this.dictionaryService = dictionaryService;
@@ -114566,6 +114614,9 @@ class ServiceWizardArtOrTransComponent {
114566
114614
  this.openTransactionPopUp();
114567
114615
  }
114568
114616
  }
114617
+ ngOnDestroy() {
114618
+ this._subs.forEach(s => s.unsubscribe());
114619
+ }
114569
114620
  submit() {
114570
114621
  return this.formMasterService.submitSlaves();
114571
114622
  }
@@ -114661,8 +114712,7 @@ class ServiceWizardArtOrTransComponent {
114661
114712
  }
114662
114713
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardArtOrTransComponent, deps: [{ token: i1$1.FormMasterService }, { token: DictionaryService }, { token: TransactionService }, { token: TransactionSearchService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
114663
114714
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardArtOrTransComponent, isStandalone: false, selector: "co-service-wizard-art-or-trans", inputs: { forceReadonly: "forceReadonly", relation: "relation", oldOrderId: "oldOrderId", oldGoodId: "oldGoodId", customerPortal: "customerPortal", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible" }, outputs: { transLineChosen: "transLineChosen", articleChosen: "articleChosen", oldOrderIdChange: "oldOrderIdChange", oldGoodIdChange: "oldGoodIdChange", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } }, providers: [
114664
- FormMasterService,
114665
- TransactionSearchService
114715
+ FormMasterService
114666
114716
  ], ngImport: i0, template: `
114667
114717
  @if (!customerPortal) {
114668
114718
  <div class="transaction-header-popup-category-wrapper co-small-scrollbar">
@@ -114737,7 +114787,7 @@ class ServiceWizardArtOrTransComponent {
114737
114787
  }
114738
114788
  @if (showTransLinePopup) {
114739
114789
  <co-dialog-transaction-search
114740
- [relation]="this.relation"
114790
+ [relation]="relation"
114741
114791
  (lineClicked)="handleTransactionLineClick($event)"
114742
114792
  (closeClick)="closeTransactionPopup()">
114743
114793
  </co-dialog-transaction-search>
@@ -114776,7 +114826,7 @@ class ServiceWizardArtOrTransComponent {
114776
114826
  </co-form>
114777
114827
  </div>
114778
114828
  }
114779
- `, isInline: true, dependencies: [{ 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.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: DialogTransactionSearchComponent, selector: "co-dialog-transaction-search", inputs: ["placeholder", "relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "component", type: ImageDisplayComponent, selector: "co-image-display", inputs: ["model", "label"] }, { kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: DialogCatalogComponent, selector: "co-dialog-catalog", inputs: ["handleAddArticleInternally", "options", "parameters", "showNavigation", "showPresets", "returnArticleOnTileClick", "transaction", "isReturn", "showRelatedProductsPopup", "searchPresetsCatalogTemplate"], outputs: ["closeClick", "articleClicked", "iFrameFeedback", "addArticleClicked", "addCatFarmArticleClicked", "addExternalArticleClicked"] }, { kind: "component", type: ServiceWizardSearchBundleComponent, selector: "service-wizard-search-bundle", inputs: ["placeholder", "relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "pipe", type: i2$1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
114829
+ `, isInline: true, dependencies: [{ 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.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: DialogTransactionSearchComponent, selector: "co-dialog-transaction-search", inputs: ["relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "component", type: ImageDisplayComponent, selector: "co-image-display", inputs: ["model", "label"] }, { kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: DialogCatalogComponent, selector: "co-dialog-catalog", inputs: ["handleAddArticleInternally", "options", "parameters", "showNavigation", "showPresets", "returnArticleOnTileClick", "transaction", "isReturn", "showRelatedProductsPopup", "searchPresetsCatalogTemplate"], outputs: ["closeClick", "articleClicked", "iFrameFeedback", "addArticleClicked", "addCatFarmArticleClicked", "addExternalArticleClicked"] }, { kind: "component", type: ServiceWizardSearchBundleComponent, selector: "service-wizard-search-bundle", inputs: ["placeholder", "relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "pipe", type: i2$1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
114780
114830
  }
114781
114831
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardArtOrTransComponent, decorators: [{
114782
114832
  type: Component,
@@ -114856,7 +114906,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
114856
114906
  }
114857
114907
  @if (showTransLinePopup) {
114858
114908
  <co-dialog-transaction-search
114859
- [relation]="this.relation"
114909
+ [relation]="relation"
114860
114910
  (lineClicked)="handleTransactionLineClick($event)"
114861
114911
  (closeClick)="closeTransactionPopup()">
114862
114912
  </co-dialog-transaction-search>
@@ -114897,8 +114947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
114897
114947
  }
114898
114948
  `,
114899
114949
  providers: [
114900
- FormMasterService,
114901
- TransactionSearchService
114950
+ FormMasterService
114902
114951
  ],
114903
114952
  encapsulation: ViewEncapsulation.None,
114904
114953
  standalone: false
@@ -114934,7 +114983,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
114934
114983
  type: Output
114935
114984
  }] } });
114936
114985
 
114986
+ ;
114937
114987
  class ServiceWizardCreateServiceComponent {
114988
+ transactionSettingsService;
114938
114989
  dictionaryService;
114939
114990
  transactionService;
114940
114991
  imageService;
@@ -114956,7 +115007,8 @@ class ServiceWizardCreateServiceComponent {
114956
115007
  slaProductName;
114957
115008
  oldOrderId = "";
114958
115009
  oldGoodId = "";
114959
- constructor(dictionaryService, transactionService, imageService) {
115010
+ constructor(transactionSettingsService, dictionaryService, transactionService, imageService) {
115011
+ this.transactionSettingsService = transactionSettingsService;
114960
115012
  this.dictionaryService = dictionaryService;
114961
115013
  this.transactionService = transactionService;
114962
115014
  this.imageService = imageService;
@@ -114995,10 +115047,8 @@ class ServiceWizardCreateServiceComponent {
114995
115047
  this.portalLineSelected.emit(false);
114996
115048
  this.resetServiceWizard.emit();
114997
115049
  }
114998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardCreateServiceComponent, deps: [{ token: DictionaryService }, { token: TransactionService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
114999
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardCreateServiceComponent, isStandalone: false, selector: "co-service-wizard-create-service", inputs: { forceReadonly: "forceReadonly", relation: "relation", afterSalesSystem: "afterSalesSystem", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible", customerPortal: "customerPortal" }, outputs: { slaBtnSelected: "slaBtnSelected", portalLineSelected: "portalLineSelected", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } }, providers: [
115000
- TransactionSearchService
115001
- ], ngImport: i0, template: `
115050
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardCreateServiceComponent, deps: [{ token: TransactionSettingsService }, { token: DictionaryService }, { token: TransactionService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
115051
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardCreateServiceComponent, isStandalone: false, selector: "co-service-wizard-create-service", inputs: { forceReadonly: "forceReadonly", relation: "relation", afterSalesSystem: "afterSalesSystem", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible", customerPortal: "customerPortal" }, outputs: { slaBtnSelected: "slaBtnSelected", portalLineSelected: "portalLineSelected", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } }, ngImport: i0, template: `
115002
115052
  <div class="transaction-header-popup-category-wrapper co-small-scrollbar">
115003
115053
  @if (!afterSalesSystem) {
115004
115054
  <co-service-wizard-art-or-trans
@@ -115045,13 +115095,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
115045
115095
  }
115046
115096
  </div>
115047
115097
  `,
115048
- providers: [
115049
- TransactionSearchService
115050
- ],
115051
115098
  encapsulation: ViewEncapsulation.None,
115052
115099
  standalone: false
115053
115100
  }]
115054
- }], ctorParameters: () => [{ type: DictionaryService }, { type: TransactionService }, { type: TransactionImageService }], propDecorators: { showClass: [{
115101
+ }], ctorParameters: () => [{ type: TransactionSettingsService }, { type: DictionaryService }, { type: TransactionService }, { type: TransactionImageService }], propDecorators: { showClass: [{
115055
115102
  type: HostBinding,
115056
115103
  args: ['class.co-transaction-header-popup-create-service']
115057
115104
  }], forceReadonly: [{
@@ -115214,6 +115261,7 @@ class TransactionCreateWizardComponent {
115214
115261
  transactionScreenConfigurationService;
115215
115262
  _dialogService;
115216
115263
  _headerService;
115264
+ _transactionSettingsService;
115217
115265
  transKind = TransactionKind;
115218
115266
  Icon = Icon;
115219
115267
  stepper;
@@ -115225,6 +115273,7 @@ class TransactionCreateWizardComponent {
115225
115273
  wizardSection;
115226
115274
  stepServiceFieldsSection;
115227
115275
  serviceFieldsSection;
115276
+ settings;
115228
115277
  set externallyProvidedTransaction(transaction) {
115229
115278
  this._externallyProvidedTransaction = transaction;
115230
115279
  }
@@ -115262,20 +115311,27 @@ class TransactionCreateWizardComponent {
115262
115311
  _externallyProvidedCustomer = null;
115263
115312
  _externallyProvidedContactPerson = null;
115264
115313
  _subs = [];
115265
- constructor(createService, relationService, transactionService, transactionScreenConfigurationService, _dialogService, _headerService) {
115314
+ constructor(createService, relationService, transactionService, transactionScreenConfigurationService, _dialogService, _headerService, _transactionSettingsService) {
115266
115315
  this.createService = createService;
115267
115316
  this.relationService = relationService;
115268
115317
  this.transactionService = transactionService;
115269
115318
  this.transactionScreenConfigurationService = transactionScreenConfigurationService;
115270
115319
  this._dialogService = _dialogService;
115271
115320
  this._headerService = _headerService;
115321
+ this._transactionSettingsService = _transactionSettingsService;
115272
115322
  }
115273
115323
  async ngOnInit() {
115274
115324
  this._subs.push(this.createService.transactionUpdated.subscribe((transaction) => {
115275
115325
  if (transaction) {
115276
115326
  this._headerService.transaction = transaction;
115277
115327
  }
115328
+ }), this._transactionSettingsService.settingsInitialized.subscribe((initialized) => {
115329
+ if (initialized) {
115330
+ this._transactionSettingsService.settings.tempTransactionParameters = undefined;
115331
+ this._transactionSettingsService.settings.transactionParameters.quantityAllocated = [2, 3];
115332
+ }
115278
115333
  }));
115334
+ await this.createService.init(this.settings);
115279
115335
  await this.createService.prepareAfterSalesSystemParam();
115280
115336
  await this.transactionScreenConfigurationService.loadConfig(['S']);
115281
115337
  this.createService.transactionKind = this.transactionType;
@@ -115438,8 +115494,14 @@ class TransactionCreateWizardComponent {
115438
115494
  this.openStep = 2;
115439
115495
  }
115440
115496
  }
115441
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCreateWizardComponent, deps: [{ token: TransactionCreateService }, { token: TransactionRelationService }, { token: TransactionService }, { token: TransactionScreenConfigurationService }, { token: TransactionDialogService }, { token: TransactionHeaderService }], target: i0.ɵɵFactoryTarget.Component });
115442
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionCreateWizardComponent, isStandalone: false, selector: "co-transaction-create-wizard", inputs: { externallyProvidedTransaction: "externallyProvidedTransaction", externallyProvidedLineNr: "externallyProvidedLineNr", externallyProvidedCustomer: "externallyProvidedCustomer", externallyProvidedContactPerson: "externallyProvidedContactPerson", branch: "branch", customerPortal: "customerPortal" }, outputs: { transactionFinished: "transactionFinished" }, host: { properties: { "class.co-transaction-create-wizard": "this.showClass" } }, providers: [TransactionCreateService, TransactionHeaderService], viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true }, { propertyName: "stepRelationSection", first: true, predicate: ["stepRelationSection"], descendants: true }, { propertyName: "relationSection", first: true, predicate: ["relationSection"], descendants: true }, { propertyName: "stepTransactionSection", first: true, predicate: ["stepTransactionSection"], descendants: true }, { propertyName: "transactionSection", first: true, predicate: ["transactionSection"], descendants: true }, { propertyName: "stepWizardSection", first: true, predicate: ["stepWizardSection"], descendants: true }, { propertyName: "wizardSection", first: true, predicate: ["wizardSection"], descendants: true }, { propertyName: "stepServiceFieldsSection", first: true, predicate: ["stepServiceFieldsSection"], descendants: true }, { propertyName: "serviceFieldsSection", first: true, predicate: ["serviceFieldsSection"], descendants: true }], ngImport: i0, template: `
115497
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCreateWizardComponent, deps: [{ token: TransactionCreateService }, { token: TransactionRelationService }, { token: TransactionService }, { token: TransactionScreenConfigurationService }, { token: TransactionDialogService }, { token: TransactionHeaderService }, { token: TransactionSettingsService }], target: i0.ɵɵFactoryTarget.Component });
115498
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionCreateWizardComponent, isStandalone: false, selector: "co-transaction-create-wizard", inputs: { settings: "settings", externallyProvidedTransaction: "externallyProvidedTransaction", externallyProvidedLineNr: "externallyProvidedLineNr", externallyProvidedCustomer: "externallyProvidedCustomer", externallyProvidedContactPerson: "externallyProvidedContactPerson", branch: "branch", customerPortal: "customerPortal" }, outputs: { transactionFinished: "transactionFinished" }, host: { properties: { "class.co-transaction-create-wizard": "this.showClass" } }, providers: [
115499
+ TransactionCreateService,
115500
+ TransactionSettingsService,
115501
+ TransactionConnectorService,
115502
+ TransactionSearchService,
115503
+ TransactionHeaderService
115504
+ ], viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true }, { propertyName: "stepRelationSection", first: true, predicate: ["stepRelationSection"], descendants: true }, { propertyName: "relationSection", first: true, predicate: ["relationSection"], descendants: true }, { propertyName: "stepTransactionSection", first: true, predicate: ["stepTransactionSection"], descendants: true }, { propertyName: "transactionSection", first: true, predicate: ["transactionSection"], descendants: true }, { propertyName: "stepWizardSection", first: true, predicate: ["stepWizardSection"], descendants: true }, { propertyName: "wizardSection", first: true, predicate: ["wizardSection"], descendants: true }, { propertyName: "stepServiceFieldsSection", first: true, predicate: ["stepServiceFieldsSection"], descendants: true }, { propertyName: "serviceFieldsSection", first: true, predicate: ["serviceFieldsSection"], descendants: true }], ngImport: i0, template: `
115443
115505
  <co-click-block></co-click-block>
115444
115506
  @if (isReady) {
115445
115507
  <co-simple-vertical-stepper [stepButtonLabels]="['Volgende', 'Volgende', 'Volgende', 'Afronden', 'Afronden']"
@@ -115538,11 +115600,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
115538
115600
  }
115539
115601
 
115540
115602
  `,
115541
- providers: [TransactionCreateService, TransactionHeaderService],
115603
+ providers: [
115604
+ TransactionCreateService,
115605
+ TransactionSettingsService,
115606
+ TransactionConnectorService,
115607
+ TransactionSearchService,
115608
+ TransactionHeaderService
115609
+ ],
115542
115610
  encapsulation: ViewEncapsulation.None,
115543
115611
  standalone: false
115544
115612
  }]
115545
- }], ctorParameters: () => [{ type: TransactionCreateService }, { type: TransactionRelationService }, { type: TransactionService }, { type: TransactionScreenConfigurationService }, { type: TransactionDialogService }, { type: TransactionHeaderService }], propDecorators: { stepper: [{
115613
+ }], ctorParameters: () => [{ type: TransactionCreateService }, { type: TransactionRelationService }, { type: TransactionService }, { type: TransactionScreenConfigurationService }, { type: TransactionDialogService }, { type: TransactionHeaderService }, { type: TransactionSettingsService }], propDecorators: { stepper: [{
115546
115614
  type: ViewChild,
115547
115615
  args: ["stepper"]
115548
115616
  }], stepRelationSection: [{
@@ -115569,6 +115637,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
115569
115637
  }], serviceFieldsSection: [{
115570
115638
  type: ViewChild,
115571
115639
  args: ["serviceFieldsSection"]
115640
+ }], settings: [{
115641
+ type: Input
115572
115642
  }], externallyProvidedTransaction: [{
115573
115643
  type: Input
115574
115644
  }], externallyProvidedLineNr: [{