@colijnit/transaction 257.1.18 → 257.1.19

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.
Files changed (24) hide show
  1. package/bundles/colijnit-transaction.umd.js +141 -9
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-base.component.js +5 -2
  5. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-interbranch.component.js +100 -7
  6. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.js +5 -2
  7. package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.module.js +4 -3
  8. package/esm2015/lib/enum/icon.enum.js +3 -1
  9. package/esm2015/lib/model/icon-svg.js +3 -1
  10. package/esm2015/lib/service/transaction-connector-adapter.service.js +18 -1
  11. package/esm2015/lib/service/transaction-connector.service.js +6 -1
  12. package/esm2015/lib/service/transaction.service.js +11 -1
  13. package/esm2015/lib/transaction-version.js +3 -3
  14. package/fesm2015/colijnit-transaction.js +142 -10
  15. package/fesm2015/colijnit-transaction.js.map +1 -1
  16. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-base.component.d.ts +2 -0
  17. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-interbranch.component.d.ts +28 -1
  18. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-transaction-line-warehouse-cc.component.d.ts +1 -0
  19. package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/style/_layout.scss +11 -0
  20. package/lib/enum/icon.enum.d.ts +2 -0
  21. package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
  22. package/lib/service/transaction-connector.service.d.ts +1 -0
  23. package/lib/service/transaction.service.d.ts +1 -0
  24. package/package.json +2 -2
@@ -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.18";
37
- this.publishDate = "27-2-2025 19:34:41";
36
+ this.symVer = "257.1.19";
37
+ this.publishDate = "27-2-2025 20:47:38";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -888,6 +888,8 @@
888
888
  Icon["RegularTruckMovingCircleExclamation"] = "regular_truck_moving_circle_exclamation";
889
889
  Icon["RegularTruckMovingCircleUser"] = "regular_truck_moving_circle_user";
890
890
  Icon["RegularTruckMovingClock"] = "regular_truck_moving_clock";
891
+ Icon["RegularWarehouseCircleArrowLeft"] = "regular_warehouse_circle_arrow_left";
892
+ Icon["RegularWarehouseCircleArrowRight"] = "regular_warehouse_circle_arrow_right";
891
893
  Icon["RegularWarehouseClock"] = "regular_warehouse_clock";
892
894
  Icon["Remark"] = "remark";
893
895
  Icon["Resize"] = "resize";
@@ -1047,6 +1049,8 @@
1047
1049
  "regular_truck_moving_circle_exclamation": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M72 80c-13.3 0-24 10.7-24 24c0 74.2 0 148.5 0 222.7c9.8-4.3 20.6-6.7 32-6.7c26.2 0 49.4 12.6 64 32c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32c16.2 0 32.5 0 48.7 0c-.5 5.3-.7 10.6-.7 16c0 10.9 1 21.6 2.9 32c-11.6 0-23.3 0-34.9 0c0 44.2-35.8 80-80 80c-26.2 0-49.4-12.6-64-32c-14.6 19.4-37.8 32-64 32c-44.2 0-80-35.8-80-80c0-16 0-32 0-48s0-32 0-48c0-66.7 0-133.3 0-200C0 64.2 32.2 32 72 32c112 0 224 0 336 0c39.8 0 72 32.2 72 72c0 13.3 0 26.7 0 40c16.3 0 32.5 0 48.8 0c16.8 0 32.7 7.5 43.3 20.5c19.6 24 39.3 47.9 58.9 71.9c5.8 7.1 9 16.1 9 25.3c0 1.7 0 3.4 0 5.1c-24.4-34.6-61-60.1-103.5-70.1c-.5-.6-1-1.2-1.5-1.8c-1.5-1.9-3.8-2.9-6.2-2.9c-10.9 0-21.9 0-32.8 0c-5.3 0-10.7 0-16 0c0 .2 0 .5 0 .7c-16.8 1.5-32.9 5.4-48 11.3c0-33.3 0-66.7 0-100c0-13.3-10.7-24-24-24c-112 0-224 0-336 0zM240 400c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM80 432c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm560-64c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 416c-13.3 0-24 10.7-24 24s10.7 24 24 24s24-10.7 24-24s-10.7-24-24-24zm16-128c0-8.8-7.2-16-16-16s-16 7.2-16 16c0 26.7 0 53.3 0 80c0 8.8 7.2 16 16 16s16-7.2 16-16c0-26.7 0-53.3 0-80z\"/></svg>",
