svn commit: r576268 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

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

svn commit: r576268 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

lektran
Author: lektran
Date: Sun Sep 16 23:22:39 2007
New Revision: 576268

URL: http://svn.apache.org/viewvc?rev=576268&view=rev
Log:
Removed deprecated getItemReservedQuantity() and renamed getItemReservedQuantityBd()

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?rev=576268&r1=576267&r2=576268&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Sun Sep 16 23:22:39 2007
@@ -2033,7 +2033,7 @@
         return quantityShipped.setScale(scale, rounding);
     }
 
-    public BigDecimal getItemReservedQuantityBd(GenericValue orderItem) {
+    public BigDecimal getItemReservedQuantity(GenericValue orderItem) {
         BigDecimal reserved = ZERO;
 
         List reses = getOrderItemShipGrpInvResList(orderItem);
@@ -2050,11 +2050,6 @@
         return reserved.setScale(scale, rounding);
     }
 
-    /** @deprecated */
-    public double getItemReservedQuantity(GenericValue orderItem) {
-        return getItemReservedQuantityBd(orderItem).doubleValue();
-    }
-
     public BigDecimal getItemBackorderedQuantityBd(GenericValue orderItem) {
         BigDecimal backOrdered = ZERO;
 
@@ -2087,7 +2082,7 @@
     }
 
     public BigDecimal getItemPendingShipmentQuantityBd(GenericValue orderItem) {
-        BigDecimal reservedQty = getItemReservedQuantityBd(orderItem);
+        BigDecimal reservedQty = getItemReservedQuantity(orderItem);
         BigDecimal backordered = getItemBackorderedQuantityBd(orderItem);
         return reservedQty.subtract(backordered).setScale(scale, rounding);
     }