diff --git a/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java b/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java index c14d49aa14..bb9e249262 100644 --- a/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java @@ -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 diff --git a/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java b/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java index bc7f8a0020..cf221a945e 100644 --- a/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java +++ b/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java @@ -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(); diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java b/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java index 23e8a1ca3d..48c546b78c 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/shipping/ShippingEvents.java @@ -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, diff --git a/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.bsh b/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.bsh index fe2114c8b5..1e578f608a 100644 --- a/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.bsh +++ b/applications/product/webapp/facility/WEB-INF/actions/shipment/PackOrder.bsh @@ -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);