1048
1050
  "regular_truck_moving_circle_user": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M72 80c-13.3 0-24 10.7-24 24c0 74.2 0 148.5 0 222.7c9.8-4.3 20.6-6.7 32-6.7c26.2 0 49.4 12.6 64 32c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32c16.2 0 32.5 0 48.7 0c-.5 5.3-.7 10.6-.7 16c0 10.9 1 21.6 2.9 32c-11.6 0-23.3 0-34.9 0c0 44.2-35.8 80-80 80c-26.2 0-49.4-12.6-64-32c-14.6 19.4-37.8 32-64 32c-44.2 0-80-35.8-80-80c0-16 0-32 0-48s0-32 0-48c0-66.7 0-133.3 0-200C0 64.2 32.2 32 72 32c112 0 224 0 336 0c39.8 0 72 32.2 72 72c0 13.3 0 26.7 0 40c16.3 0 32.5 0 48.8 0c16.8 0 32.7 7.5 43.3 20.5c19.6 24 39.3 47.9 58.9 71.9c5.8 7.1 9 16.1 9 25.3c0 1.7 0 3.4 0 5.1c-24.4-34.6-61-60.1-103.5-70.1c-.5-.6-1-1.2-1.5-1.8c-1.5-1.9-3.8-2.9-6.2-2.9c-10.9 0-21.9 0-32.8 0c-5.3 0-10.7 0-16 0c0 .2 0 .5 0 .7c-16.8 1.5-32.9 5.4-48 11.3c0-33.3 0-66.7 0-100c0-13.3-10.7-24-24-24c-112 0-224 0-336 0zM240 400c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM80 432c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm272-64c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zM496 480c30.2 0 57.5-11.9 77.7-31.3c-6.2-19-24-32.7-45.1-32.7c-21.7 0-43.5 0-65.2 0c-21 0-38.9 13.7-45.1 32.7C438.5 468.1 465.8 480 496 480zm0-96c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48s21.5 48 48 48z\"/></svg>",
1049
1051
  "regular_truck_moving_clock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 104C0 64.2 32.2 32 72 32l336 0c39.8 0 72 32.2 72 72l0 40 48.8 0c16.8 0 32.7 7.5 43.3 20.5L631 236.4c5.8 7.1 9 16.1 9 25.3l0 5.1c-24.4-34.6-61-60.1-103.5-70.1l-1.5-1.8c-1.5-1.9-3.8-2.9-6.2-2.9L496 192l-16 0 0 .7c-16.8 1.5-32.9 5.4-48 11.3l0-100c0-13.3-10.7-24-24-24L72 80c-13.3 0-24 10.7-24 24l0 222.7c9.8-4.3 20.6-6.7 32-6.7c26.2 0 49.4 12.6 64 32c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32l48.7 0c-.5 5.3-.7 10.6-.7 16c0 10.9 1 21.6 2.9 32L288 400c0 44.2-35.8 80-80 80c-26.2 0-49.4-12.6-64-32c-14.6 19.4-37.8 32-64 32c-44.2 0-80-35.8-80-80l0-48 0-48L0 104zM48 400c0 17.7 14.3 32 32 32s32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32zm128 0c0 17.7 14.3 32 32 32s32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32zm176-32c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zm128-64l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16z\"/></svg>",
