Author: lektran
Date: Sat Sep 15 23:14:02 2007
New Revision: 576039
URL:
http://svn.apache.org/viewvc?rev=576039&view=revLog:
Removed deprecated getOrderBackorderQuantity() and renamed getOrderBackorderQuantityBd()
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java?rev=576039&r1=576038&r2=576039&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java Sat Sep 15 23:14:02 2007
@@ -556,7 +556,7 @@
while (i.hasNext()) {
GenericValue orderHeader = (GenericValue) i.next();
OrderReadHelper orh = new OrderReadHelper(orderHeader);
- BigDecimal backorderQty = orh.getOrderBackorderQuantityBd();
+ BigDecimal backorderQty = orh.getOrderBackorderQuantity();
if (backorderQty.compareTo(new BigDecimal("0")) == 1) {
filterInventoryProblems.add(orh.getOrderId());
}
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=576039&r1=576038&r2=576039&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 Sat Sep 15 23:14:02 2007
@@ -1965,7 +1965,7 @@
return getOrderReturnedRefundTotalBd().add(getBillingAccountReturnedCreditTotalBd()).subtract(getBillingAccountReturnedRefundTotalBd());
}
- public BigDecimal getOrderBackorderQuantityBd() {
+ public BigDecimal getOrderBackorderQuantity() {
BigDecimal backorder = ZERO;
List items = this.getValidOrderItems();
if (items != null) {
@@ -1986,11 +1986,6 @@
}
}
return backorder.setScale(scale, rounding);
- }
-
- /** @deprecated */
- public double getOrderBackorderQuantity() {
- return getOrderBackorderQuantityBd().doubleValue();
}
public BigDecimal getItemPickedQuantityBd(GenericValue orderItem) {
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh?rev=576039&r1=576038&r2=576039&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/order/filterorderlist.bsh Sat Sep 15 23:14:02 2007
@@ -33,7 +33,7 @@
for (ohi = orderHeaderList.iterator(); ohi.hasNext();) {
orderHeader = (GenericValue) ohi.next();
orderReadHelper = OrderReadHelper.getHelper(orderHeader);
- backorderQty = orderReadHelper.getOrderBackorderQuantityBd();
+ backorderQty = orderReadHelper.getOrderBackorderQuantity();
if (backorderQty.compareTo(new BigDecimal("0")) == 1) {
filterInventoryProblems.add(orderHeader.get("orderId"));
}