@colijnit/transaction 257.1.44 → 257.1.45
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 +217 -9
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +5 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-picked/transaction-quick-access-picked.component.js +6 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-to-be-picked/transaction-quick-access-to-be-picked.component.js +3 -2
- package/esm2015/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.component.js +69 -0
- package/esm2015/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.module.js +29 -0
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +32 -5
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +8 -6
- package/esm2015/lib/component/transaction-search/transaction-search.module.js +3 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +37 -1
- package/esm2015/lib/service/transaction-connector.service.js +16 -1
- package/esm2015/lib/service/transaction.service.js +16 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +199 -10
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-search/transaction-date-pick-dialog/style/_layout.scss +16 -0
- package/lib/component/transaction-search/transaction-date-pick-dialog/style/_material-definition.scss +1 -0
- package/lib/component/transaction-search/transaction-date-pick-dialog/style/_theme.scss +6 -0
- package/lib/component/transaction-search/transaction-date-pick-dialog/style/material.scss +3 -0
- package/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.component.d.ts +15 -0
- package/lib/component/transaction-search/transaction-date-pick-dialog/transaction-date-pick-dialog.module.d.ts +2 -0
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +2 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +3 -0
- package/lib/service/transaction-connector.service.d.ts +3 -0
- package/lib/service/transaction.service.d.ts +3 -0
- package/package.json +3 -3
- package/public_api.d.ts +2 -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 = "257.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.45";
|
|
37
|
+
this.publishDate = "08/04/2025, 09:43:20";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -6843,6 +6843,66 @@
|
|
|
6843
6843
|
});
|
|
6844
6844
|
});
|
|
6845
6845
|
};
|
|
6846
|
+
TransactionConnectorAdapterService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
|
|
6847
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6848
|
+
var response;
|
|
6849
|
+
return __generator(this, function (_a) {
|
|
6850
|
+
switch (_a.label) {
|
|
6851
|
+
case 0: return [4 /*yield*/, this.connector.startToAllocateUnAllocatedLinesBatch(transIds)];
|
|
6852
|
+
case 1:
|
|
6853
|
+
response = _a.sent();
|
|
6854
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
6855
|
+
return [2 /*return*/, response.resultObject];
|
|
6856
|
+
}
|
|
6857
|
+
else {
|
|
6858
|
+
this._handleExceptionFromResponse(response);
|
|
6859
|
+
return [2 /*return*/, null];
|
|
6860
|
+
}
|
|
6861
|
+
return [2 /*return*/];
|
|
6862
|
+
}
|
|
6863
|
+
});
|
|
6864
|
+
});
|
|
6865
|
+
};
|
|
6866
|
+
TransactionConnectorAdapterService.prototype.startGoodsToBePickedBatch = function (transIds) {
|
|
6867
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6868
|
+
var response;
|
|
6869
|
+
return __generator(this, function (_a) {
|
|
6870
|
+
switch (_a.label) {
|
|
6871
|
+
case 0: return [4 /*yield*/, this.connector.startGoodsToBePickedBatch(transIds)];
|
|
6872
|
+
case 1:
|
|
6873
|
+
response = _a.sent();
|
|
6874
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
6875
|
+
return [2 /*return*/, response.resultObject];
|
|
6876
|
+
}
|
|
6877
|
+
else {
|
|
6878
|
+
this._handleExceptionFromResponse(response);
|
|
6879
|
+
return [2 /*return*/, null];
|
|
6880
|
+
}
|
|
6881
|
+
return [2 /*return*/];
|
|
6882
|
+
}
|
|
6883
|
+
});
|
|
6884
|
+
});
|
|
6885
|
+
};
|
|
6886
|
+
TransactionConnectorAdapterService.prototype.startGoodsPickedBatch = function (transIds) {
|
|
6887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6888
|
+
var response;
|
|
6889
|
+
return __generator(this, function (_a) {
|
|
6890
|
+
switch (_a.label) {
|
|
6891
|
+
case 0: return [4 /*yield*/, this.connector.startGoodsPickedBatch(transIds)];
|
|
6892
|
+
case 1:
|
|
6893
|
+
response = _a.sent();
|
|
6894
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
6895
|
+
return [2 /*return*/, response.resultObject];
|
|
6896
|
+
}
|
|
6897
|
+
else {
|
|
6898
|
+
this._handleExceptionFromResponse(response);
|
|
6899
|
+
return [2 /*return*/, null];
|
|
6900
|
+
}
|
|
6901
|
+
return [2 /*return*/];
|
|
6902
|
+
}
|
|
6903
|
+
});
|
|
6904
|
+
});
|
|
6905
|
+
};
|
|
6846
6906
|
TransactionConnectorAdapterService.prototype.startDeliveryNotesBatch = function (request) {
|
|
6847
6907
|
return __awaiter(this, void 0, void 0, function () {
|
|
6848
6908
|
var response;
|
|
@@ -11332,6 +11392,27 @@
|
|
|
11332
11392
|
});
|
|
11333
11393
|
});
|
|
11334
11394
|
};
|
|
11395
|
+
TransactionConnectorService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
|
|
11396
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11397
|
+
return __generator(this, function (_a) {
|
|
11398
|
+
return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startToAllocateUnAllocatedLinesBatch, [transIds])];
|
|
11399
|
+
});
|
|
11400
|
+
});
|
|
11401
|
+
};
|
|
11402
|
+
TransactionConnectorService.prototype.startGoodsToBePickedBatch = function (transIds) {
|
|
11403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11404
|
+
return __generator(this, function (_a) {
|
|
11405
|
+
return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startGoodsToBePickedBatch, [transIds])];
|
|
11406
|
+
});
|
|
11407
|
+
});
|
|
11408
|
+
};
|
|
11409
|
+
TransactionConnectorService.prototype.startGoodsPickedBatch = function (transIds) {
|
|
11410
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11411
|
+
return __generator(this, function (_a) {
|
|
11412
|
+
return [2 /*return*/, this._adapterService.functionCall(this._adapterService.startGoodsPickedBatch, [transIds])];
|
|
11413
|
+
});
|
|
11414
|
+
});
|
|
11415
|
+
};
|
|
11335
11416
|
TransactionConnectorService.prototype.startDeliveryNotesBatch = function (request) {
|
|
11336
11417
|
return __awaiter(this, void 0, void 0, function () {
|
|
11337
11418
|
return __generator(this, function (_a) {
|
|
@@ -18408,6 +18489,36 @@
|
|
|
18408
18489
|
});
|
|
18409
18490
|
});
|
|
18410
18491
|
};
|
|
18492
|
+
TransactionService.prototype.startToAllocateUnAllocatedLinesBatch = function (transIds) {
|
|
18493
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18494
|
+
return __generator(this, function (_a) {
|
|
18495
|
+
switch (_a.label) {
|
|
18496
|
+
case 0: return [4 /*yield*/, this.connector.startToAllocateUnAllocatedLinesBatch(transIds)];
|
|
18497
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
18498
|
+
}
|
|
18499
|
+
});
|
|
18500
|
+
});
|
|
18501
|
+
};
|
|
18502
|
+
TransactionService.prototype.startGoodsToBePickedBatch = function (transIds) {
|
|
18503
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18504
|
+
return __generator(this, function (_a) {
|
|
18505
|
+
switch (_a.label) {
|
|
18506
|
+
case 0: return [4 /*yield*/, this.connector.startGoodsToBePickedBatch(transIds)];
|
|
18507
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
18508
|
+
}
|
|
18509
|
+
});
|
|
18510
|
+
});
|
|
18511
|
+
};
|
|
18512
|
+
TransactionService.prototype.startGoodsPickedBatch = function (transIds) {
|
|
18513
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18514
|
+
return __generator(this, function (_a) {
|
|
18515
|
+
switch (_a.label) {
|
|
18516
|
+
case 0: return [4 /*yield*/, this.connector.startGoodsPickedBatch(transIds)];
|
|
18517
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
18518
|
+
}
|
|
18519
|
+
});
|
|
18520
|
+
});
|
|
18521
|
+
};
|
|
18411
18522
|
TransactionService.prototype.startDeliveryNotesBatch = function (request) {
|
|
18412
18523
|
return __awaiter(this, void 0, void 0, function () {
|
|
18413
18524
|
return __generator(this, function (_a) {
|
|
@@ -28818,7 +28929,7 @@
|
|
|
28818
28929
|
try {
|
|
28819
28930
|
for (var _b = __values(this.transactionLines), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
28820
28931
|
var transactionLines = _c.value;
|
|
28821
|
-
if (transactionLines.lineType !==
|
|
28932
|
+
if (transactionLines.lineType !== transactionLineType_enum.TransactionLineType.TextLine) {
|
|
28822
28933
|
if (transactionLines.amount - transactionLines.articleLineStatus.quantityToBePicked > 0) {
|
|
28823
28934
|
this.hasArticlesToBePicked = true;
|
|
28824
28935
|
}
|
|
@@ -28883,8 +28994,10 @@
|
|
|
28883
28994
|
try {
|
|
28884
28995
|
for (var _b = __values(this.transactionLines), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
28885
28996
|
var transactionLines = _c.value;
|
|
28886
|
-
if (transactionLines.
|
|
28887
|
-
|
|
28997
|
+
if (transactionLines.lineType !== transactionLineType_enum.TransactionLineType.TextLine) {
|
|
28998
|
+
if (transactionLines.amount - transactionLines.articleLineStatus.quantityPicked > 0) {
|
|
28999
|
+
this.hasArticlesToPick = true;
|
|
29000
|
+
}
|
|
28888
29001
|
}
|
|
28889
29002
|
}
|
|
28890
29003
|
}
|
|
@@ -45037,6 +45150,7 @@
|
|
|
45037
45150
|
this.showProcessOrdersLoader = false;
|
|
45038
45151
|
this.showBatchOptions = false;
|
|
45039
45152
|
this.showShippingMethodDialog = false;
|
|
45153
|
+
this.showDatePickDialog = false;
|
|
45040
45154
|
this.showBatchProcessDialog = false;
|
|
45041
45155
|
this.checkedAvailability = false;
|
|
45042
45156
|
this.selectedTransactions = [];
|
|
@@ -45172,8 +45286,30 @@
|
|
|
45172
45286
|
TransactionSearchResultComponent.prototype.checkIfAllSelected = function () {
|
|
45173
45287
|
return this.searchService.transactions.every(function (item) { return item.selected; });
|
|
45174
45288
|
};
|
|
45175
|
-
TransactionSearchResultComponent.prototype.
|
|
45176
|
-
|
|
45289
|
+
TransactionSearchResultComponent.prototype.showAdditionalOptions = function () {
|
|
45290
|
+
var _this = this;
|
|
45291
|
+
var selectedTransactionsIds = this.selectedTransactions.map(function (transaction) { return transaction.transId; });
|
|
45292
|
+
if (this.batchCategory === 'allocate' || this.batchCategory === 'toewijzen') {
|
|
45293
|
+
this.showProcessOrdersLoader = true;
|
|
45294
|
+
this.transactionService.startToAllocateUnAllocatedLinesBatch(selectedTransactionsIds)
|
|
45295
|
+
.then(function () { return _this._showBatchProcessesStatus(); })
|
|
45296
|
+
.catch(function () { return _this.showProcessOrdersLoader = false; });
|
|
45297
|
+
}
|
|
45298
|
+
else if (this.batchCategory === 'to be picked') {
|
|
45299
|
+
this.showProcessOrdersLoader = true;
|
|
45300
|
+
this.transactionService.startGoodsToBePickedBatch(selectedTransactionsIds)
|
|
45301
|
+
.then(function () { return _this._showBatchProcessesStatus(); })
|
|
45302
|
+
.catch(function () { return _this.showProcessOrdersLoader = false; });
|
|
45303
|
+
}
|
|
45304
|
+
else if (this.batchCategory === 'picked') {
|
|
45305
|
+
this.showProcessOrdersLoader = true;
|
|
45306
|
+
this.transactionService.startGoodsPickedBatch(selectedTransactionsIds)
|
|
45307
|
+
.then(function () { return _this._showBatchProcessesStatus(); })
|
|
45308
|
+
.catch(function () { return _this.showProcessOrdersLoader = false; });
|
|
45309
|
+
}
|
|
45310
|
+
else {
|
|
45311
|
+
this.showShippingMethodDialog = true;
|
|
45312
|
+
}
|
|
45177
45313
|
};
|
|
45178
45314
|
TransactionSearchResultComponent.prototype.onToggleAllOrders = function (allSelected) {
|
|
45179
45315
|
var _this = this;
|
|
@@ -45218,7 +45354,7 @@
|
|
|
45218
45354
|
}
|
|
45219
45355
|
};
|
|
45220
45356
|
TransactionSearchResultComponent.prototype._showBatchOptions = function (category) {
|
|
45221
|
-
this.showBatchOptions = ['overview', 'purchase', 'delivery order', 'invoice', 'overzicht', 'inkoop', 'afleverbon', 'factuur'].includes(category);
|
|
45357
|
+
this.showBatchOptions = ['overview', 'purchase', 'allocate', 'to be picked', 'picked', 'delivery order', 'invoice', 'overzicht', 'inkoop', 'toewijzen', 'afleverbon', 'factuur'].includes(category);
|
|
45222
45358
|
};
|
|
45223
45359
|
TransactionSearchResultComponent.prototype._showBatchProcessesStatus = function () {
|
|
45224
45360
|
var _this = this;
|
|
@@ -45237,7 +45373,7 @@
|
|
|
45237
45373
|
TransactionSearchResultComponent.decorators = [
|
|
45238
45374
|
{ type: i0.Component, args: [{
|
|
45239
45375
|
selector: 'co-transaction-search-result',
|
|
45240
|
-
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"
|
|
45376
|
+
template: "\n <ng-container *ngIf=\"screenConfigLoaded\">\n <div class=\"actions-wrapper\"\n *ngIf=\"searchService.transactions?.length > 0 && salesOrdersPageActive && showBatchOptions\">\n <co-input-checkbox\n [model]=\"checkIfAllSelected()\"\n [label]=\"checkIfAllSelected() ? 'DESELECT_ALL' : 'SELECT_ALL_ORDERS' | localize\"\n (modelChange)=\"onToggleAllOrders(checkIfAllSelected())\">\n </co-input-checkbox>\n <co-quick-send-button\n *ngIf=\"checkIfSelected()\"\n [showSendMethodDialogIcon]=\"false\"\n [showLoader]=\"showProcessOrdersLoader\"\n (sendIconClicked)=\"showAdditionalOptions()\">\n </co-quick-send-button>\n </div>\n\n <div class=\"transaction-search-result-content-tiles-wrapper\" [ngClass]=\"fullscreen ? 'fullscreen' : 'sidebar'\"\n *ngIf=\"activeContentViewMode === contentViewModes.Tiles && !extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-tile\n [draggable]=\"draggableTransactions\"\n (dragstart)=\"dragStarted($event, transaction)\"\n (dragend)=\"dragEnd($event)\"\n [transaction]=\"transaction\"\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n [selected]=\"transaction.selected\"\n [class]=\"transaction === selectedTransaction ? 'selected' : ''\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\">\n </co-transaction-search-tile>\n </div>\n </div>\n\n <div class=\"transaction-search-result-content-grid-wrapper\"\n *ngIf=\"activeContentViewMode === contentViewModes.Grid && !extendedTransactionSearch\">\n <co-transaction-search-grid\n [showCheckbox]=\"salesOrdersPageActive && showBatchOptions\"\n (transactionClick)=\"onTransactionClick($event)\">\n </co-transaction-search-grid>\n </div>\n\n <div class=\"transaction-extended-search-result-tile-wrapper\" *ngIf=\"extendedTransactionSearch\">\n <div class=\"transaction-tile\" *ngFor=\"let transaction of searchService.transactions\">\n <co-transaction-search-sales-line-select-tile\n [transaction]=\"transaction\"\n (transactionClick)=\"onTransactionClick($event)\"\n (selectedClick)=\"onSelectedClick($event)\"\n [extendedTransactionSearch]=\"extendedTransactionSearch\">\n </co-transaction-search-sales-line-select-tile>\n </div>\n </div>\n\n <co-pagination-bar\n *ngIf=\"searchService.transactions?.length > 0\"\n [currentPage]=\"searchService.currentPage\"\n [itemsPerPage]=\"searchService.transactionsPerPage\"\n [totalItems]=\"searchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"fullscreen\"\n [paginationRange]=\"!fullscreen ? 6 : 8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n\n <div class=\"empty-state-wrapper\" *ngIf=\"searchService.transactions && searchService.resultCount === 0\">\n <span [textContent]=\"'0_RESULTS_FOUND' | localize\"></span>\n </div>\n </ng-container>\n\n <co-shipping-method-dialog\n *ngIf=\"showShippingMethodDialog\"\n [category]=\"batchCategory\"\n [selectedTransactions]=\"selectedTransactions\"\n (cancelClicked)=\"showShippingMethodDialog = false\"\n (saveClicked)=\"shippingDialogSaveClicked($event)\">\n </co-shipping-method-dialog>\n\n <co-batch-process-dialog\n *ngIf=\"showBatchProcessDialog\"\n @fadeInOut\n [batchJobProgress]=\"batchJobProgress\"\n (close)=\"showBatchProcessDialog = false\">\n </co-batch-process-dialog>\n\n <co-transaction-date-pick-dialog\n *ngIf=\"showDatePickDialog\"\n (cancelClicked)=\"showDatePickDialog = false\">\n </co-transaction-date-pick-dialog>\n ",
|
|
45241
45377
|
animations: [
|
|
45242
45378
|
animations.trigger('fadeInOut', [
|
|
45243
45379
|
animations.transition(':enter', [
|
|
@@ -46020,6 +46156,68 @@
|
|
|
46020
46156
|
},] }
|
|
46021
46157
|
];
|
|
46022
46158
|
|
|
46159
|
+
var TransactionDatePickDialogComponent = /** @class */ (function () {
|
|
46160
|
+
function TransactionDatePickDialogComponent(iconCacheService, transactionService) {
|
|
46161
|
+
this.iconCacheService = iconCacheService;
|
|
46162
|
+
this.transactionService = transactionService;
|
|
46163
|
+
this.saveClicked = new i0.EventEmitter();
|
|
46164
|
+
this.cancelClicked = new i0.EventEmitter();
|
|
46165
|
+
this.icons = Icon;
|
|
46166
|
+
}
|
|
46167
|
+
TransactionDatePickDialogComponent.prototype.showClass = function () {
|
|
46168
|
+
return true;
|
|
46169
|
+
};
|
|
46170
|
+
TransactionDatePickDialogComponent.prototype.saveButtonClicked = function () {
|
|
46171
|
+
this.saveClicked.emit();
|
|
46172
|
+
};
|
|
46173
|
+
TransactionDatePickDialogComponent.prototype.cancelButtonClicked = function () {
|
|
46174
|
+
this.cancelClicked.emit();
|
|
46175
|
+
};
|
|
46176
|
+
return TransactionDatePickDialogComponent;
|
|
46177
|
+
}());
|
|
46178
|
+
TransactionDatePickDialogComponent.decorators = [
|
|
46179
|
+
{ type: i0.Component, args: [{
|
|
46180
|
+
selector: 'co-transaction-date-pick-dialog',
|
|
46181
|
+
template: "\n <co-dialog\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"cancelButtonClicked()\">\n <ng-template #headerTemplate>\n <h2 class=\"header\" [textContent]=\"'SELECT_DATE' | localize\"></h2>\n </ng-template>\n\n <div class=\"save-dialog-contents\">\n <p>Select a picking date.</p>\n\n\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button\n class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"saveButtonClicked()\">\n </co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"cancelButtonClicked()\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
46182
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
46183
|
+
},] }
|
|
46184
|
+
];
|
|
46185
|
+
TransactionDatePickDialogComponent.ctorParameters = function () { return [
|
|
46186
|
+
{ type: IconCacheService },
|
|
46187
|
+
{ type: TransactionService }
|
|
46188
|
+
]; };
|
|
46189
|
+
TransactionDatePickDialogComponent.propDecorators = {
|
|
46190
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-date-pick-dialog',] }],
|
|
46191
|
+
saveClicked: [{ type: i0.Output }],
|
|
46192
|
+
cancelClicked: [{ type: i0.Output }]
|
|
46193
|
+
};
|
|
46194
|
+
|
|
46195
|
+
var TransactionDatePickDialogModule = /** @class */ (function () {
|
|
46196
|
+
function TransactionDatePickDialogModule() {
|
|
46197
|
+
}
|
|
46198
|
+
return TransactionDatePickDialogModule;
|
|
46199
|
+
}());
|
|
46200
|
+
TransactionDatePickDialogModule.decorators = [
|
|
46201
|
+
{ type: i0.NgModule, args: [{
|
|
46202
|
+
imports: [
|
|
46203
|
+
common.CommonModule,
|
|
46204
|
+
CoreModule,
|
|
46205
|
+
corecomponents_v12.CoDialogModule,
|
|
46206
|
+
corecomponents_v12.IconModule,
|
|
46207
|
+
PipeModule,
|
|
46208
|
+
corecomponents_v12.ButtonModule,
|
|
46209
|
+
corecomponents_v12.InputCheckboxModule,
|
|
46210
|
+
corecomponents_v12.ListOfValuesModule
|
|
46211
|
+
],
|
|
46212
|
+
declarations: [
|
|
46213
|
+
TransactionDatePickDialogComponent
|
|
46214
|
+
],
|
|
46215
|
+
exports: [
|
|
46216
|
+
TransactionDatePickDialogComponent
|
|
46217
|
+
]
|
|
46218
|
+
},] }
|
|
46219
|
+
];
|
|
46220
|
+
|
|
46023
46221
|
var TransactionSearchResultModule = /** @class */ (function () {
|
|
46024
46222
|
function TransactionSearchResultModule() {
|
|
46025
46223
|
}
|
|
@@ -46054,6 +46252,7 @@
|
|
|
46054
46252
|
corecomponents_v12.ButtonModule,
|
|
46055
46253
|
ShippingMethodDialogModule,
|
|
46056
46254
|
BatchProcessDialogModule,
|
|
46255
|
+
TransactionDatePickDialogModule,
|
|
46057
46256
|
TransactionSearchSalesLineSelectTileModule
|
|
46058
46257
|
],
|
|
46059
46258
|
declarations: [
|
|
@@ -47322,6 +47521,7 @@
|
|
|
47322
47521
|
TransactionStatusbarModule,
|
|
47323
47522
|
ShippingMethodDialogModule,
|
|
47324
47523
|
BatchProcessDialogModule,
|
|
47524
|
+
TransactionDatePickDialogModule,
|
|
47325
47525
|
SearchFeatureModule,
|
|
47326
47526
|
PipeModule,
|
|
47327
47527
|
router.RouterModule
|
|
@@ -51586,12 +51786,18 @@
|
|
|
51586
51786
|
TransactionHeaderPopupPaymentComponent.prototype.openPayment = function (event) {
|
|
51587
51787
|
var _a;
|
|
51588
51788
|
return __awaiter(this, void 0, void 0, function () {
|
|
51789
|
+
var lastTransaction;
|
|
51790
|
+
var _this = this;
|
|
51589
51791
|
return __generator(this, function (_b) {
|
|
51590
51792
|
switch (_b.label) {
|
|
51591
51793
|
case 0:
|
|
51592
51794
|
event.preventDefault();
|
|
51593
51795
|
event.stopPropagation();
|
|
51594
51796
|
this.transactionIdToPay = (_a = this.transactionIdToPay) !== null && _a !== void 0 ? _a : this.transactionInfo.id;
|
|
51797
|
+
if (this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount > 0; }).length === 1) {
|
|
51798
|
+
lastTransaction = this.orderPaymentAnalysis.filter(function (payment) { return payment.transactionKind === _this.transKind.SalesInvoice && payment.outstandingAmount > 0; })[0];
|
|
51799
|
+
this.transactionIdToPay = lastTransaction.transactionId;
|
|
51800
|
+
}
|
|
51595
51801
|
return [4 /*yield*/, this.lockTransaction()];
|
|
51596
51802
|
case 1:
|
|
51597
51803
|
if (_b.sent()) {
|
|
@@ -63411,6 +63617,8 @@
|
|
|
63411
63617
|
exports.TransactionCreateDateLabelModule = TransactionCreateDateLabelModule;
|
|
63412
63618
|
exports.TransactionCreateWizardComponent = TransactionCreateWizardComponent;
|
|
63413
63619
|
exports.TransactionCreateWizardModule = TransactionCreateWizardModule;
|
|
63620
|
+
exports.TransactionDatePickDialogComponent = TransactionDatePickDialogComponent;
|
|
63621
|
+
exports.TransactionDatePickDialogModule = TransactionDatePickDialogModule;
|
|
63414
63622
|
exports.TransactionDialogService = TransactionDialogService;
|
|
63415
63623
|
exports.TransactionEventService = TransactionEventService;
|
|
63416
63624
|
exports.TransactionFilterComponent = TransactionFilterComponent;
|