1052
+ "regular_warehouse_circle_arrow_left": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 176.3c0-29.3 17.8-55.7 44.9-66.7L299 6.6c13.5-5.5 28.6-5.5 42.1 0l254 103c27.2 11 45 37.4 45 66.7l0 311.7c0 .7 0 1.5-.1 2.2l0-223.4c-12.9-18.3-29.2-34-47.9-46.2l0-44.3c0-9.8-5.9-18.6-15-22.2L323 51.1c-1.9-.8-4.1-.8-6 0L63 154.1c-9.1 3.7-15 12.5-15 22.2L48 488c0 13.3-10.7 24-24 24s-24-10.7-24-24L0 176.3zM96 232c0-22.1 17.9-40 40-40l360 0c-46.8 0-89.3 18.2-120.8 48L144 240l0 40 199.5 0c-8.5 14.8-15 30.9-19 48L144 328l0 48 176.2 0c.7 16.7 3.8 32.8 8.9 48L144 424l0 40 204.5 0c12.3 18.8 28 35.1 46.3 48l-274.5 0-.3 0c-13.3 0-24-10.7-24-24l0-256zm275.3 64c25.7-44.6 73.3-72 124.7-72s99 27.4 124.7 72s25.7 99.4 0 144S547.4 512 496 512s-99-27.4-124.7-72s-25.7-99.4 0-144zm49.4 60.7c-6.3 6.2-6.3 16.4 0 22.6c18.7 18.7 37.3 37.3 56 56c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L470.6 384l89.4 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-89.4 0 28.7-28.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0l-56 56zM496 192l8 0c2.5 0 4.9 .2 7.2 .7c-5-.4-10.1-.7-15.2-.7z\"/></svg>",
1053
+ "regular_warehouse_circle_arrow_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 176.3c0-29.3 17.8-55.7 44.9-66.7L299 6.6c13.5-5.5 28.6-5.5 42.1 0l254 103c27.2 11 45 37.4 45 66.7l0 311.7c0 .7 0 1.5-.1 2.2l0-223.4c-12.9-18.3-29.2-34-47.9-46.2l0-44.3c0-9.8-5.9-18.6-15-22.2L323 51.1c-1.9-.8-4.1-.8-6 0L63 154.1c-9.1 3.7-15 12.5-15 22.2L48 488c0 13.3-10.7 24-24 24s-24-10.7-24-24L0 176.3zM96 232c0-22.1 17.9-40 40-40l360 0c-46.8 0-89.3 18.2-120.8 48L144 240l0 40 199.5 0c-8.5 14.8-15 30.9-19 48L144 328l0 48 176.2 0c.7 16.7 3.8 32.8 8.9 48L144 424l0 40 204.5 0c12.3 18.8 28 35.1 46.3 48l-274.5 0-.3 0c-13.3 0-24-10.7-24-24l0-256zM352 368c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zm64 0c0 8.8 7.2 16 16 16l89.4 0-28.7 28.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l56-56c6.2-6.2 6.2-16.4 0-22.6l-56-56c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L521.4 352 432 352c-8.8 0-16 7.2-16 16zm80-176l8 0c2.5 0 4.9 .2 7.2 .7c-5-.4-10.1-.7-15.2-.7z\"/></svg>",
1050
1054
  "regular_warehouse_clock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 176.3c0-29.3 17.8-55.7 44.9-66.7L299 6.6c13.5-5.5 28.6-5.5 42.1 0l254 103c27.2 11 45 37.4 45 66.7L640 488l0-120 0-101.2c-12.9-18.3-29.2-34-48-46.3l0-44.2c0-9.8-5.9-18.6-15-22.2L323 51.1c-1.9-.8-4.1-.8-6 0L63 154.1c-9.1 3.7-15 12.5-15 22.2L48 488c0 13.3-10.7 24-24 24s-24-10.7-24-24L0 176.3zM96 232c0-22.1 17.9-40 40-40l360 0c-46.8 0-89.3 18.2-120.8 48L144 240l0 40 199.5 0c-8.5 14.8-15 30.9-19 48L144 328l0 48 176.2 0c.7 16.7 3.8 32.8 8.9 48L144 424l0 40 204.5 0c12.3 18.8 28 35.1 46.3 48l-274.5 0-.3 0c-13.3 0-24-10.7-24-24l0-256zM352 368c0-79.5 64.5-144 144-144s144 64.5 144 144s-64.5 144-144 144s-144-64.5-144-144zm128-64l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16s-16 7.2-16 16zm16-112l8 0c2.5 0 4.9 .2 7.2 .7c-5-.4-10.1-.7-15.2-.7z\"/></svg>",
1051
1055
  "remark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><path d=\"M15,.93C6.72,.93,0,5.83,0,11.89c0,2.12,.84,4.09,2.27,5.77h-.16c.16,.1,.28,.22,.43,.32,.4,.44,.86,.85,1.35,1.24,3.07,3.75,.06,8.71-3.25,9.84,5.79-1.34,9.31-3.89,10.9-6.53,1.11,.19,2.27,.31,3.46,.31,8.28,0,15-4.91,15-10.96S23.28,.93,15,.93Z\" fill=\"#484f60\"/></g></svg>",
