svn commit: r589529 - in /ofbiz/trunk/applications: order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java product/src/org/ofbiz/shipment/shipment/ShipmentServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r589529 - in /ofbiz/trunk/applications: order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java product/src/org/ofbiz/shipment/shipment/ShipmentServices.java

lektran
Author: lektran
Date: Mon Oct 29 00:17:48 2007
New Revision: 589529

URL: http://svn.apache.org/viewvc?rev=589529&view=rev
Log:
Okay recommitting rev. 589312, it was right to begin with, just required some fixes elsewhere

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
    ofbiz/trunk/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=589529&r1=589528&r2=589529&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Mon Oct 29 00:17:48 2007
@@ -2762,7 +2762,7 @@
             if (csii != null && csii.quantity > 0) {
                 if (item.shippingApplies()) {
                     Map itemInfo = item.getItemProductInfo();
-                    itemInfo.put("quantity", new Double(csii.quantity));
+                    itemInfo.put("quantity", BigDecimal.valueOf(csii.quantity));
                     itemInfos.add(itemInfo);
                 }
             }

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java?rev=589529&r1=589528&r2=589529&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java Mon Oct 29 00:17:48 2007
@@ -380,7 +380,7 @@
                 }
 
                 // add the feature quantities
-                Double quantity = (Double) itemMap.get("quantity");
+                BigDecimal quantity = (BigDecimal) itemMap.get("quantity");
                 Set featureSet = (Set) itemMap.get("featureSet");
                 if (featureSet != null && featureSet.size() > 0) {
                     Iterator fi = featureSet.iterator();