@colijnit/transaction 261.20.18 → 261.20.19
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/fesm2022/colijnit-transaction.mjs +425 -494
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +39 -48
- package/lib/component/transaction-line-interbranch-receive-goods/style/_layout.scss +78 -78
- package/lib/component/transaction-line-interbranch-receive-goods/style/_material-definition.scss +2 -2
- package/lib/component/transaction-line-interbranch-receive-goods/style/_theme.scss +4 -4
- package/lib/component/transaction-line-interbranch-receive-goods/style/material.scss +4 -4
- package/lib/component/transaction-quick-access/transaction-quick-access-interbranch-order-purchase/style/_layout.scss +27 -27
- package/lib/component/transaction-quick-access/transaction-quick-access-interbranch-order-purchase/style/_material-definition.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-interbranch-order-purchase/style/_theme.scss +4 -4
- package/lib/component/transaction-quick-access/transaction-quick-access-interbranch-order-purchase/style/material.scss +4 -4
- package/lib/component/transaction-quick-access/transaction-quick-access-interrbranch-received-goods/style/_layout.scss +73 -73
- package/lib/component/transaction-quick-access/transaction-quick-access-interrbranch-received-goods/style/_theme.scss +6 -6
- package/lib/component/transaction-quick-access/transaction-quick-access-interrbranch-received-goods/style/material.scss +4 -4
- package/package.json +1 -1
|
@@ -339,8 +339,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
339
339
|
class Version {
|
|
340
340
|
name = "@colijnit/transaction";
|
|
341
341
|
description = "Colijn IT transaction package";
|
|
342
|
-
symVer = "261.20.
|
|
343
|
-
publishDate = "10-3-2026,
|
|
342
|
+
symVer = "261.20.19";
|
|
343
|
+
publishDate = "10-3-2026, 18:09:24";
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -18992,6 +18992,225 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
18992
18992
|
args: ["class.co-transaction-line-warehouse-button"]
|
|
18993
18993
|
}] } });
|
|
18994
18994
|
|
|
18995
|
+
class TransactionSendDocumentsComponent extends TransactionHeaderBaseComponent {
|
|
18996
|
+
layoutCodes = LayoutCode;
|
|
18997
|
+
set transactionTypeCategory(value) {
|
|
18998
|
+
this._transactionTypeCategory = value;
|
|
18999
|
+
this._setLayoutCode();
|
|
19000
|
+
}
|
|
19001
|
+
get transactionTypeCategory() {
|
|
19002
|
+
return this._transactionTypeCategory;
|
|
19003
|
+
}
|
|
19004
|
+
selected = false;
|
|
19005
|
+
openSendMethodDialog = new EventEmitter();
|
|
19006
|
+
showClass() {
|
|
19007
|
+
return true;
|
|
19008
|
+
}
|
|
19009
|
+
layoutCode;
|
|
19010
|
+
layoutCodeLabel;
|
|
19011
|
+
showDialog = false;
|
|
19012
|
+
activeReport;
|
|
19013
|
+
historicReports = [];
|
|
19014
|
+
_transactionTypeCategory;
|
|
19015
|
+
_subs = [];
|
|
19016
|
+
ngOnInit() {
|
|
19017
|
+
super.ngOnInit();
|
|
19018
|
+
this._subs.push(this.transactionEventService.refreshHistoricReports.subscribe(() => {
|
|
19019
|
+
this.getHistoricReports(true);
|
|
19020
|
+
}));
|
|
19021
|
+
this.getHistoricReports();
|
|
19022
|
+
}
|
|
19023
|
+
ngOnDestroy() {
|
|
19024
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
19025
|
+
super.ngOnDestroy();
|
|
19026
|
+
}
|
|
19027
|
+
getHistoricReports(refresh = false) {
|
|
19028
|
+
if (this.layoutCode && (this.historicReports.length === 0 || refresh)) {
|
|
19029
|
+
this.transactionService.getHistoricDocuments(this.transactionInfo.id, this.layoutCode).then((result) => {
|
|
19030
|
+
if (result) {
|
|
19031
|
+
this.historicReports = result;
|
|
19032
|
+
this.detectChanges();
|
|
19033
|
+
}
|
|
19034
|
+
});
|
|
19035
|
+
}
|
|
19036
|
+
}
|
|
19037
|
+
toggleSendDocumentsDialog() {
|
|
19038
|
+
if (this.historicReports.length > 0) {
|
|
19039
|
+
if (this.selected) {
|
|
19040
|
+
this.activeReport = null;
|
|
19041
|
+
this.selected = false;
|
|
19042
|
+
}
|
|
19043
|
+
else {
|
|
19044
|
+
this.showDialog = !this.showDialog;
|
|
19045
|
+
}
|
|
19046
|
+
this.detectChanges();
|
|
19047
|
+
}
|
|
19048
|
+
}
|
|
19049
|
+
handleShowHistoricDocumentLines(historicReport) {
|
|
19050
|
+
this.showDialog = false;
|
|
19051
|
+
this.selected = true;
|
|
19052
|
+
this.activeReport = historicReport;
|
|
19053
|
+
this.openSendMethodDialog.emit();
|
|
19054
|
+
this.detectChanges();
|
|
19055
|
+
}
|
|
19056
|
+
getSendMethodIcon(report) {
|
|
19057
|
+
switch (report.historicSendmethod) {
|
|
19058
|
+
case 0: // Fax
|
|
19059
|
+
return this.icons.PrintSolid;
|
|
19060
|
+
case 1: // Print
|
|
19061
|
+
return this.icons.PrintSolid;
|
|
19062
|
+
case 2: // Email
|
|
19063
|
+
return this.icons.AtSolid;
|
|
19064
|
+
case 3: // Edi
|
|
19065
|
+
return this.icons.GearSolid;
|
|
19066
|
+
default: // undefined
|
|
19067
|
+
return this.icons.SquareFullSolid;
|
|
19068
|
+
}
|
|
19069
|
+
}
|
|
19070
|
+
getSendMethodDescription(report) {
|
|
19071
|
+
switch (report.historicSendmethod) {
|
|
19072
|
+
case 0:
|
|
19073
|
+
return 'Fax';
|
|
19074
|
+
case 1:
|
|
19075
|
+
return 'Print';
|
|
19076
|
+
case 2:
|
|
19077
|
+
return 'Email';
|
|
19078
|
+
case 3:
|
|
19079
|
+
return 'Edi';
|
|
19080
|
+
default:
|
|
19081
|
+
return 'Document';
|
|
19082
|
+
}
|
|
19083
|
+
}
|
|
19084
|
+
_setLayoutCode() {
|
|
19085
|
+
switch (this.transactionTypeCategory) {
|
|
19086
|
+
case TransactionTypeCategory.SalesOrderDeliveryNote:
|
|
19087
|
+
this.layoutCode = LayoutCode.DeliveryNote;
|
|
19088
|
+
this.layoutCodeLabel = 'DELIVERY_NOTE';
|
|
19089
|
+
break;
|
|
19090
|
+
case TransactionTypeCategory.SalesOrderInvoice:
|
|
19091
|
+
this.layoutCode = LayoutCode.Invoice;
|
|
19092
|
+
this.layoutCodeLabel = 'INVOICE';
|
|
19093
|
+
break;
|
|
19094
|
+
case TransactionTypeCategory.SalesOrderOverview:
|
|
19095
|
+
this.layoutCode = LayoutCode.OrderConfirmation;
|
|
19096
|
+
this.layoutCodeLabel = 'ORDER_CONFIRMATION';
|
|
19097
|
+
break;
|
|
19098
|
+
case TransactionTypeCategory.PurchaseOrderOverview:
|
|
19099
|
+
this.layoutCode = LayoutCode.PurchaseOrder;
|
|
19100
|
+
this.layoutCodeLabel = 'PURCHASE_ORDER';
|
|
19101
|
+
break;
|
|
19102
|
+
case TransactionTypeCategory.ServiceOrderService:
|
|
19103
|
+
this.layoutCode = LayoutCode.ServiceOrder;
|
|
19104
|
+
this.layoutCodeLabel = 'SERVICE_ORDER';
|
|
19105
|
+
break;
|
|
19106
|
+
case TransactionTypeCategory.SalesOrderQuotation:
|
|
19107
|
+
this.layoutCode = LayoutCode.Quotation;
|
|
19108
|
+
this.layoutCodeLabel = 'QUOTATION';
|
|
19109
|
+
break;
|
|
19110
|
+
default:
|
|
19111
|
+
this.layoutCode = LayoutCode.OrderConfirmation;
|
|
19112
|
+
this.layoutCodeLabel = 'ORDER_CONFIRMATION';
|
|
19113
|
+
}
|
|
19114
|
+
}
|
|
19115
|
+
LayoutCode = LayoutCode;
|
|
19116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSendDocumentsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSendDocumentsComponent, isStandalone: false, selector: "co-transaction-send-documents", inputs: { transactionTypeCategory: "transactionTypeCategory", selected: "selected" }, outputs: { openSendMethodDialog: "openSendMethodDialog" }, host: { properties: { "class.co-transaction-send-documents": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
19118
|
+
@if (historicReports?.length > 0) {
|
|
19119
|
+
<div class="send-documents-wrapper">
|
|
19120
|
+
<div class="amount-send-indicator">
|
|
19121
|
+
<span [textContent]="historicReports.length"></span>
|
|
19122
|
+
</div>
|
|
19123
|
+
<div class="send-button" [class.no-pointer]="historicReports.length === 0"
|
|
19124
|
+
[class.selected]="selected"
|
|
19125
|
+
(click)="toggleSendDocumentsDialog()">
|
|
19126
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.FileCircleInfoSolid)"></co-icon>
|
|
19127
|
+
<span [textContent]="'SENT' | localize"></span>
|
|
19128
|
+
</div>
|
|
19129
|
+
@if (showDialog) {
|
|
19130
|
+
<co-dialog-wizard (closeClick)="showDialog = false">
|
|
19131
|
+
<ng-container header>
|
|
19132
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ShareSharpRegular)"></co-icon>
|
|
19133
|
+
<div class="dialog-title" [textContent]="'ALREADY_SENT' | localize"></div>
|
|
19134
|
+
</ng-container>
|
|
19135
|
+
<div class="dialog-container">
|
|
19136
|
+
@for (report of historicReports; track report) {
|
|
19137
|
+
<div class="historic-report-line" (click)="handleShowHistoricDocumentLines(report)">
|
|
19138
|
+
<co-icon [iconData]="iconCacheService.getIcon(getSendMethodIcon(report))"></co-icon>
|
|
19139
|
+
<div class="historic-report-content">
|
|
19140
|
+
<span [textContent]="(layoutCodeLabel | localize) + ' ' + report.reportId"></span>
|
|
19141
|
+
<span [textContent]="report.reportCreationDate | date:'dd MMM yyyy HH:mm'"></span>
|
|
19142
|
+
@if (layoutCode === layoutCodes.Invoice) {
|
|
19143
|
+
<div class="invoice-number">
|
|
19144
|
+
<span [textContent]="('INVOICE_NUMBER' | localize) + ': ' + report.reportTransNr"></span>
|
|
19145
|
+
</div>
|
|
19146
|
+
}
|
|
19147
|
+
</div>
|
|
19148
|
+
</div>
|
|
19149
|
+
}
|
|
19150
|
+
</div>
|
|
19151
|
+
</co-dialog-wizard>
|
|
19152
|
+
}
|
|
19153
|
+
</div>
|
|
19154
|
+
}
|
|
19155
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.CoDialogWizardComponent, selector: "co-dialog-wizard", inputs: ["showCloseIcon", "animation"], outputs: ["closeClick"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
19156
|
+
}
|
|
19157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSendDocumentsComponent, decorators: [{
|
|
19158
|
+
type: Component,
|
|
19159
|
+
args: [{
|
|
19160
|
+
selector: "co-transaction-send-documents",
|
|
19161
|
+
template: `
|
|
19162
|
+
@if (historicReports?.length > 0) {
|
|
19163
|
+
<div class="send-documents-wrapper">
|
|
19164
|
+
<div class="amount-send-indicator">
|
|
19165
|
+
<span [textContent]="historicReports.length"></span>
|
|
19166
|
+
</div>
|
|
19167
|
+
<div class="send-button" [class.no-pointer]="historicReports.length === 0"
|
|
19168
|
+
[class.selected]="selected"
|
|
19169
|
+
(click)="toggleSendDocumentsDialog()">
|
|
19170
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.FileCircleInfoSolid)"></co-icon>
|
|
19171
|
+
<span [textContent]="'SENT' | localize"></span>
|
|
19172
|
+
</div>
|
|
19173
|
+
@if (showDialog) {
|
|
19174
|
+
<co-dialog-wizard (closeClick)="showDialog = false">
|
|
19175
|
+
<ng-container header>
|
|
19176
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.ShareSharpRegular)"></co-icon>
|
|
19177
|
+
<div class="dialog-title" [textContent]="'ALREADY_SENT' | localize"></div>
|
|
19178
|
+
</ng-container>
|
|
19179
|
+
<div class="dialog-container">
|
|
19180
|
+
@for (report of historicReports; track report) {
|
|
19181
|
+
<div class="historic-report-line" (click)="handleShowHistoricDocumentLines(report)">
|
|
19182
|
+
<co-icon [iconData]="iconCacheService.getIcon(getSendMethodIcon(report))"></co-icon>
|
|
19183
|
+
<div class="historic-report-content">
|
|
19184
|
+
<span [textContent]="(layoutCodeLabel | localize) + ' ' + report.reportId"></span>
|
|
19185
|
+
<span [textContent]="report.reportCreationDate | date:'dd MMM yyyy HH:mm'"></span>
|
|
19186
|
+
@if (layoutCode === layoutCodes.Invoice) {
|
|
19187
|
+
<div class="invoice-number">
|
|
19188
|
+
<span [textContent]="('INVOICE_NUMBER' | localize) + ': ' + report.reportTransNr"></span>
|
|
19189
|
+
</div>
|
|
19190
|
+
}
|
|
19191
|
+
</div>
|
|
19192
|
+
</div>
|
|
19193
|
+
}
|
|
19194
|
+
</div>
|
|
19195
|
+
</co-dialog-wizard>
|
|
19196
|
+
}
|
|
19197
|
+
</div>
|
|
19198
|
+
}
|
|
19199
|
+
`,
|
|
19200
|
+
encapsulation: ViewEncapsulation.None,
|
|
19201
|
+
standalone: false
|
|
19202
|
+
}]
|
|
19203
|
+
}], propDecorators: { transactionTypeCategory: [{
|
|
19204
|
+
type: Input
|
|
19205
|
+
}], selected: [{
|
|
19206
|
+
type: Input
|
|
19207
|
+
}], openSendMethodDialog: [{
|
|
19208
|
+
type: Output
|
|
19209
|
+
}], showClass: [{
|
|
19210
|
+
type: HostBinding,
|
|
19211
|
+
args: ["class.co-transaction-send-documents"]
|
|
19212
|
+
}] } });
|
|
19213
|
+
|
|
18995
19214
|
// The different view modes for search
|
|
18996
19215
|
var SearchViewMode;
|
|
18997
19216
|
(function (SearchViewMode) {
|
|
@@ -19193,6 +19412,7 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19193
19412
|
icons = Icon;
|
|
19194
19413
|
sendMethodType = SendMethodType;
|
|
19195
19414
|
transactionTypeCategory = TransactionTypeCategory;
|
|
19415
|
+
sendDocumentsComponent;
|
|
19196
19416
|
printerList = [];
|
|
19197
19417
|
emailLayouts = [];
|
|
19198
19418
|
printLayouts = [];
|
|
@@ -19328,8 +19548,21 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19328
19548
|
this.dialogService.hideToastAfterMs(2000);
|
|
19329
19549
|
}
|
|
19330
19550
|
}
|
|
19331
|
-
onShowFilePreview(reportId) {
|
|
19332
|
-
//override this
|
|
19551
|
+
async onShowFilePreview(reportId) {
|
|
19552
|
+
//override the preview data fetch methods for any children of this class that need preview functionality
|
|
19553
|
+
let previewResponse;
|
|
19554
|
+
this.disablePdfPreview = true;
|
|
19555
|
+
if (this.sendDocumentsComponent && this.sendDocumentsComponent.selected) {
|
|
19556
|
+
previewResponse = await this.getPreviewHistoricDocumentData(reportId);
|
|
19557
|
+
}
|
|
19558
|
+
else {
|
|
19559
|
+
previewResponse = await this.getPreviewDocumentData(reportId);
|
|
19560
|
+
}
|
|
19561
|
+
if (previewResponse) {
|
|
19562
|
+
this.pdfDoc = previewResponse.pdfContent;
|
|
19563
|
+
this.disablePdfPreview = false;
|
|
19564
|
+
this.detectChanges();
|
|
19565
|
+
}
|
|
19333
19566
|
}
|
|
19334
19567
|
getMethodFromEvent(method) {
|
|
19335
19568
|
let handleMethod;
|
|
@@ -19341,6 +19574,12 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19341
19574
|
}
|
|
19342
19575
|
return handleMethod;
|
|
19343
19576
|
}
|
|
19577
|
+
getPreviewHistoricDocumentData(reportId) {
|
|
19578
|
+
return Promise.resolve(null);
|
|
19579
|
+
}
|
|
19580
|
+
getPreviewDocumentData(reportId) {
|
|
19581
|
+
return Promise.resolve(null);
|
|
19582
|
+
}
|
|
19344
19583
|
async _prepareData() {
|
|
19345
19584
|
if (this.prepareFinished) {
|
|
19346
19585
|
return Promise.resolve();
|
|
@@ -19432,11 +19671,14 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19432
19671
|
});
|
|
19433
19672
|
}
|
|
19434
19673
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessSendMethodBaseComponent, deps: [{ token: TransactionSearchService }, { token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19435
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: TransactionQuickAccessSendMethodBaseComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
19674
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: TransactionQuickAccessSendMethodBaseComponent, isStandalone: true, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
19436
19675
|
}
|
|
19437
19676
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessSendMethodBaseComponent, decorators: [{
|
|
19438
19677
|
type: Directive
|
|
19439
|
-
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }]
|
|
19678
|
+
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }], propDecorators: { sendDocumentsComponent: [{
|
|
19679
|
+
type: ViewChild,
|
|
19680
|
+
args: [TransactionSendDocumentsComponent]
|
|
19681
|
+
}] } });
|
|
19440
19682
|
|
|
19441
19683
|
class TransactionPrintPackageStickerComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
19442
19684
|
icons = Icon;
|
|
@@ -58710,166 +58952,166 @@ class TransactionSearchPurchaseOrderTileComponent extends TransactionSearchTileB
|
|
|
58710
58952
|
}
|
|
58711
58953
|
}
|
|
58712
58954
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPurchaseOrderTileComponent, deps: [{ token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: TransactionEventService }], target: i0.ɵɵFactoryTarget.Component });
|
|
58713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchPurchaseOrderTileComponent, isStandalone: false, selector: "co-transaction-search-purchase-order-tile", usesInheritance: true, ngImport: i0, template: `
|
|
58714
|
-
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
58715
|
-
<div [class]="'type-indicator color-' + transaction.transactionKind"></div>
|
|
58716
|
-
<div class="tile">
|
|
58717
|
-
<div class="tile-header">
|
|
58718
|
-
<div class="tile-upper-left">
|
|
58719
|
-
<div class="transaction-tile-avatar">
|
|
58720
|
-
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
58721
|
-
<span [textContent]="transaction.transNr"></span>
|
|
58722
|
-
</div>
|
|
58723
|
-
</div>
|
|
58724
|
-
<div class="tile-upper-middle">
|
|
58725
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.StoreLight)" class="store-icon"></co-icon>
|
|
58726
|
-
<div class="text"><span [textContent]="transaction.branchNr"></span></div>
|
|
58727
|
-
</div>
|
|
58728
|
-
|
|
58729
|
-
<div class="tile-upper-right">
|
|
58730
|
-
<div class="status-bar-wrapper" (click)="$event.stopPropagation()">
|
|
58731
|
-
<co-transaction-statusbar
|
|
58732
|
-
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
58733
|
-
[configNames]="statusBarConfigNames"
|
|
58734
|
-
[transaction]="transaction">
|
|
58735
|
-
</co-transaction-statusbar>
|
|
58736
|
-
</div>
|
|
58737
|
-
</div>
|
|
58738
|
-
</div>
|
|
58739
|
-
<div class="tile-body">
|
|
58740
|
-
<div class="tile-middle-left">
|
|
58741
|
-
@if (showCheckbox && !transaction.isInProgressForBatchJob) {
|
|
58742
|
-
<co-input-checkbox
|
|
58743
|
-
[(model)]="transaction.selected"
|
|
58744
|
-
(modelChange)="onSelectedClick(transaction)">
|
|
58745
|
-
</co-input-checkbox>
|
|
58746
|
-
}
|
|
58747
|
-
@if (showCheckbox && transaction.isInProgressForBatchJob) {
|
|
58748
|
-
<co-icon
|
|
58749
|
-
class="batch-info-icon"
|
|
58750
|
-
[title]="'PART_OF_BATCH' | localize"
|
|
58751
|
-
[iconData]="iconCacheService.getIcon(icons.CircleInfoRegular)">
|
|
58752
|
-
</co-icon>
|
|
58753
|
-
}
|
|
58754
|
-
</div>
|
|
58755
|
-
<div class="tile-middle-middle">
|
|
58756
|
-
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
58757
|
-
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
58758
|
-
</div>
|
|
58759
|
-
<div class="tile-middle-right"></div>
|
|
58760
|
-
</div>
|
|
58761
|
-
<div class="tile-footer">
|
|
58762
|
-
<div class="tile-bottom-left order-info-section">
|
|
58763
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingClock)" class="store-icon"></co-icon>
|
|
58764
|
-
<div class="value">
|
|
58765
|
-
<span [textContent]="transaction.getTransDate() | date:'dd-MM-yyyy'"></span>
|
|
58766
|
-
</div>
|
|
58767
|
-
</div>
|
|
58768
|
-
<div class="tile-bottom-middle order-info-section">
|
|
58769
|
-
@if (transaction.getDeliveryDate()) {
|
|
58770
|
-
<div class="value">
|
|
58771
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularTruckMovingClock)" class="store-icon"></co-icon>
|
|
58772
|
-
<span [textContent]="transaction.getDeliveryDate() | date:'dd-MM-yyyy'"></span>
|
|
58773
|
-
@if (transaction.deliveryDateDefinitive) {
|
|
58774
|
-
<co-icon
|
|
58775
|
-
[iconData]="iconCacheService.getIcon(icons.Lock)" class="lock-icon"></co-icon>
|
|
58776
|
-
} @else {
|
|
58777
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.Unlock)" class="unlock-icon"></co-icon>
|
|
58778
|
-
}
|
|
58779
|
-
</div>
|
|
58780
|
-
}
|
|
58781
|
-
</div>
|
|
58782
|
-
<div class="tile-bottom-right order-info-section">
|
|
58783
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingTag)" class="store-icon"></co-icon>
|
|
58784
|
-
<div class="value"><span
|
|
58785
|
-
[textContent]="(transaction.totalPriceWithVat - transaction.totalPriceVat) | currency:'EUR'"></span></div>
|
|
58786
|
-
</div>
|
|
58787
|
-
</div>
|
|
58788
|
-
</div>
|
|
58789
|
-
</div>
|
|
58955
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchPurchaseOrderTileComponent, isStandalone: false, selector: "co-transaction-search-purchase-order-tile", usesInheritance: true, ngImport: i0, template: `
|
|
58956
|
+
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
58957
|
+
<div [class]="'type-indicator color-' + transaction.transactionKind"></div>
|
|
58958
|
+
<div class="tile">
|
|
58959
|
+
<div class="tile-header">
|
|
58960
|
+
<div class="tile-upper-left">
|
|
58961
|
+
<div class="transaction-tile-avatar">
|
|
58962
|
+
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
58963
|
+
<span [textContent]="transaction.transNr"></span>
|
|
58964
|
+
</div>
|
|
58965
|
+
</div>
|
|
58966
|
+
<div class="tile-upper-middle">
|
|
58967
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.StoreLight)" class="store-icon"></co-icon>
|
|
58968
|
+
<div class="text"><span [textContent]="transaction.branchNr"></span></div>
|
|
58969
|
+
</div>
|
|
58970
|
+
|
|
58971
|
+
<div class="tile-upper-right">
|
|
58972
|
+
<div class="status-bar-wrapper" (click)="$event.stopPropagation()">
|
|
58973
|
+
<co-transaction-statusbar
|
|
58974
|
+
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
58975
|
+
[configNames]="statusBarConfigNames"
|
|
58976
|
+
[transaction]="transaction">
|
|
58977
|
+
</co-transaction-statusbar>
|
|
58978
|
+
</div>
|
|
58979
|
+
</div>
|
|
58980
|
+
</div>
|
|
58981
|
+
<div class="tile-body">
|
|
58982
|
+
<div class="tile-middle-left">
|
|
58983
|
+
@if (showCheckbox && !transaction.isInProgressForBatchJob) {
|
|
58984
|
+
<co-input-checkbox
|
|
58985
|
+
[(model)]="transaction.selected"
|
|
58986
|
+
(modelChange)="onSelectedClick(transaction)">
|
|
58987
|
+
</co-input-checkbox>
|
|
58988
|
+
}
|
|
58989
|
+
@if (showCheckbox && transaction.isInProgressForBatchJob) {
|
|
58990
|
+
<co-icon
|
|
58991
|
+
class="batch-info-icon"
|
|
58992
|
+
[title]="'PART_OF_BATCH' | localize"
|
|
58993
|
+
[iconData]="iconCacheService.getIcon(icons.CircleInfoRegular)">
|
|
58994
|
+
</co-icon>
|
|
58995
|
+
}
|
|
58996
|
+
</div>
|
|
58997
|
+
<div class="tile-middle-middle">
|
|
58998
|
+
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
58999
|
+
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
59000
|
+
</div>
|
|
59001
|
+
<div class="tile-middle-right"></div>
|
|
59002
|
+
</div>
|
|
59003
|
+
<div class="tile-footer">
|
|
59004
|
+
<div class="tile-bottom-left order-info-section">
|
|
59005
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingClock)" class="store-icon"></co-icon>
|
|
59006
|
+
<div class="value">
|
|
59007
|
+
<span [textContent]="transaction.getTransDate() | date:'dd-MM-yyyy'"></span>
|
|
59008
|
+
</div>
|
|
59009
|
+
</div>
|
|
59010
|
+
<div class="tile-bottom-middle order-info-section">
|
|
59011
|
+
@if (transaction.getDeliveryDate()) {
|
|
59012
|
+
<div class="value">
|
|
59013
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularTruckMovingClock)" class="store-icon"></co-icon>
|
|
59014
|
+
<span [textContent]="transaction.getDeliveryDate() | date:'dd-MM-yyyy'"></span>
|
|
59015
|
+
@if (transaction.deliveryDateDefinitive) {
|
|
59016
|
+
<co-icon
|
|
59017
|
+
[iconData]="iconCacheService.getIcon(icons.Lock)" class="lock-icon"></co-icon>
|
|
59018
|
+
} @else {
|
|
59019
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.Unlock)" class="unlock-icon"></co-icon>
|
|
59020
|
+
}
|
|
59021
|
+
</div>
|
|
59022
|
+
}
|
|
59023
|
+
</div>
|
|
59024
|
+
<div class="tile-bottom-right order-info-section">
|
|
59025
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingTag)" class="store-icon"></co-icon>
|
|
59026
|
+
<div class="value"><span
|
|
59027
|
+
[textContent]="(transaction.totalPriceWithVat - transaction.totalPriceVat) | currency:'EUR'"></span></div>
|
|
59028
|
+
</div>
|
|
59029
|
+
</div>
|
|
59030
|
+
</div>
|
|
59031
|
+
</div>
|
|
58790
59032
|
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
58791
59033
|
}
|
|
58792
59034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPurchaseOrderTileComponent, decorators: [{
|
|
58793
59035
|
type: Component,
|
|
58794
59036
|
args: [{
|
|
58795
59037
|
selector: "co-transaction-search-purchase-order-tile",
|
|
58796
|
-
template: `
|
|
58797
|
-
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
58798
|
-
<div [class]="'type-indicator color-' + transaction.transactionKind"></div>
|
|
58799
|
-
<div class="tile">
|
|
58800
|
-
<div class="tile-header">
|
|
58801
|
-
<div class="tile-upper-left">
|
|
58802
|
-
<div class="transaction-tile-avatar">
|
|
58803
|
-
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
58804
|
-
<span [textContent]="transaction.transNr"></span>
|
|
58805
|
-
</div>
|
|
58806
|
-
</div>
|
|
58807
|
-
<div class="tile-upper-middle">
|
|
58808
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.StoreLight)" class="store-icon"></co-icon>
|
|
58809
|
-
<div class="text"><span [textContent]="transaction.branchNr"></span></div>
|
|
58810
|
-
</div>
|
|
58811
|
-
|
|
58812
|
-
<div class="tile-upper-right">
|
|
58813
|
-
<div class="status-bar-wrapper" (click)="$event.stopPropagation()">
|
|
58814
|
-
<co-transaction-statusbar
|
|
58815
|
-
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
58816
|
-
[configNames]="statusBarConfigNames"
|
|
58817
|
-
[transaction]="transaction">
|
|
58818
|
-
</co-transaction-statusbar>
|
|
58819
|
-
</div>
|
|
58820
|
-
</div>
|
|
58821
|
-
</div>
|
|
58822
|
-
<div class="tile-body">
|
|
58823
|
-
<div class="tile-middle-left">
|
|
58824
|
-
@if (showCheckbox && !transaction.isInProgressForBatchJob) {
|
|
58825
|
-
<co-input-checkbox
|
|
58826
|
-
[(model)]="transaction.selected"
|
|
58827
|
-
(modelChange)="onSelectedClick(transaction)">
|
|
58828
|
-
</co-input-checkbox>
|
|
58829
|
-
}
|
|
58830
|
-
@if (showCheckbox && transaction.isInProgressForBatchJob) {
|
|
58831
|
-
<co-icon
|
|
58832
|
-
class="batch-info-icon"
|
|
58833
|
-
[title]="'PART_OF_BATCH' | localize"
|
|
58834
|
-
[iconData]="iconCacheService.getIcon(icons.CircleInfoRegular)">
|
|
58835
|
-
</co-icon>
|
|
58836
|
-
}
|
|
58837
|
-
</div>
|
|
58838
|
-
<div class="tile-middle-middle">
|
|
58839
|
-
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
58840
|
-
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
58841
|
-
</div>
|
|
58842
|
-
<div class="tile-middle-right"></div>
|
|
58843
|
-
</div>
|
|
58844
|
-
<div class="tile-footer">
|
|
58845
|
-
<div class="tile-bottom-left order-info-section">
|
|
58846
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingClock)" class="store-icon"></co-icon>
|
|
58847
|
-
<div class="value">
|
|
58848
|
-
<span [textContent]="transaction.getTransDate() | date:'dd-MM-yyyy'"></span>
|
|
58849
|
-
</div>
|
|
58850
|
-
</div>
|
|
58851
|
-
<div class="tile-bottom-middle order-info-section">
|
|
58852
|
-
@if (transaction.getDeliveryDate()) {
|
|
58853
|
-
<div class="value">
|
|
58854
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularTruckMovingClock)" class="store-icon"></co-icon>
|
|
58855
|
-
<span [textContent]="transaction.getDeliveryDate() | date:'dd-MM-yyyy'"></span>
|
|
58856
|
-
@if (transaction.deliveryDateDefinitive) {
|
|
58857
|
-
<co-icon
|
|
58858
|
-
[iconData]="iconCacheService.getIcon(icons.Lock)" class="lock-icon"></co-icon>
|
|
58859
|
-
} @else {
|
|
58860
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.Unlock)" class="unlock-icon"></co-icon>
|
|
58861
|
-
}
|
|
58862
|
-
</div>
|
|
58863
|
-
}
|
|
58864
|
-
</div>
|
|
58865
|
-
<div class="tile-bottom-right order-info-section">
|
|
58866
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingTag)" class="store-icon"></co-icon>
|
|
58867
|
-
<div class="value"><span
|
|
58868
|
-
[textContent]="(transaction.totalPriceWithVat - transaction.totalPriceVat) | currency:'EUR'"></span></div>
|
|
58869
|
-
</div>
|
|
58870
|
-
</div>
|
|
58871
|
-
</div>
|
|
58872
|
-
</div>
|
|
59038
|
+
template: `
|
|
59039
|
+
<div class="transaction-tile-wrapper" (click)="onTransactionClick(transaction)">
|
|
59040
|
+
<div [class]="'type-indicator color-' + transaction.transactionKind"></div>
|
|
59041
|
+
<div class="tile">
|
|
59042
|
+
<div class="tile-header">
|
|
59043
|
+
<div class="tile-upper-left">
|
|
59044
|
+
<div class="transaction-tile-avatar">
|
|
59045
|
+
<co-avatar [image]="transaction.execImage" [relationId]="transaction.handledBy"></co-avatar>
|
|
59046
|
+
<span [textContent]="transaction.transNr"></span>
|
|
59047
|
+
</div>
|
|
59048
|
+
</div>
|
|
59049
|
+
<div class="tile-upper-middle">
|
|
59050
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.StoreLight)" class="store-icon"></co-icon>
|
|
59051
|
+
<div class="text"><span [textContent]="transaction.branchNr"></span></div>
|
|
59052
|
+
</div>
|
|
59053
|
+
|
|
59054
|
+
<div class="tile-upper-right">
|
|
59055
|
+
<div class="status-bar-wrapper" (click)="$event.stopPropagation()">
|
|
59056
|
+
<co-transaction-statusbar
|
|
59057
|
+
[screenConfigurationObject]="cfgNames.StatusBar"
|
|
59058
|
+
[configNames]="statusBarConfigNames"
|
|
59059
|
+
[transaction]="transaction">
|
|
59060
|
+
</co-transaction-statusbar>
|
|
59061
|
+
</div>
|
|
59062
|
+
</div>
|
|
59063
|
+
</div>
|
|
59064
|
+
<div class="tile-body">
|
|
59065
|
+
<div class="tile-middle-left">
|
|
59066
|
+
@if (showCheckbox && !transaction.isInProgressForBatchJob) {
|
|
59067
|
+
<co-input-checkbox
|
|
59068
|
+
[(model)]="transaction.selected"
|
|
59069
|
+
(modelChange)="onSelectedClick(transaction)">
|
|
59070
|
+
</co-input-checkbox>
|
|
59071
|
+
}
|
|
59072
|
+
@if (showCheckbox && transaction.isInProgressForBatchJob) {
|
|
59073
|
+
<co-icon
|
|
59074
|
+
class="batch-info-icon"
|
|
59075
|
+
[title]="'PART_OF_BATCH' | localize"
|
|
59076
|
+
[iconData]="iconCacheService.getIcon(icons.CircleInfoRegular)">
|
|
59077
|
+
</co-icon>
|
|
59078
|
+
}
|
|
59079
|
+
</div>
|
|
59080
|
+
<div class="tile-middle-middle">
|
|
59081
|
+
<div class="text"><span [textContent]="transaction.relationName"></span></div>
|
|
59082
|
+
<div class="text"><span [textContent]="transaction.getAdres()"></span></div>
|
|
59083
|
+
</div>
|
|
59084
|
+
<div class="tile-middle-right"></div>
|
|
59085
|
+
</div>
|
|
59086
|
+
<div class="tile-footer">
|
|
59087
|
+
<div class="tile-bottom-left order-info-section">
|
|
59088
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingClock)" class="store-icon"></co-icon>
|
|
59089
|
+
<div class="value">
|
|
59090
|
+
<span [textContent]="transaction.getTransDate() | date:'dd-MM-yyyy'"></span>
|
|
59091
|
+
</div>
|
|
59092
|
+
</div>
|
|
59093
|
+
<div class="tile-bottom-middle order-info-section">
|
|
59094
|
+
@if (transaction.getDeliveryDate()) {
|
|
59095
|
+
<div class="value">
|
|
59096
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularTruckMovingClock)" class="store-icon"></co-icon>
|
|
59097
|
+
<span [textContent]="transaction.getDeliveryDate() | date:'dd-MM-yyyy'"></span>
|
|
59098
|
+
@if (transaction.deliveryDateDefinitive) {
|
|
59099
|
+
<co-icon
|
|
59100
|
+
[iconData]="iconCacheService.getIcon(icons.Lock)" class="lock-icon"></co-icon>
|
|
59101
|
+
} @else {
|
|
59102
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.Unlock)" class="unlock-icon"></co-icon>
|
|
59103
|
+
}
|
|
59104
|
+
</div>
|
|
59105
|
+
}
|
|
59106
|
+
</div>
|
|
59107
|
+
<div class="tile-bottom-right order-info-section">
|
|
59108
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.RegularCartShoppingTag)" class="store-icon"></co-icon>
|
|
59109
|
+
<div class="value"><span
|
|
59110
|
+
[textContent]="(transaction.totalPriceWithVat - transaction.totalPriceVat) | currency:'EUR'"></span></div>
|
|
59111
|
+
</div>
|
|
59112
|
+
</div>
|
|
59113
|
+
</div>
|
|
59114
|
+
</div>
|
|
58873
59115
|
`,
|
|
58874
59116
|
encapsulation: ViewEncapsulation.None,
|
|
58875
59117
|
standalone: false
|
|
@@ -85384,225 +85626,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
85384
85626
|
}]
|
|
85385
85627
|
}] });
|
|
85386
85628
|
|
|
85387
|
-
class TransactionSendDocumentsComponent extends TransactionHeaderBaseComponent {
|
|
85388
|
-
layoutCodes = LayoutCode;
|
|
85389
|
-
set transactionTypeCategory(value) {
|
|
85390
|
-
this._transactionTypeCategory = value;
|
|
85391
|
-
this._setLayoutCode();
|
|
85392
|
-
}
|
|
85393
|
-
get transactionTypeCategory() {
|
|
85394
|
-
return this._transactionTypeCategory;
|
|
85395
|
-
}
|
|
85396
|
-
selected = false;
|
|
85397
|
-
openSendMethodDialog = new EventEmitter();
|
|
85398
|
-
showClass() {
|
|
85399
|
-
return true;
|
|
85400
|
-
}
|
|
85401
|
-
layoutCode;
|
|
85402
|
-
layoutCodeLabel;
|
|
85403
|
-
showDialog = false;
|
|
85404
|
-
activeReport;
|
|
85405
|
-
historicReports = [];
|
|
85406
|
-
_transactionTypeCategory;
|
|
85407
|
-
_subs = [];
|
|
85408
|
-
ngOnInit() {
|
|
85409
|
-
super.ngOnInit();
|
|
85410
|
-
this._subs.push(this.transactionEventService.refreshHistoricReports.subscribe(() => {
|
|
85411
|
-
this.getHistoricReports(true);
|
|
85412
|
-
}));
|
|
85413
|
-
this.getHistoricReports();
|
|
85414
|
-
}
|
|
85415
|
-
ngOnDestroy() {
|
|
85416
|
-
this._subs.forEach(s => s.unsubscribe());
|
|
85417
|
-
super.ngOnDestroy();
|
|
85418
|
-
}
|
|
85419
|
-
getHistoricReports(refresh = false) {
|
|
85420
|
-
if (this.layoutCode && (this.historicReports.length === 0 || refresh)) {
|
|
85421
|
-
this.transactionService.getHistoricDocuments(this.transactionInfo.id, this.layoutCode).then((result) => {
|
|
85422
|
-
if (result) {
|
|
85423
|
-
this.historicReports = result;
|
|
85424
|
-
this.detectChanges();
|
|
85425
|
-
}
|
|
85426
|
-
});
|
|
85427
|
-
}
|
|
85428
|
-
}
|
|
85429
|
-
toggleSendDocumentsDialog() {
|
|
85430
|
-
if (this.historicReports.length > 0) {
|
|
85431
|
-
if (this.selected) {
|
|
85432
|
-
this.activeReport = null;
|
|
85433
|
-
this.selected = false;
|
|
85434
|
-
}
|
|
85435
|
-
else {
|
|
85436
|
-
this.showDialog = !this.showDialog;
|
|
85437
|
-
}
|
|
85438
|
-
this.detectChanges();
|
|
85439
|
-
}
|
|
85440
|
-
}
|
|
85441
|
-
handleShowHistoricDocumentLines(historicReport) {
|
|
85442
|
-
this.showDialog = false;
|
|
85443
|
-
this.selected = true;
|
|
85444
|
-
this.activeReport = historicReport;
|
|
85445
|
-
this.openSendMethodDialog.emit();
|
|
85446
|
-
this.detectChanges();
|
|
85447
|
-
}
|
|
85448
|
-
getSendMethodIcon(report) {
|
|
85449
|
-
switch (report.historicSendmethod) {
|
|
85450
|
-
case 0: // Fax
|
|
85451
|
-
return this.icons.PrintSolid;
|
|
85452
|
-
case 1: // Print
|
|
85453
|
-
return this.icons.PrintSolid;
|
|
85454
|
-
case 2: // Email
|
|
85455
|
-
return this.icons.AtSolid;
|
|
85456
|
-
case 3: // Edi
|
|
85457
|
-
return this.icons.GearSolid;
|
|
85458
|
-
default: // undefined
|
|
85459
|
-
return this.icons.SquareFullSolid;
|
|
85460
|
-
}
|
|
85461
|
-
}
|
|
85462
|
-
getSendMethodDescription(report) {
|
|
85463
|
-
switch (report.historicSendmethod) {
|
|
85464
|
-
case 0:
|
|
85465
|
-
return 'Fax';
|
|
85466
|
-
case 1:
|
|
85467
|
-
return 'Print';
|
|
85468
|
-
case 2:
|
|
85469
|
-
return 'Email';
|
|
85470
|
-
case 3:
|
|
85471
|
-
return 'Edi';
|
|
85472
|
-
default:
|
|
85473
|
-
return 'Document';
|
|
85474
|
-
}
|
|
85475
|
-
}
|
|
85476
|
-
_setLayoutCode() {
|
|
85477
|
-
switch (this.transactionTypeCategory) {
|
|
85478
|
-
case TransactionTypeCategory.SalesOrderDeliveryNote:
|
|
85479
|
-
this.layoutCode = LayoutCode.DeliveryNote;
|
|
85480
|
-
this.layoutCodeLabel = 'DELIVERY_NOTE';
|
|
85481
|
-
break;
|
|
85482
|
-
case TransactionTypeCategory.SalesOrderInvoice:
|
|
85483
|
-
this.layoutCode = LayoutCode.Invoice;
|
|
85484
|
-
this.layoutCodeLabel = 'INVOICE';
|
|
85485
|
-
break;
|
|
85486
|
-
case TransactionTypeCategory.SalesOrderOverview:
|
|
85487
|
-
this.layoutCode = LayoutCode.OrderConfirmation;
|
|
85488
|
-
this.layoutCodeLabel = 'ORDER_CONFIRMATION';
|
|
85489
|
-
break;
|
|
85490
|
-
case TransactionTypeCategory.PurchaseOrderOverview:
|
|
85491
|
-
this.layoutCode = LayoutCode.PurchaseOrder;
|
|
85492
|
-
this.layoutCodeLabel = 'PURCHASE_ORDER';
|
|
85493
|
-
break;
|
|
85494
|
-
case TransactionTypeCategory.ServiceOrderService:
|
|
85495
|
-
this.layoutCode = LayoutCode.ServiceOrder;
|
|
85496
|
-
this.layoutCodeLabel = 'SERVICE_ORDER';
|
|
85497
|
-
break;
|
|
85498
|
-
case TransactionTypeCategory.SalesOrderQuotation:
|
|
85499
|
-
this.layoutCode = LayoutCode.Quotation;
|
|
85500
|
-
this.layoutCodeLabel = 'QUOTATION';
|
|
85501
|
-
break;
|
|
85502
|
-
default:
|
|
85503
|
-
this.layoutCode = LayoutCode.OrderConfirmation;
|
|
85504
|
-
this.layoutCodeLabel = 'ORDER_CONFIRMATION';
|
|
85505
|
-
}
|
|
85506
|
-
}
|
|
85507
|
-
LayoutCode = LayoutCode;
|
|
85508
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSendDocumentsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
85509
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSendDocumentsComponent, isStandalone: false, selector: "co-transaction-send-documents", inputs: { transactionTypeCategory: "transactionTypeCategory", selected: "selected" }, outputs: { openSendMethodDialog: "openSendMethodDialog" }, host: { properties: { "class.co-transaction-send-documents": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
85510
|
-
@if (historicReports?.length > 0) {
|
|
85511
|
-
<div class="send-documents-wrapper">
|
|
85512
|
-
<div class="amount-send-indicator">
|
|
85513
|
-
<span [textContent]="historicReports.length"></span>
|
|
85514
|
-
</div>
|
|
85515
|
-
<div class="send-button" [class.no-pointer]="historicReports.length === 0"
|
|
85516
|
-
[class.selected]="selected"
|
|
85517
|
-
(click)="toggleSendDocumentsDialog()">
|
|
85518
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.FileCircleInfoSolid)"></co-icon>
|
|
85519
|
-
<span [textContent]="'SENT' | localize"></span>
|
|
85520
|
-
</div>
|
|
85521
|
-
@if (showDialog) {
|
|
85522
|
-
<co-dialog-wizard (closeClick)="showDialog = false">
|
|
85523
|
-
<ng-container header>
|
|
85524
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ShareSharpRegular)"></co-icon>
|
|
85525
|
-
<div class="dialog-title" [textContent]="'ALREADY_SENT' | localize"></div>
|
|
85526
|
-
</ng-container>
|
|
85527
|
-
<div class="dialog-container">
|
|
85528
|
-
@for (report of historicReports; track report) {
|
|
85529
|
-
<div class="historic-report-line" (click)="handleShowHistoricDocumentLines(report)">
|
|
85530
|
-
<co-icon [iconData]="iconCacheService.getIcon(getSendMethodIcon(report))"></co-icon>
|
|
85531
|
-
<div class="historic-report-content">
|
|
85532
|
-
<span [textContent]="(layoutCodeLabel | localize) + ' ' + report.reportId"></span>
|
|
85533
|
-
<span [textContent]="report.reportCreationDate | date:'dd MMM yyyy HH:mm'"></span>
|
|
85534
|
-
@if (layoutCode === layoutCodes.Invoice) {
|
|
85535
|
-
<div class="invoice-number">
|
|
85536
|
-
<span [textContent]="('INVOICE_NUMBER' | localize) + ': ' + report.reportTransNr"></span>
|
|
85537
|
-
</div>
|
|
85538
|
-
}
|
|
85539
|
-
</div>
|
|
85540
|
-
</div>
|
|
85541
|
-
}
|
|
85542
|
-
</div>
|
|
85543
|
-
</co-dialog-wizard>
|
|
85544
|
-
}
|
|
85545
|
-
</div>
|
|
85546
|
-
}
|
|
85547
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.CoDialogWizardComponent, selector: "co-dialog-wizard", inputs: ["showCloseIcon", "animation"], outputs: ["closeClick"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
85548
|
-
}
|
|
85549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSendDocumentsComponent, decorators: [{
|
|
85550
|
-
type: Component,
|
|
85551
|
-
args: [{
|
|
85552
|
-
selector: "co-transaction-send-documents",
|
|
85553
|
-
template: `
|
|
85554
|
-
@if (historicReports?.length > 0) {
|
|
85555
|
-
<div class="send-documents-wrapper">
|
|
85556
|
-
<div class="amount-send-indicator">
|
|
85557
|
-
<span [textContent]="historicReports.length"></span>
|
|
85558
|
-
</div>
|
|
85559
|
-
<div class="send-button" [class.no-pointer]="historicReports.length === 0"
|
|
85560
|
-
[class.selected]="selected"
|
|
85561
|
-
(click)="toggleSendDocumentsDialog()">
|
|
85562
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.FileCircleInfoSolid)"></co-icon>
|
|
85563
|
-
<span [textContent]="'SENT' | localize"></span>
|
|
85564
|
-
</div>
|
|
85565
|
-
@if (showDialog) {
|
|
85566
|
-
<co-dialog-wizard (closeClick)="showDialog = false">
|
|
85567
|
-
<ng-container header>
|
|
85568
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.ShareSharpRegular)"></co-icon>
|
|
85569
|
-
<div class="dialog-title" [textContent]="'ALREADY_SENT' | localize"></div>
|
|
85570
|
-
</ng-container>
|
|
85571
|
-
<div class="dialog-container">
|
|
85572
|
-
@for (report of historicReports; track report) {
|
|
85573
|
-
<div class="historic-report-line" (click)="handleShowHistoricDocumentLines(report)">
|
|
85574
|
-
<co-icon [iconData]="iconCacheService.getIcon(getSendMethodIcon(report))"></co-icon>
|
|
85575
|
-
<div class="historic-report-content">
|
|
85576
|
-
<span [textContent]="(layoutCodeLabel | localize) + ' ' + report.reportId"></span>
|
|
85577
|
-
<span [textContent]="report.reportCreationDate | date:'dd MMM yyyy HH:mm'"></span>
|
|
85578
|
-
@if (layoutCode === layoutCodes.Invoice) {
|
|
85579
|
-
<div class="invoice-number">
|
|
85580
|
-
<span [textContent]="('INVOICE_NUMBER' | localize) + ': ' + report.reportTransNr"></span>
|
|
85581
|
-
</div>
|
|
85582
|
-
}
|
|
85583
|
-
</div>
|
|
85584
|
-
</div>
|
|
85585
|
-
}
|
|
85586
|
-
</div>
|
|
85587
|
-
</co-dialog-wizard>
|
|
85588
|
-
}
|
|
85589
|
-
</div>
|
|
85590
|
-
}
|
|
85591
|
-
`,
|
|
85592
|
-
encapsulation: ViewEncapsulation.None,
|
|
85593
|
-
standalone: false
|
|
85594
|
-
}]
|
|
85595
|
-
}], propDecorators: { transactionTypeCategory: [{
|
|
85596
|
-
type: Input
|
|
85597
|
-
}], selected: [{
|
|
85598
|
-
type: Input
|
|
85599
|
-
}], openSendMethodDialog: [{
|
|
85600
|
-
type: Output
|
|
85601
|
-
}], showClass: [{
|
|
85602
|
-
type: HostBinding,
|
|
85603
|
-
args: ["class.co-transaction-send-documents"]
|
|
85604
|
-
}] } });
|
|
85605
|
-
|
|
85606
85629
|
// @ts-ignore
|
|
85607
85630
|
class DigitalSignatureComponent {
|
|
85608
85631
|
_transactionConnectorService;
|
|
@@ -85738,7 +85761,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
85738
85761
|
|
|
85739
85762
|
class TransactionQuickAccessOverviewComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
85740
85763
|
categories = TransactionTypeCategory;
|
|
85741
|
-
sendDocumentsComponent;
|
|
85742
85764
|
showClass() {
|
|
85743
85765
|
return true;
|
|
85744
85766
|
}
|
|
@@ -85856,29 +85878,14 @@ class TransactionQuickAccessOverviewComponent extends TransactionQuickAccessSend
|
|
|
85856
85878
|
}
|
|
85857
85879
|
}
|
|
85858
85880
|
}
|
|
85859
|
-
async
|
|
85860
|
-
let previewResponse;
|
|
85861
|
-
this.disablePdfPreview = true;
|
|
85862
|
-
if (this.sendDocumentsComponent.selected) {
|
|
85863
|
-
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
85864
|
-
}
|
|
85865
|
-
else {
|
|
85866
|
-
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
85867
|
-
}
|
|
85868
|
-
if (previewResponse) {
|
|
85869
|
-
this.pdfDoc = previewResponse.pdfContent;
|
|
85870
|
-
this.disablePdfPreview = false;
|
|
85871
|
-
this.detectChanges();
|
|
85872
|
-
}
|
|
85873
|
-
}
|
|
85874
|
-
async _getPreviewHistoricDocumentData(reportId) {
|
|
85881
|
+
async getPreviewHistoricDocumentData(reportId) {
|
|
85875
85882
|
let historicRequest = new PdfHistoricOrderConfirmationRequest();
|
|
85876
85883
|
historicRequest.reportId = reportId;
|
|
85877
85884
|
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
85878
85885
|
this._prepareHistoricRequest(historicRequest);
|
|
85879
85886
|
return await this.transactionService.previewHistoricOrderConfirmation(historicRequest);
|
|
85880
85887
|
}
|
|
85881
|
-
async
|
|
85888
|
+
async getPreviewDocumentData(reportId) {
|
|
85882
85889
|
let request;
|
|
85883
85890
|
request = {
|
|
85884
85891
|
transId: this.transactionInfo.id,
|
|
@@ -85902,7 +85909,7 @@ class TransactionQuickAccessOverviewComponent extends TransactionQuickAccessSend
|
|
|
85902
85909
|
});
|
|
85903
85910
|
}
|
|
85904
85911
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessOverviewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
85905
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOverviewComponent, isStandalone: false, selector: "co-transaction-quick-access-overview", host: { properties: { "class.co-transaction-quick-access-overview": "this.showClass" } },
|
|
85912
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOverviewComponent, isStandalone: false, selector: "co-transaction-quick-access-overview", host: { properties: { "class.co-transaction-quick-access-overview": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
85906
85913
|
<co-quick-send-button
|
|
85907
85914
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
85908
85915
|
[showLoader]="showLoader"
|
|
@@ -86006,10 +86013,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86006
86013
|
encapsulation: ViewEncapsulation.None,
|
|
86007
86014
|
standalone: false
|
|
86008
86015
|
}]
|
|
86009
|
-
}], propDecorators: {
|
|
86010
|
-
type: ViewChild,
|
|
86011
|
-
args: [TransactionSendDocumentsComponent]
|
|
86012
|
-
}], showClass: [{
|
|
86016
|
+
}], propDecorators: { showClass: [{
|
|
86013
86017
|
type: HostBinding,
|
|
86014
86018
|
args: ['class.co-transaction-quick-access-overview']
|
|
86015
86019
|
}] } });
|
|
@@ -86295,7 +86299,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86295
86299
|
}] } });
|
|
86296
86300
|
|
|
86297
86301
|
class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
86298
|
-
sendDocumentsComponent;
|
|
86299
86302
|
showClass() {
|
|
86300
86303
|
return true;
|
|
86301
86304
|
}
|
|
@@ -86393,29 +86396,14 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
|
|
|
86393
86396
|
});
|
|
86394
86397
|
}
|
|
86395
86398
|
}
|
|
86396
|
-
async
|
|
86397
|
-
let previewResponse;
|
|
86398
|
-
this.disablePdfPreview = true;
|
|
86399
|
-
if (this.sendDocumentsComponent.selected) {
|
|
86400
|
-
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
86401
|
-
}
|
|
86402
|
-
else {
|
|
86403
|
-
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
86404
|
-
}
|
|
86405
|
-
if (previewResponse) {
|
|
86406
|
-
this.pdfDoc = previewResponse.pdfContent;
|
|
86407
|
-
this.disablePdfPreview = false;
|
|
86408
|
-
this.detectChanges();
|
|
86409
|
-
}
|
|
86410
|
-
}
|
|
86411
|
-
async _getPreviewHistoricDocumentData(reportId) {
|
|
86399
|
+
async getPreviewHistoricDocumentData(reportId) {
|
|
86412
86400
|
let historicRequest = new PdfHistoricDeliveryNoteRequest();
|
|
86413
86401
|
historicRequest.reportId = reportId;
|
|
86414
86402
|
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
86415
86403
|
this._prepareHistoricRequest(historicRequest);
|
|
86416
86404
|
return await this.transactionService.previewHistoricDeliveryNote(historicRequest);
|
|
86417
86405
|
}
|
|
86418
|
-
async
|
|
86406
|
+
async getPreviewDocumentData(reportId) {
|
|
86419
86407
|
let request;
|
|
86420
86408
|
let lines = this.filterLinesForRequest();
|
|
86421
86409
|
request = {
|
|
@@ -86485,7 +86473,7 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
|
|
|
86485
86473
|
});
|
|
86486
86474
|
}
|
|
86487
86475
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessOrderDeliveryComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
86488
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOrderDeliveryComponent, isStandalone: false, selector: "co-transaction-quick-access-order-delivery", host: { properties: { "class.co-transaction-quick-access-order-delivery": "this.showClass" } },
|
|
86476
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOrderDeliveryComponent, isStandalone: false, selector: "co-transaction-quick-access-order-delivery", host: { properties: { "class.co-transaction-quick-access-order-delivery": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
86489
86477
|
@if (transactionInfo.transactionDefinitive) {
|
|
86490
86478
|
<div class="quick-access-content-wrapper">
|
|
86491
86479
|
<div class="select-all-wrapper" [class.hidden]="!hasLinesToDeliver || !transactionInfo.allowPartialDelivery">
|
|
@@ -86601,10 +86589,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86601
86589
|
encapsulation: ViewEncapsulation.None,
|
|
86602
86590
|
standalone: false
|
|
86603
86591
|
}]
|
|
86604
|
-
}], propDecorators: {
|
|
86605
|
-
type: ViewChild,
|
|
86606
|
-
args: [TransactionSendDocumentsComponent]
|
|
86607
|
-
}], showClass: [{
|
|
86592
|
+
}], propDecorators: { showClass: [{
|
|
86608
86593
|
type: HostBinding,
|
|
86609
86594
|
args: ["class.co-transaction-quick-access-order-delivery"]
|
|
86610
86595
|
}] } });
|
|
@@ -86706,7 +86691,6 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
|
|
|
86706
86691
|
showClass() {
|
|
86707
86692
|
return true;
|
|
86708
86693
|
}
|
|
86709
|
-
sendDocumentsComponent;
|
|
86710
86694
|
canGenerate = false;
|
|
86711
86695
|
canReserve = false;
|
|
86712
86696
|
selectedTransactions = [];
|
|
@@ -86833,7 +86817,7 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
|
|
|
86833
86817
|
}
|
|
86834
86818
|
}
|
|
86835
86819
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessOrderPurchaseComponent, deps: [{ token: TransactionSearchService }, { token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: TransactionSalesReservationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
86836
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOrderPurchaseComponent, isStandalone: false, selector: "co-transaction-quick-access-order-purchase", host: { properties: { "class.co-transaction-quick-access-order-purchase": "this.showClass" } },
|
|
86820
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessOrderPurchaseComponent, isStandalone: false, selector: "co-transaction-quick-access-order-purchase", host: { properties: { "class.co-transaction-quick-access-order-purchase": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
86837
86821
|
@if (transactionInfo.transactionDefinitive) {
|
|
86838
86822
|
<div class="quick-access-content-wrapper">
|
|
86839
86823
|
@if (canGenerate) {
|
|
@@ -86944,9 +86928,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86944
86928
|
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }, { type: TransactionSalesReservationService }], propDecorators: { showClass: [{
|
|
86945
86929
|
type: HostBinding,
|
|
86946
86930
|
args: ['class.co-transaction-quick-access-order-purchase']
|
|
86947
|
-
}], sendDocumentsComponent: [{
|
|
86948
|
-
type: ViewChild,
|
|
86949
|
-
args: [TransactionSendDocumentsComponent]
|
|
86950
86931
|
}] } });
|
|
86951
86932
|
|
|
86952
86933
|
class TransactionQuickAccessOrderPurchaseModule {
|
|
@@ -87117,7 +87098,6 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
87117
87098
|
showClass() {
|
|
87118
87099
|
return true;
|
|
87119
87100
|
}
|
|
87120
|
-
sendDocumentsComponent;
|
|
87121
87101
|
reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
|
|
87122
87102
|
reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
|
|
87123
87103
|
reportDocumentPdfRequest = new PdfPurchaseOrderRequest();
|
|
@@ -87216,29 +87196,14 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
87216
87196
|
}
|
|
87217
87197
|
}
|
|
87218
87198
|
}
|
|
87219
|
-
async
|
|
87220
|
-
let previewResponse;
|
|
87221
|
-
this.disablePdfPreview = true;
|
|
87222
|
-
if (this.sendDocumentsComponent.selected) {
|
|
87223
|
-
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
87224
|
-
}
|
|
87225
|
-
else {
|
|
87226
|
-
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
87227
|
-
}
|
|
87228
|
-
if (previewResponse) {
|
|
87229
|
-
this.pdfDoc = previewResponse.pdfContent;
|
|
87230
|
-
this.disablePdfPreview = false;
|
|
87231
|
-
this.detectChanges();
|
|
87232
|
-
}
|
|
87233
|
-
}
|
|
87234
|
-
async _getPreviewHistoricDocumentData(reportId) {
|
|
87199
|
+
async getPreviewHistoricDocumentData(reportId) {
|
|
87235
87200
|
let historicRequest = new PdfHistoricPurchaseOrderRequest();
|
|
87236
87201
|
historicRequest.reportId = reportId;
|
|
87237
87202
|
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
87238
87203
|
this._prepareHistoricRequest(historicRequest);
|
|
87239
87204
|
return await this.transactionService.previewHistoricPurchaseOrder(historicRequest);
|
|
87240
87205
|
}
|
|
87241
|
-
async
|
|
87206
|
+
async getPreviewDocumentData(reportId) {
|
|
87242
87207
|
let request;
|
|
87243
87208
|
request = {
|
|
87244
87209
|
transId: this.transactionInfo.id,
|
|
@@ -87254,7 +87219,7 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
87254
87219
|
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
87255
87220
|
}
|
|
87256
87221
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPurchaseOrderOverviewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
87257
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPurchaseOrderOverviewComponent, isStandalone: false, selector: "co-transaction-quick-access-purchase-order-overview", host: { properties: { "class.co-transaction-quick-access-purchase-order-overview": "this.showClass" } },
|
|
87222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessPurchaseOrderOverviewComponent, isStandalone: false, selector: "co-transaction-quick-access-purchase-order-overview", host: { properties: { "class.co-transaction-quick-access-purchase-order-overview": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
87258
87223
|
<co-quick-send-button
|
|
87259
87224
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87260
87225
|
[showLoader]="showLoader"
|
|
@@ -87353,9 +87318,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
87353
87318
|
}], propDecorators: { showClass: [{
|
|
87354
87319
|
type: HostBinding,
|
|
87355
87320
|
args: ["class.co-transaction-quick-access-purchase-order-overview"]
|
|
87356
|
-
}], sendDocumentsComponent: [{
|
|
87357
|
-
type: ViewChild,
|
|
87358
|
-
args: [TransactionSendDocumentsComponent]
|
|
87359
87321
|
}] } });
|
|
87360
87322
|
|
|
87361
87323
|
class TransactionQuickAccessPurchaseOrderOverviewModule {
|
|
@@ -87400,7 +87362,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
87400
87362
|
}] });
|
|
87401
87363
|
|
|
87402
87364
|
class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
87403
|
-
sendDocumentsComponent;
|
|
87404
87365
|
showClass() {
|
|
87405
87366
|
return true;
|
|
87406
87367
|
}
|
|
@@ -87500,29 +87461,14 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
|
|
|
87500
87461
|
}
|
|
87501
87462
|
}
|
|
87502
87463
|
}
|
|
87503
|
-
async
|
|
87504
|
-
let previewResponse;
|
|
87505
|
-
this.disablePdfPreview = true;
|
|
87506
|
-
if (this.sendDocumentsComponent.selected) {
|
|
87507
|
-
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
87508
|
-
}
|
|
87509
|
-
else {
|
|
87510
|
-
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
87511
|
-
}
|
|
87512
|
-
if (previewResponse) {
|
|
87513
|
-
this.pdfDoc = previewResponse.pdfContent;
|
|
87514
|
-
this.disablePdfPreview = false;
|
|
87515
|
-
this.detectChanges();
|
|
87516
|
-
}
|
|
87517
|
-
}
|
|
87518
|
-
async _getPreviewHistoricDocumentData(reportId) {
|
|
87464
|
+
async getPreviewHistoricDocumentData(reportId) {
|
|
87519
87465
|
let historicRequest = new PdfHistoricInvoiceRequest();
|
|
87520
87466
|
historicRequest.reportId = reportId;
|
|
87521
87467
|
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
87522
87468
|
this._prepareHistoricRequest(historicRequest);
|
|
87523
87469
|
return await this.transactionService.previewHistoricInvoice(historicRequest);
|
|
87524
87470
|
}
|
|
87525
|
-
async
|
|
87471
|
+
async getPreviewDocumentData(reportId) {
|
|
87526
87472
|
let request;
|
|
87527
87473
|
let lines = this.filterLinesForRequest();
|
|
87528
87474
|
request = {
|
|
@@ -87594,7 +87540,7 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
|
|
|
87594
87540
|
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
87595
87541
|
}
|
|
87596
87542
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessInvoiceComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
87597
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessInvoiceComponent, isStandalone: false, selector: "co-transaction-quick-access-invoice", host: { properties: { "class.co-transaction-quick-access-invoice": "this.showClass" } },
|
|
87543
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessInvoiceComponent, isStandalone: false, selector: "co-transaction-quick-access-invoice", host: { properties: { "class.co-transaction-quick-access-invoice": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
87598
87544
|
@if (transactionInfo.transactionDefinitive) {
|
|
87599
87545
|
<div class="quick-access-content-wrapper">
|
|
87600
87546
|
<div class="select-all-wrapper" [class.hidden]="!hasLinesToInvoice || !transactionInfo.allowPartialDelivery">
|
|
@@ -87704,10 +87650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
87704
87650
|
encapsulation: ViewEncapsulation.None,
|
|
87705
87651
|
standalone: false
|
|
87706
87652
|
}]
|
|
87707
|
-
}], propDecorators: {
|
|
87708
|
-
type: ViewChild,
|
|
87709
|
-
args: [TransactionSendDocumentsComponent]
|
|
87710
|
-
}], showClass: [{
|
|
87653
|
+
}], propDecorators: { showClass: [{
|
|
87711
87654
|
type: HostBinding,
|
|
87712
87655
|
args: ["class.co-transaction-quick-access-invoice"]
|
|
87713
87656
|
}] } });
|
|
@@ -88131,7 +88074,6 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
88131
88074
|
dialogService;
|
|
88132
88075
|
connector;
|
|
88133
88076
|
_transactionCreationService;
|
|
88134
|
-
sendDocumentsComponent;
|
|
88135
88077
|
showConvertDialog = false;
|
|
88136
88078
|
creatingSalesOrder = false;
|
|
88137
88079
|
refTransactions = [];
|
|
@@ -88308,7 +88250,7 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
88308
88250
|
this.transactionEventService.toggleSalesQuotationMarginInfo.next(selected);
|
|
88309
88251
|
}
|
|
88310
88252
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessSalesQuotationComponent, deps: [{ token: TransactionSearchService }, { token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionService }, { token: TransactionImageService }, { token: DictionaryService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: TransactionConnectorService }, { token: TransactionCreationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
88311
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessSalesQuotationComponent, isStandalone: false, selector: "co-transaction-quick-access-sales-quotation", host: { properties: { "class.co-transaction-quick-access-sales-quotation": "this.showClass" } },
|
|
88253
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessSalesQuotationComponent, isStandalone: false, selector: "co-transaction-quick-access-sales-quotation", host: { properties: { "class.co-transaction-quick-access-sales-quotation": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
88312
88254
|
<div class="quick-access-content-wrapper">
|
|
88313
88255
|
<co-quick-send-button
|
|
88314
88256
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
@@ -88424,10 +88366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
88424
88366
|
encapsulation: ViewEncapsulation.None,
|
|
88425
88367
|
standalone: false
|
|
88426
88368
|
}]
|
|
88427
|
-
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionService }, { type: TransactionImageService }, { type: DictionaryService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }, { type: TransactionConnectorService }, { type: TransactionCreationService }], propDecorators: {
|
|
88428
|
-
type: ViewChild,
|
|
88429
|
-
args: [TransactionSendDocumentsComponent]
|
|
88430
|
-
}], showClass: [{
|
|
88369
|
+
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionService }, { type: TransactionImageService }, { type: DictionaryService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }, { type: TransactionConnectorService }, { type: TransactionCreationService }], propDecorators: { showClass: [{
|
|
88431
88370
|
type: HostBinding,
|
|
88432
88371
|
args: ['class.co-transaction-quick-access-sales-quotation']
|
|
88433
88372
|
}] } });
|
|
@@ -89545,7 +89484,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
89545
89484
|
}] });
|
|
89546
89485
|
|
|
89547
89486
|
class TransactionQuickAccessServiceOrderComponent extends TransactionQuickAccessSendMethodBaseComponent {
|
|
89548
|
-
sendDocumentsComponent;
|
|
89549
89487
|
showClass() {
|
|
89550
89488
|
return true;
|
|
89551
89489
|
}
|
|
@@ -89631,7 +89569,7 @@ class TransactionQuickAccessServiceOrderComponent extends TransactionQuickAccess
|
|
|
89631
89569
|
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
89632
89570
|
}
|
|
89633
89571
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessServiceOrderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
89634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessServiceOrderComponent, isStandalone: false, selector: "co-transaction-quick-access-service-order", host: { properties: { "class.co-transaction-quick-access-service-order": "this.showClass" } },
|
|
89572
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessServiceOrderComponent, isStandalone: false, selector: "co-transaction-quick-access-service-order", host: { properties: { "class.co-transaction-quick-access-service-order": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
89635
89573
|
<div class="quick-access-content-wrapper">
|
|
89636
89574
|
<co-quick-send-button
|
|
89637
89575
|
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
@@ -89705,10 +89643,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
89705
89643
|
encapsulation: ViewEncapsulation.None,
|
|
89706
89644
|
standalone: false
|
|
89707
89645
|
}]
|
|
89708
|
-
}], propDecorators: {
|
|
89709
|
-
type: ViewChild,
|
|
89710
|
-
args: [TransactionSendDocumentsComponent]
|
|
89711
|
-
}], showClass: [{
|
|
89646
|
+
}], propDecorators: { showClass: [{
|
|
89712
89647
|
type: HostBinding,
|
|
89713
89648
|
args: ["class.co-transaction-quick-access-service-order"]
|
|
89714
89649
|
}] } });
|
|
@@ -90147,7 +90082,6 @@ class TransactionQuickAccessInterbranchOrderPurchaseComponent extends Transactio
|
|
|
90147
90082
|
showClass() {
|
|
90148
90083
|
return true;
|
|
90149
90084
|
}
|
|
90150
|
-
sendDocumentsComponent;
|
|
90151
90085
|
canGenerate = false;
|
|
90152
90086
|
canReserve = false;
|
|
90153
90087
|
selectedTransactions = [];
|
|
@@ -90260,7 +90194,7 @@ class TransactionQuickAccessInterbranchOrderPurchaseComponent extends Transactio
|
|
|
90260
90194
|
}
|
|
90261
90195
|
}
|
|
90262
90196
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessInterbranchOrderPurchaseComponent, deps: [{ token: TransactionSearchService }, { token: TransactionHeaderService }, { token: TransactionEventService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: TransactionImageService }, { token: DictionaryService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: TransactionSalesReservationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessInterbranchOrderPurchaseComponent, isStandalone: false, selector: "co-transaction-quick-access-interbranch-order-purchase", host: { properties: { "class.co-transaction-quick-access-order-purchase": "this.showClass" } },
|
|
90197
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionQuickAccessInterbranchOrderPurchaseComponent, isStandalone: false, selector: "co-transaction-quick-access-interbranch-order-purchase", host: { properties: { "class.co-transaction-quick-access-order-purchase": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
90264
90198
|
@if (transactionInfo.transactionDefinitive) {
|
|
90265
90199
|
<div class="quick-access-content-wrapper">
|
|
90266
90200
|
@if (canGenerate) {
|
|
@@ -90286,7 +90220,7 @@ class TransactionQuickAccessInterbranchOrderPurchaseComponent extends Transactio
|
|
|
90286
90220
|
}
|
|
90287
90221
|
</div>
|
|
90288
90222
|
}
|
|
90289
|
-
|
|
90223
|
+
|
|
90290
90224
|
@if (showSendMethodDialog) {
|
|
90291
90225
|
<co-send-method-dialog
|
|
90292
90226
|
[headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
|
|
@@ -90340,7 +90274,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
90340
90274
|
}
|
|
90341
90275
|
</div>
|
|
90342
90276
|
}
|
|
90343
|
-
|
|
90277
|
+
|
|
90344
90278
|
@if (showSendMethodDialog) {
|
|
90345
90279
|
<co-send-method-dialog
|
|
90346
90280
|
[headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
|
|
@@ -90369,9 +90303,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
90369
90303
|
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: TransactionHeaderService }, { type: TransactionEventService }, { type: IconCacheService }, { type: TransactionScreenConfigurationService }, { type: TransactionImageService }, { type: DictionaryService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionDialogService }, { type: TransactionSalesReservationService }], propDecorators: { showClass: [{
|
|
90370
90304
|
type: HostBinding,
|
|
90371
90305
|
args: ['class.co-transaction-quick-access-order-purchase']
|
|
90372
|
-
}], sendDocumentsComponent: [{
|
|
90373
|
-
type: ViewChild,
|
|
90374
|
-
args: [TransactionSendDocumentsComponent]
|
|
90375
90306
|
}] } });
|
|
90376
90307
|
|
|
90377
90308
|
class TransactionQuickAccessInterbranchOrderPurchaseModule {
|