Removed deprecated getShippableTotal() and renamed getShippableTotalBd()

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Scott Gray
2007-09-16 00:30:35 +00:00
parent fc95287cbc
commit 960bf62f11
4 changed files with 4 additions and 9 deletions
@@ -220,7 +220,7 @@ public class InvoiceServices {
BigDecimal totalItemsInOrder = orh.getTotalOrderItemsQuantityBd();
// get some price totals
BigDecimal shippableAmount = orh.getShippableTotalBd(null);
BigDecimal shippableAmount = orh.getShippableTotal(null);
BigDecimal orderSubTotal = orh.getOrderItemsSubTotalBd();
// these variables are for pro-rating order amounts across invoices, so they should not be rounded off for maximum accuracy
@@ -913,7 +913,7 @@ public class OrderReadHelper {
return taxApplies;
}
public BigDecimal getShippableTotalBd(String shipGroupSeqId) {
public BigDecimal getShippableTotal(String shipGroupSeqId) {
BigDecimal shippableTotal = ZERO;
List validItems = getValidOrderItems(shipGroupSeqId);
if (validItems != null) {
@@ -937,11 +937,6 @@ public class OrderReadHelper {
return shippableTotal.setScale(scale, rounding);
}
/** @deprecated Use getShippableTotalBd() instead */
public double getShippableTotal(String shipGroupSeqId) {
return getShippableTotalBd(shipGroupSeqId).doubleValue();
}
public BigDecimal getShippableQuantityBd() {
BigDecimal shippableQuantity = ZERO;
List shipGroups = getOrderItemShipGroups();
@@ -111,7 +111,7 @@ public class ShippingEvents {
String contactMechId = shipAddr.getString("contactMechId");
return getShipGroupEstimate(dispatcher, delegator, orh.getOrderTypeId(), shipmentMethodTypeId, carrierPartyId, carrierRoleTypeId,
contactMechId, orh.getProductStoreId(), orh.getShippableItemInfo(shipGroupSeqId), orh.getShippableWeightBd(shipGroupSeqId).doubleValue(),
orh.getShippableQuantityBd(shipGroupSeqId).doubleValue(), orh.getShippableTotalBd(shipGroupSeqId).doubleValue());
orh.getShippableQuantityBd(shipGroupSeqId).doubleValue(), orh.getShippableTotal(shipGroupSeqId).doubleValue());
}
public static Map getShipGroupEstimate(LocalDispatcher dispatcher, GenericDelegator delegator, String orderTypeId,
@@ -133,7 +133,7 @@ if (UtilValidate.isNotEmpty(orderId)) {
productStoreId = orh.getProductStoreId();
shippableItemInfo = orh.getOrderItemAndShipGroupAssoc(shipGroupSeqId);
shippableItems = delegator.findByAnd("OrderItemAndShipGrpInvResAndItemSum", UtilMisc.toMap("orderId", orderId, "shipGroupSeqId", shipGroupSeqId));
shippableTotal = new Double(orh.getShippableTotalBd(shipGroupSeqId).doubleValue());
shippableTotal = new Double(orh.getShippableTotal(shipGroupSeqId).doubleValue());
shippableWeight = new Double(orh.getShippableWeightBd(shipGroupSeqId).doubleValue());
shippableQuantity = new Double(orh.getShippableQuantityBd(shipGroupSeqId).doubleValue());
shipmentCostEstimate = packSession.getShipmentCostEstimate(orderItemShipGroup, productStoreId, shippableItemInfo, shippableTotal, shippableWeight, shippableQuantity);