@colijnit/transaction 262.1.34 → 262.1.36

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.
@@ -355,8 +355,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
355
355
  class Version {
356
356
  name = "@colijnit/transaction";
357
357
  description = "Colijn IT transaction package";
358
- symVer = "262.1.34";
359
- publishDate = "12-8-2026, 17:57:07";
358
+ symVer = "262.1.36";
359
+ publishDate = "18-8-2026, 18:05:53";
360
360
  }
361
361
 
362
362
  class CheckoutModuleService extends BaseModuleService {
@@ -1946,6 +1946,7 @@ class TransactionEventService {
1946
1946
  selectAllOrderLinesForReserveGoods = new Subject();
1947
1947
  selectAllOrderLinesForOrderingStickers = new Subject();
1948
1948
  setColliStickerAmount = new Subject();
1949
+ setNoStickerForCC0 = new Subject();
1949
1950
  globalReceiveLocationSet = new Subject();
1950
1951
  updatingSalesOrderGeneratePurchaseOrders = new Subject();
1951
1952
  updatingSalesOrderConfirmation = new Subject();
@@ -14329,6 +14330,7 @@ var TransactionCfgName;
14329
14330
  TransactionCfgName["StickerAmount"] = "stickerAmount";
14330
14331
  TransactionCfgName["CollieAmount"] = "collieAmount";
14331
14332
  TransactionCfgName["ReservedAmount"] = "reservedAmount";
14333
+ TransactionCfgName["NoCC0ForReserveStickers"] = "noCC0ForReserveStickers";
14332
14334
  TransactionCfgName["OrderedAmount"] = "orderedAmount";
14333
14335
  TransactionCfgName["LineWarehouseLocationReceived"] = "lineWarehouseLocationReceived";
14334
14336
  /* Invoice_check rubric */
@@ -15552,7 +15554,7 @@ class TransactionLineBaseComponent extends TransactionBaseComponent {
15552
15554
  }
15553
15555
  }
15554
15556
  addLineTooltipMessage(message) {
15555
- if (this.lineTooltipMessages.indexOf(message) < 0) {
15557
+ if (this.lineTooltipMessages.indexOf(`<i>${message}</i>`) < 0) {
15556
15558
  this.lineTooltipMessages.push(`<i>${message}</i>`);
15557
15559
  this.prepareTooltipMessage();
15558
15560
  }
@@ -35145,6 +35147,7 @@ class TransactionPaymentService {
35145
35147
  const pinStatus = await this._paymentConnectorService.getPspTransactionStatus(pspTransactionUuid);
35146
35148
  if (pinStatus && pinStatus.status) {
35147
35149
  if (pinStatus.status.code === IonePaymentStatusCode.PENDING || pinStatus.status.code === IonePaymentStatusCode.INIT && pinStatus.paymentUrl.length > 0) {
35150
+ this.paymentUrl = pinStatus.paymentUrl;
35148
35151
  this.showPspActions = true;
35149
35152
  }
35150
35153
  this.statusMessage = pinStatus.status.description;
@@ -80237,17 +80240,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
80237
80240
  class TransactionReserveGoodsLineBaseComponent extends TransactionLineBaseComponent {
80238
80241
  icons = Icon;
80239
80242
  transactionTypeCategory = TransactionTypeCategory;
80243
+ noStickerForCC0;
80240
80244
  _subscriptions = [];
80241
80245
  async ngOnInit() {
80242
80246
  super.ngOnInit();
80243
80247
  this.expanded = false;
80244
80248
  this._subscriptions.push(this.transactionEventService.selectAllOrderLinesForReserveGoods.subscribe((value) => {
80245
- this.selected = value;
80249
+ this.selected = this.noStickerForCC0 ? (this.transactionLine.commissionCode !== '0' && value) : value;
80246
80250
  this.detectChanges();
80247
80251
  }), this.transactionEventService.transactionLineChanged.subscribe((transLine) => {
80248
80252
  if (transLine.lineNr === this.transactionLine.lineNr) {
80249
80253
  this._handleTransactionLineSet(transLine);
80250
80254
  }
80255
+ }), this.transactionEventService.setNoStickerForCC0.subscribe((noStickerForCC0) => {
80256
+ this.noStickerForCC0 = noStickerForCC0;
80257
+ if (this.noStickerForCC0 && this.transactionLine.commissionCode === '0') {
80258
+ this.transactionLine.selected = false;
80259
+ }
80260
+ this.changeDetector.detectChanges();
80261
+ }), this.screenConfigService.configSet.subscribe((configObjects) => {
80262
+ if (this.screenConfigService.getObjectConfigurationFor(this.cfgNames.NoCC0ForReserveStickers)) {
80263
+ this.noStickerForCC0 = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.NoCC0ForReserveStickers).getDefaultBooleanValue();
80264
+ }
80251
80265
  }));
80252
80266
  }
80253
80267
  ngOnDestroy() {
@@ -80322,7 +80336,7 @@ class TransactionReserveGoodsLineComponent extends TransactionReserveGoodsLineBa
80322
80336
  [transactionLine]="transactionLine"
80323
80337
  [preview]="preview"
80324
80338
  [isFirst]="isFirst"
80325
- [checkbox]="true"
80339
+ [checkbox]="(noStickerForCC0 ? transactionLine.commissionCode !== '0' : true)"
80326
80340
  [checkboxValue]="transactionLine.selected"
80327
80341
  (checkboxValueChanged)="transactionLine.selected = $event"
80328
80342
  >
@@ -80411,7 +80425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
80411
80425
  [transactionLine]="transactionLine"
80412
80426
  [preview]="preview"
80413
80427
  [isFirst]="isFirst"
80414
- [checkbox]="true"
80428
+ [checkbox]="(noStickerForCC0 ? transactionLine.commissionCode !== '0' : true)"
80415
80429
  [checkboxValue]="transactionLine.selected"
80416
80430
  (checkboxValueChanged)="transactionLine.selected = $event"
80417
80431
  >
@@ -94402,6 +94416,7 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94402
94416
  dialogService;
94403
94417
  relationService;
94404
94418
  icons = Icon;
94419
+ cfgNames = TransactionCfgName;
94405
94420
  showClass() {
94406
94421
  return true;
94407
94422
  }
@@ -94410,6 +94425,7 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94410
94425
  reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
94411
94426
  reportDocumentPdfRequest = new ReportingDocumentPdfBaseRequest();
94412
94427
  reportDocumentCombinedRequest = new PrintPurchaseOrderForTransactionOrderWithoutLinesRequest();
94428
+ noCC0ForReserveStickers = false;
94413
94429
  layoutCode = LayoutCode.ReserveSticker;
94414
94430
  _subs = [];
94415
94431
  constructor(searchService, transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, transactionService, imageService, dictionaryService, changeDetector, dialogService, relationService) {
@@ -94428,7 +94444,11 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94428
94444
  }
94429
94445
  ngOnInit() {
94430
94446
  super.ngOnInit();
94431
- this._subs.push();
94447
+ this._subs.push(this.screenConfigService.configSet.subscribe((configObjects) => {
94448
+ if (this.screenConfigService.getObjectConfigurationFor(this.cfgNames.NoCC0ForReserveStickers)) {
94449
+ this.noCC0ForReserveStickers = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.NoCC0ForReserveStickers).getDefaultBooleanValue();
94450
+ }
94451
+ }));
94432
94452
  }
94433
94453
  ngOnDestroy() {
94434
94454
  this._subs.forEach(s => s.unsubscribe());
@@ -94437,6 +94457,10 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94437
94457
  handleSelectAllLines(value) {
94438
94458
  this.transactionEventService.selectAllOrderLinesForReserveGoods.next(value);
94439
94459
  }
94460
+ handleCCSelectionChanged(value) {
94461
+ this.noCC0ForReserveStickers = value;
94462
+ this.transactionEventService.setNoStickerForCC0.next(value);
94463
+ }
94440
94464
  openSendDialog() {
94441
94465
  this.showSendMethodDialog = true;
94442
94466
  }
@@ -94501,18 +94525,26 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94501
94525
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessReserveComponent, deps: [{ token: TransactionSearchService }, { token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionService }, { token: TransactionImageService }, { token: DictionaryService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: TransactionRelationService }], target: i0.ɵɵFactoryTarget.Component });
94502
94526
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessReserveComponent, isStandalone: false, selector: "co-transaction-quick-access-reserve", host: { properties: { "class.co-transaction-quick-access-reserve": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
94503
94527
  <div class="quick-access-content-wrapper">
94504
- <div class="select-all-wrapper">
94528
+ <div class="sub-section">
94529
+ <co-quick-send-button
94530
+ [defaultMethodIcon]="defaultSendMethodIcon"
94531
+ [showLoader]="showLoader"
94532
+ (sendIconClicked)="handleSend(defaultSendMethod)"
94533
+ (openSendMethodDialog)="openSendDialog()"
94534
+ ></co-quick-send-button>
94535
+ </div>
94536
+ <div class="sub-section">
94505
94537
  <co-input-checkbox
94506
94538
  [label]="'SELECT_ALL_LINES' | localize"
94507
94539
  (modelChange)="handleSelectAllLines($event)">
94508
94540
  </co-input-checkbox>
94541
+ <co-input-checkbox
94542
+ [label]="'NO_CC_STICKERS' | localize"
94543
+ [screenConfigurationObject]="cfgNames.NoCC0ForReserveStickers"
94544
+ [model]="noCC0ForReserveStickers"
94545
+ (modelChange)="handleCCSelectionChanged($event)">
94546
+ </co-input-checkbox>
94509
94547
  </div>
94510
- <co-quick-send-button
94511
- [defaultMethodIcon]="defaultSendMethodIcon"
94512
- [showLoader]="showLoader"
94513
- (sendIconClicked)="handleSend(defaultSendMethod)"
94514
- (openSendMethodDialog)="openSendDialog()"
94515
- ></co-quick-send-button>
94516
94548
  </div>
94517
94549
  @if (showSendMethodDialog) {
94518
94550
  <co-send-method-dialog
@@ -94533,7 +94565,7 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
94533
94565
  (okClick)="handleSendMethodOkClick($event)"
94534
94566
  ></co-send-method-dialog>
94535
94567
  }
94536
- `, isInline: true, dependencies: [{ kind: "component", type: i2.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "hideSignatureBtn", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { 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 });
94568
+ `, isInline: true, dependencies: [{ kind: "component", type: i2.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "hideSignatureBtn", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
94537
94569
  }
94538
94570
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessReserveComponent, decorators: [{
94539
94571
  type: Component,
@@ -94541,18 +94573,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
94541
94573
  selector: "co-transaction-quick-access-reserve",
94542
94574
  template: `
94543
94575
  <div class="quick-access-content-wrapper">
94544
- <div class="select-all-wrapper">
94576
+ <div class="sub-section">
94577
+ <co-quick-send-button
94578
+ [defaultMethodIcon]="defaultSendMethodIcon"
94579
+ [showLoader]="showLoader"
94580
+ (sendIconClicked)="handleSend(defaultSendMethod)"
94581
+ (openSendMethodDialog)="openSendDialog()"
94582
+ ></co-quick-send-button>
94583
+ </div>
94584
+ <div class="sub-section">
94545
94585
  <co-input-checkbox
94546
94586
  [label]="'SELECT_ALL_LINES' | localize"
94547
94587
  (modelChange)="handleSelectAllLines($event)">
94548
94588
  </co-input-checkbox>
94589
+ <co-input-checkbox
94590
+ [label]="'NO_CC_STICKERS' | localize"
94591
+ [screenConfigurationObject]="cfgNames.NoCC0ForReserveStickers"
94592
+ [model]="noCC0ForReserveStickers"
94593
+ (modelChange)="handleCCSelectionChanged($event)">
94594
+ </co-input-checkbox>
94549
94595
  </div>
94550
- <co-quick-send-button
94551
- [defaultMethodIcon]="defaultSendMethodIcon"
94552
- [showLoader]="showLoader"
94553
- (sendIconClicked)="handleSend(defaultSendMethod)"
94554
- (openSendMethodDialog)="openSendDialog()"
94555
- ></co-quick-send-button>
94556
94596
  </div>
94557
94597
  @if (showSendMethodDialog) {
94558
94598
  <co-send-method-dialog
@@ -94588,12 +94628,14 @@ class TransactionQuickAccessReserveModule {
94588
94628
  SendMethodDialogModule,
94589
94629
  PipeModule,
94590
94630
  QuickSendButtonModule,
94591
- InputCheckboxModule], exports: [TransactionQuickAccessReserveComponent] });
94631
+ InputCheckboxModule,
94632
+ ScreenConfigurationModule], exports: [TransactionQuickAccessReserveComponent] });
94592
94633
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessReserveModule, imports: [CommonModule,
94593
94634
  SendMethodDialogModule,
94594
94635
  PipeModule,
94595
94636
  QuickSendButtonModule,
94596
- InputCheckboxModule] });
94637
+ InputCheckboxModule,
94638
+ ScreenConfigurationModule] });
94597
94639
  }
94598
94640
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessReserveModule, decorators: [{
94599
94641
  type: NgModule,
@@ -94603,7 +94645,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
94603
94645
  SendMethodDialogModule,
94604
94646
  PipeModule,
94605
94647
  QuickSendButtonModule,
94606
- InputCheckboxModule
94648
+ InputCheckboxModule,
94649
+ ScreenConfigurationModule,
94607
94650
  ],
94608
94651
  declarations: [
94609
94652
  TransactionQuickAccessReserveComponent
@@ -108276,6 +108319,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
108276
108319
  }] });
108277
108320
 
108278
108321
  class TransactionCreateService extends TransactionService {
108322
+ // Override block. This service is never used when rubrics are needed and allowing it to set a rubric just causes issues with behavior subjects.
108323
+ set activeRubric(value) {
108324
+ }
108279
108325
  async createServiceOrderWithTransactionLine(transId, lineNr) {
108280
108326
  await this.checkBranch();
108281
108327
  return new Promise(async (resolve, reject) => {