@colijnit/transaction 257.1.77 → 257.1.78
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.
- package/bundles/colijnit-transaction.umd.js +16 -14
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +3 -2
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/component/transaction-line-warehouse-cc-interbranch.component.js +3 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +6 -4
- package/fesm2015/colijnit-transaction.js.map +1 -1
- 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.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.78";
|
|
37
|
+
this.publishDate = "05/07/2025, 11:20:58";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -33902,26 +33902,26 @@
|
|
|
33902
33902
|
return __awaiter(this, void 0, void 0, function () {
|
|
33903
33903
|
var warehouseUpdateSuccess, oldWarehouse_1, oldSourceWarehouse, sourceSuccess;
|
|
33904
33904
|
var _this = this;
|
|
33905
|
-
return __generator(this, function (
|
|
33906
|
-
switch (
|
|
33905
|
+
return __generator(this, function (_b) {
|
|
33906
|
+
switch (_b.label) {
|
|
33907
33907
|
case 0:
|
|
33908
33908
|
warehouseUpdateSuccess = true;
|
|
33909
33909
|
if (this.transactionLine.warehouseNumber !== this.warehouse) {
|
|
33910
33910
|
oldWarehouse_1 = this.transactionLine.warehouseNumber;
|
|
33911
33911
|
this.transactionService.tryToLockTransaction(this.transactionInfo.id, this.transactionInfo.version).then(function (locked) { return __awaiter(_this, void 0, void 0, function () {
|
|
33912
33912
|
var warehouseSuccess;
|
|
33913
|
-
return __generator(this, function (
|
|
33914
|
-
switch (
|
|
33913
|
+
return __generator(this, function (_b) {
|
|
33914
|
+
switch (_b.label) {
|
|
33915
33915
|
case 0:
|
|
33916
33916
|
if (!locked) return [3 /*break*/, 2];
|
|
33917
33917
|
return [4 /*yield*/, this.transactionService.updateWarehouseTransactionLine(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.warehouse)];
|
|
33918
33918
|
case 1:
|
|
33919
|
-
warehouseSuccess =
|
|
33919
|
+
warehouseSuccess = _b.sent();
|
|
33920
33920
|
if (!warehouseSuccess) {
|
|
33921
33921
|
this.transactionLine.warehouseNumber = oldWarehouse_1;
|
|
33922
33922
|
warehouseUpdateSuccess = false;
|
|
33923
33923
|
}
|
|
33924
|
-
|
|
33924
|
+
_b.label = 2;
|
|
33925
33925
|
case 2: return [2 /*return*/];
|
|
33926
33926
|
}
|
|
33927
33927
|
});
|
|
@@ -33931,12 +33931,12 @@
|
|
|
33931
33931
|
oldSourceWarehouse = this.transactionLine.interBranchSourceWarehouseNr;
|
|
33932
33932
|
return [4 /*yield*/, this.transactionService.updateTransactionLineInterBranchSourceWarehouse(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.sourceWarehouse)];
|
|
33933
33933
|
case 1:
|
|
33934
|
-
sourceSuccess =
|
|
33934
|
+
sourceSuccess = _b.sent();
|
|
33935
33935
|
if (!sourceSuccess) {
|
|
33936
33936
|
this.transactionLine.warehouseNumber = oldSourceWarehouse;
|
|
33937
33937
|
warehouseUpdateSuccess = false;
|
|
33938
33938
|
}
|
|
33939
|
-
|
|
33939
|
+
_b.label = 2;
|
|
33940
33940
|
case 2:
|
|
33941
33941
|
if (warehouseUpdateSuccess) {
|
|
33942
33942
|
this.handleClose(AppPopupButtonType.Ok);
|
|
@@ -33949,7 +33949,7 @@
|
|
|
33949
33949
|
DialogTransactionLineWarehouseComponent.prototype._getWarehouseListForDisplay = function () {
|
|
33950
33950
|
return __awaiter(this, void 0, void 0, function () {
|
|
33951
33951
|
var _this = this;
|
|
33952
|
-
return __generator(this, function (
|
|
33952
|
+
return __generator(this, function (_b) {
|
|
33953
33953
|
this.transactionService.getWarehouses().then(function (warehouses) {
|
|
33954
33954
|
_this.warehouseDisplayList = warehouses;
|
|
33955
33955
|
_this.warehouseDescription = _this._getWarehouseDescription(_this.warehouse);
|
|
@@ -33961,8 +33961,9 @@
|
|
|
33961
33961
|
});
|
|
33962
33962
|
};
|
|
33963
33963
|
DialogTransactionLineWarehouseComponent.prototype._getWarehouseDescription = function (warehouseNr) {
|
|
33964
|
+
var _a;
|
|
33964
33965
|
if (warehouseNr !== null && warehouseNr !== undefined) {
|
|
33965
|
-
return this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; }).description;
|
|
33966
|
+
return (_a = this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; })) === null || _a === void 0 ? void 0 : _a.description;
|
|
33966
33967
|
}
|
|
33967
33968
|
else {
|
|
33968
33969
|
return '';
|
|
@@ -61880,7 +61881,7 @@
|
|
|
61880
61881
|
TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseListForDisplay = function () {
|
|
61881
61882
|
return __awaiter(this, void 0, void 0, function () {
|
|
61882
61883
|
var _this = this;
|
|
61883
|
-
return __generator(this, function (
|
|
61884
|
+
return __generator(this, function (_b) {
|
|
61884
61885
|
this._transactionService.getWarehouses().then(function (warehouses) {
|
|
61885
61886
|
_this.warehouseDisplayList = warehouses;
|
|
61886
61887
|
_this.warehouseDescription = _this._getWarehouseDescription(_this.warehouse);
|
|
@@ -61892,8 +61893,9 @@
|
|
|
61892
61893
|
});
|
|
61893
61894
|
};
|
|
61894
61895
|
TransactionLineWarehouseCcInterbranchComponent.prototype._getWarehouseDescription = function (warehouseNr) {
|
|
61896
|
+
var _a;
|
|
61895
61897
|
if (warehouseNr !== null && warehouseNr !== undefined) {
|
|
61896
|
-
return this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; }).description;
|
|
61898
|
+
return (_a = this.warehouseDisplayList.find(function (w) { return w.warehouseNo === warehouseNr; })) === null || _a === void 0 ? void 0 : _a.description;
|
|
61897
61899
|
}
|
|
61898
61900
|
else {
|
|
61899
61901
|
return '';
|