@colijnit/transaction 262.1.37 → 262.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.
|
@@ -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.
|
|
359
|
-
publishDate = "
|
|
358
|
+
symVer = "262.1.38";
|
|
359
|
+
publishDate = "25-8-2026, 13:32:45";
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -14480,13 +14480,15 @@ class TransactionBaseComponent {
|
|
|
14480
14480
|
ngOnDestroy() {
|
|
14481
14481
|
}
|
|
14482
14482
|
handleCommit = async (value) => {
|
|
14483
|
-
if (this.readonly || this.forceReadonly) {
|
|
14483
|
+
if (this.readonly || this.forceReadonly || this.committing) {
|
|
14484
14484
|
return;
|
|
14485
14485
|
}
|
|
14486
14486
|
if (await this.lockTransaction()) {
|
|
14487
14487
|
this.committing = true;
|
|
14488
|
+
this.detectChanges();
|
|
14488
14489
|
const response = await this.commit(value);
|
|
14489
14490
|
this.committing = false;
|
|
14491
|
+
this.detectChanges();
|
|
14490
14492
|
return response;
|
|
14491
14493
|
}
|
|
14492
14494
|
else {
|
|
@@ -53819,7 +53821,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53819
53821
|
if (!this.transactionLine.orderLineSetCode) {
|
|
53820
53822
|
//We are now allowed to actually add new lines to a composition.
|
|
53821
53823
|
//If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
|
|
53822
|
-
return isNaN(this.orderLineSetService.currentCompositionId);
|
|
53824
|
+
return (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null);
|
|
53823
53825
|
}
|
|
53824
53826
|
if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
|
|
53825
53827
|
return true;
|
|
@@ -53830,7 +53832,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53830
53832
|
return false;
|
|
53831
53833
|
}
|
|
53832
53834
|
checkboxValue() {
|
|
53833
|
-
if (isNaN(this.orderLineSetService.currentCompositionId)) {
|
|
53835
|
+
if (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null) {
|
|
53834
53836
|
return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
|
|
53835
53837
|
}
|
|
53836
53838
|
else {
|
|
@@ -53868,7 +53870,7 @@ class TransactionOverviewLineComponent extends TransactionLineBaseComponent {
|
|
|
53868
53870
|
[isFirst]="isFirst"
|
|
53869
53871
|
[checkbox]="canShowCheckbox()"
|
|
53870
53872
|
[checkboxValue]="checkboxValue()"
|
|
53871
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
53873
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
53872
53874
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
53873
53875
|
<ng-container *ngIf="transactionLine.isArticle">
|
|
53874
53876
|
<div class="transaction-line-wrapper">
|
|
@@ -53979,7 +53981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
53979
53981
|
[isFirst]="isFirst"
|
|
53980
53982
|
[checkbox]="canShowCheckbox()"
|
|
53981
53983
|
[checkboxValue]="checkboxValue()"
|
|
53982
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
53984
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
53983
53985
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
53984
53986
|
<ng-container *ngIf="transactionLine.isArticle">
|
|
53985
53987
|
<div class="transaction-line-wrapper">
|
|
@@ -62804,7 +62806,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62804
62806
|
if (!this.transactionLine.orderLineSetCode) {
|
|
62805
62807
|
//We are now allowed to actually add new lines to a composition.
|
|
62806
62808
|
//If we're looking at members of a composition set don't show a checkbox for lines we can't add anyway.
|
|
62807
|
-
return isNaN(this.orderLineSetService.currentCompositionId);
|
|
62809
|
+
return (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null);
|
|
62808
62810
|
}
|
|
62809
62811
|
if (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode) {
|
|
62810
62812
|
return true;
|
|
@@ -62815,7 +62817,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62815
62817
|
return false;
|
|
62816
62818
|
}
|
|
62817
62819
|
checkboxValue() {
|
|
62818
|
-
if (isNaN(this.orderLineSetService.currentCompositionId)) {
|
|
62820
|
+
if (isNaN(this.orderLineSetService.currentCompositionId) || this.orderLineSetService.currentCompositionId === null) {
|
|
62819
62821
|
return (this.orderLineSetService.currentOrderLineSetCode === this.transactionLine.orderLineSetCode);
|
|
62820
62822
|
}
|
|
62821
62823
|
else {
|
|
@@ -62850,7 +62852,7 @@ class TransactionSalesOrderQuotationLineComponent extends TransactionLineBaseCom
|
|
|
62850
62852
|
[selected]="selected"
|
|
62851
62853
|
[checkbox]="canShowCheckbox()"
|
|
62852
62854
|
[checkboxValue]="checkboxValue()"
|
|
62853
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
62855
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
62854
62856
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
62855
62857
|
@if (transactionLine.isArticle && !preview) {
|
|
62856
62858
|
<div class="transaction-line-wrapper">
|
|
@@ -62914,7 +62916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
62914
62916
|
[selected]="selected"
|
|
62915
62917
|
[checkbox]="canShowCheckbox()"
|
|
62916
62918
|
[checkboxValue]="checkboxValue()"
|
|
62917
|
-
[checkboxReadonly]="!isNaN(orderLineSetService.currentCompositionId)"
|
|
62919
|
+
[checkboxReadonly]="(!isNaN(orderLineSetService.currentCompositionId) && orderLineSetService.currentCompositionId !== null)"
|
|
62918
62920
|
(checkboxValueChanged)="handleCheckBoxValueChanged($event)">
|
|
62919
62921
|
@if (transactionLine.isArticle && !preview) {
|
|
62920
62922
|
<div class="transaction-line-wrapper">
|