@colijnit/transaction 256.1.40 → 256.1.41
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 +49 -17
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-256.1.40.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction/transaction.component.js +4 -1
- package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +8 -4
- package/esm2015/lib/component/transaction-service-overview/transaction-service-overview.component.js +39 -14
- package/esm2015/lib/service/transaction.service.js +1 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +50 -18
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction/transaction.component.d.ts +1 -0
- package/lib/component/transaction-internal/transaction-internal.component.d.ts +1 -0
- package/lib/component/transaction-service-overview/transaction-service-overview.component.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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.41";
|
|
37
|
+
this.publishDate = "8-1-2025 17:16:15";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -53356,6 +53356,7 @@
|
|
|
53356
53356
|
this.showViewModeButtons = true;
|
|
53357
53357
|
this.transactionPlanning = false;
|
|
53358
53358
|
this.customerPortal = false;
|
|
53359
|
+
this.resetActiveRubric = false;
|
|
53359
53360
|
// @Output()
|
|
53360
53361
|
// public relationChange: EventEmitter<RelationAnyType> = new EventEmitter<RelationAnyType>();
|
|
53361
53362
|
//This output exists for bundle purposes.
|
|
@@ -53476,6 +53477,9 @@
|
|
|
53476
53477
|
// this._transactionEventService.openSidePanel.subscribe((line) => this.handleShowSidePanel(line)),
|
|
53477
53478
|
this._transactionEventService.openArticleTextOverview.subscribe(function (line) { return _this.handleShowArticleTextOverview(line); }), this._transactionEventService.addTransactionText.subscribe(function (line) { return _this.handleShowTransactionText(line); }), this._transactionEventService.addArticleText.subscribe(function (line) { return _this.handleShowArticleText(line); }), this._transactionEventService.editTransactionText.subscribe(function (line) { return _this.handleEditTransactionText(line); }), this._transactionEventService.editArticleText.subscribe(function (line) { return _this.handleEditArticleText(line); }), this._transactionEventService.createServiceButtonClicked.subscribe(function (lineNr) { return _this.handleCreateServiceRequest(lineNr); }), this._transactionEventService.viewStockButtonClick.subscribe(function (goodId) { return _this.handleViewStock(goodId); }), this._transactionEventService.showError.subscribe(function (e) { return _this._dialogService.showError(e.message, e.localize, e.details); }), this._transactionEventService.copyOrder.subscribe(function () { return _this.showCopyOrderDialog = true; }));
|
|
53478
53479
|
this.screenWidth = window.innerWidth;
|
|
53480
|
+
if (this.resetActiveRubric) {
|
|
53481
|
+
this.activeCategory = TransactionTypeCategory.SalesOrderOverview;
|
|
53482
|
+
}
|
|
53479
53483
|
};
|
|
53480
53484
|
TransactionInternalComponent.prototype.ngOnDestroy = function () {
|
|
53481
53485
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -53759,7 +53763,7 @@
|
|
|
53759
53763
|
TransactionInternalComponent.decorators = [
|
|
53760
53764
|
{ type: i0.Component, args: [{
|
|
53761
53765
|
selector: 'co-transaction-internal',
|
|
53762
|
-
template: "\n <ng-container *ngIf=\"loaded && customerPortal\">\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"transaction.transactionInfo.transactionKind !== 'S'\">\n <co-transaction-header-customer-portal [transaction]=\"transaction\"></co-transaction-header-customer-portal>\n <co-transaction-lines\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\"\n [customerPortal]=\"customerPortal\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"transaction.transactionInfo.transactionKind === 'S'\">\n <co-transaction-service-overview\n [posOrderData]=\"posOrderData\">\n </co-transaction-service-overview>\n </div>\n\n </ng-container>\n <ng-container *ngIf=\"loaded && !customerPortal\">\n <co-click-block></co-click-block>\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionKind]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n >\n </co-transaction-quick-access>\n <co-transaction-button-bar *ngIf=\"showButtonBar\"\n class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\">\n </co-transaction-button-bar>\n\n <div class=\"transaction-lines-header-item right\">\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\"\n screenConfigNativeElement>\n </co-avatar>\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\"\n screenConfigNativeElement>\n </co-avatar>\n <co-view-mode-buttons *ngIf=\"!shouldShowTiles() && showViewModeButtons\"\n [showViewModes]=\"[viewModes.List, viewModes.Tiles]\"\n (viewModeChange)=\"handleViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n\n <div class=\"transaction-lines-content-wrapper\">\n <!--<co-transaction-document-button-bar [transaction]=\"transaction\"></co-transaction-document-button-bar>-->\n <div class=\"transaction-lines-content\">\n <div *ngIf=\"activeCategory === category.ServiceOrderService\">\n <co-transaction-service-overview [posOrderData]=\"posOrderData\"></co-transaction-service-overview>\n </div>\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles || shouldShowTiles() || transactionPlanning\">\n <co-transaction-cards\n [activeCategory]=\"activeCategory\"\n [class.planning-cards]=\"transactionPlanning\">\n </co-transaction-cards>\n </div>\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"(activeViewMode === viewModes.List && !shouldShowTiles()) && activeCategory !== category.ServiceOrderService && !transactionPlanning\">\n <co-transaction-lines\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <div class=\"transaction-footer-left\">\n <co-add-product\n *ngIf=\"activeCategory === categories.SalesOrderCashRegister ||\n activeCategory === categories.SalesOrderOverview ||\n activeCategory === categories.PurchaseOrderOverview ||\n activeCategory === categories.SalesOrderQuotation ||\n activeCategory === categories.ServiceOrderOverview\">\n </co-add-product>\n <co-transaction-button *ngIf=\"activeCategory !== categories.ServiceOrderService\"\n class=\"custom-width text-rule\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionText()\">\n </co-transaction-button>\n </div>\n\n <div class=\"transaction-footer-center\">\n <co-transaction-margin *ngIf=\"activeCategory === categories.SalesOrderMarginInfo\"></co-transaction-margin>\n </div>\n <co-transaction-totals *ngIf=\"activeCategory !== category.ServiceOrderService\"\n [showDiscount]=\"true\">\n </co-transaction-totals>\n </div>\n </div>\n\n <co-transaction-lines-side-panel *ngIf=\"transaction && (transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced())\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n\n<!-- <co-transaction-line-side-panel *ngIf=\"showSidePanel\"-->\n<!-- [transaction]=\"transaction\"-->\n<!-- [transactionInfo]=\"transaction.transactionInfo\"-->\n<!-- [transactionLine]=\"sidePanelTransactionLine\"-->\n<!-- [activeCategory]=\"activeCategory\"-->\n<!-- (cancelClick)=\"showSidePanel = false\">-->\n<!-- </co-transaction-line-side-panel>-->\n\n\n <co-transaction-sales-reservation-popup *ngIf=\"showReservationPopup\"></co-transaction-sales-reservation-popup>\n <!--Popup voor wijzigen volgorde van tekstregels-->\n <co-transaction-article-text-overview *ngIf=\"showArticleTextOverview\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeClick)=\"closeArticleTextOverview()\"\n (cancelClick)=\"closeArticleTextOverview()\">\n </co-transaction-article-text-overview>\n\n <!--Popup voor aanmaken en updaten transactietekstregels-->\n <co-transaction-article-text *ngIf=\"showTransactionText\"\n [header]=\"'ORDER_TEXT_LINE' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [editText]=\"textToEdit\"\n [orderLineSetDTO]=\"selectedOrderLineSetDTO\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionLineText($event)\"\n (closeClick)=\"closeTransactionText()\"\n (cancelClick)=\"closeTransactionText()\"\n (saveOrderLineSetClick)=\"saveOrderLineSet($event)\">\n </co-transaction-article-text>\n\n <!--Popup voor aanmaken en updaten artikeltekstregels-->\n <co-transaction-article-text *ngIf=\"showArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [showArticleImageDescription]=\"transactionLine.articleBound\"\n [showImage]=\"false\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveArticleLineText($event)\"\n (closeClick)=\"closeArticleText()\"\n (cancelClick)=\"closeArticleText()\">\n </co-transaction-article-text>\n\n <co-transaction-copy-order *ngIf=\"showCopyOrderDialog\"\n
|
|
53766
|
+
template: "\n <ng-container *ngIf=\"loaded && customerPortal\">\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"transaction.transactionInfo.transactionKind !== 'S'\">\n <co-transaction-header-customer-portal [transaction]=\"transaction\"></co-transaction-header-customer-portal>\n <co-transaction-lines\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\"\n [customerPortal]=\"customerPortal\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"transaction && transaction.transactionInfo && transaction.transactionInfo.transactionKind === 'S'\">\n <co-transaction-service-overview\n [posOrderData]=\"posOrderData\">\n </co-transaction-service-overview>\n </div>\n\n </ng-container>\n <ng-container *ngIf=\"loaded && !customerPortal\">\n <co-click-block></co-click-block>\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n <div class=\"transaction-lines-header\">\n <co-transaction-quick-access *ngIf=\"showQuickAccess\" class=\"transaction-lines-header-item\"\n [transactionKind]=\"transaction.transactionInfo.transactionKind\"\n [activeCategory]=\"activeCategory\"\n >\n </co-transaction-quick-access>\n <co-transaction-button-bar *ngIf=\"showButtonBar\"\n class=\"transaction-lines-header-item\"\n [selectedCategory]=\"activeCategory\"\n (buttonClicked)=\"handleButtonBarButtonClicked($event)\">\n </co-transaction-button-bar>\n\n <div class=\"transaction-lines-header-item right\">\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.handledBy\"\n [screenConfigurationObject]=\"cfgNames.HeaderHandledBy\"\n screenConfigNativeElement>\n </co-avatar>\n <co-avatar\n class=\"transaction-sales-avatar\"\n [relationId]=\"transaction.transactionInfo.branch?.relationId\"\n [screenConfigurationObject]=\"cfgNames.HeaderBranch\"\n screenConfigNativeElement>\n </co-avatar>\n <co-view-mode-buttons *ngIf=\"!shouldShowTiles() && showViewModeButtons\"\n [showViewModes]=\"[viewModes.List, viewModes.Tiles]\"\n (viewModeChange)=\"handleViewModeChange($event)\">\n </co-view-mode-buttons>\n </div>\n </div>\n\n <div class=\"transaction-lines-content-wrapper\">\n <!--<co-transaction-document-button-bar [transaction]=\"transaction\"></co-transaction-document-button-bar>-->\n <div class=\"transaction-lines-content\">\n <div *ngIf=\"activeCategory === category.ServiceOrderService && transaction && transaction.transactionInfo && transaction.transactionInfo.transactionKind === 'S'\">\n <co-transaction-service-overview [posOrderData]=\"posOrderData\"></co-transaction-service-overview>\n </div>\n <div class=\"transaction-tiles-wrapper\" *ngIf=\"activeViewMode === viewModes.Tiles || shouldShowTiles() || transactionPlanning\">\n <co-transaction-cards\n [activeCategory]=\"activeCategory\"\n [class.planning-cards]=\"transactionPlanning\">\n </co-transaction-cards>\n </div>\n <div class=\"transaction-lines-wrapper\"\n *ngIf=\"(activeViewMode === viewModes.List && !shouldShowTiles()) && activeCategory !== category.ServiceOrderService && !transactionPlanning\">\n <co-transaction-lines\n [activeCategory]=\"activeCategory\"\n (saveTransactionLine)=\"saveTransactionLineText($event)\">\n </co-transaction-lines>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <div class=\"transaction-footer-left\">\n <co-add-product\n *ngIf=\"activeCategory === categories.SalesOrderCashRegister ||\n activeCategory === categories.SalesOrderOverview ||\n activeCategory === categories.PurchaseOrderOverview ||\n activeCategory === categories.SalesOrderQuotation ||\n activeCategory === categories.ServiceOrderOverview\">\n </co-add-product>\n <co-transaction-button *ngIf=\"activeCategory !== categories.ServiceOrderService\"\n class=\"custom-width text-rule\"\n [iconData]=\"iconCacheService.getIcon(icons.TextSolid)\"\n (click)=\"handleTransactionText()\">\n </co-transaction-button>\n </div>\n\n <div class=\"transaction-footer-center\">\n <co-transaction-margin *ngIf=\"activeCategory === categories.SalesOrderMarginInfo\"></co-transaction-margin>\n </div>\n <co-transaction-totals *ngIf=\"activeCategory !== category.ServiceOrderService\"\n [showDiscount]=\"true\">\n </co-transaction-totals>\n </div>\n </div>\n\n <co-transaction-lines-side-panel *ngIf=\"transaction && (transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced())\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transaction\">\n </co-transaction-lines-side-panel>\n\n<!-- <co-transaction-line-side-panel *ngIf=\"showSidePanel\"-->\n<!-- [transaction]=\"transaction\"-->\n<!-- [transactionInfo]=\"transaction.transactionInfo\"-->\n<!-- [transactionLine]=\"sidePanelTransactionLine\"-->\n<!-- [activeCategory]=\"activeCategory\"-->\n<!-- (cancelClick)=\"showSidePanel = false\">-->\n<!-- </co-transaction-line-side-panel>-->\n\n\n <co-transaction-sales-reservation-popup *ngIf=\"showReservationPopup\"></co-transaction-sales-reservation-popup>\n <!--Popup voor wijzigen volgorde van tekstregels-->\n <co-transaction-article-text-overview *ngIf=\"showArticleTextOverview\"\n [transactionInfo]=\"transaction.transactionInfo\"\n [transactionLine]=\"transactionLine\"\n (closeClick)=\"closeArticleTextOverview()\"\n (cancelClick)=\"closeArticleTextOverview()\">\n </co-transaction-article-text-overview>\n\n <!--Popup voor aanmaken en updaten transactietekstregels-->\n <co-transaction-article-text *ngIf=\"showTransactionText\"\n [header]=\"'ORDER_TEXT_LINE' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [editText]=\"textToEdit\"\n [orderLineSetDTO]=\"selectedOrderLineSetDTO\"\n [transactionLine]=\"transactionLine\"\n (saveClick)=\"saveTransactionLineText($event)\"\n (closeClick)=\"closeTransactionText()\"\n (cancelClick)=\"closeTransactionText()\"\n (saveOrderLineSetClick)=\"saveOrderLineSet($event)\">\n </co-transaction-article-text>\n\n <!--Popup voor aanmaken en updaten artikeltekstregels-->\n <co-transaction-article-text *ngIf=\"showArticleText\"\n [header]=\"'PRODUCT_DESCRIPTION_AND_TEXTS' | localize\"\n [transactionUuid]=\"transaction.transactionInfo.uuid\"\n [showArticleImageDescription]=\"transactionLine.articleBound\"\n [showImage]=\"false\"\n [articleLineNr]=\"transactionLine.lineNr\"\n [articleRef]=\"transactionLine.articleNumber\"\n [transactionLine]=\"transactionLine\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveArticleLineText($event)\"\n (closeClick)=\"closeArticleText()\"\n (cancelClick)=\"closeArticleText()\">\n </co-transaction-article-text>\n\n <co-transaction-copy-order *ngIf=\"showCopyOrderDialog\"\n (closeDialog)=\"showCopyOrderDialog = false\">\n </co-transaction-copy-order>\n\n <!-- Pop up voor voorraad-->\n <co-transaction-article-stock-dialog\n *ngIf=\"showArticleStockPopup\"\n [article]=\"stockGoodId\"\n (closeClick)=\"closeArticleStockPopup()\">\n </co-transaction-article-stock-dialog>\n\n </div>\n </ng-container>\n ",
|
|
53763
53767
|
providers: [
|
|
53764
53768
|
TransactionHeaderService
|
|
53765
53769
|
],
|
|
@@ -53790,6 +53794,7 @@
|
|
|
53790
53794
|
showViewModeButtons: [{ type: i0.Input }],
|
|
53791
53795
|
transactionPlanning: [{ type: i0.Input }],
|
|
53792
53796
|
customerPortal: [{ type: i0.Input }],
|
|
53797
|
+
resetActiveRubric: [{ type: i0.Input }],
|
|
53793
53798
|
serviceRequested: [{ type: i0.Output }],
|
|
53794
53799
|
showQuickAccess: [{ type: i0.HostBinding, args: ['class.show-quick-access',] }, { type: i0.Input }],
|
|
53795
53800
|
showButtonBar: [{ type: i0.HostBinding, args: ['class.show-button-bar',] }, { type: i0.Input }],
|
|
@@ -56567,10 +56572,11 @@
|
|
|
56567
56572
|
},] }
|
|
56568
56573
|
];
|
|
56569
56574
|
|
|
56570
|
-
var TransactionServiceOverviewComponent = /** @class */ (function (
|
|
56571
|
-
__extends(TransactionServiceOverviewComponent,
|
|
56575
|
+
var TransactionServiceOverviewComponent = /** @class */ (function (_super_1) {
|
|
56576
|
+
__extends(TransactionServiceOverviewComponent, _super_1);
|
|
56577
|
+
//private subs: Subscription[] = [];
|
|
56572
56578
|
function TransactionServiceOverviewComponent(transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector, _dialogService) {
|
|
56573
|
-
var _this =
|
|
56579
|
+
var _this = _super_1.call(this, transactionHeaderService, transactionEventService, iconCacheService, screenConfigService, imageService, dictionaryService, transactionService, changeDetector) || this;
|
|
56574
56580
|
_this.transactionHeaderService = transactionHeaderService;
|
|
56575
56581
|
_this.transactionEventService = transactionEventService;
|
|
56576
56582
|
_this.iconCacheService = iconCacheService;
|
|
@@ -56591,18 +56597,23 @@
|
|
|
56591
56597
|
_this.documents = [];
|
|
56592
56598
|
_this.activities = [];
|
|
56593
56599
|
_this.showActivityHeader = false;
|
|
56600
|
+
_this.loadedTransactionId = null;
|
|
56594
56601
|
return _this;
|
|
56595
56602
|
}
|
|
56596
56603
|
TransactionServiceOverviewComponent.prototype.showClass = function () {
|
|
56597
56604
|
return true;
|
|
56598
56605
|
};
|
|
56599
56606
|
TransactionServiceOverviewComponent.prototype.ngOnInit = function () {
|
|
56607
|
+
var _super = Object.create(null, {
|
|
56608
|
+
ngOnInit: { get: function () { return _super_1.prototype.ngOnInit; } }
|
|
56609
|
+
});
|
|
56600
56610
|
return __awaiter(this, void 0, void 0, function () {
|
|
56601
56611
|
var _a, _b, _c;
|
|
56602
56612
|
var _this = this;
|
|
56603
56613
|
return __generator(this, function (_d) {
|
|
56604
56614
|
switch (_d.label) {
|
|
56605
56615
|
case 0:
|
|
56616
|
+
_super.ngOnInit.call(this);
|
|
56606
56617
|
this.user = this.transactionService.loggedInUser;
|
|
56607
56618
|
_a = this;
|
|
56608
56619
|
return [4 /*yield*/, this.transactionService.getPriority('NL')];
|
|
@@ -56618,22 +56629,34 @@
|
|
|
56618
56629
|
_c.entryTypeColl = _d.sent();
|
|
56619
56630
|
this.priorityModel = this.priorityDomainColl.find(function (p) { return p.codeAsNumber === _this.transactionServiceInfo.priority; });
|
|
56620
56631
|
this.causeCodeModel = this.causeCodeColl.find(function (c) { return c.causeCode === _this.transactionServiceInfo.causeCode; });
|
|
56621
|
-
this.entryTypeModel = this.entryTypeColl.find(function (e) { return e.code === _this.transactionServiceInfo.entryType; });
|
|
56622
|
-
|
|
56623
|
-
this.
|
|
56632
|
+
this.entryTypeModel = this.entryTypeColl.find(function (e) { return e.code === _this.transactionServiceInfo.entryType; }); /*
|
|
56633
|
+
|
|
56634
|
+
this.subs.push(
|
|
56635
|
+
this.transactionHeaderService.transactionInfoSet.subscribe((set: boolean) => {
|
|
56636
|
+
if (set) {
|
|
56637
|
+
this.transactionInfoSet();
|
|
56638
|
+
}
|
|
56639
|
+
})
|
|
56640
|
+
)
|
|
56641
|
+
if (this.transactionInfo && this.transactionInfo.id) {
|
|
56642
|
+
this.transactionInfoSet();
|
|
56643
|
+
}*/
|
|
56624
56644
|
return [2 /*return*/];
|
|
56625
56645
|
}
|
|
56626
56646
|
});
|
|
56627
56647
|
});
|
|
56628
56648
|
};
|
|
56629
56649
|
TransactionServiceOverviewComponent.prototype.ngOnDestroy = function () {
|
|
56650
|
+
//this.subs.forEach(s => s.unsubscribe());
|
|
56651
|
+
};
|
|
56652
|
+
TransactionServiceOverviewComponent.prototype.getKey = function () {
|
|
56653
|
+
if (this.transactionInfo !== undefined && this.transactionInfo !== null && this.transactionInfo.id !== undefined && this.transactionInfo.id !== null) {
|
|
56654
|
+
return this.transactionInfo.id.toString();
|
|
56655
|
+
}
|
|
56656
|
+
else {
|
|
56657
|
+
return null;
|
|
56658
|
+
}
|
|
56630
56659
|
};
|
|
56631
|
-
/*public set transactionServiceInfo(value: TransactionServiceInfo) {
|
|
56632
|
-
super.transactionServiceInfo = value;
|
|
56633
|
-
if (this.priorityDomainColl.length > 0) {
|
|
56634
|
-
this.priorityModel = this.priorityDomainColl.find(p => p.codeAsNumber === value.priority);
|
|
56635
|
-
}
|
|
56636
|
-
}*/
|
|
56637
56660
|
TransactionServiceOverviewComponent.prototype.getActivities = function () {
|
|
56638
56661
|
return __awaiter(this, void 0, void 0, function () {
|
|
56639
56662
|
var _a;
|
|
@@ -56797,12 +56820,19 @@
|
|
|
56797
56820
|
type: sortType_enum.SortType.Number
|
|
56798
56821
|
}]);
|
|
56799
56822
|
};
|
|
56823
|
+
TransactionServiceOverviewComponent.prototype.transactionInfoSet = function () {
|
|
56824
|
+
_super_1.prototype.transactionInfoSet.call(this);
|
|
56825
|
+
if (this.transactionInfo.id !== this.loadedTransactionId)
|
|
56826
|
+
this.loadedTransactionId = this.transactionInfo.id;
|
|
56827
|
+
this.fetchDocuments();
|
|
56828
|
+
this.getActivities();
|
|
56829
|
+
};
|
|
56800
56830
|
return TransactionServiceOverviewComponent;
|
|
56801
56831
|
}(TransactionHeaderBaseComponent));
|
|
56802
56832
|
TransactionServiceOverviewComponent.decorators = [
|
|
56803
56833
|
{ type: i0.Component, args: [{
|
|
56804
56834
|
selector: 'co-transaction-service-overview',
|
|
56805
|
-
template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <div class=\"service-message\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <span *ngIf=\"transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers\"\n [textContent]=\"transactionServiceInfo.wizardQuestionsAndAnswers\"\n [screenConfigurationObject]=\"cfgNames.ServiceWizardMessage\" screenConfigNativeElement\n ></span>\n <co-transaction-service-message class=\"transaction-service-message\"></co-transaction-service-message>\n </div>\n <co-files-upload (documentChangeEvent)=\"upsertDocument($event)\"\n [screenConfigurationObject]=\"cfgNames.ServiceOverviewImage\"\n (documentDeleted)=\"deleteDocument($event)\"\n [label]=\"'ADD_IMAGES' | localize\"\n [documents]=\"documents\"\n [isEditable]=\"true\">\n </co-files-upload>\n </div>\n <div class=\"service-order-lines-wrapper\">\n <div class=\"service-message-extra-wrapper\">\n <co-list-of-values [label]=\"'PRIORITY'| localize\" displayField=\"description\" [model]=\"priorityModel\"\n [collection]=\"priorityDomainColl\" [screenConfigurationObject]=\"cfgNames.ServicePriority\"\n (modelChange)=\"setPriority($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'CAUSE_CODE' | localize\" displayField=\"description\" [model]=\"causeCodeModel\"\n [collection]=\"causeCodeColl\" [screenConfigurationObject]=\"cfgNames.ServiceCauseCode\"\n (modelChange)=\"setCauseCode($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'ENTRY_TYPE' | localize\" displayField=\"description\" [model]=\"entryTypeModel\"\n [collection]=\"entryTypeColl\" [screenConfigurationObject]=\"cfgNames.ServiceEntryType\"\n (modelChange)=\"setEntryType($event)\"></co-list-of-values>\n </div>\n <co-transaction-lines-side-panel\n class=\"higher-max-width\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transactionHeaderService.transaction\">\n </co-transaction-lines-side-panel>\n </div>\n\n </div>\n <div class=\"activity-list-component-wrapper\">\n <div class=\"activity-task-creator-wrapper\">\n <co-component-activity-list #openActivities [showActivityHeader]=\"showActivityHeader\"\n [screenConfigurationObject]=\"cfgNames.HeaderActivityList\"\n [table]=\"TableName.Transactions\" [key]=\"
|
|
56835
|
+
template: "\n <div class=\"service-overview-wrapper\">\n <div class=\"message-and-task-wrapper\">\n <div class=\"service-message-and-image-wrapper\">\n <div class=\"service-message-wrapper\">\n <div class=\"service-message\">\n <label class=\"label service-label\" [textContent]=\"'SERVICE_REPORT'| localize\"></label>\n <span *ngIf=\"transactionServiceInfo && transactionServiceInfo.wizardQuestionsAndAnswers\"\n [textContent]=\"transactionServiceInfo.wizardQuestionsAndAnswers\"\n [screenConfigurationObject]=\"cfgNames.ServiceWizardMessage\" screenConfigNativeElement\n ></span>\n <co-transaction-service-message class=\"transaction-service-message\"></co-transaction-service-message>\n </div>\n <co-files-upload (documentChangeEvent)=\"upsertDocument($event)\"\n [screenConfigurationObject]=\"cfgNames.ServiceOverviewImage\"\n (documentDeleted)=\"deleteDocument($event)\"\n [label]=\"'ADD_IMAGES' | localize\"\n [documents]=\"documents\"\n [isEditable]=\"true\">\n </co-files-upload>\n </div>\n <div class=\"service-order-lines-wrapper\">\n <div class=\"service-message-extra-wrapper\">\n <co-list-of-values [label]=\"'PRIORITY'| localize\" displayField=\"description\" [model]=\"priorityModel\"\n [collection]=\"priorityDomainColl\" [screenConfigurationObject]=\"cfgNames.ServicePriority\"\n (modelChange)=\"setPriority($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'CAUSE_CODE' | localize\" displayField=\"description\" [model]=\"causeCodeModel\"\n [collection]=\"causeCodeColl\" [screenConfigurationObject]=\"cfgNames.ServiceCauseCode\"\n (modelChange)=\"setCauseCode($event)\"></co-list-of-values>\n <co-list-of-values [label]=\"'ENTRY_TYPE' | localize\" displayField=\"description\" [model]=\"entryTypeModel\"\n [collection]=\"entryTypeColl\" [screenConfigurationObject]=\"cfgNames.ServiceEntryType\"\n (modelChange)=\"setEntryType($event)\"></co-list-of-values>\n </div>\n <co-transaction-lines-side-panel\n class=\"higher-max-width\"\n [posOrderData]=\"posOrderData\"\n [transaction]=\"transactionHeaderService.transaction\">\n </co-transaction-lines-side-panel>\n </div>\n\n </div>\n <div class=\"activity-list-component-wrapper\">\n <div class=\"activity-task-creator-wrapper\">\n <co-component-activity-list #openActivities [showActivityHeader]=\"showActivityHeader\"\n [screenConfigurationObject]=\"cfgNames.HeaderActivityList\"\n [table]=\"TableName.Transactions\" [key]=\"getKey()\"\n (refreshRequested)=\"finishedActivitiesRefreshRequested()\">\n </co-component-activity-list>\n <co-task-creator [table]=\"TableName.Transactions\" [remarkAndWorkKey]=\"getKey()\"\n [taskKey]=\"transactionInfo?.transactionNr?.toString()\"\n [author]=\"user\" [branchNo]=\"transactionInfo?.branch?.relationNr.toString()\"\n [workflowCategoryType]=\"WorkflowCategoryType.ServiceOrder\"\n [screenConfigurationObject]=\"cfgNames.HeaderTaskCreator\"\n (activityCreated)=\"fullActivitiesRefreshRequested()\"></co-task-creator>\n </div>\n <div class=\"activity-list-conv-wrapper\">\n <label class=\"label history-label\" [textContent]=\"'HISTORIC_ACTIVITY_CHAT'| localize\"\n [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\" screenConfigNativeElement></label>\n <co-activity-list [activities]=\"activities\"\n [screenConfigurationObject]=\"cfgNames.HeaderHistActivities\"></co-activity-list>\n </div>\n </div>\n </div>\n </div>\n\n ",
|
|
56806
56836
|
providers: [{
|
|
56807
56837
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
56808
56838
|
useExisting: i0.forwardRef(function () { return TransactionServiceOverviewComponent; })
|
|
@@ -58543,6 +58573,7 @@
|
|
|
58543
58573
|
this.saveCancelMovable = false;
|
|
58544
58574
|
this.transactionPlanning = false;
|
|
58545
58575
|
this.customerPortal = false;
|
|
58576
|
+
this.resetActiveRubric = false;
|
|
58546
58577
|
//This output exists for bundle purposes.
|
|
58547
58578
|
this.serviceRequested = new i0.EventEmitter();
|
|
58548
58579
|
this.screenConfigLoaded = false;
|
|
@@ -58661,7 +58692,7 @@
|
|
|
58661
58692
|
TransactionComponent.decorators = [
|
|
58662
58693
|
{ type: i0.Component, args: [{
|
|
58663
58694
|
selector: 'co-transaction',
|
|
58664
|
-
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam && !customerPortal\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [customerPortal]=\"customerPortal\"\n (serviceRequested)=\"this.serviceRequested.emit($event)\"\n [class.customer-portal]=\"customerPortal\"\n ></co-transaction-internal>\n ",
|
|
58695
|
+
template: "\n <co-save-cancel-buttons *ngIf=\"service.manualSaveParam && !customerPortal\"\n [saveIconData]=\"saveIconData\"\n [cancelIconData]=\"cancelIconData\"\n [showLabels]=\"showSaveCancelLabels\"\n [movable]=\"saveCancelMovable\"\n ></co-save-cancel-buttons>\n <co-transaction-internal *ngIf=\"screenConfigLoaded\"\n [showHeader]=\"showHeader\"\n [showQuickAccess]=\"showQuickAccess\"\n [showButtonBar]=\"showButtonBar\"\n [showViewModeButtons]=\"showViewModeButtons\"\n [confirmationAnalysisId]=\"confirmationAnalysisId\"\n [posOrderData]=\"posOrderData\"\n [transactionPlanning]=\"transactionPlanning\"\n [customerPortal]=\"customerPortal\"\n (serviceRequested)=\"this.serviceRequested.emit($event)\"\n [class.customer-portal]=\"customerPortal\"\n [resetActiveRubric]=\"resetActiveRubric\"\n ></co-transaction-internal>\n ",
|
|
58665
58696
|
providers: [
|
|
58666
58697
|
{ provide: corecomponents_v12.BaseModuleScreenConfigService, useExisting: TransactionScreenConfigurationService }
|
|
58667
58698
|
],
|
|
@@ -58692,6 +58723,7 @@
|
|
|
58692
58723
|
saveCancelMovable: [{ type: i0.Input }],
|
|
58693
58724
|
transactionPlanning: [{ type: i0.Input }],
|
|
58694
58725
|
customerPortal: [{ type: i0.Input }],
|
|
58726
|
+
resetActiveRubric: [{ type: i0.Input }],
|
|
58695
58727
|
serviceRequested: [{ type: i0.Output }],
|
|
58696
58728
|
showClass: [{ type: i0.HostBinding, args: ['class.co-transaction',] }],
|
|
58697
58729
|
checkTransaction: [{ type: i0.HostListener, args: ['window:beforeunload',] }],
|