1052
1056
  "resize": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 51 51\"><polygon points=\"1.1 49.9 1.1 30.6 7.8 37.3 37.3 8 30.6 1.3 49.9 1.3 49.9 20.6 43.2 13.9 13.7 43.2 20.5 49.9 1.1 49.9\" fill=\"#4d5050\"/></svg>",
@@ -4467,6 +4471,32 @@
4467
4471
  });
4468
4472
  });
4469
4473
  };
4474
+ TransactionConnectorAdapterService.prototype.changeTransactionLineInterBranchSourceWarehouse = function (uuid, lineUuid, interBranchSourceWarehouseNr) {
4475
+ return __awaiter(this, void 0, void 0, function () {
4476
+ var request, response;
4477
+ return __generator(this, function (_a) {
4478
+ switch (_a.label) {
4479
+ case 0:
4480
+ request = {
4481
+ transactionUuid: uuid,
4482
+ lineUuid: lineUuid,
4483
+ newInterBranchSourceWarehouseNr: interBranchSourceWarehouseNr
4484
+ };
4485
+ return [4 /*yield*/, this.connector.changeLineInterBranchSourceWarehouse(request)];
4486
+ case 1:
4487
+ response = _a.sent();
4488
+ if (response && response.validationResult && response.validationResult.success) {
4489
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, response.resultObject)];
4490
+ }
4491
+ else {
4492
+ this._handleExceptionFromResponse(response);
4493
+ return [2 /*return*/, null];
4494
+ }
4495
+ return [2 /*return*/];
4496
+ }
4497
+ });
4498
+ });
4499
+ };
4470
4500
  TransactionConnectorAdapterService.prototype.changeTransactionLinePrice = function (uuid, lineUuid, price) {
4471
4501
  return __awaiter(this, void 0, void 0, function () {
4472
4502
  var request, response;
@@ -10470,6 +10500,13 @@
10470
10500
  });
10471
10501
  });
10472
10502
  };
