@colijnit/transaction 258.1.29 → 258.1.30
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 +62 -12
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +15 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.js +11 -6
- package/esm2015/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.js +11 -3
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-purchase-reservation-order-tile/transaction-purchase-reservation-order-tile.component.js +12 -3
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +8 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +65 -10
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/relation/relation-address/relation-address.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.d.ts +2 -1
- package/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.d.ts +1 -0
- package/lib/component/transaction-search/transaction-search-tile/transaction-purchase-reservation-order-tile/transaction-purchase-reservation-order-tile.component.d.ts +3 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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 = "258.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "258.1.30";
|
|
37
|
+
this.publishDate = "11-6-2025 17:21:10";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -3610,6 +3610,26 @@
|
|
|
3610
3610
|
});
|
|
3611
3611
|
});
|
|
3612
3612
|
};
|
|
3613
|
+
TransactionConnectorAdapterService.prototype.getAddressTypes = function (languageCode) {
|
|
3614
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3615
|
+
var result;
|
|
3616
|
+
return __generator(this, function (_b) {
|
|
3617
|
+
switch (_b.label) {
|
|
3618
|
+
case 0: return [4 /*yield*/, this.connector.getAddressTypes(languageCode)];
|
|
3619
|
+
case 1:
|
|
3620
|
+
result = _b.sent();
|
|
3621
|
+
if (result.validationResult && result.validationResult.success) {
|
|
3622
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, result.resultObjects)];
|
|
3623
|
+
}
|
|
3624
|
+
else {
|
|
3625
|
+
this._handleExceptionFromResponse(result);
|
|
3626
|
+
return [2 /*return*/, []];
|
|
3627
|
+
}
|
|
3628
|
+
return [2 /*return*/];
|
|
3629
|
+
}
|
|
3630
|
+
});
|
|
3631
|
+
});
|
|
3632
|
+
};
|
|
3613
3633
|
TransactionConnectorAdapterService.prototype.getInOutCollection = function (languageCode) {
|
|
3614
3634
|
return __awaiter(this, void 0, void 0, function () {
|
|
3615
3635
|
var result;
|
|
@@ -10762,6 +10782,16 @@
|
|
|
10762
10782
|
});
|
|
10763
10783
|
});
|
|
10764
10784
|
};
|
|
10785
|
+
TransactionConnectorService.prototype.getAddressTypes = function (languageCode) {
|
|
10786
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10787
|
+
var _this = this;
|
|
10788
|
+
return __generator(this, function (_a) {
|
|
10789
|
+
return [2 /*return*/, this._selectMultipleParameterizedCacheService.requestCache(domainName_enum.DomainName.AddressType, function (languageCode, domainName) {
|
|
10790
|
+
return _this._adapterService.functionCall(_this._adapterService.getAddressTypes, [languageCode]);
|
|
10791
|
+
}).getValue(languageCode, domainName_enum.DomainName.AddressType)];
|
|
10792
|
+
});
|
|
10793
|
+
});
|
|
10794
|
+
};
|
|
10765
10795
|
TransactionConnectorService.prototype.getInOutCollection = function (languageCode) {
|
|
10766
10796
|
return __awaiter(this, void 0, void 0, function () {
|
|
10767
10797
|
var _this = this;
|
|
@@ -23080,6 +23110,7 @@
|
|
|
23080
23110
|
_this.transactionService = transactionService;
|
|
23081
23111
|
_this.addressChange = new i0.EventEmitter();
|
|
23082
23112
|
_this.countries = [];
|
|
23113
|
+
_this.addressTypes = [];
|
|
23083
23114
|
_this.fields = { text: "description", value: "code" };
|
|
23084
23115
|
_this.postalCodeCheckErrorMessage = "";
|
|
23085
23116
|
_this._prevPostalCodeForCheck = "";
|
|
@@ -23109,6 +23140,9 @@
|
|
|
23109
23140
|
_this.countries = countries;
|
|
23110
23141
|
_this._setSelectedAddress();
|
|
23111
23142
|
});
|
|
23143
|
+
this._connector.getAddressTypes('NL').then(function (codes) {
|
|
23144
|
+
_this.addressTypes = codes;
|
|
23145
|
+
});
|
|
23112
23146
|
return [2 /*return*/];
|
|
23113
23147
|
});
|
|
23114
23148
|
});
|
|
@@ -23198,7 +23232,7 @@
|
|
|
23198
23232
|
RelationAddressComponent.decorators = [
|
|
23199
23233
|
{ type: i0.Component, args: [{
|
|
23200
23234
|
selector: "co-relation-address",
|
|
23201
|
-
template: "\n <label *ngIf=label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"relation-address-data-row default\" [class.validation-error]=\"wrongAddress\">\n <co-input-text\n [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"handlePostalCodeChange()\"\n required\n ></co-input-text>\n <co-input-text class=\"default-width\"\n [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n [digitsOnly]=\"true\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"changeHouseNo()\"\n required\n ></co-input-text>\n <co-input-text\n [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n <span *ngIf=\"wrongAddress\" class=\"wrong-address\" [textContent]=\"'UNKNOWN_ADDRESS_CHECK_IT' | localize\"></span>\n </div>\n <div class=\"relation-address-data-row default\">\n <co-input-text\n [(model)]=\"address.streetName\"\n [placeholder]=\"'STREET' | localize\" required\n (modelChange)=\"handleStreetChange()\"></co-input-text>\n <co-input-text\n [(model)]=\"address.city\"\n [placeholder]=\"'CITY' | localize\" required\n (modelChange)=\"handleCityChange()\"></co-input-text>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [model]=\"countryModel\"\n [collection]=\"countries\"\n [displayField]=\"'description'\"\n [label]=\"'COUNTRY' | localize\"\n [required]=\"true\"\n (modelChange)=\"handleCountryChange($event)\"\n ></co-list-of-values>\n </div>\n ",
|
|
23235
|
+
template: "\n <label *ngIf=label [textContent]=\"label | localize\"\n class=\"checkout-label-h3\"\n ></label>\n <div class=\"relation-address-data-row default\" [class.validation-error]=\"wrongAddress\">\n <co-input-text\n [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"handlePostalCodeChange()\"\n required\n ></co-input-text>\n <co-input-text class=\"default-width\"\n [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n [digitsOnly]=\"true\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange)=\"changeHouseNo()\"\n required\n ></co-input-text>\n <co-input-text\n [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n <span *ngIf=\"wrongAddress\" class=\"wrong-address\" [textContent]=\"'UNKNOWN_ADDRESS_CHECK_IT' | localize\"></span>\n </div>\n <div class=\"relation-address-data-row default\">\n <co-input-text\n [(model)]=\"address.streetName\"\n [placeholder]=\"'STREET' | localize\" required\n (modelChange)=\"handleStreetChange()\"></co-input-text>\n <co-input-text\n [(model)]=\"address.city\"\n [placeholder]=\"'CITY' | localize\" required\n (modelChange)=\"handleCityChange()\"></co-input-text>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [model]=\"countryModel\"\n [collection]=\"countries\"\n [displayField]=\"'description'\"\n [label]=\"'COUNTRY' | localize\"\n [required]=\"true\"\n (modelChange)=\"handleCountryChange($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"relation-address-data-row default single\">\n <co-list-of-values\n [(model)]=\"address.addressType\"\n [collection]=\"addressTypes\"\n [displayField]=\"'description'\"\n [label]=\"'ADDRESS_TYPE' | localize\"\n [required]=\"true\"\n ></co-list-of-values>\n </div>\n \n ",
|
|
23202
23236
|
encapsulation: i0.ViewEncapsulation.None
|
|
23203
23237
|
},] }
|
|
23204
23238
|
];
|
|
@@ -30878,6 +30912,7 @@
|
|
|
30878
30912
|
_this.dialogService = dialogService;
|
|
30879
30913
|
_this._transactionCreationService = _transactionCreationService;
|
|
30880
30914
|
_this.creatingSalesOrder = false;
|
|
30915
|
+
_this.refTransactions = [];
|
|
30881
30916
|
_this._subscriptions = [];
|
|
30882
30917
|
_this.reportDocumentEmailRequest = new reportingDocumentEmailSignDocBaseRequest.ReportingDocumentEmailSignDocBaseRequest();
|
|
30883
30918
|
_this.reportDocumentPrintRequest = new reportingDocumentPrintSignDocBaseRequest.ReportingDocumentPrintSignDocBaseRequest();
|
|
@@ -30890,7 +30925,10 @@
|
|
|
30890
30925
|
TransactionQuickAccessSalesQuotationComponent.prototype.ngOnInit = function () {
|
|
30891
30926
|
var _this = this;
|
|
30892
30927
|
_super.prototype.ngOnInit.call(this);
|
|
30893
|
-
this._subscriptions.push(this.transactionEventService.
|
|
30928
|
+
this._subscriptions.push(this.transactionEventService.transactionLineRefTransactionsChanged.subscribe(function () {
|
|
30929
|
+
_this.updateRefTransactions();
|
|
30930
|
+
_this.changeDetector.detectChanges();
|
|
30931
|
+
}));
|
|
30894
30932
|
};
|
|
30895
30933
|
TransactionQuickAccessSalesQuotationComponent.prototype.ngOnDestroy = function () {
|
|
30896
30934
|
_super.prototype.ngOnDestroy.call(this);
|
|
@@ -31021,13 +31059,14 @@
|
|
|
31021
31059
|
request.transactionRelationId = this.transactionInfo.relation.relationId;
|
|
31022
31060
|
request.handledByRelationId = this.transactionInfo.handledBy;
|
|
31023
31061
|
this.creatingSalesOrder = true;
|
|
31024
|
-
//Copy over the branch attached to the current quotation.
|
|
31025
31062
|
this._transactionCreationService.currentBranch = this.transactionHeaderService.transactionInfo.branch.relationNr;
|
|
31026
31063
|
return [4 /*yield*/, this._transactionCreationService.createSalesOrderThroughQuotation(request)];
|
|
31027
31064
|
case 1:
|
|
31028
31065
|
salesOrderCreated = _b.sent();
|
|
31029
31066
|
this.creatingSalesOrder = false;
|
|
31030
31067
|
if (!isNaN(salesOrderCreated)) {
|
|
31068
|
+
this.updateRefTransactions();
|
|
31069
|
+
this.changeDetector.detectChanges(); // Force view update
|
|
31031
31070
|
this.transactionEventService.transactionNavigation.next(salesOrderCreated.toString());
|
|
31032
31071
|
}
|
|
31033
31072
|
return [2 /*return*/];
|
|
@@ -31038,7 +31077,7 @@
|
|
|
31038
31077
|
TransactionQuickAccessSalesQuotationComponent.prototype.handleSalesOrderNavigation = function (transNr) {
|
|
31039
31078
|
this.transactionEventService.transactionNavigation.next(transNr);
|
|
31040
31079
|
};
|
|
31041
|
-
TransactionQuickAccessSalesQuotationComponent.prototype.
|
|
31080
|
+
TransactionQuickAccessSalesQuotationComponent.prototype.updateRefTransactions = function () {
|
|
31042
31081
|
var refTransactionNrs = new Set();
|
|
31043
31082
|
var refTransactionsList = [];
|
|
31044
31083
|
this.transactionService.currentTransaction.transactionLines.forEach(function (line) {
|
|
@@ -31050,7 +31089,7 @@
|
|
|
31050
31089
|
}
|
|
31051
31090
|
});
|
|
31052
31091
|
});
|
|
31053
|
-
|
|
31092
|
+
this.refTransactions = refTransactionsList;
|
|
31054
31093
|
};
|
|
31055
31094
|
TransactionQuickAccessSalesQuotationComponent.prototype.handleMarginOverviewClick = function (selected) {
|
|
31056
31095
|
this.transactionHeaderService.showingMargins = selected;
|
|
@@ -31061,7 +31100,7 @@
|
|
|
31061
31100
|
TransactionQuickAccessSalesQuotationComponent.decorators = [
|
|
31062
31101
|
{ type: i0.Component, args: [{
|
|
31063
31102
|
selector: 'co-transaction-quick-access-sales-quotation',
|
|
31064
|
-
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [historicReports]=\"historicReports\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-transaction-button class=\"sales-quote-btn custom-width\"\n [label]=\"'SALES_ORDER' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (click)=\"createSalesOrder()\"\n ></co-transaction-button>\n <co-transaction-navigation-button-list\n [refTransactions]=\"
|
|
31103
|
+
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [historicReports]=\"historicReports\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-transaction-button class=\"sales-quote-btn custom-width\"\n [label]=\"'SALES_ORDER' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (click)=\"createSalesOrder()\"\n ></co-transaction-button>\n <co-transaction-navigation-button-list\n [refTransactions]=\"refTransactions\"\n [showRelationButton]=\"false\"\n [emptyLabel]=\"'NO_SALES_QUOTE_ORDER' | localize\"\n (transactionClick)=\"handleSalesOrderNavigation($event)\"\n ></co-transaction-navigation-button-list>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [headerTitle]=\"'Verzendmethode'\"\n [printerList]=\"printerList\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n <co-button [isToggled]=\"transactionHeaderService.showingMargins\" [isToggleButton]=\"true\" [label]=\"'MARGIN_OVERVIEW' | localize\" (isToggledChange)=\"handleMarginOverviewClick($event)\"></co-button>\n </div>\n <co-digital-signature\n [documentId]=\"signatureDocumentId\"\n (documentStored)=\"commitAndRefreshTransaction()\"\n ></co-digital-signature>\n ",
|
|
31065
31104
|
encapsulation: i0.ViewEncapsulation.None
|
|
31066
31105
|
},] }
|
|
31067
31106
|
];
|
|
@@ -49254,11 +49293,16 @@
|
|
|
49254
49293
|
var TransactionPurchaseReservationOrderTileComponent = /** @class */ (function (_super) {
|
|
49255
49294
|
__extends(TransactionPurchaseReservationOrderTileComponent, _super);
|
|
49256
49295
|
function TransactionPurchaseReservationOrderTileComponent() {
|
|
49257
|
-
|
|
49296
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
49297
|
+
_this.selectedLine = new i0.EventEmitter();
|
|
49298
|
+
return _this;
|
|
49258
49299
|
}
|
|
49259
49300
|
TransactionPurchaseReservationOrderTileComponent.prototype.showClass = function () {
|
|
49260
49301
|
return true;
|
|
49261
49302
|
};
|
|
49303
|
+
TransactionPurchaseReservationOrderTileComponent.prototype.handleSelection = function () {
|
|
49304
|
+
this.selectedLine.emit(this.purchaseReservationPurchaseLine);
|
|
49305
|
+
};
|
|
49262
49306
|
TransactionPurchaseReservationOrderTileComponent.prototype.boolForString = function (string) {
|
|
49263
49307
|
return string === "T";
|
|
49264
49308
|
};
|
|
@@ -49267,13 +49311,14 @@
|
|
|
49267
49311
|
TransactionPurchaseReservationOrderTileComponent.decorators = [
|
|
49268
49312
|
{ type: i0.Component, args: [{
|
|
49269
49313
|
selector: "co-transaction-purchase-reservation-order-tile",
|
|
49270
|
-
template: "\n <div class=\"transaction-tile-wrapper\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"header\">\n <co-input-checkbox\n [(model)]=\"purchaseReservationPurchaseLine.selected\"\n ></co-input-checkbox>\n <span class=\"bold\" [textContent]=\"purchaseReservationPurchaseLine.transNo\"></span>\n </div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"column\">\n <span class=\"title\" [textContent]=\"'AMOUNT_AVAILABLE2' | localize\"></span>\n <span class=\"bold center-align\" [textContent]=\"purchaseReservationPurchaseLine.amountToReservePurchase\"></span>\n </div>\n <div class=\"column\">\n <span class=\"title\" [textContent]=\"'AMOUNT_RESERVATED' | localize\"></span>\n <span class=\"bold center-align\"\n [textContent]=\"purchaseReservationPurchaseLine.amountReserved\"></span>\n </div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n </div>\n <div class=\"tile-middle-middle\">\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularCartShoppingClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.deliveryDatePurchase | date:'dd MMM yyyy'\"></span>\n </div>\n </div>\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularTruckMovingClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.deliveryDateConfirmed | date:'dd MMM yyyy'\"></span>\n </div>\n </div>\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularWarehouseClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.arrivalDate | date:'dd MMM yyyy'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
49314
|
+
template: "\n <div class=\"transaction-tile-wrapper\">\n <div class=\"tile\">\n <div class=\"tile-header\">\n <div class=\"tile-upper-left\">\n <div class=\"header\">\n <co-input-checkbox\n [(model)]=\"purchaseReservationPurchaseLine.selected\"\n (modelChange)=\"handleSelection()\"\n ></co-input-checkbox>\n <span class=\"bold\" [textContent]=\"purchaseReservationPurchaseLine.transNo\"></span>\n </div>\n </div>\n <div class=\"tile-upper-right\">\n <div class=\"column\">\n <span class=\"title\" [textContent]=\"'AMOUNT_AVAILABLE2' | localize\"></span>\n <span class=\"bold center-align\" [textContent]=\"purchaseReservationPurchaseLine.amountToReservePurchase\"></span>\n </div>\n <div class=\"column\">\n <span class=\"title\" [textContent]=\"'AMOUNT_RESERVATED' | localize\"></span>\n <span class=\"bold center-align\"\n [textContent]=\"purchaseReservationPurchaseLine.amountReserved\"></span>\n </div>\n </div>\n </div>\n <div class=\"tile-body\">\n <div class=\"tile-middle-left\">\n </div>\n <div class=\"tile-middle-middle\">\n </div>\n <div class=\"tile-middle-right\"></div>\n </div>\n <div class=\"tile-footer\">\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularCartShoppingClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.deliveryDatePurchase | date:'dd MMM yyyy'\"></span>\n </div>\n </div>\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularTruckMovingClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.deliveryDateConfirmed | date:'dd MMM yyyy'\"></span>\n </div>\n </div>\n <div class=\"tile-bottom-left order-info-section\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.RegularWarehouseClock)\"></co-icon>\n <div class=\"value\">\n <span [textContent]=\"purchaseReservationPurchaseLine.arrivalDate | date:'dd MMM yyyy'\"></span></div>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
49271
49315
|
encapsulation: i0.ViewEncapsulation.None
|
|
49272
49316
|
},] }
|
|
49273
49317
|
];
|
|
49274
49318
|
TransactionPurchaseReservationOrderTileComponent.propDecorators = {
|
|
49275
49319
|
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-purchase-reservation-order-tile",] }],
|
|
49276
|
-
purchaseReservationPurchaseLine: [{ type: i0.Input }]
|
|
49320
|
+
purchaseReservationPurchaseLine: [{ type: i0.Input }],
|
|
49321
|
+
selectedLine: [{ type: i0.Output }]
|
|
49277
49322
|
};
|
|
49278
49323
|
|
|
49279
49324
|
var TransactionPurchaseReservationOrderTileModule = /** @class */ (function () {
|
|
@@ -62933,6 +62978,11 @@
|
|
|
62933
62978
|
this.salesReservationService.resetLineData();
|
|
62934
62979
|
this._transactionHeaderService.reservationPopupToggle.next(false);
|
|
62935
62980
|
};
|
|
62981
|
+
TransactionSalesReservationPopupComponent.prototype.onTileSelected = function (selected) {
|
|
62982
|
+
this.reservationOrderLines.forEach(function (line) {
|
|
62983
|
+
line.selected = (line === selected);
|
|
62984
|
+
});
|
|
62985
|
+
};
|
|
62936
62986
|
TransactionSalesReservationPopupComponent.prototype.processReservation = function () {
|
|
62937
62987
|
return __awaiter(this, void 0, void 0, function () {
|
|
62938
62988
|
var reservation, response;
|
|
@@ -62962,7 +63012,7 @@
|
|
|
62962
63012
|
TransactionSalesReservationPopupComponent.decorators = [
|
|
62963
63013
|
{ type: i0.Component, args: [{
|
|
62964
63014
|
selector: "co-transaction-sales-reservation-popup",
|
|
62965
|
-
template: "\n <co-dialog\n (closeClick)=\"handleClosePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n >\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PalletBoxesRotate)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'RESERVATION_PURCHASEORDER' | localize \"></div>\n </div>\n </ng-template>\n\n <div class=\"wrapper\">\n <co-transaction-purchase-reservation-order-tile
|
|
63015
|
+
template: "\n <co-dialog\n (closeClick)=\"handleClosePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n >\n <ng-template #headerTemplate>\n <div class=\"co-dialog-wrapper-popup-title\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.PalletBoxesRotate)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'RESERVATION_PURCHASEORDER' | localize \"></div>\n </div>\n </ng-template>\n\n <div class=\"wrapper\">\n <co-transaction-purchase-reservation-order-tile\n *ngFor=\"let line of reservationOrderLines\"\n [purchaseReservationPurchaseLine]=\"line\"\n (selectedLine)=\"onTileSelected(line)\">\n </co-transaction-purchase-reservation-order-tile>\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\" [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n (click)=\"processReservation()\"\n ></co-button>\n <co-button class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icons.Crossskinny)\"\n (click)=\"handleClosePopup()\"\n ></co-button>\n </div>\n </ng-template>\n\n\n </co-dialog>\n ",
|
|
62966
63016
|
encapsulation: i0.ViewEncapsulation.None
|
|
62967
63017
|
},] }
|
|
62968
63018
|
];
|