@colijnit/transaction 261.20.25 → 261.20.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/fesm2022/colijnit-transaction.mjs +280 -24
  2. package/fesm2022/colijnit-transaction.mjs.map +1 -1
  3. package/index.d.ts +46 -5
  4. package/lib/component/returns/return-wizard/style/_layout.scss +9 -0
  5. package/lib/component/returns/return-wizard/style/_material-definition.scss +0 -0
  6. package/lib/component/returns/return-wizard/style/_theme.scss +4 -0
  7. package/lib/component/returns/return-wizard/style/material.scss +4 -0
  8. package/lib/component/returns/return-wizard/wizard-return-line-display-tile/style/_layout.scss +26 -0
  9. package/lib/component/returns/return-wizard/wizard-return-line-display-tile/style/_material-definition.scss +1 -0
  10. package/lib/component/returns/return-wizard/wizard-return-line-display-tile/style/_theme.scss +4 -0
  11. package/lib/component/returns/return-wizard/wizard-return-line-display-tile/style/material.scss +3 -0
  12. package/lib/component/transaction-line/transaction-customer-portal-return-line/style/_layout.scss +44 -0
  13. package/lib/component/transaction-line/transaction-customer-portal-return-line/style/_material-definition.scss +0 -0
  14. package/lib/component/transaction-line/transaction-customer-portal-return-line/style/_theme.scss +6 -0
  15. package/lib/component/transaction-line/transaction-customer-portal-return-line/style/material.scss +3 -0
  16. package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-line-select-tile/style/_layout.scss +10 -0
  17. package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-line-select-tile/transaction-line-tile/style/_layout.scss +13 -8
  18. package/package.json +2 -2
@@ -28,6 +28,7 @@ import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum'
28
28
  import { PlanOrder } from '@colijnit/transactionapi/build/model/plan-order.bo';
29
29
  import { BranchFullObject } from '@colijnit/relationapi/build/model/branch-full-object.bo';
30
30
  import { InternalDefault } from '@colijnit/mainapi/build/enum/internal-default.enum';
31
+ import { RefTransactionType } from '@colijnit/transactionapi/build/enum/ref-transaction-type.enum';
31
32
  import { Options } from '@colijnit/ioneconnector/build/model/options';
32
33
  import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
33
34
  import { StringUtils } from '@colijnit/ioneconnector/build/utils/string-utils';
@@ -350,8 +351,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
350
351
  class Version {
351
352
  name = "@colijnit/transaction";
352
353
  description = "Colijn IT transaction package";
353
- symVer = "261.20.25";
354
- publishDate = "27-3-2026, 18:00:01";
354
+ symVer = "261.20.27";
355
+ publishDate = "30-3-2026, 18:54:34";
355
356
  }
356
357
 
357
358
  class CheckoutModuleService extends BaseModuleService {
@@ -442,6 +443,7 @@ var TransactionTypeCategory;
442
443
  TransactionTypeCategory["PurchaseOrderMarginInfo"] = "purchaseOrderMarginInfo";
443
444
  TransactionTypeCategory["SalesOrderMarginInfo"] = "salesOrderMarginInfo";
444
445
  TransactionTypeCategory["SalesCustomerPortal"] = "SalesCustomerPortal";
446
+ TransactionTypeCategory["SalesReturn"] = "SalesReturn";
445
447
  TransactionTypeCategory["SalesOrderPurchase"] = "salesOrderPurchase";
446
448
  TransactionTypeCategory["SalesOrderAllocation"] = "salesOrderAllocation";
447
449
  TransactionTypeCategory["SalesOrderPicking"] = "salesOrderPicking";
@@ -2007,6 +2009,7 @@ class TransactionEventService {
2007
2009
  transportTransactionRemoveRequestUpdated = new BehaviorSubject;
2008
2010
  removalModeContainerInfo = new BehaviorSubject;
2009
2011
  addContactMoment = new BehaviorSubject(false);
2012
+ saveFormResponse = new BehaviorSubject(false);
2010
2013
  transportTransactionSelectionChanged = new Subject;
2011
2014
  transportTransactionLineSelectionChanged = new Subject;
2012
2015
  fillContainerRequested = new Subject;
@@ -3161,6 +3164,19 @@ class TransactionConnectorAdapterService {
3161
3164
  });
3162
3165
  });
