@colijnit/transaction 261.20.16 → 261.20.17
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 +651 -391
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +47 -6
- package/lib/component/add-product/style/_layout.scss +21 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +2 -1
- package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +2 -2
- package/package.json +1 -1
|
@@ -188,7 +188,6 @@ import { PrintPackageStickerRequest } from '@colijnit/transactionapi/build/model
|
|
|
188
188
|
import { CommunicationType } from '@colijnit/relationapi/build/enum/communication-type.enum';
|
|
189
189
|
import { SendMethodType } from '@colijnit/mainapi/build/enum/send-method-type.enum';
|
|
190
190
|
import { LayoutCode } from '@colijnit/transactionapi/build/enum/layout-code.enum';
|
|
191
|
-
import { TransactionLineReportingRequest } from '@colijnit/transactionapi/build/model/transaction-line-reporting-request.bo';
|
|
192
191
|
import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
|
|
193
192
|
import { ReportingDocumentPdfBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-pdf-base-request';
|
|
194
193
|
import { ReportingDocumentEmailSignDocBaseRequest } from '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request';
|
|
@@ -289,11 +288,16 @@ import { GeneratePurchaseOrdersForDirectSellSalesOrdersRequest } from '@colijnit
|
|
|
289
288
|
import { EmailDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/email-delivery-note-request';
|
|
290
289
|
import { PrintDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/print-delivery-note-request';
|
|
291
290
|
import { PdfDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/pdf-delivery-note-request';
|
|
291
|
+
import { TransactionLineReportingRequest } from '@colijnit/transactionapi/build/model/transaction-line-reporting-request.bo';
|
|
292
292
|
import { EmailHistoricDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/email-historic-delivery-note-request';
|
|
293
293
|
import { PrintHistoricDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/print-historic-delivery-note-request';
|
|
294
294
|
import { PdfHistoricDeliveryNoteRequest } from '@colijnit/transactionapi/build/model/pdf-historic-delivery-note-request';
|
|
295
295
|
import { PrintPurchaseOrderForTransactionRequest } from '@colijnit/mainapi/build/model/print-purchase-order-for-transaction-request';
|
|
296
296
|
import { PdfPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/pdf-purchase-order-request';
|
|
297
|
+
import { PdfHistoricPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/pdf-historic-purchase-order-request';
|
|
298
|
+
import { EmailHistoricPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/email-historic-purchase-order-request';
|
|
299
|
+
import { EmailPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/email-purchase-order-request';
|
|
300
|
+
import { PrintHistoricPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/print-historic-purchase-order-request';
|
|
297
301
|
import { EmailInvoiceRequest } from '@colijnit/transactionapi/build/model/email-invoice-request';
|
|
298
302
|
import { PrintInvoiceRequest } from '@colijnit/transactionapi/build/model/print-invoice-request';
|
|
299
303
|
import { PdfHistoricInvoiceRequest } from '@colijnit/transactionapi/build/model/pdf-historic-invoice-request';
|
|
@@ -335,8 +339,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
335
339
|
class Version {
|
|
336
340
|
name = "@colijnit/transaction";
|
|
337
341
|
description = "Colijn IT transaction package";
|
|
338
|
-
symVer = "261.20.
|
|
339
|
-
publishDate = "
|
|
342
|
+
symVer = "261.20.17";
|
|
343
|
+
publishDate = "9-3-2026, 17:53:48";
|
|
340
344
|
}
|
|
341
345
|
|
|
342
346
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -5173,6 +5177,17 @@ class TransactionConnectorAdapterService {
|
|
|
5173
5177
|
return null;
|
|
5174
5178
|
}
|
|
5175
5179
|
}
|
|
5180
|
+
async previewHistoricOrderConfirmation(pdfHistoricOrderConfirmationRequest) {
|
|
5181
|
+
const response = await this.connector.pdfHistoricOrderConfirmation(pdfHistoricOrderConfirmationRequest);
|
|
5182
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5183
|
+
this._transactionEventService.refreshHistoricReports.next();
|
|
5184
|
+
return response.resultObject;
|
|
5185
|
+
}
|
|
5186
|
+
else {
|
|
5187
|
+
this._handleExceptionFromResponse(response);
|
|
5188
|
+
return null;
|
|
5189
|
+
}
|
|
5190
|
+
}
|
|
5176
5191
|
async previewDeliveryNote(request) {
|
|
5177
5192
|
const response = await this.connector.previewDeliveryNote(request);
|
|
5178
5193
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -5184,6 +5199,17 @@ class TransactionConnectorAdapterService {
|
|
|
5184
5199
|
return null;
|
|
5185
5200
|
}
|
|
5186
5201
|
}
|
|
5202
|
+
async previewHistoricDeliveryNote(pdfHistoricDeliveryNoteRequest) {
|
|
5203
|
+
const response = await this.connector.pdfHistoricDeliveryNote(pdfHistoricDeliveryNoteRequest);
|
|
5204
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5205
|
+
this._transactionEventService.refreshHistoricReports.next();
|
|
5206
|
+
return response.resultObject;
|
|
5207
|
+
}
|
|
5208
|
+
else {
|
|
5209
|
+
this._handleExceptionFromResponse(response);
|
|
5210
|
+
return null;
|
|
5211
|
+
}
|
|
5212
|
+
}
|
|
5187
5213
|
async previewInvoice(request) {
|
|
5188
5214
|
const response = await this.connector.previewInvoice(request);
|
|
5189
5215
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -5195,6 +5221,17 @@ class TransactionConnectorAdapterService {
|
|
|
5195
5221
|
return null;
|
|
5196
5222
|
}
|
|
5197
5223
|
}
|
|
5224
|
+
async previewHistoricInvoice(pdfHistoricInvoiceRequest) {
|
|
5225
|
+
const response = await this.connector.pdfHistoricInvoice(pdfHistoricInvoiceRequest);
|
|
5226
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5227
|
+
this._transactionEventService.refreshHistoricReports.next();
|
|
5228
|
+
return response.resultObject;
|
|
5229
|
+
}
|
|
5230
|
+
else {
|
|
5231
|
+
this._handleExceptionFromResponse(response);
|
|
5232
|
+
return null;
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5198
5235
|
async previewPurchaseOrder(request) {
|
|
5199
5236
|
const response = await this.connector.previewPurchaseOrder(request);
|
|
5200
5237
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -5206,6 +5243,17 @@ class TransactionConnectorAdapterService {
|
|
|
5206
5243
|
return null;
|
|
5207
5244
|
}
|
|
5208
5245
|
}
|
|
5246
|
+
async previewHistoricPurchaseOrder(pdfHistoricPurchaseOrderRequest) {
|
|
5247
|
+
const response = await this.connector.pdfHistoricPurchaseOrder(pdfHistoricPurchaseOrderRequest);
|
|
5248
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5249
|
+
this._transactionEventService.refreshHistoricReports.next();
|
|
5250
|
+
return response.resultObject;
|
|
5251
|
+
}
|
|
5252
|
+
else {
|
|
5253
|
+
this._handleExceptionFromResponse(response);
|
|
5254
|
+
return null;
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5209
5257
|
async pdfHistoricOrderConfirmation(request, localPrint = false) {
|
|
5210
5258
|
const response = await this.connector.pdfHistoricOrderConfirmation(request);
|
|
5211
5259
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -5228,6 +5276,16 @@ class TransactionConnectorAdapterService {
|
|
|
5228
5276
|
}
|
|
5229
5277
|
async printPurchaseOrder(request) {
|
|
5230
5278
|
const response = await this.connector.printPurchaseOrder(request);
|
|
5279
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5280
|
+
return true;
|
|
5281
|
+
}
|
|
5282
|
+
else {
|
|
5283
|
+
this._handleExceptionFromResponse(response);
|
|
5284
|
+
return null;
|
|
5285
|
+
}
|
|
5286
|
+
}
|
|
5287
|
+
async printHistoricPurchaseOrder(request) {
|
|
5288
|
+
const response = await this.connector.printHistoricPurchaseOrder(request);
|
|
5231
5289
|
if (response && response.validationResult && response.validationResult.success) {
|
|
5232
5290
|
return response.resultObject;
|
|
5233
5291
|
}
|
|
@@ -5238,6 +5296,17 @@ class TransactionConnectorAdapterService {
|
|
|
5238
5296
|
}
|
|
5239
5297
|
async emailPurchaseOrder(request) {
|
|
5240
5298
|
const response = await this.connector.emailPurchaseOrder(request);
|
|
5299
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5300
|
+
this._handleMessageFromSuccessResponse(response.validationResult);
|
|
5301
|
+
return true;
|
|
5302
|
+
}
|
|
5303
|
+
else {
|
|
5304
|
+
this._handleExceptionFromResponse(response);
|
|
5305
|
+
return null;
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
async emailHistoricPurchaseOrder(request) {
|
|
5309
|
+
const response = await this.connector.emailHistoricPurchaseOrder(request);
|
|
5241
5310
|
if (response && response.validationResult && response.validationResult.success) {
|
|
5242
5311
|
this._handleMessageFromSuccessResponse(response.validationResult);
|
|
5243
5312
|
return response.resultObject;
|
|
@@ -5258,6 +5327,25 @@ class TransactionConnectorAdapterService {
|
|
|
5258
5327
|
this._openPdfContent(response.resultObject.pdfContent);
|
|
5259
5328
|
}
|
|
5260
5329
|
}
|
|
5330
|
+
return true;
|
|
5331
|
+
}
|
|
5332
|
+
else {
|
|
5333
|
+
this._handleExceptionFromResponse(response);
|
|
5334
|
+
return null;
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
async pdfHistoricPurchaseOrder(request, localPrint = false) {
|
|
5338
|
+
const response = await this.connector.pdfHistoricPurchaseOrder(request);
|
|
5339
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5340
|
+
if (response.resultObject && response.resultObject.pdfContent) {
|
|
5341
|
+
if (localPrint) {
|
|
5342
|
+
this._handleLocalPrintFile(response.resultObject.pdfContent);
|
|
5343
|
+
return true;
|
|
5344
|
+
}
|
|
5345
|
+
else {
|
|
5346
|
+
this._openPdfContent(response.resultObject.pdfContent);
|
|
5347
|
+
}
|
|
5348
|
+
}
|
|
5261
5349
|
return response.resultObject;
|
|
5262
5350
|
}
|
|
5263
5351
|
else {
|
|
@@ -8324,27 +8412,48 @@ class TransactionConnectorService {
|
|
|
8324
8412
|
async previewOrderConfirmation(request) {
|
|
8325
8413
|
return this._adapterService.functionCall(this._adapterService.previewOrderConfirmation, [request]);
|
|
8326
8414
|
}
|
|
8415
|
+
async previewHistoricOrderConfirmation(request) {
|
|
8416
|
+
return this._adapterService.functionCall(this._adapterService.previewHistoricOrderConfirmation, [request]);
|
|
8417
|
+
}
|
|
8327
8418
|
async previewDeliveryNote(request) {
|
|
8328
8419
|
return this._adapterService.functionCall(this._adapterService.previewDeliveryNote, [request]);
|
|
8329
8420
|
}
|
|
8421
|
+
async previewHistoricDeliveryNote(request) {
|
|
8422
|
+
return this._adapterService.functionCall(this._adapterService.previewHistoricDeliveryNote, [request]);
|
|
8423
|
+
}
|
|
8330
8424
|
async previewInvoice(request) {
|
|
8331
8425
|
return this._adapterService.functionCall(this._adapterService.previewInvoice, [request]);
|
|
8332
8426
|
}
|
|
8427
|
+
async previewHistoricInvoice(request) {
|
|
8428
|
+
return this._adapterService.functionCall(this._adapterService.previewHistoricInvoice, [request]);
|
|
8429
|
+
}
|
|
8333
8430
|
async previewPurchaseOrder(request) {
|
|
8334
8431
|
return this._adapterService.functionCall(this._adapterService.previewPurchaseOrder, [request]);
|
|
8335
8432
|
}
|
|
8433
|
+
async previewHistoricPurchaseOrder(request) {
|
|
8434
|
+
return this._adapterService.functionCall(this._adapterService.previewHistoricPurchaseOrder, [request]);
|
|
8435
|
+
}
|
|
8336
8436
|
async pdfHistoricOrderConfirmation(request, localPrint = false) {
|
|
8337
8437
|
return this._adapterService.functionCall(this._adapterService.pdfHistoricOrderConfirmation, [request, localPrint]);
|
|
8338
8438
|
}
|
|
8339
8439
|
async printPurchaseOrder(request) {
|
|
8340
8440
|
return this._adapterService.functionCall(this._adapterService.printPurchaseOrder, [request]);
|
|
8341
8441
|
}
|
|
8442
|
+
async printHistoricPurchaseOrder(request) {
|
|
8443
|
+
return this._adapterService.functionCall(this._adapterService.printHistoricPurchaseOrder, [request]);
|
|
8444
|
+
}
|
|
8342
8445
|
async emailPurchaseOrder(request) {
|
|
8343
8446
|
return this._adapterService.functionCall(this._adapterService.emailPurchaseOrder, [request]);
|
|
8344
8447
|
}
|
|
8448
|
+
async emailHistoricPurchaseOrder(request) {
|
|
8449
|
+
return this._adapterService.functionCall(this._adapterService.emailHistoricPurchaseOrder, [request]);
|
|
8450
|
+
}
|
|
8345
8451
|
async pdfPurchaseOrder(request, localPrint) {
|
|
8346
8452
|
return this._adapterService.functionCall(this._adapterService.pdfPurchaseOrder, [request, localPrint]);
|
|
8347
8453
|
}
|
|
8454
|
+
async pdfHistoricPurchaseOrder(request, localPrint) {
|
|
8455
|
+
return this._adapterService.functionCall(this._adapterService.pdfHistoricPurchaseOrder, [request, localPrint]);
|
|
8456
|
+
}
|
|
8348
8457
|
async generateWebServiceOrder(transactionId) {
|
|
8349
8458
|
return this._adapterService.functionCall(this._adapterService.generateWebServiceOrder, [transactionId]);
|
|
8350
8459
|
}
|
|
@@ -11524,26 +11633,56 @@ class TransactionService extends PendingReasonService {
|
|
|
11524
11633
|
async previewOrderConfirmation(request) {
|
|
11525
11634
|
return await this.connector.previewOrderConfirmation(request);
|
|
11526
11635
|
}
|
|
11636
|
+
async previewHistoricOrderConfirmation(request) {
|
|
11637
|
+
return await this.connector.previewHistoricOrderConfirmation(request);
|
|
11638
|
+
}
|
|
11527
11639
|
async previewDeliveryNote(request) {
|
|
11528
11640
|
return await this.connector.previewDeliveryNote(request);
|
|
11529
11641
|
}
|
|
11642
|
+
async previewHistoricDeliveryNote(request) {
|
|
11643
|
+
return await this.connector.previewHistoricDeliveryNote(request);
|
|
11644
|
+
}
|
|
11530
11645
|
async previewInvoice(request) {
|
|
11531
11646
|
return await this.connector.previewInvoice(request);
|
|
11532
11647
|
}
|
|
11648
|
+
async previewHistoricInvoice(request) {
|
|
11649
|
+
return await this.connector.previewHistoricInvoice(request);
|
|
11650
|
+
}
|
|
11533
11651
|
async previewPurchaseOrder(request) {
|
|
11534
11652
|
return await this.connector.previewPurchaseOrder(request);
|
|
11535
11653
|
}
|
|
11654
|
+
async previewHistoricPurchaseOrder(request) {
|
|
11655
|
+
return await this.connector.previewHistoricPurchaseOrder(request);
|
|
11656
|
+
}
|
|
11536
11657
|
async pdfHistoricOrderConfirmation(request, localPrint = false) {
|
|
11537
11658
|
return await this.connector.pdfHistoricOrderConfirmation(request, localPrint);
|
|
11538
11659
|
}
|
|
11539
11660
|
async printPurchaseOrder(request) {
|
|
11540
|
-
|
|
11661
|
+
const result = await this.connector.printPurchaseOrder(request);
|
|
11662
|
+
if (result) {
|
|
11663
|
+
await this.commitAndRefreshTransaction();
|
|
11664
|
+
}
|
|
11665
|
+
}
|
|
11666
|
+
async printHistoricPurchaseOrder(request) {
|
|
11667
|
+
return await this.connector.printHistoricPurchaseOrder(request);
|
|
11541
11668
|
}
|
|
11542
11669
|
async emailPurchaseOrder(request) {
|
|
11543
|
-
|
|
11670
|
+
const result = await this.connector.emailPurchaseOrder(request);
|
|
11671
|
+
if (result) {
|
|
11672
|
+
await this.commitAndRefreshTransaction();
|
|
11673
|
+
}
|
|
11674
|
+
}
|
|
11675
|
+
async emailHistoricPurchaseOrder(request) {
|
|
11676
|
+
return await this.connector.emailHistoricPurchaseOrder(request);
|
|
11544
11677
|
}
|
|
11545
11678
|
async pdfPurchaseOrder(request, localPrint = false) {
|
|
11546
|
-
|
|
11679
|
+
const result = await this.connector.pdfPurchaseOrder(request, localPrint);
|
|
11680
|
+
if (result) {
|
|
11681
|
+
await this.commitAndRefreshTransaction();
|
|
11682
|
+
}
|
|
11683
|
+
}
|
|
11684
|
+
async pdfHistoricPurchaseOrder(request, localPrint = false) {
|
|
11685
|
+
return await this.connector.pdfHistoricPurchaseOrder(request, localPrint);
|
|
11547
11686
|
}
|
|
11548
11687
|
async generateWebServiceOrder(transactionId) {
|
|
11549
11688
|
return await this.connector.generateWebServiceOrder(transactionId);
|
|
@@ -19068,6 +19207,8 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19068
19207
|
});
|
|
19069
19208
|
}
|
|
19070
19209
|
else {
|
|
19210
|
+
//If a preview was created, remove it.
|
|
19211
|
+
this.pdfDoc = '';
|
|
19071
19212
|
this._showSendMethodDialog = false;
|
|
19072
19213
|
}
|
|
19073
19214
|
}
|
|
@@ -19105,6 +19246,8 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19105
19246
|
super.ngOnInit();
|
|
19106
19247
|
}
|
|
19107
19248
|
async handleSendMethodOkClick(method) {
|
|
19249
|
+
//If a preview was created, remove it.
|
|
19250
|
+
this.pdfDoc = '';
|
|
19108
19251
|
this.showSendMethodDialog = false;
|
|
19109
19252
|
await this.handleSend(method);
|
|
19110
19253
|
this._setDefaultMethod(this.getMethodFromEvent(method));
|
|
@@ -19186,67 +19329,7 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19186
19329
|
}
|
|
19187
19330
|
}
|
|
19188
19331
|
onShowFilePreview(reportId) {
|
|
19189
|
-
|
|
19190
|
-
let lines;
|
|
19191
|
-
//TODO refactor this switch
|
|
19192
|
-
switch (this.transactionService.activeRubric) {
|
|
19193
|
-
case TransactionTypeCategory.SalesOrderOverview:
|
|
19194
|
-
request = { transId: this.transactionInfo.id, reportId: reportId };
|
|
19195
|
-
this.disablePdfPreview = true;
|
|
19196
|
-
this.transactionService.previewOrderConfirmation(request).then((response) => {
|
|
19197
|
-
if (response) {
|
|
19198
|
-
this.pdfDoc = response.pdfContent;
|
|
19199
|
-
this.disablePdfPreview = false;
|
|
19200
|
-
this.detectChanges();
|
|
19201
|
-
}
|
|
19202
|
-
});
|
|
19203
|
-
break;
|
|
19204
|
-
case TransactionTypeCategory.SalesOrderDeliveryNote:
|
|
19205
|
-
lines = this.transaction.transactionLines.map(item => {
|
|
19206
|
-
const req = new TransactionLineReportingRequest();
|
|
19207
|
-
req.lineNr = item.lineNr;
|
|
19208
|
-
req.amount = item.amount;
|
|
19209
|
-
return req;
|
|
19210
|
-
});
|
|
19211
|
-
request = { transactionLines: lines, transId: this.transactionInfo.id, reportId: reportId };
|
|
19212
|
-
this.disablePdfPreview = true;
|
|
19213
|
-
this.transactionService.previewDeliveryNote(request).then((response) => {
|
|
19214
|
-
if (response) {
|
|
19215
|
-
this.pdfDoc = response.pdfContent;
|
|
19216
|
-
this.disablePdfPreview = false;
|
|
19217
|
-
this.detectChanges();
|
|
19218
|
-
}
|
|
19219
|
-
});
|
|
19220
|
-
break;
|
|
19221
|
-
case TransactionTypeCategory.SalesOrderInvoice:
|
|
19222
|
-
lines = this.transaction.transactionLines.map(item => {
|
|
19223
|
-
const req = new TransactionLineReportingRequest();
|
|
19224
|
-
req.lineNr = item.lineNr;
|
|
19225
|
-
req.amount = item.amount;
|
|
19226
|
-
return req;
|
|
19227
|
-
});
|
|
19228
|
-
request = { transactionLines: lines, transId: this.transactionInfo.id, reportId: reportId };
|
|
19229
|
-
this.disablePdfPreview = true;
|
|
19230
|
-
this.transactionService.previewInvoice(request).then((response) => {
|
|
19231
|
-
if (response) {
|
|
19232
|
-
this.pdfDoc = response.pdfContent;
|
|
19233
|
-
this.disablePdfPreview = false;
|
|
19234
|
-
this.detectChanges();
|
|
19235
|
-
}
|
|
19236
|
-
});
|
|
19237
|
-
break;
|
|
19238
|
-
case TransactionTypeCategory.SalesOrderPurchase:
|
|
19239
|
-
request = { transId: this.transactionInfo.id, reportId: reportId };
|
|
19240
|
-
this.disablePdfPreview = true;
|
|
19241
|
-
this.transactionService.previewPurchaseOrder(request).then((response) => {
|
|
19242
|
-
if (response) {
|
|
19243
|
-
this.pdfDoc = response.pdfContent;
|
|
19244
|
-
this.disablePdfPreview = false;
|
|
19245
|
-
this.detectChanges();
|
|
19246
|
-
}
|
|
19247
|
-
});
|
|
19248
|
-
break;
|
|
19249
|
-
}
|
|
19332
|
+
//override this if your subclass has preview options available.
|
|
19250
19333
|
}
|
|
19251
19334
|
getMethodFromEvent(method) {
|
|
19252
19335
|
let handleMethod;
|
|
@@ -23430,6 +23513,8 @@ class DeliveryPlanningOverviewTileComponent {
|
|
|
23430
23513
|
if (transId) {
|
|
23431
23514
|
this.reorderOrderEvent.emit({ transId: transId, insertIndex: insertIndex });
|
|
23432
23515
|
}
|
|
23516
|
+
this.resetDropState();
|
|
23517
|
+
this._deliveryPlanningService.dragging = false;
|
|
23433
23518
|
}
|
|
23434
23519
|
// public dragStart(dragEvent: DragEvent, transId: number) {
|
|
23435
23520
|
// dragEvent.dataTransfer!.setData('text', JSON.stringify(transId));
|
|
@@ -23439,6 +23524,9 @@ class DeliveryPlanningOverviewTileComponent {
|
|
|
23439
23524
|
event.preventDefault();
|
|
23440
23525
|
event.stopPropagation();
|
|
23441
23526
|
}
|
|
23527
|
+
resetDropState() {
|
|
23528
|
+
this.activeDropIndex = null;
|
|
23529
|
+
}
|
|
23442
23530
|
expandedChange(clickEvent) {
|
|
23443
23531
|
clickEvent.stopPropagation();
|
|
23444
23532
|
this.expanded = !this.expanded;
|
|
@@ -85738,6 +85826,36 @@ class TransactionQuickAccessOverviewComponent extends TransactionQuickAccessSend
|
|
|
85738
85826
|
}
|
|
85739
85827
|
}
|
|
85740
85828
|
}
|
|
85829
|
+
async onShowFilePreview(reportId) {
|
|
85830
|
+
let previewResponse;
|
|
85831
|
+
this.disablePdfPreview = true;
|
|
85832
|
+
if (this.sendDocumentsComponent.selected) {
|
|
85833
|
+
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
85834
|
+
}
|
|
85835
|
+
else {
|
|
85836
|
+
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
85837
|
+
}
|
|
85838
|
+
if (previewResponse) {
|
|
85839
|
+
this.pdfDoc = previewResponse.pdfContent;
|
|
85840
|
+
this.disablePdfPreview = false;
|
|
85841
|
+
this.detectChanges();
|
|
85842
|
+
}
|
|
85843
|
+
}
|
|
85844
|
+
async _getPreviewHistoricDocumentData(reportId) {
|
|
85845
|
+
let historicRequest = new PdfHistoricOrderConfirmationRequest();
|
|
85846
|
+
historicRequest.reportId = reportId;
|
|
85847
|
+
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
85848
|
+
this._prepareHistoricRequest(historicRequest);
|
|
85849
|
+
return await this.transactionService.previewHistoricOrderConfirmation(historicRequest);
|
|
85850
|
+
}
|
|
85851
|
+
async _getPreviewDocumentData(reportId) {
|
|
85852
|
+
let request;
|
|
85853
|
+
request = {
|
|
85854
|
+
transId: this.transactionInfo.id,
|
|
85855
|
+
reportId: reportId
|
|
85856
|
+
};
|
|
85857
|
+
return await this.transactionService.previewOrderConfirmation(request);
|
|
85858
|
+
}
|
|
85741
85859
|
async getDefaultSendMethod() {
|
|
85742
85860
|
return this.transactionService.getOrderConfirmationDefaultSendMethod(this.transactionInfo.relation?.relationId);
|
|
85743
85861
|
}
|
|
@@ -86245,24 +86363,60 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
|
|
|
86245
86363
|
});
|
|
86246
86364
|
}
|
|
86247
86365
|
}
|
|
86366
|
+
async onShowFilePreview(reportId) {
|
|
86367
|
+
let previewResponse;
|
|
86368
|
+
this.disablePdfPreview = true;
|
|
86369
|
+
if (this.sendDocumentsComponent.selected) {
|
|
86370
|
+
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
86371
|
+
}
|
|
86372
|
+
else {
|
|
86373
|
+
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
86374
|
+
}
|
|
86375
|
+
if (previewResponse) {
|
|
86376
|
+
this.pdfDoc = previewResponse.pdfContent;
|
|
86377
|
+
this.disablePdfPreview = false;
|
|
86378
|
+
this.detectChanges();
|
|
86379
|
+
}
|
|
86380
|
+
}
|
|
86381
|
+
async _getPreviewHistoricDocumentData(reportId) {
|
|
86382
|
+
let historicRequest = new PdfHistoricDeliveryNoteRequest();
|
|
86383
|
+
historicRequest.reportId = reportId;
|
|
86384
|
+
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
86385
|
+
this._prepareHistoricRequest(historicRequest);
|
|
86386
|
+
return await this.transactionService.previewHistoricDeliveryNote(historicRequest);
|
|
86387
|
+
}
|
|
86388
|
+
async _getPreviewDocumentData(reportId) {
|
|
86389
|
+
let request;
|
|
86390
|
+
let lines = this.filterLinesForRequest();
|
|
86391
|
+
request = {
|
|
86392
|
+
transactionLines: this._createRequestLines(lines),
|
|
86393
|
+
transId: this.transactionInfo.id,
|
|
86394
|
+
reportId: reportId
|
|
86395
|
+
};
|
|
86396
|
+
return await this.transactionService.previewDeliveryNote(request);
|
|
86397
|
+
}
|
|
86248
86398
|
combinedDocument(request, localPrint) { }
|
|
86249
86399
|
transactionSet() {
|
|
86250
86400
|
super.transactionSet();
|
|
86251
86401
|
this.canDeliver = !this.transactionInfo.headerInfoStatus.isFullyDelivered;
|
|
86252
86402
|
}
|
|
86253
86403
|
_prepareRequest(request) {
|
|
86254
|
-
let selectedLines = this.
|
|
86404
|
+
let selectedLines = this.filterLinesForRequest();
|
|
86405
|
+
if (selectedLines.length > 0) {
|
|
86406
|
+
request.transactionLines = this._createRequestLines(selectedLines);
|
|
86407
|
+
}
|
|
86408
|
+
}
|
|
86409
|
+
filterLinesForRequest() {
|
|
86410
|
+
let filteredLines = this.transactionLines.filter((line) => {
|
|
86255
86411
|
return (line.lineType !== TransactionLineType.TextLine && (!this.transactionInfo.allowPartialDelivery ? true : line.selected && line.articleLineStatus.quantityToDeliver !== 0));
|
|
86256
86412
|
});
|
|
86257
86413
|
if (this.deliveryCostLines) {
|
|
86258
86414
|
const deliveryCostLines = this.deliveryCostLines.filter((line) => {
|
|
86259
86415
|
return !this.transactionInfo.allowPartialDelivery ? true : line.selected && line.articleLineStatus.quantityToDeliver > 0;
|
|
86260
86416
|
});
|
|
86261
|
-
|
|
86262
|
-
}
|
|
86263
|
-
if (selectedLines.length > 0) {
|
|
86264
|
-
request.transactionLines = this._createRequestLines(selectedLines);
|
|
86417
|
+
filteredLines.push(...deliveryCostLines);
|
|
86265
86418
|
}
|
|
86419
|
+
return filteredLines;
|
|
86266
86420
|
}
|
|
86267
86421
|
_prepareHistoricRequest(request) {
|
|
86268
86422
|
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
@@ -86301,118 +86455,118 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
|
|
|
86301
86455
|
});
|
|
86302
86456
|
}
|
|
86303
86457
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessOrderDeliveryComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
86304
|
-
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" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
86305
|
-
@if (transactionInfo.transactionDefinitive) {
|
|
86306
|
-
<div class="quick-access-content-wrapper">
|
|
86307
|
-
<div class="select-all-wrapper" [class.hidden]="!hasLinesToDeliver || !transactionInfo.allowPartialDelivery">
|
|
86308
|
-
<co-input-checkbox
|
|
86309
|
-
[(model)]="allSelected"
|
|
86310
|
-
[label]="'SELECT_ALL_LINES' | localize"
|
|
86311
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
86312
|
-
></co-input-checkbox>
|
|
86313
|
-
</div>
|
|
86314
|
-
@if (canDeliver || historicDocuments()) {
|
|
86315
|
-
<co-quick-send-button
|
|
86316
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
86317
|
-
[showLoader]="showLoader"
|
|
86318
|
-
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
86319
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86320
|
-
></co-quick-send-button>
|
|
86321
|
-
}
|
|
86322
|
-
<co-transaction-send-documents
|
|
86323
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86324
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86325
|
-
></co-transaction-send-documents>
|
|
86326
|
-
<co-undo-delivery
|
|
86327
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86328
|
-
></co-undo-delivery>
|
|
86329
|
-
</div>
|
|
86330
|
-
}
|
|
86331
|
-
@if (showSendMethodDialog) {
|
|
86332
|
-
<co-send-method-dialog
|
|
86333
|
-
[headerTitle]="'Verzendmethode'"
|
|
86334
|
-
[printerList]="printerList"
|
|
86335
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
86336
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
86337
|
-
[emailAddresses]="emailAddresses"
|
|
86338
|
-
[emailLayouts]="emailLayouts"
|
|
86339
|
-
[printLayouts]="printLayouts"
|
|
86340
|
-
[isDocSignEnabled]="true"
|
|
86341
|
-
[pdfDoc]="pdfDoc"
|
|
86342
|
-
[showPDFPreview]="true"
|
|
86343
|
-
[disablePdfPreview]="disablePdfPreview"
|
|
86344
|
-
[layoutCode]="layoutCode"
|
|
86345
|
-
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86346
|
-
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
86347
|
-
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
86348
|
-
(closeClick)="showSendMethodDialog = false"
|
|
86349
|
-
(okClick)="handleSendMethodOkClick($event)"
|
|
86350
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
86351
|
-
></co-send-method-dialog>
|
|
86352
|
-
}
|
|
86353
|
-
<co-digital-signature
|
|
86354
|
-
[documentId]="signatureDocumentId"
|
|
86355
|
-
(documentStored)="commitAndRefreshTransaction()"
|
|
86356
|
-
></co-digital-signature>
|
|
86458
|
+
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" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
86459
|
+
@if (transactionInfo.transactionDefinitive) {
|
|
86460
|
+
<div class="quick-access-content-wrapper">
|
|
86461
|
+
<div class="select-all-wrapper" [class.hidden]="!hasLinesToDeliver || !transactionInfo.allowPartialDelivery">
|
|
86462
|
+
<co-input-checkbox
|
|
86463
|
+
[(model)]="allSelected"
|
|
86464
|
+
[label]="'SELECT_ALL_LINES' | localize"
|
|
86465
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
86466
|
+
></co-input-checkbox>
|
|
86467
|
+
</div>
|
|
86468
|
+
@if (canDeliver || historicDocuments()) {
|
|
86469
|
+
<co-quick-send-button
|
|
86470
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
86471
|
+
[showLoader]="showLoader"
|
|
86472
|
+
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
86473
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86474
|
+
></co-quick-send-button>
|
|
86475
|
+
}
|
|
86476
|
+
<co-transaction-send-documents
|
|
86477
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86478
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86479
|
+
></co-transaction-send-documents>
|
|
86480
|
+
<co-undo-delivery
|
|
86481
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86482
|
+
></co-undo-delivery>
|
|
86483
|
+
</div>
|
|
86484
|
+
}
|
|
86485
|
+
@if (showSendMethodDialog) {
|
|
86486
|
+
<co-send-method-dialog
|
|
86487
|
+
[headerTitle]="'Verzendmethode'"
|
|
86488
|
+
[printerList]="printerList"
|
|
86489
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
86490
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
86491
|
+
[emailAddresses]="emailAddresses"
|
|
86492
|
+
[emailLayouts]="emailLayouts"
|
|
86493
|
+
[printLayouts]="printLayouts"
|
|
86494
|
+
[isDocSignEnabled]="true"
|
|
86495
|
+
[pdfDoc]="pdfDoc"
|
|
86496
|
+
[showPDFPreview]="true"
|
|
86497
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
86498
|
+
[layoutCode]="layoutCode"
|
|
86499
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86500
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
86501
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
86502
|
+
(closeClick)="showSendMethodDialog = false"
|
|
86503
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
86504
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
86505
|
+
></co-send-method-dialog>
|
|
86506
|
+
}
|
|
86507
|
+
<co-digital-signature
|
|
86508
|
+
[documentId]="signatureDocumentId"
|
|
86509
|
+
(documentStored)="commitAndRefreshTransaction()"
|
|
86510
|
+
></co-digital-signature>
|
|
86357
86511
|
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i10.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: TransactionSendDocumentsComponent, selector: "co-transaction-send-documents", inputs: ["transactionTypeCategory", "selected"], outputs: ["openSendMethodDialog"] }, { kind: "component", type: DigitalSignatureComponent, selector: "co-digital-signature", inputs: ["documentId"], outputs: ["documentStored"] }, { kind: "component", type: TransactionUndoDeliveryComponent, selector: "co-undo-delivery", inputs: ["transactionTypeCategory"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
86358
86512
|
}
|
|
86359
86513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessOrderDeliveryComponent, decorators: [{
|
|
86360
86514
|
type: Component,
|
|
86361
86515
|
args: [{
|
|
86362
86516
|
selector: "co-transaction-quick-access-order-delivery",
|
|
86363
|
-
template: `
|
|
86364
|
-
@if (transactionInfo.transactionDefinitive) {
|
|
86365
|
-
<div class="quick-access-content-wrapper">
|
|
86366
|
-
<div class="select-all-wrapper" [class.hidden]="!hasLinesToDeliver || !transactionInfo.allowPartialDelivery">
|
|
86367
|
-
<co-input-checkbox
|
|
86368
|
-
[(model)]="allSelected"
|
|
86369
|
-
[label]="'SELECT_ALL_LINES' | localize"
|
|
86370
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
86371
|
-
></co-input-checkbox>
|
|
86372
|
-
</div>
|
|
86373
|
-
@if (canDeliver || historicDocuments()) {
|
|
86374
|
-
<co-quick-send-button
|
|
86375
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
86376
|
-
[showLoader]="showLoader"
|
|
86377
|
-
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
86378
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86379
|
-
></co-quick-send-button>
|
|
86380
|
-
}
|
|
86381
|
-
<co-transaction-send-documents
|
|
86382
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86383
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86384
|
-
></co-transaction-send-documents>
|
|
86385
|
-
<co-undo-delivery
|
|
86386
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86387
|
-
></co-undo-delivery>
|
|
86388
|
-
</div>
|
|
86389
|
-
}
|
|
86390
|
-
@if (showSendMethodDialog) {
|
|
86391
|
-
<co-send-method-dialog
|
|
86392
|
-
[headerTitle]="'Verzendmethode'"
|
|
86393
|
-
[printerList]="printerList"
|
|
86394
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
86395
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
86396
|
-
[emailAddresses]="emailAddresses"
|
|
86397
|
-
[emailLayouts]="emailLayouts"
|
|
86398
|
-
[printLayouts]="printLayouts"
|
|
86399
|
-
[isDocSignEnabled]="true"
|
|
86400
|
-
[pdfDoc]="pdfDoc"
|
|
86401
|
-
[showPDFPreview]="true"
|
|
86402
|
-
[disablePdfPreview]="disablePdfPreview"
|
|
86403
|
-
[layoutCode]="layoutCode"
|
|
86404
|
-
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86405
|
-
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
86406
|
-
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
86407
|
-
(closeClick)="showSendMethodDialog = false"
|
|
86408
|
-
(okClick)="handleSendMethodOkClick($event)"
|
|
86409
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
86410
|
-
></co-send-method-dialog>
|
|
86411
|
-
}
|
|
86412
|
-
<co-digital-signature
|
|
86413
|
-
[documentId]="signatureDocumentId"
|
|
86414
|
-
(documentStored)="commitAndRefreshTransaction()"
|
|
86415
|
-
></co-digital-signature>
|
|
86517
|
+
template: `
|
|
86518
|
+
@if (transactionInfo.transactionDefinitive) {
|
|
86519
|
+
<div class="quick-access-content-wrapper">
|
|
86520
|
+
<div class="select-all-wrapper" [class.hidden]="!hasLinesToDeliver || !transactionInfo.allowPartialDelivery">
|
|
86521
|
+
<co-input-checkbox
|
|
86522
|
+
[(model)]="allSelected"
|
|
86523
|
+
[label]="'SELECT_ALL_LINES' | localize"
|
|
86524
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
86525
|
+
></co-input-checkbox>
|
|
86526
|
+
</div>
|
|
86527
|
+
@if (canDeliver || historicDocuments()) {
|
|
86528
|
+
<co-quick-send-button
|
|
86529
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
86530
|
+
[showLoader]="showLoader"
|
|
86531
|
+
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
86532
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86533
|
+
></co-quick-send-button>
|
|
86534
|
+
}
|
|
86535
|
+
<co-transaction-send-documents
|
|
86536
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86537
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
86538
|
+
></co-transaction-send-documents>
|
|
86539
|
+
<co-undo-delivery
|
|
86540
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderDeliveryNote"
|
|
86541
|
+
></co-undo-delivery>
|
|
86542
|
+
</div>
|
|
86543
|
+
}
|
|
86544
|
+
@if (showSendMethodDialog) {
|
|
86545
|
+
<co-send-method-dialog
|
|
86546
|
+
[headerTitle]="'Verzendmethode'"
|
|
86547
|
+
[printerList]="printerList"
|
|
86548
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
86549
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
86550
|
+
[emailAddresses]="emailAddresses"
|
|
86551
|
+
[emailLayouts]="emailLayouts"
|
|
86552
|
+
[printLayouts]="printLayouts"
|
|
86553
|
+
[isDocSignEnabled]="true"
|
|
86554
|
+
[pdfDoc]="pdfDoc"
|
|
86555
|
+
[showPDFPreview]="true"
|
|
86556
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
86557
|
+
[layoutCode]="layoutCode"
|
|
86558
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86559
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
86560
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
86561
|
+
(closeClick)="showSendMethodDialog = false"
|
|
86562
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
86563
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
86564
|
+
></co-send-method-dialog>
|
|
86565
|
+
}
|
|
86566
|
+
<co-digital-signature
|
|
86567
|
+
[documentId]="signatureDocumentId"
|
|
86568
|
+
(documentStored)="commitAndRefreshTransaction()"
|
|
86569
|
+
></co-digital-signature>
|
|
86416
86570
|
`,
|
|
86417
86571
|
encapsulation: ViewEncapsulation.None,
|
|
86418
86572
|
standalone: false
|
|
@@ -86675,7 +86829,7 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
|
|
|
86675
86829
|
}
|
|
86676
86830
|
</div>
|
|
86677
86831
|
}
|
|
86678
|
-
|
|
86832
|
+
|
|
86679
86833
|
@if (showSendMethodDialog) {
|
|
86680
86834
|
<co-send-method-dialog
|
|
86681
86835
|
[headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
|
|
@@ -86685,10 +86839,10 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
|
|
|
86685
86839
|
[emailAddresses]="emailAddresses"
|
|
86686
86840
|
[emailLayouts]="emailLayouts"
|
|
86687
86841
|
[printLayouts]="printLayouts"
|
|
86688
|
-
[disablePdfPreview]="
|
|
86842
|
+
[disablePdfPreview]="true"
|
|
86689
86843
|
[isDocSignEnabled]="true"
|
|
86690
86844
|
[pdfDoc]="pdfDoc"
|
|
86691
|
-
[showPDFPreview]="
|
|
86845
|
+
[showPDFPreview]="false"
|
|
86692
86846
|
[layoutCode]="layoutCode"
|
|
86693
86847
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86694
86848
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
@@ -86696,7 +86850,6 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
|
|
|
86696
86850
|
[(reportingDocumentCombinedRequest)]="reportDocumentCombinedRequest"
|
|
86697
86851
|
(closeClick)="showSendMethodDialog = false"
|
|
86698
86852
|
(okClick)="handleSendMethodOkClick($event)"
|
|
86699
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
86700
86853
|
></co-send-method-dialog>
|
|
86701
86854
|
}
|
|
86702
86855
|
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i10.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -86731,7 +86884,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86731
86884
|
}
|
|
86732
86885
|
</div>
|
|
86733
86886
|
}
|
|
86734
|
-
|
|
86887
|
+
|
|
86735
86888
|
@if (showSendMethodDialog) {
|
|
86736
86889
|
<co-send-method-dialog
|
|
86737
86890
|
[headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
|
|
@@ -86741,10 +86894,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86741
86894
|
[emailAddresses]="emailAddresses"
|
|
86742
86895
|
[emailLayouts]="emailLayouts"
|
|
86743
86896
|
[printLayouts]="printLayouts"
|
|
86744
|
-
[disablePdfPreview]="
|
|
86897
|
+
[disablePdfPreview]="true"
|
|
86745
86898
|
[isDocSignEnabled]="true"
|
|
86746
86899
|
[pdfDoc]="pdfDoc"
|
|
86747
|
-
[showPDFPreview]="
|
|
86900
|
+
[showPDFPreview]="false"
|
|
86748
86901
|
[layoutCode]="layoutCode"
|
|
86749
86902
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
86750
86903
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
@@ -86752,7 +86905,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
86752
86905
|
[(reportingDocumentCombinedRequest)]="reportDocumentCombinedRequest"
|
|
86753
86906
|
(closeClick)="showSendMethodDialog = false"
|
|
86754
86907
|
(okClick)="handleSendMethodOkClick($event)"
|
|
86755
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
86756
86908
|
></co-send-method-dialog>
|
|
86757
86909
|
}
|
|
86758
86910
|
`,
|
|
@@ -86935,6 +87087,7 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
86935
87087
|
showClass() {
|
|
86936
87088
|
return true;
|
|
86937
87089
|
}
|
|
87090
|
+
sendDocumentsComponent;
|
|
86938
87091
|
reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
|
|
86939
87092
|
reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
|
|
86940
87093
|
reportDocumentPdfRequest = new PdfPurchaseOrderRequest();
|
|
@@ -86966,9 +87119,17 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
86966
87119
|
this.showCatalog = true;
|
|
86967
87120
|
}
|
|
86968
87121
|
async emailDocument(request) {
|
|
86969
|
-
|
|
86970
|
-
|
|
86971
|
-
|
|
87122
|
+
if (this.sendDocumentsComponent.selected) {
|
|
87123
|
+
const emailHistoricPurchaseOrderRequest = Object.assign(new EmailHistoricPurchaseOrderRequest(), request);
|
|
87124
|
+
this._prepareHistoricRequest(emailHistoricPurchaseOrderRequest);
|
|
87125
|
+
await this.transactionService.emailHistoricPurchaseOrder(emailHistoricPurchaseOrderRequest);
|
|
87126
|
+
}
|
|
87127
|
+
else {
|
|
87128
|
+
const emailPurchaseOrderRequest = Object.assign(new EmailPurchaseOrderRequest(), request);
|
|
87129
|
+
await this.transactionService.emailPurchaseOrder(emailPurchaseOrderRequest).then(() => {
|
|
87130
|
+
this.searchService.searchTransactions();
|
|
87131
|
+
});
|
|
87132
|
+
}
|
|
86972
87133
|
}
|
|
86973
87134
|
getDefaultEmailAddressList() {
|
|
86974
87135
|
// return Promise.resolve([]);
|
|
@@ -86981,116 +87142,180 @@ class TransactionQuickAccessPurchaseOrderOverviewComponent extends TransactionQu
|
|
|
86981
87142
|
return this.transactionService.getPurchaseOrderPrintLayouts(this.transactionInfo.uuid);
|
|
86982
87143
|
}
|
|
86983
87144
|
async pdfDocument(request) {
|
|
86984
|
-
|
|
86985
|
-
|
|
86986
|
-
this.
|
|
86987
|
-
|
|
86988
|
-
|
|
86989
|
-
|
|
86990
|
-
if (localPrint) {
|
|
87145
|
+
if (this.sendDocumentsComponent.selected) {
|
|
87146
|
+
const pdfHistoricPurchaseOrderRequest = Object.assign(new PdfHistoricPurchaseOrderRequest(), request);
|
|
87147
|
+
this._prepareHistoricRequest(pdfHistoricPurchaseOrderRequest);
|
|
87148
|
+
await this.transactionService.pdfHistoricPurchaseOrder(pdfHistoricPurchaseOrderRequest);
|
|
87149
|
+
}
|
|
87150
|
+
else {
|
|
86991
87151
|
const pdfPurchaseOrderRequest = Object.assign(new PdfPurchaseOrderRequest(), request);
|
|
86992
|
-
this.transactionService.pdfPurchaseOrder(pdfPurchaseOrderRequest
|
|
87152
|
+
this.transactionService.pdfPurchaseOrder(pdfPurchaseOrderRequest).then(() => {
|
|
86993
87153
|
this.searchService.searchTransactions();
|
|
86994
|
-
this.
|
|
87154
|
+
this.detectChanges();
|
|
86995
87155
|
});
|
|
86996
87156
|
}
|
|
87157
|
+
}
|
|
87158
|
+
async printDocument(request, localPrint) {
|
|
87159
|
+
if (this.sendDocumentsComponent.selected) {
|
|
87160
|
+
const printHistoricPurchaseOrderRequest = Object.assign(new PrintHistoricPurchaseOrderRequest(), request);
|
|
87161
|
+
this._prepareHistoricRequest(printHistoricPurchaseOrderRequest);
|
|
87162
|
+
if (localPrint) {
|
|
87163
|
+
const printSuccess = await this.transactionService.pdfHistoricPurchaseOrder(printHistoricPurchaseOrderRequest, true);
|
|
87164
|
+
if (typeof printSuccess === 'boolean' && printSuccess) {
|
|
87165
|
+
this.showSendMethodDialog = false;
|
|
87166
|
+
}
|
|
87167
|
+
}
|
|
87168
|
+
else {
|
|
87169
|
+
await this.transactionService.printHistoricPurchaseOrder(printHistoricPurchaseOrderRequest);
|
|
87170
|
+
}
|
|
87171
|
+
}
|
|
86997
87172
|
else {
|
|
86998
|
-
|
|
86999
|
-
|
|
87000
|
-
|
|
87173
|
+
if (localPrint) {
|
|
87174
|
+
const pdfPurchaseOrderRequest = Object.assign(new PdfPurchaseOrderRequest(), request);
|
|
87175
|
+
this.transactionService.pdfPurchaseOrder(pdfPurchaseOrderRequest, localPrint).then(() => {
|
|
87176
|
+
this.searchService.searchTransactions();
|
|
87177
|
+
this.showSendMethodDialog = false;
|
|
87178
|
+
this.detectChanges();
|
|
87179
|
+
});
|
|
87180
|
+
}
|
|
87181
|
+
else {
|
|
87182
|
+
await this.transactionService.printPurchaseOrder(request).then(() => {
|
|
87183
|
+
this.searchService.searchTransactions();
|
|
87184
|
+
this.detectChanges();
|
|
87185
|
+
});
|
|
87186
|
+
}
|
|
87187
|
+
}
|
|
87188
|
+
}
|
|
87189
|
+
async onShowFilePreview(reportId) {
|
|
87190
|
+
let previewResponse;
|
|
87191
|
+
this.disablePdfPreview = true;
|
|
87192
|
+
if (this.sendDocumentsComponent.selected) {
|
|
87193
|
+
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
87194
|
+
}
|
|
87195
|
+
else {
|
|
87196
|
+
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
87001
87197
|
}
|
|
87198
|
+
if (previewResponse) {
|
|
87199
|
+
this.pdfDoc = previewResponse.pdfContent;
|
|
87200
|
+
this.disablePdfPreview = false;
|
|
87201
|
+
this.detectChanges();
|
|
87202
|
+
}
|
|
87203
|
+
}
|
|
87204
|
+
async _getPreviewHistoricDocumentData(reportId) {
|
|
87205
|
+
let historicRequest = new PdfHistoricPurchaseOrderRequest();
|
|
87206
|
+
historicRequest.reportId = reportId;
|
|
87207
|
+
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
87208
|
+
this._prepareHistoricRequest(historicRequest);
|
|
87209
|
+
return await this.transactionService.previewHistoricPurchaseOrder(historicRequest);
|
|
87210
|
+
}
|
|
87211
|
+
async _getPreviewDocumentData(reportId) {
|
|
87212
|
+
let request;
|
|
87213
|
+
request = {
|
|
87214
|
+
transId: this.transactionInfo.id,
|
|
87215
|
+
reportId: reportId
|
|
87216
|
+
};
|
|
87217
|
+
return await this.transactionService.previewPurchaseOrder(request);
|
|
87002
87218
|
}
|
|
87003
87219
|
combinedDocument(request, localPrint) { }
|
|
87004
87220
|
async getDefaultSendMethod() {
|
|
87005
87221
|
return this.transactionService.getPurchaseOrderDefaultSendMethod(this.transactionInfo.relation?.relationId);
|
|
87006
87222
|
}
|
|
87007
|
-
|
|
87008
|
-
|
|
87009
|
-
<co-quick-send-button
|
|
87010
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87011
|
-
[showLoader]="showLoader"
|
|
87012
|
-
(sendIconClicked)="handleSend(defaultSendMethod)"
|
|
87013
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87014
|
-
></co-quick-send-button>
|
|
87015
|
-
<co-transaction-send-documents
|
|
87016
|
-
[transactionTypeCategory]="transactionTypeCategory.PurchaseOrderOverview"
|
|
87017
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87018
|
-
></co-transaction-send-documents>
|
|
87019
|
-
@if (showCatalog) {
|
|
87020
|
-
<co-dialog-catalog
|
|
87021
|
-
[options]="catalogOptions"
|
|
87022
|
-
[parameters]="catalogParameters"
|
|
87023
|
-
[showNavigation]="true"
|
|
87024
|
-
(closeClick)="showCatalog = false"
|
|
87025
|
-
(articleClicked)="handleCatalogArticleClick($event)"
|
|
87026
|
-
>
|
|
87027
|
-
</co-dialog-catalog>
|
|
87028
|
-
}
|
|
87029
|
-
@if (showSendMethodDialog) {
|
|
87030
|
-
<co-send-method-dialog
|
|
87031
|
-
[headerTitle]="'Verzendmethode'"
|
|
87032
|
-
[printerList]="printerList"
|
|
87033
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
87034
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf, sendMethodType.WebService]"
|
|
87035
|
-
[emailAddresses]="emailAddresses"
|
|
87036
|
-
[emailLayouts]="emailLayouts"
|
|
87037
|
-
[printLayouts]="printLayouts"
|
|
87038
|
-
[disablePdfPreview]="true"
|
|
87039
|
-
[isDocSignEnabled]="true"
|
|
87040
|
-
[layoutCode]="layoutCode"
|
|
87041
|
-
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87042
|
-
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87043
|
-
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87044
|
-
(closeClick)="showSendMethodDialog = false"
|
|
87045
|
-
(okClick)="handleSendMethodOkClick($event)"
|
|
87046
|
-
></co-send-method-dialog>
|
|
87223
|
+
_prepareHistoricRequest(request) {
|
|
87224
|
+
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
87047
87225
|
}
|
|
87226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPurchaseOrderOverviewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
87227
|
+
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" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
87228
|
+
<co-quick-send-button
|
|
87229
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87230
|
+
[showLoader]="showLoader"
|
|
87231
|
+
(sendIconClicked)="handleSend(defaultSendMethod)"
|
|
87232
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87233
|
+
></co-quick-send-button>
|
|
87234
|
+
<co-transaction-send-documents
|
|
87235
|
+
[transactionTypeCategory]="transactionTypeCategory.PurchaseOrderOverview"
|
|
87236
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87237
|
+
></co-transaction-send-documents>
|
|
87238
|
+
@if (showCatalog) {
|
|
87239
|
+
<co-dialog-catalog
|
|
87240
|
+
[options]="catalogOptions"
|
|
87241
|
+
[parameters]="catalogParameters"
|
|
87242
|
+
[showNavigation]="true"
|
|
87243
|
+
(closeClick)="showCatalog = false"
|
|
87244
|
+
(articleClicked)="handleCatalogArticleClick($event)"
|
|
87245
|
+
>
|
|
87246
|
+
</co-dialog-catalog>
|
|
87247
|
+
}
|
|
87248
|
+
@if (showSendMethodDialog) {
|
|
87249
|
+
<co-send-method-dialog
|
|
87250
|
+
[headerTitle]="'Verzendmethode'"
|
|
87251
|
+
[printerList]="printerList"
|
|
87252
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
87253
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf, sendMethodType.WebService]"
|
|
87254
|
+
[emailAddresses]="emailAddresses"
|
|
87255
|
+
[emailLayouts]="emailLayouts"
|
|
87256
|
+
[printLayouts]="printLayouts"
|
|
87257
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
87258
|
+
[isDocSignEnabled]="true"
|
|
87259
|
+
[showPDFPreview]="true"
|
|
87260
|
+
[pdfDoc]="pdfDoc"
|
|
87261
|
+
[layoutCode]="layoutCode"
|
|
87262
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87263
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87264
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87265
|
+
(closeClick)="showSendMethodDialog = false"
|
|
87266
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
87267
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
87268
|
+
></co-send-method-dialog>
|
|
87269
|
+
}
|
|
87048
87270
|
`, isInline: true, dependencies: [{ kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: i10.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: DialogCatalogComponent, selector: "co-dialog-catalog", inputs: ["handleAddArticleInternally", "options", "parameters", "showNavigation", "returnArticleOnTileClick", "transaction", "isReturn", "showRelatedProductsPopup"], outputs: ["closeClick", "articleClicked", "iFrameFeedback", "addArticleClicked", "addCatFarmArticleClicked", "addExternalArticleClicked"] }, { kind: "component", type: TransactionSendDocumentsComponent, selector: "co-transaction-send-documents", inputs: ["transactionTypeCategory", "selected"], outputs: ["openSendMethodDialog"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
87049
87271
|
}
|
|
87050
87272
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessPurchaseOrderOverviewComponent, decorators: [{
|
|
87051
87273
|
type: Component,
|
|
87052
87274
|
args: [{
|
|
87053
87275
|
selector: "co-transaction-quick-access-purchase-order-overview",
|
|
87054
|
-
template: `
|
|
87055
|
-
<co-quick-send-button
|
|
87056
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87057
|
-
[showLoader]="showLoader"
|
|
87058
|
-
(sendIconClicked)="handleSend(defaultSendMethod)"
|
|
87059
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87060
|
-
></co-quick-send-button>
|
|
87061
|
-
<co-transaction-send-documents
|
|
87062
|
-
[transactionTypeCategory]="transactionTypeCategory.PurchaseOrderOverview"
|
|
87063
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87064
|
-
></co-transaction-send-documents>
|
|
87065
|
-
@if (showCatalog) {
|
|
87066
|
-
<co-dialog-catalog
|
|
87067
|
-
[options]="catalogOptions"
|
|
87068
|
-
[parameters]="catalogParameters"
|
|
87069
|
-
[showNavigation]="true"
|
|
87070
|
-
(closeClick)="showCatalog = false"
|
|
87071
|
-
(articleClicked)="handleCatalogArticleClick($event)"
|
|
87072
|
-
>
|
|
87073
|
-
</co-dialog-catalog>
|
|
87074
|
-
}
|
|
87075
|
-
@if (showSendMethodDialog) {
|
|
87076
|
-
<co-send-method-dialog
|
|
87077
|
-
[headerTitle]="'Verzendmethode'"
|
|
87078
|
-
[printerList]="printerList"
|
|
87079
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
87080
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf, sendMethodType.WebService]"
|
|
87081
|
-
[emailAddresses]="emailAddresses"
|
|
87082
|
-
[emailLayouts]="emailLayouts"
|
|
87083
|
-
[printLayouts]="printLayouts"
|
|
87084
|
-
[disablePdfPreview]="
|
|
87085
|
-
[isDocSignEnabled]="true"
|
|
87086
|
-
[
|
|
87087
|
-
[
|
|
87088
|
-
[
|
|
87089
|
-
[(
|
|
87090
|
-
(
|
|
87091
|
-
(
|
|
87092
|
-
|
|
87093
|
-
|
|
87276
|
+
template: `
|
|
87277
|
+
<co-quick-send-button
|
|
87278
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87279
|
+
[showLoader]="showLoader"
|
|
87280
|
+
(sendIconClicked)="handleSend(defaultSendMethod)"
|
|
87281
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87282
|
+
></co-quick-send-button>
|
|
87283
|
+
<co-transaction-send-documents
|
|
87284
|
+
[transactionTypeCategory]="transactionTypeCategory.PurchaseOrderOverview"
|
|
87285
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87286
|
+
></co-transaction-send-documents>
|
|
87287
|
+
@if (showCatalog) {
|
|
87288
|
+
<co-dialog-catalog
|
|
87289
|
+
[options]="catalogOptions"
|
|
87290
|
+
[parameters]="catalogParameters"
|
|
87291
|
+
[showNavigation]="true"
|
|
87292
|
+
(closeClick)="showCatalog = false"
|
|
87293
|
+
(articleClicked)="handleCatalogArticleClick($event)"
|
|
87294
|
+
>
|
|
87295
|
+
</co-dialog-catalog>
|
|
87296
|
+
}
|
|
87297
|
+
@if (showSendMethodDialog) {
|
|
87298
|
+
<co-send-method-dialog
|
|
87299
|
+
[headerTitle]="'Verzendmethode'"
|
|
87300
|
+
[printerList]="printerList"
|
|
87301
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
87302
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf, sendMethodType.WebService]"
|
|
87303
|
+
[emailAddresses]="emailAddresses"
|
|
87304
|
+
[emailLayouts]="emailLayouts"
|
|
87305
|
+
[printLayouts]="printLayouts"
|
|
87306
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
87307
|
+
[isDocSignEnabled]="true"
|
|
87308
|
+
[showPDFPreview]="true"
|
|
87309
|
+
[pdfDoc]="pdfDoc"
|
|
87310
|
+
[layoutCode]="layoutCode"
|
|
87311
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87312
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87313
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87314
|
+
(closeClick)="showSendMethodDialog = false"
|
|
87315
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
87316
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
87317
|
+
></co-send-method-dialog>
|
|
87318
|
+
}
|
|
87094
87319
|
`,
|
|
87095
87320
|
encapsulation: ViewEncapsulation.None,
|
|
87096
87321
|
standalone: false
|
|
@@ -87098,6 +87323,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
87098
87323
|
}], propDecorators: { showClass: [{
|
|
87099
87324
|
type: HostBinding,
|
|
87100
87325
|
args: ["class.co-transaction-quick-access-purchase-order-overview"]
|
|
87326
|
+
}], sendDocumentsComponent: [{
|
|
87327
|
+
type: ViewChild,
|
|
87328
|
+
args: [TransactionSendDocumentsComponent]
|
|
87101
87329
|
}] } });
|
|
87102
87330
|
|
|
87103
87331
|
class TransactionQuickAccessPurchaseOrderOverviewModule {
|
|
@@ -87242,14 +87470,45 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
|
|
|
87242
87470
|
}
|
|
87243
87471
|
}
|
|
87244
87472
|
}
|
|
87473
|
+
async onShowFilePreview(reportId) {
|
|
87474
|
+
let previewResponse;
|
|
87475
|
+
this.disablePdfPreview = true;
|
|
87476
|
+
if (this.sendDocumentsComponent.selected) {
|
|
87477
|
+
previewResponse = await this._getPreviewHistoricDocumentData(reportId);
|
|
87478
|
+
}
|
|
87479
|
+
else {
|
|
87480
|
+
previewResponse = await this._getPreviewDocumentData(reportId);
|
|
87481
|
+
}
|
|
87482
|
+
if (previewResponse) {
|
|
87483
|
+
this.pdfDoc = previewResponse.pdfContent;
|
|
87484
|
+
this.disablePdfPreview = false;
|
|
87485
|
+
this.detectChanges();
|
|
87486
|
+
}
|
|
87487
|
+
}
|
|
87488
|
+
async _getPreviewHistoricDocumentData(reportId) {
|
|
87489
|
+
let historicRequest = new PdfHistoricInvoiceRequest();
|
|
87490
|
+
historicRequest.reportId = reportId;
|
|
87491
|
+
historicRequest.transId = this.sendDocumentsComponent.activeReport.reportTransId;
|
|
87492
|
+
this._prepareHistoricRequest(historicRequest);
|
|
87493
|
+
return await this.transactionService.previewHistoricInvoice(historicRequest);
|
|
87494
|
+
}
|
|
87495
|
+
async _getPreviewDocumentData(reportId) {
|
|
87496
|
+
let request;
|
|
87497
|
+
let lines = this.filterLinesForRequest();
|
|
87498
|
+
request = {
|
|
87499
|
+
transactionLines: this._createRequestLines(lines),
|
|
87500
|
+
transId: this.transactionInfo.id,
|
|
87501
|
+
reportId: reportId
|
|
87502
|
+
};
|
|
87503
|
+
return await this.transactionService.previewInvoice(request);
|
|
87504
|
+
}
|
|
87245
87505
|
combinedDocument(request, localPrint) { }
|
|
87246
87506
|
transactionSet() {
|
|
87247
87507
|
super.transactionSet();
|
|
87248
87508
|
this.canInvoice = !this.transactionInfo.headerInfoStatus.isFullyInvoiced;
|
|
87249
87509
|
}
|
|
87250
87510
|
_prepareRequest(request) {
|
|
87251
|
-
let selectedLines = this.
|
|
87252
|
-
selectedLines = selectedLines.concat(this.deliveryCostLines);
|
|
87511
|
+
let selectedLines = this.filterLinesForRequest();
|
|
87253
87512
|
if (selectedLines.length > 0) {
|
|
87254
87513
|
request.transactionLines = this._createRequestLines(selectedLines);
|
|
87255
87514
|
return true;
|
|
@@ -87259,6 +87518,11 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
|
|
|
87259
87518
|
return false;
|
|
87260
87519
|
}
|
|
87261
87520
|
}
|
|
87521
|
+
filterLinesForRequest() {
|
|
87522
|
+
let filteredLines = this.transactionLines.filter((line) => line.selected && line.articleLineStatus.quantityToInvoice !== 0);
|
|
87523
|
+
filteredLines = filteredLines.concat(this.deliveryCostLines);
|
|
87524
|
+
return filteredLines;
|
|
87525
|
+
}
|
|
87262
87526
|
historicDocuments() {
|
|
87263
87527
|
return this.sendDocumentsComponent && this.sendDocumentsComponent.historicReports.length > 0 && !!this.sendDocumentsComponent.activeReport;
|
|
87264
87528
|
}
|
|
@@ -87300,112 +87564,112 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
|
|
|
87300
87564
|
request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
|
|
87301
87565
|
}
|
|
87302
87566
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessInvoiceComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
87303
|
-
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" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
87304
|
-
@if (transactionInfo.transactionDefinitive) {
|
|
87305
|
-
<div class="quick-access-content-wrapper">
|
|
87306
|
-
<div class="select-all-wrapper" [class.hidden]="!hasLinesToInvoice || !transactionInfo.allowPartialDelivery">
|
|
87307
|
-
<co-input-checkbox
|
|
87308
|
-
[(model)]="allSelected"
|
|
87309
|
-
[label]="'SELECT_ALL_LINES' | localize"
|
|
87310
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
87311
|
-
></co-input-checkbox>
|
|
87312
|
-
</div>
|
|
87313
|
-
@if (canInvoice || historicDocuments()) {
|
|
87314
|
-
<co-quick-send-button
|
|
87315
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87316
|
-
[showLoader]="showLoader"
|
|
87317
|
-
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
87318
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87319
|
-
></co-quick-send-button>
|
|
87320
|
-
}
|
|
87321
|
-
<co-transaction-send-documents
|
|
87322
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderInvoice"
|
|
87323
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87324
|
-
></co-transaction-send-documents>
|
|
87325
|
-
</div>
|
|
87326
|
-
}
|
|
87327
|
-
@if (showSendMethodDialog) {
|
|
87328
|
-
<co-send-method-dialog
|
|
87329
|
-
[headerTitle]="'Verzendmethode'"
|
|
87330
|
-
[printerList]="printerList"
|
|
87331
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
87332
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
87333
|
-
[emailAddresses]="emailAddresses"
|
|
87334
|
-
[emailLayouts]="emailLayouts"
|
|
87335
|
-
[printLayouts]="printLayouts"
|
|
87336
|
-
[isDocSignEnabled]="true"
|
|
87337
|
-
[pdfDoc]="pdfDoc"
|
|
87338
|
-
[showPDFPreview]="true"
|
|
87339
|
-
[layoutCode]="layoutCode"
|
|
87340
|
-
[disablePdfPreview]="disablePdfPreview"
|
|
87341
|
-
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87342
|
-
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87343
|
-
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87344
|
-
(closeClick)="showSendMethodDialog = false"
|
|
87345
|
-
(okClick)="handleSendMethodOkClick($event)"
|
|
87346
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
87347
|
-
></co-send-method-dialog>
|
|
87348
|
-
}
|
|
87349
|
-
<co-digital-signature
|
|
87350
|
-
[documentId]="signatureDocumentId"
|
|
87351
|
-
(documentStored)="commitAndRefreshTransaction()"
|
|
87352
|
-
></co-digital-signature>
|
|
87567
|
+
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" } }, viewQueries: [{ propertyName: "sendDocumentsComponent", first: true, predicate: TransactionSendDocumentsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
87568
|
+
@if (transactionInfo.transactionDefinitive) {
|
|
87569
|
+
<div class="quick-access-content-wrapper">
|
|
87570
|
+
<div class="select-all-wrapper" [class.hidden]="!hasLinesToInvoice || !transactionInfo.allowPartialDelivery">
|
|
87571
|
+
<co-input-checkbox
|
|
87572
|
+
[(model)]="allSelected"
|
|
87573
|
+
[label]="'SELECT_ALL_LINES' | localize"
|
|
87574
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
87575
|
+
></co-input-checkbox>
|
|
87576
|
+
</div>
|
|
87577
|
+
@if (canInvoice || historicDocuments()) {
|
|
87578
|
+
<co-quick-send-button
|
|
87579
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87580
|
+
[showLoader]="showLoader"
|
|
87581
|
+
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
87582
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87583
|
+
></co-quick-send-button>
|
|
87584
|
+
}
|
|
87585
|
+
<co-transaction-send-documents
|
|
87586
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderInvoice"
|
|
87587
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87588
|
+
></co-transaction-send-documents>
|
|
87589
|
+
</div>
|
|
87590
|
+
}
|
|
87591
|
+
@if (showSendMethodDialog) {
|
|
87592
|
+
<co-send-method-dialog
|
|
87593
|
+
[headerTitle]="'Verzendmethode'"
|
|
87594
|
+
[printerList]="printerList"
|
|
87595
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
87596
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
87597
|
+
[emailAddresses]="emailAddresses"
|
|
87598
|
+
[emailLayouts]="emailLayouts"
|
|
87599
|
+
[printLayouts]="printLayouts"
|
|
87600
|
+
[isDocSignEnabled]="true"
|
|
87601
|
+
[pdfDoc]="pdfDoc"
|
|
87602
|
+
[showPDFPreview]="true"
|
|
87603
|
+
[layoutCode]="layoutCode"
|
|
87604
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
87605
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87606
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87607
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87608
|
+
(closeClick)="showSendMethodDialog = false"
|
|
87609
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
87610
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
87611
|
+
></co-send-method-dialog>
|
|
87612
|
+
}
|
|
87613
|
+
<co-digital-signature
|
|
87614
|
+
[documentId]="signatureDocumentId"
|
|
87615
|
+
(documentStored)="commitAndRefreshTransaction()"
|
|
87616
|
+
></co-digital-signature>
|
|
87353
87617
|
`, isInline: true, dependencies: [{ kind: "component", type: i10.SendMethodDialogComponent, selector: "co-send-method-dialog", inputs: ["printerList", "reportingDocumentPrintRequest", "reportingDocumentEmailRequest", "reportingDocumentPdfRequest", "reportingDocumentCombinedRequest", "emailLayouts", "printLayouts", "headerTitle", "emailAddresses", "defaultSendMethod", "visibleMethods", "isDocSignEnabled", "docSign", "isPrinterLayoutsEnabled", "isAdditionalDocEnabled", "additionalFileName", "additionalFileContents", "pdfDoc", "disablePdfPreview", "emailUnsignedPossible", "showPDFPreview", "showAdditionalChecks", "showLocalPrint", "layoutCode"], outputs: ["reportingDocumentPrintRequestChange", "reportingDocumentEmailRequestChange", "reportingDocumentPdfRequestChange", "reportingDocumentCombinedRequestChange", "startSignatureClicked", "closeClick", "okClick", "additionalFileChangeEvent", "showFilePreview", "loadDefaultPrinterName"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: TransactionSendDocumentsComponent, selector: "co-transaction-send-documents", inputs: ["transactionTypeCategory", "selected"], outputs: ["openSendMethodDialog"] }, { kind: "component", type: DigitalSignatureComponent, selector: "co-digital-signature", inputs: ["documentId"], outputs: ["documentStored"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
87354
87618
|
}
|
|
87355
87619
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionQuickAccessInvoiceComponent, decorators: [{
|
|
87356
87620
|
type: Component,
|
|
87357
87621
|
args: [{
|
|
87358
87622
|
selector: "co-transaction-quick-access-invoice",
|
|
87359
|
-
template: `
|
|
87360
|
-
@if (transactionInfo.transactionDefinitive) {
|
|
87361
|
-
<div class="quick-access-content-wrapper">
|
|
87362
|
-
<div class="select-all-wrapper" [class.hidden]="!hasLinesToInvoice || !transactionInfo.allowPartialDelivery">
|
|
87363
|
-
<co-input-checkbox
|
|
87364
|
-
[(model)]="allSelected"
|
|
87365
|
-
[label]="'SELECT_ALL_LINES' | localize"
|
|
87366
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
87367
|
-
></co-input-checkbox>
|
|
87368
|
-
</div>
|
|
87369
|
-
@if (canInvoice || historicDocuments()) {
|
|
87370
|
-
<co-quick-send-button
|
|
87371
|
-
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87372
|
-
[showLoader]="showLoader"
|
|
87373
|
-
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
87374
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87375
|
-
></co-quick-send-button>
|
|
87376
|
-
}
|
|
87377
|
-
<co-transaction-send-documents
|
|
87378
|
-
[transactionTypeCategory]="transactionTypeCategory.SalesOrderInvoice"
|
|
87379
|
-
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87380
|
-
></co-transaction-send-documents>
|
|
87381
|
-
</div>
|
|
87382
|
-
}
|
|
87383
|
-
@if (showSendMethodDialog) {
|
|
87384
|
-
<co-send-method-dialog
|
|
87385
|
-
[headerTitle]="'Verzendmethode'"
|
|
87386
|
-
[printerList]="printerList"
|
|
87387
|
-
[defaultSendMethod]="defaultSendMethod"
|
|
87388
|
-
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
87389
|
-
[emailAddresses]="emailAddresses"
|
|
87390
|
-
[emailLayouts]="emailLayouts"
|
|
87391
|
-
[printLayouts]="printLayouts"
|
|
87392
|
-
[isDocSignEnabled]="true"
|
|
87393
|
-
[pdfDoc]="pdfDoc"
|
|
87394
|
-
[showPDFPreview]="true"
|
|
87395
|
-
[layoutCode]="layoutCode"
|
|
87396
|
-
[disablePdfPreview]="disablePdfPreview"
|
|
87397
|
-
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87398
|
-
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87399
|
-
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87400
|
-
(closeClick)="showSendMethodDialog = false"
|
|
87401
|
-
(okClick)="handleSendMethodOkClick($event)"
|
|
87402
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
87403
|
-
></co-send-method-dialog>
|
|
87404
|
-
}
|
|
87405
|
-
<co-digital-signature
|
|
87406
|
-
[documentId]="signatureDocumentId"
|
|
87407
|
-
(documentStored)="commitAndRefreshTransaction()"
|
|
87408
|
-
></co-digital-signature>
|
|
87623
|
+
template: `
|
|
87624
|
+
@if (transactionInfo.transactionDefinitive) {
|
|
87625
|
+
<div class="quick-access-content-wrapper">
|
|
87626
|
+
<div class="select-all-wrapper" [class.hidden]="!hasLinesToInvoice || !transactionInfo.allowPartialDelivery">
|
|
87627
|
+
<co-input-checkbox
|
|
87628
|
+
[(model)]="allSelected"
|
|
87629
|
+
[label]="'SELECT_ALL_LINES' | localize"
|
|
87630
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
87631
|
+
></co-input-checkbox>
|
|
87632
|
+
</div>
|
|
87633
|
+
@if (canInvoice || historicDocuments()) {
|
|
87634
|
+
<co-quick-send-button
|
|
87635
|
+
[defaultMethodIcon]="defaultSendMethodIcon"
|
|
87636
|
+
[showLoader]="showLoader"
|
|
87637
|
+
(sendIconClicked)="handleSendDocument(defaultSendMethod)"
|
|
87638
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87639
|
+
></co-quick-send-button>
|
|
87640
|
+
}
|
|
87641
|
+
<co-transaction-send-documents
|
|
87642
|
+
[transactionTypeCategory]="transactionTypeCategory.SalesOrderInvoice"
|
|
87643
|
+
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
87644
|
+
></co-transaction-send-documents>
|
|
87645
|
+
</div>
|
|
87646
|
+
}
|
|
87647
|
+
@if (showSendMethodDialog) {
|
|
87648
|
+
<co-send-method-dialog
|
|
87649
|
+
[headerTitle]="'Verzendmethode'"
|
|
87650
|
+
[printerList]="printerList"
|
|
87651
|
+
[defaultSendMethod]="defaultSendMethod"
|
|
87652
|
+
[visibleMethods]="[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]"
|
|
87653
|
+
[emailAddresses]="emailAddresses"
|
|
87654
|
+
[emailLayouts]="emailLayouts"
|
|
87655
|
+
[printLayouts]="printLayouts"
|
|
87656
|
+
[isDocSignEnabled]="true"
|
|
87657
|
+
[pdfDoc]="pdfDoc"
|
|
87658
|
+
[showPDFPreview]="true"
|
|
87659
|
+
[layoutCode]="layoutCode"
|
|
87660
|
+
[disablePdfPreview]="disablePdfPreview"
|
|
87661
|
+
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
87662
|
+
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
87663
|
+
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
87664
|
+
(closeClick)="showSendMethodDialog = false"
|
|
87665
|
+
(okClick)="handleSendMethodOkClick($event)"
|
|
87666
|
+
(showFilePreview)="onShowFilePreview($event)"
|
|
87667
|
+
></co-send-method-dialog>
|
|
87668
|
+
}
|
|
87669
|
+
<co-digital-signature
|
|
87670
|
+
[documentId]="signatureDocumentId"
|
|
87671
|
+
(documentStored)="commitAndRefreshTransaction()"
|
|
87672
|
+
></co-digital-signature>
|
|
87409
87673
|
`,
|
|
87410
87674
|
encapsulation: ViewEncapsulation.None,
|
|
87411
87675
|
standalone: false
|
|
@@ -88937,12 +89201,11 @@ class TransactionQuickAccessReserveComponent extends TransactionQuickAccessSendM
|
|
|
88937
89201
|
[emailLayouts]="emailLayouts"
|
|
88938
89202
|
[printLayouts]="printLayouts"
|
|
88939
89203
|
[pdfDoc]="pdfDoc"
|
|
88940
|
-
[disablePdfPreview]="
|
|
89204
|
+
[disablePdfPreview]="true"
|
|
88941
89205
|
[layoutCode]="layoutCode"
|
|
88942
89206
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
88943
89207
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
88944
89208
|
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
88945
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
88946
89209
|
(closeClick)="showSendMethodDialog = false"
|
|
88947
89210
|
(okClick)="handleSendMethodOkClick($event)"
|
|
88948
89211
|
></co-send-method-dialog>
|
|
@@ -88978,12 +89241,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
88978
89241
|
[emailLayouts]="emailLayouts"
|
|
88979
89242
|
[printLayouts]="printLayouts"
|
|
88980
89243
|
[pdfDoc]="pdfDoc"
|
|
88981
|
-
[disablePdfPreview]="
|
|
89244
|
+
[disablePdfPreview]="true"
|
|
88982
89245
|
[layoutCode]="layoutCode"
|
|
88983
89246
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
88984
89247
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
88985
89248
|
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
88986
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
88987
89249
|
(closeClick)="showSendMethodDialog = false"
|
|
88988
89250
|
(okClick)="handleSendMethodOkClick($event)"
|
|
88989
89251
|
></co-send-method-dialog>
|
|
@@ -89164,11 +89426,10 @@ class TransactionQuickAccessOrderStickerComponent extends TransactionQuickAccess
|
|
|
89164
89426
|
[emailLayouts]="emailLayouts"
|
|
89165
89427
|
[printLayouts]="printLayouts"
|
|
89166
89428
|
[pdfDoc]="pdfDoc"
|
|
89167
|
-
[disablePdfPreview]="
|
|
89429
|
+
[disablePdfPreview]="true"
|
|
89168
89430
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
89169
89431
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
89170
89432
|
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
89171
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
89172
89433
|
(closeClick)="showSendMethodDialog = false"
|
|
89173
89434
|
(okClick)="handleSendMethodOkClick($event)"
|
|
89174
89435
|
></co-send-method-dialog>
|
|
@@ -89204,11 +89465,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
89204
89465
|
[emailLayouts]="emailLayouts"
|
|
89205
89466
|
[printLayouts]="printLayouts"
|
|
89206
89467
|
[pdfDoc]="pdfDoc"
|
|
89207
|
-
[disablePdfPreview]="
|
|
89468
|
+
[disablePdfPreview]="true"
|
|
89208
89469
|
[(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
|
|
89209
89470
|
[(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
|
|
89210
89471
|
[(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
|
|
89211
|
-
(showFilePreview)="onShowFilePreview($event)"
|
|
89212
89472
|
(closeClick)="showSendMethodDialog = false"
|
|
89213
89473
|
(okClick)="handleSendMethodOkClick($event)"
|
|
89214
89474
|
></co-send-method-dialog>
|