details:   http://code.openbravo.com/erp/devel/2.40_cyclone/rev/7a4a03966be5
changeset: 841:7a4a03966be5
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Thu Aug 13 11:23:08 2009 +0200
summary:   [NumberFormat] Fixes Location selector number formatting

details:   http://code.openbravo.com/erp/devel/2.40_cyclone/rev/1a51bb160f55
changeset: 842:1a51bb160f55
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Thu Aug 13 14:10:00 2009 +0200
summary:   [NumberFormat] Reverted previous change. Fixes issue in Business 
Partner
selector

details:   http://code.openbravo.com/erp/devel/2.40_cyclone/rev/e921c7437982
changeset: 843:e921c7437982
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Thu Aug 13 14:12:03 2009 +0200
summary:   [NumberFormat] Added number formatting support for callouts
- Replace getStringParameter with getNumericParameter on numeric fields
- Removed qoutes in callout numeric replies

details:   http://code.openbravo.com/erp/devel/2.40_cyclone/rev/38fa4dd144a3
changeset: 844:38fa4dd144a3
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Thu Aug 13 14:16:00 2009 +0200
summary:   [NumberFormat] Checks returned value type. Apply formatting when is 
a number.

details:   http://code.openbravo.com/erp/devel/2.40_cyclone/rev/2e82ba9273ff
changeset: 845:2e82ba9273ff
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Thu Aug 13 14:16:30 2009 +0200
summary:   Merge

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java                 
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java                
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Assets.java                         
              |   6 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_BankStmt_Amount.java                
              |   8 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java            
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Conversion_Rate.java                
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Conversion.java  
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Product.java     
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_GlobalUse_Conversion.java           
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java              
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_InOut_Conversion.java               
              |   2 +-
 
src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Conversion.java 
             |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Product.java   
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Conversion.java           
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java              
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_InvoiceTax_Amt.java                 
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java                    
              |  16 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Conversion.java             
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java                
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java                 
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_MachineCost.java                    
              |  12 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Movement_Conversion.java            
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Movement_Product.java               
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java                      
              |  24 ++--
 src/org/openbravo/erpCommon/ad_callouts/SL_Order_Conversion.java               
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java                  
              |   8 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Payment_Amounts.java                
              |   8 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_ProductionPlan_Conversion.java      
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Production_Conversion.java          
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java             
              |   4 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Project_Margin.java                 
              |  12 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Project_Planned.java                
              |   8 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Proposal_Product.java               
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java            
              |  10 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Conversion.java     
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_SequenceProduct_Conversion.java     
              |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_WorkRequirement_Conversion.java     
              |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalyses.java
         |  42 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html
   |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.xml
    |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
       |  46 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html
 |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.xml
  |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html
   |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.xml
    |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesJR.java
         |  49 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html
        |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.xml
         |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesJR.java 
             |  47 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html
        |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.xml
         |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesJR.java 
             |  44 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalyses.java
             |  51 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html
       |   8 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.xml
        |   8 +-
 src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJR.java    
              |  47 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html
            |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.xml
             |   4 +-
 src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJR.java 
              |  47 ++++---
 
src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html
         |   4 +-
 
src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.xml
          |   4 +-
 src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html             
              |   2 +-
 src/org/openbravo/erpCommon/info/BusinessPartner_data.xsql                     
              |   4 +-
 src/org/openbravo/erpCommon/info/DebtPayment.html                              
              |   1 -
 src/org/openbravo/erpCommon/info/Invoice.html                                  
              |   3 +-
 src/org/openbravo/erpCommon/info/InvoiceLine.html                              
              |   3 +-
 src/org/openbravo/erpCommon/info/Location_F1.html                              
              |   5 +-
 web/js/utils.js                                                                
              |   2 +-
 68 files changed, 352 insertions(+), 303 deletions(-)

diffs (truncated from 1638 to 300 lines):

diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java    Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java    Thu Aug 
13 14:16:30 2009 +0200
@@ -43,7 +43,7 @@
   public void doPost (HttpServletRequest request, HttpServletResponse 
response) throws IOException,ServletException {
     VariablesSecureApp vars = new VariablesSecureApp(request);
     if (vars.commandIn("DEFAULT")) {
-      String strExpenseAmt = vars.getStringParameter("inpexpenseamt");
+      String strExpenseAmt = vars.getNumericParameter("inpexpenseamt");
       String strDateexpense = vars.getStringParameter("inpdateexpense");
       String strcCurrencyId = vars.getStringParameter("inpcCurrencyId");
       String strTimeExpenseId = vars.getStringParameter("inpsTimeexpenseId");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java   Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java   Thu Aug 
13 14:16:30 2009 +0200
@@ -47,10 +47,10 @@
       String strmProductId = vars.getStringParameter("inpmProductId");
       String strsTimeexpenseId = vars.getStringParameter("inpsTimeexpenseId");
       String strcCurrencyId = vars.getStringParameter("inpcCurrencyId");
-      String strqty = vars.getStringParameter("inpqty");
+      String strqty = vars.getNumericParameter("inpqty");
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       String strTabId = vars.getStringParameter("inpTabId");
-               String strInvPrice = vars.getStringParameter("inpinvoiceprice");
+               String strInvPrice = 
vars.getNumericParameter("inpinvoiceprice");
 
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Assets.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Assets.java    Wed Aug 12 
20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Assets.java    Thu Aug 13 
14:16:30 2009 +0200
@@ -42,9 +42,9 @@
     VariablesSecureApp vars = new VariablesSecureApp(request);
     if (vars.commandIn("DEFAULT")) {
      
-      String strAssetvalue        = 
vars.getStringParameter("inpassetvalueamt");
-      String strResidualvalue     = 
vars.getStringParameter("inpresidualassetvalueamt");
-      String strAmortizationvalue = 
vars.getStringParameter("inpamortizationvalueamt");
+      String strAssetvalue        = 
vars.getNumericParameter("inpassetvalueamt");
+      String strResidualvalue     = 
vars.getNumericParameter("inpresidualassetvalueamt");
+      String strAmortizationvalue = 
vars.getNumericParameter("inpamortizationvalueamt");
       String strLastChanged       = 
vars.getStringParameter("inpLastFieldChanged");
       String strTabId = vars.getStringParameter("inpTabId");
 
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_BankStmt_Amount.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_BankStmt_Amount.java   Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_BankStmt_Amount.java   Thu Aug 
13 14:16:30 2009 +0200
@@ -42,10 +42,10 @@
     if (vars.commandIn("DEFAULT")) {
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
-      String strStmAmount = vars.getStringParameter("inpstmtamt");
-      String strChgAmount = vars.getStringParameter("inpchargeamt");
-      String strTrxAmount = vars.getStringParameter("inptrxamt");
-      String strConvChgAmount = vars.getStringParameter("inpconvertchargeamt");
+      String strStmAmount = vars.getNumericParameter("inpstmtamt");
+      String strChgAmount = vars.getNumericParameter("inpchargeamt");
+      String strTrxAmount = vars.getNumericParameter("inptrxamt");
+      String strConvChgAmount = 
vars.getNumericParameter("inpconvertchargeamt");
       String strTabId = vars.getStringParameter("inpTabId");
       String strBankStmtLine = 
vars.getStringParameter("inpcBankstatementlineId");
       String strCurrencyId = vars.getStringParameter("inpcCurrencyId");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java       
Wed Aug 12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java       
Thu Aug 13 14:16:30 2009 +0200
@@ -45,8 +45,8 @@
       String strOrder = vars.getStringParameter("inpcOrderId");
       String strDebtPayment = vars.getStringParameter("inpcDebtPaymentId");
       String strAmount = vars.getStringParameter("inpamount");
-      String strDiscount = vars.getStringParameter("inpdiscountamt");
-      String strwriteoff = vars.getStringParameter("inpwriteoffamt");
+      String strDiscount = vars.getNumericParameter("inpdiscountamt");
+      String strwriteoff = vars.getNumericParameter("inpwriteoffamt");
       String strTabId = vars.getStringParameter("inpTabId");
       String strCashId = vars.getStringParameter("inpcCashId");
       String strDescription = vars.getStringParameter("inpdescription");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Conversion_Rate.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Conversion_Rate.java   Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Conversion_Rate.java   Thu Aug 
13 14:16:30 2009 +0200
@@ -45,7 +45,7 @@
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strMultiplyRate = vars.getStringParameter("inpmultiplyrate");
-      String strDivideRate = vars.getStringParameter("inpdividerate");
+      String strDivideRate = vars.getNumericParameter("inpdividerate");
       String strTabId = vars.getStringParameter("inpTabId");
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Conversion.java
--- 
a/src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Conversion.java 
    Wed Aug 12 20:39:37 2009 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Conversion.java 
    Thu Aug 13 14:16:30 2009 +0200
@@ -45,7 +45,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Product.java
--- 
a/src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Product.java    
    Wed Aug 12 20:39:37 2009 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_callouts/SL_CreateFromMultiple_Product.java    
    Thu Aug 13 14:16:30 2009 +0200
@@ -42,10 +42,10 @@
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strLocator = vars.getStringParameter("inpmProductId_LOC");
-      String strQty = vars.getStringParameter("inpmProductId_QTY");
+      String strQty = vars.getNumericParameter("inpmProductId_QTY");
       String strUOM = vars.getStringParameter("inpmProductId_UOM");
       String strAttribute = vars.getStringParameter("inpmProductId_ATR");
-      String strQtyOrder = vars.getStringParameter("inpmProductId_PQTY");
+      String strQtyOrder = vars.getNumericParameter("inpmProductId_PQTY");
       String strPUOM = vars.getStringParameter("inpmProductId_PUOM");
       String strMProductID = vars.getStringParameter("inpmProductId");
       String strWindowId = vars.getStringParameter("inpWindowId");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_GlobalUse_Conversion.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_GlobalUse_Conversion.java      
Wed Aug 12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_GlobalUse_Conversion.java      
Thu Aug 13 14:16:30 2009 +0200
@@ -46,7 +46,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       try {
         printPage(response, vars, strUOM, strMProductUOMID, strQuantityOrder, 
strTabId);
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java Thu Aug 
13 14:16:30 2009 +0200
@@ -42,10 +42,10 @@
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strLocator = vars.getStringParameter("inpmProductId_LOC");
-      String strQty = vars.getStringParameter("inpmProductId_QTY");
+      String strQty = vars.getNumericParameter("inpmProductId_QTY");
       String strUOM = vars.getStringParameter("inpmProductId_UOM");
       String strAttribute = vars.getStringParameter("inpmProductId_ATR");
-      String strQtyOrder = vars.getStringParameter("inpmProductId_PQTY");
+      String strQtyOrder = vars.getNumericParameter("inpmProductId_PQTY");
       String strPUOM = vars.getStringParameter("inpmProductId_PUOM");
       String strMProductID = vars.getStringParameter("inpmProductId");
       String strWindowId = vars.getStringParameter("inpwindowId");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_InOut_Conversion.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InOut_Conversion.java  Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InOut_Conversion.java  Thu Aug 
13 14:16:30 2009 +0200
@@ -45,7 +45,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Conversion.java
--- 
a/src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Conversion.java
   Wed Aug 12 20:39:37 2009 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Conversion.java
   Thu Aug 13 14:16:30 2009 +0200
@@ -46,7 +46,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       try {
         printPage(response, vars, strChanged, strUOM, strMProductUOMID, 
strQuantityOrder, strTabId);
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Product.java
--- 
a/src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Product.java  
    Wed Aug 12 20:39:37 2009 +0200
+++ 
b/src/org/openbravo/erpCommon/ad_callouts/SL_Internal_Consumption_Product.java  
    Thu Aug 13 14:16:30 2009 +0200
@@ -45,9 +45,9 @@
       //String strLocator = vars.getStringParameter("inpmLocatorId");
       String strPLocator = vars.getStringParameter("inpmProductId_LOC");
       String strPAttr = vars.getStringParameter("inpmProductId_ATR");
-      String strPQty = vars.getStringParameter("inpmProductId_PQTY");
+      String strPQty = vars.getNumericParameter("inpmProductId_PQTY");
       String strPUOM = vars.getStringParameter("inpmProductId_PUOM");
-      String strQty = vars.getStringParameter("inpmProductId_QTY");
+      String strQty = vars.getNumericParameter("inpmProductId_QTY");
       String strUOM = vars.getStringParameter("inpmProductId_UOM");
       String strTabId = vars.getStringParameter("inpTabId");
       
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Conversion.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Conversion.java      
Wed Aug 12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Conversion.java      
Thu Aug 13 14:16:30 2009 +0200
@@ -46,7 +46,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java Thu Aug 
13 14:16:30 2009 +0200
@@ -44,9 +44,9 @@
       String strProduct = vars.getStringParameter("inpmProductId");
       String strLocator = vars.getStringParameter("inpmProductId_LOC");
       String strAttribute = vars.getStringParameter("inpmProductId_ATR");
-      String strQty = vars.getStringParameter("inpmProductId_QTY");
+      String strQty = vars.getNumericParameter("inpmProductId_QTY");
       String strUOM = vars.getStringParameter("inpmProductId_UOM");
-      String strQtyOrder = vars.getStringParameter("inpmProductId_PQTY");
+      String strQtyOrder = vars.getNumericParameter("inpmProductId_PQTY");
       String strPUOM = vars.getStringParameter("inpmProductId_PUOM");
       String strTabId = vars.getStringParameter("inpTabId");
       printPage(response, vars, strChanged, strProduct, strLocator, 
strAttribute, strQty, strUOM, strQtyOrder, strPUOM, strTabId);
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_InvoiceTax_Amt.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_InvoiceTax_Amt.java    Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_InvoiceTax_Amt.java    Thu Aug 
13 14:16:30 2009 +0200
@@ -40,8 +40,8 @@
     if (vars.commandIn("DEFAULT")) {
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
-      String strTaxAmt = vars.getStringParameter("inptaxamt");
-      String strTaxBaseAmt = vars.getStringParameter("inptaxbaseamt");
+      String strTaxAmt = vars.getNumericParameter("inptaxamt");
+      String strTaxBaseAmt = vars.getNumericParameter("inptaxbaseamt");
       String strTaxId = vars.getStringParameter("inpcTaxId");
       String strInvoiceId = vars.getStringParameter("inpcInvoiceId");
       
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java       Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java       Thu Aug 
13 14:16:30 2009 +0200
@@ -43,14 +43,14 @@
     if (vars.commandIn("DEFAULT")) {
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
-      String strQtyInvoice = vars.getStringParameter("inpqtyinvoiced");
-      String strPriceActual = vars.getStringParameter("inppriceactual");
-      String strPriceLimit = vars.getStringParameter("inppricelimit");
+      String strQtyInvoice = vars.getNumericParameter("inpqtyinvoiced");
+      String strPriceActual = vars.getNumericParameter("inppriceactual");
+      String strPriceLimit = vars.getNumericParameter("inppricelimit");
       String strInvoiceId = vars.getStringParameter("inpcInvoiceId");
       String strProduct = vars.getStringParameter("inpmProductId");
       String strTabId = vars.getStringParameter("inpTabId");
-      String strPriceList = vars.getStringParameter("inppricelist");
-      String strPriceStd = vars.getStringParameter("inppricestd");
+      String strPriceList = vars.getNumericParameter("inppricelist");
+      String strPriceStd = vars.getNumericParameter("inppricestd");
       
       try {
         printPage(response, vars, strChanged, strQtyInvoice, strPriceActual, 
strInvoiceId, strProduct, strPriceLimit, strTabId, strPriceList, strPriceStd);
@@ -96,7 +96,7 @@
     {
       if (log4j.isDebugEnabled()) log4j.debug("priceActual:" + 
Double.toString(priceActual.doubleValue()));
       priceStd = new 
BigDecimal(SLOrderProductData.getOffersStdPriceInvoice(this, 
dataInvoice[0].cBpartnerId, priceActual.toString(), strProduct, 
dataInvoice[0].dateinvoiced, qtyInvoice.toString(), 
dataInvoice[0].mPricelistId, dataInvoice[0].id));
-      resultado.append("new Array(\"inppricestd\", \"" + priceStd.toString() + 
"\"),");
+      resultado.append("new Array(\"inppricestd\", " + priceStd.toString() + 
"),");
     }
     
     //If quantity changes, recalculates unit price (actual price) applying 
price adjustments (offers) if any
@@ -118,8 +118,8 @@
       if (priceLimit.compareTo(ZERO) != 0 && priceActual.compareTo(priceLimit) 
< 0)
         resultado.append("new Array('MESSAGE', \"" + 
FormatUtilities.replaceJS(Utility.messageBD(this, "UnderLimitPrice", 
vars.getLanguage())) + "\"), ");
     }
-    resultado.append("new Array(\"inplinenetamt\", \"" + LineNetAmt.toString() 
+ "\"),");
-    resultado.append("new Array(\"inppriceactual\", \"" + 
priceActual.toString() + "\")");
+    resultado.append("new Array(\"inplinenetamt\", " + LineNetAmt.toString() + 
"),");
+    resultado.append("new Array(\"inppriceactual\", " + priceActual.toString() 
+ ")");
     resultado.append(");");
     xmlDocument.setParameter("array", resultado.toString());
     xmlDocument.setParameter("frameName", "frameAplicacion");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Conversion.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Conversion.java        
Wed Aug 12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Conversion.java        
Thu Aug 13 14:16:30 2009 +0200
@@ -45,7 +45,7 @@
       if (log4j.isDebugEnabled()) log4j.debug("CHANGED: " + strChanged);
       String strUOM = vars.getStringParameter("inpcUomId");
       String strMProductUOMID = vars.getStringParameter("inpmProductUomId");
-      String strQuantityOrder = vars.getStringParameter("inpquantityorder");
+      String strQuantityOrder = vars.getNumericParameter("inpquantityorder");
       String strTabId = vars.getStringParameter("inpTabId");
       
       try {
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java   Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java   Thu Aug 
13 14:16:30 2009 +0200
@@ -50,7 +50,7 @@
       String strPriceStd = vars.getStringParameter("inpmProductId_PSTD");
       String strPriceLimit = vars.getStringParameter("inpmProductId_PLIM");
       String strCurrency = vars.getStringParameter("inpmProductId_CURR");
-      String strQty = vars.getStringParameter("inpqtyinvoiced");
+      String strQty = vars.getNumericParameter("inpqtyinvoiced");
 
       String strMProductID = vars.getStringParameter("inpmProductId");
       String strADOrgID = vars.getStringParameter("inpadOrgId");
diff -r f9ec5e5e68ef -r 2e82ba9273ff 
src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java    Wed Aug 
12 20:39:37 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_JournalLineAmt.java    Thu Aug 
13 14:16:30 2009 +0200
@@ -50,8 +50,8 @@
       String strCurrency = vars.getStringParameter("inpcCurrencyId");
       String strDateAcct = vars.getStringParameter("inpdateacct", 
DateTimeData.today(this));
       String strCurrencyRateType = 
vars.getStringParameter("inpcurrencyratetype", "S");
-      String strAmtSourceDr = vars.getStringParameter("inpamtsourcedr", "0");
-      String strAmtSourceCr = vars.getStringParameter("inpamtsourcecr", "0");

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to