Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051844Retail ModulesSend By Emailpublic2023-03-13 13:232023-03-23 07:56
william_vermersch 
ranjith_qualiantech_com 
normalmajorhave not tried
closedno change required 
30Openbravo Appliance 14.04
 
 
Gold
60008
No
0051844: Page Break not present when sending by mail
Hi,

When generating some reports (by sending document by mail) page breaks are not present.

I joined 2 exports, one made by code (automatic send of email/documents) and one send by clicking on print/mail on the Back Office.

You'll see that we have 2 different behaviors from the same .jrxml, which is not normal.

Regards,
William
I couldn't reproduce the issue in the livebuilds (could not send mail).

But the issue should be reproducible by doing this :

Create an order on the POS
Add multiple lines (to force normally page break) > 100
Invoice the order on the POS (Or generate the invoice from the back office)
Check your mail to find the generated PDF

The PDF should not contain any page break.

-------

Print or send the invoice from the Back office => Page break are present.
No tags attached.
related to defect 0051893 closed ranjith_qualiantech_com Simplified invoices sent by mail come out in 2 pages when it should be only 1. 
pdf CEC Sales Invoice-10096412_20230313_122548.pdf (570,872) 2023-03-13 13:25
https://issues.openbravo.com/file_download.php?file_id=18258&type=bug
pdf CEC_Sales_Invoice_10096412.20230313-122828_download.pdf (574,592) 2023-03-13 13:25
https://issues.openbravo.com/file_download.php?file_id=18259&type=bug
Issue History
2023-03-13 13:23william_vermerschNew Issue
2023-03-13 13:23william_vermerschAssigned To => Retail
2023-03-13 13:23william_vermerschFile Added: CEC_Sales_Invoice_10096412.20230313-122828.pdf
2023-03-13 13:23william_vermerschOBNetwork customer => Gold
2023-03-13 13:23william_vermerschSupport ticket => 60008
2023-03-13 13:23william_vermerschTriggers an Emergency Pack => No
2023-03-13 13:24william_vermerschFile Deleted: CEC_Sales_Invoice_10096412.20230313-122828.pdf
2023-03-13 13:25william_vermerschFile Added: CEC Sales Invoice-10096412_20230313_122548.pdf
2023-03-13 13:25william_vermerschFile Added: CEC_Sales_Invoice_10096412.20230313-122828_download.pdf
2023-03-17 08:53ranjith_qualiantech_comRelationship addedrelated to 0051893
2023-03-17 09:59ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-03-17 10:01ranjith_qualiantech_comStatusnew => scheduled
2023-03-20 08:40william_vermerschFile Added: CEC_InvoiceJR_new.jrxml
2023-03-20 08:41william_vermerschFile Added: CEC_InvoiceLinesJR_new.jrxml
2023-03-20 08:41william_vermerschFile Added: CEC_Invoice_TaxLinesJR_new.jrxml
2023-03-23 06:06ranjith_qualiantech_comNote Added: 0147867
2023-03-23 06:06ranjith_qualiantech_comStatusscheduled => resolved
2023-03-23 06:06ranjith_qualiantech_comResolutionopen => fixed
2023-03-23 07:55marvintmStatusresolved => new
2023-03-23 07:55marvintmResolutionfixed => open
2023-03-23 07:56marvintmNote Added: 0147868
2023-03-23 07:56marvintmStatusnew => closed
2023-03-23 07:56marvintmResolutionopen => no change required
2023-03-23 10:02ranjith_qualiantech_comFile Deleted: CEC_InvoiceJR_new.jrxml
2023-03-23 10:02ranjith_qualiantech_comFile Deleted: CEC_InvoiceLinesJR_new.jrxml
2023-03-23 10:02ranjith_qualiantech_comFile Deleted: CEC_Invoice_TaxLinesJR_new.jrxml

Notes
(0147867)
ranjith_qualiantech_com   
2023-03-23 06:06   
When generating JasperReport,
if JasperReport designParameter IS_IGNORE_PAGINATION is set as false or true, then jrxml's "isIgnorePagination" will be skipped.
if JasperReport designParameters "IS_IGNORE_PAGINATION" is not set, then jrxml's "isIgnorePagination" will be considered for the report.

Possible Fix
Remove attribute "isIgnorePagination", (or) Update "isIgnorePagination"="false" in jrxml
(0147868)
marvintm   
2023-03-23 07:56   
As explained by Ranjith, this must be fixed in the template