details:   http://code.openbravo.com/erp/devel/cyclone/rev/ebb8d83511aa
changeset: 4599:ebb8d83511aa
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Fri Aug 14 07:47:47 2009 +0200
summary:   [NumberFormat] Fixes amounts and quantities getters

details:   http://code.openbravo.com/erp/devel/cyclone/rev/de95798e6e68
changeset: 4600:de95798e6e68
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Fri Aug 14 07:49:07 2009 +0200
summary:   [NumberFormat] Fixes amounts and prices getters

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java    |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java          |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_Payment_Amounts.java        |   2 +-
 src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java    |   2 +-
 src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.java       |   2 +-
 src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.java |  16 
++++----
 6 files changed, 13 insertions(+), 13 deletions(-)

diffs (92 lines):

diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java       
Fri Aug 14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_CashJournal_Amounts.java       
Fri Aug 14 07:49:07 2009 +0200
@@ -48,7 +48,7 @@
         log4j.debug("CHANGED: " + strChanged);
       String strOrder = vars.getStringParameter("inpcOrderId");
       String strDebtPayment = vars.getStringParameter("inpcDebtPaymentId");
-      String strAmount = vars.getStringParameter("inpamount");
+      String strAmount = vars.getNumericParameter("inpamount");
       String strDiscount = vars.getNumericParameter("inpdiscountamt");
       String strwriteoff = vars.getNumericParameter("inpwriteoffamt");
       String strTabId = vars.getStringParameter("inpTabId");
diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java     Fri Aug 
14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java     Fri Aug 
14 07:49:07 2009 +0200
@@ -58,7 +58,7 @@
       String strPriceStd = vars.getNumericParameter("inpmProductId_PSTD");
       String strPriceLimit = vars.getNumericParameter("inpmProductId_PLIM");
       String strCurrency = vars.getStringParameter("inpmProductId_CURR");
-      String strQty = vars.getStringParameter("inpqtyordered");
+      String strQty = vars.getNumericParameter("inpqtyordered");
 
       String strCBpartnerID = vars.getStringParameter("inpcBpartnerId");
       String strMProductID = vars.getStringParameter("inpmProductId");
diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_callouts/SL_Payment_Amounts.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Payment_Amounts.java   Fri Aug 
14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Payment_Amounts.java   Fri Aug 
14 07:49:07 2009 +0200
@@ -54,7 +54,7 @@
       if (log4j.isDebugEnabled())
         log4j.debug("CHANGED: " + strChanged);
       String strIsOverUnderPayment = 
vars.getStringParameter("inpisoverunderpayment");
-      String strPayamt = vars.getStringParameter("inppayamt");
+      String strPayamt = vars.getNumericParameter("inppayamt");
       String strDiscountamt = vars.getNumericParameter("inpdiscountamt");
       String strWriteoffamt = vars.getNumericParameter("inpwriteoffamt");
       String strOverunderamt = vars.getNumericParameter("inpoverunderamt");
diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java       
Fri Aug 14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java       
Fri Aug 14 07:49:07 2009 +0200
@@ -48,7 +48,7 @@
       String strChanged = vars.getStringParameter("inpLastFieldChanged");
       if (log4j.isDebugEnabled())
         log4j.debug("CHANGED: " + strChanged);
-      String strQty = vars.getStringParameter("inpqty");
+      String strQty = vars.getNumericParameter("inpqty");
       String strPriceActual = vars.getNumericParameter("inppriceactual");
       String strPriceList = vars.getNumericParameter("inppricelist");
       String strDiscount = vars.getNumericParameter("inpdiscount");
diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.java
--- a/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.java  Fri Aug 
14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.java  Fri Aug 
14 07:49:07 2009 +0200
@@ -160,7 +160,7 @@
     data.salesrepId = vars.getStringParameter("inpsalesrepId");
     data.isdiscountprinted = vars.getStringParameter("inpisdiscountprinted", 
"N");
     data.cChargeId = vars.getStringParameter("inpcChargeId");
-    data.chargeamt = vars.getStringParameter("inpchargeamt");
+    data.chargeamt = vars.getNumericParameter("inpchargeamt");
     data.paymentrule = vars.getRequiredStringParameter("inppaymentrule");
     data.cPaymenttermId = vars.getRequiredStringParameter("inpcPaymenttermId");
     data.createfrom = vars.getStringParameter("inpcreatefrom", "N");
diff -r de8cfcf9e3bf -r de95798e6e68 
src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.java
--- a/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.java    
Fri Aug 14 07:30:50 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.java    
Fri Aug 14 07:49:07 2009 +0200
@@ -149,20 +149,20 @@
     data.line = vars.getStringParameter("inpline");
     data.description = vars.getStringParameter("inpdescription");
     data.mProductId = vars.getStringParameter("inpmProductId" + 
data.cInvoicelineId);
-    data.qtyinvoiced = vars.getStringParameter("inpqtyinvoiced");
-    data.pricelist = vars.getStringParameter("inppricelist", "1");
-    data.priceactual = vars.getStringParameter("inppriceactual", "1");
-    data.pricelimit = vars.getStringParameter("inppricelimit", "1");
-    data.pricestd = vars.getStringParameter("inppricestd", "1");
+    data.qtyinvoiced = vars.getNumericParameter("inpqtyinvoiced");
+    data.pricelist = vars.getNumericParameter("inppricelist", "1");
+    data.priceactual = vars.getNumericParameter("inppriceactual", "1");
+    data.pricelimit = vars.getNumericParameter("inppricelimit", "1");
+    data.pricestd = vars.getNumericParameter("inppricestd", "1");
     data.cChargeId = vars.getStringParameter("inpcChargeId");
-    data.chargeamt = vars.getStringParameter("inpchargeamt", "0");
+    data.chargeamt = vars.getNumericParameter("inpchargeamt", "0");
     data.cUomId = vars.getStringParameter("inpcUomId");
     data.cTaxId = vars.getStringParameter("inpcTaxId");
     data.sResourceassignmentId = 
vars.getStringParameter("inpsResourceassignmentId");
-    data.taxamt = vars.getStringParameter("inptaxamt", "0");
+    data.taxamt = vars.getNumericParameter("inptaxamt", "0");
     data.mAttributesetinstanceId = 
vars.getStringParameter("inpmAttributesetinstanceId");
     data.isdescription = vars.getStringParameter("inpisdescription", "N");
-    data.quantityorder = vars.getStringParameter("inpquantityorder");
+    data.quantityorder = vars.getNumericParameter("inpquantityorder");
     data.mProductUomId = vars.getStringParameter("inpmProductUomId");
     data.cInvoiceDiscountId = vars.getStringParameter("inpcInvoiceDiscountId");
 

------------------------------------------------------------------------------
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