@colijnit/transaction 258.1.9 → 258.1.10

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 = "258.1.9";
37
- this.publishDate = "1-5-2025 17:31:11";
36
+ this.symVer = "258.1.10";
37
+ this.publishDate = "04/05/2025, 13:20:27";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -35375,6 +35375,7 @@
35375
35375
  _this.forceReadonly = false;
35376
35376
  _this.localAmount = 0;
35377
35377
  _this.isReturn = false;
35378
+ _this.isImportFromCatalog = false;
35378
35379
  _this.commit = function (amount) { return __awaiter(_this, void 0, void 0, function () {
35379
35380
  var oldAmount, success;
35380
35381
  return __generator(this, function (_a) {
@@ -35409,18 +35410,46 @@
35409
35410
  if (this.transactionLine && this.transactionLine.isArticle) {
35410
35411
  this.localAmount = this.transactionLine.amount;
35411
35412
  this.isReturn = this.localAmount < 0;
35413
+ this._setIsImportFromExternalCatalog();
35412
35414
  this.detectChanges();
35413
35415
  }
35414
35416
  return [2 /*return*/];
35415
35417
  });
35416
35418
  });
35417
35419
  };
35420
+ TransactionLineAmountComponent.prototype.transactionInfoSet = function () {
35421
+ var _super = Object.create(null, {
35422
+ transactionInfoSet: { get: function () { return _super_1.prototype.transactionInfoSet; } }
35423
+ });
35424
+ return __awaiter(this, void 0, void 0, function () {
35425
+ return __generator(this, function (_a) {
35426
+ _super.transactionInfoSet.call(this);
35427
+ this._setIsImportFromExternalCatalog();
35428
+ return [2 /*return*/];
35429
+ });
35430
+ });
35431
+ };
35432
+ TransactionLineAmountComponent.prototype._setIsImportFromExternalCatalog = function () {
35433
+ var _this = this;
35434
+ if (this.transactionLine && this.orderLineSets && this.orderLineSets.length > 0) {
35435
+ var orderLineSet = this.orderLineSets.find(function (o) { return o.orderLineSetCode = _this.transactionLine.orderLineSetCode; });
35436
+ if (orderLineSet.aupOrderNr || orderLineSet.aupShoppingCartId || orderLineSet.vdProjectId || orderLineSet.wtProjectNr || orderLineSet.hdVariantId) {
35437
+ this.isImportFromCatalog = true;
35438
+ }
35439
+ else {
35440
+ this.isImportFromCatalog = false;
35441
+ }
35442
+ }
35443
+ else {
35444
+ this.isImportFromCatalog = false;
35445
+ }
35446
+ };
35418
35447
  return TransactionLineAmountComponent;
35419
35448
  }(TransactionLineBaseComponent));
35420
35449
  TransactionLineAmountComponent.decorators = [
35421
35450
  { type: i0.Component, args: [{
35422
35451
  selector: "co-transaction-line-amount",
35423
- template: "\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [hidden]=\"hidden\"\n [min]=\"isReturn ? null : 0\"\n [max]=\"isReturn ? -1 : null\"\n [model]=\"localAmount\"\n [decimals]=\"decimals\"\n [readonly]=\"readonly || committing || forceReadonly\"\n (modelChange)=\"handleCommit($event)\">\n </co-input-number-picker>\n </div>\n ",
35452
+ template: "\n <div class=\"inside-field\">\n <co-transaction-line-label *ngIf=\"inputLabel\" [insideLabel]=\"'QUANTITY'\"></co-transaction-line-label>\n <co-input-number-picker class=\"amount-number-picker\"\n [hidden]=\"hidden\"\n [min]=\"isReturn ? null : 0\"\n [max]=\"isReturn ? -1 : null\"\n [model]=\"localAmount\"\n [decimals]=\"decimals\"\n [readonly]=\"readonly || committing || forceReadonly || isImportFromCatalog\"\n (modelChange)=\"handleCommit($event)\">\n </co-input-number-picker>\n </div>\n ",
35424
35453
  providers: [{
35425
35454
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
35426
35455
  useExisting: i0.forwardRef(function () { return TransactionLineAmountComponent; })
@@ -44624,7 +44653,7 @@
44624
44653
  TransactionFilterHistoricStateComponent.decorators = [
44625
44654
  { type: i0.Component, args: [{
44626
44655
  selector: "co-transaction-filter-historic-state",
44627
- template: "\n <co-transaction-filter-item\n [placeholder]=\"label\"\n [collection]=\"states\"\n [model]=\"model\"\n [mode]=\"mode\"\n (collectionChange)=\"collectionChange.emit($event)\"\n (modelChange)=\"modelChange.emit($event)\">\n </co-transaction-filter-item>\n ",
44656
+ template: "\n <co-transaction-filter-item\n [placeholder]=\"label\"\n [collection]=\"states\"\n [(model)]=\"model\"\n [mode]=\"mode\"\n (collectionChange)=\"collectionChange.emit($event)\"\n (modelChange)=\"modelChange.emit($event)\">\n </co-transaction-filter-item>\n ",
44628
44657
  encapsulation: i0.ViewEncapsulation.None
44629
44658
  },] }
44630
44659
  ];