3163
3166
  }
3167
+ async createSalesReturn(request) {
3168
+ return new Promise((resolve, reject) => {
3169
+ return this.connector.createSalesReturn(request).then((result) => {
3170
+ if (result.validationResult && result.validationResult.success) {
3171
+ resolve(this._boFactory.makeWithRawBackendData(TransactionInfoResponse, result.resultObject));
3172
+ }
3173
+ else {
3174
+ this._handleExceptionFromResponse(result);
3175
+ reject(null);
3176
+ }
3177
+ });
3178
+ });
3179
+ }
3164
3180
  async createCashRegisterOrder(request) {
3165
3181
  return new Promise((resolve, reject) => {
3166
3182
  return this.connector.createCashRegisterOrder(request).then((result) => {
@@ -8005,6 +8021,9 @@ class TransactionConnectorService {
8005
8021
  async createSalesOrder(request) {
8006
8022
  return this._adapterService.functionCall(this._adapterService.createSalesOrder, [request]);
8007
8023
  }
8024
+ async createSalesReturn(request) {
8025
+ return await this._adapterService.functionCall(this._adapterService.createSalesReturn, [request]);
8026
+ }
8008
8027
  async createCashRegisterOrder(request) {
8009
8028
  return this._adapterService.functionCall(this._adapterService.createCashRegisterOrder, [request]);
8010
8029
  }
@@ -10035,19 +10054,23 @@ class TransactionBaseService extends BaseModuleService {
10035
10054
  let refTransactions = [];
10036
10055
  let refServiceTransactions = [];
10037
10056
  let refInvoiceTransactions = [];
10057
+ let refPurchaseInvoiceTransactions = [];
10038
10058
  const transLine = articleTransLines[i];
10039
10059
  transLine.refTransactions.length = 0;
10040
10060
  if (refs && refs.length > 0) {
10041
- const salesOrders = refs.filter(r => r.refTransactionType === TransactionKind.SalesOrder);
10042
- refTransactions = await this.makeRefTransactionList(salesOrders, transLine.lineNr);
10043
- const serviceOrders = refs.filter(r => r.refTransactionType === TransactionKind.ServiceOrder);
10044
- refServiceTransactions = await this.makeRefTransactionList(serviceOrders, transLine.lineNr);
10045
- const invoices = refs.filter(r => r.refTransactionType === TransactionKind.SalesInvoice);
10046
- refInvoiceTransactions = await this.makeRefTransactionList(invoices, transLine.lineNr);
10061
+ const salesOrders = refs.filter(r => r.refTransactionType === RefTransactionType.SalesOrder);
10062
+ refTransactions = await this.makeRefTransactionList(salesOrders, transLine.lineNr, RefTransactionType.SalesOrder);
10063
+ const serviceOrders = refs.filter(r => r.refTransactionType === RefTransactionType.ServiceOrder);
10064
+ refServiceTransactions = await this.makeRefTransactionList(serviceOrders, transLine.lineNr, RefTransactionType.ServiceOrder);
10065
+ const invoices = refs.filter(r => r.refTransactionType === RefTransactionType.SalesInvoice);
10066
+ refInvoiceTransactions = await this.makeRefTransactionList(invoices, transLine.lineNr, RefTransactionType.SalesInvoice);
10067
+ const purchaseInvoices = refs.filter(r => r.refTransactionType === RefTransactionType.PurchaseInvoice);
10068
+ refPurchaseInvoiceTransactions = await this.makeRefTransactionList(purchaseInvoices, transLine.lineNr, RefTransactionType.PurchaseInvoice);
10047
10069
  }
10048
10070
  transLine.refTransactions = refTransactions;
10049
10071
  transLine.refServiceTransactions = refServiceTransactions;
10050
10072
  transLine.refTransactionsInvoice = refInvoiceTransactions;
10073
+ transLine.refTransactionsPurchase = refPurchaseInvoiceTransactions;
10051
10074
  this.transactionEventService.transactionLineRefTransactionsChanged.next(transLine);
10052
10075
  }
10053
10076
  });
@@ -10076,7 +10099,7 @@ class TransactionBaseService extends BaseModuleService {
10076
10099
  this.salesOrderConfirmationSent = this.currentTransaction.transactionInfo.headerInfoStatus.isConfirmationSent;
10077
10100
  }
10078
10101
  }
10079
- async makeRefTransactionList(inputRefTransactions, lineNr = NaN) {
10102
+ async makeRefTransactionList(inputRefTransactions, lineNr = NaN, refTransactionType) {
10080
10103
  let refTransactions = [];
10081
10104
  let inputTransactions = inputRefTransactions;
10082
10105
  if (!isNaN(lineNr)) {
@@ -10088,7 +10111,14 @@ class TransactionBaseService extends BaseModuleService {
10088
10111
  request.transNr = parseInt(inputTransactions[i].refTransactionNr);
10089
10112
  const transSearchResult = await this.searchTransactions(request);
10090
10113
  if (transSearchResult.transactions && transSearchResult.transactions.length > 0) {
10091
- refTransactions.push(new TransactionRefTransaction(transSearchResult.transactions[0].transId, transSearchResult.transactions[0].transNr.toString(), transSearchResult.transactions[0].transactionKind, transSearchResult.transactions[0].relationNr, transSearchResult.transactions[0].relationName));
10114
+ switch (refTransactionType) {
10115
+ default:
10116
+ refTransactions.push(new TransactionRefTransaction(transSearchResult.transactions[0].transId, transSearchResult.transactions[0].transNr.toString(), transSearchResult.transactions[0].transactionKind, transSearchResult.transactions[0].relationNr, transSearchResult.transactions[0].relationName));
10117
+ break;
10118
+ case RefTransactionType.PurchaseInvoice:
10119
+ refTransactions.push(new TransactionRefTransaction(transSearchResult.transactions[0].transId, inputRefTransactions[i].refTransactionNr, inputRefTransactions[i].refTransactionType, transSearchResult.transactions[0].relationNr, transSearchResult.transactions[0].relationName));
10120
+ break;
10121
+ }
10092
10122
  }
10093
10123
  }
10094
10124
  return refTransactions;
@@ -11245,6 +11275,11 @@ class TransactionService extends PendingReasonService {
11245
11275
  await this.rememberCurrentTransaction(response);
11246
11276
  return true;
11247
11277
  }
11278
+ async createSalesReturn(request) {
11279
+ const response = await this.connector.createSalesReturn(request);
11280
+ await this.rememberCurrentTransaction(response);
11281
+ return true;
11282
+ }
11248
11283
  async createCashRegisterOrder(request, saveTransaction = true) {
11249
11284
  return new Promise((resolve) => {
11250
11285
  this.connector.createCashRegisterOrder(request).then(async (response) => {
@@ -42289,6 +42324,11 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
42289
42324
  }
42290
42325
  }), this.transactionEventService.orderLineSetButtonClick.subscribe(async () => {
42291
42326
  this.detectChanges();
42327
+ }), this.transactionEventService.saveFormResponse.subscribe((response) => {
42328
+ if (response.lineUUID === this.transactionLine.uuid) {
42329
+ this.transactionLine.formResponseId = response.formResponseId;
42330
+ this.detectChanges();
42331
+ }
42292
42332
  }));
42293
42333
  }
42294
42334
  ngOnDestroy() {
@@ -49446,13 +49486,10 @@ class TransactionReceiveGoodsLineComponent extends TransactionReceiveGoodsLineBa
49446
49486
  <div class="transaction-field-wrapper small">
49447
49487
  <div class="inside-field">
49448
49488
  <co-transaction-line-label [insideLabel]="'INVOICE'"></co-transaction-line-label>
49449
- @for (ref of transactionLine.refTransactionsInvoice; track ref) {
49450
- @if (ref['refInvoiceNumber']) {
49489
+ @for (ref of transactionLine.refTransactionsPurchase; track ref) {
49451
49490
  <co-transaction-navigation-button [icon]="navigationButtonIcon"
49452
- [label]="ref['refInvoiceNumber']"
49491
+ [label]="ref.refTransactionNr"
49453
49492
  ></co-transaction-navigation-button>
49454
- }
49455
-
49456
49493
  }
49457
49494
  </div>
49458
49495
  </div>
@@ -49596,13 +49633,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
49596
49633
  <div class="transaction-field-wrapper small">
49597
49634
  <div class="inside-field">
49598
49635
  <co-transaction-line-label [insideLabel]="'INVOICE'"></co-transaction-line-label>
49599
- @for (ref of transactionLine.refTransactionsInvoice; track ref) {
49600
- @if (ref['refInvoiceNumber']) {
49636
+ @for (ref of transactionLine.refTransactionsPurchase; track ref) {
49601
49637
  <co-transaction-navigation-button [icon]="navigationButtonIcon"
49602
- [label]="ref['refInvoiceNumber']"
49638
+ [label]="ref.refTransactionNr"
49603
49639
  ></co-transaction-navigation-button>
49604
- }
49605
-
49606
49640
  }
49607
49641
  </div>
49608
49642
  </div>
@@ -62245,6 +62279,7 @@ class TransactionSearchResultComponent {
62245
62279
  showCheckbox;
62246
62280
  batchCategory;
62247
62281
  extendedTransactionSearch = false;
62282
+ returnWizardLayout = false;
62248
62283
  set activeContentViewMode(value) {
62249
62284
  this._activeContentViewMode = value;
62250
62285
  }
@@ -62514,7 +62549,7 @@ class TransactionSearchResultComponent {
62514
62549
  this.selectedTransactions = [];
62515
62550
  }
62516
62551
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchResultComponent, deps: [{ token: TransactionSearchService }, { token: TransactionScreenConfigurationService }, { token: TransactionService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionNotificationLineSelectionService }, { token: i0.ChangeDetectorRef }, { token: DeliveryPlanningService }], target: i0.ɵɵFactoryTarget.Component });
62517
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchResultComponent, isStandalone: false, selector: "co-transaction-search-result", inputs: { draggableTransactions: "draggableTransactions", showCheckbox: "showCheckbox", batchCategory: "batchCategory", extendedTransactionSearch: "extendedTransactionSearch", activeContentViewMode: "activeContentViewMode", fullscreen: "fullscreen" }, outputs: { transactionClick: "transactionClick", containerChosen: "containerChosen" }, host: { properties: { "class.co-transaction-search-result": "this.showClass" } }, providers: [
62552
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchResultComponent, isStandalone: false, selector: "co-transaction-search-result", inputs: { draggableTransactions: "draggableTransactions", showCheckbox: "showCheckbox", batchCategory: "batchCategory", extendedTransactionSearch: "extendedTransactionSearch", returnWizardLayout: "returnWizardLayout", activeContentViewMode: "activeContentViewMode", fullscreen: "fullscreen" }, outputs: { transactionClick: "transactionClick", containerChosen: "containerChosen" }, host: { properties: { "class.co-transaction-search-result": "this.showClass" } }, providers: [
62518
62553
  { provide: BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
62519
62554
  ], usesOnChanges: true, ngImport: i0, template: `
62520
62555
  @if (screenConfigLoaded) {
@@ -62578,7 +62613,8 @@ class TransactionSearchResultComponent {
62578
62613
  [transaction]="transaction"
62579
62614
  (transactionClick)="onTransactionClick($event)"
62580
62615
  (selectedClick)="onSelectedClick($event)"
62581
- [extendedTransactionSearch]="extendedTransactionSearch">
62616
+ [extendedTransactionSearch]="extendedTransactionSearch"
62617
+ [returnWizardLayout]="returnWizardLayout">
62582
62618
  </co-transaction-search-sales-line-select-tile>
62583
62619
  </div>
62584
62620
  }
@@ -62700,7 +62736,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
62700
62736
  [transaction]="transaction"
62701
62737
  (transactionClick)="onTransactionClick($event)"
62702
62738
  (selectedClick)="onSelectedClick($event)"
62703
- [extendedTransactionSearch]="extendedTransactionSearch">
62739
+ [extendedTransactionSearch]="extendedTransactionSearch"
62740
+ [returnWizardLayout]="returnWizardLayout">
62704
62741
  </co-transaction-search-sales-line-select-tile>
62705
62742
  </div>
62706
62743
  }
@@ -62770,6 +62807,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
62770
62807
  type: Input
62771
62808
  }], extendedTransactionSearch: [{
62772
62809
  type: Input
62810
+ }], returnWizardLayout: [{
62811
+ type: Input
62773
62812
  }], activeContentViewMode: [{
62774
62813
  type: Input
62775
62814
  }], fullscreen: [{
@@ -64445,12 +64484,13 @@ class TransactionSearchComponent {
64445
64484
  [draggableTransactions]="draggableTransactions"
64446
64485
  (transactionClick)="onTransactionClick($event)"
64447
64486
  [extendedTransactionSearch]="extendedTransactionSearch"
64487
+ [returnWizardLayout]="returnWizardLayout"
64448
64488
  ></co-transaction-search-result>
64449
64489
  </div>
64450
64490
 
64451
64491
  <ng-content></ng-content>
64452
64492
  </co-search>
64453
- `, isInline: true, dependencies: [{ kind: "component", type: i1$1.InputSearchComponent, selector: "co-input-search", inputs: ["placeholder", "handleKeydown", "useLeftIcon", "useRightIcon", "leftIconData", "rightIconData", "centerLabel"], outputs: ["search", "isFocused", "leftIconClick", "rightIconClick"] }, { kind: "component", type: TransactionSearchResultComponent, selector: "co-transaction-search-result", inputs: ["draggableTransactions", "showCheckbox", "batchCategory", "extendedTransactionSearch", "activeContentViewMode", "fullscreen"], outputs: ["transactionClick", "containerChosen"] }, { kind: "component", type: TransactionFilterComponent, selector: "co-transaction-filter", outputs: ["totalActiveFiltersChange"] }, { kind: "component", type: SearchComponent, selector: "co-search", inputs: ["headerLabel", "showFilterButton", "showAddTransactionButton", "showCollapseButton"], outputs: ["addClick", "resetFilterClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
64493
+ `, isInline: true, dependencies: [{ kind: "component", type: i1$1.InputSearchComponent, selector: "co-input-search", inputs: ["placeholder", "handleKeydown", "useLeftIcon", "useRightIcon", "leftIconData", "rightIconData", "centerLabel"], outputs: ["search", "isFocused", "leftIconClick", "rightIconClick"] }, { kind: "component", type: TransactionSearchResultComponent, selector: "co-transaction-search-result", inputs: ["draggableTransactions", "showCheckbox", "batchCategory", "extendedTransactionSearch", "returnWizardLayout", "activeContentViewMode", "fullscreen"], outputs: ["transactionClick", "containerChosen"] }, { kind: "component", type: TransactionFilterComponent, selector: "co-transaction-filter", outputs: ["totalActiveFiltersChange"] }, { kind: "component", type: SearchComponent, selector: "co-search", inputs: ["headerLabel", "showFilterButton", "showAddTransactionButton", "showCollapseButton"], outputs: ["addClick", "resetFilterClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
64454
64494
  }
64455
64495
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchComponent, decorators: [{
64456
64496
  type: Component,
@@ -64487,6 +64527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
64487
64527
  [draggableTransactions]="draggableTransactions"
64488
64528
  (transactionClick)="onTransactionClick($event)"
64489
64529
  [extendedTransactionSearch]="extendedTransactionSearch"
64530
+ [returnWizardLayout]="returnWizardLayout"
64490
64531
  ></co-transaction-search-result>
64491
64532
  </div>
64492
64533
 
@@ -72252,6 +72293,215 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
72252
72293
  }]
72253
72294
  }] });
72254
72295
 
72296
+ class TransactionCustomerPortalReturnLineComponent extends TransactionLineBaseComponent {
72297
+ orderLineSetService;
72298
+ transactionHeaderService;
72299
+ transactionLineService;
72300
+ transactionEventService;
72301
+ iconCacheService;
72302
+ screenConfigService;
72303
+ imageService;
72304
+ dictionaryService;
72305
+ transactionService;
72306
+ changeDetector;
72307
+ category = TransactionTypeCategory;
72308
+ transactionLineActionButtons;
72309
+ descriptionDblClick = new EventEmitter();
72310
+ showClass() {
72311
+ return true;
72312
+ }
72313
+ stock = StockStatus.Low;
72314
+ noLabel = false; // Temp test without labels
72315
+ statusBarConfigNames = {
72316
+ statusBarBT: this.cfgNames.StatusBarBT,
72317
+ statusBarTG: this.cfgNames.StatusBarTG,
72318
+ statusBarPA: this.cfgNames.StatusBarPA,
72319
+ statusBarPV: this.cfgNames.StatusBarPV,
72320
+ statusBarTP: this.cfgNames.StatusBarTP,
72321
+ statusBarGT: this.cfgNames.StatusBarGT,
72322
+ statusBarGP: this.cfgNames.StatusBarGP,
72323
+ statusBarGL: this.cfgNames.StatusBarGL,
72324
+ statusBarGF: this.cfgNames.StatusBarGF
72325
+ };
72326
+ discountConfigNames = {
72327
+ linePriceList: this.cfgNames.LinePriceList,
72328
+ lineDiscountAmount: this.cfgNames.LineDiscountAmount,
72329
+ lineDiscountPercentage: this.cfgNames.LineDiscountPercentage,
72330
+ lineDiscountSpecial: this.cfgNames.LineDiscountSpecial,
72331
+ lineDiscountQuantum: this.cfgNames.LineDiscountQuantum
72332
+ };
72333
+ constructor(orderLineSetService, transactionHeaderService, transactionLineService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector) {
72334
+ super(transactionHeaderService, transactionLineService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector);
72335
+ this.orderLineSetService = orderLineSetService;
72336
+ this.transactionHeaderService = transactionHeaderService;
72337
+ this.transactionLineService = transactionLineService;
72338
+ this.transactionEventService = transactionEventService;
72339
+ this.iconCacheService = iconCacheService;
72340
+ this.screenConfigService = screenConfigService;
72341
+ this.imageService = imageService;
72342
+ this.dictionaryService = dictionaryService;
72343
+ this.transactionService = transactionService;
72344
+ this.changeDetector = changeDetector;
72345
+ }
72346
+ lineSelected(selected) {
72347
+ this.transactionLine.selected = selected;
72348
+ }
72349
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineComponent, 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 });
72350
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionCustomerPortalReturnLineComponent, isStandalone: false, selector: "co-transaction-customer-portal-return-line", outputs: { descriptionDblClick: "descriptionDblClick" }, host: { properties: { "class.co-transaction-customer-portal-line": "this.showClass" } }, viewQueries: [{ propertyName: "transactionLineActionButtons", first: true, predicate: TransactionLineActionButtonsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
72351
+ <co-transaction-base-line
72352
+ [transactionInfo]="transactionInfo"
72353
+ [transactionLine]="transactionLine"
72354
+ [showArticleNr]="false"
72355
+ [customerPortal]="true"
72356
+ [showPriceAmount]="true"
72357
+ [checkbox]="true"
72358
+ [checkboxValue]="transactionLine.selected"
72359
+ (checkboxValueChanged)="lineSelected($event)"
72360
+ >
72361
+ </co-transaction-base-line>
72362
+ `, isInline: true, dependencies: [{ kind: "component", type: TransactionBaseLineComponent, selector: "co-transaction-base-line", inputs: ["lineIndex", "transaction", "transactionInfo", "transactionLine", "selected", "preview", "isFirst", "checkboxValue", "showColorIndicator", "colorIndicatorColor", "checkboxReadonly", "checkbox", "actionButtons", "showPurchaseDescAndPrice", "showArticleNr", "customerPortal", "showPriceAmount"], outputs: ["checkboxValueChanged", "waitingForUserAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
72363
+ }
72364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineComponent, decorators: [{
72365
+ type: Component,
72366
+ args: [{
72367
+ selector: "co-transaction-customer-portal-return-line",
72368
+ template: `
72369
+ <co-transaction-base-line
72370
+ [transactionInfo]="transactionInfo"
72371
+ [transactionLine]="transactionLine"
72372
+ [showArticleNr]="false"
72373
+ [customerPortal]="true"
72374
+ [showPriceAmount]="true"
72375
+ [checkbox]="true"
72376
+ [checkboxValue]="transactionLine.selected"
72377
+ (checkboxValueChanged)="lineSelected($event)"
72378
+ >
72379
+ </co-transaction-base-line>
72380
+ `,
72381
+ encapsulation: ViewEncapsulation.None,
72382
+ changeDetection: ChangeDetectionStrategy.OnPush,
72383
+ standalone: false
72384
+ }]
72385
+ }], ctorParameters: () => [{ type: OrderLineSetService }, { type: TransactionHeaderService }, { type: TransactionLineService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }], propDecorators: { transactionLineActionButtons: [{
72386
+ type: ViewChild,
72387
+ args: [TransactionLineActionButtonsComponent]
72388
+ }], descriptionDblClick: [{
72389
+ type: Output
72390
+ }], showClass: [{
72391
+ type: HostBinding,
72392
+ args: ["class.co-transaction-customer-portal-line"]
72393
+ }] } });
72394
+
72395
+ class TransactionCustomerPortalReturnLineModule {
72396
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72397
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineModule, declarations: [TransactionCustomerPortalReturnLineComponent], imports: [CommonModule,
72398
+ CoreModule,
72399
+ ButtonModule,
72400
+ InputNumberPickerModule,
72401
+ TransactionArticleTextModule,
72402
+ TransactionArticleTextOverviewModule,
72403
+ PipeModule,
72404
+ TransactionLineActionButtonsModule,
72405
+ IconModule,
72406
+ EditableLabelModule,
72407
+ TransactionLinePriceModule,
72408
+ TransactionLineDescriptionModule,
72409
+ TransactionBaseLineModule,
72410
+ DragDropModule,
72411
+ TransactionLineCommissionButtonModule,
72412
+ TransactionLineWarehouseButtonModule,
72413
+ TransactionLineDeliveryButtonModule,
72414
+ TransactionLineDeliveryDateButtonModule,
72415
+ DialogTransactionLineVatModule,
72416
+ DialogTransactionLineDiscountModule,
72417
+ TransactionLineStatusbarModule,
72418
+ TransactionLineAmountModule,
72419
+ TransactionLineVatButtonModule,
72420
+ TransactionLineDiscountButtonModule,
72421
+ TransactionLineDeliveryDateModule,
72422
+ TransactionMarginInfoLineModule,
72423
+ TransactionPlanningLineModule,
72424
+ ObserveVisibilityModule,
72425
+ ScreenConfigurationModule,
72426
+ TransactionLineLabelModule,
72427
+ TransactionLineDirectSellButtonModule], exports: [TransactionCustomerPortalReturnLineComponent] });
72428
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineModule, imports: [CommonModule,
72429
+ CoreModule,
72430
+ ButtonModule,
72431
+ InputNumberPickerModule,
72432
+ TransactionArticleTextModule,
72433
+ TransactionArticleTextOverviewModule,
72434
+ PipeModule,
72435
+ TransactionLineActionButtonsModule,
72436
+ IconModule,
72437
+ EditableLabelModule,
72438
+ TransactionLinePriceModule,
72439
+ TransactionLineDescriptionModule,
72440
+ TransactionBaseLineModule,
72441
+ DragDropModule,
72442
+ TransactionLineCommissionButtonModule,
72443
+ TransactionLineWarehouseButtonModule,
72444
+ TransactionLineDeliveryButtonModule,
72445
+ TransactionLineDeliveryDateButtonModule,
72446
+ DialogTransactionLineVatModule,
72447
+ DialogTransactionLineDiscountModule,
72448
+ TransactionLineStatusbarModule,
72449
+ TransactionLineAmountModule,
72450
+ TransactionLineVatButtonModule,
72451
+ TransactionLineDiscountButtonModule,
72452
+ TransactionLineDeliveryDateModule,
72453
+ TransactionMarginInfoLineModule,
72454
+ TransactionPlanningLineModule,
72455
+ ObserveVisibilityModule,
72456
+ ScreenConfigurationModule,
72457
+ TransactionLineLabelModule,
72458
+ TransactionLineDirectSellButtonModule] });
72459
+ }
72460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCustomerPortalReturnLineModule, decorators: [{
72461
+ type: NgModule,
72462
+ args: [{
72463
+ imports: [
72464
+ CommonModule,
72465
+ CoreModule,
72466
+ ButtonModule,
72467
+ InputNumberPickerModule,
72468
+ TransactionArticleTextModule,
72469
+ TransactionArticleTextOverviewModule,
72470
+ PipeModule,
72471
+ TransactionLineActionButtonsModule,
72472
+ IconModule,
72473
+ EditableLabelModule,
72474
+ TransactionLinePriceModule,
72475
+ TransactionLineDescriptionModule,
72476
+ TransactionBaseLineModule,
72477
+ DragDropModule,
72478
+ TransactionLineCommissionButtonModule,
72479
+ TransactionLineWarehouseButtonModule,
72480
+ TransactionLineDeliveryButtonModule,
72481
+ TransactionLineDeliveryDateButtonModule,
72482
+ DialogTransactionLineVatModule,
72483
+ DialogTransactionLineDiscountModule,
72484
+ TransactionLineStatusbarModule,
72485
+ TransactionLineAmountModule,
72486
+ TransactionLineVatButtonModule,
72487
+ TransactionLineDiscountButtonModule,
72488
+ TransactionLineDeliveryDateModule,
72489
+ TransactionMarginInfoLineModule,
72490
+ TransactionPlanningLineModule,
72491
+ ObserveVisibilityModule,
72492
+ ScreenConfigurationModule,
72493
+ TransactionLineLabelModule,
72494
+ TransactionLineDirectSellButtonModule
72495
+ ],
72496
+ declarations: [
72497
+ TransactionCustomerPortalReturnLineComponent,
72498
+ ],
72499
+ exports: [
72500
+ TransactionCustomerPortalReturnLineComponent
72501
+ ]
72502
+ }]
72503
+ }] });
72504
+
72255
72505
  class TransactionLineModule {
72256
72506
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72257
72507
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: TransactionLineModule, declarations: [TransactionLineComponent], imports: [CommonModule,
@@ -72260,6 +72510,7 @@ class TransactionLineModule {
72260
72510
  TransactionPurchaseLineModule,
72261
72511
  TransactionGoodsAllocationLineModule,
72262
72512
  TransactionCustomerPortalLineModule,
72513
+ TransactionCustomerPortalReturnLineModule,
72263
72514
  TransactionOrderDeliveryLineModule,
72264
72515
  TransactionInvoiceLineModule,
72265
72516
  TransactionPickedLineModule,
@@ -72310,6 +72561,7 @@ class TransactionLineModule {
72310
72561
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderToBePicked }, TransactionToBePickedLineComponent],
72311
72562
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
72312
72563
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesCustomerPortal }, TransactionCustomerPortalLineComponent],
72564
+ [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesReturn }, TransactionCustomerPortalReturnLineComponent],
72313
72565
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderOverview }, TransactionOverviewLineComponent],
72314
72566
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderPurchase }, TransactionPurchaseLineComponent],
72315
72567
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderAllocation }, TransactionGoodsAllocationLineComponent],
@@ -72327,6 +72579,7 @@ class TransactionLineModule {
72327
72579
  TransactionPurchaseLineModule,
72328
72580
  TransactionGoodsAllocationLineModule,
72329
72581
  TransactionCustomerPortalLineModule,
72582
+ TransactionCustomerPortalReturnLineModule,
72330
72583
  TransactionOrderDeliveryLineModule,
72331
72584
  TransactionInvoiceLineModule,
72332
72585
  TransactionPickedLineModule,
@@ -72356,6 +72609,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
72356
72609
  TransactionPurchaseLineModule,
72357
72610
  TransactionGoodsAllocationLineModule,
72358
72611
  TransactionCustomerPortalLineModule,
72612
+ TransactionCustomerPortalReturnLineModule,
72359
72613
  TransactionOrderDeliveryLineModule,
72360
72614
  TransactionInvoiceLineModule,
72361
72615
  TransactionPickedLineModule,
@@ -72410,6 +72664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
72410
72664
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderToBePicked }, TransactionToBePickedLineComponent],
72411
72665
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
72412
72666
  [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesCustomerPortal }, TransactionCustomerPortalLineComponent],
72667
+ [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesReturn }, TransactionCustomerPortalReturnLineComponent],
72413
72668
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderOverview }, TransactionOverviewLineComponent],
72414
72669
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderPurchase }, TransactionPurchaseLineComponent],
72415
72670
  [{ type: TransactionKind.InternalDelivery, category: TransactionTypeCategory.InterbranchOrderAllocation }, TransactionGoodsAllocationLineComponent],
@@ -86251,6 +86506,7 @@ class TransactionInternalComponent {
86251
86506
  }
86252
86507
  async handleSaveForm(formResponse) {
86253
86508
  let response = await this._transactionConnectorService.upsertTransactionLineFormResponse(this.transactionHeaderService.transaction.transactionInfo.uuid, this.lineUUID, formResponse);
86509
+ this._transactionEventService.saveFormResponse.next({ lineUUID: this.lineUUID, formResponseId: response.transactionLines.find(line => line.uuid === this.lineUUID).formResponseId });
86254
86510
  this._changeDetector.detectChanges();
86255
86511
  }
86256
86512
  _handleCloseSalesPersonInput() {