Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008534Openbravo ERPA. Platformpublic2009-04-09 15:512009-04-25 00:00
roklenardic 
vinothbabu 
highmajoralways
closedfixed 
20Ubuntu 9.04
2.50beta 
2.50MP1 
Core
No
0008534: submitCommandFormParameter is passed UUID without quote marks
Go to Warehouse Management || Analysis Tools || Valued Stock Report and see the source of the generated report.

You will noticed that all links to products use the submitCommandFormParameter javascript method to link to the product window. however, the product id is passed without any quotations so when a new product (with UUID) is linked to it fails.

see the sample code:

      <DIV id="sectionDetail">
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_0" id="funcEvenOddRow1xx">
          <TD class="DataGrid_Body_Cell" width="58%"> <A class="LabelLink" href="#" onclick="submitCommandFormParameter('RELATION', document.frmMain.inpmProductId, FF80818120776B5E0120776E4A6D018F, false, document.frmMain, '../Product/Costing_Relation.html', null, false, true);return false;" onmouseover="window.status='Costs';return true;" onmouseout="window.status='';return true;" class="Link" id="idfieldmProductId">
            <SPAN>Boots</SPAN></A></TD>
          <TD class="DataGrid_Body_Cell" width="12%">363</TD>
          <TD class="DataGrid_Body_Cell" width="10%">Unit</TD>

          <TD class="DataGrid_Body_Cell" width="11%">27,00</TD>
          <TD class="DataGrid_Body_Cell" width="9%">9.801,00</TD>
        </TR>
       
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_1" id="funcEvenOddRow1xx">
          <TD class="DataGrid_Body_Cell" width="58%"> <A class="LabelLink" href="#" onclick="submitCommandFormParameter('RELATION', document.frmMain.inpmProductId, FF80818120776B5E0120776E4A2F0124, false, document.frmMain, '../Product/Costing_Relation.html', null, false, true);return false;" onmouseover="window.status='Costs';return true;" onmouseout="window.status='';return true;" class="Link" id="idfieldmProductId">
            <SPAN>Hat</SPAN></A></TD>
          <TD class="DataGrid_Body_Cell" width="12%">499</TD>

          <TD class="DataGrid_Body_Cell" width="10%">Unit</TD>
          <TD class="DataGrid_Body_Cell" width="11%">0,00</TD>
          <TD class="DataGrid_Body_Cell" width="9%">0,00</TD>
        </TR>
       
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_0" id="funcEvenOddRow1xx">
          <TD class="DataGrid_Body_Cell" width="58%"> <A class="LabelLink" href="#" onclick="submitCommandFormParameter('RELATION', document.frmMain.inpmProductId, FF80818120776B5E0120776E4A300126, false, document.frmMain, '../Product/Costing_Relation.html', null, false, true);return false;" onmouseover="window.status='Costs';return true;" onmouseout="window.status='';return true;" class="Link" id="idfieldmProductId">
            <SPAN>Shirts</SPAN></A></TD>

          <TD class="DataGrid_Body_Cell" width="12%">437</TD>



1) Create a new product
2) Generate stock for it
3) Go to Warehouse Management || Analysis Tools || Valued Stock Report
Valued Stock Report is just one report with this issue, probably there are more like this so all reports should be revised for this issue and single quotations need to be added around UUID

List here all the reports where this is happening:
* Valued Stock Report
* Expense Report
main
Issue History
2009-04-09 15:51roklenardicNew Issue
2009-04-09 15:51roklenardicAssigned To => rafaroda
2009-04-09 15:51roklenardicRegression testing => No
2009-04-09 16:54rafarodaAssigned Torafaroda => sathiyan
2009-04-09 16:54rafarodaPrioritynormal => high
2009-04-09 16:54rafarodaSeverityminor => major
2009-04-09 16:54rafarodaStatusnew => scheduled
2009-04-09 16:54rafarodaProposed Solution updated
2009-04-09 16:54rafarodaSteps to Reproduce Updated
2009-04-15 08:32sathiyanAssigned Tosathiyan => vinothbabu
2009-04-17 11:27hgbotCheckin
2009-04-17 11:27hgbotNote Added: 0015402
2009-04-17 11:27hgbotStatusscheduled => resolved
2009-04-17 11:27hgbotResolutionopen => fixed
2009-04-17 11:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/085ef891be22662361ac444f20033c0399d008c8 [^]
2009-04-22 11:23psarobeTag Attached: main
2009-04-24 16:25sureshbabuStatusresolved => closed
2009-04-24 16:25sureshbabuNote Added: 0015710
2009-04-24 16:25sureshbabuFixed in Version => main
2009-04-25 00:00anonymoussf_bug_id0 => 2780825

Notes
(0015402)
hgbot   
2009-04-17 11:27   
Repository: erp/devel/pi
Changeset: 085ef891be22662361ac444f20033c0399d008c8
Author: Vinoth Babu <vinoth.babu <at> openbravo.com>
Date: Fri Apr 17 14:50:25 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/085ef891be22662361ac444f20033c0399d008c8 [^]

Fixes bug 8534 submitCommandFormParameter is passed UUID with quote marks

---
M src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html
---
(0015710)
sureshbabu   
2009-04-24 16:25   
Tested working fine