@colijnit/transaction 256.1.45 → 256.1.46
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 +44 -26
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/quick-send-button/quick-send-button.component.js +4 -2
- package/esm2015/lib/component/transaction-cash-register-dialog/transaction-cash-register-dialog.component.js +6 -6
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +11 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +21 -11
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/quick-send-button/quick-send-button.component.d.ts +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +1 -0
- package/package.json +1 -1
- package/colijnit-transaction-256.1.44.tgz +0 -0
|
@@ -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.46";
|
|
37
|
+
this.publishDate = "24-1-2025 16:27:30";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -24131,7 +24131,6 @@
|
|
|
24131
24131
|
}
|
|
24132
24132
|
}));
|
|
24133
24133
|
this.showReconfirmationButton = this.transactionService.purchaseOrderConfirmationCompleted;
|
|
24134
|
-
// this.purchaseOrderConfirmation.confirmationDate = new Date();
|
|
24135
24134
|
};
|
|
24136
24135
|
TransactionQuickAccessOrderConfirmationComponent.prototype.ngOnDestroy = function () {
|
|
24137
24136
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -24143,15 +24142,23 @@
|
|
|
24143
24142
|
TransactionQuickAccessOrderConfirmationComponent.prototype.onReferenceChange = function (event) {
|
|
24144
24143
|
this.showReferenceError = !(event && event.length > 0);
|
|
24145
24144
|
};
|
|
24145
|
+
TransactionQuickAccessOrderConfirmationComponent.prototype.isConfirmationDisabled = function () {
|
|
24146
|
+
var _a;
|
|
24147
|
+
return this.purchaseOrderConfirmation.confirmationDate === undefined || this.purchaseOrderConfirmation.reference === undefined || ((_a = this.purchaseOrderConfirmation.reference) === null || _a === void 0 ? void 0 : _a.length) === 0 || this.showReferenceError;
|
|
24148
|
+
};
|
|
24146
24149
|
TransactionQuickAccessOrderConfirmationComponent.prototype.handleSelectAllLines = function (value) {
|
|
24147
24150
|
this.transactionEventService.selectAllSalesOrderLinesForPurchase.next(value);
|
|
24148
24151
|
};
|
|
24149
24152
|
TransactionQuickAccessOrderConfirmationComponent.prototype.handleCommitEvent = function (event) {
|
|
24150
24153
|
return __awaiter(this, void 0, void 0, function () {
|
|
24151
24154
|
var success;
|
|
24152
|
-
return __generator(this, function (
|
|
24153
|
-
switch (
|
|
24155
|
+
return __generator(this, function (_b) {
|
|
24156
|
+
switch (_b.label) {
|
|
24154
24157
|
case 0:
|
|
24158
|
+
this.showLinesError = this.transactionLines.filter(function (line) { return line.selected; }).length === 0;
|
|
24159
|
+
if (this.showLinesError) {
|
|
24160
|
+
return [2 /*return*/];
|
|
24161
|
+
}
|
|
24155
24162
|
if (!this._formMaster.submitSlaves()) return [3 /*break*/, 3];
|
|
24156
24163
|
this.iconVisible = false;
|
|
24157
24164
|
this.awaitingResult = true;
|
|
@@ -24161,16 +24168,16 @@
|
|
|
24161
24168
|
this.purchaseOrderConfirmation.transId = this.transactionInfo.id;
|
|
24162
24169
|
return [4 /*yield*/, this.transactionService.purchaseOrderConfirmation(this.transactionInfo.id, this.transactionInfo.version, this.purchaseOrderConfirmation, this._purchaseConfirmationService.confirmationAnalysisId, this._getSelectedLines())];
|
|
24163
24170
|
case 1:
|
|
24164
|
-
success =
|
|
24171
|
+
success = _b.sent();
|
|
24165
24172
|
this.detectChanges();
|
|
24166
|
-
|
|
24173
|
+
_b.label = 2;
|
|
24167
24174
|
case 2:
|
|
24168
24175
|
this.awaitingResult = false;
|
|
24169
24176
|
this.iconVisible = success;
|
|
24170
24177
|
this.forceShowConfirmationInputs = false;
|
|
24171
24178
|
this._purchaseConfirmationService.confirmationFinished.next();
|
|
24172
24179
|
this._purchaseConfirmationService.confirmationAnalysisId = undefined;
|
|
24173
|
-
|
|
24180
|
+
_b.label = 3;
|
|
24174
24181
|
case 3: return [2 /*return*/];
|
|
24175
24182
|
}
|
|
24176
24183
|
});
|
|
@@ -24178,16 +24185,16 @@
|
|
|
24178
24185
|
};
|
|
24179
24186
|
TransactionQuickAccessOrderConfirmationComponent.prototype.handleNewConfirmationButtonClick = function () {
|
|
24180
24187
|
return __awaiter(this, void 0, void 0, function () {
|
|
24181
|
-
var allowToReconfirm,
|
|
24182
|
-
var e_1,
|
|
24183
|
-
return __generator(this, function (
|
|
24184
|
-
switch (
|
|
24188
|
+
var allowToReconfirm, _b, _c, transactionLine;
|
|
24189
|
+
var e_1, _d;
|
|
24190
|
+
return __generator(this, function (_e) {
|
|
24191
|
+
switch (_e.label) {
|
|
24185
24192
|
case 0:
|
|
24186
24193
|
allowToReconfirm = true;
|
|
24187
24194
|
if (this.transactionLines) {
|
|
24188
24195
|
try {
|
|
24189
|
-
for (
|
|
24190
|
-
transactionLine =
|
|
24196
|
+
for (_b = __values(this.transactionLines), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
24197
|
+
transactionLine = _c.value;
|
|
24191
24198
|
if (transactionLine.purchasePortalLine.deliveryBatch) {
|
|
24192
24199
|
allowToReconfirm = false;
|
|
24193
24200
|
}
|
|
@@ -24196,7 +24203,7 @@
|
|
|
24196
24203
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
24197
24204
|
finally {
|
|
24198
24205
|
try {
|
|
24199
|
-
if (
|
|
24206
|
+
if (_c && !_c.done && (_d = _b.return)) _d.call(_b);
|
|
24200
24207
|
}
|
|
24201
24208
|
finally { if (e_1) throw e_1.error; }
|
|
24202
24209
|
}
|
|
@@ -24207,8 +24214,8 @@
|
|
|
24207
24214
|
return [3 /*break*/, 3];
|
|
24208
24215
|
case 1: return [4 /*yield*/, this._dialogService.showInformation('RECONFIRMATION_PURCHASE_ORDER_ERROR', false)];
|
|
24209
24216
|
case 2:
|
|
24210
|
-
|
|
24211
|
-
|
|
24217
|
+
_e.sent();
|
|
24218
|
+
_e.label = 3;
|
|
24212
24219
|
case 3: return [2 /*return*/];
|
|
24213
24220
|
}
|
|
24214
24221
|
});
|
|
@@ -24236,7 +24243,7 @@
|
|
|
24236
24243
|
TransactionQuickAccessOrderConfirmationComponent.decorators = [
|
|
24237
24244
|
{ type: i0.Component, args: [{
|
|
24238
24245
|
selector: 'co-transaction-quick-access-order-confirmation',
|
|
24239
|
-
template: "\n <div class=\"quick-access-wrapper\">\n <div class=\"confirm-inputs\" *ngIf=\"!showReconfirmationButton || forceShowConfirmationInputs\">\n <co-input-checkbox (modelChange)=\"handleSelectAllLines($event)\"></co-input-checkbox>\n <co-form class=\"field-form\">\n <co-input-date\n [class.invalid]=\"showDateError\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"purchaseOrderConfirmation.confirmationDate\"\n (modelChange)=\"onDateChange($event)\">\n </co-input-date>\n <co-input-text\n [class.invalid]=\"showReferenceError\"\n [placeholder]=\"'REFERENCE' | localize\"\n [screenConfigurationObject]=\"cfgNames.Reference\"\n [(model)]=\"purchaseOrderConfirmation.reference\"\n (modelChange)=\"onReferenceChange($event)\">\n </co-input-text>\n </co-form>\n <!--\n <co-input-text\n [(model)]=\"purchaseOrderConfirmation.leverBatch\"\n [placeholder]=\"'BATCH' | localize\"\n ></co-input-text>\n -->\n <co-quick-send-button\n [title]=\"'PROCESS' | localize\"\n [icon]=\"icons.CheckDuotone\"\n [showSendMethodIcon]=\"false\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"awaitingResult\"\n (sendIconClicked)=\"handleCommitEvent($event)\">\n </co-quick-send-button>\n </div>\n <div class=\"error-message\" *ngIf=\"showLinesError\"
|
|
24246
|
+
template: "\n <div class=\"quick-access-wrapper\">\n <div class=\"confirm-inputs\" *ngIf=\"!showReconfirmationButton || forceShowConfirmationInputs\">\n <co-input-checkbox (modelChange)=\"handleSelectAllLines($event)\"></co-input-checkbox>\n <co-form class=\"field-form\">\n <co-input-date\n [class.invalid]=\"showDateError\"\n [placeholder]=\"'CONFIRMED_DATE' | localize\"\n [(model)]=\"purchaseOrderConfirmation.confirmationDate\"\n (modelChange)=\"onDateChange($event)\">\n </co-input-date>\n <co-input-text\n [class.invalid]=\"showReferenceError\"\n [placeholder]=\"'REFERENCE' | localize\"\n [screenConfigurationObject]=\"cfgNames.Reference\"\n [(model)]=\"purchaseOrderConfirmation.reference\"\n (modelChange)=\"onReferenceChange($event)\">\n </co-input-text>\n </co-form>\n <!--\n <co-input-text\n [(model)]=\"purchaseOrderConfirmation.leverBatch\"\n [placeholder]=\"'BATCH' | localize\"\n ></co-input-text>\n -->\n <co-quick-send-button\n [title]=\"'PROCESS' | localize\"\n [icon]=\"icons.CheckDuotone\"\n [showSendMethodIcon]=\"false\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"awaitingResult\"\n [disabled]=\"isConfirmationDisabled()\"\n (sendIconClicked)=\"handleCommitEvent($event)\">\n </co-quick-send-button>\n </div>\n <div class=\"error-message\" *ngIf=\"showLinesError\" [textContent]=\"'NO_ORDER_LINE_SELECTED' | localize\"></div>\n <div class=\"show-confirmation-inputs-wrapper\" *ngIf=\"showReconfirmationButton && !forceShowConfirmationInputs\">\n <co-transaction-button class=\"new-confirmation-button custom-width\"\n [iconData]=\"iconCacheService.getIcon(icons.PlusSimple)\"\n [label]=\"'NEW_CONFIRMATION' | localize\"\n (click)=\"handleNewConfirmationButtonClick()\"\n ></co-transaction-button>\n </div>\n </div>\n ",
|
|
24240
24247
|
encapsulation: i0.ViewEncapsulation.None
|
|
24241
24248
|
},] }
|
|
24242
24249
|
];
|
|
@@ -24734,7 +24741,7 @@
|
|
|
24734
24741
|
return true;
|
|
24735
24742
|
};
|
|
24736
24743
|
TransactionQuickAccessOverviewComponent.prototype.openSendDialog = function () {
|
|
24737
|
-
if (this.isAdditionalDocEnabled) {
|
|
24744
|
+
if (this.isAdditionalDocEnabled && this.historicReports.length > 0) {
|
|
24738
24745
|
this.getTermsAndConditionsForm();
|
|
24739
24746
|
}
|
|
24740
24747
|
this.showSendMethodDialog = true;
|
|
@@ -43455,6 +43462,7 @@
|
|
|
43455
43462
|
this.showSendMethodIcon = true;
|
|
43456
43463
|
this.showSendMethodDialogIcon = true;
|
|
43457
43464
|
this.showLoader = false;
|
|
43465
|
+
this.disabled = false;
|
|
43458
43466
|
this.openSendMethodDialog = new i0.EventEmitter();
|
|
43459
43467
|
this.sendIconClicked = new i0.EventEmitter();
|
|
43460
43468
|
}
|
|
@@ -43466,7 +43474,7 @@
|
|
|
43466
43474
|
QuickSendButtonComponent.decorators = [
|
|
43467
43475
|
{ type: i0.Component, args: [{
|
|
43468
43476
|
selector: "co-quick-send-button",
|
|
43469
|
-
template: "\n <div class=\"quick-send-button-wrapper\" [class.disabled]=\"showLoader\" [class.no-dialog]=\"!showSendMethodDialogIcon\">\n <co-loader *ngIf=\"showLoader\"></co-loader>\n <div class=\"icon-wrapper-flat-left\" (click)=\"sendIconClicked.emit($event)\">\n <div class=\"icons-and-title-wrapper\">\n <div class=\"icons-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon)\" class=\"icon-send\"></co-icon>\n <co-icon *ngIf=\"showSendMethodIcon\" class=\"icon-method\"\n [iconData]=\"iconCacheService.getIcon(defaultMethodIcon ? defaultMethodIcon : icons.AtSolid)\"></co-icon>\n </div>\n <span class=\"send-button-title\" [textContent]=\"title | localize\"></span>\n </div>\n </div>\n <div class=\"icons-spacer\" *ngIf=\"showSendMethodDialogIcon\"></div>\n <div class=\"icon-wrapper-flat-right\" *ngIf=\"showSendMethodDialogIcon\" (click)=\"openSendMethodDialog.emit($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.EllipsisVerticalSolid)\"></co-icon>\n </div>\n </div>\n ",
|
|
43477
|
+
template: "\n <div class=\"quick-send-button-wrapper\" [class.disabled]=\"showLoader || disabled\" [class.no-dialog]=\"!showSendMethodDialogIcon\">\n <co-loader *ngIf=\"showLoader\"></co-loader>\n <div class=\"icon-wrapper-flat-left\" (click)=\"sendIconClicked.emit($event)\">\n <div class=\"icons-and-title-wrapper\">\n <div class=\"icons-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon)\" class=\"icon-send\"></co-icon>\n <co-icon *ngIf=\"showSendMethodIcon\" class=\"icon-method\"\n [iconData]=\"iconCacheService.getIcon(defaultMethodIcon ? defaultMethodIcon : icons.AtSolid)\"></co-icon>\n </div>\n <span class=\"send-button-title\" [textContent]=\"title | localize\"></span>\n </div>\n </div>\n <div class=\"icons-spacer\" *ngIf=\"showSendMethodDialogIcon\"></div>\n <div class=\"icon-wrapper-flat-right\" *ngIf=\"showSendMethodDialogIcon\" (click)=\"openSendMethodDialog.emit($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.EllipsisVerticalSolid)\"></co-icon>\n </div>\n </div>\n ",
|
|
43470
43478
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
43471
43479
|
encapsulation: i0.ViewEncapsulation.None
|
|
43472
43480
|
},] }
|
|
@@ -43481,6 +43489,7 @@
|
|
|
43481
43489
|
showSendMethodIcon: [{ type: i0.Input }],
|
|
43482
43490
|
showSendMethodDialogIcon: [{ type: i0.HostBinding, args: ["class.with-method-dialog-icon",] }, { type: i0.Input }],
|
|
43483
43491
|
showLoader: [{ type: i0.Input }],
|
|
43492
|
+
disabled: [{ type: i0.Input }],
|
|
43484
43493
|
showClass: [{ type: i0.HostBinding, args: ["class.co-quick-send-button",] }],
|
|
43485
43494
|
openSendMethodDialog: [{ type: i0.Output }],
|
|
43486
43495
|
sendIconClicked: [{ type: i0.Output }]
|
|
@@ -59600,12 +59609,21 @@
|
|
|
59600
59609
|
});
|
|
59601
59610
|
};
|
|
59602
59611
|
TransactionCashRegisterDialogComponent.prototype._prepareCashRegister = function () {
|
|
59603
|
-
|
|
59604
|
-
|
|
59605
|
-
|
|
59606
|
-
|
|
59607
|
-
|
|
59608
|
-
|
|
59612
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
59613
|
+
return __generator(this, function (_a) {
|
|
59614
|
+
switch (_a.label) {
|
|
59615
|
+
case 0:
|
|
59616
|
+
if (!!this.transactionService.currentBranch) return [3 /*break*/, 2];
|
|
59617
|
+
return [4 /*yield*/, this.transactionService.checkBranch()];
|
|
59618
|
+
case 1:
|
|
59619
|
+
_a.sent();
|
|
59620
|
+
_a.label = 2;
|
|
59621
|
+
case 2:
|
|
59622
|
+
this._prepareDialogData();
|
|
59623
|
+
return [2 /*return*/];
|
|
59624
|
+
}
|
|
59625
|
+
});
|
|
59626
|
+
});
|
|
59609
59627
|
};
|
|
59610
59628
|
TransactionCashRegisterDialogComponent.prototype.handleDrawerChanged = function (cashDrawer) {
|
|
59611
59629
|
this.activeCashDrawer = cashDrawer;
|