@colijnit/transaction 261.20.67 → 261.20.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -354,8 +354,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
354
354
|
class Version {
|
|
355
355
|
name = "@colijnit/transaction";
|
|
356
356
|
description = "Colijn IT transaction package";
|
|
357
|
-
symVer = "261.20.
|
|
358
|
-
publishDate = "
|
|
357
|
+
symVer = "261.20.68";
|
|
358
|
+
publishDate = "25-8-2026, 13:43:33";
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -14343,13 +14343,15 @@ class TransactionBaseComponent {
|
|
|
14343
14343
|
ngOnDestroy() {
|
|
14344
14344
|
}
|
|
14345
14345
|
handleCommit = async (value) => {
|
|
14346
|
-
if (this.readonly || this.forceReadonly) {
|
|
14346
|
+
if (this.readonly || this.forceReadonly || this.committing) {
|
|
14347
14347
|
return;
|
|
14348
14348
|
}
|
|
14349
14349
|
if (await this.lockTransaction()) {
|
|
14350
14350
|
this.committing = true;
|
|
14351
|
+
this.detectChanges();
|
|
14351
14352
|
const response = await this.commit(value);
|
|
14352
14353
|
this.committing = false;
|
|
14354
|
+
this.detectChanges();
|
|
14353
14355
|
return response;
|
|
14354
14356
|
}
|
|
14355
14357
|
else {
|
|
@@ -53494,7 +53496,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53494
53496
|
if (!this.transactionLine.orderLineSetCode) {
|
|
53495
53497
|
//We are now allowed to actually add new lines to a composition.
|
|
53496
53498
|
//If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
|
|
53497
|
-
return isNaN(this.orderLineSetService.currentCompositionId);
|
|
53499
|
+
return (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null);
|
|
53498
53500
|
}
|
|
53499
53501
|
if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
|
|
53500
53502
|
return true;
|
|
@@ -53505,7 +53507,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53505
53507
|
return false;
|
|
53506
53508
|
}
|
|
53507
53509
|
checkboxValue() {
|
|
53508
|
-
if (isNaN(this.orderLineSetService.currentCompositionId)) {
|
|
53510
|
+
if (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null) {
|
|
53509
53511
|
return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
|
|
53510
53512
|
}
|
|
53511
53513
|
else {
|
|
@@ -53543,7 +53545,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53543
53545
|
[isFirst]="isFirst"
|
|
53544
53546
|
[checkbox]="canShowCheckbox()"
|
|
53545
53547
|
[checkboxValue]="checkboxValue()"
|
|
53546
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
53548
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
53547
53549
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
53548
53550
|
<ng-container *ngIf="transactionLine.isArticle">
|
|
53549
53551
|
<div class="transaction-line-wrapper">
|
|
@@ -53654,7 +53656,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
53654
53656
|
[isFirst]="isFirst"
|
|
53655
53657
|
[checkbox]="canShowCheckbox()"
|
|
53656
53658
|
[checkboxValue]="checkboxValue()"
|
|
53657
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
53659
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
53658
53660
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
53659
53661
|
<ng-container *ngIf="transactionLine.isArticle">
|
|
53660
53662
|
<div class="transaction-line-wrapper">
|
|
@@ -62479,7 +62481,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62479
62481
|
if (!this.transactionLine.orderLineSetCode) {
|
|
62480
62482
|
//We are now allowed to actually add new lines to a composition.
|
|
62481
62483
|
//If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
|
|
62482
|
-
return isNaN(this.orderLineSetService.currentCompositionId);
|
|
62484
|
+
return (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null);
|
|
62483
62485
|
}
|
|
62484
62486
|
if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
|
|
62485
62487
|
return true;
|
|
@@ -62490,7 +62492,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62490
62492
|
return false;
|
|
62491
62493
|
}
|
|
62492
62494
|
checkboxValue() {
|
|
62493
|
-
if (isNaN(this.orderLineSetService.currentCompositionId)) {
|
|
62495
|
+
if (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null) {
|
|
62494
62496
|
return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
|
|
62495
62497
|
}
|
|
62496
62498
|
else {
|
|
@@ -62525,7 +62527,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62525
62527
|
[selected]="selected"
|
|
62526
62528
|
[checkbox]="canShowCheckbox()"
|
|
62527
62529
|
[checkboxValue]="checkboxValue()"
|
|
62528
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
62530
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
62529
62531
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
62530
62532
|
@if (transactionLine.isArticle && !preview) {
|
|
62531
62533
|
<div class="transaction-line-wrapper">
|
|
@@ -62589,7 +62591,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
62589
62591
|
[selected]="selected"
|
|
62590
62592
|
[checkbox]="canShowCheckbox()"
|
|
62591
62593
|
[checkboxValue]="checkboxValue()"
|
|
62592
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
62594
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
62593
62595
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
62594
62596
|
@if (transactionLine.isArticle && !preview) {
|
|
62595
62597
|
<div class="transaction-line-wrapper">
|