@colijnit/transaction 262.1.59 → 262.1.60
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.
|
@@ -360,8 +360,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
360
360
|
class Version {
|
|
361
361
|
name = "@colijnit/transaction";
|
|
362
362
|
description = "Colijn IT transaction package";
|
|
363
|
-
symVer = "262.1.
|
|
364
|
-
publishDate = "
|
|
363
|
+
symVer = "262.1.60";
|
|
364
|
+
publishDate = "19-10-2026, 17:48:51";
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -3225,7 +3225,7 @@ class TransactionConnectorAdapterService {
|
|
|
3225
3225
|
resolve(true);
|
|
3226
3226
|
}
|
|
3227
3227
|
else {
|
|
3228
|
-
this._handleExceptionFromResponse(result);
|
|
3228
|
+
this._handleExceptionFromResponse(result, false);
|
|
3229
3229
|
reject(null);
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
@@ -7939,8 +7939,12 @@ class TransactionConnectorAdapterService {
|
|
|
7939
7939
|
};
|
|
7940
7940
|
}
|
|
7941
7941
|
}
|
|
7942
|
-
_handleExceptionFromResponse(result) {
|
|
7943
|
-
|
|
7942
|
+
_handleExceptionFromResponse(result, requestLockReset = true) {
|
|
7943
|
+
//We normally wish to reset locks, aka a perform rollback, after a backend call fails.
|
|
7944
|
+
//There are exceptions however, like when the exception originates from a failed rollback.
|
|
7945
|
+
if (requestLockReset) {
|
|
7946
|
+
this._transactionEventService.lockResetRequested.next();
|
|
7947
|
+
}
|
|
7944
7948
|
this._errorService.showValidationError(result);
|
|
7945
7949
|
}
|
|
7946
7950
|
_handleMessageFromSuccessResponse(result) {
|
|
@@ -10097,7 +10101,11 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10097
10101
|
this.relationService = relationService;
|
|
10098
10102
|
this.sharedService = sharedService;
|
|
10099
10103
|
this._subs.push(this.transactionEventService.lockResetRequested.subscribe(() => {
|
|
10100
|
-
|
|
10104
|
+
//Normally when a backend call fails, we want to rollback and release the locks on the transaction/relation/etc we tried to alter.
|
|
10105
|
+
//This is not the case when we are working in the transaction header menu, which either commits or requests a rollback upon close.
|
|
10106
|
+
if (!this.transactionDialogOpen && this.autoSave) {
|
|
10107
|
+
this.rollback();
|
|
10108
|
+
}
|
|
10101
10109
|
}), this.transactionEventService.headerReadOnlyChange.subscribe((readOnly) => {
|
|
10102
10110
|
this.headerReadonly = readOnly !== undefined ? readOnly : false;
|
|
10103
10111
|
}));
|