IDEMPIERE-4593 Error completing a Standard Sales Order with Shipper and Calculated Freight Cost Rule (#454)
This commit is contained in:
parent
e017046dac
commit
4d96ac1f8e
|
@ -96,6 +96,8 @@ public class SalesOrderRateInquiryProcess extends SvrProcess
|
||||||
else if (ol.getM_Product_ID() > 0)
|
else if (ol.getM_Product_ID() > 0)
|
||||||
{
|
{
|
||||||
MProduct product = new MProduct(getCtx(), ol.getM_Product_ID(), get_TrxName());
|
MProduct product = new MProduct(getCtx(), ol.getM_Product_ID(), get_TrxName());
|
||||||
|
if (product.isService())
|
||||||
|
continue;
|
||||||
|
|
||||||
BigDecimal weight = product.getWeight();
|
BigDecimal weight = product.getWeight();
|
||||||
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
||||||
|
@ -250,6 +252,8 @@ public class SalesOrderRateInquiryProcess extends SvrProcess
|
||||||
else if (ol.getM_Product_ID() > 0)
|
else if (ol.getM_Product_ID() > 0)
|
||||||
{
|
{
|
||||||
MProduct product = new MProduct(ctx, ol.getM_Product_ID(), trxName);
|
MProduct product = new MProduct(ctx, ol.getM_Product_ID(), trxName);
|
||||||
|
if (product.isService())
|
||||||
|
continue;
|
||||||
|
|
||||||
BigDecimal weight = product.getWeight();
|
BigDecimal weight = product.getWeight();
|
||||||
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
||||||
|
|
|
@ -1550,6 +1550,8 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
else if (ol.getM_Product_ID() > 0)
|
else if (ol.getM_Product_ID() > 0)
|
||||||
{
|
{
|
||||||
MProduct product = new MProduct(getCtx(), ol.getM_Product_ID(), get_TrxName());
|
MProduct product = new MProduct(getCtx(), ol.getM_Product_ID(), get_TrxName());
|
||||||
|
if (product.isService())
|
||||||
|
continue;
|
||||||
|
|
||||||
BigDecimal weight = product.getWeight();
|
BigDecimal weight = product.getWeight();
|
||||||
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
if (weight == null || weight.compareTo(BigDecimal.ZERO) == 0)
|
||||||
|
|
Loading…
Reference in New Issue