plf 4 年 前
コミット
6c9c7e287e

+ 3 - 0
src/main/java/com/caimei/service/impl/ShoppingCartServiceImpl.java

@@ -105,6 +105,9 @@ public class ShoppingCartServiceImpl implements ShoppingCartService {
                         product.setPrice(ladder.getBuyPrice());
                     }
                 }
+            } else if (addTaxFlag) {
+                BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100), 2);
+                product.setPrice(MathUtil.add(addedValueTax, product.getPrice()));
             }
             product.setLadderList(ladderList);
         } else {