Removed deprecated getShippableWeight() and renamed getShippableWeightBd()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576010 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -974,7 +974,7 @@ public class OrderReadHelper {
|
||||
return shippableQuantity.setScale(scale, rounding);
|
||||
}
|
||||
|
||||
public BigDecimal getShippableWeightBd(String shipGroupSeqId) {
|
||||
public BigDecimal getShippableWeight(String shipGroupSeqId) {
|
||||
BigDecimal shippableWeight = ZERO;
|
||||
List validItems = getValidOrderItems(shipGroupSeqId);
|
||||
if (validItems != null) {
|
||||
@@ -988,11 +988,6 @@ public class OrderReadHelper {
|
||||
return shippableWeight.setScale(scale, rounding);
|
||||
}
|
||||
|
||||
/** @deprecated Use getShippableWeightBd() instead */
|
||||
public double getShippableWeight(String shipGroupSeqId) {
|
||||
return getShippableWeightBd(shipGroupSeqId).doubleValue();
|
||||
}
|
||||
|
||||
public BigDecimal getItemWeightBd(GenericValue item) {
|
||||
GenericDelegator delegator = orderHeader.getDelegator();
|
||||
BigDecimal itemWeight = ZERO;
|
||||
|
||||
@@ -110,7 +110,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(),
|
||||
contactMechId, orh.getProductStoreId(), orh.getShippableItemInfo(shipGroupSeqId), orh.getShippableWeight(shipGroupSeqId).doubleValue(),
|
||||
orh.getShippableQuantity(shipGroupSeqId).doubleValue(), orh.getShippableTotal(shipGroupSeqId).doubleValue());
|
||||
}
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ if (UtilValidate.isNotEmpty(orderId)) {
|
||||
shippableItemInfo = orh.getOrderItemAndShipGroupAssoc(shipGroupSeqId);
|
||||
shippableItems = delegator.findByAnd("OrderItemAndShipGrpInvResAndItemSum", UtilMisc.toMap("orderId", orderId, "shipGroupSeqId", shipGroupSeqId));
|
||||
shippableTotal = new Double(orh.getShippableTotal(shipGroupSeqId).doubleValue());
|
||||
shippableWeight = new Double(orh.getShippableWeightBd(shipGroupSeqId).doubleValue());
|
||||
shippableWeight = new Double(orh.getShippableWeight(shipGroupSeqId).doubleValue());
|
||||
shippableQuantity = new Double(orh.getShippableQuantity(shipGroupSeqId).doubleValue());
|
||||
shipmentCostEstimate = packSession.getShipmentCostEstimate(orderItemShipGroup, productStoreId, shippableItemInfo, shippableTotal, shippableWeight, shippableQuantity);
|
||||
context.put("shipmentCostEstimateForShipGroup", shipmentCostEstimate);
|
||||
|
||||
Reference in New Issue
Block a user