@colijnit/transaction 256.1.86 → 256.1.87
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 +10 -9
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/esm2015/lib/component/core/relation/customer-groups.component.js +6 -5
- package/esm2015/lib/component/transaction-line-side-panel-article-details/transaction-line-side-panel-article-details.component.js +2 -2
- package/esm2015/lib/service/transaction-base.service.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +9 -8
- package/fesm2015/colijnit-transaction.js.map +1 -1
- 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 = "256.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "256.1.87";
|
|
37
|
+
this.publishDate = "29/05/2025, 16:34:37";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -15094,7 +15094,7 @@
|
|
|
15094
15094
|
return [4 /*yield*/, this.connector.getTransactionById(transactionId)];
|
|
15095
15095
|
case 1:
|
|
15096
15096
|
transactionInfoResponse = _a.sent();
|
|
15097
|
-
if (!transactionInfoResponse.isSuccess) return [3 /*break*/, 3];
|
|
15097
|
+
if (!(transactionInfoResponse && transactionInfoResponse.isSuccess)) return [3 /*break*/, 3];
|
|
15098
15098
|
return [4 /*yield*/, this.rememberCurrentTransaction(transactionInfoResponse)];
|
|
15099
15099
|
case 2:
|
|
15100
15100
|
_a.sent();
|
|
@@ -21378,10 +21378,12 @@
|
|
|
21378
21378
|
CustomerGroupsComponent.prototype.ngOnInit = function () {
|
|
21379
21379
|
return __awaiter(this, void 0, void 0, function () {
|
|
21380
21380
|
var _this = this;
|
|
21381
|
-
return __generator(this, function (
|
|
21381
|
+
return __generator(this, function (_a) {
|
|
21382
21382
|
this._connector.getCustomerGroups().then(function (groups) {
|
|
21383
21383
|
_this.customerGroups = groups;
|
|
21384
|
-
_this.
|
|
21384
|
+
if (!_this._model && _this.defaultValue !== null) {
|
|
21385
|
+
_this.handleCustomerGroupChange(_this.customerGroups.find(function (c) { return c.groepsnummer === _this.defaultValue.toString(); }));
|
|
21386
|
+
}
|
|
21385
21387
|
});
|
|
21386
21388
|
return [2 /*return*/];
|
|
21387
21389
|
});
|
|
@@ -21389,15 +21391,14 @@
|
|
|
21389
21391
|
};
|
|
21390
21392
|
CustomerGroupsComponent.prototype.handleCustomerGroupChange = function (customerGroup) {
|
|
21391
21393
|
this.selectedCustomerGroup = customerGroup;
|
|
21392
|
-
this.
|
|
21394
|
+
this._model = this.selectedCustomerGroup.groepsnummer;
|
|
21395
|
+
this.modelChange.emit(this._model);
|
|
21393
21396
|
};
|
|
21394
21397
|
CustomerGroupsComponent.prototype._setSelectedCustomerGroup = function () {
|
|
21395
21398
|
var _this = this;
|
|
21396
|
-
var _a, _b;
|
|
21397
21399
|
if (!this.customerGroups) {
|
|
21398
21400
|
return;
|
|
21399
21401
|
}
|
|
21400
|
-
(_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
|
|
21401
21402
|
this.selectedCustomerGroup = this.customerGroups.find(function (c) { return c.groepsnummer === _this.model; });
|
|
21402
21403
|
};
|
|
21403
21404
|
return CustomerGroupsComponent;
|
|
@@ -36093,7 +36094,7 @@
|
|
|
36093
36094
|
TransactionLineSidePanelArticleDetailsComponent.prototype._getAlternateSuppliers = function () {
|
|
36094
36095
|
var _this = this;
|
|
36095
36096
|
this.alternateSuppliers = [];
|
|
36096
|
-
if (!this.suppliers || this.suppliers.length === 0) {
|
|
36097
|
+
if (!this.suppliers || this.suppliers.length === 0 || !this.purchaseAdviceLine) {
|
|
36097
36098
|
return;
|
|
36098
36099
|
}
|
|
36099
36100
|
this.selectedSupplierId = this.purchaseAdviceLine.supplierId;
|