From 89dec0b0bfb5bc5e39dfc1852b8a8f9f97f54e43 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 16 Aug 2010 12:41:00 +0000 Subject: [PATCH] Completes r985856 "Cost calculation is still broken and no shipping costs are returned" I forgot to commit the change in ShipmentCostEstimate: add productStoreShipMethId to ShipmentCostEstimate when created by createShipmentEstimate. Else new created ShipmentCostEstimate would be inconsistent, see http://markmail.org/message/2f6ryfm6fvvrvx74 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985902 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/shipment/shipment/ShipmentServices.java | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java b/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java index 850ea92b1d..d7f9383e28 100644 --- a/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java +++ b/applications/product/src/org/ofbiz/shipment/shipment/ShipmentServices.java @@ -73,6 +73,7 @@ public class ShipmentServices { GenericValue estimate = delegator.makeValue("ShipmentCostEstimate"); estimate.set("shipmentCostEstimateId", delegator.getNextSeqId("ShipmentCostEstimate")); + estimate.set("productStoreShipMethId", productStoreShipMethId); estimate.set("shipmentMethodTypeId", productStoreShipMeth.getString("shipmentMethodTypeId")); estimate.set("carrierPartyId", productStoreShipMeth.getString("partyId")); estimate.set("carrierRoleTypeId", "CARRIER");