@colijnit/transaction 300.1.40 → 300.1.41
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.
|
@@ -364,8 +364,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
364
364
|
class Version {
|
|
365
365
|
name = "@colijnit/transaction";
|
|
366
366
|
description = "Colijn IT transaction package";
|
|
367
|
-
symVer = "300.1.
|
|
368
|
-
publishDate = "
|
|
367
|
+
symVer = "300.1.41";
|
|
368
|
+
publishDate = "19-10-2026, 17:41:06";
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -3260,7 +3260,7 @@ class TransactionConnectorAdapterService {
|
|
|
3260
3260
|
resolve(true);
|
|
3261
3261
|
}
|
|
3262
3262
|
else {
|
|
3263
|
-
this._handleExceptionFromResponse(result);
|
|
3263
|
+
this._handleExceptionFromResponse(result, false);
|
|
3264
3264
|
reject(null);
|
|
3265
3265
|
}
|
|
3266
3266
|
});
|
|
@@ -8116,8 +8116,12 @@ class TransactionConnectorAdapterService {
|
|
|
8116
8116
|
this._handleExceptionFromResponse({ message: 'Failed to download zip file' });
|
|
8117
8117
|
}
|
|
8118
8118
|
}
|
|
8119
|
-
_handleExceptionFromResponse(result) {
|
|
8120
|
-
|
|
8119
|
+
_handleExceptionFromResponse(result, requestLockReset = true) {
|
|
8120
|
+
//We normally wish to reset locks, aka a perform rollback, after a backend call fails.
|
|
8121
|
+
//There are exceptions however, like when the exception originates from a failed rollback.
|
|
8122
|
+
if (requestLockReset) {
|
|
8123
|
+
this._transactionEventService.lockResetRequested.next();
|
|
8124
|
+
}
|
|
8121
8125
|
this._errorService.showValidationError(result);
|
|
8122
8126
|
}
|
|
8123
8127
|
_handleMessageFromSuccessResponse(result) {
|
|
@@ -10325,7 +10329,11 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10325
10329
|
this.relationService = relationService;
|
|
10326
10330
|
this.sharedService = sharedService;
|
|
10327
10331
|
this._subs.push(this.transactionEventService.lockResetRequested.subscribe(() => {
|
|
10328
|
-
|
|
10332
|
+
//Normally when a backend call fails, we want to rollback and release the locks on the transaction/relation/etc we tried to alter.
|
|
10333
|
+
//This is not the case when we are working in the transaction header menu, which either commits or requests a rollback upon close.
|
|
10334
|
+
if (!this.transactionDialogOpen && this.autoSave) {
|
|
10335
|
+
this.rollback();
|
|
10336
|
+
}
|
|
10329
10337
|
}), this.transactionEventService.headerReadOnlyChange.subscribe((readOnly) => {
|
|
10330
10338
|
this.headerReadonly = readOnly !== undefined ? readOnly : false;
|
|
10331
10339
|
}));
|