Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013580Openbravo ERPA. Platformpublic2010-06-08 15:542010-06-11 00:00
gmauleon 
adrianromero 
immediateminoralways
closedfixed 
5
2.50MP17 
 
Core
No
0013580: Not able to use multireports with an especific document type
If you try to use the grid view to print for instance a pair of invoices and your document number has a "/" inside (for instance document No "FV/000125") the print process fails and the user is not able to see the result
-Create at least a pair of invoices with document numbers containin "/" character.
-Go to invoices grid view and select both of them
-Click on print and select "no, just print it"
-Try to open the result
The result of the pdf is been stored in the a tmp folder and to buil the file name the system uses the document No, this reference contains a "/" and as a result the pdf is not generated.

File: org.openbravo.erpCommon.utility.reporting.Report Method: generateReportFileName

reportFilename = UUID.randomUUID().toString() + "_" + reportFilename;
//here use, for instance, the replace method to find and replace the "/" for a "-"
No tags attached.
Issue History
2010-06-08 15:54gmauleonNew Issue
2010-06-08 15:54gmauleonAssigned To => adrianromero
2010-06-08 18:06hgbotCheckin
2010-06-08 18:06hgbotNote Added: 0028194
2010-06-08 18:06hgbotStatusnew => resolved
2010-06-08 18:06hgbotResolutionopen => fixed
2010-06-08 18:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9353f9f896b0387d2c979bcdebac0e7f112add0e [^]
2010-06-10 10:54arunkumarNote Added: 0028250
2010-06-10 10:54arunkumarStatusresolved => closed
2010-06-10 12:59hudsonbotCheckin
2010-06-10 12:59hudsonbotNote Added: 0028259
2010-06-11 00:00anonymoussf_bug_id0 => 3014577

Notes
(0028194)
hgbot   
2010-06-08 18:06   
Repository: erp/devel/pi
Changeset: 9353f9f896b0387d2c979bcdebac0e7f112add0e
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Jun 08 18:03:21 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9353f9f896b0387d2c979bcdebac0e7f112add0e [^]

Fixes issue 0013580: Not able to use multireports with an especific document type
It has been added a new replacement to the calculation of the filename to avoid the characters slash '/' and back slash '\'

---
M src/org/openbravo/erpCommon/utility/reporting/Report.java
---
(0028250)
arunkumar   
2010-06-10 10:54   
Tested working fine
(0028259)
hudsonbot   
2010-06-10 12:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/9353f9f896b0 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/90bc12ff4afd [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17576.obx [^]