Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0049119 | Openbravo ERP | A. Platform | public | 2022-04-25 11:59 | 2022-05-06 00:21 |
Reporter | gorkaion | ||||
Assigned To | Triage Platform Base | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | PR22Q3 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | Gold | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 40841 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0049119: Redundant PDF generation printing documents with multiple selection | ||||
Description | Reviewing a performance problem while printing invoices using the toolbar standard print button I have noticed that each selected invoice is generated individually and later a bigger pdf with all invoices. The individual PDFs consume a lot of time to generate but are discarded since the jasperPrint object is used to generate the complete pdf. | ||||
Steps To Reproduce | 1. Go to Sales Invoice window. 2. Select several invoices. 3. Click on the Print button and select the just print option. 3. Check in the attachments tmp folder that a PDF is generated for each selected invoice. 4. Later a single PDF containing all the invoices is downloaded. 5. Finally all the PDFs are removed. | ||||
Proposed Solution | Remove the call to saveTempReport on PrintController https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java#L245 [^] This call is not needed at all since the printReports method is using the jrPrintReports Collection uses the jasperPrint objects generated for each invoice in the line 236. By removing this line the time to generate the full PDF is reduced to almost half the time. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-04-25 11:59 | gorkaion | New Issue | |||
2022-04-25 11:59 | gorkaion | Assigned To | => Triage Platform Base | ||
2022-04-25 11:59 | gorkaion | OBNetwork customer | => OBPS | ||
2022-04-25 11:59 | gorkaion | Modules | => Core | ||
2022-04-25 11:59 | gorkaion | Support ticket | => 40841 | ||
2022-04-25 11:59 | gorkaion | Triggers an Emergency Pack | => No | ||
2022-04-25 12:16 | gorkaion | OBNetwork customer | OBPS => Gold | ||
2022-04-28 11:05 | martinsdan | Issue Monitored: martinsdan | |||
2022-04-28 18:07 | hgbot | Merge Request Status | => open | ||
2022-04-28 18:07 | hgbot | Note Added: 0136840 | |||
2022-05-06 00:19 | hgbot | Merge Request Status | open => approved | ||
2022-05-06 00:21 | hgbot | Resolution | open => fixed | ||
2022-05-06 00:21 | hgbot | Status | new => closed | ||
2022-05-06 00:21 | hgbot | Note Added: 0136996 | |||
2022-05-06 00:21 | hgbot | Fixed in Version | => PR22Q3 | ||
2022-05-06 00:21 | hgbot | Note Added: 0136997 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|