@colijnit/transaction 256.1.6 → 256.1.8
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 +154 -84
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/add-product/add-product.component.js +5 -5
- package/esm2015/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.component.js +9 -2
- package/esm2015/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-direct-sell.component.js +87 -68
- package/esm2015/lib/component/transaction/transaction.component.js +6 -2
- package/esm2015/lib/component/transaction-create-wizard/transaction-create-wizard.component.js +14 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-deposit-amount.component.js +16 -11
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +6 -1
- package/esm2015/lib/component/transaction-line/transaction-planning-line/transaction-planning-line.component.js +4 -4
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-button.component.js +2 -2
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +8 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +5 -5
- package/esm2015/lib/service/transaction-connector.service.js +5 -5
- package/esm2015/lib/service/transaction.service.js +11 -11
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +164 -108
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.component.d.ts +5 -1
- package/lib/component/dialog/transaction-line/dialog-transaction-line-warehouse-cc/dialog-direct-sell.component.d.ts +8 -4
- package/lib/component/transaction/transaction.component.d.ts +5 -1
- package/lib/component/transaction-create-wizard/transaction-create-wizard.component.d.ts +4 -1
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +4 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +2 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +2 -2
- package/lib/service/transaction-connector.service.d.ts +2 -2
- package/lib/service/transaction.service.d.ts +5 -5
- package/package.json +1 -1
- package/colijnit-transaction-256.1.4.tgz +0 -0
- package/colijnit-transaction-256.1.5.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.8";
|
|
37
|
+
this.publishDate = "1-11-2024 08:49:24";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -3845,12 +3845,13 @@
|
|
|
3845
3845
|
});
|
|
3846
3846
|
});
|
|
3847
3847
|
};
|
|
3848
|
-
TransactionConnectorAdapterService.prototype.addTransactionLine = function (uuid, articleNo, quantity, aboveLineNr, belowLineNr) {
|
|
3848
|
+
TransactionConnectorAdapterService.prototype.addTransactionLine = function (uuid, articleNo, quantity, aboveLineNr, belowLineNr, showLoader) {
|
|
3849
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
3849
3850
|
return __awaiter(this, void 0, void 0, function () {
|
|
3850
3851
|
var _this = this;
|
|
3851
3852
|
return __generator(this, function (_a) {
|
|
3852
3853
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3853
|
-
return _this.connector.addTransactionLine(uuid, articleNo, quantity, aboveLineNr, belowLineNr).then(function (result) {
|
|
3854
|
+
return _this.connector.addTransactionLine(uuid, articleNo, quantity, aboveLineNr, belowLineNr, showLoader).then(function (result) {
|
|
3854
3855
|
if (result.validationResult && result.validationResult.success) {
|
|
3855
3856
|
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
3856
3857
|
}
|
|
@@ -8149,12 +8150,13 @@
|
|
|
8149
8150
|
});
|
|
8150
8151
|
});
|
|
8151
8152
|
};
|
|
8152
|
-
TransactionConnectorAdapterService.prototype.addExternalCatalogArticlesToTransaction = function (uuid, catalogId, rawData) {
|
|
8153
|
+
TransactionConnectorAdapterService.prototype.addExternalCatalogArticlesToTransaction = function (uuid, catalogId, rawData, showLoader) {
|
|
8154
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
8153
8155
|
return __awaiter(this, void 0, void 0, function () {
|
|
8154
8156
|
var response;
|
|
8155
8157
|
return __generator(this, function (_a) {
|
|
8156
8158
|
switch (_a.label) {
|
|
8157
|
-
case 0: return [4 /*yield*/, this.connector.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData)];
|
|
8159
|
+
case 0: return [4 /*yield*/, this.connector.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData, showLoader)];
|
|
8158
8160
|
case 1:
|
|
8159
8161
|
response = _a.sent();
|
|
8160
8162
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -9477,10 +9479,11 @@
|
|
|
9477
9479
|
});
|
|
9478
9480
|
});
|
|
9479
9481
|
};
|
|
9480
|
-
TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleNo, quantity, aboveLineNr, belowLineNr) {
|
|
9482
|
+
TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleNo, quantity, aboveLineNr, belowLineNr, showLoader) {
|
|
9483
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
9481
9484
|
return __awaiter(this, void 0, void 0, function () {
|
|
9482
9485
|
return __generator(this, function (_a) {
|
|
9483
|
-
return [2 /*return*/, this._adapterService.addTransactionLine(uuid, articleNo, quantity, aboveLineNr, belowLineNr)];
|
|
9486
|
+
return [2 /*return*/, this._adapterService.addTransactionLine(uuid, articleNo, quantity, aboveLineNr, belowLineNr, showLoader)];
|
|
9484
9487
|
});
|
|
9485
9488
|
});
|
|
9486
9489
|
};
|
|
@@ -11180,11 +11183,12 @@
|
|
|
11180
11183
|
});
|
|
11181
11184
|
});
|
|
11182
11185
|
};
|
|
11183
|
-
TransactionConnectorService.prototype.addExternalCatalogArticlesToTransaction = function (uuid, catalogId, rawData) {
|
|
11186
|
+
TransactionConnectorService.prototype.addExternalCatalogArticlesToTransaction = function (uuid, catalogId, rawData, showLoader) {
|
|
11187
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
11184
11188
|
return __awaiter(this, void 0, void 0, function () {
|
|
11185
11189
|
return __generator(this, function (_a) {
|
|
11186
11190
|
switch (_a.label) {
|
|
11187
|
-
case 0: return [4 /*yield*/, this._adapterService.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData)];
|
|
11191
|
+
case 0: return [4 /*yield*/, this._adapterService.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData, showLoader)];
|
|
11188
11192
|
case 1: return [2 /*return*/, _a.sent()];
|
|
11189
11193
|
}
|
|
11190
11194
|
});
|
|
@@ -16060,16 +16064,17 @@
|
|
|
16060
16064
|
});
|
|
16061
16065
|
});
|
|
16062
16066
|
};
|
|
16063
|
-
TransactionService.prototype.addArticle = function (articleNo, quantity, aboveLineNr, belowLineNr, saveTransaction) {
|
|
16067
|
+
TransactionService.prototype.addArticle = function (articleNo, quantity, aboveLineNr, belowLineNr, saveTransaction, showLoader) {
|
|
16064
16068
|
if (quantity === void 0) { quantity = 1; }
|
|
16065
16069
|
if (aboveLineNr === void 0) { aboveLineNr = 0; }
|
|
16066
16070
|
if (belowLineNr === void 0) { belowLineNr = 0; }
|
|
16067
16071
|
if (saveTransaction === void 0) { saveTransaction = true; }
|
|
16072
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
16068
16073
|
return __awaiter(this, void 0, void 0, function () {
|
|
16069
16074
|
var response;
|
|
16070
16075
|
return __generator(this, function (_a) {
|
|
16071
16076
|
switch (_a.label) {
|
|
16072
|
-
case 0: return [4 /*yield*/, this.addTransactionLine(articleNo, quantity, aboveLineNr, belowLineNr)];
|
|
16077
|
+
case 0: return [4 /*yield*/, this.addTransactionLine(articleNo, quantity, aboveLineNr, belowLineNr, showLoader)];
|
|
16073
16078
|
case 1:
|
|
16074
16079
|
response = _a.sent();
|
|
16075
16080
|
if (response !== null) {
|
|
@@ -16084,10 +16089,11 @@
|
|
|
16084
16089
|
});
|
|
16085
16090
|
});
|
|
16086
16091
|
};
|
|
16087
|
-
TransactionService.prototype.addTransactionLine = function (articleNo, quantity, aboveLineNr, belowLineNr) {
|
|
16092
|
+
TransactionService.prototype.addTransactionLine = function (articleNo, quantity, aboveLineNr, belowLineNr, showLoader) {
|
|
16088
16093
|
if (quantity === void 0) { quantity = 1; }
|
|
16089
16094
|
if (aboveLineNr === void 0) { aboveLineNr = 0; }
|
|
16090
16095
|
if (belowLineNr === void 0) { belowLineNr = 0; }
|
|
16096
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
16091
16097
|
return __awaiter(this, void 0, void 0, function () {
|
|
16092
16098
|
var created, lockSuccess, response;
|
|
16093
16099
|
return __generator(this, function (_a) {
|
|
@@ -16103,7 +16109,7 @@
|
|
|
16103
16109
|
lockSuccess = _a.sent();
|
|
16104
16110
|
if (!lockSuccess) return [3 /*break*/, 4];
|
|
16105
16111
|
this.transactionLineAdded = true;
|
|
16106
|
-
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, articleNo, quantity, aboveLineNr, belowLineNr)];
|
|
16112
|
+
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, articleNo, quantity, aboveLineNr, belowLineNr, showLoader)];
|
|
16107
16113
|
case 3:
|
|
16108
16114
|
response = _a.sent();
|
|
16109
16115
|
return [2 /*return*/, response];
|
|
@@ -16131,11 +16137,12 @@
|
|
|
16131
16137
|
});
|
|
16132
16138
|
});
|
|
16133
16139
|
};
|
|
16134
|
-
TransactionService.prototype.addExternalCatalogArticle = function (request) {
|
|
16140
|
+
TransactionService.prototype.addExternalCatalogArticle = function (request, showLoader) {
|
|
16141
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
16135
16142
|
return __awaiter(this, void 0, void 0, function () {
|
|
16136
16143
|
return __generator(this, function (_a) {
|
|
16137
16144
|
switch (_a.label) {
|
|
16138
|
-
case 0: return [4 /*yield*/, this.addExternalCatalogArticleWithRawData(request.catalogId, request.articleJson)];
|
|
16145
|
+
case 0: return [4 /*yield*/, this.addExternalCatalogArticleWithRawData(request.catalogId, request.articleJson, showLoader)];
|
|
16139
16146
|
case 1:
|
|
16140
16147
|
_a.sent();
|
|
16141
16148
|
return [2 /*return*/];
|
|
@@ -16143,14 +16150,15 @@
|
|
|
16143
16150
|
});
|
|
16144
16151
|
});
|
|
16145
16152
|
};
|
|
16146
|
-
TransactionService.prototype.addExternalCatalogArticleFromGoodId = function (jsonArticleString) {
|
|
16153
|
+
TransactionService.prototype.addExternalCatalogArticleFromGoodId = function (jsonArticleString, showLoader) {
|
|
16154
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
16147
16155
|
return __awaiter(this, void 0, void 0, function () {
|
|
16148
16156
|
var jsonArticleObject, response, handled;
|
|
16149
16157
|
return __generator(this, function (_a) {
|
|
16150
16158
|
switch (_a.label) {
|
|
16151
16159
|
case 0:
|
|
16152
16160
|
jsonArticleObject = JSON.parse(jsonArticleString);
|
|
16153
|
-
return [4 /*yield*/, this.addTransactionLine(jsonArticleObject.sku, jsonArticleObject.quantity)];
|
|
16161
|
+
return [4 /*yield*/, this.addTransactionLine(jsonArticleObject.sku, jsonArticleObject.quantity, 0, 0, showLoader)];
|
|
16154
16162
|
case 1:
|
|
16155
16163
|
response = _a.sent();
|
|
16156
16164
|
return [4 /*yield*/, this.handleLineOperationStatuses(response, true)];
|
|
@@ -16166,7 +16174,8 @@
|
|
|
16166
16174
|
});
|
|
16167
16175
|
});
|
|
16168
16176
|
};
|
|
16169
|
-
TransactionService.prototype.addExternalCatalogArticleWithRawData = function (catalogId, jsonArticleString) {
|
|
16177
|
+
TransactionService.prototype.addExternalCatalogArticleWithRawData = function (catalogId, jsonArticleString, showLoader) {
|
|
16178
|
+
if (showLoader === void 0) { showLoader = false; }
|
|
16170
16179
|
return __awaiter(this, void 0, void 0, function () {
|
|
16171
16180
|
var created, lockSuccess, response;
|
|
16172
16181
|
return __generator(this, function (_a) {
|
|
@@ -16182,7 +16191,7 @@
|
|
|
16182
16191
|
lockSuccess = _a.sent();
|
|
16183
16192
|
if (!lockSuccess) return [3 /*break*/, 5];
|
|
16184
16193
|
this.transactionLineAdded = true;
|
|
16185
|
-
return [4 /*yield*/, this.connector.addExternalCatalogArticlesToTransaction(this.currentTransaction.transactionInfo.uuid, catalogId, jsonArticleString)];
|
|
16194
|
+
return [4 /*yield*/, this.connector.addExternalCatalogArticlesToTransaction(this.currentTransaction.transactionInfo.uuid, catalogId, jsonArticleString, showLoader)];
|
|
16186
16195
|
case 3:
|
|
16187
16196
|
response = _a.sent();
|
|
16188
16197
|
return [4 /*yield*/, this.handleLineOperationStatuses(response, true)];
|
|
@@ -28029,7 +28038,7 @@
|
|
|
28029
28038
|
TransactionPlanningLineComponent.decorators = [
|
|
28030
28039
|
{ type: i0.Component, args: [{
|
|
28031
28040
|
selector: "co-planning-overview-line",
|
|
28032
|
-
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"
|
|
28041
|
+
template: "\n <co-transaction-base-line\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [isFirst]=\"isFirst\"\n [draggable]=\"!linePlanned\"\n (dragstart)=\"dragStarted($event)\"\n [checkbox]=\"true\"\n [checkboxValue]=\"transactionLine.selected || !allowPartialDelivery()\"\n [checkboxReadonly]=\"!allowPartialDelivery()\"\n (checkboxValueChanged)=\"handleCheckBoxValueChanged($event, transactionLine)\"\n (click)=\"handleLineClicked($event)\"\n observeVisibility #observer=visibilityObserve\n (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <ng-container *ngIf=\"transactionLine.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'COMMISSION_CODE' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-commission-button\n [screenConfigurationObject]=\"cfgNames.LineCommission\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-commission-button>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderPlanning\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-delivery-button>\n <co-transaction-line-delivery-date-button class=\"transaction-line-delivery-date two-column\"\n [screenConfigurationObject]=\"cfgNames.LineDeliveryDate\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n ></co-transaction-line-delivery-date-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'TOTALS_AND_DISCOUNT' | localize\"\n *ngIf=\"isFirst\"></span>\n <co-transaction-line-vat-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineVat\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-vat-button>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n ></co-transaction-line-price>\n <co-transaction-line-discount-button *ngIf=\"!preview\"\n [screenConfigurationObject]=\"cfgNames.LineDiscount\"\n [configNames]=\"discountConfigNames\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-discount-button>\n <div class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-amount>\n </div>\n <co-editable-label class=\"transaction-line-totals-total price\"\n [screenConfigurationObject]=\"cfgNames.LineNetLineTotal\"\n [model]=\"transactionLine.displayNetLineTotal | coCurrency: true\"\n [editModel]=\"transactionLine.displayNetLineTotal\"\n [commit]=\"!readonly\"\n ></co-editable-label>\n </div>\n </div>\n </div>\n </ng-container>\n </co-transaction-base-line>\n ",
|
|
28033
28042
|
encapsulation: i0.ViewEncapsulation.None
|
|
28034
28043
|
},] }
|
|
28035
28044
|
];
|
|
@@ -32110,7 +32119,7 @@
|
|
|
32110
32119
|
};
|
|
32111
32120
|
TransactionLineSupplierButtonComponent.prototype._getSupplierDescription = function () {
|
|
32112
32121
|
var _this = this;
|
|
32113
|
-
if (this.transactionLine && this.transactionLine.isArticle && this.transactionLine.supplierDescription === undefined
|
|
32122
|
+
if (this.transactionLine && this.transactionLine.isArticle && this.transactionLine.supplierDescription === undefined) {
|
|
32114
32123
|
this._relationService.getRelationById(this.transactionLine.supplierId).then(function (relations) {
|
|
32115
32124
|
var relation = relations && relations.length > 0 ? relations[0] : null;
|
|
32116
32125
|
_this.transactionLine.supplierDescription = relation ? relation.displayName : "";
|
|
@@ -39226,7 +39235,7 @@
|
|
|
39226
39235
|
TransactionHeaderDepositAmountComponent.decorators = [
|
|
39227
39236
|
{ type: i0.Component, args: [{
|
|
39228
39237
|
selector: "co-transaction-header-deposit-amount",
|
|
39229
|
-
template: "\n <span
|
|
39238
|
+
template: "\n <span\n *ngIf=\"(!editMode || headerReadonly) && !defaultEditMode\"\n [textContent]=\"(transactionInfo.depositAmount | coCurrency) || '...'\"\n [tooltip]=\"tooltipMessage\">\n </span>\n <co-input-text\n #input\n *ngIf=\"editMode || defaultEditMode\"\n [placeholder]=\"showLabel ? ('DOWNPAYMENT' | localize) : ''\"\n [showSaveCancel]=\"!headerReadonly\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly || headerReadonly\"\n [model]=\"transactionInfo.depositAmount | coCurrency\"\n (blur)=\"editMode = false\">\n </co-input-text>\n ",
|
|
39230
39239
|
providers: [{
|
|
39231
39240
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
39232
39241
|
useExisting: i0.forwardRef(function () { return TransactionHeaderDepositAmountComponent; })
|
|
@@ -40458,13 +40467,15 @@
|
|
|
40458
40467
|
]; };
|
|
40459
40468
|
|
|
40460
40469
|
var DialogCatalogComponent = /** @class */ (function () {
|
|
40461
|
-
function DialogCatalogComponent(_transactionService, _catalogService, _catalogEventService, _articleService, _dialogService, _screenConfigService, iconCacheService) {
|
|
40470
|
+
function DialogCatalogComponent(_transactionService, _catalogService, _catalogEventService, _articleService, _dialogService, _screenConfigService, _productConnectorAdapterService, _transactionEventService, iconCacheService) {
|
|
40462
40471
|
this._transactionService = _transactionService;
|
|
40463
40472
|
this._catalogService = _catalogService;
|
|
40464
40473
|
this._catalogEventService = _catalogEventService;
|
|
40465
40474
|
this._articleService = _articleService;
|
|
40466
40475
|
this._dialogService = _dialogService;
|
|
40467
40476
|
this._screenConfigService = _screenConfigService;
|
|
40477
|
+
this._productConnectorAdapterService = _productConnectorAdapterService;
|
|
40478
|
+
this._transactionEventService = _transactionEventService;
|
|
40468
40479
|
this.iconCacheService = iconCacheService;
|
|
40469
40480
|
this.icons = Icon;
|
|
40470
40481
|
this.handleAddArticleInternally = true;
|
|
@@ -40511,6 +40522,8 @@
|
|
|
40511
40522
|
case 3:
|
|
40512
40523
|
this._subs.push(this._catalogEventService.stockDetailsClick.subscribe(function (article) {
|
|
40513
40524
|
_this.handleStockButtonClick(article);
|
|
40525
|
+
}), this._productConnectorAdapterService.showLoader.subscribe(function (show) {
|
|
40526
|
+
_this._transactionEventService.showLoader.next(show);
|
|
40514
40527
|
}));
|
|
40515
40528
|
return [2 /*return*/];
|
|
40516
40529
|
}
|
|
@@ -40691,6 +40704,8 @@
|
|
|
40691
40704
|
{ type: ArticleService },
|
|
40692
40705
|
{ type: DialogService },
|
|
40693
40706
|
{ type: CatalogScreenConfigurationService },
|
|
40707
|
+
{ type: product.ProductConnectorAdapterService },
|
|
40708
|
+
{ type: TransactionEventService },
|
|
40694
40709
|
{ type: IconCacheService }
|
|
40695
40710
|
]; };
|
|
40696
40711
|
DialogCatalogComponent.propDecorators = {
|
|
@@ -42597,6 +42612,8 @@
|
|
|
42597
42612
|
this.transactionPlanning = false;
|
|
42598
42613
|
this.cashRegistersDirty = false;
|
|
42599
42614
|
this.relationChange = new i0.EventEmitter();
|
|
42615
|
+
//This output exists for bundle purposes.
|
|
42616
|
+
this.serviceRequested = new i0.EventEmitter();
|
|
42600
42617
|
this.showQuickAccess = true;
|
|
42601
42618
|
this.showButtonBar = true;
|
|
42602
42619
|
this.activeViewMode = corecomponents_v12.ContentViewMode.List;
|
|
@@ -42841,6 +42858,8 @@
|
|
|
42841
42858
|
/*this._transactionConnectorService.createServiceOrderWithSourceTransactionLine(request).then((result: TransactionInfoResponse) => {
|
|
42842
42859
|
if(result) {*/
|
|
42843
42860
|
this._transactionEventService.requestCreateServiceOrderFromTransactionLine.next({ transaction: this.transaction, lineNr: lineNr });
|
|
42861
|
+
//added for bundle purposes so we can pass the value along without the event service. Use the event service in all other cases.
|
|
42862
|
+
this.serviceRequested.emit({ transaction: this.transaction.transactionInfo.transactionNr, lineNr: lineNr });
|
|
42844
42863
|
/* }
|
|
42845
42864
|
});*/
|
|
42846
42865
|
}
|
|
@@ -43013,6 +43032,7 @@
|
|
|
43013
43032
|
transactionPlanning: [{ type: i0.Input }],
|
|
43014
43033
|
cashRegistersDirty: [{ type: i0.Input }],
|
|
43015
43034
|
relationChange: [{ type: i0.Output }],
|
|
43035
|
+
serviceRequested: [{ type: i0.Output }],
|
|
43016
43036
|
showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
|
|
43017
43037
|
showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
|
|
43018
43038
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction-internal',] }],
|
|
@@ -49778,6 +49798,16 @@
|
|
|
49778
49798
|
this._subs = [];
|
|
49779
49799
|
this._subs.push(this._transactionEventService.createTransaction.subscribe(function () { return _this.addTransactionClick.emit(); }));
|
|
49780
49800
|
}
|
|
49801
|
+
Object.defineProperty(TransactionSearchComponent.prototype, "overrideSearchType", {
|
|
49802
|
+
//Only use this for bundle purposes please!
|
|
49803
|
+
set: function (kind) {
|
|
49804
|
+
if (!(kind === null || kind === undefined)) {
|
|
49805
|
+
this.transactionSearchService.transactionType = kind;
|
|
49806
|
+
}
|
|
49807
|
+
},
|
|
49808
|
+
enumerable: false,
|
|
49809
|
+
configurable: true
|
|
49810
|
+
});
|
|
49781
49811
|
TransactionSearchComponent.prototype.showClass = function () {
|
|
49782
49812
|
return true;
|
|
49783
49813
|
};
|
|
@@ -49816,6 +49846,7 @@
|
|
|
49816
49846
|
]; };
|
|
49817
49847
|
TransactionSearchComponent.propDecorators = {
|
|
49818
49848
|
draggableTransactions: [{ type: i0.Input }],
|
|
49849
|
+
overrideSearchType: [{ type: i0.Input }],
|
|
49819
49850
|
transactionClick: [{ type: i0.Output }],
|
|
49820
49851
|
addTransactionClick: [{ type: i0.Output }],
|
|
49821
49852
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
@@ -52250,7 +52281,7 @@
|
|
|
52250
52281
|
if (!(typeof data.article === 'string')) return [3 /*break*/, 3];
|
|
52251
52282
|
article = JSON.parse(data.article);
|
|
52252
52283
|
if (!(article.selectorData && article.selectorData.compositions)) return [3 /*break*/, 2];
|
|
52253
|
-
return [4 /*yield*/, this.transactionService.addArticle(article.selectorData.compositions[0].compositionArticleNo, data.quantity, 0, 0
|
|
52284
|
+
return [4 /*yield*/, this.transactionService.addArticle(article.selectorData.compositions[0].compositionArticleNo, data.quantity, 0, 0, true, true)];
|
|
52254
52285
|
case 1:
|
|
52255
52286
|
_a.sent();
|
|
52256
52287
|
_a.label = 2;
|
|
@@ -52258,7 +52289,7 @@
|
|
|
52258
52289
|
case 3:
|
|
52259
52290
|
articleNr = data.article['articleNr'] || data.article['articleNumber'] || data.article['articleNo'];
|
|
52260
52291
|
if (!articleNr) return [3 /*break*/, 5];
|
|
52261
|
-
return [4 /*yield*/, this.transactionService.addArticle(articleNr, data.quantity, 0, 0
|
|
52292
|
+
return [4 /*yield*/, this.transactionService.addArticle(articleNr, data.quantity, 0, 0, true, true)];
|
|
52262
52293
|
case 4:
|
|
52263
52294
|
_a.sent();
|
|
52264
52295
|
_a.label = 5;
|
|
@@ -52328,7 +52359,7 @@
|
|
|
52328
52359
|
request.catalogId = iFrameFeedbackObject.catalog;
|
|
52329
52360
|
request.catalogType = iFrameFeedbackObject.sourceType;
|
|
52330
52361
|
request.articleJson = iFrameFeedbackObject.jsonString;
|
|
52331
|
-
return [4 /*yield*/, this.transactionService.addExternalCatalogArticle(request)];
|
|
52362
|
+
return [4 /*yield*/, this.transactionService.addExternalCatalogArticle(request, true)];
|
|
52332
52363
|
case 1:
|
|
52333
52364
|
_a.sent();
|
|
52334
52365
|
return [2 /*return*/];
|
|
@@ -52347,7 +52378,7 @@
|
|
|
52347
52378
|
request.catalogId = data.catalog;
|
|
52348
52379
|
request.catalogType = externalCatalogTypes_enum.ExternalCatalogTypes.CatalogFarm;
|
|
52349
52380
|
request.articleJson = data.jsonString;
|
|
52350
|
-
return [4 /*yield*/, this.transactionService.addExternalCatalogArticle(request)];
|
|
52381
|
+
return [4 /*yield*/, this.transactionService.addExternalCatalogArticle(request, true)];
|
|
52351
52382
|
case 1:
|
|
52352
52383
|
_a.sent();
|
|
52353
52384
|
return [2 /*return*/];
|
|
@@ -55409,6 +55440,8 @@
|
|
|
55409
55440
|
this.saveCancelMovable = false;
|
|
55410
55441
|
this.transactionPlanning = false;
|
|
55411
55442
|
this.cashRegistersDirty = false;
|
|
55443
|
+
//This output exists for bundle purposes.
|
|
55444
|
+
this.serviceRequested = new i0.EventEmitter();
|
|
55412
55445
|
this.screenConfigLoaded = false;
|
|
55413
55446
|
this._fetching = false;
|
|
55414
55447
|
}
|
|
@@ -55525,7 +55558,7 @@
|
|
|
55525
55558
|
TransactionComponent.decorators = [
|
|
55526
55559
|
{ type: i0.Component, args: [{
|
|
55527
55560
|
selector: 'co-transaction',
|
|
55528
|
-
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n ></co-transaction-internal>\n ",
|
|
55561
|
+
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [(relation)]=\"relation\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [cashRegistersDirty] = cashRegistersDirty\n (serviceRequested)=\"this.serviceRequested.emit($event)\"\n ></co-transaction-internal>\n ",
|
|
55529
55562
|
providers: [
|
|
55530
55563
|
{ provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
|
|
55531
55564
|
],
|
|
@@ -55557,6 +55590,7 @@
|
|
|
55557
55590
|
saveCancelMovable: [{ type: i0.Input }],
|
|
55558
55591
|
transactionPlanning: [{ type: i0.Input }],
|
|
55559
55592
|
cashRegistersDirty: [{ type: i0.Input }],
|
|
55593
|
+
serviceRequested: [{ type: i0.Output }],
|
|
55560
55594
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
|
|
55561
55595
|
checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
|
|
55562
55596
|
checkRollBack: [{ type: i0.HostListener, args: ['window:unload',] }]
|
|
@@ -55730,40 +55764,9 @@
|
|
|
55730
55764
|
this.showDirectSellModal = new i0.EventEmitter();
|
|
55731
55765
|
this.icons = Icon;
|
|
55732
55766
|
this.directSellSuppliers = [];
|
|
55733
|
-
this.
|
|
55734
|
-
this.
|
|
55735
|
-
|
|
55736
|
-
availableStock: 10,
|
|
55737
|
-
supplierStockForecasts: [
|
|
55738
|
-
{
|
|
55739
|
-
purchaseOrderNumber: 1,
|
|
55740
|
-
amount: 11,
|
|
55741
|
-
amountReserved: 7,
|
|
55742
|
-
amountAvailable: 4,
|
|
55743
|
-
deliveryDate: new Date(),
|
|
55744
|
-
confirmedDeliveryDate: new Date(),
|
|
55745
|
-
arrivalDate: new Date()
|
|
55746
|
-
},
|
|
55747
|
-
{
|
|
55748
|
-
purchaseOrderNumber: 2,
|
|
55749
|
-
amount: 14,
|
|
55750
|
-
amountReserved: 7,
|
|
55751
|
-
amountAvailable: 7,
|
|
55752
|
-
deliveryDate: new Date(),
|
|
55753
|
-
confirmedDeliveryDate: new Date(),
|
|
55754
|
-
arrivalDate: new Date()
|
|
55755
|
-
},
|
|
55756
|
-
{
|
|
55757
|
-
purchaseOrderNumber: 3,
|
|
55758
|
-
amount: 5,
|
|
55759
|
-
amountReserved: 1,
|
|
55760
|
-
amountAvailable: 4,
|
|
55761
|
-
deliveryDate: new Date(),
|
|
55762
|
-
confirmedDeliveryDate: new Date(),
|
|
55763
|
-
arrivalDate: new Date()
|
|
55764
|
-
}
|
|
55765
|
-
]
|
|
55766
|
-
};
|
|
55767
|
+
this.availableStockCollection = new supplierArticleStockForecast.SupplierArticleStockForecast();
|
|
55768
|
+
this.formValid = false;
|
|
55769
|
+
this.fromStock = false;
|
|
55767
55770
|
}
|
|
55768
55771
|
DialogDirectSellComponent.prototype.ngOnInit = function () {
|
|
55769
55772
|
this._getDirectSellSuppliers();
|
|
@@ -55771,36 +55774,83 @@
|
|
|
55771
55774
|
DialogDirectSellComponent.prototype.hideModal = function () {
|
|
55772
55775
|
this.showDirectSellModal.emit(false);
|
|
55773
55776
|
};
|
|
55774
|
-
DialogDirectSellComponent.prototype.handleSupplierChanged = function (
|
|
55777
|
+
DialogDirectSellComponent.prototype.handleSupplierChanged = function () {
|
|
55775
55778
|
this._getAvailableStock();
|
|
55776
55779
|
};
|
|
55777
|
-
DialogDirectSellComponent.prototype.
|
|
55780
|
+
DialogDirectSellComponent.prototype.onStockChecked = function (event) {
|
|
55781
|
+
var _a;
|
|
55782
|
+
event.preventDefault();
|
|
55783
|
+
event.stopPropagation();
|
|
55784
|
+
if (this.selectedSupplier && ((_a = this.availableStockCollection.supplierStockForecasts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
55785
|
+
this.checkboxes.forEach(function (po) { return po.model = false; });
|
|
55786
|
+
}
|
|
55787
|
+
this.fromStock = !this.fromStock;
|
|
55788
|
+
if (this.fromStock) {
|
|
55789
|
+
this.selectedForecast = null;
|
|
55790
|
+
}
|
|
55791
|
+
this.formValid = this.fromStock;
|
|
55792
|
+
};
|
|
55793
|
+
DialogDirectSellComponent.prototype.toggleStockChecked = function (event) {
|
|
55794
|
+
var _a;
|
|
55795
|
+
if (this.selectedSupplier && ((_a = this.availableStockCollection.supplierStockForecasts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
55796
|
+
this.checkboxes.forEach(function (po) { return po.model = false; });
|
|
55797
|
+
}
|
|
55798
|
+
this.formValid = event;
|
|
55799
|
+
};
|
|
55800
|
+
DialogDirectSellComponent.prototype.handleChecked = function (index, selectedForecast, event) {
|
|
55801
|
+
var _a;
|
|
55778
55802
|
event.preventDefault();
|
|
55779
55803
|
event.stopPropagation();
|
|
55780
|
-
|
|
55781
|
-
|
|
55804
|
+
if (this.selectedSupplier && ((_a = this.availableStockCollection.supplierStockForecasts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
55805
|
+
this.checkboxes.forEach(function (po) { return po.model = false; });
|
|
55806
|
+
}
|
|
55807
|
+
var selectedCheckbox = this.checkboxes.toArray()[index];
|
|
55808
|
+
selectedCheckbox.model = !selectedCheckbox.model;
|
|
55809
|
+
if (selectedCheckbox.model) {
|
|
55810
|
+
this.selectedForecast = selectedForecast;
|
|
55811
|
+
}
|
|
55812
|
+
this.fromStock = false;
|
|
55813
|
+
this.formValid = selectedCheckbox.model;
|
|
55814
|
+
};
|
|
55815
|
+
DialogDirectSellComponent.prototype.toggleForecastChecked = function (event) {
|
|
55816
|
+
var _a;
|
|
55817
|
+
if (this.selectedSupplier && ((_a = this.availableStockCollection.supplierStockForecasts) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
55818
|
+
this.checkboxes.forEach(function (po) { return po.model = false; });
|
|
55819
|
+
}
|
|
55820
|
+
this.fromStock = false;
|
|
55821
|
+
this.formValid = event;
|
|
55782
55822
|
};
|
|
55783
55823
|
DialogDirectSellComponent.prototype.onOkClick = function () {
|
|
55784
55824
|
var changeLineDirectSellRequest = {
|
|
55785
55825
|
transactionUuid: this.transactionUuid,
|
|
55786
55826
|
lineUuid: this.lineUuid,
|
|
55787
|
-
newDirectSell:
|
|
55827
|
+
newDirectSell: !this.fromStock,
|
|
55828
|
+
newSupplierId: this.selectedSupplier.relationId,
|
|
55829
|
+
newPurchaseOrderNumber: this.fromStock ? null : this.selectedForecast.purchaseOrderNumber.toString(),
|
|
55830
|
+
newStockForecastDeliveryDate: this.fromStock ? null : this.selectedForecast.deliveryDate
|
|
55788
55831
|
};
|
|
55789
|
-
|
|
55790
|
-
|
|
55791
|
-
|
|
55832
|
+
this.transactionService.changeLineDirectSell(changeLineDirectSellRequest).then(function (response) {
|
|
55833
|
+
console.log(response);
|
|
55834
|
+
});
|
|
55792
55835
|
this.hideModal();
|
|
55793
55836
|
};
|
|
55794
55837
|
DialogDirectSellComponent.prototype._getAvailableStock = function () {
|
|
55795
55838
|
return __awaiter(this, void 0, void 0, function () {
|
|
55796
|
-
|
|
55797
|
-
|
|
55798
|
-
|
|
55799
|
-
|
|
55800
|
-
|
|
55801
|
-
|
|
55802
|
-
|
|
55803
|
-
|
|
55839
|
+
var _this = this;
|
|
55840
|
+
return __generator(this, function (_b) {
|
|
55841
|
+
switch (_b.label) {
|
|
55842
|
+
case 0:
|
|
55843
|
+
// TODO this method doesn't retrieve any data for now, until we fix ESB instance as this is a call to a third party
|
|
55844
|
+
return [4 /*yield*/, this.transactionService.getAvailableStockForSupplier(this.goodId, this.selectedSupplier.relationId).then(function (availableStock) {
|
|
55845
|
+
if (availableStock) {
|
|
55846
|
+
_this.availableStockCollection = availableStock;
|
|
55847
|
+
}
|
|
55848
|
+
})];
|
|
55849
|
+
case 1:
|
|
55850
|
+
// TODO this method doesn't retrieve any data for now, until we fix ESB instance as this is a call to a third party
|
|
55851
|
+
_b.sent();
|
|
55852
|
+
return [2 /*return*/];
|
|
55853
|
+
}
|
|
55804
55854
|
});
|
|
55805
55855
|
});
|
|
55806
55856
|
};
|
|
@@ -55808,6 +55858,9 @@
|
|
|
55808
55858
|
var _this = this;
|
|
55809
55859
|
this._relationService.getDirectSellSuppliers().then(function (suppliers) {
|
|
55810
55860
|
_this.directSellSuppliers = suppliers;
|
|
55861
|
+
if (_this.directSellSuppliers.length === 1) {
|
|
55862
|
+
_this.selectedSupplier = _this.directSellSuppliers[0];
|
|
55863
|
+
}
|
|
55811
55864
|
});
|
|
55812
55865
|
};
|
|
55813
55866
|
return DialogDirectSellComponent;
|
|
@@ -55815,7 +55868,7 @@
|
|
|
55815
55868
|
DialogDirectSellComponent.decorators = [
|
|
55816
55869
|
{ type: i0.Component, args: [{
|
|
55817
55870
|
selector: 'co-dialog-sell',
|
|
55818
|
-
template: "\n <co-dialog\n class=\"direct-sell-modal\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"hideModal()\">\n <div class=\"supplier-list-wrapper flex\">\n <co-list-of-values\n class=\"supplier-list\"\n label=\"
|
|
55871
|
+
template: "\n <co-dialog\n class=\"direct-sell-modal\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"hideModal()\">\n <div class=\"supplier-list-wrapper flex\">\n <co-list-of-values\n class=\"supplier-list\"\n [label]=\"'FROM_SUPPLIER' | localize\"\n [required]=\"true\"\n [noClickFocus]=\"true\"\n [searchPlaceholder]=\"'SEARCH' | localize\"\n [collection]=\"directSellSuppliers\"\n [displayField]=\"'supplierName'\"\n [(model)]=\"selectedSupplier\"\n (modelChange)=\"handleSupplierChanged()\">\n </co-list-of-values>\n </div>\n\n <div class=\"available-stock checkbox-list-wrapper\" *ngIf=\"selectedSupplier\">\n <div\n class=\"checkbox-list-item\"\n [class.checked]=\"fromStock\"\n (click)=\"onStockChecked($event)\">\n <div class=\"cell\">\n <div class=\"checkbox-wrapper\">\n <co-input-checkbox\n [(model)]=\"fromStock\"\n (modelChange)=\"toggleStockChecked($event)\">\n </co-input-checkbox>\n </div>\n </div>\n <div class=\"cell\">Uit vooraad</div>\n <div class=\"cell\"><strong>{{ availableStockCollection.availableStock }}</strong></div>\n </div>\n </div>\n\n <div class=\"forecast-table\"\n *ngIf=\"selectedSupplier && availableStockCollection.supplierStockForecasts?.length > 0\">\n <div class=\"forecast-table-header\">\n <div class=\"cell\"></div>\n <div class=\"cell\">Order</div>\n <div class=\"cell\">Beschikbaar</div>\n <div class=\"cell\">Leverdatum</div>\n <div class=\"cell\">Leverdatum Bevestigd</div>\n <div class=\"cell\">Aankomst Datum</div>\n </div>\n\n <div class=\"checkbox-list-wrapper co-small-scrollbar\">\n <div\n *ngFor=\"let row of availableStockCollection.supplierStockForecasts; let i = index\"\n #scrollingItem\n class=\"checkbox-list-item\"\n [class.checked]=\"checkbox.model\"\n (click)=\"handleChecked(i, row, $event)\">\n <div class=\"cell\">\n <div class=\"checkbox-wrapper\">\n <co-input-checkbox\n #checkbox\n [(model)]=\"checkbox.model\"\n (modelChange)=\"toggleForecastChecked($event)\">\n </co-input-checkbox>\n </div>\n </div>\n <div class=\"cell\">{{ row.purchaseOrderNumber }}</div>\n <div class=\"cell\">{{ row.amount }}</div>\n <div class=\"cell\">{{ row.deliveryDate | date }}</div>\n <div class=\"cell\">{{ row.confirmedDeliveryDate | date }}</div>\n <div class=\"cell\">{{ row.arrivalDate | date }}</div>\n </div>\n </div>\n </div>\n </co-dialog>\n <ng-template #headerTemplate>\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.IndustryRegular)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'DIRECT_SELL' | localize\"></div>\n </ng-template>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button\n class=\"save-button\"\n [disabled]=\"!formValid\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"onOkClick()\">\n </co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"hideModal()\">\n </co-button>\n </div>\n </ng-template>\n ",
|
|
55819
55872
|
encapsulation: i0.ViewEncapsulation.None
|
|
55820
55873
|
},] }
|
|
55821
55874
|
];
|
|
@@ -56771,6 +56824,8 @@
|
|
|
56771
56824
|
this.transactionType = transactionKind_enum.TransactionKind.ServiceOrder;
|
|
56772
56825
|
this.noLockOnCustomerSet = false;
|
|
56773
56826
|
this._externallyProvidedTransaction = null;
|
|
56827
|
+
//for bundle puroses where an new, non transaction based, service should always start with the customer already set
|
|
56828
|
+
this._externallyProvidedCustomer = null;
|
|
56774
56829
|
}
|
|
56775
56830
|
Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedTransaction", {
|
|
56776
56831
|
set: function (transaction) {
|
|
@@ -56786,6 +56841,13 @@
|
|
|
56786
56841
|
enumerable: false,
|
|
56787
56842
|
configurable: true
|
|
56788
56843
|
});
|
|
56844
|
+
Object.defineProperty(TransactionCreateWizardComponent.prototype, "externallyProvidedCustomer", {
|
|
56845
|
+
set: function (customer) {
|
|
56846
|
+
this._externallyProvidedCustomer = customer;
|
|
56847
|
+
},
|
|
56848
|
+
enumerable: false,
|
|
56849
|
+
configurable: true
|
|
56850
|
+
});
|
|
56789
56851
|
TransactionCreateWizardComponent.prototype.showClass = function () {
|
|
56790
56852
|
return true;
|
|
56791
56853
|
};
|
|
@@ -56798,7 +56860,7 @@
|
|
|
56798
56860
|
_a.sent();
|
|
56799
56861
|
this.createService.transactionKind = this.transactionType;
|
|
56800
56862
|
this.createService.createNewRelation();
|
|
56801
|
-
this.
|
|
56863
|
+
this._processExternalSettings();
|
|
56802
56864
|
return [2 /*return*/];
|
|
56803
56865
|
}
|
|
56804
56866
|
});
|
|
@@ -56972,7 +57034,7 @@
|
|
|
56972
57034
|
});
|
|
56973
57035
|
});
|
|
56974
57036
|
};
|
|
56975
|
-
TransactionCreateWizardComponent.prototype.
|
|
57037
|
+
TransactionCreateWizardComponent.prototype._processExternalSettings = function () {
|
|
56976
57038
|
return __awaiter(this, void 0, void 0, function () {
|
|
56977
57039
|
var _a, _b;
|
|
56978
57040
|
var _this = this;
|
|
@@ -57003,8 +57065,15 @@
|
|
|
57003
57065
|
else {
|
|
57004
57066
|
this.stepper.openToIndex(3);
|
|
57005
57067
|
}
|
|
57006
|
-
|
|
57007
|
-
case 4:
|
|
57068
|
+
return [3 /*break*/, 5];
|
|
57069
|
+
case 4:
|
|
57070
|
+
if (this._externallyProvidedCustomer) {
|
|
57071
|
+
this.noLockOnCustomerSet = true;
|
|
57072
|
+
this.createService.relation = this._externallyProvidedCustomer;
|
|
57073
|
+
this.stepper.openToIndex(2);
|
|
57074
|
+
}
|
|
57075
|
+
_c.label = 5;
|
|
57076
|
+
case 5: return [2 /*return*/];
|
|
57008
57077
|
}
|
|
57009
57078
|
});
|
|
57010
57079
|
});
|
|
@@ -57036,6 +57105,7 @@
|
|
|
57036
57105
|
serviceFieldsSection: [{ type: i0.ViewChild, args: ["serviceFieldsSection",] }],
|
|
57037
57106
|
externallyProvidedTransaction: [{ type: i0.Input }],
|
|
57038
57107
|
externallyProvidedLineNr: [{ type: i0.Input }],
|
|
57108
|
+
externallyProvidedCustomer: [{ type: i0.Input }],
|
|
57039
57109
|
transactionFinished: [{ type: i0.Output }],
|
|
57040
57110
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-create-wizard",] }]
|
|
57041
57111
|
};
|