@colijnit/transaction 257.1.62 → 257.1.63
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 +37 -27
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.js +50 -46
- package/esm2015/lib/component/transaction-line-fields/transaction-line-drop-shipment-button.component.js +30 -25
- package/esm2015/lib/service/transaction-base.service.js +3 -3
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +80 -71
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse/dialog-transaction-line-warehouse.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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.63";
|
|
37
|
+
this.publishDate = "29/05/2025, 16:40:43";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -15373,7 +15373,7 @@
|
|
|
15373
15373
|
return [4 /*yield*/, this.connector.getTransactionById(transactionId)];
|
|
15374
15374
|
case 1:
|
|
15375
15375
|
transactionInfoResponse = _a.sent();
|
|
15376
|
-
if (!transactionInfoResponse.isSuccess) return [3 /*break*/, 3];
|
|
15376
|
+
if (!(transactionInfoResponse && transactionInfoResponse.isSuccess)) return [3 /*break*/, 3];
|
|
15377
15377
|
return [4 /*yield*/, this.rememberCurrentTransaction(transactionInfoResponse)];
|
|
15378
15378
|
case 2:
|
|
15379
15379
|
_a.sent();
|
|
@@ -15402,7 +15402,7 @@
|
|
|
15402
15402
|
case 1:
|
|
15403
15403
|
transactionInfoResponse = _a.sent();
|
|
15404
15404
|
finished = true;
|
|
15405
|
-
if (!transactionInfoResponse.isSuccess) return [3 /*break*/, 3];
|
|
15405
|
+
if (!(transactionInfoResponse && transactionInfoResponse.isSuccess)) return [3 /*break*/, 3];
|
|
15406
15406
|
return [4 /*yield*/, this.rememberCurrentTransaction(transactionInfoResponse)];
|
|
15407
15407
|
case 2:
|
|
15408
15408
|
_a.sent();
|
|
@@ -33707,33 +33707,44 @@
|
|
|
33707
33707
|
};
|
|
33708
33708
|
DialogTransactionLineWarehouseComponent.prototype.handleOkClick = function () {
|
|
33709
33709
|
return __awaiter(this, void 0, void 0, function () {
|
|
33710
|
-
var warehouseUpdateSuccess,
|
|
33710
|
+
var warehouseUpdateSuccess, oldWarehouse_1, oldSourceWarehouse, sourceSuccess;
|
|
33711
|
+
var _this = this;
|
|
33711
33712
|
return __generator(this, function (_a) {
|
|
33712
33713
|
switch (_a.label) {
|
|
33713
33714
|
case 0:
|
|
33714
33715
|
warehouseUpdateSuccess = true;
|
|
33715
|
-
if (
|
|
33716
|
-
|
|
33717
|
-
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
33721
|
-
|
|
33722
|
-
|
|
33716
|
+
if (this.transactionLine.warehouseNumber !== this.warehouse) {
|
|
33717
|
+
oldWarehouse_1 = this.transactionLine.warehouseNumber;
|
|
33718
|
+
this.transactionService.tryToLockTransaction(this.transactionInfo.id, this.transactionInfo.version).then(function (locked) { return __awaiter(_this, void 0, void 0, function () {
|
|
33719
|
+
var warehouseSuccess;
|
|
33720
|
+
return __generator(this, function (_a) {
|
|
33721
|
+
switch (_a.label) {
|
|
33722
|
+
case 0:
|
|
33723
|
+
if (!locked) return [3 /*break*/, 2];
|
|
33724
|
+
return [4 /*yield*/, this.transactionService.updateWarehouseTransactionLine(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.warehouse)];
|
|
33725
|
+
case 1:
|
|
33726
|
+
warehouseSuccess = _a.sent();
|
|
33727
|
+
if (!warehouseSuccess) {
|
|
33728
|
+
this.transactionLine.warehouseNumber = oldWarehouse_1;
|
|
33729
|
+
warehouseUpdateSuccess = false;
|
|
33730
|
+
}
|
|
33731
|
+
_a.label = 2;
|
|
33732
|
+
case 2: return [2 /*return*/];
|
|
33733
|
+
}
|
|
33734
|
+
});
|
|
33735
|
+
}); });
|
|
33723
33736
|
}
|
|
33724
|
-
|
|
33725
|
-
case 2:
|
|
33726
|
-
if (!(this.transactionLine.interBranchSourceWarehouseNr !== this.sourceWarehouse)) return [3 /*break*/, 4];
|
|
33737
|
+
if (!(this.transactionLine.interBranchSourceWarehouseNr !== this.sourceWarehouse)) return [3 /*break*/, 2];
|
|
33727
33738
|
oldSourceWarehouse = this.transactionLine.interBranchSourceWarehouseNr;
|
|
33728
33739
|
return [4 /*yield*/, this.transactionService.updateTransactionLineInterBranchSourceWarehouse(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, this.sourceWarehouse)];
|
|
33729
|
-
case
|
|
33740
|
+
case 1:
|
|
33730
33741
|
sourceSuccess = _a.sent();
|
|
33731
33742
|
if (!sourceSuccess) {
|
|
33732
33743
|
this.transactionLine.warehouseNumber = oldSourceWarehouse;
|
|
33733
33744
|
warehouseUpdateSuccess = false;
|
|
33734
33745
|
}
|
|
33735
|
-
_a.label =
|
|
33736
|
-
case
|
|
33746
|
+
_a.label = 2;
|
|
33747
|
+
case 2:
|
|
33737
33748
|
if (warehouseUpdateSuccess) {
|
|
33738
33749
|
this.handleClose(AppPopupButtonType.Ok);
|
|
33739
33750
|
}
|
|
@@ -33768,13 +33779,13 @@
|
|
|
33768
33779
|
}(DialogTransactionLineBaseComponent));
|
|
33769
33780
|
DialogTransactionLineWarehouseComponent.decorators = [
|
|
33770
33781
|
{ type: i0.Component, args: [{
|
|
33771
|
-
selector:
|
|
33772
|
-
template: "\n
|
|
33782
|
+
selector: 'co-dialog-transaction-line-warehouse',
|
|
33783
|
+
template: "\n <co-dialog [headerTemplate]=\"dialogHeader\" [footerTemplate]=\"footerTemplate\" [showCloseIcon]=\"useModel\" (closeClick)=\"handleCloseDialog($event, buttonType.Cancel)\">\n\n <div class=\"warehouse-tabs\">\n <div class=\"warehouse-tab\" [textContent]=\"'SOURCE_WAREHOUSE' | localize\" [class.active]=\"activeTab === tab.Source\"\n (click)=\"showTab(tab.Source)\"></div>\n <div class=\"warehouse-tab\" [textContent]=\"'TARGET_WAREHOUSE' | localize\" [class.active]=\"activeTab === tab.Target\"\n (click)=\"showTab(tab.Target)\"></div>\n </div>\n\n <co-transaction-line-warehouse *ngIf=\"activeTab === tab.Source\"\n [useModel]=\"false\"\n [value]=\"sourceWarehouse\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleSourceValueChange($event)\"\n ></co-transaction-line-warehouse>\n <co-transaction-line-warehouse *ngIf=\"activeTab === tab.Target\"\n [useModel]=\"false\"\n [value]=\"warehouse\"\n [searchText]=\"searchText\"\n (valueChange)=\"handleTargetValueChange($event)\"\n ></co-transaction-line-warehouse>\n\n </co-dialog>\n <ng-template #dialogHeader>\n <co-dialog-header-search [title]=\"'WAREHOUSE'\" (search)=\"handleSearch($event)\"></co-dialog-header-search>\n </ng-template>\n\n <ng-template #footerTemplate>\n\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 class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'OK' | localize\" (click)=\"handleOkClick()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
33773
33784
|
encapsulation: i0.ViewEncapsulation.None
|
|
33774
33785
|
},] }
|
|
33775
33786
|
];
|
|
33776
33787
|
DialogTransactionLineWarehouseComponent.propDecorators = {
|
|
33777
|
-
showClass: [{ type: i0.HostBinding, args: [
|
|
33788
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-dialog-transaction-line-warehouse',] }]
|
|
33778
33789
|
};
|
|
33779
33790
|
|
|
33780
33791
|
var TransactionLineWarehouseComponent = /** @class */ (function (_super) {
|
|
@@ -37240,13 +37251,12 @@
|
|
|
37240
37251
|
}(TransactionLineBaseComponent));
|
|
37241
37252
|
TransactionLineDropShipmentButtonComponent.decorators = [
|
|
37242
37253
|
{ type: i0.Component, args: [{
|
|
37243
|
-
selector:
|
|
37244
|
-
template: "\n
|
|
37254
|
+
selector: 'co-transaction-line-drop-shipment-button',
|
|
37255
|
+
template: "\n <div class=\"inside-field\">\n <co-transaction-line-label\n *ngIf=\"transactionService.internalParameterAllowsDropShipment && supplierAllowsDropShipment && inputLabel\"\n [insideLabel]=\"'DROPSHIPMENT'\">\n </co-transaction-line-label>\n <co-transaction-button\n *ngIf=\"transactionService.internalParameterAllowsDropShipment && supplierAllowsDropShipment\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [label]=\"'DROPSHIPMENT' | localize\"\n (click)=\"handleToggleDropShipment($event)\">\n </co-transaction-button>\n <co-transaction-button\n *ngIf=\"!transactionService.internalParameterAllowsDropShipment || !supplierAllowsDropShipment\"\n class=\"disabled-button\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [label]=\"'DROPSHIPMENT_NO' | localize\">\n </co-transaction-button>\n </div>\n\n <co-dialog-transaction-line-warehouse\n *ngIf=\"showDialogWarehouse && !readonly\"\n [autoClose]=\"true\"\n (close)=\"showDialogWarehouse = false\">\n </co-dialog-transaction-line-warehouse>\n ",
|
|
37245
37256
|
providers: [{
|
|
37246
37257
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
37247
37258
|
useExisting: i0.forwardRef(function () { return TransactionLineDropShipmentButtonComponent; })
|
|
37248
|
-
}
|
|
37249
|
-
],
|
|
37259
|
+
}],
|
|
37250
37260
|
encapsulation: i0.ViewEncapsulation.None
|
|
37251
37261
|
},] }
|
|
37252
37262
|
];
|
|
@@ -37265,7 +37275,7 @@
|
|
|
37265
37275
|
TransactionLineDropShipmentButtonComponent.propDecorators = {
|
|
37266
37276
|
showLabel: [{ type: i0.Input }],
|
|
37267
37277
|
inputLabel: [{ type: i0.Input }],
|
|
37268
|
-
showClass: [{ type: i0.HostBinding, args: [
|
|
37278
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-line-drop-shipment-button',] }]
|
|
37269
37279
|
};
|
|
37270
37280
|
|
|
37271
37281
|
var TransactionLineDropShipmentButtonModule = /** @class */ (function () {
|