@colijnit/transaction 12.1.209 → 12.1.210
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 +25 -40
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-line-fields/transaction-line-commission-code.component.js +15 -20
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +16 -21
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line-fields/transaction-line-commission-code.component.d.ts +0 -2
- package/package.json +1 -1
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
function Version() {
|
|
33
33
|
this.name = "@colijnit/transaction";
|
|
34
34
|
this.description = "Colijn IT transaction package";
|
|
35
|
-
this.symVer = "12.1.
|
|
36
|
-
this.publishDate = "12-4-2024
|
|
35
|
+
this.symVer = "12.1.210";
|
|
36
|
+
this.publishDate = "12-4-2024 11:51:57";
|
|
37
37
|
}
|
|
38
38
|
return Version;
|
|
39
39
|
}());
|
|
@@ -25185,7 +25185,6 @@
|
|
|
25185
25185
|
__extends(TransactionLineCommissionCodeComponent, _super);
|
|
25186
25186
|
function TransactionLineCommissionCodeComponent() {
|
|
25187
25187
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
25188
|
-
_this.showCommissionCodePopup = true;
|
|
25189
25188
|
_this.codeField = 'code';
|
|
25190
25189
|
_this.checkField = 'commissionCode';
|
|
25191
25190
|
_this.propsForLabel = [{ label: 'code' }, { label: 'description' }];
|
|
@@ -25193,53 +25192,39 @@
|
|
|
25193
25192
|
}
|
|
25194
25193
|
TransactionLineCommissionCodeComponent.prototype.ngOnInit = function () {
|
|
25195
25194
|
this.viewModels.length = 0;
|
|
25196
|
-
this.checkInternalParam();
|
|
25197
25195
|
this.loadCollection();
|
|
25198
25196
|
this.detectChanges();
|
|
25199
25197
|
};
|
|
25200
|
-
TransactionLineCommissionCodeComponent.prototype.checkInternalParam = function () {
|
|
25201
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
25202
|
-
var _a;
|
|
25203
|
-
return __generator(this, function (_b) {
|
|
25204
|
-
switch (_b.label) {
|
|
25205
|
-
case 0:
|
|
25206
|
-
_a = this;
|
|
25207
|
-
return [4 /*yield*/, this.transactionService.getInternalParameter(internalParam_enum.InternalParam.KAS_MAG_CC_POP)];
|
|
25208
|
-
case 1:
|
|
25209
|
-
_a.showCommissionCodePopup = _b.sent();
|
|
25210
|
-
return [2 /*return*/];
|
|
25211
|
-
}
|
|
25212
|
-
});
|
|
25213
|
-
});
|
|
25214
|
-
};
|
|
25215
25198
|
TransactionLineCommissionCodeComponent.prototype.loadCollection = function () {
|
|
25216
25199
|
var _this = this;
|
|
25217
25200
|
this.transactionService.getCommissionCodes("NL").then(function (codes) {
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
else {
|
|
25223
|
-
// only show code 2.
|
|
25224
|
-
var codesList = codes.slice();
|
|
25225
|
-
var availableCodes = [];
|
|
25226
|
-
try {
|
|
25227
|
-
for (var codesList_1 = __values(codesList), codesList_1_1 = codesList_1.next(); !codesList_1_1.done; codesList_1_1 = codesList_1.next()) {
|
|
25228
|
-
var code = codesList_1_1.value;
|
|
25229
|
-
if (code.code === '2') {
|
|
25230
|
-
availableCodes.push(code);
|
|
25231
|
-
}
|
|
25232
|
-
}
|
|
25201
|
+
_this.transactionService.getInternalParameter(internalParam_enum.InternalParam.KAS_MAG_CC_POP).then(function (result) {
|
|
25202
|
+
var e_1, _a;
|
|
25203
|
+
if (!result) {
|
|
25204
|
+
_this.collection = codes.slice();
|
|
25233
25205
|
}
|
|
25234
|
-
|
|
25235
|
-
|
|
25206
|
+
else {
|
|
25207
|
+
// only show code 2.
|
|
25208
|
+
var codesList = codes.slice();
|
|
25209
|
+
var availableCodes = [];
|
|
25236
25210
|
try {
|
|
25237
|
-
|
|
25211
|
+
for (var codesList_1 = __values(codesList), codesList_1_1 = codesList_1.next(); !codesList_1_1.done; codesList_1_1 = codesList_1.next()) {
|
|
25212
|
+
var code = codesList_1_1.value;
|
|
25213
|
+
if (code.code === '2') {
|
|
25214
|
+
availableCodes.push(code);
|
|
25215
|
+
}
|
|
25216
|
+
}
|
|
25217
|
+
}
|
|
25218
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
25219
|
+
finally {
|
|
25220
|
+
try {
|
|
25221
|
+
if (codesList_1_1 && !codesList_1_1.done && (_a = codesList_1.return)) _a.call(codesList_1);
|
|
25222
|
+
}
|
|
25223
|
+
finally { if (e_1) throw e_1.error; }
|
|
25238
25224
|
}
|
|
25239
|
-
|
|
25225
|
+
_this.collection = availableCodes.slice();
|
|
25240
25226
|
}
|
|
25241
|
-
|
|
25242
|
-
}
|
|
25227
|
+
});
|
|
25243
25228
|
});
|
|
25244
25229
|
};
|
|
25245
25230
|
TransactionLineCommissionCodeComponent.prototype.commit = function (code) {
|