@colijnit/transaction 258.1.64 → 258.1.65
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 +15 -11
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-warehouse-button.component.js +2 -2
- package/esm2015/lib/service/transaction.service.js +6 -3
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +8 -5
- 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 = "258.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "258.1.65";
|
|
37
|
+
this.publishDate = "11/09/2025, 18:09:07";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -16708,32 +16708,36 @@
|
|
|
16708
16708
|
return __generator(this, function (_a) {
|
|
16709
16709
|
switch (_a.label) {
|
|
16710
16710
|
case 0:
|
|
16711
|
-
if (!(this.currentTransaction && this.currentTransaction.transactionInfo && this.currentTransaction.transactionInfo.id)) return [3 /*break*/,
|
|
16711
|
+
if (!(this.currentTransaction && this.currentTransaction.transactionInfo && this.currentTransaction.transactionInfo.id)) return [3 /*break*/, 7];
|
|
16712
16712
|
return [4 /*yield*/, this.tryToLockTransaction(this.currentTransaction.transactionInfo.id, this.currentTransaction.transactionInfo.version)];
|
|
16713
16713
|
case 1:
|
|
16714
16714
|
lockSuccess = _a.sent();
|
|
16715
|
-
if (!lockSuccess) return [3 /*break*/,
|
|
16715
|
+
if (!lockSuccess) return [3 /*break*/, 7];
|
|
16716
16716
|
return [4 /*yield*/, this.dialogService.showYesNo('DELETE', 'DELETE_TRANSACTION_QUESTION')];
|
|
16717
16717
|
case 2:
|
|
16718
16718
|
response = _a.sent();
|
|
16719
16719
|
shouldDelete = response.button === AppPopupButtonType.Yes;
|
|
16720
|
-
if (!shouldDelete) return [3 /*break*/,
|
|
16720
|
+
if (!shouldDelete) return [3 /*break*/, 7];
|
|
16721
16721
|
return [4 /*yield*/, this.connector.deleteTransactionByUuId(this.currentTransaction.transactionInfo.uuid)];
|
|
16722
16722
|
case 3:
|
|
16723
16723
|
response_2 = _a.sent();
|
|
16724
|
+
success = true;
|
|
16725
|
+
if (!!response_2.isSuccess) return [3 /*break*/, 5];
|
|
16724
16726
|
return [4 /*yield*/, this.handleHeaderOperationStatuses(response_2, false)];
|
|
16725
16727
|
case 4:
|
|
16726
16728
|
success = _a.sent();
|
|
16727
|
-
|
|
16728
|
-
return [4 /*yield*/, this.commit()];
|
|
16729
|
+
_a.label = 5;
|
|
16729
16730
|
case 5:
|
|
16731
|
+
if (!success) return [3 /*break*/, 7];
|
|
16732
|
+
return [4 /*yield*/, this.commit()];
|
|
16733
|
+
case 6:
|
|
16730
16734
|
success = _a.sent();
|
|
16731
16735
|
if (success) {
|
|
16736
|
+
this.resetCurrentTransaction();
|
|
16732
16737
|
this.transactionEventService.transactionDeleted.next();
|
|
16733
|
-
this.currentTransaction = undefined;
|
|
16734
16738
|
}
|
|
16735
|
-
_a.label =
|
|
16736
|
-
case
|
|
16739
|
+
_a.label = 7;
|
|
16740
|
+
case 7: return [2 /*return*/];
|
|
16737
16741
|
}
|
|
16738
16742
|
});
|
|
16739
16743
|
});
|
|
@@ -34789,7 +34793,7 @@
|
|
|
34789
34793
|
this.transactionService.getWarehouses().then(function (warehouses) {
|
|
34790
34794
|
var warehouse = warehouses.find(function (w) { return w.warehouseNo === _this.transactionLine.warehouseNumber; });
|
|
34791
34795
|
_this.transactionLine.warehouseDescription = warehouse ? warehouse.description : "";
|
|
34792
|
-
if (warehouse && warehouse.useWMSForIncomingGoods && _this.transactionService.internalParameterPakBinnen) {
|
|
34796
|
+
if (warehouse && warehouse.useWMSForIncomingGoods && _this.transactionService.internalParameterPakBinnen && _this.transactionLine.isStockArticle) {
|
|
34793
34797
|
_this.transactionLine.preReceive = true;
|
|
34794
34798
|
}
|
|
34795
34799
|
_this.detectChanges();
|