Description
When you compute the estimated shipping cost, you compute the quantity of product to ship.
This use the ProductWorker.shippingApplies for each product to know if it need to be ship or not.
On this function the code
Boolean chargeShipping = product.getBoolean("chargeShipping"); if (chargeShipping == null) { return true; } return chargeShipping;
is wrong if the field chargeShipping is empty on a product.
The reason is simple, GenericValue.getBoolean return false if the field is empty
GenericEntity.java:738
public Boolean getBoolean(String name) { Object obj = get(name); if (obj == null) { return false; }
So in this case the function ProductWorker.shippingApplies return always false instead true.
Attachments
Issue Links
- is a clone of
-
OFBIZ-12609 ProductWorker getBoolean logic update
- Closed