|
@@ -55,7 +55,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
//税费
|
|
|
boolean addTaxFlag = ("0".equals(product.getIncludedTax()) && ("1".equals(product.getInvoiceType()) || "2".equals(product.getInvoiceType())));
|
|
|
if (addTaxFlag) {
|
|
|
- BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100));
|
|
|
+ BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100), 2);
|
|
|
BigDecimal price = MathUtil.add(product.getPrice(), addedValueTax);
|
|
|
product.setPrice(price);
|
|
|
}
|
|
@@ -136,7 +136,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
product.setActiveStatus(1);
|
|
|
for (ActivityLadderVo ladder : ladderList) {
|
|
|
if (addTaxFlag) {
|
|
|
- BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(ladder.getBuyPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100));
|
|
|
+ BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(ladder.getBuyPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100), 2);
|
|
|
ladder.setBuyPrice(MathUtil.add(addedValueTax, ladder.getBuyPrice()));
|
|
|
}
|
|
|
}
|
|
@@ -144,7 +144,7 @@ public class ProductServiceImpl implements ProductService {
|
|
|
product.setLadderList(ladderList);
|
|
|
}
|
|
|
if (addTaxFlag) {
|
|
|
- BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100));
|
|
|
+ BigDecimal addedValueTax = MathUtil.div(MathUtil.mul(product.getPrice(), product.getClubTaxPoint()), BigDecimal.valueOf(100), 2);
|
|
|
BigDecimal price = MathUtil.add(product.getPrice(), addedValueTax);
|
|
|
product.setPrice(price);
|
|
|
}
|