Bump ?
Jacques
From: "Jacques Le Roux" <[email protected]>
I checked using FishEye and Nabble, it seems that OrderItemShipGroup.productStoreShipMethId field never existed. There are such
fields in some Product entities
String productStoreShipMethId = cart.getProductStoreShipMethId();
was introduced in in r727381 (OFBIZ-2082)
I guess we should better use
cart.getProductStoreShipMethId();
But this means to pass a cart someway. I did not look further
This prevent to add some types of Product to an existing order and should be
fixed ASAP
Jacques
From: "David E Jones" <[email protected]>
It appears that there used to be a OrderItemShipGroup.productStoreShipMethId field, but there is no longer one, and when an
order is saved the productStoreShipMethId in the ShoppingCart object is no longer saved.
If anyone knows anything about this... Is that correct? If so, why was this
change made?
If no one knows anything about this then I think some investigation is
needed... :(
There is still some code that tries to use it that flares up when trying to edit an order item (orderdetail page in the Order
Manager, Edit Items link, change quantity on any item):
2009-01-10 15:35:14,759 (http-0.0.0.0-8443-2) [
ServiceDispatcher.java:500:ERROR]
---- exception report
----------------------------------------------------------
Service [recalcShippingTotal] threw an unexpected exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: Service [recalcShippingTotal] target threw an unexpected exception ([GenericEntity.get] "productStoreShipMethId" is not
a field of OrderItemShipGroup)
---- cause
---------------------------------------------------------------------
Exception: java.lang.IllegalArgumentException
Message: [GenericEntity.get] "productStoreShipMethId" is not a field of
OrderItemShipGroup
---- stack trace
---------------------------------------------------------------
java.lang.IllegalArgumentException: [GenericEntity.get]
"productStoreShipMethId" is not a field of OrderItemShipGroup
org.ofbiz.entity.GenericEntity.get(GenericEntity.java:308)
org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:585)
org .ofbiz .order .shoppingcart
.shipping.ShippingEvents.getShipEstimate(ShippingEvents.java:121)
org .ofbiz
.order.order.OrderServices.recalcOrderShipping(OrderServices.java:1602)
-David