10503
+ TransactionConnectorService.prototype.changeTransactionLineInterBranchSourceWarehouse = function (uuid, lineUuid, interBranchSourceWarehouseNr) {
10504
+ return __awaiter(this, void 0, void 0, function () {
10505
+ return __generator(this, function (_a) {
10506
+ return [2 /*return*/, this._adapterService.functionCall(this._adapterService.changeTransactionLineInterBranchSourceWarehouse, [uuid, lineUuid, interBranchSourceWarehouseNr])];
10507
+ });
10508
+ });
10509
+ };
10473
10510
  TransactionConnectorService.prototype.changeTransactionLinePrice = function (uuid, lineUuid, price) {
10474
10511
  return __awaiter(this, void 0, void 0, function () {
10475
10512
  return __generator(this, function (_a) {
@@ -13437,7 +13474,9 @@
13437
13474
  }
13438
13475
  break;
13439
13476
  case WarehouseCCTab.InterBranch:
13440
- break;
13477
+ output.commissionCode = 0;
13478
+ output.interBranchCommissionCode = this.commissionCode;
13479
+ output.interBranchSourceWarehouseNr = this.interBranchSourceWarehouse;
13441
13480
  }
13442
13481
  this.onClose(AppPopupButtonType.Ok, output);
13443
13482
  };
@@ -13493,7 +13532,7 @@
13493
13532
  DialogTransactionLineWarehouseCcComponent.decorators = [
13494
13533
  { type: i0.Component, args: [{
13495
13534
  selector: "co-dialog-transaction-line-warehouse-cc",
13496
- template: "\n <co-dialog\n [customCssClass]=\"'co-small-scrollbar'\"\n [headerTemplate]=\"dialogHeader\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n <div class=\"transaction-line-warehouse-cc-section\">\n <co-input-number-picker\n class=\"quantity-number-picker\"\n [(model)]=\"quantity\"\n [decimals]=\"decimals\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (modelChange)=\"handleQuantityChange($event)\">\n </co-input-number-picker>\n </div>\n <div class=\"warehouse-cc-tabs\">\n <div class=\"warehouse-cc-tab\" [textContent]=\"'GENERAL' | localize\" [class.active]=\"activeTab === tab.General\"\n (click)=\"showTab(tab.General)\"></div>\n <div *ngIf=\"showDirectSell\" class=\"warehouse-cc-tab\" [textContent]=\"'DIRECT_SELL' | localize\"\n [class.active]=\"activeTab === tab.DirectSell\" (click)=\"showTab(tab.DirectSell)\"></div>\n <div class=\"warehouse-cc-tab\" [textContent]=\"'INTERBRANCH' | localize\" [class.active]=\"activeTab === tab.InterBranch\"\n (click)=\"showTab(tab.InterBranch)\"></div>\n </div>\n <div class=\"warehouse-cc-tabs-content\">\n <co-transaction-line-warehouse-cc-general #general class=\"tab-content\"\n [showing]=\"activeTab === tab.General\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-general>\n <co-transaction-line-warehouse-cc-directsell #directsell class=\"tab-content\" *ngIf=\"showDirectSell\"\n [showing]=\"activeTab === tab.DirectSell\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n [(directSellPurchaseOrderNumber)]=\"directSellPurchaseOrderNumber\"\n [(stockForecastDeliveryDate)]=\"stockForecastDeliveryDate\"\n [(selectedSupplier)]=\"directSellSupplier\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-directsell>\n <co-transaction-line-warehouse-cc-interbranch #interbranch class=\"tab-content\"\n [showing]=\"activeTab === tab.InterBranch\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-interbranch>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"co-dialog-header-wrapper\">\n <div class=\"co-dialog-header-title\" [textContent]=\"'COMMISSION_CODE_WAREHOUSE_SELECTION' | localize\"></div>\n <div class=\"article-name\" *ngIf=\"transactionLine\">\n <span [textContent]=\"'FOR' | localize\"></span>\n &nbsp;\n <span [textContent]=\" transactionLine.defaultPurchaseDescription\"></span>\n </div>\n <ng-container *ngIf=\"reason\">\n <div class=\"co-dialog-header-reason\" [textContent]=\"reason\"></div>\n </ng-container>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleOkClick()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCloseDialog($event, buttonType.Cancel)\"></co-button>\n </div>\n </ng-template>\n ",
13535
+ template: "\n <co-dialog\n [customCssClass]=\"'co-small-scrollbar'\"\n [headerTemplate]=\"dialogHeader\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n <div class=\"transaction-line-warehouse-cc-section\">\n <co-input-number-picker\n class=\"quantity-number-picker\"\n [(model)]=\"quantity\"\n [decimals]=\"decimals\"\n [leftIconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (modelChange)=\"handleQuantityChange($event)\">\n </co-input-number-picker>\n </div>\n <div class=\"warehouse-cc-tabs\">\n <div class=\"warehouse-cc-tab\" [textContent]=\"'GENERAL' | localize\" [class.active]=\"activeTab === tab.General\"\n (click)=\"showTab(tab.General)\"></div>\n <div *ngIf=\"showDirectSell\" class=\"warehouse-cc-tab\" [textContent]=\"'DIRECT_SELL' | localize\"\n [class.active]=\"activeTab === tab.DirectSell\" (click)=\"showTab(tab.DirectSell)\"></div>\n <div class=\"warehouse-cc-tab\" [textContent]=\"'INTERBRANCH' | localize\" [class.active]=\"activeTab === tab.InterBranch\"\n (click)=\"showTab(tab.InterBranch)\"></div>\n </div>\n <div class=\"warehouse-cc-tabs-content\">\n <co-transaction-line-warehouse-cc-general #general class=\"tab-content\"\n [showing]=\"activeTab === tab.General\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-general>\n <co-transaction-line-warehouse-cc-directsell #directsell class=\"tab-content\" *ngIf=\"showDirectSell\"\n [showing]=\"activeTab === tab.DirectSell\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n [(directSellPurchaseOrderNumber)]=\"directSellPurchaseOrderNumber\"\n [(stockForecastDeliveryDate)]=\"stockForecastDeliveryDate\"\n [(selectedSupplier)]=\"directSellSupplier\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-directsell>\n <co-transaction-line-warehouse-cc-interbranch #interbranch class=\"tab-content\"\n [showing]=\"activeTab === tab.InterBranch\"\n [transactionKind]=\"transactionKind\"\n [(commissionCode)]=\"commissionCode\"\n [(warehouse)]=\"warehouse\"\n [(interBranchSourceWarehouse)]=\"interBranchSourceWarehouse\"\n (commissionCodeChange)=\"handleCommissionCodeChange($event)\"\n (warehouseChange)=\"handleWarehouseChange($event)\"\n ></co-transaction-line-warehouse-cc-interbranch>\n </div>\n </co-dialog>\n <ng-template #dialogHeader>\n <div class=\"co-dialog-header-wrapper\">\n <div class=\"co-dialog-header-title\" [textContent]=\"'COMMISSION_CODE_WAREHOUSE_SELECTION' | localize\"></div>\n <div class=\"article-name\" *ngIf=\"transactionLine\">\n <span [textContent]=\"'FOR' | localize\"></span>\n &nbsp;\n <span [textContent]=\" transactionLine.defaultPurchaseDescription\"></span>\n </div>\n <ng-container *ngIf=\"reason\">\n <div class=\"co-dialog-header-reason\" [textContent]=\"reason\"></div>\n </ng-container>\n </div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"handleOkClick()\"></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleCloseDialog($event, buttonType.Cancel)\"></co-button>\n </div>\n </ng-template>\n ",
13497
13536
  providers: [
13498
13537
  TransactionHeaderService,
13499
13538
  TransactionLineService
@@ -16872,6 +16911,23 @@
16872
16911
  });
16873
16912
  });
16874
16913
  };
16914
+ TransactionService.prototype.updateTransactionLineInterBranchSourceWarehouse = function (uuid, lineUuid, interBranchSourceWarehouseNr) {
16915
+ return __awaiter(this, void 0, void 0, function () {
16916
+ var response;
16917
+ return __generator(this, function (_a) {
16918
+ switch (_a.label) {
16919
+ case 0: return [4 /*yield*/, this.connector.changeTransactionLineInterBranchSourceWarehouse(uuid, lineUuid, interBranchSourceWarehouseNr)];
16920
+ case 1:
16921
+ response = _a.sent();
16922
+ if (response) {
16923
+ this.transactionDirty = true;
16924
+ return [2 /*return*/, this.handleLineOperationStatuses(response)];
16925
+ }
16926
+ return [2 /*return*/, false];
16927
+ }
16928
+ });
16929
+ });
16930
+ };
16875
16931
  TransactionService.prototype.updateDeliveryMethodTransactionLine = function (uuid, lineUuid, method) {
16876
16932
  return __awaiter(this, void 0, void 0, function () {
16877
16933
  var response;
@@ -59224,6 +59280,7 @@
59224
59280
  this.transKind = transactionKind_enum.TransactionKind;
59225
59281
  this.commissionCodeChange = new i0.EventEmitter();
59226
59282
  this.warehouseChange = new i0.EventEmitter();
59283
+ this.interBranchSourceWarehouseChange = new i0.EventEmitter();
59227
59284
  this._showing = false;
59228
59285
  }
59229
59286
  Object.defineProperty(TransactionLineWarehouseCcBaseComponent.prototype, "showing", {
@@ -59255,8 +59312,10 @@
59255
59312
  commissionCode: [{ type: i0.Input }],
59256
59313
  commissionCodeChange: [{ type: i0.Output }],
59257
59314
  warehouse: [{ type: i0.Input }],
59315
+ interBranchSourceWarehouse: [{ type: i0.Input }],
59258
59316
  showing: [{ type: i0.Input }],
59259
- warehouseChange: [{ type: i0.Output }]
59317
+ warehouseChange: [{ type: i0.Output }],
59318
+ interBranchSourceWarehouseChange: [{ type: i0.Output }]
59260
59319
  };
59261
59320
 
59262
59321
  var TransactionLineWarehouseCcGeneralComponent = /** @class */ (function (_super) {
@@ -59314,22 +59373,94 @@
59314
59373
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-line-warehouse-cc-directsell',] }]
59315
59374
  };
59316
59375
 
59376
+ var WarehouseTargetSourceTab;
59377
+ (function (WarehouseTargetSourceTab) {
59378
+ WarehouseTargetSourceTab[WarehouseTargetSourceTab["Source"] = 0] = "Source";
59379
+ WarehouseTargetSourceTab[WarehouseTargetSourceTab["Target"] = 1] = "Target";
59380
+ })(WarehouseTargetSourceTab || (WarehouseTargetSourceTab = {}));
59317
59381
  var TransactionLineWarehouseCcInterbranchComponent = /** @class */ (function (_super) {
59318
59382
  __extends(TransactionLineWarehouseCcInterbranchComponent, _super);
59319
- function TransactionLineWarehouseCcInterbranchComponent() {
59320
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
59383
+ function TransactionLineWarehouseCcInterbranchComponent(element, iconCacheService, _transactionService, _changeDetector) {
59384
+ var _this = _super.call(this, element) || this;
59385
+ _this.element = element;
59386
+ _this.iconCacheService = iconCacheService;
59387
+ _this._transactionService = _transactionService;
59388
+ _this._changeDetector = _changeDetector;
59389
+ _this.icons = Icon;
59390
+ _this.tab = WarehouseTargetSourceTab;
59321
59391
  _this.showClass = true;
59392
+ _this.activeTab = WarehouseTargetSourceTab.Source;
59393
+ _this.warehouseDisplayList = [];
59322
59394
  return _this;
59323
59395
  }
59396
+ TransactionLineWarehouseCcInterbranchComponent.prototype.ngOnInit = function () {
59397
+ this._getWarehouseListForDisplay();
59398
+ };
59399
+ TransactionLineWarehouseCcInterbranchComponent.prototype.showTab = function (tab) {
59400
+ switch (tab) {
59401
+ case WarehouseTargetSourceTab.Target:
59402
+ this.activeTab = WarehouseTargetSourceTab.Target;
59403
+ /*if (this.general && this.general.element.nativeElement) {
59404
+ this._scrollIntoView(this.general.element.nativeElement);
59405
+ }*/
59406
+ break;
59407
+ case WarehouseTargetSourceTab.Source:
59408
+ this.activeTab = WarehouseTargetSourceTab.Source; /*
59409
+ if (this.directSell && this.directSell.element.nativeElement) {
59410
+ this._scrollIntoView(this.directSell.element.nativeElement);
59411
+ }*/
59412
+ break;
59413
+ }
59414
+ };
59415
+ TransactionLineWarehouseCcInterbranchComponent.prototype.warehouseChange_handler = function (warehouseNr) {
59416
+ this.warehouseChange.emit(warehouseNr);
59417
+ this.warehouseDescription = this._getWarehouseDescription(warehouseNr);
59418
+ };
59419
+ TransactionLineWarehouseCcInterbranchComponent.prototype.interBranchSourceWarehouseChange_handler = function (warehouseNr) {
59420
+ this.interBranchSourceWarehouseChange.emit(warehouseNr);
59421
+ this.interBranchSourceWarehouseDescription = this._getWarehouseDescription(warehouseNr);
59422
+ };
59423
+ TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseListForDisplay = function () {
59424
+ return __awaiter(this, void 0, void 0, function () {
59425
+ var _this = this;
59426
+ return __generator(this, function (_a) {
59427
+ this._transactionService.getWarehouses().then(function (warehouses) {
59428
+ _this.warehouseDisplayList = warehouses;
59429
+ _this.warehouseDescription = _this._getWarehouseDescription(_this.warehouse);
59430
+ _this.interBranchSourceWarehouseDescription = _this._getWarehouseDescription(_this.interBranchSourceWarehouse);
59431
+ _this._detectChanges();
59432
+ });
59433
+ return [2 /*return*/];
59434
+ });
59435
+ });
59436
+ };
59437
+ TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseDescription = function (warehouseNr) {
59438
+ if (warehouseNr !== null && warehouseNr !== undefined) {
59439
+ return this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; }).description;
59440
+ }
59441
+ else {
59442
+ return '';
59443
+ }
59444
+ };
59445
+ TransactionLineWarehouseCcInterbranchComponent.prototype._detectChanges = function () {
59446
+ this._changeDetector.markForCheck();
59447
+ this._changeDetector.detectChanges();
59448
+ };
59324
59449
  return TransactionLineWarehouseCcInterbranchComponent;
59325
59450
  }(TransactionLineWarehouseCcBaseComponent));
59326
59451
  TransactionLineWarehouseCcInterbranchComponent.decorators = [
59327
59452
  { type: i0.Component, args: [{
59328
59453
  selector: 'co-transaction-line-warehouse-cc-interbranch',
59329
- template: "\n <div class=\"warehouse-cc-tab-content-wrapper co-small-scrollbar\">\n <div class=\"transaction-line-warehouse-cc-section\" *ngIf=\"transactionKind !== transKind.PurchaseOrder\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n <co-transaction-line-commission-code\n [value]=\"commissionCode\"\n [useModel]=\"false\"\n [forceWritable]=\"true\"\n (valueChange)=\"commissionCodeChange.emit($event)\"></co-transaction-line-commission-code>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'WAREHOUSE' | localize\"></div>\n <co-transaction-line-warehouse\n [value]=\"warehouse\"\n [useModel]=\"false\"\n [forceWritable]=\"true\"\n (valueChange)=\"warehouseChange.emit($event)\"></co-transaction-line-warehouse>\n </div>\n </div>\n ",
59454
+ template: "\n <div class=\"warehouse-cc-tab-content-wrapper co-small-scrollbar\">\n <div class=\"transaction-line-warehouse-cc-section\" *ngIf=\"transactionKind !== transKind.PurchaseOrder\">\n <div class=\"transaction-line-warehouse-cc-section-label\" [textContent]=\"'COMMISSION_CODE' | localize\"></div>\n <co-transaction-line-commission-code\n [value]=\"commissionCode\"\n [useModel]=\"false\"\n [forceWritable]=\"true\"\n (valueChange)=\"commissionCodeChange.emit($event)\"></co-transaction-line-commission-code>\n </div>\n <div class=\"warehouse-cc-tabs\">\n <div class=\"warehouse-cc-tab\" [textContent]=\"'SOURCE_WAREHOUSE' | localize\" [class.active]=\"activeTab === tab.Source\"\n (click)=\"showTab(tab.Source)\" ></div>\n <div class=\"warehouse-cc-tab\" [textContent]=\"'TARGET_WAREHOUSE' | localize\" [class.active]=\"activeTab === tab.Target\"\n (click)=\"showTab(tab.Target)\"></div>\n </div>\n\n <div class=\"transaction-line-warehouse-cc-section\" [class.dontShowWarehouseTab]=\"activeTab !== tab.Source\" >\n <co-transaction-line-warehouse\n [value]=\"interBranchSourceWarehouse\"\n [useModel]=\"false\"\n [forceWritable]=\"true\"\n (valueChange)=\"interBranchSourceWarehouseChange_handler($event)\"></co-transaction-line-warehouse>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\" [class.dontShowWarehouseTab]=\"activeTab !== tab.Target\">\n <co-transaction-line-warehouse\n [value]=\"warehouse\"\n [useModel]=\"false\"\n [forceWritable]=\"true\"\n (valueChange)=\"warehouseChange_handler($event)\"></co-transaction-line-warehouse>\n </div>\n <div class=\"transaction-line-warehouse-cc-section\">\n <div class=\"transaction-line-warehouse-cc-warehouses-section\">\n <co-icon class=\"icon\" [iconData]=\"iconCacheService.getIcon(icons.RegularWarehouseCircleArrowRight)\"></co-icon>\n <co-input-text [readonly]=\"true\" [placeholder]=\"'SOURCE_WAREHOUSE' | localize\" [model]=\"interBranchSourceWarehouseDescription\" ></co-input-text>\n <co-icon class=\"icon\" [iconData]=\"iconCacheService.getIcon(icons.RegularWarehouseCircleArrowLeft)\"></co-icon>\n <co-input-text [readonly]=\"true\" [placeholder]=\"'TARGET_WAREHOUSE' | localize\" [model]=\"warehouseDescription\"></co-input-text>\n </div>\n </div>\n </div>\n ",
59330
59455
  encapsulation: i0.ViewEncapsulation.None
59331
59456
  },] }
59332
59457
  ];
59458
+ TransactionLineWarehouseCcInterbranchComponent.ctorParameters = function () { return [
59459
+ { type: i0.ElementRef },
59460
+ { type: IconCacheService },
59461
+ { type: TransactionService },
59462
+ { type: i0.ChangeDetectorRef }
59463
+ ]; };
59333
59464
  TransactionLineWarehouseCcInterbranchComponent.propDecorators = {
59334
59465
  showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-line-warehouse-cc-interbranch',] }]
59335
59466
  };
@@ -59354,7 +59485,8 @@
59354
59485
  corecomponents_v12.ListOfValuesModule,
59355
59486
  corecomponents_v12.InputCheckboxModule,
59356
59487
  corecomponents_v12.FormModule,
59357
- TransactionLineDirectSellModule
59488
+ TransactionLineDirectSellModule,
59489
+ corecomponents_v12.InputTextModule
59358
59490
  ],
59359
59491
  declarations: [
59360
59492
  DialogTransactionLineWarehouseCcComponent,