Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013164Openbravo ERP02. Master data managementpublic2010-04-30 11:232010-05-18 21:43
networkb 
adrianromero 
immediatemajorsometimes
closedfixed 
20Community Appliance
2.50MP11 
2.50MP17 
Core
No
0013164: PDF of "Price List Report" does not work
. in some enviroments, the PDF of "Price list report" does not work.
. the problem is reproducible in enviroment live of openbravo
.Master Data Management || Pricing || Price List Report || Price List Report
  .price list: mafalda sales 29/03/2006

click in pdf button. The pdf generated is not correct
Regression
related to defect 00108242.50MP11 closed iperdomo Loading pop-up window not closing when opening *.fo reports 
Issue History
2010-04-30 11:23networkbNew Issue
2010-04-30 11:23networkbAssigned To => adrianromero
2010-04-30 13:36adrianromeroStatusnew => scheduled
2010-04-30 13:36adrianromeroNote Added: 0026814
2010-04-30 13:36adrianromerofix_in_branch => pi
2010-04-30 13:39psarobePrioritynormal => immediate
2010-04-30 13:39psarobefix_in_branchpi =>
2010-04-30 13:41psarobeTag Attached: Regression
2010-04-30 13:52iperdomoRelationship addedrelated to 0010824
2010-04-30 13:52psarobeversion2.50MP14 => 2.50MP11
2010-04-30 16:46hgbotCheckin
2010-04-30 16:46hgbotNote Added: 0026825
2010-04-30 16:46hgbotStatusscheduled => resolved
2010-04-30 16:46hgbotResolutionopen => fixed
2010-04-30 16:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/be233422f299cfbceccce1c23eada8eab1342ffd [^]
2010-04-30 17:03adrianromeroNote Added: 0026826
2010-05-03 13:00arunkumarNote Added: 0026855
2010-05-03 13:00arunkumarStatusresolved => closed
2010-05-04 00:00anonymoussf_bug_id0 => 2996198
2010-05-11 18:19jpabloaeTarget Version2.50MP16 => 2.50MP17
2010-05-18 21:43hudsonbotCheckin
2010-05-18 21:43hudsonbotNote Added: 0027467

Notes
(0026814)
adrianromero   
2010-04-30 13:36   
This seems to be just a problem of the PDF button that does not link correcty to the PDF report generated. If opened the resulting PDF file as a text file, you will see an html file with a link to the correct PDF generated.
(0026825)
hgbot   
2010-04-30 16:46   
Repository: erp/devel/pi
Changeset: be233422f299cfbceccce1c23eada8eab1342ffd
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Apr 30 16:45:11 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/be233422f299cfbceccce1c23eada8eab1342ffd [^]

Fixes issue 0013164: PDF of Price List Report does not work

---
M src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html
---
(0026826)
adrianromero   
2010-04-30 17:03   
* Testing of the issue:
To test the issue, as Openbravo Admin, follow the steps to reproduce and verify that the pdf is properly generated.

* Explanation of the changeset that fixes the issue:
The changeset that fix this issue consist in the modification of the file ReportPriceList.html to return a file with extension .html instead .pdf that is the correct extension because actually the generated file is a .html file and inside the html file there is a link to the correct .pdf file

* Other areas affected by the changeset:
Other areas affected are all html reports that are invoked using the javascript function openServletNewWindow() that returns a file with extension .pdf. All these html files has been tested and works:

works ./ReportToInvoiceConsignmentJR.html: onclick="openServletNewWindow('FIND', true, 'ReportToInvoiceConsignmentJR.pdf', 'ReportToInvoiceConsignmentJR', null, false, '700', '1000', true);return false;"
not found ./ReportWarehouseDetailInventoryJR.html: onclick="openServletNewWindow('FIND', false, 'ReportWarehouseDetailInventoryJR.pdf', 'ReportWarehouseDetailInventoryJR', null, false, '700', '1000', true);return false;"
works ./ReportShipmentFilterJR.html: onclick="openServletNewWindow('EDIT_PDF', false, 'ReportShipmentEditionJR.pdf', 'ReportShipmentEditionJR', null, false, '700', '1000', true);return false;"
not found ./ReportProduction.html: onclick="openServletNewWindow('FIND', false, 'ReportProductionPDF.pdf', 'ReportProductionPDF', null, false, '700', '1000', true);return false;"
works ./ReportMaterialTransactionFilter.html: onclick="openServletNewWindow('EDIT_PDF', false, 'ReportMaterialTransactionEdition.pdf', 'ReportMaterialTransactionEdition', null, false, '700', '1000', true);return false;"
not found ./ReportToInvoiceConsignment.html: onclick="openServletNewWindow('FIND', false, 'ReportToInvoiceConsignment.pdf', 'ReportToInvoiceConsignment', null, false, '700', '1000', true);return false;"
works ./ReportProjectProgress.html: onclick="openServletNewWindow('PDF', true, 'ReportProjectProgress.pdf', 'ReportProjectProgress', null, false, '700', '1024', true);return false;"
works ./ReportMaterialTransactionEditionJR.html: onclick="openServletNewWindow('EDIT_PDF', false, 'ReportMaterialTransactionEditionJR.pdf', 'ReportMaterialTransactionEditionJR', null, false, '700', '1000', true);return false;"
works ./ReportPurchaseDimensionalAnalysesFilterJR.html: onclick="openServletNewWindow('EDIT_PDF', true, 'ReportPurchaseDimensionalJR.pdf', 'ReportPurchaseDimensionalAnalysesFilterJR', null, false, '700', '1000', true);return false;"
works ./ReportProjectProfitabilityJR.html: onclick="openServletNewWindow('PDF', true, 'ReportProjectProfitabilityJR.pdf', 'ReportProjectProfitabilityJR', null, false, '700', '1024', true);return false;"
works ./ReportProjectBuildingSiteJR.html: onclick="openServletNewWindow('PDF', true, 'ReportProjectBuildingSiteJR.pdf', 'ReportProjectBuildingSiteJR', null, false, '700', '1024', true);return false;"
(0026855)
arunkumar   
2010-05-03 13:00   
Tested Working fine
(0027467)
hudsonbot   
2010-05-18 21:43   
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/be233422f299 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/aa11838d5f80 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17380.obx [^]