Commit 018097c8 by yu.sun

sunyu::fix bug about combo-product calculate price

parent 370a4faf
...@@ -86,7 +86,8 @@ public class SetMealCalculation { ...@@ -86,7 +86,8 @@ public class SetMealCalculation {
comboxmaterialPrice+= materialGoods.getFinalPrice() * cartGoods.getQty(); comboxmaterialPrice+= materialGoods.getFinalPrice() * cartGoods.getQty();
} }
} }
comboxGoods.setAmount(comboxGoods.getAmount()+comboxmaterialPrice); comboxGoods.setAmount((null == comboxGoods.getAmount() ? 0 :
comboxGoods.getAmount())+comboxmaterialPrice);
materialPrice = materialPrice + comboxmaterialPrice; materialPrice = materialPrice + comboxmaterialPrice;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment