@colijnit/transaction 257.1.89 → 257.1.90

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.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "257.1.89";
37
- this.publishDate = "15-8-2025 00:31:57";
36
+ this.symVer = "257.1.90";
37
+ this.publishDate = "15/08/2025, 17:14:48";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -15961,7 +15961,9 @@
15961
15961
  var PendingReasonService = /** @class */ (function (_super) {
15962
15962
  __extends(PendingReasonService, _super);
15963
15963
  function PendingReasonService() {
15964
- return _super !== null && _super.apply(this, arguments) || this;
15964
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
15965
+ _this.shouldDeletePurchaseOrder = false;
15966
+ return _this;
15965
15967
  }
15966
15968
  PendingReasonService.prototype.cancelAddTransactionLine = function (lineUuid) {
15967
15969
  return __awaiter(this, void 0, void 0, function () {
@@ -16014,8 +16016,11 @@
16014
16016
  i++;
16015
16017
  return [3 /*break*/, 1];
16016
16018
  case 5:
16019
+ if (this.shouldDeletePurchaseOrder) {
16020
+ return [2 /*return*/, success];
16021
+ }
16017
16022
  hasPendingReasons = response.headerOperationStatuses.filter(function (los) { return los.pendingReason !== "REASON_NONE"; }).length > 0;
16018
- if (!(!hasPendingReasons && this.transactionKind !== transactionKind_enum.TransactionKind.PurchaseOrder)) return [3 /*break*/, 8];
16023
+ if (!!hasPendingReasons) return [3 /*break*/, 8];
16019
16024
  if (!((this.autoSave && saveTransaction && !this.manualSaveParam) || overrideSave)) return [3 /*break*/, 6];
16020
16025
  return [2 /*return*/, this.saveTransactionAndCommit(response)];
16021
16026
  case 6: // just replace transaction object
@@ -16192,7 +16197,8 @@
16192
16197
  case 1:
16193
16198
  response = _a.sent();
16194
16199
  // this.rememberCurrentTransaction(response);
16195
- return [2 /*return*/, this.handleHeaderOperationStatuses(response, false)];
16200
+ this.shouldDeletePurchaseOrder = true;
16201
+ return [2 /*return*/, this.handleHeaderOperationStatuses(response)];
16196
16202
  }
16197
16203
  });
16198
16204
  });