svn commit: r576269 - /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: r576269 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

lektran
Author: lektran
Date: Sun Sep 16 23:25:35 2007
New Revision: 576269

URL: http://svn.apache.org/viewvc?rev=576269&view=rev
Log:
Removed deprecated getItemBackorderedQuantity() and renamed getItemBackorderedQuantityBd()

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=576269&r1=576268&r2=576269&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:25:35 2007
@@ -2050,7 +2050,7 @@
         return reserved.setScale(scale, rounding);
     }
 
-    public BigDecimal getItemBackorderedQuantityBd(GenericValue orderItem) {
+    public BigDecimal getItemBackorderedQuantity(GenericValue orderItem) {
         BigDecimal backOrdered = ZERO;
 
         Timestamp shipDate = orderItem.getTimestamp("estimatedShipDate");
@@ -2076,14 +2076,9 @@
         return backOrdered;
     }
 
-    /** @deprecated */
-    public double getItemBackorderedQuantity(GenericValue orderItem) {
-        return getItemBackorderedQuantityBd(orderItem).doubleValue();
-    }
-
     public BigDecimal getItemPendingShipmentQuantityBd(GenericValue orderItem) {
         BigDecimal reservedQty = getItemReservedQuantity(orderItem);
-        BigDecimal backordered = getItemBackorderedQuantityBd(orderItem);
+        BigDecimal backordered = getItemBackorderedQuantity(orderItem);
         return reservedQty.subtract(backordered).setScale(scale, rounding);
     }